Skip to main content

Posts

Showing posts with the label ADF refresh service table

ADF : Refreshing a service backed table and keeping the correct item highlighted

Make sure your table has  displayRow="selected" set. <af:table value="#{bindings.CustomerVO.collectionModel}" var="row"   rows="#{bindings.CustomerVO.rangeSize}"   emptyText="#{bindings.CustomerVO.viewable ? 'No data to display.' : 'Access Denied.'}"   fetchSize="#{bindings.CustomerVO.rangeSize}" rowBandingInterval="0"   selectedRowKeys="#{bindings.CustomerVO.collectionModel.selectedRow}"   rowSelection="single" id="table" columnStretching="last" immediate="true"   displayRow="selected" binding="#{viewScope.customerTypesBean.table}"   selectionListener="#{viewScope.customerBean.handleTableRowSelection}"> Invoke the following code when your table needs a refresh //use the name of your tables result iterator here     DCIteratorBinding iterator = BackingBeanUtils.getIteratorBinding(getResultsIteratorName())...