Most of us would have tried to implement pagination on af:table
From Jdeveloper 11.1.1.7, pagination feature is directly available for af:table with a property called "scrollPolicy". We need to have two properties in af:table
scrollPolicy="page"
autoHeightRows="0"
Once this is set the pagination feature should be shown.But table pagination does not show up, until unless we have a floating layout around the table. When we try this, we will get a message in the log saying below
falling back to scrolling mode since we need parent component to flow and authHeightRows=0
Logs looks as below
This is because of the layout around the table. The table should be in a container in flow mode. For example panelGroupLayout or showDetailHeader. So the af:table should be surrounded with a panelGroupLayout
When you surround table with panelGroupLayout, set the layout to "horizontal",or "vertical",or "scroll". Because with default value the pagination does not show up.
If you have a panelCollection around the table already, then surround the panelCollection with a panelGroupLayout.When you have panelCollection around the table, the default layout of panelGroupLayout works.
So with this, the pagination shows up like below
Inspired from https://tompeez.wordpress.com/2013/04/03/jdev-11-1-1-7-0-table-pagination-beware-of-the-layout-container/ - Lot more details available here
From Jdeveloper 11.1.1.7, pagination feature is directly available for af:table with a property called "scrollPolicy". We need to have two properties in af:table
scrollPolicy="page"
autoHeightRows="0"
falling back to scrolling mode since we need parent component to flow and authHeightRows=0
Logs looks as below
This is because of the layout around the table. The table should be in a container in flow mode. For example panelGroupLayout or showDetailHeader. So the af:table should be surrounded with a panelGroupLayout
When you surround table with panelGroupLayout, set the layout to "horizontal",or "vertical",or "scroll". Because with default value the pagination does not show up.
If you have a panelCollection around the table already, then surround the panelCollection with a panelGroupLayout.When you have panelCollection around the table, the default layout of panelGroupLayout works.
So with this, the pagination shows up like below
Inspired from https://tompeez.wordpress.com/2013/04/03/jdev-11-1-1-7-0-table-pagination-beware-of-the-layout-container/ - Lot more details available here
Comments
Post a Comment