http://www.jeremythomerson.com/blog/2011/01/catching-all-feedback-messages-that-arent-rendered-by-other-feedback-panels/ check whether this helps you
On Fri, Jun 10, 2011 at 11:03 AM, Mathilde Pellerin <[email protected]> wrote: > Hi all, > > I have a form which can send error message (on validation or on submit) and > I try to show them in feedbak panel : > I try with FeedBack panel like this : > Java : > add(new FeedbackPanel("feedbackPanelPassword")); > > Form<Void> formNouveauPwd = > creationFormChangementPwd(membre); > add(formNouveauPwd); > > HTML: > <div wicket:id="feedbackPanelPassword"></div> > <form wicket:id="changementPassword"> > [...] > </form> > > and I try with ComponentFeedbackPanel like this : > Java : > formNouveauPwd.add(new > ComponentFeedbackPanel("feedbackPanelPassword", formNouveauPwd)); > > HTML : > <form wicket:id="changementPassword"> > <table> > <tr> > <td colspan="2"><span > wicket:id="feedbackPanelPassword"></span></td> > </tr> > <tr> > <td>Ancien mot de passe :</td> > <td><input wicket:id="password" type="password" > /></td> > </tr> > <tr> > <td>Nouveau mot de passe :</td> > <td><input wicket:id="newPwd" type="password" > /></td> > </tr> > <tr> > <td>Confirmation du nouveau mot de passe :</td> > <td><input wicket:id="confirmNewPwd" type="password" > /></td> > </tr> > <tr> > <td colspan="2" style="text-align: center;"> > <input wicket:id="boutonModifierPwd" > type="submit" value="Changer de mot de passe"/> > </td> > </tr> > </table> > </form> > > but each time I have "Component-targetted feedback message was left > unrendered " error. > At the beginning, I thougth that I was these error because I had to forms in > my page. But then I test with only one form and errors still there and > feedbackPanel is not shown in my page. > > I really don't understand why, because in another page my feedbackPanel > works well : the only difference is that it is in a panel component. But in > wicket documentation it doesn't seem necessary to have panel component to > feedbackPanel works... > > Thanks. > > -- > *Mathilde Pellerin* > Ingénieur en développement de logiciel > > STATLIFE > tel : 01.42.11.64.88 > mail : [email protected] > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com
