0 Replies Latest reply on Jul 19, 2010 4:25 PM by mkat

    inputText a4j:supports with event onkeyup & onblur only onkeyup works

    mkat

      h:inputText valueChangeListener=#{Upload.valueChangeEvent}

      a4j:support event="onblur" reRender="table"

      a4j:support event="onkeyup"

      /inputText

       

      If I take onkeyup off, the onblur will work and my scrollableDataTable gets rerendered. If I leave onkeyup on only the onkeyup works and I see my valuechangelistener triggered in the backing.

       

      Is there some reason why both onkeyup and onblur won't work?

       

      What I am trying to do is, my scrollableDataTable row values are all inputTexts so that the table can be edited. When an inputText is edited, I get the selected row in the valuechangelistener on the onkeyup which is added to a list of rowIndexes for edited values that I need to keep up with for saving only edited rows to my database later. The style of the inputText is returned based on whether that row has been edited or not.

       

      So, my onblur and onkeyup work seperately, but only onkeyup when they are both on the inputText. Why?

       

      Is there a better way to go about this?

       

       

       

      Best Regards,

      mkat