[richfaces-issues] [JBoss JIRA] Created: (RF-3734) MenuItem with set "onclick" attribute causes javascript errors
Grzegorz Szymanski (JIRA)
jira-events at lists.jboss.org
Wed Jun 18 06:31:37 EDT 2008
MenuItem with set "onclick" attribute causes javascript errors
--------------------------------------------------------------
Key: RF-3734
URL: http://jira.jboss.com/jira/browse/RF-3734
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: Windows XP Professional, Tomcat 6.0.16, JSF 1.2_08, JSTL 1.1.2
Reporter: Grzegorz Szymanski
DropDownMenu like below causes javascript errors in Firefox 2, but when I add submitMode attribute it works ok.... the problem is in a more complicated example and then this workaround is useless.
<h:form>
<rich:toolBar>
<rich:dropDownMenu value="Group">
<rich:menuItem onclick="alert('JS test 1');" value="JS Test 1" />
<rich:menuItem onclick="alert('JS test 2');" value="JS Test 2" />
<rich:menuItem onclick="alert('JS test 3');" value="JS Test 3" />
<rich:menuItem onclick="alert('JS test 4');" value="JS Test 4" />
<rich:menuItem onclick="alert('JS test 5');" value="JS Test 5" />
<rich:menuItem onclick="alert('JS test 6');" value="JS Test 6" />
<rich:menuItem onclick="alert('JS test 7');" value="JS Test 7" />
<rich:menuItem onclick="alert('JS test 8');" value="JS Test 8" />
</rich:dropDownMenu>
</rich:toolBar>
</h:form>
Log from firefox console:
Błąd: illegal character
Plik źródłowy: http://localhost:8080/my-web-demo/demo.jsf
Wiersz: 1, Kolumna: 57
Kod źródłowy:
if (RichFaces.Menu.isWithin(event, this)) return; this�className='dr-menu-item dr-menu-item-hover rich-menu-item rich-menu-item-hover ';; $('j_id_jsp_2123400824_1:j_id_jsp_2123400824_5').style.cssText='; ; ;'; $('j_id_jsp_2123400824_1:j_id_jsp_2
Notes strangely coded mark -> this�className
Firefox 2.0.0.14 - javascript errors when mouse over menuItem
Opera 9.5 - page not loaded
IE 7 - ok
Probably the same problem http://jira.jboss.com/jira/browse/RF-2202?page=all
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list