You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org> on 2010/07/07 15:05:49 UTC
[jira] Commented: (TOMAHAWK-1525) Issue related to the t:tree2.I am
getting the org.apache.myfaces.tree.NAV_COMMAND is null or not an object
javascript error
[ https://issues.apache.org/jira/browse/TOMAHAWK-1525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885933#action_12885933 ]
Jakob Korherr commented on TOMAHAWK-1525:
-----------------------------------------
Funny, on my machine this works fine.
Can you provide the rendered HTML code of the t:tree2, please?
> Issue related to the t:tree2.I am getting the org.apache.myfaces.tree.NAV_COMMAND is null or not an object javascript error
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: TOMAHAWK-1525
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-1525
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Tree2
> Affects Versions: 1.1.9
> Environment: OPERATING SYSTEM: windows XP professional sp 2,
> PROCESSOR: inter p4 2.99 ghz
> RAM: 2 gb ram
> IDE: Netbeans 6.7.1
> JAVA SERVER FACES: 2.0
> SPRING: 2.5
> DATABASE: MYSQL 5.0
> Reporter: maganti lava kumar
> Priority: Critical
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> I am getting the following javascript error when I click on the + image to expand the root node:
> 'serverTree:org.apache.myfaces.tree.NAV_COMMAND' is null or not an object
> Following is my jsp code
> <f:view>
> <h:form id="foo">
> <t:tree2 id="serverTree" value="#{productBrowser.treeData}" var="node" varNodeToggler="t" clientSideToggle="false">
> <f:facet name="productsRoot">
> <h:panelGroup>
> <t:graphicImage value="images/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
> <t:graphicImage value="images/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
> <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
> <h:outputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}"/>
> </h:panelGroup>
> </f:facet>
> </t:tree2>
> </h:form>
> </f:view>
> I looked at the source code of HtmlTreeRenderer.java and NAV_COMMAND is defined as follows:
> private static final String NAV_COMMAND = "org.apache.myfaces.tree.NAV_COMMAND";
> I looked in the myfaces.jar and did not find anything inside this path.
> What am I missing?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.