Solution is working fine...

Thx a lot.

-----Urspr√ľngliche Nachricht-----
Von: Sven Meier [mailto:s...@meiers.net] 
Gesendet: Montag, 12. Mai 2014 14:01
An: users@wicket.apache.org
Betreff: Re: How to replace deprecated visitChildren() and filterByClass()?

parent.visitChildren(FormComponent.class, new IVisitor<FormComponent, 
Void>()
         {
             @Override
             public void component(final FormComponent component, final 
IVisit<Void> visit)
             {
                 // do something with form components
             }
         });

Regards
Sven


On 05/08/2014 01:11 PM, Stefan Lorenz wrote:
> Hi,
>
> With version  6.15.0 the ComponentHierarchyIterator class is now deprecated.
>
> How can I get all children from specific Type in a Component  now?
>
> My actual code looks like that:
>
> Iterator<Component> childrenIterator = 
> visitChildren().filterByClass(FormComponent.class).iterator();
>
> Thx and Regards,
> Stefan
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to