ListView can be used like in the mashup container. Ofcourse we would prefer if oneday such container could be used without the dummy component id:
http://code.google.com/p/wicket-mashup/ ** Martin 2010/2/24 Ashika Umanga Umagiliya <[email protected]>: > I guess the answer is 'ListView' right? > > Ashika Umanga Umagiliya wrote: >> >> Greeting friends, >> >> In the datagrid-cell , I want to add links which direct to some other >> pages.But the number of links change.I want to do something like in the >> following code-snippet(Pseudo code): >> >> >> new AbstractColumn<Object>(new Model("Description/Function")) { >> >> public void populateItem(Item<ICellPopulator<Object>> cellitem, >> String id, IModel<Object> model) { >> >> //Pseudo code >> SomeDynamicPanel apanel=new SomeDynamicPanel(id); >> for(String id:links) //Number of links depend on 'links' >> array >> { >> apanel.add(new Link("link"+id){ >> public void onClick(){ >> //Direct to page using 'id' >> } >> } >> } >> cellitem.add(apanel); >> >> } >> >> Any tips? >> thanks >> umanga > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
