Add variables to ConversionException
------------------------------------

                 Key: WICKET-961
                 URL: https://issues.apache.org/jira/browse/WICKET-961
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.3.0-beta3
            Reporter: Jonas
            Priority: Minor


Currently, it's possible to set the resource key of the error message in a 
ConversionException, but
when it comes to variable substitution, you're limited to what 
FormComponent#convertInput() provides.

I propose to extend ConversionException with #setVariable(String, Object).
This would e.g. enable IConverters to use more than just the predefined 
variables.
The additional variables of course need to be forwarded to the ValidationError 
created in 
FormComponent#convertInput().

I've attached a patch against current trunk that contains the needed changes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to