Are you trying to say that I make those views as singletons? The
problem is that I would like to reuse one widget on multiple places.
If I go with singletons I must create classes for every widget I use
(they will extend some class that has mutual functionality)?
On 16 lip, 02:27, Juan Pablo
No, I don't say that. I say your problem about multiple instance is becouse
in each @Inject you have a new instance.
2011/6/16 ricu marko.c...@gmail.com
Are you trying to say that I make those views as singletons? The
problem is that I would like to reuse one widget on multiple places.
If I
Yes, but I have new instances because they are not singletons :). So
to solve this issue I must make them singletons? If I do that then I
can't reuse them across the application. Or can I?
On 16 lip, 12:50, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
No, I don't say that. I say your
If your widgets are reusable, if you create new instances there are not
problem. Why you want to share instances?
2011/6/16 ricu marko.c...@gmail.com
Yes, but I have new instances because they are not singletons :). So
to solve this issue I must make them singletons? If I do that then I
can't
I don't want share instances through modules that is why i didn't make
those view parts as singletons in the first place. But the view that
is injected in the parent view and the view injected into it's
presenter MUST be the same instance. But can you see what the problem
is? If I don't share
Maybe,
@Inject
class MainWidget(SubWidget subwidget)
.
.
@Inject
class SubWidget(SubWidgetPresenter presenter)
You can then inject eventBus into presenter and communicate with the
MainWidget/Rest of the app.
On Wed, Jun 15, 2011 at 12:58 PM, ricu marko.c...@gmail.com wrote:
Anybody? Maybe
Anybody? Maybe someone has the same architecture without GIN. What is
your experience?
On 13 lip, 21:16, ricu marko.c...@gmail.com wrote:
Hi!
We are usingGINin our application which is constructed in MVP style.
We tried to follow some best practices described in GWT pages and here
in GWT
The problem is that we get two objects of the sub-widget class becouse
this widgets aren't singletons.
2011/6/15 ricu marko.c...@gmail.com
Anybody? Maybe someone has the same architecture without GIN. What is
your experience?
On 13 lip, 21:16, ricu marko.c...@gmail.com wrote:
Hi!
We
Hi!
We are using GIN in our application which is constructed in MVP style.
We tried to follow some best practices described in GWT pages and here
in GWT group so we design the application in the following manner:
1) We have multiple main screens(pages) that have activities attached
to them. They