You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Gwyn Evans <gw...@gmail.com> on 2007/11/06 13:04:25 UTC

New page from Ajax form issues - What am I missing?

Hi,
  I've got a form, which I'm processing with Ajax, but I need to go
onto a different page once it submits correctly.  The problem I'm
seeing is that if I do a
   setResponsePage(Sent.class);

then the URL that's being generated is:
  http://.../xyz/?wicket:bookmarkablePage=%3Acom.s.c.web.xyz.Sent

The problem might be that my Home page is mounted as /sc (using
HybridUrlCodingStrategy) but as a result there's no '/' page, so the
request isn't picked up by the Wicket filter & goes to the default
index.html.

  (I'll try mounting the 'Sent' page & see what effect that has, but
wanted to run that by people & I can't access the IRC at the moment!)

/Gwyn


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


Re: New page from Ajax form issues - What am I missing?

Posted by Gwyn Evans <gw...@gmail.com>.
Hi Al,

Tuesday, November 6, 2007, 12:30:00 PM, you wrote:

AM> Gwyn Evans wrote:
>> Hi,
>>   I've got a form, which I'm processing with Ajax, but I need to go
>> onto a different page once it submits correctly.  The problem I'm
>> seeing is that if I do a
>>    setResponsePage(Sent.class);
>> 
>> then the URL that's being generated is:
>>   http://.../xyz/?wicket:bookmarkablePage=%3Acom.s.c.web.xyz.Sent
>> 
>> The problem might be that my Home page is mounted as /sc (using
>> HybridUrlCodingStrategy) but as a result there's no '/' page, so the
>> request isn't picked up by the Wicket filter & goes to the default
>> index.html.
>> 
>>   (I'll try mounting the 'Sent' page & see what effect that has, but
>> wanted to run that by people & I can't access the IRC at the moment!)

AM> Sounds like a bug. As luck would have it, I'm looking at the code around
AM> there for another bug at the moment, so give me a quickstart and a JIRA
AM> issue and I'll fix it.

Thanks - I've added https://issues.apache.org/jira/browse/WICKET-1133
although I then tested it in Jetty as well as Winstone & it was fine
in Jetty/failed in Winstone, so chances are it's not Wicket.

It's just the "?wicket:..." processing though - mounting the
destination page means it works in both containers.
-- 
/Gwyn


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


Re: New page from Ajax form issues - What am I missing?

Posted by Al Maw <wi...@almaw.com>.
Gwyn Evans wrote:
> Hi,
>   I've got a form, which I'm processing with Ajax, but I need to go
> onto a different page once it submits correctly.  The problem I'm
> seeing is that if I do a
>    setResponsePage(Sent.class);
> 
> then the URL that's being generated is:
>   http://.../xyz/?wicket:bookmarkablePage=%3Acom.s.c.web.xyz.Sent
> 
> The problem might be that my Home page is mounted as /sc (using
> HybridUrlCodingStrategy) but as a result there's no '/' page, so the
> request isn't picked up by the Wicket filter & goes to the default
> index.html.
> 
>   (I'll try mounting the 'Sent' page & see what effect that has, but
> wanted to run that by people & I can't access the IRC at the moment!)

Sounds like a bug. As luck would have it, I'm looking at the code around 
there for another bug at the moment, so give me a quickstart and a JIRA 
issue and I'll fix it.

Regards,

Al

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