4 Replies Latest reply on Dec 23, 2008 6:54 AM by ilya_shaikovsky

    problem with a4j:support and javascript event

    herbertdow

      merry christmas everyone!

      i got a problem where i didn´t find a solution or a hint in the manual or the forum, but it seems like quite a common issue to me

      when i use a4j:support in an item that uses an javascript event, either the js or the a4j does not work, like here:

      <h:column>
      <h:selectBooleanCheckbox value="#{ptn.selected}" onclick="return dataTableSelectOne(this);">
      <a4j:support event="onselect" action="#{kuvptnsearch.dummy}" reRender="ptnSearchButtons"/>
      </h:selectBooleanCheckbox>
      </h:column>

      the onclick is called, die onselect rerendering does not happen. if i turn events around and use onselect on the checkbox-tag and onclick on the a4j:support it is the other way round?! what am i doing wrong? can anyone please help?

      thanks and kind regards,
      herbert