Differences between revisions 1 and 2
Revision 1 as of 2005-10-28 23:14:22
Size: 1298
Editor: TravisReeder
Comment:
Revision 2 as of 2009-09-20 23:00:43
Size: 1298
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Overview

Updates the backend data model through ajax so no form submit button is required.

Tip: Works nice in combination with AutoUpdateDataTable to have a dynamically updating list based on some search parameters.

Current limitations

  • Bound value must be a Collection of Strings!

Usage

<s:selectManyCheckboxAjax
   value="#{inputAjaxBean.chosenValues}"
     [onSuccess="successful"
      onFailure="failure"
      onStart="starting"]
  >
    <f:selectItems value="#{inputAjaxBean.checkboxItems}"/>
</s:selectManyCheckboxAjax>
  • onSuccess - called when an update is completely successful.
  • onFailure - called when an update fails
  • onStart - called when the update starts

Note: Do not include the brackets in these function callbacks. Note 2: These functions accept two values (elementName, elementValue), for example:

function successful(elname, elvalue)
    {
        // do something here
    }

Note - This component is different to others, it uses Ajax mechanisms to fetch data from the server, thus the backend binding can and will be used outside of the standard JSF lifecycle to deliver the data.

Use always within a form tag.

see examples/sandbox/inputAjax.jsp for an example.

HtmlSelectManyCheckboxAjax (last edited 2009-09-20 23:00:43 by localhost)