Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Clint Checketts
Try a HybridUrlEncodingStrategy for your mount

On Wednesday, May 11, 2011, Carlo Camerino  wrote:
> Hi There,
>
> I'm mounting bookmarkable pages in the Wicket Application. For example,
>
> mount("index", IndexPage.class);
> mount("confirmPage", ConfirmPage.class);
>
> I'm quite successful when using the following code
>
> setResponsePage(IndexPage.class);
>
> http://localhost:8080/application/index
>
> However,
> when I try to use
> setResponsePage(new ConfirmPage());
>
> http://localhost:8080/application/?wicket<1>::
>
>
> It doesn't work already Is there anyway that I could workaround this?
> It appears as something like this.
>
> Thanks
> Carlo
>

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



Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Andrea Del Bene

Sorry, I've misread mail subject :)

There is no error. Just the generated url contains a state
(wicket:interface=.) which means "use this page instance when the
user tries to open this Url".
Using setResponsePage(Class) has no state and creates a Url which when
targeted will create a *new* page instance.

On Wed, May 11, 2011 at 11:50 AM, Andrea Del Bene  wrote:

Hi Carlo,

what kind of error/exception do you get when you use "setResponsePage(new
ConfirmPage())"? Does it work if you use "setResponsePage(
ConfirmPage.class);"


Hi There,

I'm mounting bookmarkable pages in the Wicket Application. For example,

mount("index", IndexPage.class);
mount("confirmPage", ConfirmPage.class);

I'm quite successful when using the following code

setResponsePage(IndexPage.class);

http://localhost:8080/application/index

However,
when I try to use
setResponsePage(new ConfirmPage());

http://localhost:8080/application/?wicket<1>::


It doesn't work already Is there anyway that I could workaround this?
It appears as something like this.

Thanks
Carlo



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








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



Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Martin Grigorov
There is no error. Just the generated url contains a state
(wicket:interface=.) which means "use this page instance when the
user tries to open this Url".
Using setResponsePage(Class) has no state and creates a Url which when
targeted will create a *new* page instance.

On Wed, May 11, 2011 at 11:50 AM, Andrea Del Bene  wrote:
> Hi Carlo,
>
> what kind of error/exception do you get when you use "setResponsePage(new
> ConfirmPage())"? Does it work if you use "setResponsePage(
> ConfirmPage.class);"
>
>> Hi There,
>>
>> I'm mounting bookmarkable pages in the Wicket Application. For example,
>>
>> mount("index", IndexPage.class);
>> mount("confirmPage", ConfirmPage.class);
>>
>> I'm quite successful when using the following code
>>
>> setResponsePage(IndexPage.class);
>>
>> http://localhost:8080/application/index
>>
>> However,
>> when I try to use
>> setResponsePage(new ConfirmPage());
>>
>> http://localhost:8080/application/?wicket<1>::
>>
>>
>> It doesn't work already Is there anyway that I could workaround this?
>> It appears as something like this.
>>
>> Thanks
>> Carlo
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Andrea Del Bene

Hi Carlo,

what kind of error/exception do you get when you use 
"setResponsePage(new ConfirmPage())"? Does it work if you use 
"setResponsePage( ConfirmPage.class);"



Hi There,

I'm mounting bookmarkable pages in the Wicket Application. For example,

mount("index", IndexPage.class);
mount("confirmPage", ConfirmPage.class);

I'm quite successful when using the following code

setResponsePage(IndexPage.class);

http://localhost:8080/application/index

However,
when I try to use
setResponsePage(new ConfirmPage());

http://localhost:8080/application/?wicket<1>::


It doesn't work already Is there anyway that I could workaround this?
It appears as something like this.

Thanks
Carlo




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



Questions Regarding Wicket URL Generation

2011-05-11 Thread Carlo Camerino
Hi There,

I'm mounting bookmarkable pages in the Wicket Application. For example,

mount("index", IndexPage.class);
mount("confirmPage", ConfirmPage.class);

I'm quite successful when using the following code

setResponsePage(IndexPage.class);

http://localhost:8080/application/index

However,
when I try to use
setResponsePage(new ConfirmPage());

http://localhost:8080/application/?wicket<1>::


It doesn't work already Is there anyway that I could workaround this?
It appears as something like this.

Thanks
Carlo


Re: URL generation

2011-02-05 Thread Uwe Schäfer

On 02/04/2011 08:37 PM, Erik van Oosten wrote:

Hi Erik,


I sometimes use absolute URLs in a project. For code see
https://issues.apache.org/jira/browse/WICKET-1974


splendid, thanks!

uwe

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



Re: URL generation

2011-02-04 Thread Erik van Oosten

Hi Uwe,

I sometimes use absolute URLs in a project. For code see
https://issues.apache.org/jira/browse/WICKET-1974

Regards,
Erik.


Op 04-02-11 16:46, Uwe Schäfer schreef:

Hi

i am working on a wicket app which is to be included in some 3rd party 
page. the page somewhat uses a thing like $.load to include the 
wicket-generated code.
To sum up, wicket has no idea that its created page will be sliced 
into pieces and included in some other page.


any url wicket creates, is relative to the generated page, like:
"../../../?wicket:interface=:0:wrapper:form::IFormSubmitListener::" 
for posting a form.


is there a way to make wicket create absolute URLs instead?

cu uwe



--
Erik van Oosten
http://www.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



URL generation

2011-02-04 Thread Uwe Schäfer

Hi

i am working on a wicket app which is to be included in some 3rd party 
page. the page somewhat uses a thing like $.load to include the 
wicket-generated code.
To sum up, wicket has no idea that its created page will be sliced into 
pieces and included in some other page.


any url wicket creates, is relative to the generated page, like:
"../../../?wicket:interface=:0:wrapper:form::IFormSubmitListener::" 
for posting a form.


is there a way to make wicket create absolute URLs instead?

cu uwe


Custom url generation

2010-02-16 Thread Vit Rozkovec

Dear friends in code,
how would it be possible to make wicket work in a scenario like this:

Standard generation of urls:
http://www.mysite.com/site/user1/home
http://www.mysite.com/site/user1/gallery
http://www.mysite.com/site/user1/shop

Virtual host aware generation of url:
http://www.user1domain.com/home
http://www.user1domain.com/gallery
http://www.user1domain.com/shop


I do know how to setup Apache to do url rewriting, I do not know, 
however, how to make Wicket generate such urls.
Pages are mounted with IndexedHybridUrlCodingStrategy, I have tried to 
look into this strategy's encode() method, but I could not find how 
should I change the behaviour, as this method returns only the part 
after host www.mysite.com.


I will be grateful for any kick that will direct me the right way.

Thank you very much.

Regards
Vitek


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