You could override the variablesMap() method to add in your values that the
message in the properties file contains:
Similar to the message: '${input}' isn't a valid widget.
-Clint
On Fri, May 20, 2011 at 2:34 PM, eugenebalt <[email protected]> wrote:
> In the Validators we override the method getResourceKey() to get a message
> from .properties.
>
> My problem is, my error message includes the value of a component on the
> form. So I only know the full message AFTER I get to onValidate().
>
> How can I construct the message string here? Is there a way to provide the
> message right before issuing error() ?
>
> Thanks
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Customize-Validator-Message-based-on-Dynamic-Variable-tp3539384p3539384.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>