0 Replies Latest reply on Oct 15, 2008 9:50 AM by Deepak Sawdekar

    Action method not getting called on an action trigger on a c

    Deepak Sawdekar Newbie


      We need to set the values of some fields on a form on an action trigger (i.e check \uncheck of a checkbox) .For the event “onclickâ€� we have called an action mytest.hello where trying to retrieve the same values from request in the action.

      We are using JSF framework and Ajax. ‘.We have used <a4j: actionparam> to map the values of these parameters Following is the code snippet.

      <rich:dataTable id="offerQuery"

      <rich:columns value="#{viewAction.columns}" var="i" index="ix">
      <a4j:form ajaxSubmit="true">
      <h:selectBooleanCheckbox value="#{item.sitearray[ix].active}" >
      <a4j:support event="onclick" action="#{mytest.hello}" ajaxSingle="true" ></a4j:support>

      The problem we are facing is that the action method is called when the user checks\unchecks all the checkboxes except for the first checkbox( i.e. the one at the 0th )position. In other words no action method is called on check\uncheck of the first checkbox.

      We have tried using ActionListener and onchange event but no luck.

      Any comments or suggestion is welcome.

      Thanks in advance.