ViewHelper Documentation
form.textfield
View Helper which creates a text field ().
= Examples =
<f:form.textfield name="myTextBox" value="default value" />
Arguments
- additionalAttributes
- data
- name
- value
- property
- disabled
- required
- maxlength
- readonly
- size
- placeholder
- autofocus
- type
- errorClass
- class
- dir
- id
- lang
- style
- title
- accesskey
- tabindex
- onclick
additionalAttributes anySimpleType
Additional tag attributes. They will be added directly to the resulting HTML tag.
data anySimpleType
Additional data-* attributes. They will each be added with a "data-" prefix.
name string
Name of input tag
value anySimpleType
Value of input tag
property string
Name of Object Property. If used in conjunction with <f:form object="...">, "name" and "value" properties will be ignored.
disabled boolean
Specifies that the input element should be disabled when the page loads
required boolean
If the field should be marked as required or not
maxlength anySimpleType
The maxlength attribute of the input field (will not be validated)
readonly string
The readonly attribute of the input field
size anySimpleType
The size of the input field
placeholder string
The placeholder of the input field
autofocus string
Specifies that a input field should automatically get focus when the page loads
type string
The field type, e.g. "text", "email", "url" etc.
errorClass string
CSS class to set if there are errors for this view helper
class string
CSS class(es) for this element
dir string
Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)
id string
Unique (in this file) identifier for this HTML element.
lang string
Language for this element. Use short names specified in RFC 1766
style string
Individual CSS styles for this element
title string
Tooltip text of element
accesskey string
Keyboard shortcut to access this element
tabindex integer
Specifies the tab order of this element
onclick string
JavaScript evaluated for the onclick event