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
1 answer

GIN Inject @Singleton into widgets fields

I have read a TON of stackoverflow and other resources trying to find an answer and maybe I just don't get it. I am trying to inject a GIN @Singleton into several widgets and classes in my application's client code. Using Spring I can simply use the…
user1209809
  • 108
  • 9
0
votes
1 answer

smartgwt + gin Code Splitting

I am looking for example to use code splitting with gin and smartgwt ... In my simple application I have 2 modules AutoLoadModule and WindowModule. In my simple app I just need to load a window when some button is clicked. My window module contains:…
Łukasz Woźniczka
  • 1,625
  • 3
  • 28
  • 51
0
votes
1 answer

gin inject and read config from async service

i have got module and this module only read config from server via async callbacK: @Singleton public class Config { private ConnectionSettings connectionSettings; @Inject protected Config(final MainRPCAsync mainRpc) { …
Łukasz Woźniczka
  • 1,625
  • 3
  • 28
  • 51
0
votes
1 answer

Gin injecting in a shared (client server) object - "IsTreeItem"

I have an object that implements "IsTreeItem". The Object is displayed as a two level tree item. Each tree item is built with a check box. I need to know when a check box is changing value - so i am listening to ValueChangedEvents. The first problem…
dermoritz
  • 12,519
  • 25
  • 97
  • 185
0
votes
1 answer

GWT - GinModule use the same interface for different implementations

I have this GinModule: public class LocalizadorGinModule extends AbstractGinModule { @Override protected void configure() { bind(Localizador.class).to(LocalizadorAImple.class).in(Singleton.class); …
0
votes
1 answer

Can you inject a custom exception (or its provider)?

The standard Exception has no default constructor (or a way to set the message after instantiation). If a custom exception is based on it, can the derived class be made injectable? public class SpecialPurposeException extends Exception { private…
Felix Lechner
  • 468
  • 5
  • 11
0
votes
1 answer

Can one avoid injecting Places when using RequestFactory's stableId() as state information?

My Gin-injected GWT application uses RequestFactory together with Activities and Places. To tokenize RequestFactory's stableId() inside Places, I inject the RequestFactory. That gives the class access to getProxyId(token) and…
Felix Lechner
  • 468
  • 5
  • 11
0
votes
0 answers

Deferred binding failed for GWTP PlaceManager

This is the error I get when running my application: java.lang.RuntimeException: Deferred binding failed for 'com.gwtplatform.mvp.client.proxy.PlaceManager' (did you forget to inherit a required module?) at…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

'GinjectorGenerator' threw an exception while rebinding '...ClientGinjector'

I'm getting this error when running my web application that use GWT, GWT-Platform and App engine: Generator 'com.google.gwt.inject.rebind.GinjectorGenerator' threw an exception while rebinding 'com.myapp.client.gin.ClientGinjector' My…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

GWT Platform gatekeeper user needs to sign in again on page refresh

What would be the best practice to keep the user logged in if he or she refreshes the page? Assume that the user signed in already. At the moment the gatekeeper is performing its duty but when the user refreshes (F5 , browser button) the page. The…
David
  • 4,185
  • 2
  • 27
  • 46
0
votes
2 answers

Field level injection with Gin

I'm trying to do field-level injection so I don't have to pass "models" when my controllers are instantiated, like, UserController controller = new UserController(/*No need to pass models here*/); However my application throws…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Dependency Injection for MVC

I know DI is mostly used with MVP pattern however, where does Google Gin fits into a Model-View-Controller framework/pattern? For example, usually for a MVC a View holds references to the Model (in which it listen to change events) and the…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
2 answers

NoClassDefFoundError with Gin 1.5 and GWT 2.4

I am trying to put together a GWT webapp following this GWT MVP tutorial but using newer releases of the used libraries because not all of them are available any more or not compatible with GWT 2.4. The problem is that when I run the project, I get…
Raidok
  • 774
  • 8
  • 19
0
votes
2 answers

Can I use Gin and Guice in an EJB 3.1 project?

I'm going to start a Java EE project with EJB3.1 technology. I know the new EJB concept allows Context and Dependency Injection. In an old project I used GIN and GUICE in a GWT Project. It was nice. Can I use these frameworks also with EJB? Or do…
Kayser
  • 6,544
  • 19
  • 53
  • 86
-1
votes
2 answers

javax.inject GWT error

HELP WITH THIS ERROR PLEASE! Compiling module com.myapp.n.N Scanning for additional dependencies: file:/C:/development/n5fix/nube/src/com/myapp/n/client/N.java Computing all possible rebind results for…
Murray
  • 189
  • 1
  • 11
1 2 3
12
13