i implemented selectableDataModel and extend ListDataModel i can excellently see the content of table.
<h:form>
<p:dataTable id="selectProductTable" var="product" value="#{manageFormsView.productModel}" selection="#{manageFormsView.product}" >
<p:column selectionMode="single"/>
<p:column>
<f:facet name="header">
<h:outputText value="Urun Ismi" />
</f:facet>
<h:outputText value="#{product.name}" />
</p:column>
</p:dataTable>
<h:panelGrid columns="2">
<p:commandButton action="#{manageFormsView.setSelectedProductToForm}"
update="main_form"
oncomplete="if(#{manageFormsView.errorText == 'SUCCESS'}){ selectProductDlg.hide();}"
value="sec">
</p:commandButton>
<p:commandButton onclick="selectProductDlg.hide();" action="#{manageFormsView.cancelSetRequest}"
value="Iptal">
</p:commandButton>
</h:panelGrid>
</h:form>
but when i click 'sec' in setSelectedProductToForm
function i expect to see manageFormsView.product
with a content but it is null.
what may the problem be?
thanks