Re: Client only applications

2019-10-23 Thread Luke Last
Here's a client only application I wrote 4 years ago as an example.
https://github.com/lukelast/gwt-module-config

-Luke

On Wednesday, October 23, 2019 at 4:25:08 AM UTC-4, nikola wrote:
>
> What is the recommended way of making client only applications in GWT?
> There are archetypes here 
> <https://github.com/tbroyer/gwt-maven-archetypes/> but all with server 
> side. 
> We want to use java as we use typescript to write client side code, right 
> ? :)
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/78ce03e2-bfa7-4bdb-bf11-068866b01921%40googlegroups.com.


Re: Why the GWT complier used so much memory?

2018-09-01 Thread Luke Last
If you're compiling multiple permutations at a time you could reduce the 
number.

On Thursday, August 30, 2018 at 7:30:17 AM UTC-4, Peter Cao wrote:
>
>
>
>
> When i was compiling the GWT application,the CPU usage is showing below
>
> How can i reduce the memory footprint of my application
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Best Practice for JSON object recreation on client

2016-08-18 Thread Luke Last
I use jackson/gson on the server to serialize and then gwt-jackson on the 
client to deserialize a shared pojo. I'm interested in finding out if JsInterop 
gives better performance though. 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is 2.8.0-rc2 GWT Maven Plugin available?

2016-08-12 Thread Luke Last
In my experience it always takes longer for the corresponding version of 
the maven plugin to get published. I just use the previous version plugin 
and this one that doesn't need to be updated each 
release. https://github.com/tbroyer/gwt-maven-plugin

On Friday, August 12, 2016 at 5:25:20 AM UTC-4, Bruno Salmon wrote:
>
> Hi,
>
> Just reporting: Maven can find the 2.8.0-rc1 GWT Plugin but not the 
> 2.8.0-rc2 one.
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.4.0 - SelectItem does not work when I use application via Android

2016-08-07 Thread Luke Last
My suggestion is that you try upgrading to GWT 2.7 if at all possible 
because old versions are much more likely to have those kinds of problems 
with new browsers.
-Luke

On Friday, August 5, 2016 at 10:30:42 AM UTC-4, Federico Cacco wrote:
>
> Hi
>
> I have developed a web application in GWT 2.4.0 (SmartGWT 3.0p), but I 
> found a problem when I try to access it via mobile (Android Samsung S2 
> tablet).
>
> Substantially every SelectItem does not work properly. When I open one of 
> them to select a row, I tap on the record but it only remais highlighted 
> and the SelectItem does not close (and the row is not selected).
>
> I have observed that if the SelectItem contains many records and the 
> relative scroll bar becomes visible, everything works correctly.
>
> Some of you have found similar problems?
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Organizing project files with UIBinder

2015-12-14 Thread Luke Last
Here's my quick stab at these, hope it helps.

1. I've never seen this done differently, and personally I find it helpful 
to have them in the same package.
2. UIBinder is only client side.
3. UIBinder will work with classic CSS. You could also consider using 
CssResource (gss) or using gss embedded in UIBinder templates.

On Monday, December 14, 2015 at 8:31:14 AM UTC-5, va...@ant.ee wrote:
>
> Hello all,
>
> I have read the chapter 
> http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html 
> about GWT project layout, but still have some questions:
>
>1. View .ui.xml files are "by default" located at the same folder 
>where .java files are. Is it better to move them to some "resource" 
>package?  How to bind .ui.xml in corresponding composite .java if so?
>2. Going through UIBuinder example there is only "client" side that is 
>executed at client browser. Is server side remains pretty much the same as 
>described at 
>http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html 
>? 
>3. If I have root .css (gss) at my WEB-INF -- will this resource be 
>accessible for all .ui.xml modules ?
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: VerticalPanel in DockLayoutPanel

2015-12-12 Thread Luke Last
Only the center will auto size. The west, and other sides have to be given 
a fixed size.

On Friday, December 11, 2015 at 5:15:40 PM UTC-5, Roberto Attias wrote:
>
> Hi,
> I have a VerticalPanel containing 100 buttons with label "Component"+idx 
> wrapped by a ScrollPanel. the ScrollPanel is added as West component of a 
> DockLayoutPanel, and a canvas is added to the center. 
> I would have expected the LayoutPanel to automatically size the 
> ScrollPanel so that the entire horizontal extent of the vertical panel is 
> visible, but that's not the case and my button are cut. is there a way to 
> automatically size horizontally the vertical panel to fit the entire 
> horizontal extent of its content?
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Creation of multiple RPC services and performance

2014-11-14 Thread Luke Last
Also that article is just talking about hosted mode, not production mode.

On Thursday, November 13, 2014 6:28:03 PM UTC-5, Juan Pablo Gardella wrote:
>
> This article is very old. I don't if it's still valid.
>
> On 13 November 2014 20:00, BM > wrote:
>
>> Thanks Luke. This article explains the performance hit on every 
>> GWT.create which is an expensive operation. Unless I am misunderstanding 
>> something that was my initial impression was hence to create GWT.create 
>> more singleton.
>>
>>
>> http://blog.trifork.com/2007/11/30/optimizing-startup-time-for-gwt-hosted-mode/
>>
>> Please advise further.
>>
>>
>> On Thursday, November 13, 2014 3:29:02 PM UTC-6, Luke Last wrote:
>>>
>>> The performance hit comes from actually performing the RPC request 
>>> between client and server. Instantiating the service with GWT.create 
>>> doesn't cost anything compared to that. So combining your RPC requests or 
>>> making them in parallel will give better performance, but the number of RPC 
>>> services that exist in your code doesn't matter.
>>>
>>>
>>> On Thursday, November 13, 2014 4:16:49 PM UTC-5, BM wrote:
>>>>
>>>> Is it okay to have any number of RPC services in a GWT project or does 
>>>> that affect performance?
>>>>
>>>> Considering I use GWT Activities & Places, each RPC call is 
>>>> instantiated using deferred binding GWT.create and I am not sure how 
>>>> expensive that operation is?
>>>>
>>>> I am trying to organized my project and wanting to seek help to 
>>>> understand, if does it matter to have any number of RPC services in a 
>>>> project or should be conglomerate methods into certain fix RPC service and 
>>>> increas performance?
>>>>
>>>> Please advise. Any insight would be helpful.
>>>>
>>>>
>>>>  -- 
>> 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: some questions regarding maven and modular-webapp

2014-11-14 Thread Luke Last
Yes, but you can customize the jar file name.

On Friday, November 14, 2014 11:02:59 AM UTC-5, Magnus wrote:
>
> Hi,
>
> thanks!
>
> Is ist true that the groupId is never used in the generated files?
> For example, if you have 'com.example.applications' as the groupId and '
> example-application' as the artifactId then the generated jar file would 
> be 'example-application-1.0.jar'.
> So to have your projects be unique at the level of the local file system - 
> and therefore in your eclipse workspace - they have to use unique 
> artifactId's. Is this right?
>
> 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.


Re: Creation of multiple RPC services and performance

2014-11-13 Thread Luke Last
The performance hit comes from actually performing the RPC request between 
client and server. Instantiating the service with GWT.create doesn't cost 
anything compared to that. So combining your RPC requests or making them in 
parallel will give better performance, but the number of RPC services that 
exist in your code doesn't matter.


On Thursday, November 13, 2014 4:16:49 PM UTC-5, BM wrote:
>
> Is it okay to have any number of RPC services in a GWT project or does 
> that affect performance?
>
> Considering I use GWT Activities & Places, each RPC call is instantiated 
> using deferred binding GWT.create and I am not sure how expensive that 
> operation is?
>
> I am trying to organized my project and wanting to seek help to 
> understand, if does it matter to have any number of RPC services in a 
> project or should be conglomerate methods into certain fix RPC service and 
> increas performance?
>
> Please advise. Any insight would be helpful.
>
>
>

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


gwt built in gwt.i18n.server.* utitlity

2013-03-14 Thread Luke
Is there any built in i18n server side utility to read 
localizableResource.properties file ?  i found class 
gwt.i18n.server.MessageUtils.*()  how to use it?  I want to use i18n on 
server side. Any tutorial on this?   

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




compile to display java code line number

2012-10-31 Thread Luke
What parameters should I use to compile in order to display java code line 
number when exception ?  Below is error showing on my firefox when exception

uncaught exception: Class$S244: Exception caught: 2 exceptions caught: 
(TypeError) 
 fileName: 
https://remoteMachine.com/project/71BA89F46C25448983CE4617F27FC4C8.cache.html
 lineNumber: 221: b.c is null; (TypeError) 
 fileName: 
https://remoteMachine.com/project/71BA89F46C25448983CE4617F27FC4C8.cache.html
 lineNumber: 227: b.c is null

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/TG8uYRrMmxgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



i18n for disclosure panel

2012-10-12 Thread Luke
when using uibinder for disclosure panel. how to use i18n for header?


how to use i18n here


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/a6IH5BI0rnwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



mobile webkit debug

2012-09-27 Thread Luke
how to debug on mobile webkit (chrome, android phone) ?  i open the chrome 
browser on android, and get error mobile webkit not supported.  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/PezOs_Yo_YkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



JSNI file is calling DOM.dispatchEvent(..)

2012-09-18 Thread Luke
May i know which jsni files that calling  DOM.dispatchEvent(..) whenever 
event is trigger from browser? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/fiozh1Euy1QJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



retry code split async when fail

2012-09-01 Thread Luke
can advice how to have runasync retry number of times when connection fail 
? which files to modify?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/R_r6NHXa08MJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: uibinder for mobile

2012-02-28 Thread Luke
is there any technique that make existing uibinder that we use for
viewing with computer 960px and show it nicely on mobile?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



uibinder for mobile

2012-02-27 Thread Luke
what is the portability way to create uibinder (view with computer web
browser) so that easily ported to mobile version and viewable nicely
in android/iphone (small sceen)?

from what i know , have to create entire web layer for mobile. Any
more easier way?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



formpanel retry when fail

2012-02-10 Thread Luke
how to make formpanel submit() auto retry when fail /aborted,
connection got problem?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: use i18n

2012-02-03 Thread Luke
 Illegal child  in a text-only context. Perhaps you are
trying to use unescaped HTML where text is required, as in a HasText
widget? Element  (:83)

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: use i18n

2012-02-03 Thread Luke

somevalue
   

i tried above, and not working

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



use i18n

2012-02-03 Thread Luke

  
how to use i18n  for list box's item ?
  


-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



[WARN] Injected scripts no longer use an associated JavaScript block; ignoring

2012-02-02 Thread Luke
i put

http://apis.google.com/js/plusone.js";>
{"parsetags": "explicit"}



in gwt.xml file , and i get above warning.   any advice? i'm not
warning can safely ignore. but will future GWT support syntax like
above?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



auto minify external javascript

2012-02-01 Thread Luke
may i know is there any paramater to set in gwt.xml   when including
external javascripts so that all files are minify and combine into 1
file?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



consolidate css

2012-01-31 Thread Luke
i have multiple custom css in .html file. any technique to consolidate
it become one file during compilation ?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Optimisation of obfuscated mode

2011-11-24 Thread luke
There's an even simpler example of the same optmisiation question. In 
compiled obfuscated code, I'm seeing lots of functions that do exactly 
nothing. e.g. :

function Id(){}
function Od(){}
function Hd(){}
function Qd(){}
... etc

Why are these here at all? Surely they could be optimised away

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/-NyhYXOC2J8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



convert javascript element into gwt uibinder widget

2011-10-08 Thread Luke
how to convert javascript element into gwt uibinder widget


public static CustomWidget wrap(Element element) {
assert Document.get().getBody().isOrHasChild(element);

CustomWidget customWidget = new CustomWidget(element);


 System.out.println(eachItineraryWidget.getWidget()); //
widget is null  , how to set widget as i'm using uibinder


eachItineraryWidget.onAttach();
RootPanel.detachOnWindowClose(eachItineraryWidget);

return customWidget;
  }


public CustomWidget(Element element){

   setElement(element);

}

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to create meta with @template?

2011-09-15 Thread Luke
ya. it's for google bot to crawl. is gwt2.4 cant use this tag anymore?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



how to create meta with @template?

2011-09-14 Thread Luke
@Template("")
SafeHtml metaDescriptionHTML(String descriptionText);

i tried the above on gwt2.4 but i get error. can comments how to i
progromatically add meta on page?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



use ui:text from

2011-08-10 Thread Luke
i have html that look like   

how to i18n the title by using   inside the
"span"-title element?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



how to fire blur event when keydown ?

2011-07-16 Thread Luke
 @UiHandler("textboxField")
 public void keyDownSearchHandler(KeyDownEvent event){

//how to fire textboxField blur event after user press key
down?
 }

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



user.agent in gwt 2.2

2011-04-04 Thread Luke
hi,
  i try to set  in
gwt.xml. but in gwt 2.2 , i get error   . Is there changes on gwt2.2
compared to older version?


[ERROR] Property 'user.agent' not found
[ERROR] Failure while parsing XML
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)
at com.google.gwt.dev.cfg.ModuleDefSchema
$PropertyAttrCvt.convertToArg(ModuleDefSchema.java:1073)
at
com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:
64)
at
com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:
221)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.startElement(ReflectiveParser.java:274)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.parse(ReflectiveParser.java:331)
at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access
$100(ReflectiveParser.java:48)
at
com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:
402)
at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
280)
at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:
192)
at
com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:
308)
at
com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:
151)
at com.google.gwt.dev.Compiler.run(Compiler.java:185)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
87)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
at com.google.gwt.dev.Compiler.main(Compiler.java:166)
[ERROR] Unexpected error while processing XML
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.parse(ReflectiveParser.java:355)
at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access
$100(ReflectiveParser.java:48)
at
com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:
402)
at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
280)
at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:
192)
at
com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:
308)
at
com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:
151)
at com.google.gwt.dev.Compiler.run(Compiler.java:185)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
87)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
at com.google.gwt.dev.Compiler.main(Compiler.java:166)

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



safehtml and onclick event

2011-03-24 Thread Luke
how to add onclick event to safehtml @Template()  in gwt2.2 ? any
example?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



javascript in uibinder bug?

2011-03-23 Thread Luke
I put javascript inside uibinder safehtmltemplate , all my
javascript "onblur", "onclick" or not show in internet explorer7/8

it become like below

some text...


but in firefox, onblur, onclick able to show properly. Is this bug in
gwt 2.1 ?


-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



popuppanel cannot autohide

2011-03-05 Thread Luke
i tested popuppanel unable to autohide in internet explorer 7 , but
run well in firefox. is this a bug? can anyone confirm this so that i
can fill an issue?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



celllist infinite scrolling

2011-02-22 Thread Luke
from the showcase demo, ShowMorePagerPanel, i can see this line
display.setVisibleRange(0, newPageSize);  , does that mean each time
we scroll, all item from 0--> max will keep on repeatedly retrieve and
display. how to make it to only display for subsequent new items and
all previous old items (starting from 0) just use back the cache.
possible? can guide on this?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



customize "gwt code server disconnected overlay page"

2011-02-20 Thread Luke
1. may i know is this message only show on development or it will also
showed in production when run on tomcat?
2. any guide on how to customize this page "message" ?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



i18nCreator

2011-02-07 Thread Luke
project> i18nCreator -eclipse project
com.google.gwt.i18n.client.LocalizableResource

will create 3 files  LocalizableResource.properties ,
LocalizableResource-i18n.launch  and LocalizableResource-i18n .may
i know let say i want to create "one interface  class" that using
multiple properties files LocalizableResource_en.properties and
LocalizableResource_fr.properties . How to do this?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



i18n properties file

2011-02-06 Thread Luke
i have LocalizableResource_lang.properties located at
com.google.gwt.client . using uibinder  http://groups.google.com/group/google-web-toolkit?hl=en.



java file read localizedresource.properties file

2011-02-04 Thread Luke
in my uibinder.xml file i able to read in key from
ocalizedresource.properties file . may i know if my java files have
custom widget that i programatically created and wanted to use i18n.
how do i get the key from  localizedresource.properties file

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



MultiWordSuggestion assign hidden id

2011-01-29 Thread Luke
how to assign hidden id (key) to MultiWordSuggestion.java so that i
can retrieve it later to check what key is selected by user? currently
it only support display plain text.  can guide on how to enhance to
have this feature?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



get widget instance

2011-01-27 Thread Luke
how to get class from widget instance. in gwt, my widget is a private
field of pojo class. i able to get the widget using
instanceOfPojo.returnWidget(); method. May i know how to get instance
class of the widget so that i can use for CustomWidgetClass

   if( widget instanceof CustomWidgetClass) ?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



"sequence" of gwt custom dynamic widget

2011-01-15 Thread Luke
i insert multiple similar own-widget(MYCustomWidget) into div in
uibinder (HOLDER_IN_UIBINDER)

 
 //programically adding multiple MYCustomWidget ; each mycustomwidget
is "li" element
 

Before i'm using below code to retrieve value for each MYCustomWidget,
I use jquery to change the sequence of each MYCustomWidget. I verified
this using firefox(see the raw html), and i able to see the sequence
was changed.

 for (Widget w: HOLDER_IN_UIBINDER) {
   if (w instanceof MYCustomWidget) {
System.out.println(  ((MYCustomWidget)w).getValue()  );

   }

 }

My question is after i retrieve value with above code, it seem gwt
still remember the original sequence of all MyCustomWidget inside
HOLDER_IN_UIBINDER. Can't GWT
for (Widget w: HOLDER_IN_UIBINDER) use the sequence that I changed
when retrieve each value?

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Problem with GWT Developer Plugin

2010-09-21 Thread LuKe
Hi,

I'm trying to develop a simple application using STS 2.5.0 (based on
Eclipse 3.6) x86_64 and the Google Eclipse plugin.

I have a problem to show my application in the browser.

I'm using Firefox 3.6.7 x86_64 (Fedora 13) and I have already
installed the GWT Developer plugin but I got always the page with the
request to install the plugin (in the add-ons window there is the
plugin and it is active).

What could be the problem?

LuKe

-- 
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-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT On Ubuntu Problems

2009-09-18 Thread Luke

Hi guys,

I am having trouble setting up GWT to run on Ubuntu.

I have installed Eclipse and GWT. I have downloaded and installed
libstdc++.so.5. I have set the GWT_EXTERNAL_BROWSER in my ~/.bashrc
file.

It is still giving me the error:

[ERROR] Unable to find a default external web browser
[WARN] Try setting the environment variable GWT_EXTERNAL_BROWSER to
your web browser executable before launching the GWT shell

Any other suggestions?

--~--~-~--~~~---~--~~
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-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Weird Bug (sorry)

2009-08-20 Thread Luke Howell
Thanks for sheding light.  Great example though.

On 8/20/09, Jason Essington  wrote:
>
>
> This might shed some light on your weird [not so much a] bug:
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f/3be719c021aa19bd
>
> -jason
> On Aug 19, 2009, at 10:27 PM, Luke wrote:
>
> >
> > I wouldn't normally ask things like this but I have something weird
> > going on that I cannot figure out.
> >
> > I have a class that I am using to get information from the server.
> > The JSONArray that is returned by calling the function
> > ServerConnector.getProjectArray() is then evaluated.  The function
> > that calls this function is supposed to print the information to the
> > screen.  The output is nothing.
> >
> > Here is where it gets weird, if I add an window.alert("some string");
> > before return jsonArray; then the page will print fine.  With out the
> > alert it will not print.  I am completely confused.  Sorry for asking
> > about a bug but I don't know if it is something with me or not.
> > >
>
>
> >
>


-- 

Luke Howell
m...@lukehowell.com
http://www.lukehowell.com

--~--~-~--~~~---~--~~
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-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Weird Bug (sorry)

2009-08-19 Thread Luke

I wouldn't normally ask things like this but I have something weird
going on that I cannot figure out.

I have a class that I am using to get information from the server.
The JSONArray that is returned by calling the function
ServerConnector.getProjectArray() is then evaluated.  The function
that calls this function is supposed to print the information to the
screen.  The output is nothing.

Here is where it gets weird, if I add an window.alert("some string");
before return jsonArray; then the page will print fine.  With out the
alert it will not print.  I am completely confused.  Sorry for asking
about a bug but I don't know if it is something with me or not.
--~--~-~--~~~---~--~~
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-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Error parsing JSON

2009-08-19 Thread Luke Howell

I actually figured out the problem. There were  '\n' characters in the  
string I was trying to parse. Once removed that solved the problem.

Sent via iPhone

On Aug 19, 2009, at 11:02 AM, Jeff Chimene  wrote:

>
> On 08/19/2009 09:00 AM, Jeff Chimene wrote:
>> On 08/19/2009 12:56 AM, Thomas Broyer wrote:
>>>
>>>
>>>
>>> On 19 août, 01:12, Jeff Chimene  wrote:
 On 08/18/2009 04:01 PM, Thomas Broyer wrote:

> Well, JSONParser actually calls eval() *with* the wrapping
> parentheses.

 Are they added in the parent?

 Checking the trunk source, I don't see that concatenation:

  public static JSONValue parse(String jsonString) {
if (jsonString == null) {
  throw new NullPointerException();
}
if (jsonString.length() == 0) {
  throw new IllegalArgumentException("empty argument");
}
try {
  return evaluate(jsonString);
} catch (JavaScriptException ex) {
  throw new JSONException(ex);
}
  }
>>>
>>> From the very same file:
>>>  private static native JSONValue evaluate(String jsonString) /*-{
>>>var v = eval('(' + jsonString + ')');
>>>var func = @com.google.gwt.json.client.JSONParser::typeMap[typeof
>>> v];
>>>return func ? func(v) :
>>> @com.google.gwt.json.client.JSONParser::throwUnknownTypeException
>>> (Ljava/lang/String;)(typeof v);
>>>  }-*/;
>>>
>>
>> Well, yes. But the OP said he's using JSONParser.parse() How does
>> JSONValue.evaluate() get called in that scenario?
>
> Oh, never mind. I figured it out.
>
>
> >

--~--~-~--~~~---~--~~
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-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Error parsing JSON

2009-08-18 Thread Luke


Below is json object that I am having trouble with.  When I try to use
this object with JSONParser.parse(), I get JSONException.  I have
verified that the JSON object is of valid form but cannot figure out
why I am getting the exception.  I have narrowed it down to the
particular line of code that contains JSONParser.parse();

Anyone see anything here?

{"projects":[{"id":"1","title":"Project Number
1","priority":"High","openDate":"2009-06-05","closeDate":"2009-06-07","owner":
{"firstName":"John","lastName":"Doe","email":"m...@email.com","site":"http://
www.mysite.com"},"notes":[{"title":"This is a note","content":"This is
a note.  I am typing this to be long just so that it will show up as
scrollable when necessary.
","timestamp":"2009-06-07 13:28:55"},{"title":"Last note. Will be two
there.","content":"This is a note.  I am typing this to be long just
so that it will show up as scrollable when necessary.
","timestamp":"2009-06-07 13:30:12"}],"pictures":[]},
{"id":"2","title":"Project Number
2","priority":"Medium","openDate":"2009-05-20","closeDate":"2009-06-06","owner":
{"firstName":"John","lastName":"Doe","email":"m...@email.com","site":"http://
www.mysite.com"},"notes":[{"title":"Another Note","content":"This is a
note.  I am typing this to be long just so that it will show up as
scrollable when necessary.
","timestamp":"2009-06-07 13:29:09"}],"pictures":[]},
{"id":"3","title":"Project Number
3","priority":"High","openDate":"2009-06-04","closeDate":"","owner":
{"firstName":"Tom","lastName":"Smith","email":"t...@email.com","site":"http://
www.tomsite.com"},"notes":[{"title":"Note again","content":"This is a
note.  I am typing this to be long just so that it will show up as
scrollable when necessary.
","timestamp":"2009-06-07 13:29:25"}],"pictures":[]}]}

--~--~-~--~~~---~--~~
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-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



[ERROR] Unable to find 'com/google/gwt/sample/StockWatcher.gwt.xml' on your classpath

2008-11-06 Thread Luke

This was frustrating
$ ./StockWatcherTest-hosted
.Loading module 'com.google.gwt.sample.StockWatcher.JUnit'
   Loading inherited module 'com.google.gwt.sample.StockWatcher'
  [ERROR] Unable to find 'com/google/gwt/sample/
StockWatcher.gwt.xml' on your classpath; could be a typo, or maybe you
forgot to include a classpath entry for source?
E.Loading module 'com.google.gwt.sample.StockWatcher.JUnit'
   Loading inherited module 'com.google.gwt.sample.StockWatcher'
  [ERROR] Unable to find 'com/google/gwt/sample/
StockWatcher.gwt.xml' on your classpath; could be a typo, or maybe you
forgot to include a classpath entry for source?
E
Time: 1.957
There were 2 errors:
1)
testSimple(com.google.gwt.sample.stockwatcher.client.StockWatcherTest)com.google.gwt.core.ext.UnableToCompleteException:
(see previous log entries)
at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
226)
at com.google.gwt.dev.cfg.ModuleDefLoader
$2.load(ModuleDefLoader.java:174)
at
com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:
270)
at
com.google.gwt.dev.cfg.ModuleDefLoader.createSyntheticModule(ModuleDefLoader.java:
89)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:
614)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:
150)
at
com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:219)
at
com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132)
2)
testStockPriceCtor(com.google.gwt.sample.stockwatcher.client.StockWatcherTest)com.google.gwt.core.ext.UnableToCompleteException:
(see previous log entries)
at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
226)
at com.google.gwt.dev.cfg.ModuleDefLoader
$2.load(ModuleDefLoader.java:174)
at
com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:
270)
at
com.google.gwt.dev.cfg.ModuleDefLoader.createSyntheticModule(ModuleDefLoader.java:
89)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:
614)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:
150)
at
com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:219)
at
com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132)

FAILURES!!!
Tests run: 2,  Failures: 0,  Errors: 2
$

FIX:
StockWatcherTest.java
--
from:
  public String getModuleName() {
return "com.google.gwt.sample.StockWatcher";
  }
--
to:
  public String getModuleName() {
return "com.google.gwt.sample.stockwatcher.StockWatcher";
  }
--

I believe I followed the tutorial very carefully (http://
code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-
toolkit-doc-1-5&t=GettingStartedJUnit) but not sure if this was my
mistake.  Hopefully this post will help others.

--~--~-~--~~~---~--~~
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-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---