You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jonas (JIRA)" <ji...@apache.org> on 2007/09/12 11:40:32 UTC

[jira] Updated: (WICKET-961) Add variables to ConversionException

     [ https://issues.apache.org/jira/browse/WICKET-961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonas updated WICKET-961:
-------------------------

    Attachment: variables_in_ConversionException.patch

> 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
>         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.