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.

Reply via email to