You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Markus Strickler <ma...@braindump.ms> on 2008/02/19 15:57:40 UTC

Disabling validation (and still processing the form)

Hi-

is there any way to disable validation only (and still update the form) when a
user clicks on a button?

I found this <http://cwiki.apache.org/WICKET/conditional-validation.html> in the
WIKI, but I'm still on 1.2.6 and the findSubmittingButton() method seems to be
missing there.

Thanks,

-markus

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

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


Re: Disabling validation (and still processing the form)

Posted by Markus Strickler <ma...@braindump.ms>.
Ah, my bad. findSubmittingButton() exists so I can use it in the isRequired
Method of my input fields after all.
It still feels a bit ugly to me, though.

Thanks,
-markus

Zitat von Martijn Dashorst <ma...@gmail.com>:

> Don't add validators to your form components? Or use a valuemap as
> your model object.
>
> Martijn
>
> On 2/19/08, Markus Strickler <ma...@braindump.ms> wrote:
>> Hi-
>>
>> is there any way to disable validation only (and still update the 
>> form) when a
>> user clicks on a button?
>>
>> I found this 
>> <http://cwiki.apache.org/WICKET/conditional-validation.html> in the
>> WIKI, but I'm still on 1.2.6 and the findSubmittingButton() method 
>> seems to be
>> missing there.
>>
>> Thanks,
>>
>> -markus
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> --
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.1 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


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


Re: Disabling validation (and still processing the form)

Posted by Martijn Dashorst <ma...@gmail.com>.
Don't add validators to your form components? Or use a valuemap as
your model object.

Martijn

On 2/19/08, Markus Strickler <ma...@braindump.ms> wrote:
> Hi-
>
> is there any way to disable validation only (and still update the form) when a
> user clicks on a button?
>
> I found this <http://cwiki.apache.org/WICKET/conditional-validation.html> in the
> WIKI, but I'm still on 1.2.6 and the findSubmittingButton() method seems to be
> missing there.
>
> Thanks,
>
> -markus
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1

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