Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-2408

Support for RenderedAdjusted facet for datetimes should be pluggable.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0-M3
    • Fix Version/s: 2.0.0-M4
    • Labels:
      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

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

              Dates

              • Created:
                Updated: