If I do this with an IFormValidator do I need to return all of the form components in getDependentFormComponents()?
IFormValidator formValidator = new IFormValidator() { private static final long serialVersionUID = -7090261277922171782L; public FormComponent[] getDependentFormComponents() { return new FormComponent[] {}; } public void validate(final Form form) { form.visitChildren(FormComponent.class, new IVisitor() { public Object component(Component component) { if (((FormComponent) component).isValid()) return IVisitor.CONTINUE_TRAVERSAL; else { form.error("Errors below..."); return IVisitor.STOP_TRAVERSAL; } } }); } }; Thank you, Scott On Sat, Aug 16, 2008 at 7:53 AM, Scott Swank <[EMAIL PROTECTED]> wrote: > I have FeedbackPanels for each FormComponent in a form. They are in a > Border and use the ContainerFormComponentFilter to nab any messages > for components in the Border. This all works as expected. > > Then at the top of the form there is a FeedbackPanel that filters out > all messages whose source is a FormComponent. This works as expected. > > The last thing I need is to add a message to the form-level feedback > panel that indicates that there are messages below (whenever there are > in fact messages below). Can I add such a message as part of my > filter's accept() method? Or should I try to create a form-level > message as I receive the lower level messages? > > Thank you, > Scott > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]