Jens,
thanks for you reply.
The MVP-2 example (with UIBinder) also uses HandlerManager directly in its
code, just as the MVP-1. I shall try my hand, using SimpleEventBus in
these samples.
I wonder how HandlerManager got into these samples in the first place. Was
it a mere oversight, in a
That would be a good/quick fix for GWT 2.5 to deprecate the old 'start'
method and fix the signature.
On my project we have a base Activity and that is exactly what I did, so we
always have the right EventBus imported..
-Clint
On Thu, Aug 2, 2012 at 8:55 AM, Jens jens.nehlme...@gmail.com wrote:
yes that's what I mean. I inherited the code that uses RF and MVP.
Classes implement Activity interface defined in
com.google.gwt.activity.shared and this needs the Event bus from the
same package. I'm not sure if this will change in future releases of
GWT.
Looks a bit inconsequent to me But hey
Changing it would be a breaking change for existing apps, thats why
Activity still uses the old EventBus in its start method.
Maybe this will change in the future but if you think about that the
deprecated addXyzListener() methods in GWT are deprecated since GWT 1.6 it
will probably take a
I was mid way of re-factoring the code when I realised that the
Activity interface needs EventBus from
com.google.gwt.event.shared.EventBus :(
On 1 August 2012 09:21, Jens jens.nehlme...@gmail.com wrote:
Always use the web.bindery EventBus in your code and never use the
HandlerManager
I was mid way of re-factoring the code when I realised that the
Activity interface needs EventBus from
com.google.gwt.event.shared.EventBus :(
Simply don't import the old EventBus package in your activity. If you need
to store the EventBus provided in the start() method in your
Always use the web.bindery EventBus in your code and never use the
HandlerManager directly. Also I strongly recommend to use Part II of the
mentioned article
(https://developers.google.com/web-toolkit/articles/mvp-architecture-2)
which makes your code a lot cleaner.
-- J.
--
You received
yeah, well, I guess I need to adapt to the brave new world, where a
two-line paragraph in the Javadoc passes for documentation. Perhaps this is
the price we pay for having access to the source. Still, it's a long and
hard road, from reading GWT sources, to building an understanding of
I'm going through the MVP Tutorial Part
Onehttps://developers.google.com/web-toolkit/articles/mvp-architecture with
the Tutorial-Contacts
The article recommends the use of HandlerManager and points to a 2.0 copy
of the
andrewsc said:
I've seen SimpleEventBus ... being used in 2.4 apps, but I can't
find any description of it, apart from JavaDoc mentining it is a
wrap around legacy. Does anyone have more material about
SimpleEventBus ?
Up another level and there are some docs:
10 matches
Mail list logo