You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by fadeyev <fa...@yandex.ru> on 2010/10/08 08:04:47 UTC

Nice URL for non-bookmarkable page

In my onSubmit handler I have a statement:

setResponsePage(new AfterPaymentPage(payment));

Where payment is an object of the Payment class, so AfterPaymentPage is
non-bookmarkable

AfterPaymentPage opens with url looking like this: 
applicationcontext/?wicket:interface=:3::

Is there any way (by fiddling with url coding strategies or smth like that)
to insert the word thankyou in the url?
applicationcontext/thankyou?wicket:interface=:3::
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nice-URL-for-non-bookmarkable-page-tp2967886p2967886.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Nice URL for non-bookmarkable page

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Can't spell correctly my own name:-)

Ernesto

On Sun, Oct 10, 2010 at 5:36 PM, Ernesto Reinaldo Barreiro
<re...@gmail.com> wrote:
> Can't you just pass a parameter (e.g. an id) and from there retrieve
> your payment object?
>
> Enretso
>
> On Sun, Oct 10, 2010 at 1:05 PM, fadeyev <fa...@yandex.ru> wrote:
>>
>> Ok, but what to do with the payment object?
>>
>> As far as I know bookmarkable page can't have a constructor with Payment
>> object as an argument - it can have only constuctor without arguments or
>> with PageParameters argument.
>> --
>> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nice-URL-for-non-bookmarkable-page-tp2967886p2970170.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>

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


Re: Nice URL for non-bookmarkable page

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Can't you just pass a parameter (e.g. an id) and from there retrieve
your payment object?

Enretso

On Sun, Oct 10, 2010 at 1:05 PM, fadeyev <fa...@yandex.ru> wrote:
>
> Ok, but what to do with the payment object?
>
> As far as I know bookmarkable page can't have a constructor with Payment
> object as an argument - it can have only constuctor without arguments or
> with PageParameters argument.
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nice-URL-for-non-bookmarkable-page-tp2967886p2970170.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: Nice URL for non-bookmarkable page

Posted by fadeyev <fa...@yandex.ru>.
Ok, but what to do with the payment object? 

As far as I know bookmarkable page can't have a constructor with Payment
object as an argument - it can have only constuctor without arguments or
with PageParameters argument.
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nice-URL-for-non-bookmarkable-page-tp2967886p2970170.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Nice URL for non-bookmarkable page

Posted by Igor Vaynberg <ig...@gmail.com>.
make the page bookmarkable and mount it onto /thankyou url

-igor

On Thu, Oct 7, 2010 at 11:04 PM, fadeyev <fa...@yandex.ru> wrote:
>
> In my onSubmit handler I have a statement:
>
> setResponsePage(new AfterPaymentPage(payment));
>
> Where payment is an object of the Payment class, so AfterPaymentPage is
> non-bookmarkable
>
> AfterPaymentPage opens with url looking like this:
> applicationcontext/?wicket:interface=:3::
>
> Is there any way (by fiddling with url coding strategies or smth like that)
> to insert the word thankyou in the url?
> applicationcontext/thankyou?wicket:interface=:3::
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nice-URL-for-non-bookmarkable-page-tp2967886p2967886.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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