Re: Display Chinese

2014-12-28 Thread David

The contents are not decoded right if I use utf-8 for some reason.


On Monday, December 29, 2014 1:33:02 PM UTC+8, Mohammed Sameen wrote:
>
> if you don't want to use I18N constants then load from Database
>
> On Monday, December 29, 2014 7:41:55 AM UTC+5:30, David wrote:
>>
>> How do I display Chinese in a menu if I don't use I18N constants? I like 
>> to display Chinese dynamically instead of from property file.
>>  
>> Thanks!
>>  
>>  
>> David
>>
>

-- 
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: Display Chinese

2014-12-28 Thread Mohammed Sameen
if you don't want to use I18N constants then load from Database

On Monday, December 29, 2014 7:41:55 AM UTC+5:30, David wrote:
>
> How do I display Chinese in a menu if I don't use I18N constants? I like 
> to display Chinese dynamically instead of from property file.
>  
> Thanks!
>  
>  
> David
>

-- 
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: Finding out what Primary Linker is Active, inside a "Post" Linker

2014-12-28 Thread bobbitdiddle
Maybe I'm missing something, but looking at the code briefly, I see that 
StandardLinkerContext()'s constructor takes the ModuleDef, and the 
ModuleDef is passed around throughout the linking process, so I'm guessing 
a strong reference to the ModuleDef would persist throughout the linking 
process, thus ensuring it didn't get removed from the table in 
ModuleDefLoader.  Isn't the ModuleDef needed during the linking process?
 
On Sunday, December 28, 2014 5:59:30 PM UTC-6, Jens wrote:
>
> What if someone has written a custom primary linker that is unknown to 
> you? Would your linker still work? Basically you might not be able assume 
> that one of the linkers that are shipped with GWT are actually used by an 
> app.
>
> Maybe it is a better approach to create a sane abstract class of your 
> non-primary linker and then provide matching sub classes for all primary 
> linkers GWT provides. Then the developer must add the correct non-primary 
> linker of yours that matches their primary linker or have to sub class your 
> abstract linker.
>
> Not sure if your reflection "hack" will work. Although the method in 
> question is static and might be callable through reflection it only 
> operates on a cache which uses weak references. Thus the data you need 
> might not be in the cache anymore if the JVM has memory pressure and has 
> GC'd some cache contents between module parsing/compilation and finally 
> linking. I would not use that approach.
>
> Maybe it is worth creating a feature request so that LinkerContext has 
> more information about the primary linker in the future.
>
> -- 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.


Display Chinese

2014-12-28 Thread David
How do I display Chinese in a menu if I don't use I18N constants? I like to 
display Chinese dynamically instead of from property file.
 
Thanks!
 
 
David

-- 
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: Can not deploy GWT application into a standalone Jetty server

2014-12-28 Thread David
Jetty is running on port 8868. GWT compiler appears not removing code 
related to code server, which causes problem.

 
On Monday, December 29, 2014 8:59:43 AM UTC+8, Ed wrote:

> Is jetty set up to server on that port?
>
> On Sun, Dec 28, 2014 at 7:43 PM, David > 
> wrote:
>
>>  I used GWT 2.7 and Java 7. After I compiled a big project and deployed 
>> it into standalone Jetty 8.0.4 in Window 7, If I used a IP address as an 
>> url, I got the following message - Couldn't load gwt from Super Dev Mode 
>> server at http://192.168.8.27:. Please make sure this server is 
>> ready. Do you want to try again. However, If I used a localhost:, this 
>> application works fine. If I used Eclipse built-in server, it works fine no 
>> matter I used an ip address as url or localhost.
>>  
>> I also want to use PhoneGap to wrap this application. How I do specify an 
>> url for this PhoneGap application?
>>  
>> Thanks! Happy New Year!
>>  
>> David
>>
>> -- 
>> 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: Can not deploy GWT application into a standalone Jetty server

2014-12-28 Thread Ed
Is jetty set up to server on that port?

On Sun, Dec 28, 2014 at 7:43 PM, David  wrote:

> I used GWT 2.7 and Java 7. After I compiled a big project and deployed it
> into standalone Jetty 8.0.4 in Window 7, If I used a IP address as an url,
> I got the following message - Couldn't load gwt from Super Dev Mode server
> at http://192.168.8.27:. Please make sure this server is ready. Do
> you want to try again. However, If I used a localhost:, this
> application works fine. If I used Eclipse built-in server, it works fine no
> matter I used an ip address as url or localhost.
>
> I also want to use PhoneGap to wrap this application. How I do specify an
> url for this PhoneGap application?
>
> Thanks! Happy New Year!
>
> David
>
> --
> 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.


Can not deploy GWT application into a standalone Jetty server

2014-12-28 Thread David
I used GWT 2.7 and Java 7. After I compiled a big project and deployed it 
into standalone Jetty 8.0.4 in Window 7, If I used a IP address as an url, 
I got the following message - Couldn't load gwt from Super Dev Mode server 
at http://192.168.8.27:. Please make sure this server is ready. Do you 
want to try again. However, If I used a localhost:, this application 
works fine. If I used Eclipse built-in server, it works fine no matter I 
used an ip address as url or localhost.
 
I also want to use PhoneGap to wrap this application. How I do specify an 
url for this PhoneGap application?
 
Thanks! Happy New Year!
 
David

-- 
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: Finding out what Primary Linker is Active, inside a "Post" Linker

2014-12-28 Thread Jens
What if someone has written a custom primary linker that is unknown to you? 
Would your linker still work? Basically you might not be able assume that 
one of the linkers that are shipped with GWT are actually used by an app.

Maybe it is a better approach to create a sane abstract class of your 
non-primary linker and then provide matching sub classes for all primary 
linkers GWT provides. Then the developer must add the correct non-primary 
linker of yours that matches their primary linker or have to sub class your 
abstract linker.

Not sure if your reflection "hack" will work. Although the method in 
question is static and might be callable through reflection it only 
operates on a cache which uses weak references. Thus the data you need 
might not be in the cache anymore if the JVM has memory pressure and has 
GC'd some cache contents between module parsing/compilation and finally 
linking. I would not use that approach.

Maybe it is worth creating a feature request so that LinkerContext has more 
information about the primary linker in the future.

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


Finding out what Primary Linker is Active, inside a "Post" Linker

2014-12-28 Thread bobbitdiddle
I'm trying to solve a problem.  I've written a custom "post" (non-primary) 
linker extending AbstractLinker, but I want it to have different behavior 
depending on what the primary linker is.  For example, the primary linker 
could be the "standard" linker or the xsiframe linker. I could attempt to 
guess by using GWT.getVersion() in conjunction with the 
ConfigurationProperty set passed to the linker, but I want something more 
robust.  (I say "guess" because the linker setting doesn't show up in the 
ConfigurationProperty set passed into link() unless you set it in your 
module definition, so if it's not present, presumably you have to use 
GWT.getVersion() to guess what the primary linker is.)

Now, I've found from the source that ModuleDef defines an API 
getActivePrimaryLinker(), but I'm not sure how to get the ModuleDef (for 
the module active when link() on my "post" linker is called).  The only 
idea I have right now is to use Java Reflection to invoke the private 
method ModuleDefLoader.tryGetLoadedModule().  (Since the linker is "real" 
Java and won't be compiled to JS, I assume Reflection will work.)

Obviously this is a huge hack.  How should I be checking the primary linker?

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


What happens if compiled script (iframe content) is loaded after outer page is parsed

2014-12-28 Thread Jose MarĂ­a Zaragoza

Hello:

Reading the GWT Bootstrap on Googles page

http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideBootstrap

I wonder what happens if host page is parsed before iframe's contents are 
loaded. 
Does it wait for it ? Does it do anything ?

I know onInjectionDone() function is called when outer page is parsed ( by