flyabovesun wrote: > > I know these. But I just think that may be useful and helpful to add focus > fields order list to form.
The problem is that it's difficult to know what field you want to first take focus if you are trying to do it automatically. For instance, if you have a page with a header on top with a login form (name / password / submit), but the "content" area of the page is a search form. What gets the focus? The username field or the first search criteria? The way I handle this is to simply assign an ID to the field, then at the bottom of the HTML, just before the close BODY tag, add a javascript call to specify which form field I want focused -- document.getElementById("formFieldId").focus() As for the tab order, just add the "tabindex=x" property to the form field (where 'x' == the numerical order), as already suggested. -- View this message in context: http://www.nabble.com/tapestry-4-to-focus-on-specified-field-tf3334811.html#a9729361 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]