[
https://issues.apache.org/jira/browse/WICKET-961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Igor Vaynberg resolved WICKET-961.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.3.0-beta4
Assignee: Igor Vaynberg
> 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
> Assignee: Igor Vaynberg
> Priority: Minor
> Fix For: 1.3.0-beta4
>
> Attachments: variables_in_ConversionException.patch
>
>
> 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.