0 Replies Latest reply on Jul 26, 2010 1:55 AM by santosh190281

    rich:datatable onrowclick

    santosh190281

      All,

       

      I am new user to JSF/Rich Faces and have a requirement when on rowclick of datatable in need to pass a value from selected row to another bean which does some processing and then dispaly a pop up with results.I am using pretty faces also.

       

       

      The proble is the pop is working for the first time and table onrowclick event is fired for the first time only.When i click for the second time the datatable on rowclick event is not triggered.

       

      The configurations are

       

      in the jsf page

       

      <

      li>

       

      <pretty:link mappingId="emeaMailHistory" target="_new" >

       

      <f:param name="msgNo" value="#{backingBean.selectedMessage.msgNo}" ></f:param>

       

      <h:outputText value="#{idmsBundle.Link_history}" />

       

      </pretty:link></li>

       

       

      and the datatable is defined as

       

       

       

       

       

       

       

       

       

       

       

      <

       

       

      rich:dataTable id="dataTable1" rows=

      "#{backingBean.pageSize}"

       

       

      value=

      "#{backingBean.defaultDataModel}"

       

       

      binding="#{backingBean.resultTable}" var=

      "item"

       

       

      cellpadding="0" cellspacing=

      "0"

       

       

      columnsWidth=

      "100px,80px,90px,50px,80px,120px"

       

       

      rowClasses="kylin-dt-odd-row,kylin-dt-even-row"

      >

       

       

       

      <a4j:support id="onRowClickEventId" event=

      "onRowClick"

       

       

      action=

      "#{backingBean.takeSelection}"

       

       

      onsubmit="changeColor(this);" ajaxSingle=

      "false"

       

       

      reRender="actionMenuOutput,criteriaSearch"

      >

       

       

      </a4j:support

      >

       

      Pretty faces Configuration

       

       

       

       

       

      <

       

       

      url-mapping id="emeaMailHistory"

      >

       

       

      <pattern>/mailHistory</pattern

      >

       

       

      <query-param name="msgNo">#{enquiryMailHistory_backing.msgNo}</query-param

      >

       

       

      <view-id>/idms/emea-mail-history.jsf</view-id

      >

       

       

      <action onPostback="true">#{enquiryMailHistory_backing.init}</action

      >

       

       

      </url-mapping

      >