How: display/hide parts of a JSP depending on conditions...
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Begham
Posted On:   Monday, June 4, 2007 02:24 AM

Hi group, how can I realize some if-like conditions with JSF within a JSP page. What I'd like to do is to hide some parts of the page if e.g. a user is not logged-in or the user has not the propper rights. Normally if would do this with something similar to <% if(statment) { ... } %> but how would I do this in a JSF way. I know that most of the JSF-Tags have an "render"-attribute but it seems this isn't probably the best in hiding large sections as you have to set each element's renderer attribute. How would you as JSF experts realize it? Thanks in advance John    More>>

Hi group,



how can I realize some if-like conditions with JSF within a JSP page.



What I'd like to do is to hide some parts of the page if e.g. a user is not logged-in or the user has not the propper rights.



Normally if would do this with something similar to

<% if(statment) { ... } %>
but how would I do this in a JSF way.

I know that most of the JSF-Tags have an "render"-attribute but it seems this isn't probably the best in hiding large sections as you have to set each element's renderer attribute.



How would you as JSF experts realize it?



Thanks in advance
John

   <<Less
About | Sitemap | Contact