Velarde, Domonic R. - WMD wrote:
Thinking more about this I guess what I need to know is in tapestry how do I tell the browser on load that the proceed button(second button) is to have the focus so that when someone hits the return key that is the one activated instead of the first button?<div align="right"> <input type="submit" jwcid="@Submit" value="message:button-previous" listener="ognl:listeners.previous" /> <input type="submit" jwcid="@Submit" value="message:button-proceed" listener="ognl:listeners.submit" /> </div> since there is no button name how do I point it at the bottom one?
Shouldn't it then be the case that when a user types anything the focus is moved to the textfield so it doesn't matter which button had focus on page load? Anyway the Script component is probably what you should look at to get page-load javascript to run.
There was a discussion on the list about something similar (which button is mapped to the enter key), perhaps you can find something there to help you
http://thread.gmane.org/gmane.comp.java.tapestry.user/19664 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
