5 Replies Latest reply on Jun 11, 2008 9:04 AM by Ruediger xxx

    Problem with eventhandling with more than one control

    Ruediger xxx Newbie

      Hey everyone

      Is there a possibility to use two different onRowClick events for the same element?

      I've tried something like this, but it didn't work out:

      <rich:dataTable var="elem" width="100%" rows="20"
       onRowClick="javasript:doSomething;">
       ...
      
       <rich:componentControl event="onRowClick" for="menu" operation="show" >
       <f:param value="#{elem.id.agreementid}" name="agreementid"/>
       <f:param value="#{row}" name="rownumber"/>
       <f:param value="#{elem.cscid}" name="cscid"/>
       </rich:componentControl>
       ...
      
       <rich:contextMenu submitMode="none" id="menu" >
       ...
      
       </rich:contextMenu>
      </rich:dataTable>
      


      It seems like the first event overrules the second one (so the contextMenu stays hidden), but in my case i need both,
      is there any solution for something like this?

      thanks