You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mr Arvind Pandey <ar...@yahoo.co.in> on 2006/07/06 15:28:51 UTC
tree2 is not working properly using myfaces 1.1.1 .
Hi,
I am using myfaces 1.1.1 . I am getting the error
while using <t:tree2> : Error is like this
Error:
Encountered a node with an illogical state. [0:2]
Node is expanded but it is also considered
a leaf (a leaf cannot be considered expanded.
code of my jsp page is given below:
<h:panelGrid columns="2" border="0" >
<t:tree2 id="clientTree"
value="#{Bean.treeModel.treeData}"
var="node" varNodeToggler="t"
clientSideToggle="true"
>
<f:facet name="ABC">
<h:panelGroup>
<h:commandLink
action="welcome"
styleClass="#{t.nodeSelected
?
'documentSelected':'document'}"
actionListener="#{Bean.processAction}"
value="#{node.description}"
immediate="true">
</h:commandLink>
</h:panelGroup>
</f:facet>
<f:facet name="PQR">
<h:panelGroup>
<t:graphicImage
value="/images/abc.jpg"
border="0"
width="35" height="18"/>
<h:commandLink
action="Clicked"
styleClass="#{t.nodeSelected ?
'documentSelected':'document'}"
actionListener="#{Bean.processAction}"
value="#{node.description}"
immediate="true">
</h:commandLink>
</h:panelGroup>
</f:facet>
<f:facet name="XYZ">
<h:panelGroup>
<h:commandLink action="nodeClicked"
styleClass="#{t.nodeSelected ?
'documentSelected':'document'}"
actionListener="#{Bean.processAction}"
value="#{node.description}"
immediate="true">
</h:commandLink>
</h:panelGroup>
</f:facet>
</t:tree2>
</h:panelGrid>
Also the Bean's treeData is populated dynamically. Can
anyone help me to fix this bug?
Any suggestion will be appreciated.
Thanx and regards...
Arvind
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/