PrimeFaces 6.0.RC3 <p:inputNumber> inline css

UI Components for JSF
Post Reply
ltelegescu
Posts: 9
Joined: 04 Mar 2013, 20:50

17 May 2016, 07:28

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

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

17 May 2016, 10:24

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

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

17 May 2016, 11:28

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

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

18 May 2016, 07:03

Thanks Thomas ! That is a much better approach for this compatibility problem.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 43 guests