Re: non-bookmarkable pages with pageparameters?
use the method setResponsePage(Class, PageParameters) Erik. Op 06-07-10 16:24, Muro Copenhagen schreef: Hi Erik, I tried that with no luck... How would i do this: setResponsePage(new DeliverySecure(deliveryInfo)), and at the same time send pageparameters to the same page? Best Regards Muro -- Sent from my SMTP compliant software Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: non-bookmarkable pages with pageparameters?
Hi Erik, I tried that with no luck... How would i do this: setResponsePage(new DeliverySecure(deliveryInfo)), and at the same time send pageparameters to the same page? Best Regards Muro On Tue, Jul 6, 2010 at 4:10 PM, Erik van Oosten wrote: > Hi Muro, > > Mount your page with a HybridUrlCodingStrategy. For example the > MixedParamHybridUrlCodingStrategy. > > Regards, >Erik. > > > > Op 06-07-10 15:30, Muro Copenhagen wrote: > >> Hi >> >> I have a page that is session based(nonbookmarkable) but at the same time >> i >> want to make sure >> a request parameter is shown in the url... How would i achieve that ? >> >> This is what i am trying to achieve, with example from my code: >> >> My page code constructors: >> >> public DeliverySecure() { >> this(new DeliveryInfo()); >> } >> public DeliverySecure(DeliveryInfo deliveryInfo) { >>... >> } >> >> This page is called to separete ways: >> >> 1 - setResponsePage(DeliverySecure.class, new >> PageParameters("secure=on")); >> >> 2- setResponsePage(new DeliverySecure(deliveryInfo)); >> >> >> When i call the DeliverySecure page with approach 1, i get a url with the >> request parameter: ...&secure=on, >> surely because it treats the page as bookmarkable. >> >> But with the 2. approach i get a url like: ...wicket:interface=:7 >> >> Can i somehow force wicket to add the browser parameter&secure=on, when >> loading the nonbookmarkable page with approach 2 ? >> >> If so how would i achieve that, even though i want load the page with the >> session based deliveryInfo object i have...? >> >> Best Regards >> Muro >> >> >> > > -- > Sent from my SMTP compliant software > Erik van Oosten > http://day-to-day-stuff.blogspot.com/ > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: non-bookmarkable pages with pageparameters?
Hi Muro, Mount your page with a HybridUrlCodingStrategy. For example the MixedParamHybridUrlCodingStrategy. Regards, Erik. Op 06-07-10 15:30, Muro Copenhagen wrote: Hi I have a page that is session based(nonbookmarkable) but at the same time i want to make sure a request parameter is shown in the url... How would i achieve that ? This is what i am trying to achieve, with example from my code: My page code constructors: public DeliverySecure() { this(new DeliveryInfo()); } public DeliverySecure(DeliveryInfo deliveryInfo) { ... } This page is called to separete ways: 1 - setResponsePage(DeliverySecure.class, new PageParameters("secure=on")); 2- setResponsePage(new DeliverySecure(deliveryInfo)); When i call the DeliverySecure page with approach 1, i get a url with the request parameter: ...&secure=on, surely because it treats the page as bookmarkable. But with the 2. approach i get a url like: ...wicket:interface=:7 Can i somehow force wicket to add the browser parameter&secure=on, when loading the nonbookmarkable page with approach 2 ? If so how would i achieve that, even though i want load the page with the session based deliveryInfo object i have...? Best Regards Muro -- Sent from my SMTP compliant software Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
non-bookmarkable pages with pageparameters?
Hi I have a page that is session based(nonbookmarkable) but at the same time i want to make sure a request parameter is shown in the url... How would i achieve that ? This is what i am trying to achieve, with example from my code: My page code constructors: public DeliverySecure() { this(new DeliveryInfo()); } public DeliverySecure(DeliveryInfo deliveryInfo) { ... } This page is called to separete ways: 1 - setResponsePage(DeliverySecure.class, new PageParameters("secure=on")); 2- setResponsePage(new DeliverySecure(deliveryInfo)); When i call the DeliverySecure page with approach 1, i get a url with the request parameter: ...&secure=on, surely because it treats the page as bookmarkable. But with the 2. approach i get a url like: ...wicket:interface=:7 Can i somehow force wicket to add the browser parameter &secure=on, when loading the nonbookmarkable page with approach 2 ? If so how would i achieve that, even though i want load the page with the session based deliveryInfo object i have...? Best Regards Muro