Monday, June 2, 2014

Eventbus question: When to call HandlerRegistration.removeHandler() ?

hi,

I have a question to eventbus handling:
when do I have to  remove handlers from the eventbus via HandlerRegistration.removeHandler() ?
In our application an activity is a presenter as well.
The docs of Activity say:
/**
    * Called when the Activity's widget has been removed from view. All event
    * handlers it registered will have been removed before this method is called.
    */

   
void onStop();

 /**
    * Called when the Activity should ready its widget for the user.
    * ...
    * <p>
    * Any handlers attached to the provided event bus will be de-registered when
    * the activity is stopped, so activities will rarely need to hold on to the
    * {@link com.google.gwt.event.shared.HandlerRegistration HandlerRegistration}
    * instances returned by {@link EventBus#addHandler}.
    * ...
    */

   
void start(AcceptsOneWidget panel, EventBus eventBus);

So, does this mean, I don't have to care about unregistering handlers within my presenter/activity because this is done automatically?
Consecutive starts of an activity/presenter that will register handlers in their start-method will NOT cause duplicate registrations of the same handler ?

I browsed the GWT sources (2.5.1) but didn't find a concluding answer to this.

TIA
Kibu

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: refresh problem

Have a look at gwt-comet to push data to the client.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Connecting a DataGrid to a JSON source

I would look in the GXT code for examples and inspiration. They have a lot of these constructions like you want.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: gray mask on top of an image

This has nothing to do with GWT.
You can do this in pure CSS. I would use a css pseudo contruction like: Stylname:after...
It all depends on the style properties of the image (absolute/relative, etc...)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

gray mask on top of an image

Hi,

I want to apply a gray transparent mask on top of an image. What can I do?

Thanks

Best practices for reducing generated RPC Serialization code?

What are the best practices for reducing generated RPC Serialization code?

Currently I use small Remote backend interfaces such that the serialization code is only downloaded when used in a split point.
However, reading this SO post, I get the impression it's better to use one big backend remote interface?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: GWT 2.6 RC1 DevMode log4j fail?

a quick workaround  that worked for us is to pass  -Dlog4j.ignoreTCL=true to devMode

For the maven-gwt-pluging you can add
<extraJvmArgs>-Dlog4j.ignoreTCL=true</extraJvmArgs>



On Friday, May 30, 2014 2:53:42 PM UTC+3, Sarjith wrote:
Anybody got solution for this?

I still face trouble on this. I used GWT2.6.1.

BTW, why should be include log4j to this project? can i run it in devmode without log4j file?

--
Sarjith
          


On Wed, Mar 26, 2014 at 8:09 PM, Sven Reinhardt <sven.rei...@gmail.com> wrote:
Is there any progress on this? I solved the problem regarding your hints. But I don't really get why this actually happens. Seems like Jetty is causing my log4j configuration to bootstrap twice.



Am Dienstag, 18. Februar 2014 16:33:42 UTC+1 schrieb Dennis R.:
Ok Thanks for your help then I will keep an eye on this.

Am Dienstag, 18. Februar 2014 16:18:58 UTC+1 schrieb Thomas Broyer:


On Tuesday, February 18, 2014 3:36:00 PM UTC+1, Dennis R. wrote:
Ok I understand why splitting client and server side might be a good idea and we will check if this is applicable for us and worth the time investment.

Except the Warnings/Errors in DevMode do we have to fear anything else when we keep up our approach with GWT 2.6?

Hopefully not (fingers crossed)
 
Why does this only come up with 2.6 and not with 2.5.1?

Jetty was updated from 6 to 8, and it incurred changes in the way classes are loaded.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.