This content has been marked as final.
Show 4 replies
-
1. Re: control the focus with richfaces
ilya_shaikovsky Jul 21, 2009 9:38 AM (in response to scatudal)focus attribute should be used to control focus after ajax request from components. other functionality like tabindexes and so one - just standard one.
b.t.w. search module exceptions should be reoprted and "jboss forum" forum thread ;) -
2. Re: control the focus with richfaces
scatudal Jul 21, 2009 10:11 AM (in response to scatudal)It doesn't work if the switch type is set to client. And assuming I decided to change the switch type to ajax, it doesn't set it on the initial request.
This is how I do it now, but I hate writing javascript myself.<f:verbatim> <script type="text/javascript"> document.getElementById('controlId').focus(); </script> </f:verbatim>
-
3. Re: control the focus with richfaces
scatudal Jul 21, 2009 10:15 AM (in response to scatudal)Sorry, the tabIndex works great for the initial control that has the focus. My bad.
Thanks! -
4. Re: control the focus with richfaces
scatudal Jul 21, 2009 10:28 AM (in response to scatudal)Forget the previous post, my change had not been deployed and I made a false conclusion.
The tabindex attribute seems to have absolutely no effect.