6.0: "Cannot resolve variable" when using MyFaces Tomahawk components

Version: 6.0

For example, when with using the varNodeToggler in the tree2 component, 6.0 is unable to recognize the EL statements that start with #{t.}

The lines are marked red and noted with "Cannot resolve variable".

However, what is interesting is the #{node.} is recognized and not marked red.

Is there a setting I could use to ignore the valid EL #{t.} statements?

Thanks,

--Todd



<t:tree2 id="clientTree" value="#{tbrowser.treeData}" var="node" varNodeToggler="t">

<f:facet name="person">
<h:panelGroup id="personGroup">
<f:facet name="expand">
<t:graphicImage id="personOpen" value="/resources/open.gif"
rendered="#{t.nodeExpanded}"/>
</f:facet>
<f:facet name="collapse">
<t:graphicImage id="personClosed" value="/resources/closed.gif"
rendered="#{!t.nodeExpanded}"/>
</f:facet>
<h:outputText value="#{node.description}" styleClass="nodeFolder"/>
</h:panelGroup>
</f:facet>

<f:facet name="foo-folder">
<h:panelGroup id="foo-folderGroup">
<f:facet name="expand">
<t:graphicImage id="foo-folderOpen" value="/resources/open.gif"
rendered="#{t.nodeExpanded}"/>
</f:facet>
<f:facet name="collapse">
<t:graphicImage id="foo-folderClose" value="/resources/closed.gif"
rendered="#{!t.nodeExpanded}"/>
</f:facet>
<h:outputText id="foo-folderDescription" value="#{node.description}" styleClass="nodeFolder"/>
<h:outputText id="foo-folderCount" value="(#{node.childCount})" styleClass="childCount"
rendered="#{!empty node.children}"/>
</h:panelGroup>
</f:facet>

<f:facet name="bar-folder">
<h:panelGroup id="bar-folderGroup">
<f:facet name="expand">
<t:graphicImage id="bar-folderOpen" value="/resources/open.gif"
rendered="#{t.nodeExpanded}"/>
</f:facet>
<f:facet name="collapse">
<t:graphicImage id="bar-folderClosed" value="/resources/closed.gif"
rendered="#{!t.nodeExpanded}"/>
</f:facet>
<h:outputText id="bar-folderDescription" value="#{node.description}" styleClass="nodeFolder"/>
<h:outputText id="bar-folderCount" value=" (#{node.childCount})" styleClass="childCount"
rendered="#{!empty node.children}"/>
</h:panelGroup>
</f:facet>

<f:facet name="document">
<h:panelGroup id="documentGroup">
<h:commandLink id="documentCommand" immediate="true"
styleClass="#{t.nodeSelected ? 'documentSelected':'document'}"
actionListener="#{t.setNodeSelected}">
<t:graphicImage id="documentImage" value="/resources/component.gif"/>
<h:outputText id="documentText" value="#{node.description}"/>
<f:param name="docNum" value="#{node.identifier}"/>
</h:commandLink>
</h:panelGroup>
</f:facet>
</t:tree2>

Please sign in to leave a comment.