Richfaces a4j:include loading two pages!?

Posted by Jon on Stack Overflow See other posts from Stack Overflow or by Jon
Published on 2010-04-27T16:01:51Z Indexed on 2010/04/27 16:03 UTC
Read the original article Hit count: 898

Filed under:
|
|
|
|

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:

  1. A jsFunction calls a backing-bean method which sets the page (like "sidebar2.jsp") in UserSession

  2. 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??

© Stack Overflow or respective owner

Related posts about jsf

Related posts about richfaces