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

Wicket-guice doesn't support @javax.inject.Named annotations

    XMLWordPrintableJSON

Details

    Description

      Following annotations in wicket commponent have not been supported now:

      @Inject
      @Named("myproperty")
      private String myproperty;

      And instead of throwing exception, wicket-guice just substitute "" for String fields. And that is making debuging of problems quite difficult task.

      The problem, from my point of view, lies in org.apache.wicket.guice.GuiceFieldValueFactory.findBindingAnnotation(); or can be fixed one level up (org.apache.wicket.guice.GuiceFieldValueFactory.getFieldValue())

      Attachments

        1. WICKET-5482.patch
          5 kB
          Martin Tzvetanov Grigorov

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            phantom Ilia Naryzhny
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: