Richfaces a4j:include loading two pages!?
- by Jon
I have this seemingly-innocent code on my main JSF page:
<a4j:outputPanel id="sidebarContainer">
<a4j:include viewId="#{UserSession.currentSidebar}"/>
</a4j:outputPanel>
Here is how the sidebar changes:
A jsFunction calls a backing-bean method which sets the page (like "sidebar2.jsp") in UserSession
The jsFunction has "rerender='sidebarContainer'", so that the correct page is loaded in the sidebar
When the web application is initially started in JBoss 5, when I call the jsFunction to change pages, sidebar2 appears, but the original sidebar (sidebar1.jsp) appears below it.
The sidebar switching works just fine after this initial wierdness. Any thoughts??