You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dave <ja...@yahoo.com> on 2006/03/06 03:28:32 UTC

Can recursive?

  Can <jsp:include> recursive?
  a.jsp
  -------
  <h:panelGroup rendered="...">
  <f:subview>
  <jsp:include page="b.jsp" />
  </f:subview>
  </h:panelGroup>
   
  b.jsp
  -------
  <h:panelGroup rendered="...">
  <f:subview>
  <jsp:include page="c.jsp" />
  </f:subview>
  </h:panelGroup>
   
  c.jsp
  ------
  <h:panelGroup rendered="...">
  <f:subview>
  <jsp:include page="a.jsp" />
  </f:subview>
  </h:panelGroup>
   
  At runtime, it will not have infinite loop becuase of rendered condition(rendered="...").
   
  a.jsp, b.jsp and c.jsp are shared jsp files that use alias beans.
   
  I gave it a try, but it was not allowed.
  Why is it? It is conflicting with recursive solution that is powerful. 
   
  In respective of JSP, <jsp:include> is dynamic, forwarding request to the included jsp.
   
  How JSF deal with <jsp:include> at run time?
  Is the JSF tree not supporting recursive includes?
   
  Thanks!
   

		
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze.