we kind of have that support in AbstractValidator
protected Map variablesMap(IValidatable validatable)
{
final Map resourceModel = new HashMap(1);
return resourceModel;
}
the problem is that somehow it should do a call back to the IValidatable
(which is FormComponent m
that is why formcomponents have a setLabel(IModel) whose text
is then available via ${label} place holder.
-igor
On Tue, May 20, 2008 at 7:14 AM, Hoover, William <[EMAIL PROTECTED]> wrote:
>
> What does everyone think about updating the Wicket core validators to
> contain an optional IModel?
>
>
sers@wicket.apache.org
Subject: Re: Providing IModel to Validators
that is why formcomponents have a setLabel(IModel) whose text is
then available via ${label} place holder.
-igor
On Tue, May 20, 2008 at 7:14 AM, Hoover, William <[EMAIL PROTECTED]>
wrote:
>
> What does everyone think ab
gt; -----Original Message-
> From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 20, 2008 1:52 PM
> To: users@wicket.apache.org
> Subject: Re: Providing IModel to Validators
>
> that is why formcomponents have a setLabel(IModel) whose text is
> then available
tor.minimum(5, srm)).add(new
MyUsernameValidator());
results in- 'first name' with value 'abc' at row 10 is shorter than the
minimum of 5 characters.
results in- 'first name' with value 'abc' at row 10 is not unique.
==
-Orig
be at least
> ${minimum} characters for messages like "first name must be at least 5
> characters"
>
>>
>> If there were a means to add a IModel when adding any of the
>> validators (as described) it would follow the standard Wicket protocol
>
>> of usin
c' at row 10, column 3 is shorter
than the minimum of 5 characters.
==
-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 21, 2008 3:07 PM
To: users@wicket.apache.org
Subject: Re: Providing IModel to Validators
and what
column 3 is shorter
> than the minimum of 5 characters.
>
> ==
>
> -Original Message-
> From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 21, 2008 3:07 PM
> To: users@wicket.apache.org
> Subject: Re: Providing
done: https://issues.apache.org/jira/browse/WICKET-1654
-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 21, 2008 8:10 PM
To: users@wicket.apache.org
Subject: Re: Providing IModel to Validators
ah, i see. so the model for the validator overrides the