1 Reply Latest reply on Jul 13, 2009 5:32 AM by ilya_shaikovsky

    table row clicking event

      Hi,

      I have a simple html table and I'd like to have a row clicking event fire up a client side javascript function as well as a4j:jsFunction which calls a method in my bean. How can I achieve this?

      I know that I can call a client side javascript like

      <tr onclick="callingJavaScriptHere()">
      <td></td>
      </tr>
      


      Also, is there a way to pass parameters to a4j:jsFunction and eventually to my bean if the a4j:jsFunction is being called from the tr onclick event?

      Thanks for your help!

        • 1. Re: table row clicking event
          ilya_shaikovsky

          you could pass a parameters defining your call like:
          onclick="callingJavaScriptHere(param1,param2)"

          and nest next params to JSfunction:

          4j:actionparam name="p1"
          a4j:actionparam name="p2"

          then expose the params in action from the request parameters map.