This content has been marked as final.
Show 4 replies
-
1. Re: a4j:support > oncomplete > returning the focus to the el
sergeysmirnov Jul 15, 2007 10:41 AM (in response to binya)why you want to set a focus with 'oncomplete' if a4j:support has a 'focus' attribute that solves this purpose?
-
2. Re: a4j:support > oncomplete > returning the focus to the el
binya Jul 16, 2007 2:35 AM (in response to binya)Thank you... :-(
-
3. Re: a4j:support > oncomplete > returning the focus to the el
mdmaurer Sep 6, 2007 1:05 PM (in response to binya)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:oncomplete="document.getElementById('theForm:qtyQ').focus();"
Like the prevous user said, this works fine in Mozilla/Firefox but not IE7.
Help! -
4. Re: a4j:support > oncomplete > returning the focus to the el
ilya_shaikovsky Sep 7, 2007 4:45 AM (in response to binya)Just update to RF 3.1.0 RC5 and use focus attribute.