You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andreas Vombach <an...@psi.ch> on 2004/10/27 15:59:03 UTC
submit button position
Maybe this sounds strange, but if I move the position of my
submit-buttons in a form from the bottom to the top of the form in the
html page I get stale links. I restarted sessions etc. but it seems to
shift some expected parameter positions. Has anybody experience how to
prevent it?
Thanks Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: submit button position
Posted by Jamie Orchard-Hays <ja...@dang.com>.
And not only that...
If you have two buttons, the one that is placed first is the default one
called when pressing enter from a field to submit the form--though I believe
this is a browser issue rather than a tapestry issue.
Components are called in order when a form is submitted. The Form Listener
always gets called last. So, you can put your submit listener there instead
of in the Submit component and guaranty that it will be called last.
Jamie
----- Original Message -----
From: "Markus Wiederkehr" <ma...@gmail.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Wednesday, October 27, 2004 10:06 AM
Subject: Re: submit button position
>I assume you use the Submit component and its listener parameter... If
> this is the case the position of the component in the form matters,
> because the listener gets invoked earlier if you place it at the top.
>
> Excerpt from
> http://jakarta.apache.org/tapestry/doc/ComponentReference/Submit.html:
> "[...] This notification occurs as the component is rewinded, i.e.,
> prior to the Form's listener. [...]"
>
> Markus
>
> On Wed, 27 Oct 2004 15:59:03 +0200, Andreas Vombach
> <an...@psi.ch> wrote:
>> Maybe this sounds strange, but if I move the position of my
>> submit-buttons in a form from the bottom to the top of the form in the
>> html page I get stale links. I restarted sessions etc. but it seems to
>> shift some expected parameter positions. Has anybody experience how to
>> prevent it?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: submit button position
Posted by Markus Wiederkehr <ma...@gmail.com>.
I assume you use the Submit component and its listener parameter... If
this is the case the position of the component in the form matters,
because the listener gets invoked earlier if you place it at the top.
Excerpt from http://jakarta.apache.org/tapestry/doc/ComponentReference/Submit.html:
"[...] This notification occurs as the component is rewinded, i.e.,
prior to the Form's listener. [...]"
Markus
On Wed, 27 Oct 2004 15:59:03 +0200, Andreas Vombach
<an...@psi.ch> wrote:
> Maybe this sounds strange, but if I move the position of my
> submit-buttons in a form from the bottom to the top of the form in the
> html page I get stale links. I restarted sessions etc. but it seems to
> shift some expected parameter positions. Has anybody experience how to
> prevent it?
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org