[richfaces-issues] [JBoss JIRA] Updated: (RF-960) a4j:commandButton oncomplete bug for IE6
Abdulla Abdurakhmanov (JIRA)
jira-events at lists.jboss.org
Wed Sep 19 05:36:11 EDT 2007
[ http://jira.jboss.com/jira/browse/RF-960?page=all ]
Abdulla Abdurakhmanov updated RF-960:
-------------------------------------
Summary: a4j:commandButton oncomplete bug for IE6 (was: a4j:commandButton oncomplete bug)
Description:
The test case:
<?xml version='1.0' encoding='utf-8'?>
<jsp:root xmlns="http://www.w3.org/1999/xhtml"
xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
xmlns:rich="http://richfaces.ajax4jsf.org/rich">
<f:view>
<html>
<jsp:output omit-xml-declaration="false" doctype-root-element="html"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
<jsp:directive.page contentType="text/html;charset=utf-8"/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<h:form id="TestForm">
<a4j:commandButton id="testButton"
onclick="this.disabled=true; runButton=this;"
value="Test"
oncomplete="alert(runButton);runButton.disabled=false;"
type="submit"/>
</h:form>
</body>
</html>
</f:view>
</jsp:root>
For IE: The alert is executed but IE didn't see definition for runButton and JS errors are occured.
For Firefox: The alert is successfully showed and JS console haven't any errors.
For 3.0.1 and 3.1.0 RC3 this worked.
was:
The test case:
<?xml version='1.0' encoding='utf-8'?>
<jsp:root xmlns="http://www.w3.org/1999/xhtml"
xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
xmlns:rich="http://richfaces.ajax4jsf.org/rich">
<f:view>
<html>
<jsp:output omit-xml-declaration="false" doctype-root-element="html"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
<jsp:directive.page contentType="text/html;charset=utf-8"/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<h:form id="TestForm">
<a4j:commandButton id="testButton"
onclick="this.disabled=true; runButton=this;"
value="Test"
oncomplete="alert(runButton);runButton.disabled=false;"
type="submit"/>
</h:form>
</body>
</html>
</f:view>
</jsp:root>
When user is clicked on button you can see the strange behavior against a browser:
For IE: The alert is executed but IE didn't see definition for runButton.
For firefox: alert didn't executed, but JS console didn't show any errors.
For 3.0.1 and 3.1.0 RC3 this worked.
> a4j:commandButton oncomplete bug for IE6
> ----------------------------------------
>
> Key: RF-960
> URL: http://jira.jboss.com/jira/browse/RF-960
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.1.0
> Environment: Java 1.6
> GlassFish v2
> RichFaces v3.1.0 (release)
> Firefox 2.0.0.6
> IE 6.0.
> Reporter: Abdulla Abdurakhmanov
> Fix For: 3.2.0
>
>
> The test case:
> <?xml version='1.0' encoding='utf-8'?>
> <jsp:root xmlns="http://www.w3.org/1999/xhtml"
> xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
> xmlns:f="http://java.sun.com/jsf/core"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
> xmlns:rich="http://richfaces.ajax4jsf.org/rich">
> <f:view>
> <html>
> <jsp:output omit-xml-declaration="false" doctype-root-element="html"
> doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
> doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
> <jsp:directive.page contentType="text/html;charset=utf-8"/>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> </head>
> <body>
> <h:form id="TestForm">
> <a4j:commandButton id="testButton"
> onclick="this.disabled=true; runButton=this;"
> value="Test"
> oncomplete="alert(runButton);runButton.disabled=false;"
> type="submit"/>
> </h:form>
> </body>
> </html>
> </f:view>
> </jsp:root>
> For IE: The alert is executed but IE didn't see definition for runButton and JS errors are occured.
> For Firefox: The alert is successfully showed and JS console haven't any errors.
> For 3.0.1 and 3.1.0 RC3 this worked.
--
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