TextArea Component Index Upload

TextField
org.apache.tapestry.form.TextField
Text Field 
 
Description
Used to implement a HTML text form element, either a <input type="text"> or <input type="password">. This component must be wrapped by a Form .
See Also
Form, TextArea ValidField
Parameters
Name Type Direction Required Default Description
value String in-out yes   The text inside the text field. The binding is only updated when the the component is not disabled. Corresponds to the "value" HTML attribute.
hidden boolean in no false If true, then the text field is written as a <input type="password"> form element.
disabled boolean in no false Controls whether the text field 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: "type", "value"
Examples

The TextField component is used here to provide a plain text and a password form input field.

Id Password

<form jwcid="@Form" listener="ognl:listeners.formSubmit">
 <table valign="middle">
  <tr>
   <td>Id</td>
   <td><span jwcid="inputId@TextField" value="ognl:visit.id" size="8"/></td>
   <td>Password</td>
   <td><span jwcid="inputPassword@TextField" value="ognl:visit.password" hidden="ognl:true" size="8"/></td>
  </tr>
  <tr>
   <td colspan="4" align="right"><input type="submit" value="Submit"/></td>
  </tr>
 </table> 
</form>	


public class PasswordPage extends BasePage {
    public void formSubmit(IRequestCycle requestCycle) {
        // Process the form submission.
    }
}

public class Visit implements Serializable {
    private String id;
    private String password;

    public String getId() { return id; }

    public void setId(String value) {
        id = value;
    }

    public String getPassword() { return password; }

    public void setPassword(String value) {
        password = value;
    }    
}

TextArea Component Index Upload