Persisting Tapestry Zone -


i have zone in tapestry displays results of search query in grid. when search item clicked redirected page. able hit button , still have search query there. sessionstorage best option? if how persist tapestry zone/grid such?

instead of persisting results (zone/grid, i'm not sure possible) better persist input: search parameters.

using session storage best option in terms of simplicity, has own drawbacks, i.e. search results page not bookmarkable. not mention over-use of mutable server state may lead other issues: ux (work 2 browsers tabs), performance (if have large user base and/or clustered deployment), etc.

i'd try serialise search parameters in url query string. if need support browser button -- use javascript history api.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -