[richfaces-issues] [JBoss JIRA] Issue Comment Edited: (RF-6417) External jQuery does not work after a4j rerender in Firefox 3.

Jan Ziegler (JIRA) jira-events at lists.jboss.org
Wed Aug 25 11:53:12 EDT 2010


    [ https://jira.jboss.org/browse/RF-6417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12546921#action_12546921 ] 

Jan Ziegler edited comment on RF-6417 at 8/25/10 11:51 AM:
-----------------------------------------------------------

We´re using Richfaces 3.3.3 now together with a modified version of jQuery 1.3.2 that used the sizzle selector engine 1.0 of jquery 1.4.2.
This way, you can enjoy some of the benefits (bugfixes, better performance) of jQuery 1.4.2 even when using jQuery 1.3.2.

Here´s my blog entry that shows how to modify jQuery 1.3.2 - it´s not too complicated to change the selector engine:
http://tech.top21.de/techblog/20100819-boosting-the-performance-of-jquery-1-3-2-with-the-sizzle-selector-engine-1-0-of-jquery-1-4-2.html

When packing this version of jQuery 1.3.2 into richfaces.impl.jar the problem is solved.

Greetz
jan ;)

      was (Author: jan.ziegler):
    We´re using Richfaces 3.3.3 now together with a modified version of jQuery 1.3.2 that used the sizzle selector engine 1.0 of jquery 1.4.2.
This way, you can enjoy some of the benefits (bugfixes, better performance) of jQuery 1.4.2 even when using jQuery 1.3.2.

Here´s my blog entry that shows how to modify jQuery 1.3.2 - it´s not too complicated to change the selector engine:
http://tech.top21.de/techblog/20100819-boosting-the-performance-of-jquery-1-3-2-with-the-sizzle-selector-engine-1-0-of-jquery-1-4-2.html

Greetz
jan ;)
  
> External jQuery does not work after a4j rerender in Firefox 3.
> --------------------------------------------------------------
>
>                 Key: RF-6417
>                 URL: https://jira.jboss.org/browse/RF-6417
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.3.1
>         Environment: jQuery 1.3.2
> RF-3.3.1
> Firefox 3.0
>            Reporter: Alexander Dubovsky
>            Assignee: Nick Belaevski
>             Fix For: Future_3.X
>
>
> Source:
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
> <html>
> <head>
> <title>Custom Component</title>
> <style type="text/css">
> .test {
> 	display: none;
> }
> </style>
> <script type="text/javascript" src="/rich-demo/js/jquery.js"></script>
> <script type="text/javascript">
> 	jQuery.noConflict();
> 	 
> 	 function addClass() {
> 	 	jQuery('td.foo').addClass('test');
> 	 	return false;
> 	 }
> 	 
> 	 function removeClass() {
> 	 	jQuery('td.foo').removeClass('test');
> 	 	return false;
> 	 }
>     </script>
> </head>
> <body>
> <f:view>
> 	<a4j:form id="form">
> 		<table>
> 			<tbody>
> 				<tr>
> 					<td>1</td>
> 					<td class="foo">2</td>
> 					<td>3</td>
> 				</tr>
> 			</tbody>
> 		</table>
> 		<br />
> 		<h:commandButton value="add" onclick="addClass(); return false;" />
> 		<h:commandButton value="remove" onclick="removeClass(); return false;" />
> 		<br />
> 		<a4j:commandButton value="a4jSubmit" reRender="form"></a4j:commandButton>
> 	</a4j:form>
> </f:view>
> </body>
> </html>
> # Try to add/remove class before clicking a4jSubmit => all work
> # Click a4jSubmit and try to add/remove class again
> Result: it is impossible
> In other browsers all is OK.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list