hmm but visitChildren expects differently, there you can specify what
every you want as long as its extends from component...

In my case I want a feedback panel's filter to visit it's parent to
see if the component that reports the message are within it's form..
Therefore i am only searching for forms..

2011/3/29 Pedro Santos <[email protected]>:
> Component#visitParents expects Component as the type to be visited, IMO
> should expect the same type of the first parameter.
>
> On Tue, Mar 29, 2011 at 5:22 AM, nino martinez wael <
> [email protected]> wrote:
>
>> why is this not valid?
>>
>>                message.getReporter().visitParents(Form.class, new
>> IVisitor<Form, Void>() {
>>                        @Override
>>                        public void component(Form object, IVisit<Void>
>> visit) {
>>                                // TODO Auto-generated method stub
>>
>>                        }
>>                });
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> --
> Pedro Henrique Oliveira dos Santos
>

Reply via email to