I guess the other issue is what is the data like?
If you had a class called MenuItem that had a name and a List<MenuItem> as
children then you could create a panel
MenuItemPanel extends Panel {
public MenuItemPanel(String id, IModel<MenuItem> model) {
{
super(id, model);
add(new Label("category", model.getModelObject().getName());
ListView menuOptions = new ListView<MenuItem>("menus",
model.getModelObject().getChildren()) {
protected void populateItem(ListItem<ContactDetail> item) {
};
add(menuOptions);
}
}
On Tue, May 25, 2010 at 1:02 AM, vp143 <[email protected]> wrote:
>
> I forgot to mention that I require the HTML markup to be like the
> following:
>
> <ul>
> <li>Category 1</li>
> <li>Category 2</li>
> <li>
> <ul>
> <li> # Category 2 - Sub category 1 </li>
> <li> # Category 2 - Sub category 2 </li>
> </ul>
> </li>
> </ul>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Dynamic-Navigation-tp2228587p2228687.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>