If you want to show messages on another page you need to use session
feedback messages (getSession().info)

-Matej

On Mon, Aug 11, 2008 at 9:47 PM, insom <[EMAIL PROTECTED]> wrote:
>
> I have a submit button that adds a message to my FeedbackPanel, like so:
>
> if (isTestPassed()) {
>        ...
> } else {
>        setResponsePage(TestPage.class);
>        info("You didn't pass the test...");
> }
>
> However, when the browser gets to the TestPage, it doesn't display any
> messages. I stepped through the process in Eclipse. Running
> getSession().getFeedbackMesages() in the debugger shows that the message did
> get registered. However, when it gets to line 1367 in RequestCycle (Wicket
> 1.3.4), the message is removed. Here is the relevant code from RequestCycle:
>
> 1361  finally
> 1362            {
> 1363                    // set step manually to clean up
> 1364                    currentStep = DETACH_REQUEST;
> 1365
> 1366                    // clean up the request
> 1367                    detach();  <-- This is where the message disappears
> 1368
> 1369                    // set step manually to done
> 1370                    currentStep = DONE;
> 1371            }
>
> I have no idea what to do to fix this. Any suggestions?
> --
> View this message in context: 
> http://www.nabble.com/Feedback-messages-disappearing-before-display-tp18932342p18932342.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to