You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by ma...@merkur.at on 2006/01/23 15:30:48 UTC

dataTable -> how to RESET paging after modification of dataTable value

Hi,

I have a dataTable and dataScroller bound to the dataTable. 

I present a list of data  with the dataTable.

When I use the dataScroller to move to the second page and I read a new 
datalist  which has e.g. only 1 row the dataTable diplays no data.

It seems that the actual page is still the second page.

I tried to notify dataTable  programmatically  (dataTable.setFirst(0) and 
dataTable.setValue(...);) in an action listener with no results

Could anybody give me a hint how to reset the page?

BTW: shouldn't be a check  wheter the dataTable data / dataScroller 

TIA

Martin 


Re: dataTable -> how to RESET paging after modification of dataTable value

Posted by mickyw <mi...@yahoo.com>.
Did you ever get this working?

I have exactly the same problem.

>From one list of data, the user can click do feret down to less and less
data.  If they do this from  a page greater than page 1, and the resulting
dataset is only 1 page, it doesn't show.

I've tried the setFirst and the setPageIndex stuff, it doesn't seem to work.

help?
--
View this message in context: http://www.nabble.com/dataTable--%3E-how-to-RESET-paging-after-modification-of-dataTable-value-t979434.html#a3659304
Sent from the MyFaces - Users forum at Nabble.com.