From a15e99c68e2c004f9fe7ef82849c711e0a64016d Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Mon, 28 Nov 2011 08:21:52 +0000 Subject: [PATCH] WW-3611 - solves wrong prefix used in examples git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1207014 13f79535-47bb-0310-9956-ffa450edef68 --- .../struts2/dojo/components/TabbedPanel.java | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java b/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java index d7b6f879e..c16cb6a43 100644 --- a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java +++ b/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java @@ -21,17 +21,15 @@ package org.apache.struts2.dojo.components; -import java.util.Random; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - +import com.opensymphony.xwork2.util.ValueStack; import org.apache.struts2.components.ClosingUIBean; import org.apache.struts2.views.annotations.StrutsTag; import org.apache.struts2.views.annotations.StrutsTagAttribute; import org.apache.struts2.views.annotations.StrutsTagSkipInheritance; -import com.opensymphony.xwork2.util.ValueStack; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.util.Random; /** * @@ -48,35 +46,37 @@ import com.opensymphony.xwork2.util.ValueStack; *

* * - * <s:tabbedpanel id="test" > - * <s:div id="one" label="one" theme="ajax" labelposition="top" > + * <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> - * </s:div> - * <s:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" > + * </sx:div> + * <sx:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" > * This is the remote tab - * </s:div> - * </s:tabbedpanel> + * </sx:div> + * </sx:tabbedpanel> * * * + * <sx:head /> * <script type="text/javascript"> * dojo.event.topic.subscribe("/beforeSelect", function(event, tab, tabContainer){ * event.cancel = true; * }); * </script> * - * <s:tabbedpanel id="test" beforeSelectTabNotifyTopics="/beforeSelect"> - * <s:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" > + * <sx:tabbedpanel id="test" beforeSelectTabNotifyTopics="/beforeSelect"> + * <sx:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" > * One Tab - * </s:div> - * <s:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" > + * </sx:div> + * <sx:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" > * Another tab - * </s:div> - * </s:tabbedpanel> + * </sx:div> + * </sx:tabbedpanel> * */ @StrutsTag(name="tabbedpanel", tldTagClass="org.apache.struts2.dojo.views.jsp.ui.TabbedPanelTag", description="Render a tabbedPanel widget.")