Hyperlink don't work in Internet Explorer

2014-03-19 Thread Dominic Warzok
Hi, 

in my GWT webapp I use some Hyperlinks. 

But these Hyperlinks have a Table with content inside. In this Table there 
is an image and some text behind. 

In InternetExplorer it works when I click at the image but if I click at 
the text nothing happens. 

Any idea why this happen ? Chrome and Firefox work like expected.


Thanks in advance
Dominic 

-- 
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+unsubscr...@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.


How to run JSP page and gwt screen in hosted/development mode.

2014-03-19 Thread panigwt
Hi All,


I have a project uses JSP and gwt-ext(customized as a framework). The 
application is been started using jsp as login page by tomcat and later it 
will navigate to gwt screen.

I can able to achieve this through tomcat server in IE, but the thing is I 
can't able to debug the gwt client side codes.

How shall I run the jsp page in hosted/development mode so that I can debug 
the application for jsp and gwt in single window


Thanks in advance...

-- 
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+unsubscr...@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.2 and WEB-INF/deploy

2014-03-19 Thread Namh S
I thinks this files are for debug of your javascript on chrome which is 
generated from your GWT.
symbolMaps would help to debug obfuscated javascript.



2011년 2월 15일 화요일 오후 10시 13분 9초 UTC+9, John 님의 말:
>
> I'm also very curious as to the purpose of this folder.  I have a 
> multi-project setup, and all but one automatically has its own 
> subfolder in deploy.  I was very hopeful that the deploy folder would 
> make actually deploying a multi-project app easier since right now it 
> is immensely frustrating, but it doesn't seem to be the case. 
>
> On Feb 15, 5:29 am, Filipe Sousa  wrote: 
> > Hi, 
> > 
> > I'm trying the new version of GWT (2.2) and noticed that after compiling 
> the 
> > project I'm getting a deploy folder inside the WEB-INF. Do I have to 
> pack 
> > this folder inside the war file?

-- 
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+unsubscr...@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.


Compiler Issue after upgrade from 2.5.1 to 2.6

2014-03-19 Thread ckuetbach
Hello *, 

I think I've found an Issue within GWT 2.6 compiler. The Issue may be 
related to.

https://code.google.com/p/google-web-toolkit/issues/detail?id=8533
https://code.google.com/p/google-web-toolkit/issues/detail?id=7860


Is it possible to print the clasname of the Class which is currently beeing 
compiled?

I would like to create an Issue, but without more information about the 
bug, I guess it cannot be fiexed.

How can I create a more helpful Stacktrace or gather other helpful 
information?

I am using GIN 2.1.2 for dependency injection. I had other compiling issues 
with older versions of GIN.

Regards,

Christian Kütbach

PS:
My stacktrace looks like this:

[INFO] --- gwt-maven-plugin:2.6.0:compile (compile gwt) @ 
groupware_client_commons ---
[INFO] Compiling module com.dvelop.groupware.GroupwareCommons
[INFO] [ERROR] Unexpected internal compiler error
[INFO] java.lang.ArrayIndexOutOfBoundsException: 38
[INFO]  at 
com.google.gwt.dev.asm.ClassReader.readUTF8(ClassReader.java:2083)
[INFO]  at 
com.google.gwt.dev.asm.ClassReader.readAnnotationValues(ClassReader.java:1481)
[INFO]  at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:632)
[INFO]  at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:506)
[INFO]  at 
com.google.gwt.dev.javac.BytecodeSignatureMaker.visitCompileDependenciesInBytecode(BytecodeSignatureMaker.java:218)
[INFO]  at 
com.google.gwt.dev.javac.BytecodeSignatureMaker.getCompileDependencySignature(BytecodeSignatureMaker.java:199)
[INFO]  at 
com.google.gwt.dev.javac.CompiledClass.getSignatureHash(CompiledClass.java:152)
[INFO]  at 
com.google.gwt.dev.javac.Dependencies$Ref.(Dependencies.java:42)
[INFO]  at 
com.google.gwt.dev.javac.Dependencies$Ref.(Dependencies.java:37)
[INFO]  at 
com.google.gwt.dev.javac.Dependencies.resolve(Dependencies.java:114)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:311)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:511)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:434)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:420)
[INFO]  at 
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:485)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:241)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:223)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:139)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:167)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:132)
[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:99)
[INFO]  at 
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
[INFO]  at 
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
[INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:106)


-- 
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+unsubscr...@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: Compiler Issue after upgrade from 2.5.1 to 2.6

2014-03-19 Thread Thomas Broyer
Maybe you could put a conditional breakpoint at 
com.google.gwt.dev.asm.ClassReader.readUTF8(ClassReader.java:2083) stopping 
when "item <= strings.length".
Then inspecting the callstack you could infer which class is being looked 
at (I'd say have a look at 
com.google.gwt.dev.javac.CompiledClass.getSignatureHash(CompiledClass.java:152))

We're about to release 2.6.1, so if you could debug it rapidly, there's a 
chance we could fix this in time for 2.6.1 (would be great! I'd hate to 
have to tell you to wait for GWT.next in approx. 3 months from now)

On Wednesday, March 19, 2014 11:46:56 AM UTC+1, ckuetbach wrote:
>
> Hello *, 
>
> I think I've found an Issue within GWT 2.6 compiler. The Issue may be 
> related to.
>
> https://code.google.com/p/google-web-toolkit/issues/detail?id=8533
> https://code.google.com/p/google-web-toolkit/issues/detail?id=7860
>
>
> Is it possible to print the clasname of the Class which is currently 
> beeing compiled?
>
> I would like to create an Issue, but without more information about the 
> bug, I guess it cannot be fiexed.
>
> How can I create a more helpful Stacktrace or gather other helpful 
> information?
>
> I am using GIN 2.1.2 for dependency injection. I had other compiling 
> issues with older versions of GIN.
>
> Regards,
>
> Christian Kütbach
>
> PS:
> My stacktrace looks like this:
>
> [INFO] --- gwt-maven-plugin:2.6.0:compile (compile gwt) @ 
> groupware_client_commons ---
> [INFO] Compiling module com.dvelop.groupware.GroupwareCommons
> [INFO] [ERROR] Unexpected internal compiler error
> [INFO] java.lang.ArrayIndexOutOfBoundsException: 38
> [INFO]  at 
> com.google.gwt.dev.asm.ClassReader.readUTF8(ClassReader.java:2083)
> [INFO]  at 
> com.google.gwt.dev.asm.ClassReader.readAnnotationValues(ClassReader.java:1481)
> [INFO]  at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:632)
> [INFO]  at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:506)
> [INFO]  at 
> com.google.gwt.dev.javac.BytecodeSignatureMaker.visitCompileDependenciesInBytecode(BytecodeSignatureMaker.java:218)
> [INFO]  at 
> com.google.gwt.dev.javac.BytecodeSignatureMaker.getCompileDependencySignature(BytecodeSignatureMaker.java:199)
> [INFO]  at 
> com.google.gwt.dev.javac.CompiledClass.getSignatureHash(CompiledClass.java:152)
> [INFO]  at 
> com.google.gwt.dev.javac.Dependencies$Ref.(Dependencies.java:42)
> [INFO]  at 
> com.google.gwt.dev.javac.Dependencies$Ref.(Dependencies.java:37)
> [INFO]  at 
> com.google.gwt.dev.javac.Dependencies.resolve(Dependencies.java:114)
> [INFO]  at 
> com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:311)
> [INFO]  at 
> com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:511)
> [INFO]  at 
> com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:434)
> [INFO]  at 
> com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:420)
> [INFO]  at 
> com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:485)
> [INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:241)
> [INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:223)
> [INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:139)
> [INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:167)
> [INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:132)
> [INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:99)
> [INFO]  at 
> com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
> [INFO]  at 
> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
> [INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:106)
>
>
>

-- 
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+unsubscr...@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: CssResource interface conflict?

2014-03-19 Thread Thomas Broyer


On Wednesday, March 19, 2014 1:03:42 AM UTC+1, Ed wrote:
>
> Can anybody please confirm that this is a bug? (so I can report it as such)
>

If you can produce a small repro case (ideally a complete Maven project  so 
it's easy to build and setup in an IDE), then I'd say go ahead and file a 
bug with the repro case attached.
Alternatively, you could make the repro case as a patch to the existing GWT 
test cases.

>From your description it would look like it's a bug, but IMO it'd be 
clearer if one could debug and step into it, look at the JS/CSS output, 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+unsubscr...@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: CssResource interface conflict?

2014-03-19 Thread Ed Bras
Thanks Thomas, I will gather some more info.

-- 
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+unsubscr...@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.


Request Factory and Overlay Type generator

2014-03-19 Thread Vasu
Some time back I had built this maven plugin to generate request factory 
interfaces by scanning annotations on entity and value beans as well as 
service classes. This plugin also can be used to generate overlay types by 
scanning annotations on server side pojo classes. You can refer it here (
gwt-mvn-helper ). You can 
refer sample test module 
(mvn-helper-test)for
 
usage of this plugin. Please feel free to use the same, in case of any 
doubt please feel free to get in touch with me.

-- 
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+unsubscr...@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: Compiler Issue after upgrade from 2.5.1 to 2.6

2014-03-19 Thread ckuetbach
Right now the Problem does only appear, while running *mvn gwt:test* from 
the commandline. If I compile the module within eclipse or run the 
integrationtests in eclipse everything looks fine. I will investigate 
further. Could it be a classloading issue? The sources resists in different 
sorce folder (src/main/java, /src/test/java and /src/integration-test/java) 
?

-- 
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+unsubscr...@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: Compiler Issue after upgrade from 2.5.1 to 2.6

2014-03-19 Thread ckuetbach
Thanks for your reply. I found the problematic class. I've written a JUnit 
TestCase with PowerMockito. For an unknown reason this class was compiled 
by the GWT compiler (I think it is a misconfiguration of the maven source 
folders). I don't think, that it is a bug within the compiler if 
PowerMockito can not be compiled. 

I will try to write a little example to verify, that it was my fault and 
not a GWT compiler bug.


Regards,

Christian Kütbach


-- 
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+unsubscr...@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: extending GWT with framework?

2014-03-19 Thread Magnus
Hi Jens!

On Monday, March 17, 2014 2:20:53 PM UTC+1, Jens wrote:
>
> Just because I know your chess app: Maybe your requirement for in-browser 
> windows disappears if you think about adopting GWT Places so you can have 
> different URLs in your app for different locations and people can open 
> stuff in browser tabs instead of in-browser/tab windows.
>


> For example you can have one URL per chess game and a user can then open 
> all chess games in browser tabs easily. Or all your menu bar entries could 
> have an URL so you can open them in tabs if needed.
>


You probably mean this:

http://www.gwtproject.org/doc/latest/DevGuideMvpActivitiesAndPlaces.html


Having several tabs with different games would be very nice, and I am 
thinking about it for a while,
But I see one problem: The server-to-client communication.

Currently, my server maintains a list of listening clients and sends all 
the events to each one of them. But you cannot tell when a client goes 
away, even with server push technologies (comet and all that). Maybe you 
can simulate this with a timeout or something like that: When there is no 
activity for a while a client is assumed to have gone away and can be 
removed from the list of listeners. This approach becomes worse, if you 
have several tabs with several games. At least, I believe that. Maybe I 
have not thought about it long enough... :-)

However, the approach with in-browser-windows would still be useful: see 
below.

At least for in-browser windows, you maybe can use GWTs AbsolutePanel and a 
> small library like gwt-dnd (or HTML 5 drag and drop) for moving widgets 
> around.
>


The goals I have in mind with moveable and resizeable in-browser windows 
would be:

Let users define the board's size and position additional widgets like 
clock, history, etc..


For example, having vector based graphics would enable the users to resize 
the chess board. How could this be done better than with in-browser-windows?
 

> Magnus

-- 
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+unsubscr...@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.


Migration of Mvp4g 0.9 to 1.4

2014-03-19 Thread Abhishek Gupta
Hi,

Currently my project uses Mvp4g 0.9 with GWT 1.7.
Now we are upgrading GWT to 2.5.1.

What are the code changes will be required?

Thanks in advance

-- 
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+unsubscr...@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.


Problems with user agent property in GWT 2.6

2014-03-19 Thread manya mohanan
Hi all,



I just migrated our project from GWT 2.5.0 to GWT 2.6.0.   We are using
Java 6.



The application works fine after the migration in Firefox, but does not
work in IE9.



The gwt module fails to load and I get the below error in IE9:



00:45:05.664  [ERROR] Error while executing the JavaScript provider for
property 'user.agent'

00:45:05.665  [ERROR] Unable to find value for 'user.agent'

00:45:05.665  [ERROR] Deferred binding failed for
'com.google.gwt.useragent.client.UserAgent'; expect subsequent failures

00:45:05.739  [ERROR] Unable to load module entry point class
com.google.gwt.useragent.client.UserAgentAsserter (see associated exception
for details)

java.lang.RuntimeException: Deferred binding failed for
'com.google.gwt.useragent.client.UserAgent' (did you forget to inherit a
required module?)

at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)

at com.google.gwt.core.shared.GWT.create(GWT.java:72)

at com.google.gwt.core.client.GWT.create(GWT.java:86)

at
com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:41)

   .



Has anyone faced this issue before?



Thanks!

-- 
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+unsubscr...@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: FormPanel: why it extends SimplePanel?

2014-03-19 Thread Dop Sun
Actually, as FormPanel is a SimplePanel, it prevents me to use it as 
Bootstrap#forms , since there, the 
immediate DIV is used as children of the form.

Understand that it's completely separate initiatives, one would not be 
expected to fully compatible to the other, but let FormPanel to extend 
ComplexPanel, would make it more flexible? 

Dop

On Wednesday, November 10, 2010 4:46:39 AM UTC+8, pash7ka wrote:
>
> Yes, but whith this solution I have 
>  
> in resulting page, and the inner  is superfluous. Which is the 
> whole point of my question. ) 
>
> On 9 ноя, 23:39, Jeff Schwartz  wrote: 
> > Add an HtmlPanel to it and then add your widgets to the HtmlPanel. 
> > 
> > Jeff 
> > 
> > On Tue, Nov 9, 2010 at 3:34 PM, pash7ka  wrote: 
> > > Is there a good reason for FormPanel to extend SimplePanel and not 
> > > some other panel (like HTMLPanel)? 
> > > The problem with SimplePanel is the restriction to only one child, 
> > > while most forms contain much more fields. So one shoud use some other 
> > > Panel whithin the Form and this leads to unnecessary markup. 
> > 
> > > -- 
> > > You received this message because you are subscribed to the Google 
> Groups 
> > > "Google Web Toolkit" group. 
> > > To post to this group, send email to 
> > > google-we...@googlegroups.com. 
>
> > > To unsubscribe from this group, send email to 
> > > google-web-toolkit+unsubscr...@googlegroups.com 
> > >  cr...@googlegroups.com > 
> > > . 
> > > For more options, visit this group at 
> > >http://groups.google.com/group/google-web-toolkit?hl=en. 
> > 
> > -- 
> > Jeff

-- 
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+unsubscr...@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: Problems with user agent property in GWT 2.6

2014-03-19 Thread Thomas Broyer


On Wednesday, March 19, 2014 4:59:39 PM UTC+1, manu wrote:
>
> Hi all,
>
>  
>
> I just migrated our project from GWT 2.5.0 to GWT 2.6.0.   We are using 
> Java 6.
>
>  
>
> The application works fine after the migration in Firefox, but does not 
> work in IE9.
>
>  
>
> The gwt module fails to load and I get the below error in IE9:
>
>  
>
> 00:45:05.664  [ERROR] Error while executing the JavaScript provider for 
> property 'user.agent'
>

Do you see such an error in Internet Explorer Developer Tools (F12) ?

While you're in the Developer Tools, what are the reported browser 
compatibility and document compatibility?
Is you HTML host page triggering "standards mode"? ("quirks mode" could 
possibly cause such an error, given that IE would switch to IE5.5 Quirks 
mode; in previous versions of GWT that would use the ie6 permutation, but 
in 2.6 it's disabled by default)

>  

-- 
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+unsubscr...@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-kinetic a thin wrapper for Kinetic.js

2014-03-19 Thread confile
@Alain If you help me to create a maven project I will do a demo page for 
you. 


Best
Michael


Am Mittwoch, 19. März 2014 18:24:38 UTC+1 schrieb Alain:
>
> A nice thing could be to have a demo page to see the lib in action.
> Keep up the good work.
>
>
> 2014-03-19 18:22 GMT+01:00 confile 
> >:
>
>> Hi everyone, 
>>
>> the first version of gwt-kinetic is available here: 
>> https://github.com/confile/gwt-kinetic
>>
>>
>> I would be happy to get some feedback from you.
>>
>> Best
>> Michael
>>
>>
>> Am Samstag, 8. März 2014 20:44:37 UTC+1 schrieb confile:
>>
>>> Hi, 
>>>
>>> I am starting to make a new get wrapper for the kinetic js 5.x branch. 
>>>  You can find the code here https://github.com/confile/gwt-kinetic as 
>>> soon as I upload some.
>>>
>>> If you are interested in working with me on this project please contact 
>>> me. 
>>>
>>> Best
>>> Michael 
>>>
>>  -- 
>> 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+unsubscr...@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+unsubscr...@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-kinetic a thin wrapper for Kinetic.js

2014-03-19 Thread confile
Hi everyone, 

the first version of gwt-kinetic is available 
here: https://github.com/confile/gwt-kinetic


I would be happy to get some feedback from you.

Best
Michael


Am Samstag, 8. März 2014 20:44:37 UTC+1 schrieb confile:
>
> Hi, 
>
> I am starting to make a new get wrapper for the kinetic js 5.x branch. 
>  You can find the code here https://github.com/confile/gwt-kinetic as 
> soon as I upload some.
>
> If you are interested in working with me on this project please contact 
> me. 
>
> Best
> Michael 
>

-- 
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+unsubscr...@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-kinetic a thin wrapper for Kinetic.js

2014-03-19 Thread Alain Ekambi
A nice thing could be to have a demo page to see the lib in action.
Keep up the good work.


2014-03-19 18:22 GMT+01:00 confile :

> Hi everyone,
>
> the first version of gwt-kinetic is available here:
> https://github.com/confile/gwt-kinetic
>
>
> I would be happy to get some feedback from you.
>
> Best
> Michael
>
>
> Am Samstag, 8. März 2014 20:44:37 UTC+1 schrieb confile:
>
>> Hi,
>>
>> I am starting to make a new get wrapper for the kinetic js 5.x branch.
>>  You can find the code here https://github.com/confile/gwt-kinetic as
>> soon as I upload some.
>>
>> If you are interested in working with me on this project please contact
>> me.
>>
>> Best
>> Michael
>>
>  --
> 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+unsubscr...@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.
>

-- 
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+unsubscr...@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: Problems with user agent property in GWT 2.6

2014-03-19 Thread manya mohanan
Thanks for your reply.

The html host page was triggered  in Quirks mode. When I changed to
standards mode the error was gone. But as expected , now there are some
formatting issues in IE9 that need to be taken care of in Standards mode.


On Wed, Mar 19, 2014 at 5:43 PM, Thomas Broyer  wrote:

>
>
> On Wednesday, March 19, 2014 4:59:39 PM UTC+1, manu wrote:
>>
>> Hi all,
>>
>>
>>
>> I just migrated our project from GWT 2.5.0 to GWT 2.6.0.   We are using
>> Java 6.
>>
>>
>>
>> The application works fine after the migration in Firefox, but does not
>> work in IE9.
>>
>>
>>
>> The gwt module fails to load and I get the below error in IE9:
>>
>>
>>
>> 00:45:05.664  [ERROR] Error while executing the JavaScript provider for
>> property 'user.agent'
>>
>
> Do you see such an error in Internet Explorer Developer Tools (F12) ?
>
> While you're in the Developer Tools, what are the reported browser
> compatibility and document compatibility?
> Is you HTML host page triggering "standards mode"? ("quirks mode" could
> possibly cause such an error, given that IE would switch to IE5.5 Quirks
> mode; in previous versions of GWT that would use the ie6 permutation, but
> in 2.6 it's disabled by default)
>
>>   --
> 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+unsubscr...@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.
>

-- 
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+unsubscr...@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.


Need help with JSNI

2014-03-19 Thread rjcarr
I'm trying to export GWT methods using JSNI and I'm not having a lot of 
luck. And sometimes things happen as they should and other times they don't 
and it seems to be magic that is making it happen. It seems the export is 
happening correctly (i.e., javascript can call the GWT methods) but once it 
gets back to the GWT then things are inconsistent, or at least weird. 
Here's the basics of what I'm doing:

public class Main implements EntryPoint {
  private Logger logger = null;

  public void onModuleLoad() {
logger = Logger.getLogger();
export(this);
  }

  public void log(String level, String msg) {
logger.debug(msg);
  }

  public native void export(Main main) /*-{
$wnd.jsni = {};
$wnd.jsni.log = 
$entry(ma...@org.package.main::log(Ljava/lang/String;Ljava/lang/String;));
}-*/;
}


And in javascript I would call this with:

window.jsni.log("warn", "Hello, world!");


And strangely sometimes this works, but other times (during a different 
compile) I get:

com.google.gwt.core.client.JavaScriptException: (TypeError) stack: 
TypeError: Cannot read property 'd' of undefined


Which I've tracked down to being the logger object in the log() call being 
undefined (or null). That is, it always makes it into the "java" code, so 
the export is working, but there seems to be a problem with accessing local 
members.

Am I doing something wrong?  Note that I only need to do this for a couple 
methods so I'd prefer to just do it myself instead of use something like 
gwtexporter.

-- 
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+unsubscr...@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-kinetic a thin wrapper for Kinetic.js

2014-03-19 Thread Alain Ekambi
My Maven knowledge  === 0.
Sorry pal.

P.S : I heard intellij can help you do that with ease.


2014-03-19 18:27 GMT+01:00 confile :

> @Alain If you help me to create a maven project I will do a demo page for
> you.
>
>
> Best
> Michael
>
>
> Am Mittwoch, 19. März 2014 18:24:38 UTC+1 schrieb Alain:
>>
>> A nice thing could be to have a demo page to see the lib in action.
>> Keep up the good work.
>>
>>
>> 2014-03-19 18:22 GMT+01:00 confile :
>>
>>> Hi everyone,
>>>
>>> the first version of gwt-kinetic is available here: https://github.com/
>>> confile/gwt-kinetic
>>>
>>>
>>> I would be happy to get some feedback from you.
>>>
>>> Best
>>> Michael
>>>
>>>
>>> Am Samstag, 8. März 2014 20:44:37 UTC+1 schrieb confile:
>>>
 Hi,

 I am starting to make a new get wrapper for the kinetic js 5.x branch.
  You can find the code here https://github.com/confile/gwt-kinetic as
 soon as I upload some.

 If you are interested in working with me on this project please contact
 me.

 Best
 Michael

>>>  --
>>> 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+unsubscr...@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+unsubscr...@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.
>

-- 
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+unsubscr...@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: Problems with user agent property in GWT 2.6

2014-03-19 Thread manya mohanan
Do you know which wrote:

> Thanks for your reply.
>
> The html host page was triggered  in Quirks mode. When I changed to
> standards mode the error was gone. But as expected , now there are some
> formatting issues in IE9 that need to be taken care of in Standards mode.
>
>
> On Wed, Mar 19, 2014 at 5:43 PM, Thomas Broyer  wrote:
>
>>
>>
>> On Wednesday, March 19, 2014 4:59:39 PM UTC+1, manu wrote:
>>>
>>>  Hi all,
>>>
>>>
>>>
>>> I just migrated our project from GWT 2.5.0 to GWT 2.6.0.   We are using
>>> Java 6.
>>>
>>>
>>>
>>> The application works fine after the migration in Firefox, but does not
>>> work in IE9.
>>>
>>>
>>>
>>> The gwt module fails to load and I get the below error in IE9:
>>>
>>>
>>>
>>> 00:45:05.664  [ERROR] Error while executing the JavaScript provider for
>>> property 'user.agent'
>>>
>>
>> Do you see such an error in Internet Explorer Developer Tools (F12) ?
>>
>> While you're in the Developer Tools, what are the reported browser
>> compatibility and document compatibility?
>> Is you HTML host page triggering "standards mode"? ("quirks mode" could
>> possibly cause such an error, given that IE would switch to IE5.5 Quirks
>> mode; in previous versions of GWT that would use the ie6 permutation, but
>> in 2.6 it's disabled by default)
>>
>>>   --
>> 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+unsubscr...@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.
>>
>
>

-- 
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+unsubscr...@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: extending GWT with framework?

2014-03-19 Thread Jens

>
> You probably mean this:
>
> http://www.gwtproject.org/doc/latest/DevGuideMvpActivitiesAndPlaces.html
>
>
Yes. This will also make the browsers forward/back buttons work to navigate 
through your app. And I would vote that feature 1x more than having 
movable/resizable components (see bottom).

 

> But I see one problem: The server-to-client communication.
>
> Currently, my server maintains a list of listening clients and sends all 
> the events to each one of them. But you cannot tell when a client goes 
> away, even with server push technologies (comet and all that). Maybe you 
> can simulate this with a timeout or something like that: When there is no 
> activity for a while a client is assumed to have gone away and can be 
> removed from the list of listeners. This approach becomes worse, if you 
> have several tabs with several games. At least, I believe that. Maybe I 
> have not thought about it long enough... :-)
>

I don't see a real problem. If you use polling/comet you already have that 
"issue" and you should already have solved it. And even today I can use 
your app in multiple tabs, I just can't create these tabs by clicking on 
links...I have to create them manually (which would be solved by using GWT 
Places).
If you use Websockets you have a persistent connection between 
server/client and you know when the client closes the connection.

 

The goals I have in mind with moveable and resizeable in-browser windows 
> would be:
>
> Let users define the board's size and position additional widgets like 
> clock, history, etc..
>
>
> For example, having vector based graphics would enable the users to resize 
> the chess board. How could this be done better than with in-browser-windows?
>

Depends on what "etc..." means. A board + clock + history will nicely fit 
onto the screen without multiple in-browser windows. Actually the goal of 
your app, playing chess and communicate with others, is so simple that it 
should not need in-browser windows. Moveable widgets sounds like feature 
creep (http://en.wikipedia.org/wiki/Feature_creep) to me or you are trying 
to solve a problem that can also be solved by rethinking the UI layout in 
general. But thats kind of off-topic so if you want opinions on your app 
drop me a private mail.


-- J.

-- 
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+unsubscr...@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: Need help with JSNI

2014-03-19 Thread Jens
Is GWT's java.util.logging disabled for the compile that causes troubles? 

-- J.

-- 
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+unsubscr...@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: Need help with JSNI

2014-03-19 Thread rjcarr
No, nothing changes from what I can tell.  I don't mean for you to be 
distracted when I say it sometimes works.  And the example I gave using a 
Logger is just one example; I see the same 'undefined' problems no matter 
what type of member I try to dereference.  I'm more interested in if what 
I'm doing it correct.

To give more details on the "weirdness", I can sometimes do something like 
this (modifying my log() method from before):

public void log(String level, String msg) {
// a utility that writes directly to the console and doesn't use a 
logging mechanism
Console.log("logger value: " + logger);
try {
  logger.debug(msg);
} catch(Exception e) {}
  }
}

And the console output will be "undefined" but the log message will happen. 
 But if I take it out of the try then it goes back to saying undefined. 
 That's what I meant by it is doing "magical" things.


-- 
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+unsubscr...@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.


Need help with JSNI

2014-03-19 Thread Thomas Broyer
Beware of JavaScript's 'this'!

$entry(function(a,b) {
  ma...@my.app.main::method(II)(a,b);
});

-- 
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+unsubscr...@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 CSSResource Changes?

2014-03-19 Thread Evan Ruff
Hey guys,

Just a quick note: Colin over at Sencha noticed an old gwt-incubator JAR on 
my build path. Removing that fixed everything up.

Thanks!

E

On Saturday, March 15, 2014 5:51:44 AM UTC-4, Evan Ruff wrote:
>
> Has anyone been able to get appearances/styles to work (especially 
> pretty-print names) with GXT 3.1b?
>
> Thanks!
>
> E
>
> On Thursday, March 13, 2014 10:18:55 AM UTC-4, Evan Ruff wrote:
>>
>> Hey guys,
>>
>> Are there any runtime switches that I could be using that might 
>> over-write or suppress the obfuscation settings?
>>
>> Thanks,
>>
>> E
>>
>> On Tuesday, March 11, 2014 3:11:22 PM UTC-4, Evan Ruff wrote:
>>>
>>> Hey Thad,
>>>
>>> I'm not using mGwt anywhere, so I'm not sure that would be it unless 
>>> it's a dependency somewhere else.
>>>
>>> No doubt, there are a bunch of errors in the GXT styles, but I'm also 
>>> getting errors in my plain ol' CSS files as well.
>>>
>>> E
>>>
>>>
>>>
>>> On Tuesday, March 11, 2014 1:44:32 PM UTC-4, Thad Humphries wrote:

 I've seen errors like these come and go depending on the state of the 
 MGWT SNAPSHOT. Perhaps there is moderately erroneous with a style in GXT?

 On Tuesday, March 11, 2014 9:11:44 AM UTC-4, Evan Ruff wrote:
>
> Hey guys,
>
> So I updated GWT to 2.6 and I'm having a heck of a time with 
> CSSResources. I'm getting A TON of errors and warnings that look like:
> [WARN] [app] - Line 12 column 33: encountered "-". Was expecting one 
> of: "}" ";"  
> [WARN] [app] - Line 14 column 10: encountered " ". Was expecting one 
> of:   
> [WARN] [app] - Line 13 column 10: encountered "0". Was expecting one 
> of:   
>
> Those line numbers don't seem to line up with the my .css file and I 
> don't recall ever getting anything like this prior.
>
> Also, it doesn't look like the CssResource.style property is being 
> honored anymore. I have it in my .gwt.xml file as:
> 
>
> but all my class names are coming out obsufucated anyways.
>
> Has anyone else experienced these sorts of issues? My entire stack is 
> (Java7, GWT 2.6, AppEngine 1.9.0, GXT 3.1 beta)
>
> Thanks,
>
> E
>
>

-- 
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+unsubscr...@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: Need help with JSNI

2014-03-19 Thread rjcarr
I've responded a couple times so I apologize if you get multiple copies but 
it wasn't showing up in the thread.

Just wanted to say this worked and thank you so much.  I've been battling 
this problem for quite a while.  I don't know why this information isn't in 
the docs but it should be added right away.

Thanks again!

-- 
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+unsubscr...@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: Need help with JSNI

2014-03-19 Thread Jens

>
> I don't know why this information isn't in the docs but it should be added 
> right away.
>

Indeed. I also always forget about that 'this' thing and I am pretty sure I 
would have written the same code as you did in the first post and would 
have lost some time again until remembering that 

public void log(String level, String msg) {
  logger.debug(msg);
}

will try to access logger on $wnd.jsni when calling it from pure JS 
(following your example).

I think we should add a non-static method export example 
to http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html#calling 
and explain why such an export looks different.

-- J.

-- 
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+unsubscr...@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: Need help with JSNI

2014-03-19 Thread Robert J. Carr
Right, I first followed the static export example and got things working.
 Then realized I actually wanted to use it non-statically and got help on
this forum with how to include the instance into the export (main.@...).

As I said, it would work sporadically, but not always.  An non-static
example would be very useful as I still don't completely understand why it
needed to be wrapped with an anonymous function.



On Wed, Mar 19, 2014 at 4:06 PM, Jens  wrote:

> I don't know why this information isn't in the docs but it should be added
>> right away.
>>
>
> Indeed. I also always forget about that 'this' thing and I am pretty sure
> I would have written the same code as you did in the first post and would
> have lost some time again until remembering that
>
> public void log(String level, String msg) {
>   logger.debug(msg);
> }
>
> will try to access logger on $wnd.jsni when calling it from pure JS
> (following your example).
>
> I think we should add a non-static method export example to
> http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html#callingand 
> explain why such an export looks different.
>
> -- J.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/vDteixKON4g/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@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.
>

-- 
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+unsubscr...@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: Need help with JSNI

2014-03-19 Thread Jens

>
> As I said, it would work sporadically, but not always.  An non-static 
> example would be very useful as I still don't completely understand why it 
> needed to be wrapped with an anonymous function.
>

Because $wnd.log = $entry(myInstance.@package.Class::log()) kind of means 
"assign/copy the method definition of myInstance.log() to $wnd.log". When 
you now call $wnd.log() from JS, the code inside $wnd.log() is executed in 
the context of $wnd and not in the context of myInstance. Thats why this inside 
$wnd.log() is now $wnd and not myInstance. 

When you wrap it in an anonymous function it means "assign an anonymous 
function to $wnd.log and when that function executes call myInstance.log()". 
Now you are calling the real myInstance.log() method and this is what it 
should be.

-- J.

-- 
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+unsubscr...@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.


Can a Key String in properties file become a variable in another Key String (GWT)?

2014-03-19 Thread Tom
 

in Gwt, we can set message constants at properties file like this

passWordErr={0} must contain Upper case
passWordBox=Please enter {0} Here. {0} must contain Upper case

in the interface MyMessages, we have:

public interface MyMessages extends Messages{
String passWordErr (String field);
String passWordBox (String field);
}

As you can see, in the properties file we got the duplicated text "{0} must 
contain Upper case". So if we change it, we need to change in 2 places & 
that is not good. 

So my question is:

Can a Key String in properties file become a variable in another Key String 
(GWT)?

Something like this:

passWordErr={0} must contain Upper case
passWordBox=Please enter {0} Here. + passWordErr({0})

-- 
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+unsubscr...@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.