How to use table pagination controls

Kind of a newbe here but I am having serious problems trying to figure out how to use the pagination controls on the table component. So far I have found nothing on this in the various blogs, the creator forum nor on the netbeans Visual Web Pack page. Would anyone have a small sample that demonstrates how to access these values and event? Maybe even point me to a site that has some documentation on how these work.

Any help would be greatly appreciated!

[469 byte] By [bijou] at [2007-11-26 11:51:08]
# 1
Nobody has any ideas? Just looking for a way to determine when the "next page" button is pressed and get thre value in the page number text box. There has to be a way to do this but I can find no samples on the web. Again, any help whatsoever would be greatly appreciated.
bijou at 2007-7-7 12:05:59 > top of Java-index,Development Tools,Java Tools...
# 2

I am having the same problems.

I have a table that is being populated by a data provider, and I have instances where the table can contain multiple pages of data. My tabel contains elements such as table1, tableRowGroup1, and tableColumn1 (yeah I know, creative, right?).

THE PROBLEM:

I want to be able to dynamically resize column 1 based on the max length of the items in that column. to do this, I need to be able to know which data items from my provider are being displayed.

A SOLUTION:

The easiest way I could think of was to get the current table page, and by knowing how many rows are on the page I could iterate through the objects being displayed on that page. I thought the best way to get the current page would be to query the table for the current page by using the following:

tableRowGroup1.getPage()// get the current page being displayed

tableRowGroup1.getPages()// get the tot # of table pages

ROADBLOCK:

no matter which page I am on in the table (paginated), this always returns a 1 - even if i am on page 2 of the data.

So, clearly this doesn't work. How does one get at the pagination data at the bottom of the table?

wxSean at 2007-7-7 12:05:59 > top of Java-index,Development Tools,Java Tools...
# 3

Hi Folks,

The following resources will be of use to you.

http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/help/2upd ate1/ui_elements/dialogs/data_table_layout_db.html

http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/help/2upd ate1/ui_elements/palette/bh/table_structure.html

http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/conf ig_table_rows.html

http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/dat aproviders.html#06

Hope it helps

K

kish@sun at 2007-7-7 12:05:59 > top of Java-index,Development Tools,Java Tools...