Richafaces + javascript

Hi
Estou com problemas para trabalhar com javascript e richfaces.
Eu criei um datatable que guando o usuario clica ele abre um rich:modalPanel.
O rich:modalPanel deveria conter as informações para editar a linha do datatable, porem eu não consigo coletar estas informações, alguem sabe como ?

Segue código abaixo:

<rich:dataTable 
    onRowClick="Richfaces.showModalPanel('modalpaneEditTimesheet',{width:450, top:100});"
    onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
    onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
    columnClasses="columnLeft, columnLeft, columnRight, columnRight, columnRight, columnRight"
    width="400"
    value="#{timesheetMBean.allTimesheetOfLogin}" var="timesheet">
        
    <h:column>
        <f:facet name="header"><h:outputText value="#{msg.columnDate}"/></f:facet>
        <h:outputText value="#{timesheet.startDay}">
            <f:convertDateTime pattern="EEE  dd, MM, yyyy"  locale="pt"/>
        </h:outputText>
    </h:column>
    
    <h:column>
        <f:facet name="header"><h:outputText value="#{msg.columnStartDay}"/></f:facet>
        <h:outputText value="#{timesheet.startDay}">
            <f:convertDateTime pattern="kk:mm"/>
        </h:outputText>
    </h:column>
</rich:dataTable>


<rich:modalPanel  id="modalpaneEditTimesheet" minHeight="200" minWidth="450"  height="200" width="500" zindex="2000">
    <f:facet name="header">
        <h:outputText value="#{msg.lblTitleModalPanel}" />
    </f:facet>
    <f:facet name="controls">
        <h:graphicImage value="/images/default/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('modalpaneEditTimesheet')" />
    </f:facet>
    
    <p>Any JSF content might be inside the panel. In case of using 
    Facelets or JSF 1.2, it might be any mixed content.</p>
    
    <p>The RichFaces modal panel is good with &lt;a4j:include&gt; to create
    a wizard like behavior.</p>
    <p>The model panel is open and closed from the javascript function
        on <i>Richfaces</i> object. The following code 
        <a >hide this panel</a>:
    Richfaces.hideModalPanel('mp')</p>
    
&lt;/rich:modalPanel&gt;

Primeiro vc deve colocar o evento onclick, ou na linha ou em uma coluna, eu uso uma coluna:

<h:column id="column6" > <f:facet name="header"><h:outputText value="Editar"/></f:facet> <a4j:commandLink oncomplete="Richfaces.showModalPanel('mp',{width:450, top:200})" immediate="true" action="#{controller.doUpdate}" reRender="campos"> <h:graphicImage value="/images/document.gif" alt="#{msg.button_edit}" /> <a4j:commandLink> </h:column>

Aí vc cria no seu MB o metodo para pegar o cara que vc está clicando.

e no rerender vc coloca os nomes dos campos que vc quer, separados por virgula: tipo (txtNome, txtDtNasc, txtTel)