Hello folks,
I seem to be missing something with the simplest application of partial refresh to a tabbed panel. While my project is a bit more complex than this, I simplified the problem to the following just to figure out what was going wrong and why.
I created a very simple xpage consisting of one computed label and a panel (id=refreshTarget) which has within it a tabbed panel with two tabs and a label in each tab panel with static content. Up to this point it works fine. Clicking on each tab in turn displays the appropriate tab panel content.
I then try changing the tab panels to do a partial refresh with the target element set to refreshTarget. I see that the partial refresh does execute, and the contents of the refreshTarget panel are in the AJAX response, but the active tab does not change. This seems to be the simplest application of partial refresh. Have I missed something? I would almost expect a partial refresh to be the default behavior of a tabbed panel click!
Thanks for any insight you might provide,
Rich
Source code of the xpage included for completeness
<xp:label id=“timestamp”>
xp:this.value</xp:this.value>
</xp:label>
<xp:panel id=“refreshTarget”>
<xp:tabbedPanel id=“tabbedPanel1” selectedTab=“tabPanel1”>
<xp:tabPanel label=“Tab One” id=“tabPanel1”>
<xp:label value="Your are in tab one" id="label1"></xp:label>
<xp:eventHandler event="onclick" submit="true" refreshMode="partial" refreshId="refreshTarget">
</xp:eventHandler>
</xp:tabPanel>
<xp:tabPanel label=“Tab Two” id=“tabPanel2”>
<xp:label value="You are in tab 2" id="label2"></xp:label>
<xp:eventHandler event="onclick" submit="true"
refreshMode="partial" refreshId="refreshTarget">
</xp:eventHandler>
</xp:tabPanel>
</xp:tabbedPanel>
</xp:panel>