[
https://issues.apache.org/jira/browse/WICKET-5482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-5482.
-------------------------------------
Resolution: Later
Guice's @com.google.inject.name.Named works without problem.
But I cannot find how to make a binding with JSR330's javax.inject.Named.
See attached patch. Find a way to add the binding and we will reopen this
ticket.
> Wicket-guice doesn't support @javax.inject.Named annotations
> ------------------------------------------------------------
>
> Key: WICKET-5482
> URL: https://issues.apache.org/jira/browse/WICKET-5482
> Project: Wicket
> Issue Type: Bug
> Components: wicket-guice
> Affects Versions: 6.13.0
> Reporter: Ilia Naryzhny
> Labels: injection
> Attachments: WICKET-5482.patch
>
>
> 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())
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)