[
https://issues.apache.org/jira/browse/WICKET-1854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Johan Compagner closed WICKET-1854.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.4-M4
Assignee: Johan Compagner
that doesnt make any sense,
i think that was a patch that introduced this. Somehow RadioChoice still had
that code.
> What's the point of requiring IConverters to be superclasses of the objects
> they convert?
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-1854
> URL: https://issues.apache.org/jira/browse/WICKET-1854
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.4-M3
> Reporter: Maarten Billemont
> Assignee: Johan Compagner
> Fix For: 1.4-M4
>
>
> I'm trying to write a converter for my Entity classes; but am baffled by the
> seemingly useless requirement that the converter should extend the class of
> the object it's supposed to convert.
> Why can't I just write a converter which is a plain class that implement
> IConverter? Why must this check exist?
> The issue is about this code:
> wicket/src/main/java/org/apache/wicket/markup/html/form/RadioChoice.java:437:
> if
> (!converter.getClass().isAssignableFrom(objectClass))
> {
> throw new
> IllegalArgumentException("converter can not convert " +
> objectClass.getName() + " to
> string");
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.