Open eclipse-faces-bot opened 10 years ago
@glassfishrobot Commented Reported by lu4242
@glassfishrobot Commented @edburns said: Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
@glassfishrobot Commented @manfredriem said: Setting priority to Major
@glassfishrobot Commented This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1285
Facelets tag lib documentation shows the following properties as valid for f:selectItems:
itemValue itemLabel itemDescription itemDisabled itemLabelEscaped ...
But in both Mojarra and MyFaces the attribute itemDescription, itemDisabled, itemLabel are ignored.
But taking a look at the renderkit spec javadoc of javax.faces.SelectMany/javax.faces.Listbox in the section "Rendering the "option" elements" it says this:
"... If the current child is a UISelectItem create a SelectIteminstance from its itemValue, itemLabel, itemEscaped, and itemDescription properties, add it to the list. If the current child is a UISelectItems instance, call its getValue() method. If the result is a SelectItem bean, add it to the list. If the result is an array of SelectItem beans, add each one to the list. If the result is a Collection of SelectItem beans, add each one to the list. If the result is a Map, create a SelectItem bean for each entry in the Map using the key as the label, the value as the value, and null as the description. ..."
So, these properties are supposed to be used with f:selectItem, not with f:selectItems. But the user perceive this as a bug, which is something logic. See:
https://issues.apache.org/jira/browse/MYFACES-3901
In JSF 2.2 with HTML5 friendly markup, it is supposed that f:selectItems can have passthrough attributes. See:
https://issues.apache.org/jira/browse/MYFACES-3879
But in MyFaces we found that it doesn't work for h:selectOneRadio or h:selectManyCheckbox.
The thing is the fix for this issue is pretty similar for the one that needs to be done for HTML5 friendly markup.
Affected Versions
[2.0, 2.1, 2.2]