You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Rob Decker (JIRA)" <in...@incubator.apache.org> on 2005/04/01 15:47:16 UTC

[jira] Created: (MYFACES-159) Deleted tree2 nodes cause fatal exception

Deleted tree2 nodes cause fatal exception
-----------------------------------------

         Key: MYFACES-159
         URL: http://issues.apache.org/jira/browse/MYFACES-159
     Project: MyFaces
        Type: Bug
    Versions: 1.0.9 beta    
 Environment: All
    Reporter: Rob Decker
    Priority: Blocker


If a node gets deleted between the time it is clicked on and when the server processes
the request I get this error:
 
 java.lang.IllegalArgumentException: Node with id 0:1:1. Failed to parse 0:1:1
 
Basically the node's child was deleted and the index of the child list is no longer
valid. It was valid when the tree was displayed. This gets thrown from
TreeModel.getNodeById() when an IndexOutOfBoundsException is thrown by the child list.

This should be handled more gracefully, like by adding a faces context message, "The selected item no longer exists.", and the processing of the rest of the tree nodes should continue. The end user can choose whether or not to show the messages.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (MYFACES-159) Deleted tree2 nodes cause fatal exception

Posted by "sean schofield (JIRA)" <in...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-159?page=history ]

sean schofield updated MYFACES-159:
-----------------------------------

    Priority: Major  (was: Blocker)

> Deleted tree2 nodes cause fatal exception
> -----------------------------------------
>
>          Key: MYFACES-159
>          URL: http://issues.apache.org/jira/browse/MYFACES-159
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>  Environment: All
>     Reporter: Rob Decker

>
> If a node gets deleted between the time it is clicked on and when the server processes
> the request I get this error:
>  
>  java.lang.IllegalArgumentException: Node with id 0:1:1. Failed to parse 0:1:1
>  
> Basically the node's child was deleted and the index of the child list is no longer
> valid. It was valid when the tree was displayed. This gets thrown from
> TreeModel.getNodeById() when an IndexOutOfBoundsException is thrown by the child list.
> This should be handled more gracefully, like by adding a faces context message, "The selected item no longer exists.", and the processing of the rest of the tree nodes should continue. The end user can choose whether or not to show the messages.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira