0 Replies Latest reply on Feb 13, 2008 5:52 AM by Metin OSMAN

    Rich:dataTable onRowClick js + action

    Metin OSMAN Newbie


      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"
       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}" />
       <h:outputText value="#{mail.sender}" />
       <h:outputText value="#{mail.subject}" />
       <h:outputText value="#{mail.dateOrTime}">
       <f:convertDateTime pattern="#{applicationParams.shortDateFormat}" />

      Thanks in advance