I have:
TextField mortgageAmountPrimary = new TextField("mortgageAmountPrimary",
Double.class);
If the built in double conversion fails I want this custom error
message:
"You must enter a valid value for Ted's mortgage amount field to
continue with this application."
I need to pass in "Ted" in a variable like:
mortgageAmountPrimary.Iconverter.Double=You must enter a valid value for
${username}'s mortgage amount field to continue with this application.
So I need a 'username' var to pass in. Can you extend a converter and if
so how would you instruct the textfield to use it?
Thanks
-----Original Message-----
From: Jered Myers [mailto:[email protected]]
Sent: Thursday, March 31, 2011 3:39 PM
To: [email protected]
Subject: Re: Wicket help
I think you might be looking for the variablesMap(IValidatable) function
in AbstractValidator. You will probably need to extend your validator
and override that function. PatternValidator overrides it to create the
"pattern" variable, if you want an example.
On 3/31/2011 10:57 AM, Henry, Mike [GCG-PFS] wrote:
> Does anyone know if its possible to add your own variables to the
> built it converters/validators for custom messages?
>