Hello,
I have two questions regarding myFaces.
1). In the JSF file, a Tree2 is assigned a unique ID (exploreTree),
but the Tree2 is contained under some unnamed panelGroups and
gridPanels. One piece of code tried to access this Tree2 by doing the
following:
HtmlTree tree =
(HtmlTree)FacesContext.getCurrentInstance().getUIViewRoot().findComponent("exploreTree");
and it always gets null. So the question is does findComponent() only
find among its immediate children, or does it find the component with
that ID at any depth (analogous to calling getElementById in HTML
DOM)? I tried to make some sense out of the Javadoc on
findComponent() but got very confused.
2). HtmlTree has a getPathInformation, which takes a parameter of
"nodeId". Is this nodeID the ID I assigned to a TreeNodeBase? Or is
this the ID that is used in the HTML source code? My guess is the
latter because I accidentally had some colons in the ID that I
assigned to the TreeNodeBase, and calling getPathInformation basically
tokenized the ID based on the ":". But need to confirm this.
I would appreciate any helpful answers/suggestions/comments/
-- Jim
--
--------------------------------------
Standing Bear Has Spoken
--------------------------------------