You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mihir Solanki <mi...@patni.com> on 2005/04/15 11:06:12 UTC
Calling method for getting tree2 data
Hi,
I would like to know whether I can call a method (NOT PROPERTY) of a bean to
get the data for the tree2 node.
If yes then could anyone guide me how?
<x:tree2 value="#{CabinetTree.fetchTreeData}" id="cabinet-tree"
var="node" varNodeToggler="t" clientSideToggle="false">
:
:
:
</x:tree2>
In the above "fetchTreeData" is a method which gets data from the DB and
returns it.
By doing this I am getting some Invalid Expression error. So, is there any
other way to do so?
Mihir
_____
Patni Computer Systems Ltd.
Tel : 91 79 23240905 Ext : 413
http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________
This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin@patni.com and delete this mail.
_____________________________________________________________________
Re: Calling method for getting tree2 data
Posted by Rob Decker <ro...@objectsource.org>.
The tree2 value expects a TreeNode object returned by the value binding. If you mean call, the method is CabinetTree.fetchTreeData not cabinetTree.getFectchTreeData probably not as you have to live with bean limitations specification. Why can't you just call it getTreeData? Then you can call CabinetTree.fetchTreeData from that method.
----- Original Message -----
From: Mihir Solanki
To: 'MyFaces Discussion'
Sent: Friday, April 15, 2005 5:06 AM
Subject: Calling method for getting tree2 data
Hi,
I would like to know whether I can call a method (NOT PROPERTY) of a bean to get the data for the tree2 node.
If yes then could anyone guide me how?
<x:tree2 value="#{CabinetTree.fetchTreeData}" id="cabinet-tree"
var="node" varNodeToggler="t" clientSideToggle="false">
:
:
:
</x:tree2>
In the above "fetchTreeData" is a method which gets data from the DB and returns it.
By doing this I am getting some Invalid Expression error. So, is there any other way to do so?
Mihir
------------------------------------------------------------------------------
Patni Computer Systems Ltd.
Tel : 91 79 23240905 Ext : 413
http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________
This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netadmin@patni.com and delete this mail.
_____________________________________________________________________