Re: How to change table page index by a form submit event

2006-10-18 Thread Huang Gehua
:D reset worked very well. Thanks By the way reset method "Resets the state of the component and forces it to load a new TableModel from the tableModel binding the next time it renders". If the new record that just added is at second or 3rd page how to make the table navigate to the page w

RE: How to change table page index by a form submit event

2006-10-16 Thread Thomas.Vaughan
Try the .reset() method on the table. I've got a page with something like this (in the .java): @InjectComponent( "table" ) public abstract Table getTable( ); void resetFields( ) { ... setItemsPerPage( DEFAULT_PAGE_SIZE ); // Reset table, so that on next rendering it begins at