> How customize your cell table :
> You may create a panel which contains only your link :
> <wicket:panel>
>     <a wicket:id="mylink"><span wicket:id="mytext"></span<</a>
> </wicket:panel>
>
> and in the populateItem:
> MyPanel panel = new MyPanel(componentId);
> cellItem.add(panel);
>
> And in your panel constructor
> MyPanel()
> {
>     add(new BookmarkablePageLink(componentId, Edit.class, new
> PageParameters(map)));
>     add(new Label("mytext", "click here"));
> }
>
> If you wich to add several types of content in your cell (a link, an
> image, a blob, a form, ...), or if you wich to select a row and make
> actions, it may more interresting to use a ListView.
>

ListView look is more generic so I still feel DataTable is nice for my
case, and that work great. Only I need to add the label to the link
instead of panel

        add(new BookmarkablePageLink("href", pageClass, new
PageParameters(parameters)).add(new Label("label", label)));

-------------------------------------------------------------------------
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

Reply via email to