setResponsePage(new DetailsPage(SearchPage.this)); Or if you want to keep bookmarkability, then you need to do some pagemap wizardry, retrieving the previous page from the page history and checking if that is a searchpage instance, if so put it in a link.
i think a couple of weeks ago this was also discussed on the list, so you can find the code for retrieving the page there. Martijn On 3/13/08, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > Hi! > > I was wondering on how to deal with a back link. Not back button of browser > but a back link ( not history.back() in javascript ) > > A user has performed a search for items. He/she found one on page 3. In my > wicket link onclick event I do the following. > > Item i = ( Item ) item.getModelObject(); > setResponsePage( new ItemOverViewPage( i ) ) or something like this. > > How do I in the ItemOverViewPage handle so that the user can go back to the > latest search? Is there any built in feature in Wicket for this? > > -- > View this message in context: > http://www.nabble.com/Back-link-tp16026896p16026896.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
