[richfaces-issues] [JBoss JIRA] Commented: (RF-980) TreeModel - exception when deleting node

Peter Mahoney (JIRA) jira-events at lists.jboss.org
Thu Oct 11 06:44:12 EDT 2007


    [ http://jira.jboss.com/jira/browse/RF-980?page=comments#action_12381647 ] 
            
Peter Mahoney commented on RF-980:
----------------------------------

Using 3.1.1, when I try to delete the last node I get the following exception:

javax.faces.FacesException: java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1)
	at org.richfaces.renderkit.TreeRendererBase.encodeAjaxChildren(TreeRendererBase.java:510)
	at org.ajax4jsf.component.UIDataAdaptor.encodeAjaxChild(UIDataAdaptor.java:397)
...
Caused by: java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1)
	at java.util.SubList.<init>(Unknown Source)
	at java.util.RandomAccessSubList.<init>(Unknown Source)
	at java.util.AbstractList.subList(Unknown Source)
	at org.richfaces.renderkit.TreeRendererBase.encodeAjaxChildren(TreeRendererBase.java:477)

> TreeModel - exception when deleting node
> ----------------------------------------
>
>                 Key: RF-980
>                 URL: http://jira.jboss.com/jira/browse/RF-980
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Maksim Kaszynski
>         Assigned To: Nick Belaevski
>            Priority: Critical
>             Fix For: 3.2.0
>
>
> Attempting to delete last node within any recursive node set results in exception
> java.lang.IllegalStateException: No tree element available or row key not set!
> 	org.richfaces.model.StackingTreeModel.isLeaf(StackingTreeModel.java:252)
> 	org.richfaces.component.UITree.isLeaf(UITree.java:426)
> 	org.richfaces.renderkit.html.TreeNodeRenderer.doEncodeBegin(TreeNodeRenderer.java:158)
> 	org.richfaces.renderkit.html.TreeNodeRenderer.doEncodeBegin(TreeNodeRenderer.java:86)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list