Ok found the solution myself, The problem was In the AjaxFallBackButton I had not overriden the onError() method, here's the solution added,
onError(AjaxTarget target, Form form) { target.addComponent(feedbackPanel); } sureshramakrishnaiah wrote: > > I tried with a modal window and page, still no luck, I do see validation > happening in the server but I don't see that response coming back to the > client > > > 12:20:12,263 DEBUG [ComponentStringResourceLoader] Found resource from: > org/apache/wicket/Application.properties; key: R > equired > 12:20:12,263 DEBUG [FeedbackMessages] Adding feedback message > [FeedbackMessage message = "Field 'text' is required.", re > porter = text, level = ERROR] > > The Ajax Debug Window shows the following response, I don't see any error > message sent back to the window. > > <?xml version="1.0" encoding="UTF-8"?><ajax-response></ajax-response> > > Note the Submit button on the modal window is a ajaxfallback button, is > this causing any problems? > > Any clue? > > > sureshramakrishnaiah wrote: >> >> Sorry I meant can we add a page to a modal window >> >> >> >> 张伟-4 wrote: >>> >>> try page not panel >>> >>> 2008/10/29 sureshram <[EMAIL PROTECTED]> >>> >>>> >>>> Hello, >>>> >>>> I am trying to add auto validation in the modal window but I don't see >>>> any >>>> error messages. I added a feedback panel on a modal window which has a >>>> required text field. When I try to submit, the modal window does not >>>> do >>> >>> >>> >> >> >> > > ----- Suresh Ramakrishnaiah Lead Software Engineer -- View this message in context: http://www.nabble.com/Feedback-Panel-on-Modal-Window-With-Field-Validation-does-not-work-tp20216419p20232299.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]