Re: Dynamic Sidebar

2013-03-04 Thread Stephen Walsh
Any thoughts on this? ___ Stephen Walsh | http://connectwithawalsh.com On Sat, Mar 2, 2013 at 4:26 PM, Stephen Walsh step...@connectwithawalsh.com wrote: I think that's what I'm having trouble with. I have created the list view like this: //

Re: Dynamic Sidebar

2013-03-04 Thread Nick Pratt
ListString links = new ArrayListString(); ListView listView = new ListView(linksId, links) { void populateItem( ) { IModelString model = getModel(); (or whatever its called) Link link = new Link(linkId, model ); item.add(link); } } Markup will be

Dynamic Sidebar

2013-03-02 Thread Stephen Walsh
I want to create a sidebar panel that is dynamic based on the links attach to it. So far I have created a LDM that gets the list view of links that I create. I pass the LDM the sidebar panel constructor and Wicket is complaining about not having the markup for the link that is passed. Obviously

Re: Dynamic Sidebar

2013-03-02 Thread Nick Pratt
You can use a ListView or any of the other repeaters to achieve this. Your repeated markup will be an anchor. N On Mar 2, 2013 3:35 PM, Stephen Walsh step...@connectwithawalsh.com wrote: I want to create a sidebar panel that is dynamic based on the links attach to it. So far I have created a

Re: Dynamic Sidebar

2013-03-02 Thread Stephen Walsh
I think that's what I'm having trouble with. I have created the list view like this: //define menu items final ListLink sidebarMenu = new ArrayListLink(); sidebarMenu.add(new Link(new) { public void onClick() { setResponsePage(new