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 -----
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 [EMAIL PROTECTED] and
delete this mail.
_____________________________________________________________________