Differences between revisions 5 and 6
Revision 5 as of 2006-06-23 14:38:27
Size: 1182
Editor: gcoleman
Comment: intendation wibble
Revision 6 as of 2009-09-20 23:01:05
Size: 1182
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

An instance of this listener type can be attached to any UIComponent which is an ActionSource. When the associated component fires its action, this listener will read the value specified by attribute "value" and assign it to the property specified by attribute "property". The value attribute may be a literal value or may be a value-binding; the property is always expected to be a value-binding.

An optional Converter may be associated with this listener, and if present will be invoked to convert the value to the datatype expected by the target property. When no converter is available, a default one will be retrieved from the Application object.

<h:dataTable value="#{bean.model}" var="row">
    <h:column>
        <h:outputText value="#{row.employeeName}" />
    </h:column>
    <h:column>
      <h:form>
        <h:commandLink action="navigateNextPage" immediate="true">
            <h:outputText value="Edit" />
            <t:updateActionListener 
                property="#{editPage.employee.employeeId}" 
                value="#{row.employeeId}" />
        </h:commandLink>
      </h:form>
    </h:column>
</h:dataTable>

UpdateActionListener (last edited 2009-09-20 23:01:05 by localhost)