0 Replies Latest reply on Mar 13, 2008 7:58 AM by adriju

    Two events but only one response

    adriju

      Hi people!!

      I have got a rich:dataTable that contains a column with a h:selectBooleanCheckbox.

      The thing is that the h:selectBooleanCheckbox contains an a4j:support, supporting the event "onclick". And also, the table contains an a4j:support supporting the event "onRowClick".

      I want that when I change the state of my h:selectBooleanCheckbox only the event "onclick" happens, not the "onRowClick".

      Here you have the interested part from my .xhtml page:

      <rich:dataTable id="fichasList"
       var="fichas"
       value="#{fichasList.resultList}">
       <h:column>
       <f:facet name="header">
       <s:link styleClass="columnHeader" value="I"></s:link>
       </f:facet>
       <h:selectBooleanCheckbox styleClass="select"
       value="#{fichasChecksBean.checks.instalar==1}">
       <a4j:support event="onchange" actionListener="#{fichasChecksBean.actualizarI}"
       reRender="fichasList" immediate="true"
       eventsQueue="sublicencesQueue" ignoreDupResponses="true">
       <s:conversationId/>
       </a4j:support>
       </h:selectBooleanCheckbox>
       </h:column>
       <h:column>
       <f:facet name="header">
       <s:link styleClass="columnHeader"
       value="@IP">
       </s:link>
       </f:facet>
       <h:outputText value="#{fichas.equipos.direccioninternaEquipos}"/>
       </h:column>
       <a4j:support event="onRowClick" immediate="true"
       action="#{fichasHome.setFichasCodFichas(fichas.codFichas)}"/>
       </rich:dataTable>


      I have simplified my table to only two columns.

      Can anyone help me?

      Thanks a lot in advance.