Re: Page reload after submit action

2010-03-14 Thread Manfred Bergmann

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
> 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:///blog/id/
>> where /blog is mounted as bookmarkable in Application to Blog WebPage
>> subclass which has a constructor with PageParameters which accepts
>> "id=" which then is translated to /blog/id/ 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 .
>> In onSubmit I tried with: setResponsePage(Blog.class, new
>> PageParameters("id="+) which ends up that a page with this
>> URL
>> is loaded /blog/id/blog/id/ 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-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Page reload after submit action

2010-03-13 Thread vineet semwal
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
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:///blog/id/
> where /blog is mounted as bookmarkable in Application to Blog WebPage
> subclass which has a constructor with PageParameters which accepts
> "id=" which then is translated to /blog/id/ 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 .
> In onSubmit I tried with: setResponsePage(Blog.class, new
> PageParameters("id="+) which ends up that a page with this URL
> is loaded /blog/id/blog/id/ 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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
regards,
Vineet Semwal


Page reload after submit action

2010-03-13 Thread Bergmann Manfred
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:///blog/id/
where /blog is mounted as bookmarkable in Application to Blog WebPage subclass 
which has a constructor with PageParameters which accepts "id=" 
which then is translated to /blog/id/ 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 .
In onSubmit I tried with: setResponsePage(Blog.class, new 
PageParameters("id="+) which ends up that a page with this URL is 
loaded /blog/id/blog/id/ 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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org