[
https://issues.jboss.org/browse/RF-11915?page=com.atlassian.jira.plugin.s...
]
Brian Leathem updated RF-11915:
-------------------------------
Description:
Submenu (r:menuGroup) containing only disabled items or no items, causes a JavaScript
error when it is supposed to get hidden (moving cursor to the next item in the parent
menu).
In Firefox 9:
{quote}
parentMenu is undefined
menu-base.js, line 126
{quote}
In MSIE 7:
{quote}
'nodeType' is null or not an object
richfaces.js, line 43
{quote}
It's the same error only reported from the different level of the call stack.
was:
Submenu (r:menuGroup) containing only disabled items or no items, causes a JavaScript
error when it is supposed to get hidden (moving cursor to the next item in the parent
menu).
In Firefox 9:
parentMenu is undefined
menu-base.js, line 126
In MSIE 7:
'nodeType' is null or not an object
richfaces.js, line 43
It's the same error only reported from the different level of the call stack.
Steps to Reproduce:
Test case {also works with "Disabled item" removed):
{code}
<rich:toolbar layout="hbr">
<rich:dropDownMenu label="Menu test case">
<rich:menuItem label="First item" />
<rich:menuGroup label="Submenu with disabled items">
<rich:menuItem label="Disabled item" disabled="true"
/>
</rich:menuGroup>
<rich:menuItem label="Last item" />
</rich:dropDownMenu>
</rich:toolbar>
{code}
# open the menu "Menu test case"
# move the cursor down by the items
# after leaving "Submenu with disabled items" and moving to "Last
item", the error appears.
was:
Test case {also works with "Disabled item" removed):
<rich:toolbar layout="hbr">
<rich:dropDownMenu label="Menu test case">
<rich:menuItem label="First item" />
<rich:menuGroup label="Submenu with disabled items">
<rich:menuItem label="Disabled item" disabled="true"
/>
</rich:menuGroup>
<rich:menuItem label="Last item" />
</rich:dropDownMenu>
</rich:toolbar>
- open the menu "Menu test case"
- move the cursor down by the items
- after leaving "Submenu with disabled items" and moving to "Last
item", the error appears.
MenuGroup with all items disabled or no items causes JS error
-------------------------------------------------------------
Key: RF-11915
URL:
https://issues.jboss.org/browse/RF-11915
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-menu
Affects Versions: 4.1.0.Final
Environment: Tomcat 6.0.26, MyFaces 2.1.13, RichFaces
Reporter: Ján Halaša
Submenu (r:menuGroup) containing only disabled items or no items, causes a JavaScript
error when it is supposed to get hidden (moving cursor to the next item in the parent
menu).
In Firefox 9:
{quote}
parentMenu is undefined
menu-base.js, line 126
{quote}
In MSIE 7:
{quote}
'nodeType' is null or not an object
richfaces.js, line 43
{quote}
It's the same error only reported from the different level of the call stack.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira