So sometimes validators will process formcomponents whose input has not been
converted??

Sometimes the form component validation method will test himself and
children for validations errors reported, before and after the user input
get converted.

On Tue, Sep 29, 2009 at 2:04 AM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Hi!
>
> formComponent.getValue() allways gives you the latest user input OR
> the model value. This is useful for validation purposes, but is there
> a bluilt-in "get converted value" method?
>
> There is "getConvertedInput" -method, but that will only give you the
> user-submitted value if it has already been converted. The validation
> sequence is a bit funny:
>
>        public void validate()
>        {
>                validateRequired();
>                if (isValid())  <----------- this validator will not receive
> converted input
>                {
>                        convertInput();
>                        if (isValid())
>
> So sometimes validators will process formcomponents whose input has
> not been converted?? How to deal with that properly?
>
> **
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos

Reply via email to