Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-159

Deleted tree2 nodes cause fatal exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.9m9
    • 1.1.0
    • None
    • None
    • All

    Description

      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.

      Attachments

        Activity

          People

            schof Sean Schofield
            rdecker Rob Decker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: