Thank you, but I don't think this is what I need. Those examples use
static content panels, in a sense that IDs of the components are known,
while I am looking for dymanic content.
You have to know ids and elements they couple to up-front - the markup is
leading and components work on particular markup. But there are no limits on
what you can do with it. Can be as dynamic as you want, but you just have to
translate your needs to what Wicket expects.
I will give an example Using pseudocode:
Container c = super.getMainContentPane();
if (groupIsPresent) {
c.add(new MyLabel("Section Header));
c.add(getGroupList());
else {
c.add(new MyCreateGroupLink());
}
if (groupIsPresent) {
add(new DisplayGroupPanel("header");
} else {
add(new CreateGroupLinkPanel("header");
}
class DisplayGroupPanel extends Panel {
public DisplayGroupPanel(String id) {
super(id);
add(new MyLabel("section");
add(new GroupList("list");
}
}
Like that. Play around with it a bit yourself, I'm sure you'll be able to
figure something out :)
Eelco
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user