You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ditso <di...@gmail.com> on 2012/08/14 14:55:38 UTC

Submit two forms with one button

I was wondering if it was possible to submit two forms in tapestry on one
page with one button. One after the other. So you could have for instance:

onValidate1
onSuccess1 (persist data)
onValidate2
onSuccess2 (persist other data)

Kind regards,



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Submit-two-forms-with-one-button-tp5715385.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Submit two forms with one button

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Tue, 14 Aug 2012 10:34:46 -0300, Dieter Sauvillers  
<di...@gmail.com> wrote:

> We are trying to avoid putting too much data in one form, but don't wanne
> put an extra button on the page.
> This for usability of the application.

I'd suggest you to not go against the philosophy of the tool (HTML) you're  
using. :)

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Submit two forms with one button

Posted by Dieter Sauvillers <di...@gmail.com>.
We are trying to avoid putting too much data in one form, but don't wanne
put an extra button on the page.
This for usability of the application.

On 14 August 2012 15:29, Thiago H de Paula Figueiredo <th...@gmail.com>wrote:

> On Tue, 14 Aug 2012 09:55:38 -0300, Ditso <di...@gmail.com>
> wrote:
>
>  I was wondering if it was possible to submit two forms in tapestry on one
>> page with one button.
>>
>
> You can, but you'll need to use some JavaScript for that. You'll probably
> receive two different requests. In addition, HTML itself wasn't built to
> support that, so that's something I'd avoid by putting everything in a
> single form.
>
> --
> Thiago H. de Paula Figueiredo
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<us...@tapestry.apache.org>
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Submit two forms with one button

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Tue, 14 Aug 2012 09:55:38 -0300, Ditso <di...@gmail.com>  
wrote:

> I was wondering if it was possible to submit two forms in tapestry on one
> page with one button.

You can, but you'll need to use some JavaScript for that. You'll probably  
receive two different requests. In addition, HTML itself wasn't built to  
support that, so that's something I'd avoid by putting everything in a  
single form.

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org