Hi

I'm a bit lost on how to do my page navigation the JSF style.

I have a <x:panelLayout> in my main page

 home.jsp

with "header", "navigation", "body" and "footer" section,
each loading a jsp page with e.g. <jsp:include page="header.jsp" />

In the "navigation" is a "tree2" and when i click on a tree node
i only want to replace the jsp page in the "body" section.

So always the home.jsp is reused but only the included body jsp changes.


1. How to setup the "tree2" in navigation.jsp to get the wanted events on click?

2. How to replace the "body.jsp" in my home.jsp according to the node clicked in 1.?
   <f:facet name="body">
       <f:subview id="body-view">
           <jsp:include page="body.jsp" /> // #{...} does not seem to work?
       </f:subview>
   </f:facet>

3. It would be nice to somehow generate dynamically the "body.jsp" replacement
 from the clicked tree2 node information.

Thanks for lightening my befogged brain ...

rgds,
Marcel

Reply via email to