| java.lang.Object org.apache.struts2.components.Component org.apache.struts2.components.UIBean org.apache.struts2.components.ClosingUIBean org.apache.struts2.components.TabbedPanel
TabbedPanel | public class TabbedPanel extends ClosingUIBean (Code) | |
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
The following is an example of a tabbedpanel and panel tag utilizing local and remote content.
<s:tabbedPanel id="test" >
<s: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>
</s:div>
<s:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" >
This is the remote tab
</s:div>
</s:tabbedPanel>
|
TEMPLATE_CLOSE | final public static String TEMPLATE_CLOSE(Code) | | |
useSelectedTabCookie | protected String useSelectedTabCookie(Code) | | |
evaluateExtraParams | protected void evaluateExtraParams()(Code) | | |
getDefaultOpenTemplate | public String getDefaultOpenTemplate()(Code) | | |
getDefaultTemplate | protected String getDefaultTemplate()(Code) | | |
setCloseButton | public void setCloseButton(String closeButton)(Code) | | |
setSelectedTab | public void setSelectedTab(String selectedTab)(Code) | | |
setTemplateCssPath | public void setTemplateCssPath(String templateCssPath)(Code) | | |
setUseSelectedTabCookie | public void setUseSelectedTabCookie(String useSelectedTabCookie)(Code) | | |
Methods inherited from org.apache.struts2.components.Component | public void addAllParameters(Map params)(Code)(Java Doc) public void addParameter(String key, Object value)(Code)(Java Doc) public boolean altSyntax()(Code)(Java Doc) public void copyParams(Map params)(Code)(Java Doc) protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult)(Code)(Java Doc) protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult, boolean forceAddSchemeHostAndPort, boolean escapeAmp)(Code)(Java Doc) protected String determineNamespace(String namespace, ValueStack stack, HttpServletRequest req)(Code)(Java Doc) public boolean end(Writer writer, String body)(Code)(Java Doc) protected boolean end(Writer writer, String body, boolean popComponentStack)(Code)(Java Doc) protected StrutsException fieldError(String field, String errorMsg, Exception e)(Code)(Java Doc) protected Component findAncestor(Class clazz)(Code)(Java Doc) protected String findString(String expr)(Code)(Java Doc) protected String findString(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr)(Code)(Java Doc) protected Object findValue(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr, Class toType)(Code)(Java Doc) public Stack getComponentStack()(Code)(Java Doc) public String getId()(Code)(Java Doc) public Map getParameters()(Code)(Java Doc) public ValueStack getStack()(Code)(Java Doc) protected void popComponentStack()(Code)(Java Doc) public void setActionMapper(ActionMapper mapper)(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public boolean start(Writer writer)(Code)(Java Doc) protected String toString(Throwable t)(Code)(Java Doc) public boolean usesBody()(Code)(Java Doc)
|
|
|