Griffon
  1. Griffon
  2. GRIFFON-626

Allow a conversion format to be specified in @InjectedResource

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.3.0
    • Component/s: rt
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Converting values annotated by @InjectedResource may require a specific format to be provided. Example

      package sample
      
      import groovy.beans.Bindable
      import griffon.core.resources.InjectedResource
      
      class SampleModel {
          @Bindable @InjectedResource(defaultValue='08.04.2013 2:30 PM', format='dd.MM.yyyy h:mm a') Date date
      }
      

        Activity

        Show
        Andres Almiray added a comment - Fixed with https://github.com/griffon/griffon/commit/5f5b3eb7605e3947afde6e7733ed9811e83ff383

          People

          • Assignee:
            Andres Almiray
            Reporter:
            Andres Almiray
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: