You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Bergmann Manfred <mb...@software-by-mabe.com> on 2010/03/14 00:45:34 UTC

Page reload after submit action

Hi there.

I have the following problem with reloading the same page that is currently loaded.
I'm working on a blog application. Normally the URL in the browser for a specific blog entry is like this:
http://<host>/blog/id/<someblogid>
where /blog is mounted as bookmarkable in Application to Blog WebPage subclass which has a constructor with PageParameters which accepts "id=<someblogid>" which then is translated to /blog/id/<someblogid> by Wicket.

Now there is an add comment panel on the page that, when a user submits it, should load the Blog page for the same <someblogid>.
In onSubmit I tried with: setResponsePage(Blog.class, new PageParameters("id="+<someblogid>) which ends up that a page with this URL is loaded /blog/id/blog/id/<someblogid> which of course doesn't work.
Reloading the same page using setResponsePage(getWebPage) doesn't work either.

I'm probably missing the obvious but I'd appreciate if someone could help me here.


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


Re: Page reload after submit action

Posted by Manfred Bergmann <ma...@gmx.net>.
Hello Vinnet.

Thank you. Upgrading to Wicket 1.4.7 fixed the problem.


Cheers,
Manfred


vineet semwal wrote:
> 
> Hi,
> It appears you are on 1.4.6,upgrade to 1.4.7 and see if the problem
> disappears.
> 
> 
> On Sun, Mar 14, 2010 at 5:15 AM, Bergmann Manfred
> <mb...@software-by-mabe.com>wrote:
> 
>> Hi there.
>>
>> I have the following problem with reloading the same page that is
>> currently
>> loaded.
>> I'm working on a blog application. Normally the URL in the browser for a
>> specific blog entry is like this:
>> http://<host>/blog/id/<someblogid>
>> where /blog is mounted as bookmarkable in Application to Blog WebPage
>> subclass which has a constructor with PageParameters which accepts
>> "id=<someblogid>" which then is translated to /blog/id/<someblogid> by
>> Wicket.
>>
>> Now there is an add comment panel on the page that, when a user submits
>> it,
>> should load the Blog page for the same <someblogid>.
>> In onSubmit I tried with: setResponsePage(Blog.class, new
>> PageParameters("id="+<someblogid>) which ends up that a page with this
>> URL
>> is loaded /blog/id/blog/id/<someblogid> which of course doesn't work.
>> Reloading the same page using setResponsePage(getWebPage) doesn't work
>> either.
>>
>> I'm probably missing the obvious but I'd appreciate if someone could help
>> me here.
>>
>>
>> Manfred
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> 
> -- 
> regards,
> Vineet Semwal
> 
> 

-- 
View this message in context: http://old.nabble.com/Page-reload-after-submit-action-tp27891746p27894271.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: Page reload after submit action

Posted by vineet semwal <vi...@gmail.com>.
Hi,
It appears you are on 1.4.6,upgrade to 1.4.7 and see if the problem
disappears.


On Sun, Mar 14, 2010 at 5:15 AM, Bergmann Manfred
<mb...@software-by-mabe.com>wrote:

> Hi there.
>
> I have the following problem with reloading the same page that is currently
> loaded.
> I'm working on a blog application. Normally the URL in the browser for a
> specific blog entry is like this:
> http://<host>/blog/id/<someblogid>
> where /blog is mounted as bookmarkable in Application to Blog WebPage
> subclass which has a constructor with PageParameters which accepts
> "id=<someblogid>" which then is translated to /blog/id/<someblogid> by
> Wicket.
>
> Now there is an add comment panel on the page that, when a user submits it,
> should load the Blog page for the same <someblogid>.
> In onSubmit I tried with: setResponsePage(Blog.class, new
> PageParameters("id="+<someblogid>) which ends up that a page with this URL
> is loaded /blog/id/blog/id/<someblogid> which of course doesn't work.
> Reloading the same page using setResponsePage(getWebPage) doesn't work
> either.
>
> I'm probably missing the obvious but I'd appreciate if someone could help
> me here.
>
>
> Manfred
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
regards,
Vineet Semwal