On Mon, 19 May 2008, Ned Collyer wrote:
> How would I go about getting the first panel added?
Use a visitor, something like
featuresList.visitChildren(MyPanel.class, new IVisitor() {
public visit(Component component) {
doStuffWith((MyPanel) component);
return STOP_TRAVERSAL;
}
});
You have to take on account that repeaters only create their
Items in onBeforeRender, so before that point you cannot find
the children (or you might find stale children from the
previous rendering). As you set reuseItems to true, the Items
stay the same in your case I suppose.
Best wishes,
Timo
--
Timo Rantalaiho
Reaktor Innovations Oy <URL: http://www.ri.fi/ >
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]