inputNumber component and minValue attribute

Community Driven Extensions Project
Post Reply
ojekanmi
Posts: 19
Joined: 23 Jun 2015, 22:25

26 Nov 2015, 02:26

The inputNumber declaration below will not accept any input, however when I removed the minValue attribute, it accept input. What am not doing wrong here? Also, the input will go beyond the maxlength attribute specified. Kindly help.

Code: Select all

<pe:inputNumber id="codeKat" value="#{myMB.codeK}" minValue="3000"   decimalSeparator=""  thousandSeparator=""    required="true" maxlength="6" decimalPlaces="0"/>

I am using

PrimeFaces 5.3
PrimeFaces Extensions 4.0.0
myfaces

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

26 Nov 2015, 10:45

The problem is currently that the vmin is applied before the value is applied to the input. Therefore the validation of the JS fails before we even set the value.
Please create a ticket in the PrimeFaces issue tracker, as the component was already moved to PrimeFaces.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

ashishreddy123
Posts: 3
Joined: 31 Dec 2015, 18:01

04 Jan 2016, 21:09

tandraschko wrote:The problem is currently that the vmin is applied before the value is applied to the input. Therefore the validation of the JS fails before we even set the value.
Please create a ticket in the PrimeFaces issue tracker, as the component was already moved to PrimeFaces.
Hi tandraschko, my case is a little different. I can enter a negative value but when i switch between tabs of a tabView, the value is lost. Please see the post below :

http://forum.primefaces.org/viewtopic.php?f=14&t=44132

Any help is appreciated.

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests