[ 
https://issues.apache.org/jira/browse/WICKET-2658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796177#action_12796177
 ] 

Ricardo Mayerhofer commented on WICKET-2658:
--------------------------------------------

Hi Johan,
Thanks for your quick response. Currently if you need to use a different 
defaultconverter you have to write your own converter locator from ground up. 
That's done basically copying and pasting wicket's converter locator and 
changing defaultconverter, because there is no way to extend 
ConverterLocator.java (all methods are final and DefaultConverter is private). 
It would be easier if it were possible to to extend convertlocator and overide 
a newly created getDefaultLocator method, for example.

> Allow to overide DefaultConverter
> ---------------------------------
>
>                 Key: WICKET-2658
>                 URL: https://issues.apache.org/jira/browse/WICKET-2658
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>            Reporter: Ricardo Mayerhofer
>            Assignee: Johan Compagner
>            Priority: Minor
>
> In a application with many value objects (from P of EAA) is useful as a 
> conversion last resource to instantiate the target class passing the reveived 
> parameter to class constructor. This can be achieved overiding 
> ConverterLocator's default converter . 
> One way this could be done is:
> - Remove final from getConverterLocator() in Application.java, so one can 
> implement its own converter locator.
> - ConverterLocator have a getDefaultLocator that could be overiden.
> I don't know if this is the best way, but it requires few changes in wicket.
> Thanks for considering.

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