You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Hagen, Nicholas" <NH...@trane.com> on 2006/06/29 23:06:43 UTC

RE: Tree2: Unable to locate facet with the name ... after node se lection.

You know I just had the same issue 5 minutes ago...I solved it by using
h:outputText around the EL:  ie:

<h:outputText value="#{node.description}" />

I am assuming you are using Facelets and I think that since Facelets does
not actually save its UIText components (see the transient flag on them),
they are not in the component tree.  Thus, there is actually no child
component when the tree is rebuilt for that facet and so null is returned.
At least that is what I think is occurring...did not look into much...just
figured using h:outputText would fix it and it did for me.

Nick

-----Original Message-----
From: Sloan, Noah M [mailto:Noah_Sloan@baylor.edu] 
Sent: Thursday, June 29, 2006 3:57 PM
To: MyFaces Discussion
Subject: RE: Tree2: Unable to locate facet with the name ... after node
selection.

Sorry, that should be:

<h:form>
	<t:tree2 value="#{tree}" var="node" varNodeToggler="t"
clientSideToggle="true"
		showRootNode="false" showNav="false">
		<f:facet name="root">
			#{node.description}
		</f:facet>
		<f:facet name="system">
			<h:commandLink value="#{node.system.name}"
action="viewContestSystem">
				<af:setActionListener from="#{node.system}"
to="#{contestSystemBean.current}" />
			</h:commandLink>			
		</f:facet>
	</t:tree2>
</h:form>

The second facet is actualy an include file...