Re: Providing IModel to Validators

2008-05-20 Thread Johan Compagner
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

Re: Providing IModel to Validators

2008-05-20 Thread Igor Vaynberg
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? > >

RE: Providing IModel to Validators

2008-05-20 Thread Hoover, William
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

Re: Providing IModel to Validators

2008-05-20 Thread Igor Vaynberg
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

RE: Providing IModel to Validators

2008-05-21 Thread Hoover, William
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

Re: Providing IModel to Validators

2008-05-21 Thread Igor Vaynberg
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

RE: Providing IModel to Validators

2008-05-21 Thread Hoover, William
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

Re: Providing IModel to Validators

2008-05-21 Thread Igor Vaynberg
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

RE: Providing IModel to Validators

2008-05-22 Thread Hoover, William
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