Re: [Wicket-user] updating feedback panel from onSubmit method of AjaxSubmitLink
final FeedbackPanel fp=new FeedbackPanel(.);fp.setOutputMarkupId(true);new AjaxSubmitLink(..) { onSubmit(AjaxRequestTarget t) { t.add(fp); }}-IgorOn 10/2/06, Jaime De La Jara [EMAIL PROTECTED] wrote: In the phonebook app there is an EditContactPage that subclass BasePage that has a feedback panel. To the EditContactPage I added an AjaxSubmitLink that adds an address to a contact, I need to validate the address info in the onSubmit method so if it's invalid display a message in the feedbackpanel (which is outside the form that contains the submitting link). How could I do it? Thanks.Jaime. Get your email and more, right on the new Yahoo.com -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] updating feedback panel from onSubmit method of AjaxSubmitLink
In the phonebook app there is an EditContactPage that subclass BasePage that has a feedback panel. To the EditContactPage I added an AjaxSubmitLink that adds an address to a contact, I need to validate the address info in the onSubmit method so if it's invalid display a message in the feedbackpanel (which is outside the form that contains the submitting link). How could I do it? Just set the message on your component, or work with a validator like always, and get the feedback panel to be rendered. Now the problem is that feedback panel doesn't get rendered if there are no messages, so it can't be found in the client for replacement. If you wrap the feedbackpanel in a span or diff, and schedule that for re-rendering, it should work fine. Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user