i think it is because you have a panel that is a FormComponent by itself
it has 3 textfields and those 3 text fields combines to one thing
Then the panel can implement that listener and then it is a FormComponent
and will handle all the processing of the 3 textfields thems self.

FormComponent is the only component implementing that interface
(besides a test case), and then there is this code:

                public Object formComponent(IFormProcessingListener component)
                {
                        if (component instanceof FormComponent)
                        {
                                FormComponent formComponent = 
(FormComponent)component;
                                if (formComponent.isVisibleInHierarchy() && 
formComponent.isValid()
                                                && formComponent.isEnabled() && 
formComponent.isEnableAllowed())
                                {
                                        validate(formComponent);
                                }
                        }
                        if (component.processChildren())
                        {
                                return Component.IVisitor.CONTINUE_TRAVERSAL;
                        }
                        else
                        {
                                return 
Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
                        }
                }


The longer I look at it, the less I see any point in having that construction.

Eelco

Reply via email to