[richfaces-issues] [JBoss JIRA] Resolved: (RF-1089) a4j:commandButton oncomplete attribute

Ilya Shaikovsky (JIRA) jira-events at lists.jboss.org
Thu Nov 1 07:23:51 EDT 2007


     [ http://jira.jboss.com/jira/browse/RF-1089?page=all ]

Ilya Shaikovsky resolved RF-1089.
---------------------------------

    Resolution: Done

3.2.0

> a4j:commandButton oncomplete attribute
> --------------------------------------
>
>                 Key: RF-1089
>                 URL: http://jira.jboss.com/jira/browse/RF-1089
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.1.2
>         Environment: XP32, JBoss 4.2.1GA
>            Reporter: First Last
>         Assigned To: Ilya Shaikovsky
>             Fix For: 3.2.0
>
>
> Using 3.1.2, the following sample does not re-enable the button upon completion of the action.
> <h:form id="form">
> <a4j:commandButton id="cbutton" action="director.rollCamera"
>                                 onclick="this.disabled=true"
>                                 oncomplete="this.disabled=false" />
> </h:form>
> Whereas the following sample is able to re-enable the button upon completion of the action. It seems the oncomplete attribute has problem obtaining a reference of the command button object when using the keyword, 'this' .
> <h:form id="form">
> <a4j:commandButton id="cbutton" action="director.rollCamera"
>                                 onclick="this.disabled=true"
>                                 oncomplete="document.getElementById('form:cbutton').disabled=false" />
> </h:form>

-- 
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