Thursday, June 7, 2012

Re: Hyperlink/Anchors: Passing data in Places



On Thursday, June 7, 2012 5:58:10 PM UTC+2, Shaun Tarves wrote:
Thanks for the suggestions.

I'm still perplexed why the field injection of the PHM doesn't work in a PlaceHyperlink.

Depends how you do it; but given that it's created by UiBinder and not by GIN (unless you use @UiFactory or @UiField(provided=true)), you have to take explicit action to inject it with GIN. You should be able to do "instance injection" instead of "static injection" if you prefer (declare a method on your Ginjector taking a PlaceHyperlink as argument and with a void return-type, then call it with a PlaceHyperlink for an equivalent to Guice's injectMembers)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/DQe2uOI5gKcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment