[richfaces-issues] [JBoss JIRA] Commented: (RF-4239) PanelMenu: action is not fired in FF3
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Fri Sep 5 18:10:38 EDT 2008
[ https://jira.jboss.org/jira/browse/RF-4239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12428476#action_12428476 ]
Nick Belaevski commented on RF-4239:
------------------------------------
Index: panelMenu.js
===================================================================
--- panelMenu.js (revision 9024)
+++ panelMenu.js (working copy)
@@ -133,7 +133,7 @@
this.leftIcon = Richfaces.lastDescendant(mainCells[0]);
this.labelArea = mainCells[1];
this.rightIcon = Richfaces.firstDescendant(mainCells[2]);
- this.content = document.getElementsByClassName("dr-pmenu-group-self-label", this.tdhider)[0];
+ this.content = Element.select(this.tdhider, ".dr-pmenu-group-self-label")[0];
this.iconAlign = iconAlign;
/*
> PanelMenu: action is not fired in FF3
> -------------------------------------
>
> Key: RF-4239
> URL: https://jira.jboss.org/jira/browse/RF-4239
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.1.4, 3.1.5, 3.1.6
> Environment: FF3
> Reporter: Nick Belaevski
> Assignee: Nick Belaevski
> Fix For: 3.1.x
>
>
> <rich:panelMenu style="width:200;background-color:#ccddaa" mode="ajax"
> iconExpandedGroup="disc" iconCollapsedGroup="disc"
> iconExpandedTopGroup="chevronUp"
> iconCollapsedTopGroup="triangleDown" >
> <rich:panelMenuGroup label="group 1">
> <rich:panelMenuItem id="item1" label="item 1" action="#{menu.updateCurrent}">
> <f:param name="current" value="Item1_1"/>
> </rich:panelMenuItem>
> <rich:panelMenuItem id="item2" label="item 2" action="#{menu.updateCurrent}">
> <f:param name="current" value="Item1_2"/>
> </rich:panelMenuItem>
> </rich:panelMenuGroup>
> </rich:panelMenu>
> ...
> String current;
>
> public String updateCurrent() {
> System.out.println("currrent3_1:" + current);
> FacesContext context=FacesContext.getCurrentInstance();
> current = (String)context.getExternalContext().getRequestParameterMap().get("current");
> System.out.println("currrent3_2:" + current);
> return current;
> }
> ...
> menu item actions do not work in FF3, IE 6/7 are ok
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list