Take a look at ListView:
http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html


Umanga 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(new Model("Description/Function")) {
> 
>     public void populateItem(Item<ICellPopulator> cellitem,
>             String id, IModel 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]
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Dynamic-HTML-mark-up---tp27714018p27714184.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]

Reply via email to