开发者

Is it possible to access a bean variable in jsf?

开发者 https://www.devze.com 2023-03-12 01:46 出处:网络
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.

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'}"
0

精彩评论

暂无评论...
验证码 换一张
取 消