You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "sergiut@edifecs.com" <se...@edifecs.com> on 2006/07/04 16:26:15 UTC

DataTable big failure regarding page number

Hello everyone!

	I have a t:dataTable (tomahawk's) and a t:dataScroller to paginate it.
There is a link for editing each line (which corresponds to a short resume  
of a bigger DB record),
and clicking it I can go to another page which implements it's editing.  
There are two buttons on
that editing page: SAVE_AND_CLOSE and CANCEL. Both go back to the original  
JSP with dataTable
described above.
	The problem found (and is not so trivial!)is the following:
	When dataTable contains more than one page, try to go to it's 2nd one,  
for example.
Click an item to edit. Click CANCEL. Surprisingly, but you will see  
records from the first page!
	DataScroller at this stage is displaying that 2nd page (is boldfaced, and  
getter returns correct number).
	DataTable's "int getFirst()" returns the needed integer to begin from  
second page.

HELP !!!

-- 
Regards, SergiuT.