Submit Component Index TextField

TextArea
org.apache.tapestry.form.TextArea
Text Input:
 
Description
Provides a HTML <textarea> form element. This component must be wrapped by a Form component.

Use the HTML "wrap" attribute as an informal parameter to control word wrapping. Wrap attribute values include: "off", "vitual", "physical", "soft" and "hard".

Prior to release 2.2, this component was named Text.

See Also
Form, TextField
Parameters
Name Type Direction Required Default Description
value String in-out no post The text inside the textarea. The parameter is only updated when the the Text component is not disabled.
disabled boolean in no false Controls whether the textarea is active or not. If disabled, then any value that comes up when the form is submitted is ignored. Corresponds to the "disabled" HTML attribute.

Body: removed
Informal parameters: allowed
Reserved parameters: "name"
Examples

The Text component is used in this example eto provide a customer comments feedback <textarea>.

Your Comments

<table valign="middle">
<form jwcid="@Form" listener="ognl:listeners.formSubmit">
 <tr>
  <td>Your Comments</td>
  <td><textarea jwcid="commentsText" rows="5" cols="20"/></td>
 </tr>
 <tr align="right">
  <td colspan="2"><input type="submit" value="Submit"/></td>
 </tr>
</form>
</table>

<property-specification name="comments" type="java.lang.String" persistent="yes" initial-value="'Please enter your comments here'"/>
public class CustomerCommentsPage extends BasePage { public void formSubmit(IRequestCycle requestCycle) { // Proccess customer comments } }

Submit Component Index TextField