There are past examples you can find on this mailing list. Please look at them.
Your problem is that you are redirecting to a new page right after you set your error. Instead, you'll need to set it on the session basically. On Tue, Dec 30, 2008 at 10:26 AM, miro <[email protected]> wrote: > > i have the feedback panel and i am able to display form validations , but > when I add info to the page nothing is shown by the feedback panel here the > code for adding info to my page > > public void onClick(AjaxRequestTarget target) { > if(assignProgramsDTO.getGrantsAssigned().size()==0){ > getPage().error("Please assing grants"); > return; > } > > getStgAuditProcessService().startProcess(assignProgramsDTO); > setResponsePage(HomePage.class); > setRedirect(true); > } > > > jWeekend wrote: > > > > Did you add a FeedbackPanel to your page? > > > > Regards - Cemal > > http://www.jWeekend.co.uk jWeekend > > > > > > > > miro wrote: > >> > >> adding message is simple but how to display this message , who is > >> rendering the added message ?, > >> in my case I am adding the message to the page , getPage().info("This is > >> a test message ") , now what in html i have to do to display this > >> message ? > >> > >> James Carman-3 wrote: > >>> > >>> Component.info(String message)? > >>> > >>> On Mon, Dec 29, 2008 at 12:24 PM, miro <[email protected]> wrote: > >>>> > >>>> How to add feed back messages to page with out a form , > >>>> in my case when the link is clicked I call some external service and > >>>> that > >>>> might return me some message and I want to show this message as a > >>>> feedback > >>>> message > >>>> -- > >>>> View this message in context: > >>>> > http://www.nabble.com/feedback-message-without-a-form-tp21206285p21206285.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] > >>>> > >>>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: [email protected] > >>> For additional commands, e-mail: [email protected] > >>> > >>> > >>> > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/feedback-message-without-a-form-tp21206285p21219394.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] > > -- Jeremy Thomerson http://www.wickettraining.com
