-
1. Re: rich:tab focus not working
ilya_shaikovsky Jan 28, 2009 5:18 AM (in response to jhaley)1) focus attribute activated only after ajax request completion. So only works if your tabPanel ajax switched.
2) I think just your custom js on ontabenter event (which will activate the comboBox) will be better that ajax reuqest firing which you described in second snippet. -
2. Re: rich:tab focus not working
jhaley Jan 28, 2009 8:58 AM (in response to jhaley)I tried using the ontabenter, but it product a script error. I know the script works because if i put it on a button's onclick event it work properly. The script error is "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus." So I'm guessing at the time the ontabenter fires the page has not been built
<rich:tab label="All" ontabenter="document.getElementById('availableArticlesFrm:categoryBasedOnFiltercomboboxField').focus();" >
-
3. Re: rich:tab focus not working
ilya_shaikovsky Jan 28, 2009 9:19 AM (in response to jhaley)yes sorry. this event is cancelable so fired before enter actually. Need to think about something else :)
-
4. Re: rich:tab focus not working
aalbertopp Nov 22, 2012 3:36 PM (in response to jhaley)Great! I'm a Newbie and i did'nt know how to focus a rich combobox.
Thanks a lot!