In my project I have used PrimeFaces 5.2 with PrimefacesExtensions 2.0 (only for pe:inputNumber component). Now I try PrimeFaces 6.0 RC3. Problem is that p:inputNumber used in PF6.0 doesn't support inline css. I have hundreds appeareances of pe:inputNumber components with various widths. Example:
<pe:inputNumber value="#{fsu.val[col.index]}" decimalPlaces="2" style="width: 18px;" >
</pe:inputNumber>
Is there a better way to keep widths without attach dozens of css classes for p:inputNumber components?
Primefaces: 6.0R.C3
JSF: 2.2.13
Netbeans 8.1
PrimeFaces 6.0.RC3 <p:inputNumber> inline css
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
that will also not work with newer PFE versions.
We aligned that handling long time ago that style/styleClass always applies to the outer container (span in this case).
We could be possible is to introduce something like "inputStyle" and "inputStyleClass".
We aligned that handling long time ago that style/styleClass always applies to the outer container (span in this case).
We could be possible is to introduce something like "inputStyle" and "inputStyleClass".
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:
Implemented it: https://github.com/primefaces/primefaces/issues/1428
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
-
- Posts: 9
- Joined: 04 Mar 2013, 20:50
Thanks Thomas ! That is a much better approach for this compatibility problem.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 43 guests