This content has been marked as final.
Show 6 replies
-
1. Re: How to set next focus when recalulating values using aja
ilya_shaikovsky Nov 9, 2009 8:12 AM (in response to btj)yes, if you reRendering inputs - focus will be lost because DOM elements replacement. and focus attribute designed specially for that case. Sorry, but I can't understand the part of description of the attribute problem. could you please clarify?
-
2. Re: How to set next focus when recalulating values using aja
btj Nov 9, 2009 8:18 AM (in response to btj)If I have the following fields..:
<h:inputtext id="field1" ...> <a4j:support focus="field2"/> </h:inputtext> <h:inputtext id="field2" ...> <a4j:support focus="field3"/> </h:inputtext> <h:inputtext id="field3" ...> <a4j:support/> </h:inputtext>
If field2 has focus, and I try to go to field1, the a4h:support forces the focus to field3, i.e. I can't choose another field until I come to a field that does not have a4:support and focus set...
BTJ -
3. Re: How to set next focus when recalulating values using aja
btj Nov 9, 2009 8:33 AM (in response to btj)Not sure why I was using the onblur event but changed it to onchange instead and now it works better.... :)
BTJ -
4. Re: How to set next focus when recalulating values using aja
ilya_shaikovsky Nov 9, 2009 8:34 AM (in response to btj)B.t.w. in general do you really need to reRender those inputs ?
-
5. Re: How to set next focus when recalulating values using aja
btj Nov 9, 2009 8:37 AM (in response to btj)Yes, the values in each field are dependent on the values in the other fields...
BTJ -
6. Re: How to set next focus when recalulating values using aja
nbelaevski Nov 9, 2009 12:10 PM (in response to btj)You can use JavaScript to precisely control where focus goes to.