hi all,

i've got a problem with dynamically changing the content of my page with the
PPR components of the sandbox.
i'm using myfaces-core-1.1.5, tomahawk-1.1.5 and
tomahawk-sandbox-1.1.6-SNAPSHOT.

here is my code:
-----------------
<h:form id="form1">

   <t:commandLink id="switchToPage2" action="#{
contentIncludeBean.switchToPage2}" value="switch content"/>
   <f:verbatim><br /></f:verbatim>

   <s:pprPanelGroup id="pageContent" partialTriggers="switchToPage2">
       <f:subview id="page1Content" rendered="#{
contentIncludeBean.includeString == 'page1'}">
           <f:verbatim><div>page1</div></f:verbatim>
       </f:subview>
       <f:subview id="page2Content" rendered="#{
contentIncludeBean.includeString == 'page2'}">
           <f:verbatim><div>page2</div></f:verbatim>
       </f:subview>
       <h:outputText value="#{contentIncludeBean.includeString ==
'page1'}"></h:outputText>
       <h:outputText value="#{contentIncludeBean.includeString ==
'page2'}"></h:outputText>
   </s:pprPanelGroup>

</h:form>
-----------------

and the bean has this method:

-----------------
   public void switchToPage2() {
       includeString = "page2";
   }
-----------------

when loading the page for the first time the subview "page1Content" is
rendered, so its working correct. then when i hit the commandLink both
subviews are not rendered but the boolean values calculated below are
correct: false / true.

is there a way to fix this problem? or is there another (perhaps better) way
to get this to work?

regards,
Matthes Rieke

Reply via email to