webtier@glassfish.java.net

Re: Ajax menu navigation like GlassFish admin?

From: <forums_at_java.net>
Date: Wed, 27 Apr 2011 04:45:33 -0500 (CDT)

You can use dynamic include with tag ui:include.

If you have a backing bean as #{bean.includedPage}, you can change this when
you click on menuItem maybe just a link with an f:ajax child an jajax just
refresh include

<h:commandLink action="#{actionWichChangeIncludedPageValue}">

       <f:ajax execute="@this" render="include" />

</hcommanalink>

<h:panelGroup id="include">

      <ui:include src="#{bean.includedPage}" />

</h:panelGroup/>

 

I'm not sure this code is great but idea is there.


--
[Message sent by forum member 'alexoulew']
View Post: http://forums.java.net/node/794808