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
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
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
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
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
5 matches
Mail list logo