Is there any known workaround for https://github.com/primefaces/primefaces/issues/1114 on Primefaces extensions 4.0.0?
Whenever I add an onKeyUp listener to an inputNumber tag, the listener always skips the first input and is always one input behind.
Workaround for inputNumber listener bug
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
nope - you would have to overwrite the js.
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
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
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
1) take the js from the last PFE release
2) check the commits in PF of inputNumber fixes
3) apply these fixes on the old PFE js
4) include the js in the h:head last facade
2) check the commits in PF of inputNumber fixes
3) apply these fixes on the old PFE js
4) include the js in the h:head last facade
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
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
Took me some time but got it to run. Thx for the help.
If somebody stumbles over the same problem. I had to do the following with version 4.0.0
1) Just copy paste the JS version linked in the bug ticket. Replace PrimeFaces with PrimeFacesExt and be sure the js file gets loaded after the initial primefaces extension js.
2) Register a custom renderer in your faces config in which you replace the encodeInput methods.
kind regards
If somebody stumbles over the same problem. I had to do the following with version 4.0.0
1) Just copy paste the JS version linked in the bug ticket. Replace PrimeFaces with PrimeFacesExt and be sure the js file gets loaded after the initial primefaces extension js.
2) Register a custom renderer in your faces config in which you replace the encodeInput methods.
kind regards
-
- Posts: 4
- Joined: 25 May 2016, 19:03
- Contact:
check the commits in PF of inputNumber fixes
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests