Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2619

wicket should handle Enums like other primitives when injecting them.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.4
    • 1.4.6, 1.5-M1
    • wicket, wicket-spring
    • None
    • tested with spring.

    Description

      when binding Enum with the use of a factory-method it is not possible to inject the generated value. Primitives such as Integer, boolean etc are already handled directly, since they need no specific serialization handling. enums can be used likewise. i will provide a half-line patch for LazyInitProxyFactory which will fix this.

      Attachments

        1. handle_enums_as_Primitives.patch
          0.7 kB
          Andreas Petersson

        Activity

          People

            jdonnerstag Juegen Donnerstag
            apetersson Andreas Petersson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified