You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2003/03/26 20:48:48 UTC
cvs commit: jakarta-tapestry/doc/src/ComponentReference TextArea.html
hlship 2003/03/26 11:48:48
Modified: doc/src/ComponentReference TextArea.html
Log:
Remove rows and columns formal parameters from TextArea.
Revision Changes Path
1.5 +8 -33 jakarta-tapestry/doc/src/ComponentReference/TextArea.html
Index: TextArea.html
===================================================================
RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/TextArea.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- TextArea.html 24 Mar 2003 20:41:43 -0000 1.4
+++ TextArea.html 26 Mar 2003 19:48:48 -0000 1.5
@@ -106,28 +106,8 @@
any value that comes up when the form is submitted is ignored.
Corresponds to the "disabled" HTML attribute.</td>
</tr>
- <tr>
- <td>columns</td>
- <td>integer</td>
- <td>in</td>
- <td>no</td>
- <td> </td>
- <td>The width of the textarea, in characters. If zero, or unspecified
- the value is left to the client browser to determine.
- Corresponds to the "cols" HTML attribute.
- </td>
- </tr>
- <tr>
- <td>rows</td>
- <td>integer</td>
- <td>in</td>
- <td>no</td>
- <td> </td>
- <td>The number of rows in the textarea. If
- unspecified or zero, then the value is left to the client browser to
- determine. Corresponds to the "rows" HTML attribute.
- </td>
- </tr>
+
+
</table><BR>Body:
<STRONG>removed</STRONG><BR>Informal parameters:
<STRONG>allowed</STRONG>
@@ -156,12 +136,12 @@
</table>
<p>
- <pre>
+<pre>
<table valign="middle">
<form jwcid="@<a href="Form.html">Form</a>" listener="ognl:listeners.formSubmit">
<tr>
<td>Your Comments</td>
- <td><textarea jwcid="<span class="jwcid">@<a href="#">TextArea</a></span>" value="ognl:comments" columns="ognl:columns" rows="ognl:rows"/></td>
+ <td><textarea jwcid="<span class="jwcid">commentsText</span>" rows="5" cols="20"/></td>
</tr>
<tr align="right">
<td colspan="2"><input type="submit" value="Submit"/></td>
@@ -173,8 +153,6 @@
public class CustomerCommentsPage extends BasePage {
private final static String COMMENTS = "Please enter your comments here";
private String comments = COMMENTS;
- private final int column = 20;
- private final int rows = 5;
public void formSubmit(IRequestCycle requestCycle) {
// Proccess customer comments
@@ -187,17 +165,14 @@
fireObservedChange("comments", value);
}
- public int getColumns() { return columns; }
-
- public int getRows() { return rows; }
-
- protected void initialize() {
+ public void detach() {
comments = COMMENTS;
+ super.detach();
}
}
</pre>
- </td>
- </tr></table>
+
+ </td></tr></table>
</td></tr>
<tr>
<td colspan="3"><hr></td>