Menu

Creating a table without data control

ADF By May 26, 2012 No Comments

It is possible to display data of a collection object in a table format in Oracle ADF. To achieve this, create a managed bean and configure it in adfc-config.xml. Create a jsf page and create a table component as given below. Pass the collection object of managed bean as a value to the table and pass field name of the collection object which is to be displayed, as a value to the column.
<af:table value=”#{<bean.collectionObject>}”
                        var=”row” rowSelection=”single” id=”t1″>
                <af:column sortProperty=”c1″
                           headerText=”Value”
                           id=”c4″>
                  <af:outputText value=”#{row.<fieldname>}” id=”ot4″/>
                </af:column>

</af:table>

No Comments

Leave a comment

Hi, Welcome here.
JOIN OUR NEWSLETTER
And get notified everytime we publish a new blog post.