Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Table disappears in the page when binding it to a managed bean property

HayfaMay 20 2022

Hello, I am working with jdev 12c and jdk 8. When I bind the table on jsf page to a managed bean property it disappears from the page and when I remove the binding to the manged bean property it appears. So can you help me please to solve this problem.
The jsf code is :
<af:table value="#{bindings.RefObligationVO2.collectionModel}"
var="row" autoHeightRows="10"
rows="#{bindings.RefObligationVO2.rangeSize}"
emptyText="#{bindings.RefObligationVO2.viewable ? raficviewBundle.NO_DATA_TO_DISP : raficviewBundle.ACCES_DENIED}"
rowBandingInterval="0"
selectedRowKeys="#{bindings.RefObligationVO2.collectionModel.selectedRow}"
selectionListener="#{bindings.RefObligationVO2.collectionModel.makeCurrent}"
rowSelection="single"
fetchSize="#{bindings.RefObligationVO2.rangeSize}"
filterModel="#{bindings.RefObligationVO2Query.queryDescriptor}"
filterVisible="true"
queryListener="#{bindings.RefObligationVO2Query.processQuery}"
varStatus="vs" id="t5" contentDelivery="immediate"
immediate="true"
columnStretching="column:c22"
styleClass="AFStretchWidth"
binding="#{GestionObligationBean.tableBind}">
The manged bean code is :
public class GestionObligationBean {
private RichTable tableBind;
public void setTableBind(RichTable tableBind) {
this.tableBind = tableBind;
}
public RichTable getTableBind() {
return tableBind;
}
The adfc-config code is:
<managed-bean id="__4">
<managed-bean-name>GestionObligationBean</managed-bean-name>
<managed-bean-class>bean.bean.GestionObligationBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>

Comments
Post Details