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 <a4j:include> 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>
</rich:modalPanel>