You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Alexander Lohse <al...@humantouch.de> on 2009/02/25 00:33:41 UTC
determine which form was submitted
Hi,
I have two forms on one page and need to toggle visibility of a
container depending on which form was submitted.
Is there a way to I find out which form was posted?
Thank you in advance or any help,
Alex
______________________________________________________________
"A designer knows he has achieved perfection not when there is nothing
left to add,
but when there is nothing left to take away."
(Antoine de Saint Exupéry)
.............................................................................................
Alexander Lohse • Entwicklungsleitung & Projektmanagement
Tel +49 38374 752 11 • Fax +49 38374 752 23
http://www.humantouch.de
Human Touch Medienproduktion GmbH
Am See 1 • 17440 Klein Jasedow • Deutschland
Geschäftsführung:
Lara Mallien, Nele Hybsier, Alexander Lohse, Johannes Heimrath (Senior)
Handelsregister Stralsund • HRB 4192 • USt-IdNr. DE128367684
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: determine which form was submitted
Posted by Igor Vaynberg <ig...@gmail.com>.
are these embedded forms?
-igor
On Tue, Feb 24, 2009 at 3:33 PM, Alexander Lohse <al...@humantouch.de> wrote:
> Hi,
>
> I have two forms on one page and need to toggle visibility of a container
> depending on which form was submitted.
>
> Is there a way to I find out which form was posted?
>
> Thank you in advance or any help,
>
> Alex
> ______________________________________________________________
>
> "A designer knows he has achieved perfection not when there is nothing left
> to add,
> but when there is nothing left to take away."
> (Antoine de Saint Exupéry)
> .............................................................................................
>
> Alexander Lohse • Entwicklungsleitung & Projektmanagement
> Tel +49 38374 752 11 • Fax +49 38374 752 23
> http://www.humantouch.de
>
> Human Touch Medienproduktion GmbH
> Am See 1 • 17440 Klein Jasedow • Deutschland
>
> Geschäftsführung:
> Lara Mallien, Nele Hybsier, Alexander Lohse, Johannes Heimrath (Senior)
> Handelsregister Stralsund • HRB 4192 • USt-IdNr. DE128367684
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: determine which form was submitted
Posted by Alexander Lohse <al...@humantouch.de>.
Hi Ernesto,
not really, but you pointed me in right way:
I have two forms in my markup, which are shown and hidden via
javascript. So I need to know which form was posted to keep it visible.
onSubmit was not sufficient, as I need to know which form was
submitted, wether the input is valid or not. But overriding onValidate
did the trick!
Thanks,
Alex
Am 25.02.2009 um 09:49 schrieb Ernesto Reinaldo Barreiro:
> Wouldn't it be enough to and onSubmit() {...} for each form and
> then you
> will know which one was submited?
>
> Ernesto
>
> On Wed, Feb 25, 2009 at 12:33 AM, Alexander Lohse <al...@humantouch.de>
> wrote:
>
>> Hi,
>>
>> I have two forms on one page and need to toggle visibility of a
>> container
>> depending on which form was submitted.
>>
>> Is there a way to I find out which form was posted?
>>
>> Thank you in advance or any help,
>>
>> Alex
>> ______________________________________________________________
>>
>> "A designer knows he has achieved perfection not when there is
>> nothing left
>> to add,
>> but when there is nothing left to take away."
>> (Antoine de Saint Exupéry)
>>
>> .............................................................................................
>>
>> Alexander Lohse • Entwicklungsleitung & Projektmanagement
>> Tel +49 38374 752 11 • Fax +49 38374 752 23
>> http://www.humantouch.de
>>
>> Human Touch Medienproduktion GmbH
>> Am See 1 • 17440 Klein Jasedow • Deutschland
>>
>> Geschäftsführung:
>> Lara Mallien, Nele Hybsier, Alexander Lohse, Johannes Heimrath
>> (Senior)
>> Handelsregister Stralsund • HRB 4192 • USt-IdNr. DE128367684
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
______________________________________________________________
"In theory, there is no difference between theory and practice. But,
in practice, there is."
(Jan L. A. van de Snepscheut)
.............................................................................................
Alexander Lohse • Entwicklungsleitung & Projektmanagement
Tel +49 38374 752 11 • Fax +49 38374 752 23
http://www.humantouch.de
Human Touch Medienproduktion GmbH
Am See 1 • 17440 Klein Jasedow • Deutschland
Geschäftsführung:
Lara Mallien, Nele Hybsier, Alexander Lohse, Johannes Heimrath (Senior)
Handelsregister Stralsund • HRB 4192 • USt-IdNr. DE128367684
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: determine which form was submitted
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Wouldn't it be enough to and onSubmit() {...} for each form and then you
will know which one was submited?
Ernesto
On Wed, Feb 25, 2009 at 12:33 AM, Alexander Lohse <al...@humantouch.de> wrote:
> Hi,
>
> I have two forms on one page and need to toggle visibility of a container
> depending on which form was submitted.
>
> Is there a way to I find out which form was posted?
>
> Thank you in advance or any help,
>
> Alex
> ______________________________________________________________
>
> "A designer knows he has achieved perfection not when there is nothing left
> to add,
> but when there is nothing left to take away."
> (Antoine de Saint Exupéry)
>
> .............................................................................................
>
> Alexander Lohse • Entwicklungsleitung & Projektmanagement
> Tel +49 38374 752 11 • Fax +49 38374 752 23
> http://www.humantouch.de
>
> Human Touch Medienproduktion GmbH
> Am See 1 • 17440 Klein Jasedow • Deutschland
>
> Geschäftsführung:
> Lara Mallien, Nele Hybsier, Alexander Lohse, Johannes Heimrath (Senior)
> Handelsregister Stralsund • HRB 4192 • USt-IdNr. DE128367684
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>