How to render or hide a jsf subview based on a method call (which returns boolean)?

Posted by jsfQ on Stack Overflow See other posts from Stack Overflow or by jsfQ
Published on 2010-04-13T19:10:07Z Indexed on 2010/04/13 19:13 UTC
Read the original article Hit count: 259

Filed under:
|

I have a context loader class which loads an XML file with info on which components to show or hide on a page. On the JSP pages, within the 'rendered' attribute for a subView,, I would like to make a call to ContextLoader.displayPageComponent(String pageId, String componentId) which returns a boolean. Does this work in JSF? If not, is there another way to achieve the same?

© Stack Overflow or respective owner

Related posts about jsf

Related posts about java