-
Notifications
You must be signed in to change notification settings - Fork 55
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 ValueExpression in var attribute throws IllegalArgumentException #1906
Comments
Hello again, So at the very least, the vdl doc should be fixed. |
I'm sorry for the lack of response. The behavior looks intended to me. It's meant to simply be a name which can be referred to within other value expressions (i.e. the itemValue attribute). We should fix up the vld doc at the least. @BalusC may offer more insight since he originally implemented this change. |
@tandraschko is this something we should do in the PrimeFaces taglib.xml as well? |
occurrences whereby setValueExpression() throws IllegalArgumentException
@BalusC can you explain this one more? I opened PF ticket: primefaces/primefaces#12055 But we are wondering how does removing the type affect these var's? I see OmniFaces and Mojarra do not have a type on the var in their taglibs. |
Fix jakartaee/faces#1906: the taglib should not accept 'var' attribute as a ValueExpression
Hello,
Since this commit (eclipse-ee4j/mojarra@33c3d06) we can no longer set a ValueExpression inside the var attributes of f:selectItems.
This is breaking one of our composite component.
The vdl doc (https://jakarta.ee/specifications/faces/4.0/vdldoc/f/selectitems#var) still says that var can take a ValueExpression which should evaluate to a String.
Here is a minimal example :
Is this a bug or is it really the new intended behavior ? If it is intended, how would one work around this ?
The text was updated successfully, but these errors were encountered: