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!

Surround af:table with some other component to adjust height and get scroll bar

AmittMar 23 2018 — edited Mar 23 2018

Jdev 11.1.1.7

In my adf application i am using a af:table to display all records from database table and adf table. Since the table has 125+ rows and at some point we need to iterate through rows in java class we need to make the range size 200 for java code to iterate through all rows. This makes the table display all 125 rows with scroll bar in browser and to reach the button below the af:table, user has to scroll all the way down . Which is not good design.

  <iterator Binds="ServiceAvailableUView1" RangeSize="200"

              DataControl="OrgServiceAppModDataControl"

              id="ServiceAvailableUView1Iterator"/>

I did make the rangesize -1 to get scroll bar within table but this scroll is not very consistent and if you scroll all the way down, user can not see the first scroll even by scrolling up.

I am planning to surround the table with some component so that i can adjust its height and get scroll bar as well.

i did following:

<af:panelBox id="appbox"

                 contentStyle="background-color:white;"

                 inlineStyle="width:1400px; font-family:arial; height:1000px"

                 showDisclosure="false"-->

  <af:table value="#{bindings.ServiceAvailableUView1.collectionModel}" var="row" scrollPolicy="auto"

            rows="#{bindings.ServiceAvailableUView1.rangeSize}"

            width="1300" autoHeightRows="0"

            emptyText="#{bindings.ServiceAvailableUView1.viewable ? 'No data to display.' : 'Access Denied.'}"

            fetchSize="#{bindings.ServiceAvailableUView1.rangeSize}"

            rowBandingInterval="0" id="t1">

This does allow me to adjust height but the scoll does not appear for panel box.

Is there some component i can use of make panel box get scroll bar?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2018
Added on Mar 23 2018
1 comment
308 views