[richfaces-issues] [JBoss JIRA] Resolved: (RF-3699) UITree.getTreeNode() returns always null
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Wed Aug 20 13:17:34 EDT 2008
[ https://jira.jboss.org/jira/browse/RF-3699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Belaevski resolved RF-3699.
--------------------------------
Fix Version/s: 3.2.2
Resolution: Done
Assignee: Tsikhon Kuprevich (was: Nick Belaevski)
> UITree.getTreeNode() returns always null
> ----------------------------------------
>
> Key: RF-3699
> URL: https://jira.jboss.org/jira/browse/RF-3699
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.1
> Environment: Tomcat, JFS SUN RI, Facelets
> Reporter: Thomas Wabner
> Assignee: Tsikhon Kuprevich
> Fix For: 3.2.2
>
>
> If have a node selection listener on my rich:tree:
> <rich:tree switchType="server"
> nodeSelectListener="#{treeMgrt.onSelect}"
> >
>
> <rich:recursiveTreeNodesAdaptor roots="#{treeMgrt.roots}" var="item" nodes="#{item.nodes}">
> <rich:treeNode>
> <h:outputText value="#{item}"/>
> </rich:treeNode>
>
> </rich:recursiveTreeNodesAdaptor>
> </rich:tree>
> If the onSelect(NodeSelectedEvent event) is called I do the following:
> ....
> final UITree theTree = this.getTree(event);
> final TreeNode treeNode = theTree.getTreeNode();
> ....
> treeNode is evey time null. Also If I use the method with rowKey. I have had a look into the basic implementation and found follow code:
> StackingTreeModel.java:
> public TreeNode getTreeNode() {
> if (isRowAvailable()) {
> return null;
> }
> throw new IllegalStateException(
> "No tree element available or row key not set!");
> }
> The method isRowAvailable() returns true and the result is a null object.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list