setResponsePage swallows my session feedback messages

2012-06-28 Thread Bertrand Guay-Paquet
Hi, I have 2 pages, each with a feedback panel. Page2 does the following: setACookie(); Session.get().info("blah"); setResponsePage(Page1.class); The problem I have is that "blah" is never displayed in the feedback panel of Page1. I stepped in the request processing code and found that setResp

Re: setResponsePage swallows my session feedback messages

2012-06-29 Thread Ian Marshall
-- > To unsubscribe, e-mail: users-unsubscribe@.apache > For additional commands, e-mail: users-help@.apache > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setResponsePage-swallows-my-session-feedba

Re: setResponsePage swallows my session feedback messages

2012-06-29 Thread Bertrand Guay-Paquet
- To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setResponsePage-swallows-my-session-feedback-messages-tp4650274p4650278.ht

Re: setResponsePage swallows my session feedback messages

2012-06-29 Thread Martin Grigorov
to the page. Otherwise Wicket will throw a missing component >>> exception in dev mode. >>> >>> 3-My use case; feedback messages registered in the session can be >>> swallowed by a feedback pan

Re: setResponsePage swallows my session feedback messages

2012-06-29 Thread Ian Marshall
itutes must be >>> added to the page. Otherwise Wicket will throw a missing component >>> exception in dev mode. >>> >>> 3-My use case; feedback messages registered in the session can be >>> swallowed by a feedback panel in the throw

Re: setResponsePage swallows my session feedback messages

2012-06-29 Thread Bertrand Guay-Paquet
ional commands, e-mail: users-help@.apache -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setResponsePage-swallows-my-session-feedback-messages-tp4650274p4650278.html Sent from the Users forum mailing list archive at Nabble.com.

Re: setResponsePage swallows my session feedback messages

2012-06-29 Thread Bertrand Guay-Paquet
plete picture and am just now making some sense of how Wicket handles redirects and responses. Regards, Bertrand - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- View this message in context: http://apache-wicket

Re: setResponsePage swallows my session feedback messages

2012-06-29 Thread Ian Marshall
gt;>>> I'm also wondering why, when setResponsePage() is used, the current >>>>> page >>>>> is still rendered. I can think of 3 reasons why this should be >>>>> avoided: >>>>> 1-Performance; it's wasteful to render compon

Re: setResponsePage swallows my session feedback messages

2012-06-29 Thread Bertrand Guay-Paquet
To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setResponsePage-swallows-my-session-feedback-messages-tp4650274p4650278.ht

Re: setResponsePage swallows my session feedback messages

2012-06-29 Thread Martin Grigorov
es all the session >>>>>>> messages. After the client follows the 302 and requests Page1, there >>>>>>> are >>>>>>> no more session messages to display. >>>>>>> >>>>>

Re: setResponsePage swallows my session feedback messages

2012-07-01 Thread Martin Grigorov
Hi, Here is my later response. I see two ways to solve this: 1) Use setResponsePage(pageInstance) as I described in my previous response: setMyCookie(); PageB pageB = new PageB(); pageB.info("some text"); setResponsePage(pageB); This way the feedback is associated with a component (pageB) and

Re: setResponsePage swallows my session feedback messages

2012-07-02 Thread Bertrand Guay-Paquet
Hi Martin, Thanks for your answer and code. Indeed, in my case, option 2 is most desirable because the session message is set in a completely different place than where the redirect is done. NonResettingRestartException works great when thrown from a page constructor. However, when thrown fr

Re: setResponsePage swallows my session feedback messages

2012-07-03 Thread Martin Grigorov
Hi Bertrand, On Mon, Jul 2, 2012 at 11:21 PM, Bertrand Guay-Paquet wrote: > Hi Martin, > > Thanks for your answer and code. Indeed, in my case, option 2 is most > desirable because the session message is set in a completely different place > than where the redirect is done. > > NonResettingRestar

Re: setResponsePage swallows my session feedback messages

2012-07-03 Thread Bertrand Guay-Paquet
Hi, Issues WICKET-4636 and WICKET-4637 were created. Bertrand - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: setResponsePage swallows my session feedback messages

2012-07-04 Thread Bertrand Guay-Paquet
Hi Martin, Following Andrea's comments from issue Wicket-4637, I modified the NonResettingRestartException to fix the error I reported. Here's the modified version: public class NonResettingRestartException extends ReplaceHandlerException { public NonResettingRestartException(final Class