External jQuery does not work after a4j rerender in Firefox 3.
--------------------------------------------------------------

                 Key: RF-6417
                 URL: https://jira.jboss.org/jira/browse/RF-6417
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.1
         Environment: jQuery 1.3.2
RF-3.3.1
Firefox 3.0
            Reporter: Alexander Dubovsky
            Assignee: Nick Belaevski


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/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to