Re: As of Wicket 6.something, info messages now wiped out during redirect?

2017-03-26 Thread Martin Grigorov
You may find https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+6.0 useful. It has an entry about this change: https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+6.0#MigrationtoWicket6.0-FeedbackStorageRefactoring Unfortunately this migration guide is not ver

Re: As of Wicket 6.something, info messages now wiped out during redirect?

2017-03-26 Thread Trejkaz
On Mon, Mar 27, 2017 at 5:27 PM, Martin Grigorov wrote: > The only way I see is to > override org.apache.wicket.Component#getFeedbackMessages() to delegate > to org.apache.wicket.Session#getFeedbackMessages() but you will have to do > this for each and every component ... > Maybe it would be bette

Re: As of Wicket 6.something, info messages now wiped out during redirect?

2017-03-26 Thread Martin Grigorov
On Mon, Mar 27, 2017 at 7:54 AM, Trejkaz wrote: > On Mon, Mar 27, 2017 at 4:42 PM, Sebastien wrote: > > Hi, > > > > Yes, the message is lost. For such a use case, you have to use > > Session.get().info(), so your message remains available after the > redirect. > > I see... so looking at the info

Re: As of Wicket 6.something, info messages now wiped out during redirect?

2017-03-26 Thread Trejkaz
On Mon, Mar 27, 2017 at 4:42 PM, Sebastien wrote: > Hi, > > Yes, the message is lost. For such a use case, you have to use > Session.get().info(), so your message remains available after the redirect. I see... so looking at the info() method itself, on v1.5, info() goes into the session. But in v

Re: As of Wicket 6.something, info messages now wiped out during redirect?

2017-03-26 Thread Sebastien
Hi, Yes, the message is lost. For such a use case, you have to use Session.get().info(), so your message remains available after the redirect. Best regards, Sebastien On Mar 27, 2017 03:19, "Trejkaz" wrote: > Hi all. > > Next problem in the list. :( > > Most of our forms finish up their work l

As of Wicket 6.something, info messages now wiped out during redirect?

2017-03-26 Thread Trejkaz
Hi all. Next problem in the list. :( Most of our forms finish up their work like this: info("Successfully did something") setResponsePage(SomePage.class); And in the tests we check it like this: tester.assertRenderedPage(SomePage.class); tester.assertInfoMessages("Successfully