[richfaces-issues] [JBoss JIRA] Closed: (RF-3734) MenuItem with set "onclick" attribute causes javascript errors

Tatyana Romanovich (JIRA) jira-events at lists.jboss.org
Wed Aug 13 10:17:41 EDT 2008


     [ https://jira.jboss.org/jira/browse/RF-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tatyana Romanovich closed RF-3734.
----------------------------------



> MenuItem with set "onclick" attribute causes javascript errors
> --------------------------------------------------------------
>
>                 Key: RF-3734
>                 URL: https://jira.jboss.org/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
>            Assignee: Tsikhon Kuprevich
>         Attachments: menuItem-js-errors.jpg, my-web-demo-0.1-SNAPSHOT.war
>
>
> 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: 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