[richfaces-issues] [JBoss JIRA] Updated: (RF-960) a4j:commandButton oncomplete bug
Maksim Kaszynski (JIRA)
jira-events at lists.jboss.org
Tue Sep 18 11:42:24 EDT 2007
[ http://jira.jboss.com/jira/browse/RF-960?page=all ]
Maksim Kaszynski updated RF-960:
--------------------------------
Fix Version/s: 3.2.0
> a4j:commandButton oncomplete bug
> --------------------------------
>
> 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>
> 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.
--
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