Hi Martin/Ernesto Thanks for this it worked brilliantly.
Thanks David On 8 April 2014 15:08, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi, > > getSession().success("...") > > Martin Grigorov > Wicket Training and Consulting > > > On Tue, Apr 8, 2014 at 5:05 PM, David Beer <david.m.b...@gmail.com> wrote: > > > I am actually reloading the same page, due to making sure that the forms > > are reset correctly and the associated data. How do you mean via the > > session? is it just as possible to send them using PageParameters and > > interpret them in the constructor and then add the message to the > feedback. > > > > David > > > > > > On 8 April 2014 13:40, Ernesto Reinaldo Barreiro <reier...@gmail.com> > > wrote: > > > > > You are jumping to a new page? Not sure but you might have to pass > > messages > > > via session. > > > > > > > > > On Tue, Apr 8, 2014 at 2:36 PM, David Beer <david.m.b...@gmail.com> > > wrote: > > > > > > > Hi All > > > > > > > > I have a panel which is added to my page which has contained form > which > > > is > > > > used to update users password. All is good here, when the user > submits > > > the > > > > form using AjaxButton it goes through the process and gets to the > from > > > > submit ok. If everything is valid it updates data fine at which > point I > > > am > > > > trying to display a feedbask message on the underlying page. However > > the > > > > feedback message never appears. > > > > > > > > I am using the wicket-bootstrap NotificationPanel and everything is > set > > > as > > > > follows. > > > > > > > > UserAccountPage > > > > > > > > { > > > > feedback = new NotificationPanel("feedback"); > > > > feedback.hideAfter(Duration.seconds(2)); > > > > feedback.setOutputMarkupId(true); > > > > add(feedback); > > > > } > > > > > > > > Ajax Submit Code on Panel: > > > > > > > > protected void onSubmit(AjaxRequestTarget target, Form<?> form) { > > > > target.add(notificationPanel); > > > > target.add(((UserAccountPage) > > this.getPage()).feedback); > > > > } > > > > > > > > So that the feedback panel is added to the Ajax Target. > > > > > > > > The form Submit code on the panel: > > > > > > > > ((UserAccountPage) this.getPage()).feedback.success("Password > > > successfully > > > > updated"); > > > > setResponsePage(UserAccountPage.class); > > > > > > > > Any ideas as to why the feedback panel is not displaying the message. > > > > > > > > Thanks > > > > > > > > David > > > > > > > > > > > > > > > > -- > > > Regards - Ernesto Reinaldo Barreiro > > > > > >