That did the trick! Thanks, Greg
-----Original Message----- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 2:13 PM To: Tapestry users Subject: Re: Focus being set on button automatically I believe the "focus" parameter of your form component will fix this problem. http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Form.html The default value is true, setting it to false may fix this for your usage. jesse On 2/15/06, Greg Cormier <[EMAIL PROTECTED]> wrote: > > Okay, I mentioned this before, how on a long form, the browser scrolls to > the bottom of the form when the page is loaded. > > I've just gone through the generated HTML source code and I see that > Tapestry has done > > <script language="JavaScript" type="text/javascript"><!-- > Tapestry.register_form('departmentForm'); > Tapestry.set_focus('addButton'); > > // --></script> > > > So, my question is, how do I disable this behaviour of Tapestry? > > Thanks, > Greg > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
