You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Argo Vilberg <wi...@gmail.com> on 2008/08/20 18:43:53 UTC
T5: two submit button in on form
hi,
How to handle two different submit buttons click in tapestry.
@OnEvent(value="submit", component="search")
void onFormSubmit2()
{
}
@OnEvent(value="submit", component="search")
void onFormSubmit3()
{
}
<t:form t:id="search">
<t:submit STYLE="font-family:sans-serif; background:#E0FFFF
none; color:#000; " value="Kontaktisikutes pƤring Ƥriregistrist"/>
<t:submit STYLE="font-family:sans-serif; background:#E0FFFF
none; color:#000; " value="Lisa kontaktisik"/>
</t:form>
How to tell tapestry wich button was clicked?
Argo
Re: T5: two submit button in on form
Posted by "Martijn Brinkers (List)" <ma...@gmail.com>.
See http://wiki.apache.org/tapestry/Tapestry5HowToUseForms
Martijn
On Wed, 2008-08-20 at 19:43 +0300, Argo Vilberg wrote:
> hi,
>
> How to handle two different submit buttons click in tapestry.
> @OnEvent(value="submit", component="search")
> void onFormSubmit2()
> {
> }
>
>
> @OnEvent(value="submit", component="search")
> void onFormSubmit3()
> {
>
> }
>
>
> <t:form t:id="search">
> <t:submit STYLE="font-family:sans-serif; background:#E0FFFF
> none; color:#000; " value="Kontaktisikutes pƤring Ƥriregistrist"/>
>
> <t:submit STYLE="font-family:sans-serif; background:#E0FFFF
> none; color:#000; " value="Lisa kontaktisik"/>
> </t:form>
>
>
>
>
>
> How to tell tapestry wich button was clicked?
>
>
> Argo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org