You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gary Kind (JIRA)" <de...@myfaces.apache.org> on 2007/07/13 19:47:04 UTC

[jira] Created: (TRINIDAD-101) Menu Model is not created if its tree is empty

Menu Model is not created if its tree is empty
----------------------------------------------

                 Key: TRINIDAD-101
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-101
             Project: MyFaces Trinidad
          Issue Type: Bug
            Reporter: Gary Kind
         Attachments: trunk.patch

If the menu metadata used to create a menu model's tree has no nodes (i.e. only <menu...></menu>), the menu model is not created and an exception to be thrown.  However, if the any methods in the model methods are called subsequently, an NPE is the result and shown in the browser.

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


[jira] Updated: (TRINIDAD-101) Menu Model is not created if its tree is empty

Posted by "Gary Kind (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Kind updated TRINIDAD-101:
-------------------------------

    Status: Patch Available  (was: Open)

> Menu Model is not created if its tree is empty
> ----------------------------------------------
>
>                 Key: TRINIDAD-101
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-101
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>            Reporter: Gary Kind
>         Attachments: trunk.patch
>
>
> If the menu metadata used to create a menu model's tree has no nodes (i.e. only <menu...></menu>), the menu model is not created and an exception to be thrown.  However, if the any methods in the model methods are called subsequently, an NPE is the result and shown in the browser.

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


[jira] Updated: (TRINIDAD-101) Menu Model is not created if its tree is empty

Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Winer updated TRINIDAD-101:
--------------------------------

    Status: Open  (was: Patch Available)

> Menu Model is not created if its tree is empty
> ----------------------------------------------
>
>                 Key: TRINIDAD-101
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-101
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>            Reporter: Gary Kind
>         Attachments: trunk.patch
>
>
> If the menu metadata used to create a menu model's tree has no nodes (i.e. only <menu...></menu>), the menu model is not created and an exception to be thrown.  However, if the any methods in the model methods are called subsequently, an NPE is the result and shown in the browser.

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


[jira] Commented: (TRINIDAD-101) Menu Model is not created if its tree is empty

Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513025 ] 

Adam Winer commented on TRINIDAD-101:
-------------------------------------

Catch IndexOutOfBoundsException is a super-ugly way of handling this.  Please find a cleaner approach.
For one thing, you're potentially catching and ignoring real problems.

> Menu Model is not created if its tree is empty
> ----------------------------------------------
>
>                 Key: TRINIDAD-101
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-101
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>            Reporter: Gary Kind
>         Attachments: trunk.patch
>
>
> If the menu metadata used to create a menu model's tree has no nodes (i.e. only <menu...></menu>), the menu model is not created and an exception to be thrown.  However, if the any methods in the model methods are called subsequently, an NPE is the result and shown in the browser.

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


[jira] Resolved: (TRINIDAD-101) Menu Model is not created if its tree is empty

Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Winer resolved TRINIDAD-101.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.2-core

Much better, thanks! Checked in new patch.

> Menu Model is not created if its tree is empty
> ----------------------------------------------
>
>                 Key: TRINIDAD-101
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-101
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>            Reporter: Gary Kind
>             Fix For: 1.0.2-core
>
>         Attachments: trunk.patch, trunk.patch
>
>
> If the menu metadata used to create a menu model's tree has no nodes (i.e. only <menu...></menu>), the menu model is not created and an exception to be thrown.  However, if the any methods in the model methods are called subsequently, an NPE is the result and shown in the browser.

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