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

Support for RenderedAdjusted facet for datetimes should be pluggable.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-M3
    • None
    • Core, Viewer Wicket
    • None

    Description

      Currently the list of types is hard-coded in IsisConverterLocator

      It is also inconsistent with the subclasses of ScalarPanelTextFieldDatePickerAbstract and calls to #getAdjustBy().

       

      if (java.util.Date.class == correspondingClass) {
       return _Casts.uncheckedCast(new DateConverterForJavaUtilDate(wicketViewerSettings, adjustBy));
      }
      if (java.sql.Date.class == correspondingClass) {
       ...
      }
      if (org.joda.time.LocalDate.class == correspondingClass) {
       ...
      }
      if (org.joda.time.LocalDateTime.class == correspondingClass) {
       ...
      }
      if (org.joda.time.DateTime.class == correspondingClass) {
       ...
      }
      if (java.sql.Timestamp.class == correspondingClass) {
       ...
      } 

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: