You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by niksa_os <ni...@hotmail.com> on 2005/02/08 15:45:55 UTC

jsp:directive.include and rendered

Hi.

What is right way to include faces page in faces page?
<jsp:directive.include file="admin.jspx"/> or
<jsp:include page="/admin.jspx"/>

What is difference here?

How can I show/hide in Index.jspx included jsf page and other jsf
components like h:inputText when user role is admin?
I use FORM servlet security.

I did try with
<jsp:directive.include file="/admin.jspx"/> or
<jsp:include page="/admin.jspx"/> and 
<f:subview id="admin" rendered="false">, but this doesn't work.
I can see admin.jspx!!!

This <h:inputText binding="#{backing_bean.inputText2}"
    value="only admin role can see" rendered="false"/> work OK,
but how can I get role and setup rendered instead of "false"?