myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeanne Waldman (JIRA)" <...@myfaces.apache.org>
Subject [jira] Updated: (TRINIDAD-758) failure in parsing of sub menu models (sharedNodes) results in root menu tree not being created. Bad sub menu models should just be skipped.
Date Tue, 27 Nov 2007 21:56:43 GMT

     [ https://issues.apache.org/jira/browse/TRINIDAD-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jeanne Waldman updated TRINIDAD-758:
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.3-core
           Status: Resolved  (was: Patch Available)

> failure in parsing of sub menu models (sharedNodes) results in root menu tree not being
created.  Bad sub menu models should just be skipped.
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-758
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-758
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>            Reporter: Gary Kind
>             Fix For: 1.0.3-core
>
>         Attachments: 122Branch.patch, 122Branch2.patch, trunk.patch, trunk2.patch
>
>
> If there is any kind of parsing error in a sub menu model's xml metadata OR the sub menu
model creation returns a null XMLMenuModel, the creation of the root menu tree will break
and not be created.  This should not happen.  The offending sub menu model should be skipped
and the root menu tree should go on and be created without the offending sub menu model. 
I have put code especially in MenuContentHandlerImpl.startElement, where a submenu  model
is created upon encountering a <sharedNode> in the xml metadata, that handles a null
XMLMenuModel or a sub menu model that had a parsing exception.   In either case, an exception
is thrown but the root menu tree goes on being created.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message