Hi,
can you tell me how do you find out which node was clicked in the action or actionListener?
Thanks
Helmut
| | Hi Madan,
Thanks for your repsonse.
It's working now :-).
regards
Cyrill
On 3/30/07, madan chowdary <
[EMAIL PROTECTED]> wrote:
Hi Cyrill, place the following code(with respect to urs) in between <tc:tree> and </tc:tree> <f:facet name="treeNodeCommand">
<tc:command actionListener="#{inventorySearch.browseCategories}" action="" /> </f:facet> Regards,
Madan
----- Original Message ---- From: Cyrill Zadra <
[EMAIL PROTECTED]> To: MyFaces Discussion < [email protected]> Sent: Friday, 30 March, 2007 5:30:08 PM
Subject: Re: [Tobago] Problem with ActionListener for
<tc:tree/> Hi all, I'm just confronted with the same problem at the moment. Has anybody a solution? my jsf tobago code: <tc:tree value="#{demo.tree}" id="tree" idReference="
userObject.id" nameReference="userObject.name" showIcons="true" showJunctions="true" showRootJunction="true" showRoot="true" selectable="none"
mutable="false" tipReference="userObject.name"> <f:actionListener type="ch.filebrowser.actionlistener.TreeEditor" /> </tc:tree>
thx & reagrds Cyrill On 2/2/07, madan chowdary <
[EMAIL PROTECTED]> wrote:
Hi all,
I have a issue regarding the Tree's
ActionListener.
When i click on one of my nodes in the tree, i need to fire an event.
I used the following code as below to display my
tree.
Was able to get the tree and see the underlying nodes in that.
But when i click on the nodes, the ActionListener
is not invoked.
<tc:box label="#{bundle.categoriesBoxTitle}" > <f:facet name="layout"> <tc:gridLayout/>
</f:facet> <tc:tree value="#{category.categoryTree}" state="#{category.categoryTreeState
}" id="categoryTree" idReference="userObject.id"
nameReference="userObject.name" showIcons="#{category.showIcons}" showJunctions="#{category.showJunctions
}" showRootJunction="#{category.showRootJunction}"
showRoot="#{category.showRoot}" selectable="#{category.treeSelectMode}" mutable="#{category.mutable}"
actionListener="#{inventorySearch.browseCategories}" > <f:actionListener
type="com.resmed.store.frontend.controller.CategoryListener"/> </tc:tree> </tc:box>
Regards,
Madan
Here's a new way to find what you're looking for -
Yahoo! Answers
|