You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2011/11/28 09:21:53 UTC
svn commit: r1207014 -
/struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java
Author: lukaszlenart
Date: Mon Nov 28 08:21:52 2011
New Revision: 1207014
URL: http://svn.apache.org/viewvc?rev=1207014&view=rev
Log:
WW-3611 - solves wrong prefix used in examples
Modified:
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java
Modified: struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java?rev=1207014&r1=1207013&r2=1207014&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java (original)
+++ struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java Mon Nov 28 08:21:52 2011
@@ -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;
/**
* <!-- START SNIPPET: javadoc -->
@@ -48,35 +46,37 @@ import com.opensymphony.xwork2.util.Valu
* <p/>
*
* <!-- START SNIPPET: example1 -->
- * <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>
* <!-- END SNIPPET: example1 -->
*
* <!-- START SNIPPET: example2 -->
+ * <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>
* <!-- END SNIPPET: example2 -->
*/
@StrutsTag(name="tabbedpanel", tldTagClass="org.apache.struts2.dojo.views.jsp.ui.TabbedPanelTag", description="Render a tabbedPanel widget.")