Anonymous avatar Anonymous committed 5e8b061

WW-1446 (Issues with showcase before 2.2.5 release)
- validation -> validation (client) we could use a heading explaining why there is two forms on the page (see validation -> validation ajax)

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2891 573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (4)

webapps/showcase/src/webapp/validation/quiz-ajax.jsp

 </head>
 
 <body>
-
+<p>
 This quiz (ajax) example is customized to use 2 locale, namely en_US and cn_ZH, as I don't know 
 how to write / read chinese, the chinese resource bundle is just like the english but prefixed with (cn)
+</p>
 <ul>
 	<li>
 		<ww:url id="url" namespace="/validation" action="quizAjax" method="input">
 	</li>
 </ul>
 
+<p>
 The following form uses the labelposition="left"
 <ww:form id="f1" action="quizAjax" namespace="/validation" method="post" validate="true" theme="ajax">
     <ww:textfield label="Name" name="name" labelposition="left" />
     <ww:textfield label="Favorite color" name="answer" labelposition="left" />
     <ww:submit id="b1" />
 </ww:form>
+</p>
 
+<p>
 The following form uses the labelposition="top"
 <ww:form id="f2" action="quizAjax" namespace="/validation" method="post" validate="true" theme="ajax">
     <ww:textfield label="Name" name="name" labelposition="top" />
     <ww:textfield label="Favorite color" name="answer" labelposition="top" />
     <ww:submit id="b2"/>
 </ww:form> 
+</p>
 
 </body>
 </html>

webapps/showcase/src/webapp/validation/quiz-basic.jsp

 
 <p/>
 
-<ww:form method="post">
-    <ww:textfield label="Name" name="name"/>
-    <ww:textfield label="Age" name="age"/>
-    <ww:textfield label="Favorite color" name="answer"/>
+<p>
+The following form uses labelposition="left"
+<ww:form id="f0" method="post" labelposition="left">
+    <ww:textfield label="Name" name="name" labelposition="left"/>
+    <ww:textfield label="Age" name="age" labelposition="left"/>
+    <ww:textfield label="Favorite color" name="answer" labelposition="left"/>
     <ww:submit/>
 </ww:form>
+</p>
+
+<p>
+The following form uses labelposition="top"
+<ww:form id="f1" method="post" labelposition="top">
+    <ww:textfield label="Name" name="name" labelposition="top"/>
+    <ww:textfield label="Age" name="age" labelposition="top"/>
+    <ww:textfield label="Favorite color" name="answer" labelposition="top"/>
+    <ww:submit/>
+</ww:form>
+</p>
 
 </body>
 </html>

webapps/showcase/src/webapp/validation/quiz-client-css.jsp

 
 <body>
 
-<ww:form method="post" theme="css_xhtml" validate="true">
-    <ww:textfield label="Name" name="name"/>
-    <ww:textfield label="Age" name="age"/>
-    <ww:textfield label="Favorite color" name="answer"/>
+<p>
+The following form uses labelposition="left"
+<ww:form id="f0" method="post" theme="css_xhtml" validate="true" labelposition="left">
+    <ww:textfield label="Name" name="name" labelposition="left"/>
+    <ww:textfield label="Age" name="age" labelposition="left"/>
+    <ww:textfield label="Favorite color" name="answer" labelposition="left"/>
     <ww:submit/>
 </ww:form>
+</p>
+
+<p>
+The following form uses labelposition="top"
+<ww:form id="f1" method="post" theme="css_xhtml" validate="true" labelposition="top">
+    <ww:textfield label="Name" name="name" labelposition="top"/>
+    <ww:textfield label="Age" name="age" labelposition="top"/>
+    <ww:textfield label="Favorite color" name="answer" labelposition="top"/>
+    <ww:submit/>
+</ww:form>
+</p>
 
 </body>
 </html>

webapps/showcase/src/webapp/validation/quiz-client.jsp

 
 <body>
 
+<p>
+The following form uses labelposition="left"
 <ww:form id="f1" name="quizClient" namespace="/validation" method="post" validate="true">
     <ww:textfield label="Name" name="name" labelposition="left" />
     <ww:textfield label="Age" name="age" labelposition="left" />
     <ww:textfield label="Favorite color" name="answer" labelposition="left" />
     <ww:submit/>
 </ww:form>
-
+</p>
 <br/>
 
+<p>
+The following form uses labelposition="top"
 <ww:form id="f2" name="quizClient" namespace="/validation" method="post" validate="true">
     <ww:textfield label="Name" name="name" labelposition="top" />
     <ww:textfield label="Age" name="age" labelposition="top" />
     <ww:textfield label="Favorite color" name="answer" labelposition="top" />
     <ww:submit/>
 </ww:form>
+</p>
 
 </body>
 </html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.