You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Marek Šabo <ms...@buk.cvut.cz> on 2010/01/01 02:31:36 UTC
Response with FeedBackMessage
Hi,
I would like to ask how can I achieve propagation of a feedback message
to a page that is set in setResponsePage().
Consider this:
try {
...
info();
setResponsePage();
} catch (e) {
error(e);
}
Of course the error is propagated, is it possible or can you suggest a
workaround to achieve propagation of feedback message into response?
Thanks, regards
--
Marek Šabo
Chief Server Manager
Club SU CVUT Buben
Bubenečská Kolej
Terronská 28, Prague 16000
XMPP: zeratul021@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Response with FeedBackMessage
Posted by Marek Šabo <ms...@buk.cvut.cz>.
Thanks both of you, I already tried both of it, my problem was in fact
that first option had null reporter and the second one had reporter of
page. And as you may guess I was using componentfilter for this form. I
will make a workaround for now.
Is there any possibility of changing the reporter to the form where this
code is or should I dereferrence it down like this:
MyPage page = new MyPage();
page.getPanel().getForm().info()
setResponsePage(page);
Marek
Martijn Dashorst wrote:
> or:
>
> MyPage page = new MyPage();
> page.info(...);
> setResponsePage(page);
>
> Martijn
>
> On Fri, Jan 1, 2010 at 6:43 AM, Martin Makundi
> <ma...@koodaripalvelut.com> wrote:
>
>> if you do getSession().info()
>>
>> 2010/1/1 Marek Šabo <ms...@buk.cvut.cz>:
>>
>>> Hi,
>>>
>>> I would like to ask how can I achieve propagation of a feedback message to a
>>> page that is set in setResponsePage().
>>> Consider this:
>>>
>>> try {
>>> ...
>>> info();
>>> setResponsePage();
>>> } catch (e) {
>>> error(e);
>>> }
>>>
>>> Of course the error is propagated, is it possible or can you suggest a
>>> workaround to achieve propagation of feedback message into response?
>>>
>>> Thanks, regards
>>>
>>> --
>>> Marek Šabo
>>> Chief Server Manager
>>> Club SU CVUT Buben
>>> Bubenečská Kolej
>>> Terronská 28, Prague 16000
>>> XMPP: zeratul021@gmail.com
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Response with FeedBackMessage
Posted by Martijn Dashorst <ma...@gmail.com>.
or:
MyPage page = new MyPage();
page.info(...);
setResponsePage(page);
Martijn
On Fri, Jan 1, 2010 at 6:43 AM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> if you do getSession().info()
>
> 2010/1/1 Marek Šabo <ms...@buk.cvut.cz>:
>> Hi,
>>
>> I would like to ask how can I achieve propagation of a feedback message to a
>> page that is set in setResponsePage().
>> Consider this:
>>
>> try {
>> ...
>> info();
>> setResponsePage();
>> } catch (e) {
>> error(e);
>> }
>>
>> Of course the error is propagated, is it possible or can you suggest a
>> workaround to achieve propagation of feedback message into response?
>>
>> Thanks, regards
>>
>> --
>> Marek Šabo
>> Chief Server Manager
>> Club SU CVUT Buben
>> Bubenečská Kolej
>> Terronská 28, Prague 16000
>> XMPP: zeratul021@gmail.com
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Response with FeedBackMessage
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
if you do getSession().info()
2010/1/1 Marek Šabo <ms...@buk.cvut.cz>:
> Hi,
>
> I would like to ask how can I achieve propagation of a feedback message to a
> page that is set in setResponsePage().
> Consider this:
>
> try {
> ...
> info();
> setResponsePage();
> } catch (e) {
> error(e);
> }
>
> Of course the error is propagated, is it possible or can you suggest a
> workaround to achieve propagation of feedback message into response?
>
> Thanks, regards
>
> --
> Marek Šabo
> Chief Server Manager
> Club SU CVUT Buben
> Bubenečská Kolej
> Terronská 28, Prague 16000
> XMPP: zeratul021@gmail.com
>
>
> ---------------------------------------------------------------------
> 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