You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Bernard <bh...@gmail.com> on 2013/04/25 12:13:17 UTC
Panel replacement and "No Page found for component"
Hi,
My form with multiple buttons replaces its parent panel at the end of
the button's onSubmit().
But after onSubmit(), the StateLessForm's process() method calls
getPage() with the result of a RuntimeException "No Page found for
component".
I use StatelessForm because I want the page to be stateless with it in
most cases but in other cases the page should become stateful.
Any ideas?
Many thanks,
Bernard
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Panel replacement and "No Page found for component"
Posted by Bernard <bh...@gmail.com>.
Thanks. Will do.
On Thu, 25 Apr 2013 13:27:06 +0300, you wrote:
>Hi,
>
>I don't see another solution but to copy/paste StatelessForm code in your
>own class until Wicket 6.8.0 and use #findPage() instead of #getPage().
>File a ticket for improvement.
>
>
>On Thu, Apr 25, 2013 at 1:13 PM, Bernard <bh...@gmail.com> wrote:
>
>> Hi,
>>
>> My form with multiple buttons replaces its parent panel at the end of
>> the button's onSubmit().
>>
>> But after onSubmit(), the StateLessForm's process() method calls
>> getPage() with the result of a RuntimeException "No Page found for
>> component".
>>
>> I use StatelessForm because I want the page to be stateless with it in
>> most cases but in other cases the page should become stateful.
>>
>> Any ideas?
>>
>> Many thanks,
>>
>> Bernard
>>
>>
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Panel replacement and "No Page found for component"
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
I don't see another solution but to copy/paste StatelessForm code in your
own class until Wicket 6.8.0 and use #findPage() instead of #getPage().
File a ticket for improvement.
On Thu, Apr 25, 2013 at 1:13 PM, Bernard <bh...@gmail.com> wrote:
> Hi,
>
> My form with multiple buttons replaces its parent panel at the end of
> the button's onSubmit().
>
> But after onSubmit(), the StateLessForm's process() method calls
> getPage() with the result of a RuntimeException "No Page found for
> component".
>
> I use StatelessForm because I want the page to be stateless with it in
> most cases but in other cases the page should become stateful.
>
> Any ideas?
>
> Many thanks,
>
> Bernard
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>