I have been...the method fires.  Do all the controls that exist in
populateItem also need to exist in populateEmptyItem??  Would
"missing" controls explain the screwed-up hierarchy?

yes, because the same markup is used to render an empty cell and a populated cell. so populateEmptyItem has to reproduce the hierarchy with empty objects, or at least reproduce the top most container (if you only haveone) and call setvisible(false) on it so that its children dont have to be rendered and wicket can skip the rest of the markup.

so given your current markup it should look something like this:

void populateEmptyItem(Item item) {
    WebMarkupContainer container=new WebMarkupContainer("thumbnailLink");
   container.setVisible (false);
    item.add(container);
}


ouch...a panel for each cell?

a panel or a fragment, it doesnt matter. why ouch? there is no overhead or anything.

-Igor



Reply via email to