Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
o:importConstants not applied to method arguments in EL #98
I tried using importConstants on an Enum and then passing the imported value to a method like so:
I was inside a composite component (not sure if relevant). Passed in a User object with a roles attribute which is Set.
I am using OmniFaces 2.0 and WildFly 8.2.0.Final with the stock JSF/EL libraries (Mojarra 2.2.8 and what looks like the GlassFish EL implementation version 3.0.1-b05).
It's put in Facelet scope, which is kind of weird/buggy in composite components in Mojarra. It should work when declared in the template client containing the composite. This all works fine in MyFaces.
One way to bypass it would be putting it in the request scope instead of Facelet scope. @arjantijms What do you think about this one?