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
1
vote
2 answers

Optional module installation

With GWTP/Gin, is it possible to optionally install a module during compile? We have a case where we would like to have a presenter and view only available in the application when running in "development" mode, where that mode is determined by a…
tstewart
  • 11
  • 2
1
vote
3 answers

How to handle the situation where a bean requires a server call as part of its initialiation

I have the folowing constructor... @Inject public EditorPresenter(final EventBus eventBus, final MyView view, final Provider provider) { DataProvider provider = provider.get(); provider.getInitData().fire(new…
Michael Wiles
  • 20,902
  • 18
  • 71
  • 101
1
vote
2 answers

Why is Gin generating source files in the "target/classes" directory?

I am using Maven to build my GWT project. I am using Gin to generate some boilerplate code: package com.lokur.motd.client.events; import com.gwtplatform.dispatch.annotation.GenEvent; @GenEvent public class EditorChange { } But, when I run "mvn…
Akshay Lokur
  • 6,680
  • 13
  • 43
  • 62
1
vote
3 answers

Not able to get reference to class file generated in "target" folder of Maven project in GWT

I am using Google Gin for generating an Event in my GWT project like this: package com.lokur.motd.client.events; import com.gwtplatform.dispatch.annotation.GenEvent; @GenEvent public class EditorChange { } Now, when I compile my project with "mvn…
Akshay Lokur
  • 6,680
  • 13
  • 43
  • 62
1
vote
0 answers

GWTP Strange Error Messages (That are inaccurate)

So I really need some helpful hints with an issue I am having with my GWTP application, perhaps one of you have ran into this problem before. So I am using GWTP 1.1 with: com.gwtplatform.mvp.Mvp (Not w/ entry…
Ben Dol
  • 427
  • 6
  • 18
1
vote
1 answer

How to propagate a value during injection with GIN

I want to inject a class A somewhere with GIN. The A class constructor requires an id know at runtime plus two other classes B and C. B and C constructors requires the same id of A as parameters. Here a example of the classes. public class A { …
Fedy2
  • 3,147
  • 4
  • 26
  • 44
1
vote
2 answers

GWTP bind enum in GIN

I'm trying to put a enumeration into the ginjector with these lines of code: ClientGinjector.java MyEnum getMyEnum(); ClientModule.java bind(MyEnum.class).in(Singleton.class); But when I'm trying to compile I get the following error: [ERROR]…
Ben
  • 366
  • 1
  • 13
1
vote
1 answer

Integrating a GWTP project with a standard GWT project

I have a GWTP application which has no entry point because I don't ever need to run this application on its own. Rather I want to use it within a standard GWT application which has an entry point, implements its own history management mechanism,…
mkhezr
  • 309
  • 1
  • 2
  • 7
1
vote
0 answers

GWT GIN to bind many ClientBundle with ImageResource in one picture for fast loading application

I am using GWT in my application. For caching pictures i use ClientBundle with ImageResource. I have many ClientBundles like this: public interface MenuBundle extends ClientBundle { @Source(background.png) ImageResource background(); …
B.ARS
  • 11
  • 1
1
vote
1 answer

How to perform full text search on a gin postgres index in doctrine 2.2?

Is there a simple way of doing this in doctrine, or am I going to have to do a native sql query? If someone could point me in the right direction, it would be appreciated.
Trololololol
  • 200
  • 4
  • 18
1
vote
1 answer

GIN injection of field in abstract class

I'm working in some GWT application in which I have a hierarchy where I have an abstract presenter with some common functionality of derived classes. Something like: public abstract class MyAbstractPresenter
Sednus
  • 2,095
  • 1
  • 18
  • 35
1
vote
1 answer

How to get Google GIN working with Google-Eclipse plugin in DevMode?

I am experimenting with my first GWT app that uses GIN. I am essentially mimicking the exact same source code example found in their Getting Started tutorial. At the end of that tutorial, the author mentions that you need to supply the the GWT…
user1768830
1
vote
1 answer

Using GIN-created resource in UiBinder xml

Our application uses GIN to instantiate its GWT Resource bundle dynamically. This is done to enable loading different stylesheets at runtime for different display modes. In general, this means that I can create the singleton instance of the…
Yona Appletree
  • 8,801
  • 6
  • 35
  • 52
1
vote
1 answer

Nested View's Presenter not getting initialized and not being able to handle its view's events

I am facing an issue, when I do inject a nested view into my base view's constructor using @inject. I am not able to handle the nested view's events in it own presenter. Because of which I need to handle them in the Base View's presenter. I have 2…
Nitish Borade
  • 367
  • 3
  • 18
1
vote
1 answer

Deferred binding failed for 'com.mycompany.client.gin.ClientGinjector'

I'm really having a hard time fixing the error below as I have properly added the the jars and the in the gwt.xml file 0 5:27:22.011 [ERROR] [myapp] Failed to create an instance of 'com.mycompany.client.MainAppEntryPoint' via deferred…
quarks
  • 33,478
  • 73
  • 290
  • 513