Questions tagged [gwt-gin]

GIN brings automatic dependency injection to GWT client-side code.

GIN (GWT INjection) brings automatic dependency injection to Google Web Toolkit client-side code. GIN is built on top of Guice and uses (a subset of) Guice's binding language.

195 questions
0
votes
3 answers

Connecting gwt-dispatch with guice and mvp4g

I have some questions regarding gwt-dispatch and guice. I'm using Guice 2.0, gwt-dispatch 1.1.0 snapshot, mvp4g 1.1.0 and GIN 1.0 First of all, I have defined simple action, result and handler: ListContactsAction.java public class ListContactsAction…
jjczopek
  • 3,319
  • 2
  • 32
  • 72
0
votes
1 answer

Using Grapher on GIN application with GinModuleAdapter

I've been trying to use Grapher on my GIN project. But trying to create an Injector to give the InjectorGrapher has not been working. Right in the first line of my code: Injector injector = Guice.createInjector( new GinModuleAdapter( new…
Epaga
  • 38,231
  • 58
  • 157
  • 245
0
votes
1 answer

GWT GIN: Can Gijector return generic of unknown type?

Im developing webapp using GWT and GIN, I'm really curious if its possible to use Ginjector to return generic type, but unknown for implementation untill usage? maybe code will clear my question: My Gin module: @GinModules(GinModule.class) public…
0
votes
0 answers

Why does my my GIN factory always return null?

I am trying to write a Jukito test that uses a GIN factory I created. My factory looks like so: public interface ClientFactory { public DOMModel create(Entity ref); } I am binding it in my gin module like so: public class ClientModule…
Casey Jordan
  • 1,204
  • 1
  • 20
  • 39
0
votes
0 answers

Deffered binding failed for inner interface exntended UiBinder

ERROR: Error injecting com.avtodoria.tracer.web.client.view.SearchProfileViewImpl$SearchProfileViewUiBinder: Unable to create or inherit binding: No @Inject or default constructor found for…
0
votes
2 answers

Injecting Handlers in Custom Widget

I have a handler classes, I need to inject it in the custom widgets. I tried the bind() method in ClientModule class, but it is not getting injected. What am I supposed to do, do get the class injected. public class ExtendedTextBoxBase extends…
Bennet
  • 387
  • 1
  • 6
  • 13
0
votes
3 answers

create new instance of class that is managed by gin

Im using GWTP, working on their tab panel example. My issue is i need to demonstrate taking a search term and adding a new tab to the tab panel with the search results. So if i search 5 times, i have 5 tabs. easy enough, so i thought. Gin is…
scphantm
  • 4,293
  • 8
  • 43
  • 77
0
votes
1 answer

GinMapProvider Stack Overflow

I am getting a stack overflow but I think I have nailed down the problem. The issue is a recursive inject when binding my panel widget. The problem I have ran into is that my PanelWidget takes the Map as a parameter. The problem is then that that…
Chris Hinshaw
  • 6,967
  • 2
  • 39
  • 65
0
votes
2 answers

Google Guice, Google Gin and Spring

I am planning to improve an already written code, which is a GWT application and needs to be deployed on GAE. The dependency Injection is taken care by Guice and Gin. I am wondering if I can use Spring at the back end.(which is kind of a strict…
dharam
  • 7,882
  • 15
  • 65
  • 93
0
votes
0 answers

Is possible to inject an existing object into another?

im using GIN and want to avoid carrying dependency without using a Singleton. I have this scenario: 3 clases, A uses B wich uses C. A -> B -> C I have an instance into A (with its own member values) and want to use the same instance (not…
Lben
  • 83
  • 1
  • 12
0
votes
1 answer

How to use the GinMapBinder

We have a project where we use GWT, with the MVP paradigm, and Gin. We have one presenter, but now I want to have different views (one for normal users, and one for the administrator, who sees almost the same, except for an extra column and…
Jesse van Bekkum
  • 1,466
  • 3
  • 15
  • 24
0
votes
2 answers

Using Gin to Inject Multiple Views

I'm attempting to put together a multi-project application, wherein one of the sub-projects has multiple views for a single presenter. I am using Gin to inject views into my presenters. The sub-project contains the presenter and the 2 different…
Lavie Tobey
  • 484
  • 1
  • 4
  • 12
0
votes
0 answers

GWT Generator conflicts with GIN in production mode?

Could you please help me to solve my problem with GWT Generator? Let me explain. I wish to generate a widget (ListBox with pre-defined values) during the compilation time and I use GWT Generator for that. My solution works as expected in DevMode…
0
votes
1 answer

Class.getSimpleName NPE with GIN, GWT 2.5

I read somewhere that GWT 2.5 now allows Class.getSimpleName. I am using GWT 2.5, GXT 3.x. This gave me GIN injector NPE: GWT.log(this.getClass().getSimpleName() + commentString); Is getting the error due to The gin.jar version I am using may not…
Blessed Geek
  • 21,058
  • 23
  • 106
  • 176
0
votes
1 answer

GWT Injection : need good practice

I often need a client bundle and some i18n-ed messages in presenters and views. I would like to know which is the best way to get them : Injection or Singleton? Solution 1: Up to now, I used to get the messages using a Singleton : public interface…
user2147970
  • 412
  • 2
  • 7
1 2 3
12
13