2 Replies Latest reply on Dec 30, 2007 12:58 AM by parki

    How to ajaxify an input number spinner?

    parki

      Hello -

      Am starting to get into rich faces, and so far, so good. One thing I've not figured out how to do it use ajax with an input number spinner. An example with a (say) check box works great:

      <h:outputText value="#{i18n.registered}" />
      <h:selectBooleanCheckbox value="#{thermostatModel.registered}">
      <a4j:support event="onmouseup" rerender="foo" />
      </h:selectBooleanCheckbox>

      The <a4j:support> tag works perfectly - when a change is made in the browser, the setter method gets called.

      I'd like to do the same thing with an input number spinner, like:

      <h:outputText value="#{i18n.firmware}" />
      <rich:inputNumberSpinner value="#{thermostatModel.thermostat.firmwareVersion}">
      <a4j:support event="onmouseup" rerender="foo" />
      </rich:inputNumberSpinner>

      but this doesn't work - is there a way to tie this to the back end model object via ajax?

      I'm new, so any help/suggestions appreciated.

      Thanks.

      parki...