Problem with inputNumber and PF 5.2.11

Community Driven Extensions Project
Post Reply
glister
Posts: 64
Joined: 19 Jan 2010, 11:39

03 Sep 2015, 07:16

Hey guys,

it seems that the OutputLabelRenderer has problems with aria-labeledby if the inputNumber component.
(See https://github.com/primefaces/primefaces/issues/618)

The following code:

Code: Select all

<p:outputLabel for="xxx" value="XXX" />  
<pe:inputNumber thousandSeparator="" decimalPlaces="0" id="xxx" value="#{x.y.z}" label="XXX" />  
throws an Exception at OutputLabelRenderer.java:

Code: Select all

            if(target instanceof InputHolder) {
                InputHolder inputHolder = ((InputHolder) target);
                targetClientId = inputHolder.getInputClientId();
                inputHolder.setLabelledBy(clientId);                              <--------- 
            }
workaround is to use h:outputLabel ...

Regards,

glister
PrimeFaces version:
using Primefaces 5.2.11 on a Glassfish v4.1 Server

Additional Libraries:
using PrimeFaces Extensions 3.2
using OmniFaces 2.1

Additional Books:
PrimeFaces Cookbook

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

03 Sep 2015, 08:45

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

ClaudioC
Posts: 114
Joined: 26 Sep 2013, 10:40

19 Oct 2015, 13:42

Now on PF 5.3 I have the same problem. I've read that this issue was fixed.....
Netbeans 8.1, PrimeFaces 5.3.10 + PrimeFaces Extensions 4.0, Glassfish ver4.1, Chrome with NetbeansPlugin

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

19 Oct 2015, 13:58

It's fixed yes, but no relase till now ;)
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

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests