I think the problem is that you have persisted the category name, but not the list of news articles that the grid is using, so when the second page is requested, no data is available to display.
Try either a) adding @Persist to your list of data items your grid is displaying, or b) load the list of data items within onActivate. Also, if you use onActivate, it is also a good idea to pair it with onPassivate, as follows: public String onPassivate() { return currentCategoryName; } If you do that, you could probably even ditch the @Persist tag on the currentCategoryName field, as the activation context is passed around in the url. cheers, Scott On Sun, 29 Mar 2009 12:57:32 Davor Miku wrote: > Hello! > > I have component witch takes one parameter and based on it > shows Grid component. > > In page Archive, I have : > > public class Archive > { > .... > @Persist > private String currentCategoryName; > .... > public void onActivate(String currentCategoryName) { > this.currentCategoryName = currentCategoryName; > } > } > > > In Archive.tml: > > <t:category.archive t:currentCategory="currentCategoryName" /> > > > So when you go to www.example/archive/news page > you'll get grid showing articles from news category. > > Problem: > > When you click on page number, i.e. 4 you'll get : > > "There is no data to display." > > message, and URL will be www.example/archive > > When I go back to www.example/archive, 4th page will show. > > > > Is there any way to fix this? > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org