Re: question about tree2's t.nodeSelected

2007-08-02 Thread kewldude
Sorry for resurrecting this old thread, but I'm in the same situation as the thread starter. I tried the suggestion, but i'm getting exceptions. Here is how my code looked like right now. here is the tree2 component here is the a4j:commandLink

Re: question about tree2's t.nodeSelected

2006-10-17 Thread Jim the Standing Bear
I tried to do the following, but apparently tomahawk doesn't like it: I also tried property="#{t.nodeSelected}" and it made no difference... is there a way to do the equivalent of t.setNodeSelected in the backing bean? On

Re: question about tree2's t.nodeSelected

2006-10-17 Thread Jim the Standing Bear
Hi Jeff, No, I didn't know that. But by reading the documentations on this updateActionListener, it seems this tag is used for setting values into some properties. Why do we have to manually perform t.setNodeSelected? I thought the tree2 would take care of it automatically just like t.nodeExpand

Re: question about tree2's t.nodeSelected

2006-10-17 Thread Jeff Bischoff
Jim the Standing Bear wrote: In the sample code provided on the wiki, the code explicitly does t.setNodeSelected as the actionListener of the commandLink; but i cannot do that because as I said earlier, the actionListener is reserved to invoke a method at the backing bean. You do realize that

question about tree2's t.nodeSelected

2006-10-17 Thread Jim the Standing Bear
Hello, Here is what I am trying to achieve: display a tree2, when I click on a node (a commandLink), its style changes by evaluating #{t.nodeSelected?'selectedStyle':'notSelectedStyle'}, and it will also invoke an actionListener at the backing bean to do more stuff But the problem is that every