|
Struts example source code file (TabbedPanel-2.txt)
The Struts TabbedPanel-2.txt source code<linkrel="stylesheet" href="/struts/TabbedPanel.css" type="text/css"/> <script type="text/javascript"> dojo.require("dojo.io.cookie"); dojo.addOnLoad(function(){ var tabContainer=dojo.widget.byId("foo"); var selectedTab=dojo.io.cookie.getCookie("Struts2TabbedPanel_selectedTab_foo"); if( selectedTab ){ tabContainer.selectChild(selectedTab,tabContainer.correspondingPageButton); } dojo.event.connect(tabContainer,"selectChild",function(evt){ dojo.io.cookie.setCookie("Struts2TabbedPanel_selectedTab_foo",evt.widgetId,1,null,null,null); } ) }); </script> <div dojoType="struts:StrutsTabContainer" id="foo" doLayout="false"> </div> <script language="JavaScript" type="text/javascript">djConfig.searchIds.push("foo"); Other Struts examples (source code examples)Here is a short list of links related to this Struts TabbedPanel-2.txt source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.