-
1. Re: Element focus in a4j form
ilya_shaikovsky Sep 25, 2009 5:34 AM (in response to atmohsin)using jquerry onload is the best option.
-
2. Re: Element focus in a4j form
atmohsin Sep 25, 2009 6:02 AM (in response to atmohsin)Thanks replay. Our application uses Richfaces. I have not used JQery before. Do you have info how to use JQery. I mean some link where i can go through that.
-
3. Re: Element focus in a4j form
atmohsin Sep 25, 2009 6:16 AM (in response to atmohsin)Thanks
I got the code
here it is
$(document).ready(function() {
$('#text2').focus();
});
Thanks for your help
Mohsin -
4. Re: Element focus in a4j form
atmohsin Sep 25, 2009 6:34 AM (in response to atmohsin)Is it possible to achive this by using a4j:jsFunction
-
5. Re: Element focus in a4j form
ilya_shaikovsky Sep 25, 2009 6:45 AM (in response to atmohsin)jsFunction is a component to be used for request firing on some call, So it' is not your case.
And about jquerry. It's included to RichFaces so you should use internal script in order to avoid conflicts.
http://www.jboss.org/community/wiki/Commonclientside#resourcesfromjars
And to avoid conflicts with prototype consider this http://www.jboss.org/community/wiki/Commonclientside#jquerryusage -
6. Re: Element focus in a4j form
atmohsin Sep 25, 2009 7:03 AM (in response to atmohsin)Thank you very much for you help. i am able to solve this issue.