This content has been marked as final.
Show 2 replies
-
1. Re: Bean value not being set when JSF's 'rendered' attribute in play
michpetrov Dec 8, 2015 12:08 PM (in response to marcferguson)Are you sure the EL is always true, if it isn't then the property wouldn't update. You can simply try it with #{true}.
-
2. Re: Bean value not being set when JSF's 'rendered' attribute in play
marcferguson Dec 8, 2015 1:42 PM (in response to michpetrov)Thanks for the response. It works when I use #{true}. I forgot to mention that we've request scoped our beans to make things stateless. If I understand the life cycle it seems at some point the other bean.property2 I'm using in the EL is empty and that "rendered" statement becomes false, which then affects the components.
Another thing to note is if I use a secondary expression (request.method eq 'POST') then it works. The problem with that though is we're using these pages and that EL doesn't work in all scenarios.
Example:
rendered="#{not empty bean.property or request.method eq 'POST'}"