Hi Domonic.
Check my post in the thread that Johan linked to below.
If you are using only Submit components, the ButtonSubmit component
will help you ... BUT ... the price for this may be problems if users
click the browser back button.
LinkSubmit can cause similar problems if mixed with other submit components.
Basically what happens when <enter> is pressed is browser dependent.
Some select the first submit input in the form, while others might select
the first image input, if any.
(So if you use ImageSubmit you might need to do some additional work too.)
Cheers,
Nick.
Johan Maasing wrote:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]