Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-2749

[Duplicate] Convert IsisConverterLocator into a domain service and allow Wicket Converters to be substituted in.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.0.0-M5
    • 2.0.0-M7
    • Core
    • None

    Description

      For example, if enter 'abc' into a BigDecimal' then the error message returned is effectively hardcoded because in IsisWicketApplication we just use Wicket's default ConverterLocator (fine tuned with a couple of extra types to convert).  That means we get:

      We also have a bit of technical debt, because there is an IsisConverterLocator that doesn't implement Wicket's IConvertLocator, and is just called from one place, statically, to render an object as a string.

      So we should perhaps:

      • provide our own impl of IConveterLocator, probably subclassed from Wicket's
      • make it a Spring Bean
      • get rid of IsisConverterLocator (roll it into aforementioned IConverterLocator)
      • decide on a way to allow new/replacement converters to be registered.

      We might also want to look at the ValueTypeRegistry we have, just in case there's overlap.

       

       

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment