Page 1 of 1

p:inputNumber always send request when user just click in and move out

Posted: 18 Jan 2018, 08:53
by trung.do
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:

Code: Select all

<p:inputNumber   value="#{myBean.amount}"
			minValue="0" decimalPlaces="0">
		 <p:ajax event="change" global="false" listener="#{myBean.doValueChangeEvent}"/>
</p:inputNumber>
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:

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>
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

Re: p:inputNumber always send request when user just click in and move out

Posted: 18 Jan 2018, 11:57
by tandraschko
Try 6.2.RC1

Re: p:inputNumber always send request when user just click in and move out

Posted: 18 Jan 2018, 13:01
by trung.do
Thanks @tandraschko
That's mean this issue has been fixed on 6.2.RC1?

Re: p:inputNumber always send request when user just click in and move out

Posted: 18 Jan 2018, 13:16
by tandraschko
don't know but we will know it after your tests ;)

Re: p:inputNumber always send request when user just click in and move out

Posted: 19 Jan 2018, 09:21
by trung.do
tandraschko wrote:
18 Jan 2018, 13:16
don't know but we will know it after your tests ;)
hi @tandraschko
It's still have same issue on 6.2 RC1 :(
Should we have issue ticket for it?

Re: p:inputNumber always send request when user just click in and move out

Posted: 19 Jan 2018, 13:05
by tandraschko
Please create a issue.

Re: p:inputNumber always send request when user just click in and move out

Posted: 22 Jan 2018, 13:10
by trung.do
Yes, i've created it here https://github.com/primefaces/primefaces/issues/3192
Thanks for your support