Try with binding the session. Maybe you run in stateless mode. Session session = getSession(); session.bind(); session.error(...); On Mon, May 13, 2013 at 11:08 PM, dhongyt davidhtr...@gmail.com wrote: Weird, it still does not show up. I do have a function that gets the session and register
Thanks I will try both things. I believe my pages are stateful. Maybe its because I create an ErrorFeedback that extends the Feedback and didn't override some classes needed. -- View this message in context:
I solved the issue. I was invalidating my session before it could display. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-within-Form-Weird-Issue-tp4658757p4658797.html Sent from the Users forum mailing list archive at Nabble.com.
I take it you're using Wicket 6.x since the feedback messages have been moved all the way to the Component's metadata rather than the session. Hence the same component should be part of the page if you want to see its feedback message. See:
Hi, You need to use session.error() instead. Since you use setResponsePage(...) the error associated with the Form component is never used. On Mon, May 13, 2013 at 8:17 PM, dhongyt davidhtr...@gmail.com wrote: Hey guys, I had a feedback panel within a form and want to display an error
Weird, it still does not show up. I do have a function that gets the session and register the error to it. Can the feedback be apart of the form? I have tried it outside the form with no luck either. I also changed my onSubmit to use session; It doesn't need to call the error function
and filtering them of the wicket user guide: http://wicket.apache.org/learn/books/freeguide.html ~ Thank you, Paul Bors -Original Message- From: dhongyt [mailto:davidhtr...@gmail.com] Sent: Monday, May 13, 2013 5:09 PM To: email@example.com Subject: Re: Feedback within Form Weird Issue
Even better, create a quick start for yourself and see what you're doing wrong :) ~ Thank you, Paul Bors -Original Message- From: Paul Bors [mailto:p...@bors.ws] Sent: Monday, May 13, 2013 5:26 PM To: firstname.lastname@example.org Subject: RE: Feedback within Form Weird Issue