I have a malfunction with the primefaces library.
The xhtml page contains a field corresponding to the following code
Code: Select all
<h:inputText readonly="#{productBill.blockQuant}" style="width:4em;" binding="#{productBill.quantityTxt}" value="#{productBill.quantProduct}"/>
I also have a primeFaces commandButton corresponding to the following code
Code: Select all
<p:commandButton update="itemInvoice" actionListener="#{productBill.addProduct_action}" async="false" styleClass="button" value="#{app['button.add']}"/>
The "addProduct_action" calculates an amount (with taxes) using the quantity of products entered in the unputText field.
This quantity is supposed to be an integer as productBill.quantProduct is. However here is the bug :
If the input entered in this field is NOT an integer (for instance "AFR") then :
- A primefaces message appears indicating that "AFR" is not a number. This is normal and expected
- If the attribute "async" of the commandButton is set to "true" a part of the page text (corresponding to a resourceBundle) disapears
- If the attribute "async" of the commandButton is set to "false" the whole page text (corresponding to all the resourceBundles used) disapears
- The addProduct_action is not processed (seen with debug entry point on the method)
- not ANY validator/converter (custom or standard, primefaces or classic JSF) is processed
- there is no Java exception catched anywhere. The chain process just stops (i still can use the application though)
I tried using PrimeFaces 2.0.0.RC, 2.0.0 and 2.0.1-SNAPSHOT, Firefox (3.6+) and IE (6+)
Using JDK 1.6.0_17, Tomcat 6.0.20, NetBeans 6.8
Any help will be appreciated
Thanks