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]