why you want to set a focus with 'oncomplete' if a4j:support has a 'focus' attribute that solves this purpose?
Thank you... :-(
I have a similar need, to grab focus to an inputText field after an a4j:commandButton is clicked and the related processing done. I am using ajax4jsf 1.1.1, and as of this release there is no "focus" attribute defined for the commandButton. I get this error message:
"Attribute focus invalid for tag commandButton according to TLD". I found ajax4jsf documentation that says the focus attribute is supposed to be defined for the commandButton. Is there a newer version that I need to download?
So I tried using the "oncomplete" event like this:
Like the prevous user said, this works fine in Mozilla/Firefox but not IE7.
Just update to RF 3.1.0 RC5 and use focus attribute.