This shows you the differences between the selected revision and the current version of the page.
| htmltag | htmltag 2007/08/31 21:19 current | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | **input** | ||
| + | <code> | ||
| + | A simple input tag | ||
| + | string required name - the name you'd like to give this element | ||
| + | string optional id - the id you want for this element (defaults to name) | ||
| + | string optional value - the value for this field | ||
| + | int optional maxlength - the max length of the field (defaults to 255) | ||
| + | |||
| + | <h:input name = "lastName" value = "${user.lastName}" /> | ||
| + | </code> | ||
| + | |||
| + | **textarea** | ||
| + | <code> | ||
| + | Displays a textarea | ||
| + | |||
| + | string required name - the name you'd like to give this element | ||
| + | string optional id - the id you want for this element (defaults to name) | ||
| + | string optional value - the value for this field | ||
| + | int optional rows - the number of rows you'd like to have (defaults to 3) | ||
| + | int optional cols - the number of cols you'd like to have (defaults to 50) | ||
| + | |||
| + | <h:textarea name = "body" value = "${this.body}" rows = "10" /> | ||
| + | </code> | ||
| + | |||
| + | **states** | ||
| + | <code> | ||
| + | Displays a dropdown of US states | ||
| + | |||
| + | string required select - the state you want to see selected | ||
| + | string required name - the name you'd like to give this element | ||
| + | string optional id - the id you want for this element (defaults to name) | ||
| + | |||
| + | <h:states name = "states" select = "${this.user.state}" /> | ||
| + | </code> | ||
| + | |||
| + | **button** | ||
| + | <code> | ||
| + | Displays a button | ||
| + | |||
| + | string required label - the text for the button | ||
| + | string optional href - the href to go to when clicked. if not set, the button will be a submit button | ||
| + | |||
| + | <h:button label = "Submit This Form to the Page Whose URL Matches This Form's Action" /> | ||
| + | </code> | ||
| + | |||
| + | **select** | ||
| + | <code> | ||
| + | Displays a select list | ||
| + | |||
| + | string required name - the name you'd like to give this element | ||
| + | string optional id - the id you want for this element (defaults to name) | ||
| + | array required options - the options for the select as name/value pairs | ||
| + | string optional select - the element to select | ||
| + | boolean optional multiple - if this is a multiple list or not | ||
| + | |||
| + | <h:select name = "users_box" options = "${this.states}" multiple = "yes" /> | ||
| + | </code> | ||