Wrong documentation: inputNumber readOnly

Community Driven Extensions Project
Post Reply
dognose
Posts: 21
Joined: 28 Aug 2012, 11:12
Location: Bavaria, DE

25 Nov 2014, 17:38

The documentation states the attribute "readOnly":http://www.primefaces.org/showcase-ext/ ... Number.jsf

but in fact - since it is inherited from HtmlInputText - it should be "readonly" without a capital "O". ;)

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

25 Nov 2014, 17:43

Feel free to create a pull request ;)
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

dognose
Posts: 21
Joined: 28 Aug 2012, 11:12
Location: Bavaria, DE

25 Nov 2014, 17:47

code-wise it's fine. (even the inputNumber-renderer uses "readonly") - just the documentation on the website doesn't match.
(Have no idea if it's auto-generated or where it is located unfortunately - taglib file?)

edit: jupp, just the taglib is wrong.

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

25 Nov 2014, 17:59

done ;)
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

dognose
Posts: 21
Joined: 28 Aug 2012, 11:12
Location: Bavaria, DE

25 Nov 2014, 18:00

okay, thx. Just played around with the repo on github - next time I'll create a pull request ;)

ltelegescu
Posts: 9
Joined: 04 Mar 2013, 20:50

05 Jan 2015, 10:47

Steps to correct this problem:

1. Open primefaces-extensions
2. Extract primefaces-extensions.taglib
3. Modify primefaces-extensions.taglib, you need to replace all tags "readOnly" with "readonly"
4. Overwrite file primefaces-extensions.taglib from primefaces-extensions with this modified file

Now your IDE will show this tag correctly.

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests