You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by mu...@apache.org on 2007/08/30 18:48:52 UTC
svn commit: r571239 - in
/struts/struts2/trunk/apps/showcase/src/main/webapp: ajax/autocompleter/
ajax/bind/ ajax/remotebutton/ ajax/remotediv/ ajax/remotelink/
ajax/tabbedpanel/ tags/ui/ tags/ui/datepicker/
Author: musachy
Date: Thu Aug 30 09:48:51 2007
New Revision: 571239
URL: http://svn.apache.org/viewvc?rev=571239&view=rev
Log:
WW-2077 Change parseWidgets to false in djConfig inside head FTL .Should be false for better performance!
* Remove ids from some widgets to make easier the testing of this improvement
Modified:
struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/autocompleter/index.jsp
struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/bind/index.jsp
struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp
struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotediv/example1.jsp
struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotelink/index.jsp
struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/tabbedpanel/example2.jsp
struts/struts2/trunk/apps/showcase/src/main/webapp/tags/ui/datepicker/index.jsp
struts/struts2/trunk/apps/showcase/src/main/webapp/tags/ui/treeExampleStatic.jsp
Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/autocompleter/index.jsp
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/autocompleter/index.jsp?rev=571239&r1=571238&r2=571239&view=diff
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/autocompleter/index.jsp (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/autocompleter/index.jsp Thu Aug 30 09:48:51 2007
@@ -62,7 +62,8 @@
Reload on type (loadOnTextChange="true"), after 3 characters (loadMinimumCount="3", it is "3" by default), without the down arrow button (showDownArrow="false")
<br/>
-<sx:autocompleter
+<sx:autocompleter
+ id="auto2"
indicator="indicator"
href="%{jsonList}"
cssStyle="width: 200px;"
Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/bind/index.jsp
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/bind/index.jsp?rev=571239&r1=571238&r2=571239&view=diff
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/bind/index.jsp (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/bind/index.jsp Thu Aug 30 09:48:51 2007
@@ -33,7 +33,7 @@
<p>
1. Attach to "onclick" event on button. Update content of Div 1. Use with indicator.
<img id="indicator" src="${pageContext.request.contextPath}/images/indicator.gif" alt="Loading..." style="display:none"/>
- <sx:bind id="ex1" href="%{#ajaxTest}" sources="button" targets="div1" events="onclick" indicator="indicator" />
+ <sx:bind href="%{#ajaxTest}" sources="button" targets="div1" events="onclick" indicator="indicator" />
<br/>
<s:submit theme="simple" type="submit" value="submit" id="button"/>
</p>
Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp?rev=571239&r1=571238&r2=571239&view=diff
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp Thu Aug 30 09:48:51 2007
@@ -38,7 +38,7 @@
A submit button, with an indicator
<img id="indicator" src="${pageContext.request.contextPath}/images/indicator.gif" alt="Loading..." style="display:none"/>
-<sx:submit type="submit" value="submit" targets="t1" href="%{ajaxTest}" indicator="indicator"/>
+<sx:submit id="submit2" type="submit" value="submit" targets="t1" href="%{ajaxTest}" indicator="indicator"/>
<br/><br/>
Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotediv/example1.jsp
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotediv/example1.jsp?rev=571239&r1=571238&r2=571239&view=diff
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotediv/example1.jsp (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotediv/example1.jsp Thu Aug 30 09:48:51 2007
@@ -13,7 +13,6 @@
<body>
<sx:div
- id="once"
cssStyle="border: 1px solid yellow;"
href="%{ajaxTest}">
Initial Content</sx:div>
Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotelink/index.jsp
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotelink/index.jsp?rev=571239&r1=571238&r2=571239&view=diff
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotelink/index.jsp (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotelink/index.jsp Thu Aug 30 09:48:51 2007
@@ -55,7 +55,7 @@
<s:url var="ajaxTest" value="/AjaxTest.action" />
<s:url var="test3" value="/Test3.action" />
-<sx:a id="link0"
+<sx:a
href="%{#ajaxTest}"
targets="t1"
highlightColor="red"
Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/tabbedpanel/example2.jsp
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/tabbedpanel/example2.jsp?rev=571239&r1=571238&r2=571239&view=diff
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/tabbedpanel/example2.jsp (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/tabbedpanel/example2.jsp Thu Aug 30 09:48:51 2007
@@ -11,18 +11,15 @@
<body>
- <sx:tabbedpanel id="test2" cssStyle="width: 500px; height: 300px;" doLayout="true">
- <sx:div id="left" label="test1" >
- I'm a Tab!!!
- </sx:div >
- <sx:div id="middle" label="test2" >
- I'm the other Tab!!!
- </sx:div >
-
- </sx:tabbedpanel>
+ <sx:tabbedpanel id="test2" cssStyle="width: 500px; height: 300px;" doLayout="true">
+ <sx:div label="test1" >
+ I'm a Tab!!!
+ </sx:div >
+ <sx:div id="middle" label="test2" >
+ I'm the other Tab!!!
+ </sx:div >
+ </sx:tabbedpanel>
-
-
<s:include value="../footer.jsp"/>
</body>
Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/tags/ui/datepicker/index.jsp
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/tags/ui/datepicker/index.jsp?rev=571239&r1=571238&r2=571239&view=diff
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/tags/ui/datepicker/index.jsp (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/tags/ui/datepicker/index.jsp Thu Aug 30 09:48:51 2007
@@ -10,7 +10,7 @@
<body>
<table>
<sx:datetimepicker label="toggleType='wipe'" value="%{'2006-10-31'}" toggleType="wipe" toggleDuration="300" name="test"/>
-<sx:datetimepicker label="toggleType='explode'" value="%{'2006-07-22'}" toggleType="explode" toggleDuration="500"/>
+<sx:datetimepicker label="toggleType='explode'" value="%{'2006-07-22'}" toggleType="explode" toggleDuration="500" id="dp2"/>
<sx:datetimepicker label="toggleType='fade'" value="%{'2006-06-30'}" toggleType="fade" toggleDuration="500"/>
<sx:datetimepicker label="With value='today'" name="dddp1" value="%{'today'}" />
<sx:datetimepicker label="US format, empty" name="dddp2" language="en-us" />
Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/tags/ui/treeExampleStatic.jsp
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/tags/ui/treeExampleStatic.jsp?rev=571239&r1=571238&r2=571239&view=diff
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/tags/ui/treeExampleStatic.jsp (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/tags/ui/treeExampleStatic.jsp Thu Aug 30 09:48:51 2007
@@ -3,7 +3,7 @@
<html>
<head>
<title>Showcase - UI Tag Example - Tree Example (Static)</title>
-<sx:head />
+<sx:head/>
</head>
<body>
@@ -24,9 +24,9 @@
<div style="float:left; margin-right: 50px;">
-<sx:tree label="parent" id="parentId" templateCssPath="/struts/tree.css"
+<sx:tree label="parent" templateCssPath="/struts/tree.css"
showRootGrid="true" showGrid="true" treeSelectedTopic="treeSelected">
- <sx:treenode label="child1" id="child1Id">
+ <sx:treenode label="child1" >
<sx:treenode label="grandchild1" id="grandchild1Id"/>
<sx:treenode label="grandchild2" id="grandchild2Id"/>
<sx:treenode label="grandchild3" id="grandchild3Id"/>