Is it possible to access a bean variable in jsf?
I want开发者_运维百科 to access a string variable from a managed bean and compare it another value and thereby render a table only if they are equal.
Can anyone help me on this?
put the table in a ui:panel and then in the rendered attribute of the panel put some EL, like
rendered="#{mybean.myProperty eq 'mystring'}"
精彩评论