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?
>
>
using @Persist("flash") instead of @Perisist or
remove @Persist and set tapestry.suppress-redirect-from-action-requests to
true. It not a good way.see
http://tapestry.apache.org/tapestry5.1/guide/conf.html
thanks
luna
--
View this message in context:
http://www.nabble.com/Grid-Pagination-And-onActivate%28%29-tp22763914p22764357.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org