I wrote a simple test page. The "testBacking.add" method will change the value of "testBacking.text1".
Case 1: when the CommandLink update the TabView (update="p1"), the text1 display will be updated normally.
Code: Select all
<p:commandLink value="add" action="#{testBacking.add}" update="p1" />
<p:tabView id="p1">
<p:tab title="andrew">
<p:outputPanel id="p2">
<h:outputText value="#{testBacking.text1}" />
</p:outputPanel>
</p:tab>
</p:tabView>
Case 2: when the CommandLink update the TabView (update="p2"), the text1 display WILL NOT BE UPDATED.
Code: Select all
<p:commandLink value="add" action="#{testBacking.add}" update="p2" />
<p:tabView id="p1">
<p:tab title="andrew">
<p:outputPanel id="p2">
<h:outputText value="#{testBacking.text1}" />
</p:outputPanel>
</p:tab>
</p:tabView>
Please help me. Did I do anything wrong? Thanks a lot!
Environment: Primefaces 3.0.M3, Mojarra-2.1.2, Apache Tomcat 6.0.32.
Yi