So your tree2 component maps to a TreeModel in the managed bean component.
Like this <t:tree2 id=".." value="mbean.treeModel" ../>
in your class mbean {
TreeModel treeModel;
mbean() {
TreeState treeState;
//initialzed treeModel and treeState
//TreeState doc --
http://myfaces.apache.org/tomahawk/apidocs/org/apache/myfaces/custom/tree2/TreeStateBase.html
//Look for TreeState.expandPath()
treeModel.setTreeState(treeState);
}
}
//I haven't work on this for awhile, so this is in theory
-Bill
"Leyzerzon,
Simeon"
<simeon.leyzerzon To
@credit-suisse.co "'MyFaces Discussion'"
m> <[email protected]>
cc
12/15/2006 04:43
PM Subject
RE: Tree2 expand
Please respond to
"MyFaces
Discussion"
<[EMAIL PROTECTED]
ache.org>
William,
Thanks for the answer, but could you elaborate please?
Thanks,
Simeon
-----Original Message-----
From: William Huang [mailto:[EMAIL PROTECTED]
Sent: Friday, December 15, 2006 4:38 PM
To: MyFaces Discussion
Subject: Re: Tree2 expand
I think you can create your own TreeState object and set it on the
TreeModel..
Bill
"Leyzerzon,
Simeon"
<simeon.leyzerzon To
@credit-suisse.co "'[email protected]'"
m> <[email protected]>
cc
12/15/2006 10:22
AM Subject
Tree2 expand
Please respond to
"MyFaces
Discussion"
<[EMAIL PROTECTED]
ache.org>
Hi,
I'd like to find out how to have the Tree2 component's nodes expanded on
startup. expandAll() doesn't seem to work. Does anyone have any knowledge
of this?
Thanks,
Simeon Leyzerzon
==============================================================================
Please access the attached hyperlink for an important electronic
communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================
Disclaimer: This electronic mail and any attachments are confidential and
may be privileged. If you are not the intended recipient, please notify the
sender immediately by replying to this email, and destroy all copies of
this email and any attachments. Thank you.
==============================================================================
Please access the attached hyperlink for an important electronic
communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================
Disclaimer: This electronic mail and any attachments are confidential and may
be privileged. If you are not the intended recipient, please notify the sender
immediately by replying to this email, and destroy all copies of this email and
any attachments. Thank you.