You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, in the bootsfaces select the label of the option is missing; Mojarra instead derives it from they itemValue if itemLabel is not specified by the user (and not the other way round, like Bootsfaces). The constructors of javax.faces.model.SelectItem confirm the priority of value over the label.
I'm not submitting a PR since this can be considered a breaking change (and PrimeFaces behaves the wrong (?) way too).
The text was updated successfully, but these errors were encountered:
I suggest we implement a two-way derivation. If either the item-label or the item-value is omitted, it's simply derived from the other one. That way, this isn't a breaking change.
Consider this xhtml:
The generated HTML is:
As you can see, in the bootsfaces
select
the label of the option is missing; Mojarra instead derives it from theyitemValue
ifitemLabel
is not specified by the user (and not the other way round, like Bootsfaces).The constructors of
javax.faces.model.SelectItem
confirm the priority of value over the label.I'm not submitting a PR since this can be considered a breaking change (and PrimeFaces behaves the wrong (?) way too).
The text was updated successfully, but these errors were encountered: