The tabbedpanel widget is primarily an AJAX component, where each tab can either be local content or remote content (refreshed each time the user selects that tab). If the useSelectedTabCookie attribute is set to true, the id of the selected tab is saved in a cookie on activation. When coming back to this view, the cookie is read and the tab will be activated again, unless an actual value for the selectedTab attribute is specified. If you want to use the cookie feature, please be sure that you provide a unique id for your tabbedpanel component, since this will also be the identifying name component of the stored cookie.
Examples <sx:head /> <sx:tabbedpanel id="test" > <sx:div id="one" label="one" theme="ajax" labelposition="top" > This is the first pane<br/> <s:form> <s:textfield name="tt" label="Test Text"/> <br/> <s:textfield name="tt2" label="Test Text2"/> </s:form> </sx:div> <sx:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" > This is the remote tab </sx:div> </sx:tabbedpanel> <sx:head /> <script type="text/javascript"> dojo.event.topic.subscribe("/beforeSelect", function(event, tab, tabContainer){ event.cancel = true; }); </script> <sx:tabbedpanel id="test" beforeSelectTabNotifyTopics="/beforeSelect"> <sx:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" > One Tab </sx:div> <sx:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" > Another tab </sx:div> </sx:tabbedpanel>