jakartaee / faces

Jakarta Faces
Other
101 stars 54 forks source link

UISelectItems: missing method setVar simialr as in class UIData #1875

Open david-jezek opened 8 months ago

david-jezek commented 8 months ago

Class jakarta.faces.component.UISelectItems has no possibility to set attribute var programmatically. Call method items.setValueExpression("var", expFactory.createValueExpression(elContext, "item", String.class)); raise exception. This is similar behavior as class UIData, but class UIData has method setVar.

BalusC commented 7 months ago

For the time being, you can use items.getAttributes().put("var", "item") instead.