- Components
- Value
Value
Synchronize value between client and server with getter/setter methods and support for onchange event. Renders an input type=hidden and provides getName() and setName() methods.
Example
Documentation
<h:form>
<t:value id="age" value="#{controller.age}">
<f:ajax render="@form"/>
</t:value>
</h:form>
Synchronize value between client and server with getter/setter methods and support for onchange event. Renders an input type=hidden and provides getName() and setName() methods.
Info
Tag name | value |
---|---|
Component type | io.tornadofaces.component.Value |
Renderer type | io.tornadofaces.component.ValueRenderer |
Attributes
Name | Description | Required |
---|---|---|
id | The id of the component | true |
value | The value | true |
name | The base name of the getters and setters. For example, if name is "age", getter will be getAge() and setter will be setAge(). If not supplied, id is used instead. | false |
widgetVar | The widgetVar. Defaults to the name attribute. You can call TW('widgetVar').get and .set instead of using getters and setters if you like. | false |