You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Prag <pr...@gmail.com> on 2009/03/05 02:32:27 UTC

Forward to a different page, but same URL

Is it possible to render a different pageClassB when pageClassA is called,
while maintaining the same URL?
Using redirectToInterceptPage will send and redirect to a non-bookmarkable
session url, and thus isn't an option.

So is it possible to render/switch from different .html files fom the same
PageClass?

In an action (MVC push) webframework, you could simply specify and forward
to a different view file without any HTTP redirect and within the same HTTP
request, but how can you do this in Wicket while keeping the same URL?
-- 
View this message in context: http://www.nabble.com/Forward-to-a-different-page%2C-but-same-URL-tp22343544p22343544.html
Sent from the Wicket - User 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: Forward to a different page, but same URL

Posted by Prag <pr...@gmail.com>.
I fixed it using setResponsePage().
I though that that would do a redirect (what I didn't wanted), but it
didn't, so it's solved :)



Jeremy Thomerson-5 wrote:
> 
> redirect to intercept page doesn't have to go to a non-bookmarkable
> page...
> just redirect to Page.class rather than new Page().
> 
> On Wed, Mar 4, 2009 at 7:32 PM, Prag <pr...@gmail.com> wrote:
> 
>>
>> Is it possible to render a different pageClassB when pageClassA is
>> called,
>> while maintaining the same URL?
>> Using redirectToInterceptPage will send and redirect to a
>> non-bookmarkable
>> session url, and thus isn't an option.
>>
>> So is it possible to render/switch from different .html files fom the
>> same
>> PageClass?
>>
>> In an action (MVC push) webframework, you could simply specify and
>> forward
>> to a different view file without any HTTP redirect and within the same
>> HTTP
>> request, but how can you do this in Wicket while keeping the same URL?
>> --
>> View this message in context:
>> http://www.nabble.com/Forward-to-a-different-page%2C-but-same-URL-tp22343544p22343544.html
>> Sent from the Wicket - User 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
>>
>>
> 
> 
> -- 
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Forward-to-a-different-page%2C-but-same-URL-tp22343544p22343847.html
Sent from the Wicket - User 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: Forward to a different page, but same URL

Posted by Jeremy Thomerson <je...@wickettraining.com>.
redirect to intercept page doesn't have to go to a non-bookmarkable page...
just redirect to Page.class rather than new Page().

On Wed, Mar 4, 2009 at 7:32 PM, Prag <pr...@gmail.com> wrote:

>
> Is it possible to render a different pageClassB when pageClassA is called,
> while maintaining the same URL?
> Using redirectToInterceptPage will send and redirect to a non-bookmarkable
> session url, and thus isn't an option.
>
> So is it possible to render/switch from different .html files fom the same
> PageClass?
>
> In an action (MVC push) webframework, you could simply specify and forward
> to a different view file without any HTTP redirect and within the same HTTP
> request, but how can you do this in Wicket while keeping the same URL?
> --
> View this message in context:
> http://www.nabble.com/Forward-to-a-different-page%2C-but-same-URL-tp22343544p22343544.html
> Sent from the Wicket - User 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
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com