Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
david-jezek opened this issue Jan 7, 2024 · 1 comment
Open

Comments

@david-jezek
Copy link

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
Copy link
Member

BalusC commented Jan 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants