2 Replies Latest reply on Jan 4, 2008 7:02 AM by Martin Taal

    Disable a4j:support client side

    Martin Taal Newbie

      Hi,
      A question, is it possible to disable a4j:support after it has fired once?
      I want to achieve the following. On a form I have a number of fields and a save button, the save button should be enabled when something changed on the form. I also need to keep the changed state server side.
      For this I am considering using the following a4j:support:

      <a4j:support event="onchange" reRender="persistButton"
      action="#{formBean.setDataChanged(true)}"/>
      However I do not want to fire this support event after something changed anymore as this will for sure cost performance. So after the first change the a4j:support should be disabled, is this possible?

      Or should I solve this diffferently?

      Thanks!

      gr. Martin