Hi,

you can utilize the usual Check/CheckGroup/CheckGroupSelector combination. I've added a convenience CheckContent implementation recently (now for Wicket 1.4 too):

http://code.google.com/p/wicket-tree/source/browse/branches/wicket-tree-0.4.x/wicket-tree/src/main/java/wickettree/content/CheckFolder.java

Hope this helps

Sven

On 05/01/2011 01:27 PM, massimo_pugni wrote:
Hi Sven,
I'm on back on it now.
To hidden the checkboxes for roots I've put the 'if' into the
'newContentComponent' method

something like this
public Component newContentComponent(String id, final AbstractTree<Skill>
tree, IModel<Skill>  model)
        {
                if (model.getObject().isRoot()) {
                        return new Label(id, model);
                } else {
                        return new CheckedFolder<Skill>(id, tree, model)
                        { ... }

What I'd like to do now is to reproduce 'check all/uncheck all' features I
was able to do using a linear/plain list view data structure (the original
structure I'd like to replace with a hierarchical one)

best
massimo
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-tree-checkboxes-managing-tp3472967p3487626.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to