How to bind <rich: dataTable> to bean support?
Is there a way to link rich: dataTable to a bean? I can show the elements in non binding rich: dataTable, but when I add the binding attribute, the whole dataTable disappears.
Code Part:
<rich:dataTable
id="tableDetail"
value="#{myBdeCheck.dataListBde}"
binding="#{myBdeCheck.dataTable}"
var="bdeItem">
<rich:column>
<f:facet name="header">
<h:outputText value="Select" />
</f:facet>
<h:selectBooleanCheckbox value="#{myBdeCheck.selectedRow}"/>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="Shift" />
</f:facet>
<h:outputText value="#{bdeItem.dayShift}"/>
</rich:column>
<f:facet name="footer">
<h:commandButton id="btnAdd" action="#{myBdeCheck.add}"/>
</f:facet>
</rich:dataTable>
For JSF it works private HtmlDataTable dataTable;.
Is there anything else for richfaces? Thanks you
+3
2 answers
HtmlDataTablefor <h:dataTable>, not <rich:dataTable>.
I'm not sure which component class is <rich:dataTable>used, but to find out what you need to replace HtmlDataTablewith Object, and then type / debug in the customizer dataTable.getClass()so that you can learn what it is.
, ? ? DataModel<E> datatable. , :
+4