p:inputNumber always send request when user just click in and move out
Posted: 18 Jan 2018, 08:53
Hi Primefaces team
I'm now using Primeface 6.1, as i know that Primefaces already moved some elements from Primefaces Extension to Primefaces and it include p:inputNumber.
Now i have the xhtml like this:
It work fine, when i focus in then enter value and focus out, it will fire request to server.
But when i define the symbol for my value (because it's about currency), like this:
it mean it will show "CHF" as suffix of my value.When i only focus in and focus out, this element will fire event although i did not input any value.
This issue does not happen on Primeface 5.1.
Do you know how to fix it?
Thanks
I'm now using Primeface 6.1, as i know that Primefaces already moved some elements from Primefaces Extension to Primefaces and it include p:inputNumber.
Now i have the xhtml like this:
Code: Select all
<p:inputNumber value="#{myBean.amount}"
minValue="0" decimalPlaces="0">
<p:ajax event="change" global="false" listener="#{myBean.doValueChangeEvent}"/>
</p:inputNumber>
But when i define the symbol for my value (because it's about currency), like this:
Code: Select all
<p:inputNumber symbol=" CHF" symbolPosition="s"
value="#{myBean.amount}"
minValue="0" decimalPlaces="0">
<p:ajax event="change" global="false" listener="#{myBean.doValueChangeEvent}"/>
</p:inputNumber>
This issue does not happen on Primeface 5.1.
Do you know how to fix it?
Thanks