Since the validator is custom can't you make the validator send the error to the formcomponentpanel instead of the inner component. then hasErrorMessage will work automatically.
Maurice On Thu, May 1, 2008 at 9:43 PM, Clay Lehman <[EMAIL PROTECTED]> wrote: > Hey Everyone, > > > > I have made a FormComponentPanel that contains components in it. I add > a custom validator to the inner component to validate the input. > However, when I call hasErrorMessage on the FormComponentPanel, it > always returns false, even if the custom validator found a problem. > > > > Is there a way to tell this panel to return true if one of its sub > components contain an error? > > > > I would just override hasErrorMessage() and do return > super.hasErrorMessage() || comp.hasErrorMessage(), but hasErrorMessage() > is a final method... > > Any ideas? > > > > Thanks for any help! > > -Clay > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
