1 2 Previous Next 17 Replies Latest reply on Oct 9, 2009 2:43 AM by Sergey Morenets

    a4j:jsFunction and var in datatable

    Tomislav Tkal?evi? Novice

      When using jsFunction inside a datatable(inside a rich:column),

      <r:dataTable var="v" value="#{myBean.list}" ...

      and that jsFunction has some method like:

      <a:jsFunction eventsQueue="red"
      name="js_AddAction" action="#{myBean.process(v)}" />

      If some element calls that jsFunction on his event,
      <t:inputText value="#{v.property}" onkeypress="js_AddAction();"/>

      value of the var inside the jsFunction action attribute
      is always the last value of the var in the datatable,not the current value
      of that var.

      I think that this should be possible...

        1 2 Previous Next