hi cu uwe,

I've tried your mentioned method below to setResponsePage for keeping state
in BookmarkablePage.
But it doesn't work.

here is my implemented codes:
--
PageParameters oParam=new PageParameters();
oParam.add("product_oid",String.valueOf(oProduct.getOid()));
DetailProduct targetPage=new DetailProduct();
targetPage.setBackPage(this.getPage());
targetPage.setMetaData(HybridUrlCodingStrategy.PAGE_PARAMETERS_META_DATA_KEY,
oParam);
setResponsePage(targetPage);
--
I assumed DetailProduct(PageParameters params) will be called internally.
But the process still called DetailProduct() instead of 
DetailProduct(PageParameters params).
So some exception happened.

Could you please give me more information about that and any suggestions?

Roland.

Uwe Schäfer wrote:
> 
> classacts schrieb:
> 
>> Let's say I'm on bookmarkable Page1.class with PageParameters
>> {"id=1,0=foo,1=bar"} and I click on a BookmarkablePage link to ConfigPage
>> PageParameters {"id=1"} and do some stuff like submit forms on that page,
>> etc... How can I place a Back button or link to the Page1.class with its
>> PageParameters intact?  The mechanism should also would even if the
>> originating page isn't Page1.class but any arbitrary class.
> 
> *IF* i get this correctly, we do that by using HybridURLEncoding and 
> passing pageInstances around.
> linking to bookmarkable urls with additional state can be done with smth 
> like:
> 
> Page targetPage = new BookmarkablePageClass(...
> // the add state to it, like
> targetPage.setPageToNavigateBackTo(getWebPage());
> // and add params for the URL
> targetPage.setMetaData(HybridUrlCodingStrategy.PAGE_PARAMETERS_META_DATA_KEY, 
> new PageParameters(...));
> setResponsePage(targetPage);
> 
> cu uwe
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Going-back-to-a-previous-URL--tp19254601p24387309.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to