user1549556
user1549556

Reputation:

Pagination using oracle ADF

I have problem in Oracle ADF pagination 
Bean code is:     
    private UIXIterator purVO1Iterator;
private int rowsPerPage = 20;
public void previousActionListener(ActionEvent actionEvent) {
this.getPurVO1Iterator().setFirst(this.getPurVO1Iterator().getFirst() -
                                  rowsPerPage);
}

public void nextActionListener(ActionEvent actionEvent) {
this.getPurVO1Iterator().setFirst(this.getPurVO1Iterator().getFirst() +
                                  rowsPerPage);

} jsp code is:

 <af:iterator id="i11" var="row" 
          value="#{bindings.purVO1.collectionModel}"
          binding="#{backingBeanScope.Purchage.purVO1Iterator}"
          rows="#{backingBeanScope.Purchage.rowsPerPage}">

..............

Here problem is it taking long time when we click next button . Is there any better solution for this.

Upvotes: 0

Views: 686

Answers (2)

lokoko
lokoko

Reputation: 5803

You would have to go to your pageDef where this iterator tree is defined and set the rangeSize on the iterator there. Also, you might want to check in the VO definition. Setting it on the iterator would not override the setting done on the VO.

Upvotes: 0

Shay Shmeltzer
Shay Shmeltzer

Reputation: 3721

You need to check the range setting of the executable that is used by your iterator Purchage. Also you should check the settings on the VO tuning section for your query.

Upvotes: 1

Related Questions