new MenuPanel(item, "menu", menu.getModel(), menu.getMenuItems());
On 9/29/06, Stefan Lindner <
[EMAIL PROTECTED]> wrote:
I have a Panel that looks like this (html)
<hr />
<ul id="nav" wicket:id="menus">
<!-- Place menus here-->
<span wicket:id="menu">Place menus here</span>
</ul>
<hr />
Now I want to generate Panels for wicket id "menu" like this
new Loop(this, "menus", menus.size()) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(LoopItem item) {
final int index = item.getIteration();
final Menu menu = MenuBarPanel.this.menus.get(index);
new MenuPanel(?????, "menu", menu.getModel (), menu.getMenuItems());
I can't use the item for ????? because it's not a markupContainer. So, what is the correct MarkupContainer for the panels?
Stefan Lindner
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user