im new to primefaces and i have a very strange problem:
im using JSF Mojarra 2.0.2 and primefaces 2.2.M1
The following example from the Showcase does not work for me:
Whenever I select a row, although the dialog appears,
but no current data will be displayed! (always: no record found...)
After refreshing/reloading the Page clicking on any row shows the data of the before the reload selected row...
From debbuging i know "tableBean.selectedCar" is called and current data is transmitted but the dialog always show: no record found
Please Help me, i need this Work for my next Project...
Sorry for my bad Englisch
View
Code: Select all
<p:dataTable var="car" value="#{tableBean.cars}"
selection="#{tableBean.selectedCar}" selectionMode="single"
onRowSelectUpdate="display" onRowSelectComplete="carDialog.show()">
...
</p:dataTable>
Code: Select all
<p:dialog header="Car Detail" widgetVar="carDialog" resizable="false"
width="200" showEffect="explode" hideEffect="explode">
...
</h:panelGrid>
</p:dialog>
Bean
Code: Select all
public Car getSelectedCar() {
return selectedCar;
}
public void setSelectedCar(Car selectedCar) {
this.selectedCar = selectedCar;
}