Read this: http://cwiki.apache.org/WICKET/form-validation-messages.html
and the AbstractFormValidator javadoc to get a good overview of custom validation messages. And think about using form-level validators for multi-field validation... -Ryan On Mar 22, 2007, at 7:07 AM, [EMAIL PROTECTED] wrote: > > Hello Guys, > We have the following problem: based on client requirements we have to > break the ssn fields into 3 separate text fields. But even if all 3 > of them > are incorrect we should see just one error message and to have all > 3 of > them highlighted, since for a client logically it is one field. How > can we > do it using wicket. What we have seen until now, was that for every > field > that failed validation there was an error message appearing. In > our case > while we have to highlight a group of fields, we also have to show > only one > error message for the group. > > The other question is how do we make the error messages dynamic.. For > example I have 2 address components on the page and both of the > components > have address 1 and address 2 fields. Still one address shows the > address of > the person, while the other address shows the address of the person's > child. When I have the error message I would have liked to see > something > like "Member address 1 us missing", not just "address 1 is > missing". In > other words my messages need to be parameterized based not only on the > field name, but also on some property that is stored in Model for > the panel > that holds other elements. > > > Thank you > Gennadiy > > ---------------------------------------------------------------------- > --- > 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.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://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.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user