0 Replies Latest reply on Feb 13, 2008 5:52 AM by metin.osman

    Rich:dataTable onRowClick js + action

    metin.osman

      Hi,

      i am trying to add an action to a rich:dataTable onRowClick event,
      but it seems like the js function that i am calling on same event is preventing the action to run.

      I have seen some things about rich:componentControl, but i don't know how to use it in my case.

       <rich:dataTable style="border-color: #ffffff"
       onRowMouseOver="selectTableRow(this);"
       onRowMouseOut="unselectTableRow(this);"
       onRowClick="selectTableRow(this, true);" border="0" cellpadding="0"
       cellspacing="0" var="mail" rowKeyVar="mailLine"
       value="#{portalBean.mails}" styleClass="mailTable"
       columnClasses="mailSender, mailSubject, mailDateOrTime">
      
       <a4j:support event="onRowClick"
       action="#{portalBean.selectMailLine}" ajaxSingle="true"
       reRender="leftMenuForm:tp, mainForm:tabPanel">
       <f:param name="senderEmail" value="#{mail.senderEmail}" />
       </a4j:support>
      
       <h:column>
       <h:outputText value="#{mail.sender}" />
       </h:column>
       <h:column>
       <h:outputText value="#{mail.subject}" />
       </h:column>
       <h:column>
       <h:outputText value="#{mail.dateOrTime}">
       <f:convertDateTime pattern="#{applicationParams.shortDateFormat}" />
       </h:outputText>
       </h:column>
       </rich:dataTable>
      


      Thanks in advance