Thursday, July 3, 2014

Re: JSNI function and DevMode

After reading the other replies and looking at this, I would suspect it to be a race condition in DevMode.  Where the problem lies in when the exportMenuClickedMethod() is called.  

This is where the method being static or not comes into play.  By it not being static, it can't be called until an instance of the class is created, which in DevMode may different than in compiled mode because you have the back and forth of the browser and Eclipse here.

So, I would make the method static, and call it in a static initialize block for the class in which it is declared.  That way it will be exported more consistently in DevMode and compiled mode.


On Wednesday, July 2, 2014 10:33:33 AM UTC-7, gktcs wrote:
I was trying to "anonymize" what was actually being done when pasting in here and somehow ended up with an extra single quote.  I've verified that the application is correct and just using 'PAGE'.

As for the export function not being static...probably just an oversight.  I wouldn't think it matters either, but I'll make the change and see if that makes any difference.

On Wednesday, July 2, 2014 11:59:47 AM UTC-4, Patrick Tucker wrote:
You have 2 single quotes after PAGE??

Also, not that it should matter here, but why isn't your export function static?

--
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.

No comments:

Post a Comment