dsolis 2003/06/09 10:03:35
Modified: junit/mock-scripts TestWMLFormComponents.xml
framework/src/org/apache/tapestry/wml Input.java
package.html
junit/src/org/apache/tapestry/junit/mock/wml Input.wml
Log:
Fix bug [ 20595 ] wml:Input does not render its title parameter
Revision Changes Path
1.2 +3 -3 jakarta-tapestry/junit/mock-scripts/TestWMLFormComponents.xml
Index: TestWMLFormComponents.xml
===================================================================
RCS file: /home/cvs/jakarta-tapestry/junit/mock-scripts/TestWMLFormComponents.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TestWMLFormComponents.xml 25 Mar 2003 04:37:50 -0000 1.1
+++ TestWMLFormComponents.xml 9 Jun 2003 17:03:34 -0000 1.2
@@ -16,13 +16,13 @@
<assert-output name="Input component">
<![CDATA[
- <input type="text" name="fname" value="Ronnie"/>
+ <input type="text" name="fname" title="FName" value="Ronnie"/>
]]>
</assert-output>
<assert-output name="Input component">
<![CDATA[
- <input type="text" name="lname"/>
+ <input type="text" name="lname" title="LName"/>
]]>
</assert-output>
1.5 +5 -1 jakarta-tapestry/framework/src/org/apache/tapestry/wml/Input.java
Index: Input.java
===================================================================
RCS file: /home/cvs/jakarta-tapestry/framework/src/org/apache/tapestry/wml/Input.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Input.java 17 Apr 2003 21:33:44 -0000 1.4
+++ Input.java 9 Jun 2003 17:03:34 -0000 1.5
@@ -88,6 +88,10 @@
writer.attribute("name", getName());
+ String title = getTitle();
+ if (title != null)
+ writer.attribute("title", title);
+
String format = getFormat();
if (format != null)
writer.attribute("format", format);
1.4 +2 -2 jakarta-tapestry/framework/src/org/apache/tapestry/wml/package.html
Index: package.html
===================================================================
RCS file: /home/cvs/jakarta-tapestry/framework/src/org/apache/tapestry/wml/package.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- package.html 25 Mar 2003 20:14:39 -0000 1.3
+++ package.html 9 Jun 2003 17:03:34 -0000 1.4
@@ -16,7 +16,7 @@
</ul>
@author Howard Lewis Ship <a href="mailto:hlship@apache.org">hlship@apache.org</a>
-@author David Solis <a href="mailto:dsolis@legosoft.com.mx">dsolis@legosoft.com.mx</a>
+@author David Solis <a href="mailto:dsolis@apache.org">dsolis@apache.org</a>
</body>
</html>
1.3 +3 -3 jakarta-tapestry/junit/src/org/apache/tapestry/junit/mock/wml/Input.wml
Index: Input.wml
===================================================================
RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/mock/wml/Input.wml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Input.wml 25 Mar 2003 08:05:15 -0000 1.2
+++ Input.wml 9 Jun 2003 17:03:35 -0000 1.3
@@ -5,8 +5,8 @@
<wml>
<card>
<p>
- <input jwcid="@wml:Input" name="fname" value="Ronnie"/>
- <input jwcid="@wml:Input" name="lname" format="ognl:null" emptyok="ognl:false"
value="ognl:null"/>
+ <input jwcid="@wml:Input" name="fname" value="Ronnie" title="FName"/>
+ <input jwcid="@wml:Input" name="lname" title='ognl: "LName"' format="ognl:null"
emptyok="ognl:false" value="ognl:null"/>
</p>
</card>
|