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