Re: Reusing a pre-existing service layer

2011-05-31 Thread J.Ganesan
Looks like your client classes will go much beyond emulated JRE in
GWT. Also, you need source code of all the classes which go to client-
side.
Try to identify server-only classes and non-server-only classes. The
latter has to to conform to emulated JRE and the source code is to be
made available.
I guess you may have to do a lot of retrofitting to GWT.

J.Ganesan
www.DataStoreGwt.com

On May 29, 8:59 pm, okmich okmi...@gmail.com wrote:
 Good day,

 I am a beginner with GWT and to put a lot of my learning to work, I
 have an existing web app that was written using EJB3 (jar) + JSF
 (war).

 What I am trying to is keep the jar as usual and replace the war using
 GWT.
 I have a separate lib where I put all the transfer, service interfaces
 and query objects for use in the war project. Also as a part of JSF
 implementation I use the transfer object in the jsp pages through the
 managed beans.

 My question how could this be implemented in GWT. The fear/scare is
 majorly around the compile-to-javascript for the transfer and query
 object.

 Ideas please,

 Regards.

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



Ang.: Gwt Compilation

2011-05-31 Thread Rikard Hultén
1. Sounds like you don't have the gwt-server query param set. You should be 
surfing to something like  localhost:?gwt-server..

-- 
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: I am using xsrf and I am getting Compilation error ?

2011-05-31 Thread suersh babu
This issue occured because of no disk space, so I delete the temp files, now
this module is compiling.


On Mon, May 30, 2011 at 10:51 AM, suersh babu sureshgbab...@gmail.comwrote:

 Hi,

 I am using GWT 2.3 with MVP frame work, also I am using xsrf in my module
 when I try to compile my module I am getting following error

 [ERROR] Unexpected
 java.lang.ExceptionInInitializerError
 at com.google.gwt.dev.javac.CompiledClass.clinit(CompiledClass.java:36)
 at
 com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.createCompiledClass(JdtCompiler.java:269)
  at
 com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:240)
 at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
  at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:690)
 at
 com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:215)
  at
 com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:406)
 at
 com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:299)
  at
 com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:325)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:507)
  at com.google.gwt.dev.Precompile.precompile(Precompile.java:492)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:405)
  at com.google.gwt.dev.Compiler.run(Compiler.java:215)
 at com.google.gwt.dev.Compiler.run(Compiler.java:187)
  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)
 Caused by: java.lang.RuntimeException: Unable to initialize byte cache
 at com.google.gwt.dev.util.DiskCache.init(DiskCache.java:85)
  at com.google.gwt.dev.util.DiskCache.clinit(DiskCache.java:66)
 ... 18 more
 Caused by: java.io.IOException: The directory or file cannot be created
 at java.io.WinNTFileSystem.createFileExclusively(Native Method)
  at java.io.File.checkAndCreate(File.java:1704)
 at java.io.File.createTempFile(File.java:1793)
  at java.io.File.createTempFile(File.java:1830)
 at com.google.gwt.dev.util.DiskCache.init(DiskCache.java:75)
  ... 19 more


 Any idea why this error appear when I compile ?.



 --
 Regards
 Suresh Babu G

 http://www.accountingguru.in/




-- 
Regards
Suresh Babu G

http://www.accountingguru.in/

-- 
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: Using custom LocalMessages apart from Locales

2011-05-31 Thread tim


On Tuesday, May 31, 2011 2:28:38 AM UTC+2, Juan Pablo Gardella wrote:

 Perhaps with maven 
 filtershttp://maven.apache.org/guides/getting-started/index.html#How_do_I_filter_resource_files.
  
 You can replace properties in process-resources before compilation.


This is actually a good idea but yeah we need for each of those a 
permutation so we could include one during runtime.
 

 Do you need at runtime?

 2011/5/30 elbartus xelba...@googlemail.com

 Hi,

 we're are having problems to customize the I18N functionality of GWT.

 We are currently using a static property file to generate our interfaces 
 we use in the code.

 Apart from loading the default locales like *de* or *en* at runtime 
 we are also looking for a way to load custom language files dependent of 
 another property (e.g. called *dist*).

 In detail:

 In our .gwt.xml we have both properties defined like this:

 extend-property values=de name=locale/
 extend-property values=en name=locale/

 define-property name=xvz.platform values=dist1,dist2,dist3/


 We now want to have one language file which contains all generic 
 properties, and for each distribution and language other language files 
 which can contain special values.
 All these interfaces should also be generated automatically with the maven 
 gwt plugin i18nMessagesBundle.

 We already tried to use a SpecialLocalMessage interface which extends 
 all the special dist interfaces but we were not able to replace those in the 
 gwt.xml via replace-with because there are classes but not interfaces 
 required.

 Do you see any solution for this problem?


 Thanks for you help in advance and best regards,

 Tim

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




-- 
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: Using custom LocalMessages apart from Locales

2011-05-31 Thread Thomas Broyer
You'll have to make factories/providers of your Messages/Constants 
interfaces, that you'll switch using deferred binding on the other 
property.

interface MyMessages extends Messages { … }
interface MyMessagesFactory {
  MyMessages get();
}
class Dist1MessagesFactory implements MyMessagesFactory {
  interface Dist1Messages extends MyMessages {
// empty, only there for GWT to look for dist1-specific properties files
  }
  public MyMessages get() { return GWT.create(Dist1Messages.class); }
}
// similar for dist2 and dist3

Using deferred-binding, you'll replace-with MyMessagesFactory with one of 
Dist1MessagesFactory, Dist2MessagesFactory or Dist3MessagesFactory; and each 
one is using a specialized MyMessages interface with its set of properties 
files.

(you can of course use a generator with generate-with for 
MyMessagesFactory to automatically generate all specific implementations, 
instead of coding them by hand and using a replace-with rule)

-- 
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: gwt servlet thread, timer,reload

2011-05-31 Thread ArnoNyhm
Thx.
i have created my timertask class, but where in the servlet i make the
call?


On 31 Mai, 07:41, J.Ganesan j.gane...@datastoregwt.com wrote:
 Since the servlet runs under J2SE, you can go for java.util.Timer  and
 java.util.TimerTask.

 J.Ganesanwww.DataStoreGwt.com

 On May 31, 5:08 am, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:

  See Quartz http://www.quartz-scheduler.org/

  2011/5/30 ArnoNyhm etechniker@googlemail.com

   Hi,

   my gwt servlet loads data from a database, handle it and store it in
   an embedded apche derby database. what i want is, that this process is
   repeated every 45min automatically.
   i don´t know how to do this?

   regards arno

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

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



SplitLayoutPanel Sizing?

2011-05-31 Thread Nick Apperley
In the application (using GWT 2.3) there is a SplitLayoutPanel with a
widget on the left (East) and one on the right (West). When viewing
the application in both FF 3.6 and FF 4 the combo box in the left side
of the SplitLayoutPanel has its end chopped off. No resizing of the
SplitLayoutPanel with its divider will show the rest of it.

Another issue with the SplitLayoutPanel is that the widget on the
right side doesn't display in both FF 3.6 and FF4. Initially I thought
it was because the widget was reporting the incorrect width however
after fixing the width reporting the issue still occurs.

What is the best way to size SplitLayoutPanel so that it will allocate
half to one side and half to another anytime its contents changes?
What might cause SplitLayoutPanel to not display a Widget on a
particular side?

Below is the contents of the UIBinder file which are relevant to
SplitLayoutPanel:


---
g:west size=1.0
g:VerticalPanel ui:field=navLayout
g:Label text=Image ui:field=imageLbl/
g:ListBox ui:field=zonesCbo/
g:HTMLPanel ui:field=imageLayout
div id=imageDiv
/div
div id=imageMapDiv
/div
/g:HTMLPanel
/g:VerticalPanel
/g:west
---


The right side of the SplitLayoutPanel has its contents dynamically
added/removed. On the left side imageDiv/imageMapDiv have their
contents dynamically change, depending on what has been selected at
the time by the user. Since some custom HTML elements is used
(ImageElement and MapElement) in the left side it could make sizing
the SplitLayoutPanel very tricky.

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



Exception java.lang.UnsatisfiedLinkError:

2011-05-31 Thread ArnoNyhm
Hi,

i get this exception in my project. in another project everything is
working good.

i don´t know what the problem is :(

Exception in thread main java.lang.UnsatisfiedLinkError:
com.google.gwt.visualization.client.DataTable.create()Lcom/google/gwt/
visualization/client/DataTable;
at com.google.gwt.visualization.client.DataTable.create(Native
Method)
at com.tsystem.dashboard.server.Testing.main(Testing.java:15)

-- 
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: gwt servlet thread, timer,reload

2011-05-31 Thread khiem nguyen
you  can start  your timer-process from something which starts with your
webapp, for example in a ServletContextListener-implementations init method

HTH


On Tue, May 31, 2011 at 10:43 AM, ArnoNyhm etechniker@googlemail.comwrote:

 Thx.
 i have created my timertask class, but where in the servlet i make the
 call?


 On 31 Mai, 07:41, J.Ganesan j.gane...@datastoregwt.com wrote:
  Since the servlet runs under J2SE, you can go for java.util.Timer  and
  java.util.TimerTask.
 
  J.Ganesanwww.DataStoreGwt.com
 
  On May 31, 5:08 am, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
 
   See Quartz http://www.quartz-scheduler.org/
 
   2011/5/30 ArnoNyhm etechniker@googlemail.com
 
Hi,
 
my gwt servlet loads data from a database, handle it and store it in
an embedded apche derby database. what i want is, that this process
 is
repeated every 45min automatically.
i don´t know how to do this?
 
regards arno
 
--
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.

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



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



Canvas dimensions

2011-05-31 Thread Thomas Lefort
Hi,

I have a canvas in a hidden panel. It is created before the panel is
made visible. The problem I'd like to set its DOM width to 100% but I
have a problem with the setCoordinateSpaceWidth then as I cannot get
the canvas dimension via getOffsetWidth as the canvas is not visible.
I don't even think I can add a resizeevent to Canvas nor is there a
VisibleEvent. Would appreciate if anybody had an idea as to how to
circumvent the problem?

Cheers,

Thomas

-- 
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: GWT 2.3 composite editor // setValue called twice

2011-05-31 Thread Sebastian Beigel
Hi Patrick,

that's true, but it was an example only. You surely should do what you
said but it's still unnecessary (and potentially harmful for the
performance) to do this call twice (by the framework!), so I think
it's a bug in GWT's editor code that should be fixed there and not be
worked around by (application) developers.

Sebastian


On Tue, May 31, 2011 at 3:30 AM, Patrick Tucker tucker...@gmail.com wrote:
 I didn't look at the code, so this may not be feasible, but shouldn't
 you be doing this heavy stuff only when the value changes?  It's
 pretty easy to check the current vale prior to doing any work, or
 implement via handling valuechangeevents.

 On May 27, 8:27 am, Sebastian Beigel sebast...@beigel.de wrote:
 Hi,

 unfortunately there seems to be no love for the issue I reported a
 while ago concerning the revamped editor code (starting w/ GWT 2.3)
 using Refresher  Initializer.

 http://code.google.com/p/google-web-toolkit/issues/detail?id=6336

 Sub-editors' setValue() methods get called twice, which can be a very
 bad thing if you do something fancy/heavy in you setValue() method.
 But even for non-visible use-cases (like my trivial example w/
 TextBoxes) it's unnecessary and a can harm performance.

 Sebastian

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



-- 
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: gwt servlet thread, timer,reload

2011-05-31 Thread Adolfo Panizo Touzon
Hi Arno,

I have relatively little experience in this, but if you want some action
program for xtime, gwt offers mechanisms for such coordination.

I would recommend that you take a look at
Timerhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Timer.html
.

My philosophy is that if there is already a thing made ​​by Google, no one will
do better than them.

I hope it's what you want.

2011/5/31 khiem nguyen khi...@googlemail.com

 you  can start  your timer-process from something which starts with your
 webapp, for example in a ServletContextListener-implementations init method

 HTH



 On Tue, May 31, 2011 at 10:43 AM, ArnoNyhm 
 etechniker@googlemail.comwrote:

 Thx.
 i have created my timertask class, but where in the servlet i make the
 call?


 On 31 Mai, 07:41, J.Ganesan j.gane...@datastoregwt.com wrote:
  Since the servlet runs under J2SE, you can go for java.util.Timer  and
  java.util.TimerTask.
 
  J.Ganesanwww.DataStoreGwt.com
 
  On May 31, 5:08 am, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
 
   See Quartz http://www.quartz-scheduler.org/
 
   2011/5/30 ArnoNyhm etechniker@googlemail.com
 
Hi,
 
my gwt servlet loads data from a database, handle it and store it in
an embedded apche derby database. what i want is, that this process
 is
repeated every 45min automatically.
i don´t know how to do this?
 
regards arno
 
--
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.

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


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




-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
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: gwt servlet thread, timer,reload

2011-05-31 Thread ArnoNyhm
ah ok, i suspect somthing like this, thx.


On 31 Mai, 11:13, khiem nguyen khi...@googlemail.com wrote:
 you  can start  your timer-process from something which starts with your
 webapp, for example in a ServletContextListener-implementations init method

 HTH

 On Tue, May 31, 2011 at 10:43 AM, ArnoNyhm 
 etechniker@googlemail.comwrote:

  Thx.
  i have created my timertask class, but where in the servlet i make the
  call?

  On 31 Mai, 07:41, J.Ganesan j.gane...@datastoregwt.com wrote:
   Since the servlet runs under J2SE, you can go for java.util.Timer  and
   java.util.TimerTask.

   J.Ganesanwww.DataStoreGwt.com

   On May 31, 5:08 am, Juan Pablo Gardella gardellajuanpa...@gmail.com
   wrote:

See Quartz http://www.quartz-scheduler.org/

2011/5/30 ArnoNyhm etechniker@googlemail.com

 Hi,

 my gwt servlet loads data from a database, handle it and store it in
 an embedded apche derby database. what i want is, that this process
  is
 repeated every 45min automatically.
 i don´t know how to do this?

 regards arno

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

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

-- 
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: Canvas dimensions

2011-05-31 Thread Adolfo Panizo Touzon
Hi Cheers,

I read long ago according to where the application runs for certain
parameterschanged the settings.

GetOffsetWidth I think is one of them.

Can it be?

2011/5/31 Thomas Lefort lefortho...@gmail.com

 Hi,

 I have a canvas in a hidden panel. It is created before the panel is
 made visible. The problem I'd like to set its DOM width to 100% but I
 have a problem with the setCoordinateSpaceWidth then as I cannot get
 the canvas dimension via getOffsetWidth as the canvas is not visible.
 I don't even think I can add a resizeevent to Canvas nor is there a
 VisibleEvent. Would appreciate if anybody had an idea as to how to
 circumvent the problem?

 Cheers,

 Thomas

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




-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
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: Overriding a css style loclly

2011-05-31 Thread Adolfo Panizo Touzon
Hi lalit, try it with this

 ui:style field='reportStyle'
 @external gwt-Label;
   .gwt-Label{ color: #000 !Important; }
 /ui:style

I founded it 
herehttp://stackoverflow.com/questions/2322779/gwt-theme-style-overrides-my-css-style

http://stackoverflow.com/questions/2322779/gwt-theme-style-overrides-my-css-style
2011/5/30 lalit lalit.bh...@gmail.com

 I have a lot of labels in my application.I have overriding the style
 as most of the place, I need the new style and it works fines. the
 overridden style is

 .gwt-Label {
font-size: 15px;
font-weight: bold;
color: #fff;
float: inherit;
 }

 However at one particular place I need the color of label to be black,
 so I was trying to override the style in that ui.xml locally like

 ui:style field='reportStyle'
  @external gwt-Label;
.gwt-Label{ color: #000; }
  /ui:style

 However this impacts the style of label at other places also. Is there
 a way to override the standard style in a ui.xm so that it impacts the
 widgets of only in that ui binder.

 thanks in advance,

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




-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
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: Big Daddy example problems

2011-05-31 Thread Adolfo Panizo Touzon
Can the application runs in other port??

2011/5/30 Zachariah Young zpyo...@gmail.com

 @bbgott

 I'm getting the same issue also on Ubuntu.  The solutions work just fine on
 Windows.  Could it be that Ubuntu has the  port blocked or something?

 Also what did u hard code to get the Android application to work.

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




-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
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: GWT CellList Drag and Drop

2011-05-31 Thread Jee
Thanks.
I tried to implement you given example in eclipse Helios.
But i got errors in SortableCellDragAndDropHandler Class
Please guide to solve problems

1.$(draggedCell).css(CSS.DISPLAY.with(Display.NONE));  --- The method
with(Style.Display) is undefined for the type DisplayProperty

2.$(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));   The
method with(Style.Display) is undefined for the type DisplayProperty

3.allCells.isEmpty()  --- The method isEmpty() is undefined for the
type GQuery

 public void onDragStart(DragStartEvent event) {
Element draggedCell = event.getDraggable();
$(draggedCell).css(CSS.DISPLAY.with(Display.NONE));
  }

  public void onDragStop(DragStopEvent event) {
  Element draggedCell = event.getDraggable();
  $(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));

  }


 if (allCells.isEmpty()) {
  // no cells, the placeholder should just be added in the begin
of the cell
  // list
  return null;
}



Thanks
Jee

On May 30, 2:18 pm, Julien Dramaix julien.dram...@gmail.com wrote:
 Yes you can...
 I wrote an example on how to use gwtquery drag-and-drop plugin for
 implementing re-ordering in CellList :

 Example 
 :http://julien-labs.googlecode.com/svn-history/r7/trunk/sortablecellwi...

 Java code 
 :http://code.google.com/p/julien-labs/source/browse/trunk/sortablecell...

 The code is documented and easy to understand. If I found time, I will
 write an article about how to implement reordering in CellWidget...

 Julien







 On Mon, May 30, 2011 at 8:38 AM, Jee sundarra...@gmail.com wrote:
  Can we re-order CellList .. using DND. If we have 5 items in the
  CellList, can we move 2nd item to 5th Item in the same CellList.

  Thanks
  Jee

  On May 29, 1:03 am, Julien Dramaix julien.dram...@gmail.com wrote:
  Could you explain more what you are looking for ? What do you mean by
  within CellList ?

  On May 28, 2:11 pm, Jee sundarra...@gmail.com wrote:

   Hi Julien,

   thanks.
   Its great to see your reply. CellList is supporting drag and drop.
   but i am looking within CellList whether drag and drop is supporting
   or not.
   I tried to get about it, but i still failed.
   Please suggest on this.

   Thanks
   Jee

   On May 27, 6:47 pm, Julien Dramaix julien.dram...@gmail.com wrote: 
   You can use the drag-and-drop plugins of gqtquery to enbale drag and
drop on any CellWidget.

Example 
:http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/Conta...
Documentation 
:http://code.google.com/p/gwtquery-plugins/wiki/DragAndDropPluginForGW...

Julien

On May 27, 10:42 am, Jee sundarra...@gmail.com wrote:

 Hi,

 We would like to replace the old table inside Menu to use cellList.
 However, we

 don't know whether GWT cellList support drag and drop or not. Drag 
 and
 drop is

 supported using old table inside Menu but we have to make sure this
 feature

 still works in cellList before we can replace it.

 Thanks,
 Jee

  --
  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 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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 do i add a tooltip to a column header in a celltable ?

2011-05-31 Thread Juan Pablo Gardella
For example in your column.

2011/5/31 Celinio cel...@gmail.com

 thanks for your answer.
 I had already explored that onBrowserEvent(...) possibility.

 Where do i add that OnBrowserEvent(...) method to exactly ?


 On Tue, May 31, 2011 at 2:31 AM, Juan Pablo Gardella 
 gardellajuanpa...@gmail.com wrote:

 You must do a event handler (overwrite onBrowserEvent2), CellTable in gwt
 2.3.0 doesn't support events. See this example:

 @Override
 protected void onBrowserEvent2(Event event) {
  super.onBrowserEvent2(event);

 String eventType = event.getType();
  boolean isMouseover = mouseover.equals(eventType);
 boolean isMouseout = mouseout.equals(eventType);

 // Get the event target.
 EventTarget eventTarget = event.getEventTarget();
  if (!Element.is(eventTarget)) {
 return;
 }
  final Element target = event.getEventTarget().cast();


 You can overwrite this method and can open a tooltip.



 2011/5/30 Celinio cel...@gmail.com

  hello,
 i just have a simple question :
 how do i add a tooltip to a column header in a celltable ?

 Thanks for helping.

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


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


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


-- 
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 do i add a tooltip to a column header in a celltable ?

2011-05-31 Thread Celinio
Do you suggest something like this ? It's not firing any event when I move
the mouse over 

ColumnmyDTO, String utilisateurVerrouColumn = new ColumnmyDTO,
String(
new ClickableTextCell(blablaRender)) {

public String getValue(myDTO d) {
return something;
}

protected void onBrowserEvent(Event event) {
//super.onBrowserEvent(event);

String eventType = event.getType();
boolean isMouseover = mouseover.equals(eventType);
boolean isMouseout = mouseout.equals(eventType);

// Get the event target.
EventTarget eventTarget = event.getEventTarget();
if (!Element.is(eventTarget)) {
return;
}

switch(DOM.eventGetType(event)) {
case Event.ONMOUSEOVER:
Window.alert(Mouseover);
break;
case Event.ONMOUSEOUT:
Window.alert(Mouseout);
break;
default:
 break;
}
}

};

On Tue, May 31, 2011 at 1:23 PM, Juan Pablo Gardella 
gardellajuanpa...@gmail.com wrote:

 For example in your column.


 2011/5/31 Celinio cel...@gmail.com

 thanks for your answer.
 I had already explored that onBrowserEvent(...) possibility.

 Where do i add that OnBrowserEvent(...) method to exactly ?


 On Tue, May 31, 2011 at 2:31 AM, Juan Pablo Gardella 
 gardellajuanpa...@gmail.com wrote:

 You must do a event handler (overwrite onBrowserEvent2), CellTable in gwt
 2.3.0 doesn't support events. See this example:

 @Override
 protected void onBrowserEvent2(Event event) {
  super.onBrowserEvent2(event);

 String eventType = event.getType();
  boolean isMouseover = mouseover.equals(eventType);
 boolean isMouseout = mouseout.equals(eventType);

 // Get the event target.
 EventTarget eventTarget = event.getEventTarget();
  if (!Element.is(eventTarget)) {
 return;
 }
  final Element target = event.getEventTarget().cast();


 You can overwrite this method and can open a tooltip.



 2011/5/30 Celinio cel...@gmail.com

  hello,
 i just have a simple question :
 how do i add a tooltip to a column header in a celltable ?

 Thanks for helping.

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


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


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


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


-- 
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 do i add a tooltip to a column header in a celltable ?

2011-05-31 Thread Celinio
hmm looks like i needed to use the new signature of the method :

public void onBrowserEvent(Cell.Context context,
   Element elem,
   DemandeBean object,
   NativeEvent event) { ...}

However the method is called only if i click in the column.
It is not called if i just move over the mouse.
That's one thing.
Another thing is that I want the tool tip only when the user moves the mouse
over the column header, not the entire column.
Any idea ?
Thanks


On Tue, May 31, 2011 at 1:49 PM, Celinio cel...@gmail.com wrote:

 Do you suggest something like this ? It's not firing any event when I move
 the mouse over 

 ColumnmyDTO, String utilisateurVerrouColumn = new ColumnmyDTO,
 String(
 new ClickableTextCell(blablaRender)) {

 public String getValue(myDTO d) {
 return something;
 }

 protected void onBrowserEvent(Event event) {
 //super.onBrowserEvent(event);


 String eventType = event.getType();
 boolean isMouseover = mouseover.equals(eventType);
 boolean isMouseout = mouseout.equals(eventType);

 // Get the event target.
 EventTarget eventTarget = event.getEventTarget();
 if (!Element.is(eventTarget)) {
 return;
 }

 switch(DOM.eventGetType(event)) {
 case Event.ONMOUSEOVER:
 Window.alert(Mouseover);
 break;
 case Event.ONMOUSEOUT:
 Window.alert(Mouseout);
 break;
 default:
  break;
 }
 }

 };

 On Tue, May 31, 2011 at 1:23 PM, Juan Pablo Gardella 
 gardellajuanpa...@gmail.com wrote:

 For example in your column.


 2011/5/31 Celinio cel...@gmail.com

 thanks for your answer.
 I had already explored that onBrowserEvent(...) possibility.

 Where do i add that OnBrowserEvent(...) method to exactly ?


 On Tue, May 31, 2011 at 2:31 AM, Juan Pablo Gardella 
 gardellajuanpa...@gmail.com wrote:

 You must do a event handler (overwrite onBrowserEvent2), CellTable in
 gwt 2.3.0 doesn't support events. See this example:

 @Override
 protected void onBrowserEvent2(Event event) {
  super.onBrowserEvent2(event);

 String eventType = event.getType();
  boolean isMouseover = mouseover.equals(eventType);
 boolean isMouseout = mouseout.equals(eventType);

 // Get the event target.
 EventTarget eventTarget = event.getEventTarget();
  if (!Element.is(eventTarget)) {
 return;
 }
  final Element target = event.getEventTarget().cast();


 You can overwrite this method and can open a tooltip.



 2011/5/30 Celinio cel...@gmail.com

  hello,
 i just have a simple question :
 how do i add a tooltip to a column header in a celltable ?

 Thanks for helping.

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


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


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


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




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



Using RequestBuilder to communicate with a RESTful API on another port

2011-05-31 Thread Alexander Orlov
I want to write a RESTful GWT frontend for a RESTful backend. The
problem is that the backend code (server) is written in Go and can't
run on the same port as GWT's dev server (port   9997).

Due to XMLHttpRequest's (the underlying class behind RequestBuilder)
security restrictions I can't communicate with anything that isn't
running on the same port of the same host? Of course I can write GWT
frontend code, compile it and run it on the same hostport but this
dev approach isn't really feasible as I can't test anything while I'm
in dev mode.

So is there a way to make REST calls (via RequestBuilder or
XMLHttpRequest) to a server that isn't running on the same hostport?

-Alex

-- 
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: Using RequestBuilder to communicate with a RESTful API on another port

2011-05-31 Thread Thomas Broyer
If you do not have server-side code in Java, then you can just start the 
DevMode in -noserver- mode and point it to your Go server, see 
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#How_do_I_use_my_own_server_in_development_mode_instead_of_GWT's

Otherwise, you can deploy a proxy servlet in the embedded Jetty server, 
see http://code.google.com/p/google-web-toolkit/issues/detail?id=3131

-- 
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: Using RequestBuilder to communicate with a RESTful API on another port

2011-05-31 Thread Alexander Orlov
On May 31, 2:16 pm, Thomas Broyer t.bro...@gmail.com wrote:
 If you do not have server-side code in Java, then you can just start the
 DevMode in -noserver- mode and point it to your Go server, see 
 http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu...

Yep, I guess that's what I need. Thx!

-Alex

-- 
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: GWT CellList Drag and Drop

2011-05-31 Thread Julien Dramaix
You are using an old version of gwtquery.

Download the last stable version of GwtQuery compatible with the gwt
version you are using : http://code.google.com/p/gwtquery/wiki/Downloads
The last version of the draggable plugin :
http://code.google.com/p/gwtquery-plugins/downloads/detail?name=draggable-plugin-1.0.4.jar
The last version of the droppable plugin compliant with the gwt
version you are using :
 - for gwt 2.2 : 
http://code.google.com/p/gwtquery-plugins/downloads/detail?name=droppable-plugin-1.0.5.jar
 - for gwt 2.3 : 
http://code.google.com/p/gwtquery-plugins/downloads/detail?name=droppable-plugin-1.0.6.jar

Put these 3 jars in your classpath and it's should work.

Julien

On May 31, 12:44 pm, Jee sundarra...@gmail.com wrote:
 Thanks.
 I tried to implement you given example in eclipse Helios.
 But i got errors in SortableCellDragAndDropHandler Class
 Please guide to solve problems

 1.$(draggedCell).css(CSS.DISPLAY.with(Display.NONE));  --- The method
 with(Style.Display) is undefined for the type DisplayProperty

 2.$(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));   The
 method with(Style.Display) is undefined for the type DisplayProperty

 3.allCells.isEmpty()  --- The method isEmpty() is undefined for the
 type GQuery

  public void onDragStart(DragStartEvent event) {
     Element draggedCell = event.getDraggable();
     $(draggedCell).css(CSS.DISPLAY.with(Display.NONE));
   }

   public void onDragStop(DragStopEvent event) {
       Element draggedCell = event.getDraggable();
       $(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));

   }

  if (allCells.isEmpty()) {
       // no cells, the placeholder should just be added in the begin
 of the cell
       // list
       return null;
     }

 Thanks
 Jee

 On May 30, 2:18 pm, Julien Dramaix julien.dram...@gmail.com wrote:



  Yes you can...
  I wrote an example on how to use gwtquery drag-and-drop plugin for
  implementing re-ordering in CellList :

  Example 
  :http://julien-labs.googlecode.com/svn-history/r7/trunk/sortablecellwi...

  Java code 
  :http://code.google.com/p/julien-labs/source/browse/trunk/sortablecell...

  The code is documented and easy to understand. If I found time, I will
  write an article about how to implement reordering in CellWidget...

  Julien

  On Mon, May 30, 2011 at 8:38 AM, Jee sundarra...@gmail.com wrote:
   Can we re-order CellList .. using DND. If we have 5 items in the
   CellList, can we move 2nd item to 5th Item in the same CellList.

   Thanks
   Jee

   On May 29, 1:03 am, Julien Dramaix julien.dram...@gmail.com wrote:
   Could you explain more what you are looking for ? What do you mean by
   within CellList ?

   On May 28, 2:11 pm, Jee sundarra...@gmail.com wrote:

Hi Julien,

thanks.
Its great to see your reply. CellList is supporting drag and drop.
but i am looking within CellList whether drag and drop is supporting
or not.
I tried to get about it, but i still failed.
Please suggest on this.

Thanks
Jee

On May 27, 6:47 pm, Julien Dramaix julien.dram...@gmail.com wrote: 
You can use the drag-and-drop plugins of gqtquery to enbale drag and
 drop on any CellWidget.

 Example 
 :http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/Conta...
 Documentation 
 :http://code.google.com/p/gwtquery-plugins/wiki/DragAndDropPluginForGW...

 Julien

 On May 27, 10:42 am, Jee sundarra...@gmail.com wrote:

  Hi,

  We would like to replace the old table inside Menu to use cellList.
  However, we

  don't know whether GWT cellList support drag and drop or not. Drag 
  and
  drop is

  supported using old table inside Menu but we have to make sure this
  feature

  still works in cellList before we can replace it.

  Thanks,
  Jee

   --
   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 
   athttp://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted 
   text -

 - Show quoted text -

-- 
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: Using custom LocalMessages apart from Locales

2011-05-31 Thread Tim Eggert
Hi Thomas,

thanks a lot! I've tried your advice right now and it works absolutely fine 
for all cases where we can inject the LocalMessages.

There is only one problem since we also use the LocalMessages within the 
UiBinder xml templates. There we currently reference the LocalMessages as a 
resource to the common LocalMessages interface like this:

ui:with field=localMessage 
type=net.company.project.common.widgets.client.i18n.LocalMessages /

 
But this reference seems to be used / executed before the replace-with 
tags are parsed and GIN is executed?

Is there a possible solution to enable GIN also working in that case?

Best regards and thanks again for your help

Tim

-- 
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: GWT CellList Drag and Drop

2011-05-31 Thread Jee
Below jars are being used.But facing the issue with WITH

gquery-dnd-bundle-1.0.3
gwtquery-1.0.0-2.3.0
droppable-plugin-1.0.6
gwt 2.3



 $(draggedCell).css(CSS.DISPLAY.with(Display.NONE));

$(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));

please let us know how to proceed.

Thanks
Jee


On May 31, 5:24 pm, Julien Dramaix julien.dram...@gmail.com wrote:
 You are using an old version of gwtquery.

 Download the last stable version of GwtQuery compatible with the gwt
 version you are using :http://code.google.com/p/gwtquery/wiki/Downloads
 The last version of the draggable plugin 
 :http://code.google.com/p/gwtquery-plugins/downloads/detail?name=dragg...
 The last version of the droppable plugin compliant with the gwt
 version you are using :
      - for gwt 2.2 
 :http://code.google.com/p/gwtquery-plugins/downloads/detail?name=dropp...
      - for gwt 2.3 
 :http://code.google.com/p/gwtquery-plugins/downloads/detail?name=dropp...

 Put these 3 jars in your classpath and it's should work.

 Julien

 On May 31, 12:44 pm, Jee sundarra...@gmail.com wrote:







  Thanks.
  I tried to implement you given example in eclipse Helios.
  But i got errors in SortableCellDragAndDropHandler Class
  Please guide to solve problems

  1.$(draggedCell).css(CSS.DISPLAY.with(Display.NONE));  --- The method
  with(Style.Display) is undefined for the type DisplayProperty

  2.$(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));   The
  method with(Style.Display) is undefined for the type DisplayProperty

  3.allCells.isEmpty()  --- The method isEmpty() is undefined for the
  type GQuery

   public void onDragStart(DragStartEvent event) {
      Element draggedCell = event.getDraggable();
      $(draggedCell).css(CSS.DISPLAY.with(Display.NONE));
    }

    public void onDragStop(DragStopEvent event) {
        Element draggedCell = event.getDraggable();
        $(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));

    }

   if (allCells.isEmpty()) {
        // no cells, the placeholder should just be added in the begin
  of the cell
        // list
        return null;
      }

  Thanks
  Jee

  On May 30, 2:18 pm, Julien Dramaix julien.dram...@gmail.com wrote:

   Yes you can...
   I wrote an example on how to use gwtquery drag-and-drop plugin for
   implementing re-ordering in CellList :

   Example 
   :http://julien-labs.googlecode.com/svn-history/r7/trunk/sortablecellwi...

   Java code 
   :http://code.google.com/p/julien-labs/source/browse/trunk/sortablecell...

   The code is documented and easy to understand. If I found time, I will
   write an article about how to implement reordering in CellWidget...

   Julien

   On Mon, May 30, 2011 at 8:38 AM, Jee sundarra...@gmail.com wrote:
Can we re-order CellList .. using DND. If we have 5 items in the
CellList, can we move 2nd item to 5th Item in the same CellList.

Thanks
Jee

On May 29, 1:03 am, Julien Dramaix julien.dram...@gmail.com wrote:
Could you explain more what you are looking for ? What do you mean by
within CellList ?

On May 28, 2:11 pm, Jee sundarra...@gmail.com wrote:

 Hi Julien,

 thanks.
 Its great to see your reply. CellList is supporting drag and drop.
 but i am looking within CellList whether drag and drop is supporting
 or not.
 I tried to get about it, but i still failed.
 Please suggest on this.

 Thanks
 Jee

 On May 27, 6:47 pm, Julien Dramaix julien.dram...@gmail.com 
 wrote: You can use the drag-and-drop plugins of gqtquery to enbale 
 drag and
  drop on any CellWidget.

  Example 
  :http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/Conta...
  Documentation 
  :http://code.google.com/p/gwtquery-plugins/wiki/DragAndDropPluginForGW...

  Julien

  On May 27, 10:42 am, Jee sundarra...@gmail.com wrote:

   Hi,

   We would like to replace the old table inside Menu to use 
   cellList.
   However, we

   don't know whether GWT cellList support drag and drop or not. 
   Drag and
   drop is

   supported using old table inside Menu but we have to make sure 
   this
   feature

   still works in cellList before we can replace it.

   Thanks,
   Jee

--
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 
athttp://groups.google.com/group/google-web-toolkit?hl=en.-Hide quoted 
text -

  - Show quoted text -

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

Re: GWT CellList Drag and Drop

2011-05-31 Thread icamts
Hi,
add draggable-plugin-1.0.4, remove gquery-dnd-bundle-1.0.3. If you're
not using Maven move droppable-plugin-1.0.6 before gwt 2.3 library in
compilation order. Hope it helps.

Cheers,
Luca

On 31 Mag, 15:16, Jee sundarra...@gmail.com wrote:
 Below jars are being used.But facing the issue with WITH

 gquery-dnd-bundle-1.0.3
 gwtquery-1.0.0-2.3.0
 droppable-plugin-1.0.6
 gwt 2.3

  $(draggedCell).css(CSS.DISPLAY.with(Display.NONE));

 $(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));

 please let us know how to proceed.

 Thanks
 Jee

 On May 31, 5:24 pm, Julien Dramaix julien.dram...@gmail.com wrote:







  You are using an old version of gwtquery.

  Download the last stable version of GwtQuery compatible with the gwt
  version you are using :http://code.google.com/p/gwtquery/wiki/Downloads
  The last version of the draggable plugin 
  :http://code.google.com/p/gwtquery-plugins/downloads/detail?name=dragg...
  The last version of the droppable plugin compliant with the gwt
  version you are using :
       - for gwt 2.2 
  :http://code.google.com/p/gwtquery-plugins/downloads/detail?name=dropp...
       - for gwt 2.3 
  :http://code.google.com/p/gwtquery-plugins/downloads/detail?name=dropp...

  Put these 3 jars in your classpath and it's should work.

  Julien

  On May 31, 12:44 pm, Jee sundarra...@gmail.com wrote:

   Thanks.
   I tried to implement you given example in eclipse Helios.
   But i got errors in SortableCellDragAndDropHandler Class
   Please guide to solve problems

   1.$(draggedCell).css(CSS.DISPLAY.with(Display.NONE));  --- The method
   with(Style.Display) is undefined for the type DisplayProperty

   2.$(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));   The
   method with(Style.Display) is undefined for the type DisplayProperty

   3.allCells.isEmpty()  --- The method isEmpty() is undefined for the
   type GQuery

    public void onDragStart(DragStartEvent event) {
       Element draggedCell = event.getDraggable();
       $(draggedCell).css(CSS.DISPLAY.with(Display.NONE));
     }

     public void onDragStop(DragStopEvent event) {
         Element draggedCell = event.getDraggable();
         $(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));

     }

    if (allCells.isEmpty()) {
         // no cells, the placeholder should just be added in the begin
   of the cell
         // list
         return null;
       }

   Thanks
   Jee

   On May 30, 2:18 pm, Julien Dramaix julien.dram...@gmail.com wrote:

Yes you can...
I wrote an example on how to use gwtquery drag-and-drop plugin for
implementing re-ordering in CellList :

Example 
:http://julien-labs.googlecode.com/svn-history/r7/trunk/sortablecellwi...

Java code 
:http://code.google.com/p/julien-labs/source/browse/trunk/sortablecell...

The code is documented and easy to understand. If I found time, I will
write an article about how to implement reordering in CellWidget...

Julien

On Mon, May 30, 2011 at 8:38 AM, Jee sundarra...@gmail.com wrote:
 Can we re-order CellList .. using DND. If we have 5 items in the
 CellList, can we move 2nd item to 5th Item in the same CellList.

 Thanks
 Jee

 On May 29, 1:03 am, Julien Dramaix julien.dram...@gmail.com wrote:
 Could you explain more what you are looking for ? What do you mean by
 within CellList ?

 On May 28, 2:11 pm, Jee sundarra...@gmail.com wrote:

  Hi Julien,

  thanks.
  Its great to see your reply. CellList is supporting drag and drop.
  but i am looking within CellList whether drag and drop is 
  supporting
  or not.
  I tried to get about it, but i still failed.
  Please suggest on this.

  Thanks
  Jee

  On May 27, 6:47 pm, Julien Dramaix julien.dram...@gmail.com 
  wrote: You can use the drag-and-drop plugins of gqtquery to 
  enbale drag and
   drop on any CellWidget.

   Example 
   :http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/Conta...
   Documentation 
   :http://code.google.com/p/gwtquery-plugins/wiki/DragAndDropPluginForGW...

   Julien

   On May 27, 10:42 am, Jee sundarra...@gmail.com wrote:

Hi,

We would like to replace the old table inside Menu to use 
cellList.
However, we

don't know whether GWT cellList support drag and drop or not. 
Drag and
drop is

supported using old table inside Menu but we have to make sure 
this
feature

still works in cellList before we can replace it.

Thanks,
Jee

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

Re: Big Daddy example problems

2011-05-31 Thread Ed
Try running netstat as root on the linux machine to determine if the
port is in use

On Tue, May 31, 2011 at 6:07 AM, Adolfo Panizo Touzon
adolfo.pan...@gmail.com wrote:
 Can the application runs in other port??

 2011/5/30 Zachariah Young zpyo...@gmail.com

 @bbgott
 I'm getting the same issue also on Ubuntu.  The solutions work just fine
 on Windows.  Could it be that Ubuntu has the  port blocked or something?
 Also what did u hard code to get the Android application to work.

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



 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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


-- 
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: Using custom LocalMessages apart from Locales

2011-05-31 Thread Thomas Broyer
An ui:with/ translates into a GWT.create() call (unless you 
@UiField(provided=true) the field in your Java class). Because you're now 
GWT.create()ing the LocalMessagesFactory, you'll have to change you ui.xml 
files to ui:with field=localMessage 
type=net.company.project.common.widgets.client.i18n.LocalMessagesFactory 
/ an then use it as {localMessage.get.foo} instead of {localMessage.foo}.

-- 
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: SplitLayoutPanel Sizing?

2011-05-31 Thread icamts
May be you are missing to put SplitLayoutPanel in a RootLayoutPanel.
Alternatively you can provide explicit size, see Recipes here:

http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideUiPanels.html#Recipes

Cheers,
Luca

On 31 Mag, 10:54, Nick Apperley napper...@gmail.com wrote:
 In the application (using GWT 2.3) there is a SplitLayoutPanel with a
 widget on the left (East) and one on the right (West). When viewing
 the application in both FF 3.6 and FF 4 the combo box in the left side
 of the SplitLayoutPanel has its end chopped off. No resizing of the
 SplitLayoutPanel with its divider will show the rest of it.

 Another issue with the SplitLayoutPanel is that the widget on the
 right side doesn't display in both FF 3.6 and FF4. Initially I thought
 it was because the widget was reporting the incorrect width however
 after fixing the width reporting the issue still occurs.

 What is the best way to size SplitLayoutPanel so that it will allocate
 half to one side and half to another anytime its contents changes?
 What might cause SplitLayoutPanel to not display a Widget on a
 particular side?

 Below is the contents of the UIBinder file which are relevant to
 SplitLayoutPanel:

 ---
 g:west size=1.0
     g:VerticalPanel ui:field=navLayout
         g:Label text=Image ui:field=imageLbl/
         g:ListBox ui:field=zonesCbo/
         g:HTMLPanel ui:field=imageLayout
             div id=imageDiv
             /div
             div id=imageMapDiv
             /div
         /g:HTMLPanel
     /g:VerticalPanel
 /g:west
 ---

 The right side of the SplitLayoutPanel has its contents dynamically
 added/removed. On the left side imageDiv/imageMapDiv have their
 contents dynamically change, depending on what has been selected at
 the time by the user. Since some custom HTML elements is used
 (ImageElement and MapElement) in the left side it could make sizing
 the SplitLayoutPanel very tricky.

-- 
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: GWT CellList Drag and Drop

2011-05-31 Thread Jee
Hi,

Its working fine now. Because i have missed one jar file in class
path.
If you have time, please create an article about CellList re-order.


Thanks
Jee


On May 31, 6:33 pm, icamts ica...@gmail.com wrote:
 Hi,
 add draggable-plugin-1.0.4, remove gquery-dnd-bundle-1.0.3. If you're
 not using Maven move droppable-plugin-1.0.6 before gwt 2.3 library in
 compilation order. Hope it helps.

 Cheers,
 Luca

 On 31 Mag, 15:16, Jee sundarra...@gmail.com wrote:







  Below jars are being used.But facing the issue with WITH

  gquery-dnd-bundle-1.0.3
  gwtquery-1.0.0-2.3.0
  droppable-plugin-1.0.6
  gwt 2.3

   $(draggedCell).css(CSS.DISPLAY.with(Display.NONE));

  $(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));

  please let us know how to proceed.

  Thanks
  Jee

  On May 31, 5:24 pm, Julien Dramaix julien.dram...@gmail.com wrote:

   You are using an old version of gwtquery.

   Download the last stable version of GwtQuery compatible with the gwt
   version you are using :http://code.google.com/p/gwtquery/wiki/Downloads
   The last version of the draggable plugin 
   :http://code.google.com/p/gwtquery-plugins/downloads/detail?name=dragg...
   The last version of the droppable plugin compliant with the gwt
   version you are using :
        - for gwt 2.2 
   :http://code.google.com/p/gwtquery-plugins/downloads/detail?name=dropp...
        - for gwt 2.3 
   :http://code.google.com/p/gwtquery-plugins/downloads/detail?name=dropp...

   Put these 3 jars in your classpath and it's should work.

   Julien

   On May 31, 12:44 pm, Jee sundarra...@gmail.com wrote:

Thanks.
I tried to implement you given example in eclipse Helios.
But i got errors in SortableCellDragAndDropHandler Class
Please guide to solve problems

1.$(draggedCell).css(CSS.DISPLAY.with(Display.NONE));  --- The method
with(Style.Display) is undefined for the type DisplayProperty

2.$(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));   The
method with(Style.Display) is undefined for the type DisplayProperty

3.allCells.isEmpty()  --- The method isEmpty() is undefined for the
type GQuery

 public void onDragStart(DragStartEvent event) {
    Element draggedCell = event.getDraggable();
    $(draggedCell).css(CSS.DISPLAY.with(Display.NONE));
  }

  public void onDragStop(DragStopEvent event) {
      Element draggedCell = event.getDraggable();
      $(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));

  }

 if (allCells.isEmpty()) {
      // no cells, the placeholder should just be added in the begin
of the cell
      // list
      return null;
    }

Thanks
Jee

On May 30, 2:18 pm, Julien Dramaix julien.dram...@gmail.com wrote:

 Yes you can...
 I wrote an example on how to use gwtquery drag-and-drop plugin for
 implementing re-ordering in CellList :

 Example 
 :http://julien-labs.googlecode.com/svn-history/r7/trunk/sortablecellwi...

 Java code 
 :http://code.google.com/p/julien-labs/source/browse/trunk/sortablecell...

 The code is documented and easy to understand. If I found time, I will
 write an article about how to implement reordering in CellWidget...

 Julien

 On Mon, May 30, 2011 at 8:38 AM, Jee sundarra...@gmail.com wrote:
  Can we re-order CellList .. using DND. If we have 5 items in the
  CellList, can we move 2nd item to 5th Item in the same CellList.

  Thanks
  Jee

  On May 29, 1:03 am, Julien Dramaix julien.dram...@gmail.com wrote:
  Could you explain more what you are looking for ? What do you mean 
  by
  within CellList ?

  On May 28, 2:11 pm, Jee sundarra...@gmail.com wrote:

   Hi Julien,

   thanks.
   Its great to see your reply. CellList is supporting drag and 
   drop.
   but i am looking within CellList whether drag and drop is 
   supporting
   or not.
   I tried to get about it, but i still failed.
   Please suggest on this.

   Thanks
   Jee

   On May 27, 6:47 pm, Julien Dramaix julien.dram...@gmail.com 
   wrote: You can use the drag-and-drop plugins of gqtquery to 
   enbale drag and
drop on any CellWidget.

Example 
:http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/Conta...
Documentation 
:http://code.google.com/p/gwtquery-plugins/wiki/DragAndDropPluginForGW...

Julien

On May 27, 10:42 am, Jee sundarra...@gmail.com wrote:

 Hi,

 We would like to replace the old table inside Menu to use 
 cellList.
 However, we

 don't know whether GWT cellList support drag and drop or 
 not. Drag and
 drop is

 supported using old table inside Menu but we have to make 
 sure this
 feature

 still works in cellList before we can replace it.

 Thanks,
 Jee

  --
  You received this message because 

Re: Action on a ImageResourceCell

2011-05-31 Thread Sydney
I actually followed this tutorial and now it works fine: 
http://webcentersuite.blogspot.com/2011/03/custom-gwt-clickable-cell-with-images.html

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



Best Practise: Database Java Backend

2011-05-31 Thread Gambo
Hi there,

maybe there were some answers serveral times on this topic but I
couldnt find them.

I am looking for a best practise of gwt project setup with java
backend.

As usual we are setting up our database first and then doing the
object relation mapping afterwards, creating DTOs and client classes.
For now this is a very manual job and we have to do mapping each time
by hand in jpa. This costs a lot of time and its redundant work(db
design and then design it again in orm).

Is there a better way to do this via Spring or Seam automaticaly?
Sorry but now I am a little bit lost what options I could use.

If this is the wrong group to ask please let me know.

Thanks for your help

-- 
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: Action on a ImageResourceCell

2011-05-31 Thread Jambi
Are you using this cell in a cellList or in a cellTable? I´m also
stucking with creating a clickable Image Cell

On 31 Mai, 16:16, Sydney sydney.henr...@gmail.com wrote:
 I actually followed this tutorial and now it works 
 fine:http://webcentersuite.blogspot.com/2011/03/custom-gwt-clickable-cell-...

-- 
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: GWT/GPE 2.3 unable to sign in with Google Apps account

2011-05-31 Thread Henrik Strand
FYI

http://code.google.com/p/google-web-toolkit/issues/detail?id=6410

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



Whats the use of this(); in the AppEngine Example

2011-05-31 Thread jmbz84
Hello,

I'm completing the tutorial of GWT with Google App Engine
http://code.google.com/intl/es/webtoolkit/doc/1.6/tutorial/appengine.html

In one example I see this:

  public Stock(User user, String symbol) {
this();
this.user = user;
this.symbol = symbol;
  }

What's the use of the method :this();

Is it a constructor initializing the class? Any Ideas?

Thx

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



Canvas clear rectangle

2011-05-31 Thread ihsan ciftci
I think canvas should contain a method to clear entire canvas
regardless of current context.

The clearing approach with Integer.MIN-MAX works great on
chrome,safar,opera but not ie and ff.

/*
 * canvas.getContext2d().save();
 * canvas.getContext2d().setTransform(1,0,0,1,0,0);
 * canvas.getContext2d().clearRect(0, 0,
 * canvas.getCoordinateSpaceWidth(),
canvas.getCoordinateSpaceHeight());
 * canvas.getContext2d().restore();
 */

canvas.getContext2d().clearRect(Integer.MIN_VALUE / 2,
Integer.MIN_VALUE / 2, Integer.MAX_VALUE, Integer.MAX_VALUE);

/* canvas.getContext2d().clearRect(0,0,
canvas.getCanvasElement().getWidth(),
canvas.getCanvasElement().getHeight());
*/

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



Can't get gwt remote service (path) to work

2011-05-31 Thread AppEngineNoob
Hi,

I have an app named thinpost, where client-side code lives in
com.mthusain.thinpost.client.* and server-side code lives in
com.mthusain.thinpost.server.* . I have made a service (for RPC with
AppEngine JDO) called ThinpostService. The ThinpostServiceAsync code
lives in the client-side whereas the ThinpostServiceImpl code lives in
the server. In the ThinpostService, I have included this line at the
top: @RemoteServiceRelativePath(welcome). In the web.xml file, I
have:

  !-- Servlets --
  servlet
servlet-namethinpostService/servlet-name
servlet-classcom.mthusain.thinpost.server.ThinpostServiceImpl/
servlet-class
  /servlet

  !-- Servlet Mapping --
  servlet-mapping
servlet-namethinpostService/servlet-name
url-patterncom.mthusain.thinpost/welcome/url-pattern
  /servlet-mapping

Why am I still getting this error:

com.google.gwt.user.client.rpc.StatusCodeException: 404
HTTP ERROR 404

Problem accessing /thinpost/welcome. Reason:

NOT_FOUND

What am I doing wrong? I have tried many different combinations of url-
patterns: com.mthusain.thinpost.thinpost/welcome, com.mthusain/
welcome, com.mthusain/welcome, thinpost/welcome etc. but none seems to
work. Do I need to create a file in com.mthusain.thinpost called
welcome? If so, then what should I add in it? What am I missin here?
Any help would be kindly appreciated.

Thank you.

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



Scroller

2011-05-31 Thread strut
I have a situation where i have a grid in a gridpanel and on the top
of it there are two check boxes which are added to a normal panel and
which inturn is added to a multifieldpanel.

Now for grid panel i have set auto scroll is true.
But when i want scroll the grid i want the checkboxes to be moved
along with instead of being static on the multifieldpanel.

I need your help.

Thanks in adv..

-- 
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 xml auto-complete freezes

2011-05-31 Thread Selva
Hi,

I have installed the Google Plugin for Eclipse 3.6 (Version:
2.4.0.ms1_r36v201105101332, ID
com.google.gdt.eclipse.suite.e36.feature.feature.group) from update
site http://dl.google.com/eclipse/plugin/beta/3.6.

While editing ui.xml files with  UiBinder Template Editor or
WindowBuilder Editor, as soon as I press the '' key or Ctrl+space
eclipse freezes for about 1-2 minutes.

I had to use xml editor without auto completion.

However this doesn't happen if I am not connected to Internet.

Can some help me fix this issue? Thanks in advance.

Regards,
Selva

-- 
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: ScrollPanel steals focus from FlexTable

2011-05-31 Thread petrstepanov
MickeyR mnrooney@... writes:

Oh MickeyR I am currently working on the same issue:
FlexTable (file list) wrapped with a FocusPanel is placed inside a 
ScrollPanel.
But currently I even cannot capture the keyDownEvent with the FocusPanel. 
Would 
you be so kind to email me your source code please?

kissther...@gmail.com

 
 
 Cracking !
 Works like a dream the scrollIntoView().
 
 Many thanks,
 M.
 


-- 
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: Whats the use of this(); in the AppEngine Example

2011-05-31 Thread Patrick Julien
it's calling the default constructor

On Mon, May 30, 2011 at 4:39 PM, jmbz84 jmb...@gmail.com wrote:
 Hello,

 I'm completing the tutorial of GWT with Google App Engine
 http://code.google.com/intl/es/webtoolkit/doc/1.6/tutorial/appengine.html

 In one example I see this:

  public Stock(User user, String symbol) {
    this();
    this.user = user;
    this.symbol = symbol;
  }

 What's the use of the method :    this();

 Is it a constructor initializing the class? Any Ideas?

 Thx

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



-- 
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: Using custom LocalMessages apart from Locales

2011-05-31 Thread Tim Eggert
Thanks for your explanation. We will do it like this for now ;)

Best regards,

Tim

-- 
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: GWT/GPE 2.3 unable to sign in with Google Apps account

2011-05-31 Thread Alex Humesky
Henrik, all,

We've determined that the problem is that certain OAuth scopes aren't
supported for Google Apps accounts still on the old Google Apps
infrastructure, i.e. un-migrated accounts. The solution is to migrate
your accounts to the new Google Apps infrastructure. Please see

http://www.google.com/support/a/bin/topic.py?topic=28917
http://www.google.com/support/a/bin/answer.py?hl=enanswer=183605

for information on how to transition your accounts.

Thanks,
Alex, GPE Team

On May 31, 3:33 am, Henrik Strand hen...@whiletrue.se wrote:
 FYI

 http://code.google.com/p/google-web-toolkit/issues/detail?id=6410

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



Reflection Class Generator

2011-05-31 Thread Adolfo Panizo Touzon
Can somebody the function about de class Generator and all the similar
classes which is contained int he packpage com.google.gwt.core.ext, it´s
used for deferred binding?

Maybe if I want use reflection in my app, I must use these classes??

-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
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: Best Practise: Database Java Backend

2011-05-31 Thread J.Ganesan


On May 31, 7:33 pm, Gambo mark.vanv...@gmail.com wrote:
 Hi there,

 maybe there were some answers serveral times on this topic but I
 couldnt find them.

 I am looking for a best practise of gwt project setup with java
 backend.

 As usual we are setting up our database first and then doing the
 object relation mapping afterwards, creating DTOs and client classes.
 For now this is a very manual job and we have to do mapping each time
 by hand in jpa. This costs a lot of time and its redundant work(db
 design and then design it again in orm).
--
I do not know whether this is the best practice. I suggest a new
practice. DataStoreGwt, a persistence engine for GWT, seeks to get
around the above problem - maintaining shadow model for database
purpose.

J.Ganesan
www.DataStoreGwt.com

--


 Is there a better way to do this via Spring or Seam automaticaly?
 Sorry but now I am a little bit lost what options I could use.

 If this is the wrong group to ask please let me know.

 Thanks for your help

-- 
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: Using RequestBuilder to communicate with a RESTful API on another port

2011-05-31 Thread Alexander Orlov
On May 31, 2:16 pm, Thomas Broyer t.bro...@gmail.com wrote:
 If you do not have server-side code in Java, then you can just start the
 DevMode in -noserver- mode and point it to your Go server, 
 seehttp://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu...

To accomplish this I use Maven's GWT plugin with the following config:

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdgwt-maven-plugin/artifactId
version2.2.0/version
configuration
logLevelINFO/logLevel
noServertrue/noServer
!-- .. --
/plugin

After mvn gwt:run I get the Dev Mode Console but after clicking on
Launch Default Browser the browser popups with
http://127.0.0.1:/commander/index.html?gwt.codesvr=127.0.0.1:9997


Calling the GWT container page manually leads to

GWT module 'commander' may need to be (re)compiled

...no matter whether I call the GWT container page via file:/// or http://

Executing the result of mvn gwt:compile works fine. But that's the
production code that takes minutes to compile.

Any tips how I can use the -noserver with Maven or IntelliJ (I don't
use Eclipse)?

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



New GWT /App engine site

2011-05-31 Thread ale
Hello everyone.
I am very happy to introduce you to a site made by me and my friend Giorgio.

http://www.youtrail.com

The website ha been completely developed with GWT, and deployed on the app 
engine.
The main theme of the site are the outdoor sports/activities: you can find 
some trail with description, detailed notes (difficulty, length, 
elevation...) GPS tracks, images, videos and of course users reviews.
Registerd users can post their own personal reviews and observations, they 
can suggest new trails or suggest changes to the exinting ones and so on; 
expressing preferences is an other options.

I would also like to thank the newsgroup, because often I have searched  and 
found solutions for our problems here.

I hope you will enjoy the site, and if you have any questions about how we 
developed some part of the website (maps, authentication connection, import 
from picasa flickr youtube, facebook...), I will be happy to explain.

Every suggestion is more than welcome !

See you soon, thanks
Alessandro

-- 
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: Using RequestBuilder to communicate with a RESTful API on another port

2011-05-31 Thread Alexander Orlov
On May 31, 5:32 pm, Alexander Orlov alexander.or...@loxal.net wrote:
 Any tips how I can use the -noserver with Maven or IntelliJ (I don't
 use Eclipse)?

Ok, I've got it :)

The ?gwt.codesvr=127.0.0.1:9997 parameter was missing. So basically
my Go server plays Jetty.

-- 
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: Using RequestBuilder to communicate with a RESTful API on another port

2011-05-31 Thread Thomas Broyer
Er, no. Without the gwt.codesvr, you run the compiled JS (or if you didn't 
mvn gwt:compile, you run the almost-empty *.nocache.js generated by 
DevMode so you can use it (the DevMode)), with gwt.codesvr your trigger the 
DevMode browser plugin which connects back to the DevMode app (listening at 
127.0.0.1:9997).
There's absolutely no Jetty involved here.

-- 
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: Best Practise: Database Java Backend

2011-05-31 Thread Paul Robinson

Or you could use Hibernate to generate your database schema from your object 
model.

On 31/05/11 16:31, J.Ganesan wrote:


On May 31, 7:33 pm, Gambomark.vanv...@gmail.com  wrote:

Hi there,

maybe there were some answers serveral times on this topic but I
couldnt find them.

I am looking for a best practise of gwt project setup with java
backend.

As usual we are setting up our database first and then doing the
object relation mapping afterwards, creating DTOs and client classes.
For now this is a very manual job and we have to do mapping each time
by hand in jpa. This costs a lot of time and its redundant work(db
design and then design it again in orm).

--
I do not know whether this is the best practice. I suggest a new
practice. DataStoreGwt, a persistence engine for GWT, seeks to get
around the above problem - maintaining shadow model for database
purpose.

J.Ganesan
www.DataStoreGwt.com

--


Is there a better way to do this via Spring or Seam automaticaly?
Sorry but now I am a little bit lost what options I could use.

If this is the wrong group to ask please let me know.

Thanks for your help


--
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: Exception while dispatching incoming RPC call

2011-05-31 Thread Juan M
I solved it by editing the datastore-indexes-auto in WAR- WEB-INF.

it was:

 datastore-index kind=Stock ancestor=false source=auto
property name=user direction=asc/
property name=createDate direction=asc/
/datastore-index

changed to:

 datastore-index kind=Stock ancestor=false source=manual
property name=user direction=asc/
property name=createDate direction=asc/
/datastore-index

I re-uploaded the code to app engine, waited for the index to be created and it 
worked


-- 
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: Best Practise: Database Java Backend

2011-05-31 Thread Juan Pablo Gardella
See this samplehttps://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home.
There the database is generate and populated at runtime. Util to prototype.

2011/5/31 Paul Robinson ukcue...@gmail.com

 Or you could use Hibernate to generate your database schema from your
 object model.


 On 31/05/11 16:31, J.Ganesan wrote:


 On May 31, 7:33 pm, Gambomark.vanv...@gmail.com  wrote:

 Hi there,

 maybe there were some answers serveral times on this topic but I
 couldnt find them.

 I am looking for a best practise of gwt project setup with java
 backend.

 As usual we are setting up our database first and then doing the
 object relation mapping afterwards, creating DTOs and client classes.
 For now this is a very manual job and we have to do mapping each time
 by hand in jpa. This costs a lot of time and its redundant work(db
 design and then design it again in orm).

 --
 I do not know whether this is the best practice. I suggest a new
 practice. DataStoreGwt, a persistence engine for GWT, seeks to get
 around the above problem - maintaining shadow model for database
 purpose.

 J.Ganesan
 www.DataStoreGwt.com

 --

  Is there a better way to do this via Spring or Seam automaticaly?
 Sorry but now I am a little bit lost what options I could use.

 If this is the wrong group to ask please let me know.

 Thanks for your help


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



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



GPE 2.4 Removing C2DM

2011-05-31 Thread msanztru
Hi GPE devs,

I have been playing with the GPE 2.4. It looks great. One comment
though and a related question. Comment: When you create an Android +
App Engine project it creates it incorporating the C2DM. It would be
nice to have the option to create the project without this
functionality, otherwise if your app doesn't need it needs to me
removed from the project.

Question: what should be done to safely remove the C2DM functionality
from the auto generated code? There are some obvious things to be
removed but it would be handy to have a list of all the generated C2DM
code, files and xml lines for those who don't want to use this
functionality (at least until the option I mentioned previously is
implemented... if it is implemented).

Thanks for any help on this 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.



Problem with cookies cleaning on tab closing

2011-05-31 Thread Cibeles
Hi, i need to clean the user cookies (particulary the session ones)
when the last tab or window of my application is closed, i've tried
with:
Window.addWindowClosingHandler(new ClosingHandler() {

@Override
public void onWindowClosing(ClosingEvent event) {
String cookies[]= {ya_conectado};

my_package.client.util.Cookies.limpiar_cookies(cookies); //This
line cleans the cookies listed
}
});

but the problem is that if the user has two tabs open and want to
close only one of them and continue working on the other, he can't
because it has been logged out
Is there any way of knowing if i have another tab with the application
on it?
Thanks in advance!

-- 
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: New GWT /App engine site

2011-05-31 Thread Rich Dean
Nice.

On May 31, 11:52 am, ale aleee...@gmail.com wrote:
 Hello everyone.
 I am very happy to introduce you to a site made by me and my friend Giorgio.

 http://www.youtrail.com

 The website ha been completely developed with GWT, and deployed on the app
 engine.
 The main theme of the site are the outdoor sports/activities: you can find
 some trail with description, detailed notes (difficulty, length,
 elevation...) GPS tracks, images, videos and of course users reviews.
 Registerd users can post their own personal reviews and observations, they
 can suggest new trails or suggest changes to the exinting ones and so on;
 expressing preferences is an other options.

 I would also like to thank the newsgroup, because often I have searched  and
 found solutions for our problems here.

 I hope you will enjoy the site, and if you have any questions about how we
 developed some part of the website (maps, authentication connection, import
 from picasa flickr youtube, facebook...), I will be happy to explain.

 Every suggestion is more than welcome !

 See you soon, thanks
 Alessandro

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



XML validation with XSD (SXML Schema) validation in GWT

2011-05-31 Thread Michaël
Hi,

After a lot of research on the web I don't find how to validate a XML
file with a XSD (XML Schema) in GWT (2.3.0).

I saw that on the JSE 6 there is a SchemaFactory class, but not in
GWT. So, how can I do this validation?

Best regards.

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



A question about CellList and SelectionModel

2011-05-31 Thread ManoOjo
Hello,

I'm newbie on GWT and App Engine and I have a question. I have a
CellList with a SingleSelectionModel. It works correctly but I would
like to set an init selection. I'm using
selectionModel.setSelected(selectedTest,true) and it works but the
problem is that  I don't know how to make the cell displayed marked,
as if we have clicked on it.

Can anybody help me?

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



Layout Showcase

2011-05-31 Thread Bruno Santos
I'm making a website using GWT, but I'm not good with layout, so I
wonder if I use the layout of the GWT Showcase, and if I can do what I
should be able to use it?

-- 
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: New GWT /App engine site

2011-05-31 Thread David Chandler
Friendly reminder: the appropriate place to post sites built with GWT is
gwtgallery.appspot.com. Folks can subscribe to the Recent projects RSS
feed to keep up with the latest projects built with GWT.

Let's preserve the GWT group for technical discussion about GWT.

Thanks,
/dmc

On Tue, May 31, 2011 at 12:47 PM, Rich Dean richdd...@gmail.com wrote:

 Nice.

 On May 31, 11:52 am, ale aleee...@gmail.com wrote:
  Hello everyone.
  I am very happy to introduce you to a site made by me and my friend
 Giorgio.
 
  http://www.youtrail.com
 
  The website ha been completely developed with GWT, and deployed on the
 app
  engine.
  The main theme of the site are the outdoor sports/activities: you can
 find
  some trail with description, detailed notes (difficulty, length,
  elevation...) GPS tracks, images, videos and of course users reviews.
  Registerd users can post their own personal reviews and observations,
 they
  can suggest new trails or suggest changes to the exinting ones and so on;
  expressing preferences is an other options.
 
  I would also like to thank the newsgroup, because often I have searched
  and
  found solutions for our problems here.
 
  I hope you will enjoy the site, and if you have any questions about how
 we
  developed some part of the website (maps, authentication connection,
 import
  from picasa flickr youtube, facebook...), I will be happy to explain.
 
  Every suggestion is more than welcome !
 
  See you soon, thanks
  Alessandro

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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: Action on a ImageResourceCell

2011-05-31 Thread Sydney
In a CellTable

-- 
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: XML validation with XSD (SXML Schema) validation in GWT

2011-05-31 Thread Jeff Chimene
On 05/31/2011 08:52 AM, Michaël wrote:
 Hi,
 
 After a lot of research on the web I don't find how to validate a XML
 file with a XSD (XML Schema) in GWT (2.3.0).
 
 I saw that on the JSE 6 there is a SchemaFactory class, but not in
 GWT. So, how can I do this validation?
 
 Best regards.
 

You won't be able to invoke a validating parser on the client side, You
can use GWT RPC to cause your server to perform that task, and return
the results to your client.

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



Aw: Uibinder xml auto-complete freezes

2011-05-31 Thread daniel brelovsky
hi,

if you are behind a proxy have a look here: 
https://groups.google.com/d/topic/google-web-toolkit/2j0RulDMfgc/discussion


-- 
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: Uibinder xml auto-complete freezes

2011-05-31 Thread Magno Machado
I have the same issue (although I didn't check it when I'm not on internet),
and I'm not behind a proxy

I used the same workarround

On Tue, May 31, 2011 at 4:34 PM, daniel brelovsky 
d.brelov...@googlemail.com wrote:

 hi,

 if you are behind a proxy have a look here:
 https://groups.google.com/d/topic/google-web-toolkit/2j0RulDMfgc/discussion



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




-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

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



Direct Client Need: Java/GWT Developer in SFO, CA

2011-05-31 Thread Manish Savale
Hello,

This is a Direct Client requirement for a Sr. Java-J2EE/GWT developer. The 
client has interviewed quite a few candidates and rejected as none came with 
recent verifiable experience in GWT/GXT.

Kindly review the JD and let me know if you'd be interested in this assignment.

Role:Java-J2EE / GWT developer
Experience:   Total 8-9 yrs with atleast 2 years in GWT
KEY SKILL:   Recent GWT development experience of atleast 1-2 years
Location:  South San Francisco, CA
Duration:   8 months minimum - will go longer
Interviews: Telephonic, followed by in-person if the candidate is local
Start:Immediate

Key SKILLS:

- Development skills on GWT / GXT latest version
- Hibernate
- EJB 3.0 or atleast 2.0
- JPA
- JMS
- Excellent communication skills, written and oral

Kindly email your updated resume, with rate and contact information, to 
mani...@tts-consulting.commailto:mani...@tts-consulting.com and I will call 
you back promptly.

Thanks
Manish Savale
TTS Inc

(925) 952-6317 - direct
(925) 932-3743 - fax
mani...@tts-consulting.commailto:mani...@tts-consulting.com
1255 Treat Blvd., Ste 140
Walnut Creek, CA 94597

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



REQ: Java/GWT Developer in SFO, CA

2011-05-31 Thread Manish Savale
 

Hello

This is a Direct Client requirement for a Sr. Java-J2EE/GWT developer. The 
client has interviewed quite a few candidates and rejected as none came with 
recent verifiable experience in GWT/GXT.

Kindly review the JD and email me your updated resume at 
mani...@tts-consulting.com

Role:Java-J2EE / GWT developer
Experience:   Total 8-9 yrs with atleast 2 years in GWT
KEY SKILL:   Recent GWT development experience of atleast 1-2 years
Location:  South San Francisco, CA
Duration:   8 months minimum – will go longer
Interviews: Telephonic, followed by in-person if the candidate is 
local
Start:Immediate

*Key SKILLS:*

- Development skills on GWT / GXT latest version
- Hibernate
- EJB 3.0 or atleast 2.0
- JPA
- JMS
- Excellent communication skills, written and oral

Kindly email your updated resume, with rate and contact information, to 
mani...@tts-consulting.com and I will call you back promptly. 

Thanks
 
*Manish Savale*

*TTS Inc*

 

(925) 952-6317 - direct

(925) 932-3743 - fax

mani...@tts-consulting.com

1255 Treat Blvd., Ste 140

Walnut Creek, CA 94597

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



GWT on server-side...Google Maps..

2011-05-31 Thread -guliyev-
Hello,

I need a suggestion on implementing GWT application for my server-side
part of project, but I don't know where to start (I'm newbie in
GWT)...And I have to use Google maps API in my server-side --- this
app will continuously get some coordinates from maps, calculate it in
GWT (Java code) and send it to a database via web services... Any
example, tutorial or suggestion about how to start server-side GWT
coding using Google Maps API ?!

(or is it easy to code in any other language (environment)?!)

Any help is appreciated!

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



R: Re: New GWT /App engine site

2011-05-31 Thread ale
Sorry, 
I will publish there!

Thanks.
Alessandro

-- 
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: Re: New GWT /App engine site

2011-05-31 Thread Gal Dolber
Looks really nice!
A few things:

   - Its taking too long to load the results on a the 'list view' and there
   is no loading animation
   - The popups on the maps are collapsing
   - Same as point 1 for many other places, add loading feedback wherever
   you hit the server

Regards

On Tue, May 31, 2011 at 6:53 PM, ale aleee...@gmail.com wrote:

 Sorry,
 I will publish there!

 Thanks.

 Alessandro

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




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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: GWT meets Adobe Flex: gwt4air 2.1 is here !

2011-05-31 Thread gwt.user
How do i use RPC with the gwt4air Flex API ?
Cant get it to work.
Thx

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



EMF Error

2011-05-31 Thread Pavel Byles
Trying to get RequestFactory to work but I am getting:

Server Error: Could not initialize class myproject.com.server.domain.EMF

at the line that contains this code:

ListCountry list = em.createQuery(select c from Country c
).getResultList();


Anyone have any ideas?

-- 
-Pav

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



creating war

2011-05-31 Thread Navindian
How to create a war out of GWT Web application project?

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



[gwt-contrib] Re: Added -XdisableSoycHtml command line flag for disabling HTML compile report generation. This wil... (issue1450807)

2011-05-31 Thread zundel

LGTM w/ nit


http://gwt-code-reviews.appspot.com/1450807/diff/1/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java
File dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java
(right):

http://gwt-code-reviews.appspot.com/1450807/diff/1/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java#newcode1219
dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java:1219:
if (sizeBreakdowns != null) {
if (!htmlReportsDisabled  sizeBreakdowns != null)

(Gets rid of an extra level of nesting)

http://gwt-code-reviews.appspot.com/1450807/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] CompileModule creates a serialized set of compilation units to represent (issue1448808)

2011-05-31 Thread zundel

Reviewers: scottb, tobyr, jbrosenberg,

Description:
CompileModule creates a serialized set of compilation units to represent
a GWT module as a module.gwt file.  This is intended to be run when
building
a library to support incremental compilation of a module.


Please review this at http://gwt-code-reviews.appspot.com/1448808/

Affected files:
  A dev/core/src/com/google/gwt/dev/CompileModule.java
  A dev/core/src/com/google/gwt/dev/CompiledGwtModule.java
  M dev/core/src/com/google/gwt/dev/Precompile.java
  M dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java
  M dev/core/src/com/google/gwt/dev/cfg/ModuleDefLoader.java
  M dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
  M  
dev/core/src/com/google/gwt/dev/util/log/speedtracer/CompilerEventType.java

  A dev/core/test/com/google/gwt/dev/CompiledGwtModuleTest.java
  M dev/core/test/com/google/gwt/dev/javac/MockCompilationUnit.java
  M user/build.xml


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Format comments to 100 columns to match code format (issue1450808)

2011-05-31 Thread pdr

I wasn't able to find that in the style guide or discussion when it was
changed. 80 code / 100 comments feels inconsistent.


On 2011/05/29 23:06:55, zundel wrote:

Leaving comments at 80 was intentional as per the style guide, I

thought.

On May 29, 2011 6:43 PM, mailto:p...@google.com wrote:
 Reviewers: zundel, rjrjr,

 Description:
 Format comments to 100 columns to match code format


 Please review this at http://gwt-code-reviews.appspot.com/1450808/

 Affected files:
 M eclipse/settings/code-style/gwt-format.xml


 Index: eclipse/settings/code-style/gwt-format.xml
 ===
 --- eclipse/settings/code-style/gwt-format.xml (revision 10241)
 +++ eclipse/settings/code-style/gwt-format.xml (working copy)
 @@ -64,7 +64,7 @@
 setting

id=org.eclipse.jdt.core.formatter.comment.indent_root_tags

 value=true/
 setting



id=org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags


 value=insert/
 setting


id=org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter

 value=do not insert/
 -setting id=org.eclipse.jdt.core.formatter.comment.line_length
 value=80/
 +setting id=org.eclipse.jdt.core.formatter.comment.line_length
 value=100/
 setting


id=org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries

 value=true/
 setting



id=org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries

 value=true/
 setting id=org.eclipse.jdt.core.formatter.compact_else_if
value=true/






http://gwt-code-reviews.appspot.com/1450808/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Added -XdisableSoycHtml command line flag for disabling HTML compile report generation. This wil... (issue1450807)

2011-05-31 Thread dconnelly

http://gwt-code-reviews.appspot.com/1450807/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Consolidates all methodDependencies files into one per split point. (issue1453802)

2011-05-31 Thread zundel

Reviewers: dconnelly,

Description:
Consolidates all methodDependencies files into one per split point.


Please review this at http://gwt-code-reviews.appspot.com/1453802/

Affected files:
  M dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java
  D eclipse/samples/Hello/Hello-compModule.launch


Index: dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java
===
--- dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java	(revision  
10241)
+++ dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java	(working  
copy)

@@ -57,7 +57,7 @@
 public String dependencyLinkForClass(String className) {
   String packageName =  
globalInformation.getClassToPackage().get(className);

   assert packageName != null;
-  return dependenciesFileName(initial, packageName) + # +  
className;

+  return dependenciesFileName(initial) + # + className;
 }
   }

@@ -355,17 +355,13 @@
   outFile.println(  function c(packageRef,classRef,packageHashRef)  
{);
   outFile.println(var packageName =  
internedStrings[packageRef];);
   outFile.println(var className = packageName + \.\ +  
internedStrings[classRef];);
-  outFile.println(var d1 = 'methodDependencies-total-' +  
internedStrings[packageHashRef] 

-  + + '- + getPermutationId() + .html';);
+  outFile.println(var d1 = 'methodDependencies-total- +  
getPermutationId() + .html';);

   outFile.println(document.write(\ul class='soyc-excl'\););
   outFile.println(document.write(\lia href='\ + d1 + \#\ +  
className + \'

   + See why it's live/a/li\););
   outFile.println(for (var sp = 1; sp = 
   + globalInformation.getNumSplitPoints() + ; sp++) {);
-  outFile.println(  var d2 = 'methodDependencies-sp' + sp + '-'  
+ 

-  + internedStrings[packageHashRef] + '- + getPermutationId()
-  + .html';);
-
+  outFile.println(  var d2 = 'methodDependencies-sp' + sp + '- +  
getPermutationId() + .html';);
   outFile.println(  document.write(\lia href='\ + d2 + \#\  
+ className +\'
   +  See why it's not exclusive to s.p. #\ + sp + \ (\ +  
spl[sp - 1] + \)

   + /a/li\););
@@ -1340,10 +1336,8 @@
   /**
* Returns a file name for the dependencies list.
*/
-  private String dependenciesFileName(String depGraphName, String  
packageName) {

-return methodDependencies- + depGraphName + -
-+ hashedFilenameFragment(packageName) + - + getPermutationId()
-+ .html;
+  private String dependenciesFileName(String depGraphName) {
+return methodDependencies- + depGraphName + - + getPermutationId()  
+ .html;

   }

   private String[] getGeneratedTypes(ModuleMetricsArtifact moduleMetrics,
@@ -1676,28 +1670,12 @@
 interner.printInternedDataAsJs(outFile);
 outFile.close();

-// Separate out the packages to write them into different HTML files.
-String packageName = ;
 ListString classesInPackage = new ArrayListString();
 for (String method : dependencies.keySet()) {
-  // this key set is already in alphabetical order
-  // get the package of this method, i.e., everything up to .[A-Z]
-  packageName = method.replaceAll(\\.\\p{Upper}.*, );
-
-  if (curPackageName.compareTo() == 0) {
-curPackageName = packageName;
-  } else if (curPackageName.compareTo(packageName) != 0) {
-makeDependenciesInternedHtml(depGraphName, curPackageName,
-classesInPackage, dependencies, interner, jsFileName);
-classesInPackage = new ArrayListString();
-curPackageName = packageName;
-  }
   classesInPackage.add(method);
 }
-if (classesInPackage.size()  0) {
-  makeDependenciesInternedHtml(depGraphName, curPackageName,
-  classesInPackage, dependencies, interner, jsFileName);
-}
+makeDependenciesInternedHtml(depGraphName,
+classesInPackage, dependencies, interner, jsFileName);
   }

   /**
@@ -1708,28 +1686,27 @@
* @throws IOException
*/
   private void makeDependenciesInternedHtml(String depGraphName,
-  String packageName, ListString classesInPackage,
+  ListString classesInSplitPoint,
   MapString, String dependencies, HtmlInterner interner, String  
jsFileName)

   throws IOException {
 String depGraphDescription = inferDepGraphDescription(depGraphName);
 PrintWriter outFile = null;
 String curClassName = ;

-String outFileName = dependenciesFileName(depGraphName, packageName);
+String outFileName = dependenciesFileName(depGraphName);
 outFile = new PrintWriter(getOutFile(outFileName));
-String packageDescription = packageName.length() == 0
-? the default package : packageName;
+
 addStandardHtmlProlog(outFile, Method Dependencies for 
 + depGraphDescription,
-Method Dependencies for  + depGraphDescription, Showing  
Package: 

-

[gwt-contrib] Re: Consolidates all methodDependencies files into one per split point. (issue1453802)

2011-05-31 Thread dconnelly


http://gwt-code-reviews.appspot.com/1453802/diff/1/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java
File dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java
(right):

http://gwt-code-reviews.appspot.com/1453802/diff/1/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java#newcode1708
dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java:1708:
boolean first = true;
what is this for? I don't see another reference to first. Is it to
replace the if (method != classisInSplitPoint.get(0)) below?

http://gwt-code-reviews.appspot.com/1453802/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Consolidates all methodDependencies files into one per split point. (issue1453802)

2011-05-31 Thread zundel


http://gwt-code-reviews.appspot.com/1453802/diff/1/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java
File dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java
(right):

http://gwt-code-reviews.appspot.com/1453802/diff/1/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java#newcode1708
dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java:1708:
boolean first = true;
On 2011/05/31 15:01:15, dconnelly wrote:

what is this for? I don't see another reference to first. Is it to

replace the

if (method != classisInSplitPoint.get(0)) below?


yes, I had a problem resolving and this is cruft I left behind.  Let me
send you a cleanup patch.

http://gwt-code-reviews.appspot.com/1453802/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] cleanups to soyc HTML report generation code. (issue1447811)

2011-05-31 Thread zundel

Reviewers: dconnelly,

Description:
cleanups to soyc HTML report generation code.


Please review this at http://gwt-code-reviews.appspot.com/1447811/

Affected files:
  M dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java


Index: dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java
===
--- dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java	(revision  
10241)
+++ dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java	(working  
copy)

@@ -54,6 +54,7 @@
* dependencies for the initial download.
*/
   public class DependencyLinkerForInitialCode implements DependencyLinker {
+@Override
 public String dependencyLinkForClass(String className) {
   String packageName =  
globalInformation.getClassToPackage().get(className);

   assert packageName != null;
@@ -66,6 +67,7 @@
* status pages.
*/
   public class DependencyLinkerForLeftoversFragment implements  
DependencyLinker {

+@Override
 public String dependencyLinkForClass(String className) {
   return leftoversStatusFileName() + #
   + hashedFilenameFragment(className);
@@ -78,6 +80,7 @@
*
*/
   public class DependencyLinkerForTotalBreakdown implements  
DependencyLinker {

+@Override
 public String dependencyLinkForClass(String className) {
   return splitStatusFileName() + # +  
hashedFilenameFragment(className);

 }
@@ -87,6 +90,7 @@
* A dependency linker that never links to anything.
*/
   public static class NullDependencyLinker implements DependencyLinker {
+@Override
 public String dependencyLinkForClass(String className) {
   return null;
 }
@@ -139,9 +143,9 @@

 /**
  * Stores a string for later interning. Keeps track of the number of  
times a
- * particular string is interned which will be used by {@link  
freeze()} to
+ * particular string is interned which will be used by {@link  
#freeze()} to

  * place the most frequently used strings at the beginning of the
- * dictionary. After a call to {@link freeze()}, it is no longer valid  
to
+ * dictionary. After a call to {@link #freeze()}, it is no longer  
valid to

  * call this method.
  *
  * @param key string to be added to the intern dictionary.
@@ -1705,7 +1709,6 @@

 // Write out the HTML
 outFile.print(script);
-boolean first = true;
 for (String method : classesInSplitPoint) {
   // this key set is already in alphabetical order
   // get the package of this method, i.e., everything up to .[A-Z]


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Adds ability to query the generator context whether a rebind rule exists for a given type (issue1450806)

2011-05-31 Thread rjrjr


http://gwt-code-reviews.appspot.com/1450806/diff/3002/dev/core/src/com/google/gwt/core/ext/GeneratorContext.java
File dev/core/src/com/google/gwt/core/ext/GeneratorContext.java (right):

http://gwt-code-reviews.appspot.com/1450806/diff/3002/dev/core/src/com/google/gwt/core/ext/GeneratorContext.java#newcode34
dev/core/src/com/google/gwt/core/ext/GeneratorContext.java:34: * likely
to succeed.
Why is the argument a string rather than, say, JClassType?

Wouldn't the second sentence would be more accurate as: is likely to
succeed for a type with no default constructor. (Any concrete type with
a zero args constructor can be instantiated via GWT.create().)

Also, it isn't GWT.create(sourceTypeName), the argument is a class
literal.

http://gwt-code-reviews.appspot.com/1450806/diff/3002/dev/core/src/com/google/gwt/dev/javac/StandardGeneratorContext.java
File dev/core/src/com/google/gwt/dev/javac/StandardGeneratorContext.java
(right):

http://gwt-code-reviews.appspot.com/1450806/diff/3002/dev/core/src/com/google/gwt/dev/javac/StandardGeneratorContext.java#newcode373
dev/core/src/com/google/gwt/dev/javac/StandardGeneratorContext.java:373:
return false;
When will there be no resolver? Should the GeneratorContext javadoc say
something about this?

http://gwt-code-reviews.appspot.com/1450806/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Change the wrapElement API to receive the id and a parent element. I also ported some of the boo... (issue1446811)

2011-05-31 Thread rjrjr

LGTM

http://gwt-code-reviews.appspot.com/1446811/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] GWT support for Chrome Frame (issue1449808)

2011-05-31 Thread fabiomfv

Reviewers: jgw, jlabanca,

Description:
GWT support for Chrome Frame
http://code.google.com/p/google-web-toolkit/issues/detail?id=5166


Please review this at http://gwt-code-reviews.appspot.com/1449808/

Affected files:
  M user/src/com/google/gwt/user/rebind/UserAgentPropertyGenerator.java


Index: user/src/com/google/gwt/user/rebind/UserAgentPropertyGenerator.java
===
--- user/src/com/google/gwt/user/rebind/UserAgentPropertyGenerator.java	 
(revision 10241)
+++ user/src/com/google/gwt/user/rebind/UserAgentPropertyGenerator.java	 
(working copy)

@@ -55,10 +55,28 @@
 .println(return (ua.indexOf('opera') != -1);)
   .returns('opera'),

-  // webkit family
+  // webkit family (chrome, safari and chromeframe).
   new UserAgentPropertyGeneratorPredicate(safari)
   .getPredicateBlock()
-.println(return (ua.indexOf('webkit') != -1);)
+.println(return ()
+  .println((ua.indexOf('webkit') != -1))
+  .println(||)
+  .println((function() {)
+.println(if (ua.indexOf('chromeframe') != -1) {)
+  .println(return true;)
+.println(})
+.println(if (typeof window['ActiveXObject'] != 'undefined')  
{)

+  .println(try {)
+.println(var obj = new  
ActiveXObject('ChromeTab.ChromeFrame');)

+.println(if (obj) {)
+  .println(obj.registerBhoIfNeeded();)
+  .println(return true;)
+.println(})
+  .println(} catch(e) { })
+.println(})
+.println(return false;)
+.println(})())
+.println())
   .returns('safari'),

   // IE9


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: GWT support for Chrome Frame (issue1449808)

2011-05-31 Thread jgw

On 2011/05/31 16:42:35, fabiomfv wrote:

LVVTGM.

http://gwt-code-reviews.appspot.com/1449808/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r10243 committed - Fix warnings in samples/expenses...

2011-05-31 Thread codesite-noreply

Revision: 10243
Author:   gwt.mirror...@gmail.com
Date: Fri May 27 11:03:45 2011
Log:  Fix warnings in samples/expenses

Review at http://gwt-code-reviews.appspot.com/1447810

Review by: jlaba...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10243

Modified:
  
/trunk/samples/expenses/src/main/java/com/google/gwt/mobile/client/TouchHandler.java
  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java
  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseTree.java
  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/MobileExpenseList.java
  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/PhaseAnimation.java
  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/SlidingPanel.java
  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/server/domain/EntityCounter.java
  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/client/GaeAuthRequestTransport.java


===
---  
/trunk/samples/expenses/src/main/java/com/google/gwt/mobile/client/TouchHandler.java	 
Tue Nov 30 12:17:15 2010
+++  
/trunk/samples/expenses/src/main/java/com/google/gwt/mobile/client/TouchHandler.java	 
Fri May 27 11:03:45 2011

@@ -415,12 +415,10 @@
   scrollOffTimer.schedule(100);
 }

-boolean firstDrag = false;
 if (!dragging) {
   if (totalMoveY  MIN_TRACKING_FOR_DRAG
   || totalMoveX  MIN_TRACKING_FOR_DRAG) {
 dragging = true;
-firstDrag = true;
 dragDelegate.onDragStart(e);
   }
 }
===
---  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java	 
Tue Apr  5 10:47:39 2011
+++  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java	 
Fri May 27 11:03:45 2011

@@ -42,7 +42,6 @@
 import com.google.gwt.i18n.client.NumberFormat;
 import com.google.gwt.resources.client.ImageResource;
 import com.google.gwt.safehtml.client.SafeHtmlTemplates;
-import com.google.gwt.safehtml.client.SafeHtmlTemplates.Template;
 import com.google.gwt.safehtml.shared.SafeHtml;
 import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
 import com.google.gwt.safehtml.shared.SafeHtmlUtils;
===
---  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseTree.java	 
Tue Apr  5 10:47:39 2011
+++  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseTree.java	 
Fri May 27 11:03:45 2011

@@ -22,7 +22,6 @@
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.dom.client.Style.Overflow;
 import com.google.gwt.safehtml.client.SafeHtmlTemplates;
-import com.google.gwt.safehtml.client.SafeHtmlTemplates.Template;
 import com.google.gwt.safehtml.shared.SafeHtml;
 import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
 import com.google.gwt.sample.expenses.client.style.Styles;
===
---  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/MobileExpenseList.java	 
Tue Apr  5 10:47:39 2011
+++  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/MobileExpenseList.java	 
Fri May 27 11:03:45 2011

@@ -18,7 +18,6 @@
 import com.google.gwt.cell.client.AbstractCell;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.safehtml.client.SafeHtmlTemplates;
-import com.google.gwt.safehtml.client.SafeHtmlTemplates.Template;
 import com.google.gwt.safehtml.shared.SafeHtml;
 import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
 import com.google.gwt.sample.expenses.shared.ExpenseProxy;
===
---  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/PhaseAnimation.java	 
Wed Aug 18 18:29:03 2010
+++  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/PhaseAnimation.java	 
Fri May 27 11:03:45 2011

@@ -59,12 +59,12 @@

 @Override
 protected T getDisplayedItem(int index) {
-  return cellList.getDisplayedItem(index);
+  return cellList.getVisibleItem(index);
 }

 @Override
 protected ListT getDisplayedItems() {
-  return cellList.getDisplayedItems();
+  return cellList.getVisibleItems();
 }

 @Override
@@ -97,12 +97,12 @@

 @Override
 protected T getDisplayedItem(int index) {
-  return cellTable.getDisplayedItem(index);
+  return cellTable.getVisibleItem(index);
 }

 @Override
 protected ListT getDisplayedItems() {
-  return cellTable.getDisplayedItems();
+  return cellTable.getVisibleItems();
 }

 @Override
===
---  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/SlidingPanel.java	 
Tue Apr  5 10:47:39 2011
+++  

[gwt-contrib] Re: cleanups to soyc HTML report generation code. (issue1447811)

2011-05-31 Thread dconnelly

LGTM

On 2011/05/31 16:06:31, zundel wrote:



http://gwt-code-reviews.appspot.com/1447811/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r10246 committed - Added -XdisableSoycHtml command line flag for disabling HTML compile r...

2011-05-31 Thread codesite-noreply

Revision: 10246
Author:   dconne...@google.com
Date: Tue May 31 04:51:05 2011
Log:  Added -XdisableSoycHtml command line flag for disabling HTML  
compile report generation. This will not affect SOYC XML output.


Review at http://gwt-code-reviews.appspot.com/1450807

Review by: zun...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10246

Added:
  
/trunk/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerDisableSoycHtml.java

 /trunk/dev/core/src/com/google/gwt/dev/util/arg/OptionSoycHtmlDisabled.java
Modified:
 /trunk/dev/core/src/com/google/gwt/dev/PrecompileTaskArgProcessor.java
 /trunk/dev/core/src/com/google/gwt/dev/PrecompileTaskOptionsImpl.java
 /trunk/dev/core/src/com/google/gwt/dev/jjs/JJSOptions.java
 /trunk/dev/core/src/com/google/gwt/dev/jjs/JJSOptionsImpl.java
 /trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java

===
--- /dev/null
+++  
/trunk/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerDisableSoycHtml.java	 
Tue May 31 04:51:05 2011

@@ -0,0 +1,53 @@
+/*
+ * Copyright 2009 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.dev.util.arg;
+
+import com.google.gwt.util.tools.ArgHandlerFlag;
+
+/**
+ * An ArgHandler that enables detailed Story Of Your Compile data  
collection,

+ * but disables HTML report generation, leaving only XML output.
+ *
+ */
+public class ArgHandlerDisableSoycHtml extends ArgHandlerFlag {
+  private final OptionSoycHtmlDisabled options;
+
+  public ArgHandlerDisableSoycHtml(OptionSoycHtmlDisabled options) {
+this.options = options;
+  }
+
+  @Override
+  public String getPurpose() {
+return Enable SOYC reporting without HTML report generation.;
+  }
+
+  @Override
+  public String getTag() {
+return -XdisableSoycHtml;
+  }
+
+  @Override
+  public boolean isUndocumented() {
+return true;
+  }
+
+  @Override
+  public boolean setFlag() {
+options.setSoycHtmlDisabled(true);
+options.setSoycEnabled(true);
+return true;
+  }
+}
===
--- /dev/null
+++  
/trunk/dev/core/src/com/google/gwt/dev/util/arg/OptionSoycHtmlDisabled.java	 
Tue May 31 04:51:05 2011

@@ -0,0 +1,42 @@
+/*
+ * Copyright 2009 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.dev.util.arg;
+
+/**
+ * Option for disabling SOYC HTML report generation
+ */
+public interface OptionSoycHtmlDisabled extends  
OptionCompilerMetricsEnabled {

+
+
+  /**
+   * Returns false if the compiler should produce HTML SOYC compile  
reports in

+   * addition to XML reports.
+   */
+  boolean isSoycHtmlDisabled();
+
+  /**
+   * Sets whether or not the compiler should record and emit Compile Report
+   * information and build the dashboard.
+   */
+  void setSoycEnabled(boolean enabled);
+
+  /**
+   * Sets whether or not the compiler should produce HTML compile reports  
in

+   * addition to SOYC XML output.
+   */
+  void setSoycHtmlDisabled(boolean disabled);
+
+}
===
--- /trunk/dev/core/src/com/google/gwt/dev/PrecompileTaskArgProcessor.java	 
Thu May 26 07:33:13 2011
+++ /trunk/dev/core/src/com/google/gwt/dev/PrecompileTaskArgProcessor.java	 
Tue May 31 04:51:05 2011

@@ -23,6 +23,7 @@
 import com.google.gwt.dev.util.arg.ArgHandlerDisableClassMetadata;
 import com.google.gwt.dev.util.arg.ArgHandlerDisableGeneratingOnShards;
 import com.google.gwt.dev.util.arg.ArgHandlerDisableRunAsync;
+import com.google.gwt.dev.util.arg.ArgHandlerDisableSoycHtml;
 import com.google.gwt.dev.util.arg.ArgHandlerDisableUpdateCheck;
 import com.google.gwt.dev.util.arg.ArgHandlerDraftCompile;
 import com.google.gwt.dev.util.arg.ArgHandlerDumpSignatures;
@@ -58,6 +59,7 @@
 registerHandler(new ArgHandlerSoycDetailed(options));
 registerHandler(new ArgHandlerStrict(options));
 registerHandler(new ArgHandlerCompilerMetrics(options));

[gwt-contrib] [google-web-toolkit] r10247 committed - Consolidates all methodDependencies files into one per split point....

2011-05-31 Thread codesite-noreply

Revision: 10247
Author:   zun...@google.com
Date: Tue May 31 04:59:43 2011
Log:  Consolidates all methodDependencies files into one per split  
point.


Review at http://gwt-code-reviews.appspot.com/1453802

Review by: dconne...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10247

Modified:
 /trunk/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java

===
--- /trunk/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java	 
Thu May 26 09:07:47 2011
+++ /trunk/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java	 
Tue May 31 04:59:43 2011

@@ -57,7 +57,7 @@
 public String dependencyLinkForClass(String className) {
   String packageName =  
globalInformation.getClassToPackage().get(className);

   assert packageName != null;
-  return dependenciesFileName(initial, packageName) + # +  
className;

+  return dependenciesFileName(initial) + # + className;
 }
   }

@@ -355,17 +355,13 @@
   outFile.println(  function c(packageRef,classRef,packageHashRef)  
{);
   outFile.println(var packageName =  
internedStrings[packageRef];);
   outFile.println(var className = packageName + \.\ +  
internedStrings[classRef];);
-  outFile.println(var d1 = 'methodDependencies-total-' +  
internedStrings[packageHashRef] 

-  + + '- + getPermutationId() + .html';);
+  outFile.println(var d1 = 'methodDependencies-total- +  
getPermutationId() + .html';);

   outFile.println(document.write(\ul class='soyc-excl'\););
   outFile.println(document.write(\lia href='\ + d1 + \#\ +  
className + \'

   + See why it's live/a/li\););
   outFile.println(for (var sp = 1; sp = 
   + globalInformation.getNumSplitPoints() + ; sp++) {);
-  outFile.println(  var d2 = 'methodDependencies-sp' + sp + '-'  
+ 

-  + internedStrings[packageHashRef] + '- + getPermutationId()
-  + .html';);
-
+  outFile.println(  var d2 = 'methodDependencies-sp' + sp + '- +  
getPermutationId() + .html';);
   outFile.println(  document.write(\lia href='\ + d2 + \#\  
+ className +\'
   +  See why it's not exclusive to s.p. #\ + sp + \ (\ +  
spl[sp - 1] + \)

   + /a/li\););
@@ -1340,10 +1336,8 @@
   /**
* Returns a file name for the dependencies list.
*/
-  private String dependenciesFileName(String depGraphName, String  
packageName) {

-return methodDependencies- + depGraphName + -
-+ hashedFilenameFragment(packageName) + - + getPermutationId()
-+ .html;
+  private String dependenciesFileName(String depGraphName) {
+return methodDependencies- + depGraphName + - + getPermutationId()  
+ .html;

   }

   private String[] getGeneratedTypes(ModuleMetricsArtifact moduleMetrics,
@@ -1676,28 +1670,12 @@
 interner.printInternedDataAsJs(outFile);
 outFile.close();

-// Separate out the packages to write them into different HTML files.
-String packageName = ;
 ListString classesInPackage = new ArrayListString();
 for (String method : dependencies.keySet()) {
-  // this key set is already in alphabetical order
-  // get the package of this method, i.e., everything up to .[A-Z]
-  packageName = method.replaceAll(\\.\\p{Upper}.*, );
-
-  if (curPackageName.compareTo() == 0) {
-curPackageName = packageName;
-  } else if (curPackageName.compareTo(packageName) != 0) {
-makeDependenciesInternedHtml(depGraphName, curPackageName,
-classesInPackage, dependencies, interner, jsFileName);
-classesInPackage = new ArrayListString();
-curPackageName = packageName;
-  }
   classesInPackage.add(method);
 }
-if (classesInPackage.size()  0) {
-  makeDependenciesInternedHtml(depGraphName, curPackageName,
-  classesInPackage, dependencies, interner, jsFileName);
-}
+makeDependenciesInternedHtml(depGraphName,
+classesInPackage, dependencies, interner, jsFileName);
   }

   /**
@@ -1708,28 +1686,27 @@
* @throws IOException
*/
   private void makeDependenciesInternedHtml(String depGraphName,
-  String packageName, ListString classesInPackage,
+  ListString classesInSplitPoint,
   MapString, String dependencies, HtmlInterner interner, String  
jsFileName)

   throws IOException {
 String depGraphDescription = inferDepGraphDescription(depGraphName);
 PrintWriter outFile = null;
 String curClassName = ;

-String outFileName = dependenciesFileName(depGraphName, packageName);
+String outFileName = dependenciesFileName(depGraphName);
 outFile = new PrintWriter(getOutFile(outFileName));
-String packageDescription = packageName.length() == 0
-? the default package : packageName;
+
 addStandardHtmlProlog(outFile, Method Dependencies for 
 + depGraphDescription,
-Method Dependencies for  + depGraphDescription, Showing  

[gwt-contrib] [google-web-toolkit] r10248 committed - Reintroduces JsInliner patch (3rd time is a charm?). Fix for issue 57...

2011-05-31 Thread codesite-noreply

Revision: 10248
Author:   gwt.mirror...@gmail.com
Date: Tue May 31 10:42:42 2011
Log:  Reintroduces JsInliner patch (3rd time is a charm?).  Fix for  
issue 5707.

With minor tweaks to Ray Cromwell's original version of this patch.

Review at http://gwt-code-reviews.appspot.com/1451802

Review by: cromwell...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10248

Modified:
 /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java
 /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java

===
--- /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java	Mon Mar 14  
12:59:51 2011
+++ /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java	Tue May 31  
10:42:42 2011

@@ -612,10 +612,25 @@
 private boolean maintainsOrder = true;
 private final ListJsName toEvaluate;
 private final ListJsName unevaluated;
-
-public EvaluationOrderVisitor(ListJsName toEvaluate) {
+private final SetJsName paramsOrLocals = new HashSetJsName();
+
+public EvaluationOrderVisitor(ListJsName toEvaluate, JsFunction  
callee) {

   this.toEvaluate = toEvaluate;
   this.unevaluated = new ArrayListJsName(toEvaluate);
+  // collect params and locals from callee function
+  new JsVisitor() {
+@Override
+public void endVisit(JsParameter x, JsContext ctx) {
+  paramsOrLocals.add(x.getName());
+}
+
+@Override
+public boolean visit(JsVar x, JsContext ctx) {
+  // record this before visiting initializer
+  paramsOrLocals.add(x.getName());
+  return true;
+}
+  }.accept(callee);
 }

 @Override
@@ -670,12 +685,7 @@
  */
 @Override
 public void endVisit(JsInvocation x, JsContext ctx) {
-  /*
-   * The check for isExecuteOnce() is potentially incorrect here,  
however

-   * the original Java semantics of the clinit would have made the code
-   * incorrect anyway.
-   */
-  if ((isExecuteOnce(x) == null)  unevaluated.size()  0) {
+  if (unevaluated.size()  0) {
 maintainsOrder = false;
   }
 }
@@ -709,11 +719,35 @@
   return maintainsOrder  unevaluated.size() == 0;
 }

+/**
+ * Check to see if the evaluation of this JsName will break program  
order assumptions given

+ * the parameters left to be substituted.
+ *
+ * The cases are as follows:
+ * 1) JsName is a function parameter name which has side effects or is  
affected by side effects

+ * (hereafter called 'volatile'), so it will be in 'toEvaluate'
+ * 2) JsName is a function parameter which is not volatile (not in  
toEvaluate)

+ * 3) JsName is a reference to a global variable
+ * 4) JsName is a reference to a local variable
+ *
+ * A reference to a global while there are still parameters left to  
evaluate / substitute

+ * implies an order violation.
+ *
+ * A reference to a volatile parameter is ok if it is the next  
parameter in sequence to
+ * be evaluated (beginning of unevaluated list). Else, it is either  
being evaluated out of
+ * order with respect to other parameters, or it is being evaluated  
more than once.

+ */
 private void checkName(JsName name) {
   if (!toEvaluate.contains(name)) {
+// if the name is a non-local/non-parameter (e.g. global) and  
there are params left to eval

+if (!paramsOrLocals.contains(name)  unevaluated.size()  0) {
+  maintainsOrder = false;
+}
+// else this may be a local, or all volatile params have already  
been evaluated, so it's ok.

 return;
   }

+  // either this param is being evaled twice, or out of order
   if (unevaluated.size() == 0 || !unevaluated.remove(0).equals(name)) {
 maintainsOrder = false;
   }
@@ -1614,7 +1648,7 @@
* code to be inlined, but at a cost of larger JS output.
*/
   private static final double MAX_COMPLEXITY_INCREASE =  
Double.parseDouble(System.getProperty(

-  gwt.jsinlinerRatio, 5.0));
+  gwt.jsinlinerRatio, 1.7));

   /**
* Static entry point used by JavaToJavaScriptCompiler.
@@ -1934,7 +1968,7 @@
* order.
*/
   EvaluationOrderVisitor orderVisitor = new EvaluationOrderVisitor(
-  requiredOrder);
+  requiredOrder, callee);
   orderVisitor.accept(toInline);
   if (!orderVisitor.maintainsOrder()) {
 return false;
===
--- /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java	Mon Mar  
14 12:59:51 2011
+++ /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java	Tue May  
31 10:42:42 2011

@@ -83,6 +83,120 @@
 + function c1() { return ex2 ? a1() :c1(); } c1();
 compare(expected, input);
   }
+
+  /**
+   * Test that a global array reference breaks argument ordering.
+   */
+  public void testOrderingArrayGlobal() throws Exception {
+StringBuffer code = new 

[gwt-contrib] [google-web-toolkit] r10249 committed - IsRenderable should not extend SafeHtmlRenderer anymore....

2011-05-31 Thread codesite-noreply

Revision: 10249
Author:   rdcas...@google.com
Date: Tue May 31 07:26:19 2011
Log:  IsRenderable should not extend SafeHtmlRenderer anymore.

Review at http://gwt-code-reviews.appspot.com/1446811

http://code.google.com/p/google-web-toolkit/source/detail?r=10249

Modified:
 /trunk/user/src/com/google/gwt/user/client/ui/IsRenderable.java

===
--- /trunk/user/src/com/google/gwt/user/client/ui/IsRenderable.java	Mon May  
23 17:23:56 2011
+++ /trunk/user/src/com/google/gwt/user/client/ui/IsRenderable.java	Tue May  
31 07:26:19 2011

@@ -16,7 +16,8 @@
 package com.google.gwt.user.client.ui;

 import com.google.gwt.dom.client.Element;
-import com.google.gwt.text.shared.SafeHtmlRenderer;
+import com.google.gwt.safehtml.shared.SafeHtml;
+import com.google.gwt.safehtml.shared.SafeHtmlBuilder;

 /**
  * An interface for UI elements that can be built by first generating a  
piece

@@ -26,7 +27,25 @@
  * API is likely to change. Very likely. In fact, it will definitely  
change.

  * You've been warned.
  */
-public interface IsRenderable extends SafeHtmlRendererString {
+public interface IsRenderable {
+
+  /**
+   * Perform any initialization needed when the widget is not attached to
+   * the document. Assumed to be called after {@link #wrapElement}.
+   */
+  void performDetachedInitialization();
+
+  /**
+   * @see #render(String, SafeHtmlBuilder)
+   * TODO(rdcastro): Remove this once UiBinder doesn't rely on it anymore.
+   */
+  SafeHtml render(String id);
+
+  /**
+   * Tells this object to render itself as HTML and append it to the given  
builder.

+   * The root element of the HTML must be identifies by the given id.
+   */
+  void render(String id, SafeHtmlBuilder builder);

   /**
* Replace the previous contents of the receiver with the given element,
@@ -34,10 +53,4 @@
* Assumes the element is attached to the document.
*/
   void wrapElement(Element element);
-
-  /**
-   * Perform any initialization needed when the widget is not attached to
-   * the document. Assumed to be called after {@link #wrapElement}.
-   */
-  void performDetachedInitialization();
-}
+}

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r10250 committed - GWT support for Chrome Frame...

2011-05-31 Thread codesite-noreply

Revision: 10250
Author:   fabio...@google.com
Date: Tue May 31 07:28:25 2011
Log:  GWT support for Chrome Frame
http://code.google.com/p/google-web-toolkit/issues/detail?id=5166

Review at http://gwt-code-reviews.appspot.com/1449808

http://code.google.com/p/google-web-toolkit/source/detail?r=10250

Modified:
 /trunk/user/src/com/google/gwt/user/rebind/UserAgentPropertyGenerator.java

===
---  
/trunk/user/src/com/google/gwt/user/rebind/UserAgentPropertyGenerator.java	 
Thu Mar 10 03:46:43 2011
+++  
/trunk/user/src/com/google/gwt/user/rebind/UserAgentPropertyGenerator.java	 
Tue May 31 07:28:25 2011

@@ -55,10 +55,28 @@
 .println(return (ua.indexOf('opera') != -1);)
   .returns('opera'),

-  // webkit family
+  // webkit family (chrome, safari and chromeframe).
   new UserAgentPropertyGeneratorPredicate(safari)
   .getPredicateBlock()
-.println(return (ua.indexOf('webkit') != -1);)
+.println(return ()
+  .println((ua.indexOf('webkit') != -1))
+  .println(||)
+  .println((function() {)
+.println(if (ua.indexOf('chromeframe') != -1) {)
+  .println(return true;)
+.println(})
+.println(if (typeof window['ActiveXObject'] != 'undefined')  
{)

+  .println(try {)
+.println(var obj = new  
ActiveXObject('ChromeTab.ChromeFrame');)

+.println(if (obj) {)
+  .println(obj.registerBhoIfNeeded();)
+  .println(return true;)
+.println(})
+  .println(} catch(e) { })
+.println(})
+.println(return false;)
+.println(})())
+.println())
   .returns('safari'),

   // IE9

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Issue 5166 in google-web-toolkit: Add GWT support for Google Chrome Frame

2011-05-31 Thread codesite-noreply

Updates:
Summary: Add GWT support for Google Chrome Frame
Cc: google-w...@googlegroups.com

Comment #6 on issue 5166 by fabio...@google.com: Add GWT support for Google  
Chrome Frame

http://code.google.com/p/google-web-toolkit/issues/detail?id=5166

(No comment was entered for this change.)

--
You received this message because you were CC'd on the issue.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Reply to this email to add a comment.

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r10251 committed - cleanups to soyc HTML report generation code....

2011-05-31 Thread codesite-noreply

Revision: 10251
Author:   gwt.mirror...@gmail.com
Date: Tue May 31 08:05:59 2011
Log:  cleanups to soyc HTML report generation code.

Review at http://gwt-code-reviews.appspot.com/1447811

Review by: dconne...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10251

Modified:
 /trunk/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java

===
--- /trunk/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java	 
Tue May 31 04:59:43 2011
+++ /trunk/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java	 
Tue May 31 08:05:59 2011

@@ -54,6 +54,7 @@
* dependencies for the initial download.
*/
   public class DependencyLinkerForInitialCode implements DependencyLinker {
+@Override
 public String dependencyLinkForClass(String className) {
   String packageName =  
globalInformation.getClassToPackage().get(className);

   assert packageName != null;
@@ -66,6 +67,7 @@
* status pages.
*/
   public class DependencyLinkerForLeftoversFragment implements  
DependencyLinker {

+@Override
 public String dependencyLinkForClass(String className) {
   return leftoversStatusFileName() + #
   + hashedFilenameFragment(className);
@@ -78,6 +80,7 @@
*
*/
   public class DependencyLinkerForTotalBreakdown implements  
DependencyLinker {

+@Override
 public String dependencyLinkForClass(String className) {
   return splitStatusFileName() + # +  
hashedFilenameFragment(className);

 }
@@ -87,6 +90,7 @@
* A dependency linker that never links to anything.
*/
   public static class NullDependencyLinker implements DependencyLinker {
+@Override
 public String dependencyLinkForClass(String className) {
   return null;
 }
@@ -139,9 +143,9 @@

 /**
  * Stores a string for later interning. Keeps track of the number of  
times a
- * particular string is interned which will be used by {@link  
freeze()} to
+ * particular string is interned which will be used by {@link  
#freeze()} to

  * place the most frequently used strings at the beginning of the
- * dictionary. After a call to {@link freeze()}, it is no longer valid  
to
+ * dictionary. After a call to {@link #freeze()}, it is no longer  
valid to

  * call this method.
  *
  * @param key string to be added to the intern dictionary.
@@ -1705,7 +1709,6 @@

 // Write out the HTML
 outFile.print(script);
-boolean first = true;
 for (String method : classesInSplitPoint) {
   // this key set is already in alphabetical order
   // get the package of this method, i.e., everything up to .[A-Z]

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: UnifyAst (issue1451804)

2011-05-31 Thread zundel


http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/JDeclaredType.java
File dev/core/src/com/google/gwt/dev/jjs/ast/JDeclaredType.java (right):

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/JDeclaredType.java#newcode248
dev/core/src/com/google/gwt/dev/jjs/ast/JDeclaredType.java:248: if
(getClass().desiredAssertionStatus()) {
Seems like you could have implemented your assertion in a separate
method (like you did for the static versionof JType.replaces()) and
then the resolve() method just turns into a single assertion and copying
two lists.

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/JGwtCreate.java
File dev/core/src/com/google/gwt/dev/jjs/ast/JGwtCreate.java (right):

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/JGwtCreate.java#newcode58
dev/core/src/com/google/gwt/dev/jjs/ast/JGwtCreate.java:58: // TODO:
replace with BinaryName.toSourceName(type.getName())?
Not that it is functionally any different, but yes I think we should go
ahead and do it.  If we ever decide to fix the 'allow $ in java name'
consolidating references to a single method will help.

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/JNameOf.java
File dev/core/src/com/google/gwt/dev/jjs/ast/JNameOf.java (right):

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/JNameOf.java#newcode52
dev/core/src/com/google/gwt/dev/jjs/ast/JNameOf.java:52: if (node
instanceof JType) {
again, a separate method to run 'replaces' might make this simpler.

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/JNameOf.java#newcode59
dev/core/src/com/google/gwt/dev/jjs/ast/JNameOf.java:59: assert false :
Should not get here;
How about Cannot resolve unexpected node type

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/js/JsniMethodRef.java
File dev/core/src/com/google/gwt/dev/jjs/ast/js/JsniMethodRef.java
(right):

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/js/JsniMethodRef.java#newcode62
dev/core/src/com/google/gwt/dev/jjs/ast/js/JsniMethodRef.java:62: assert
jsoType.getName().equals(com.google.gwt.core.client.JavaScriptObject);
shouldn't com.google.gwt.core.client.JavaScriptObject be a constant
somewhere?  It appears at least twice in this patch.

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java
File dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java (right):

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java#newcode505
dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java:505:
JArrayType arrayType = program.getTypeArray(JPrimitiveType.INT);
Is this change related to code stitching?

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java
File dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java
(right):

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java#newcode2761
dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java:2761: public
static boolean ENABLED =
System.getProperties().containsKey(x.gwt.astBuilder);
why prefix with 'x'?  Isn't an undocumented java system property obscure
enough for you? :-)

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java
File dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java (right):

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java#newcode465
dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java:465: private
static final SetString MAGIC_METHOD_CALLS = new
LinkedHashSetString(Arrays.asList(
Is Magic really the right terminology?  I usually see these kinds of
methods called 'built-ins'

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java#newcode477
dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java:477: private
final SetJDeclaredType instantiated = new
IdentityHashSetJDeclaredType();
document 'instantiated'.  Too similar to 'seen' for casual reading.

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java#newcode485
dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java:485: private
final SetJNode seen = new IdentityHashSetJNode();
document 'seen'.  Too similar to 'instantiated' for casual reading.

http://gwt-code-reviews.appspot.com/1451804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java#newcode497
dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java:497:
this.classFileMap = rpo.getCompilationState().getClassFileMap();
do you need to keep this as 

[gwt-contrib] Re: Adds ability to query the generator context whether a rebind rule exists for a given type (issue1450806)

2011-05-31 Thread jbrosenberg

http://gwt-code-reviews.appspot.com/1450806/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Adds ability to query the generator context whether a rebind rule exists for a given type (issue1450806)

2011-05-31 Thread jbrosenberg


http://gwt-code-reviews.appspot.com/1450806/diff/3002/dev/core/src/com/google/gwt/core/ext/GeneratorContext.java
File dev/core/src/com/google/gwt/core/ext/GeneratorContext.java (right):

http://gwt-code-reviews.appspot.com/1450806/diff/3002/dev/core/src/com/google/gwt/core/ext/GeneratorContext.java#newcode34
dev/core/src/com/google/gwt/core/ext/GeneratorContext.java:34: * likely
to succeed.
On 2011/05/31 16:27:01, rjrjr wrote:

Why is the argument a string rather than, say, JClassType?



Since this method will be called from within a generator, there may not
be a valid JClassType from type oracle (but we can check for the
availability of a rebind rule, by sourceTypeName, which is how they are
expressed in rebind rules).  The actual type might come into existence
after the current (and other) generators complete.


Wouldn't the second sentence would be more accurate as: is likely to

succeed

for a type with no default constructor. (Any concrete type with a zero

args

constructor can be instantiated via GWT.create().)



Can't really check whether a concrete type with a zero args constructor
might be available, since it might only come into being after other
generators run.


Also, it isn't GWT.create(sourceTypeName), the argument is a class

literal.

Good point.  I've removed references to GWT.create() altogether in the
javadoc.

http://gwt-code-reviews.appspot.com/1450806/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Adds ability to query the generator context whether a rebind rule exists for a given type (issue1450806)

2011-05-31 Thread Ray Ryan
LGTM

On Tue, May 31, 2011 at 1:39 PM, jbrosenb...@google.com wrote:



 http://gwt-code-reviews.appspot.com/1450806/diff/3002/dev/core/src/com/google/gwt/core/ext/GeneratorContext.java
 File dev/core/src/com/google/gwt/core/ext/GeneratorContext.java (right):


 http://gwt-code-reviews.appspot.com/1450806/diff/3002/dev/core/src/com/google/gwt/core/ext/GeneratorContext.java#newcode34
 dev/core/src/com/google/gwt/core/ext/GeneratorContext.java:34: * likely
 to succeed.
 On 2011/05/31 16:27:01, rjrjr wrote:

 Why is the argument a string rather than, say, JClassType?



 Since this method will be called from within a generator, there may not
 be a valid JClassType from type oracle (but we can check for the
 availability of a rebind rule, by sourceTypeName, which is how they are
 expressed in rebind rules).  The actual type might come into existence
 after the current (and other) generators complete.


  Wouldn't the second sentence would be more accurate as: is likely to

 succeed

 for a type with no default constructor. (Any concrete type with a zero

 args

 constructor can be instantiated via GWT.create().)



 Can't really check whether a concrete type with a zero args constructor
 might be available, since it might only come into being after other
 generators run.


  Also, it isn't GWT.create(sourceTypeName), the argument is a class

 literal.

 Good point.  I've removed references to GWT.create() altogether in the
 javadoc.


 http://gwt-code-reviews.appspot.com/1450806/


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Add SafeUri type, similar to SafeHtml but for values in a URL attribute context. (issue1380806)

2011-05-31 Thread Christoph Kern
On Tue, May 3, 2011 at 09:17, t.bro...@gmail.com wrote:

 On 2011/05/03 16:11:37, xtof wrote:


 http://gwt-code-reviews.appspot.com/1380806/diff/28033/user/src/com/google/gwt/safehtml/shared/SafeUri.java

 File user/src/com/google/gwt/safehtml/shared/SafeUri.java (right):




 http://gwt-code-reviews.appspot.com/1380806/diff/28033/user/src/com/google/gwt/safehtml/shared/SafeUri.java#newcode41

 user/src/com/google/gwt/safehtml/shared/SafeUri.java:41: * context in

 which the

 URL is used matters too (link {@code href} vs. image
 On 2011/05/02 18:57:13, skybrian wrote:
  This sounds somewhat dangerous, actually. It seems like if context

 matters,

  either each context should have its own type, or creators of SafeUrl

 instances

  should stick to the lowest common denominator.
 
  The reason is that the code creating a SafeUrl instance might be far

 removed

  from the code that uses it. If the creator believes that a URL will

 be used in

  iframe context, but actually it isn't, then reviewers cannot find

 the problem

  without having an end-to-end understanding of the program's data

 flow, and any

  refactoring of intermediate code has the potential to introduce a

 bug without

 a
  type error and without the reviewers seeing anything wrong.
 
  It seems like the whole point of having safe types with clear

 contracts is

 make
  sure that local reviews are sufficient to guarantee safety?
 
  I hate the complexity this is likely to introduce, but on the other

 hand, a

  SafeUrl type that isn't actually safe doesn't sound so great either.


  I think I agree with Brian on this one.  Can we specify the contract

 such that a

 SafeUri is safe to use in any of these contexts (at the expense of

 being overly

 restrictive, for e.g. img src URIs)?  If not, I think we need to

 introduces

 separate types.  Otherwise we'll loose the local revieability benefit

 of the

 SafeXyz types.


 If that's the only point left, can you make the edit yourself before
 submitting? (as, while I agree, I don't know what to say exactly here)
 Otherwise, if there are other comments requiring a new patchset, then
 I'll try to address this one at the same time.


My apologies dropping the response on this thread (I'd missed the last
question and had assumed this was good to submit).

Also, I didn't realize that I actually need to fetch and submit this patch
(I'm not part of GWT team proper and wasn't familiar with the process for
changes from external developers).  I've now grabbed your latest patch set
and will prepare it for commit (I'm making a few minor fixes to make
extended presubmit tests pass).  I'll post an updated patch set for your
final review shortly.

With respect to the question about the SafeUri docs: I've changed the
relevant paragraphs to,

 * p
 * All implementing classes must maintain the class invariant (by design and
 * implementation and/or convention of use), that invoking {@link
#asString()}
 * on any instance will return a string that is safe to assign to a
URL-typed
 * DOM or CSS property in a browser (or to use similarly in a URL
context), in
 * the sense that doing so must not cause unintended execution of script in
the
 * browser.
 *
 * p
 * In determining safety of a URL both the value itself as well as its
 * provenance matter. An arbitrary URI, including e.g. a
 * codejavascript:/code URI, can be deemed safe in the sense of this
type's
 * contract if it is entirely under the program's control (e.g., a string
 * literal, {@see UriUtils#fromSafeConstant}).

Sound good?

Note:  UriUtils#fromSafeConstant doesn't exist in the current patch, but I
think it should; analogous to SafeHtmlUtils#fromSafeConstant.  This would
allow developers to concisely write,
SafeUri voidJs = UriUtils.fromSafeConstant(javascript:void(0));
and similar.

Unless there are objections I'll add it; the implementation of
fromSafeConstant would be the exact same as fromTrustedString; however its
use signifies that its value is supposed to be a compile time constant,
whereas fromTrustedString may be passed a value that depends on user input,
but is somehow (though not trivially) known to be safe.   We shouldn't be
worried to see many fromSafeConstant(literal) uses in a program, but
should be worried if we see a lot of fromTrustedString ones (which would
have to be carefully manually reviewed, and if there's lots of uses it may
be an indication that a special case sanitizer is needed.


Again, sorry for letting this sit for several weeks :/

--xtof



 TIA


 http://gwt-code-reviews.appspot.com/1380806/


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Add SafeUri type, similar to SafeHtml but for values in a URL attribute context. (issue1380806)

2011-05-31 Thread t . broyer

On 2011/05/31 23:38:17, xtof wrote:

My apologies dropping the response on this thread (I'd missed the last
question and had assumed this was good to submit).



Also, I didn't realize that I actually need to fetch and submit this

patch

(I'm not part of GWT team proper and wasn't familiar with the process

for

changes from external developers).


No problem.

Otherwise, proposed changes SGTM.


http://gwt-code-reviews.appspot.com/1380806/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Convert samples/mobilewebapp to use maven. This paves the way to converting the sample to use GI... (issue1450809)

2011-05-31 Thread rjrjr

Reviewers: jlabanca, drfibonacci, rchandia,

Description:
Convert samples/mobilewebapp to use maven. This paves the way to
converting the sample to use GIN and Objectify.

mvn gwt:run works as expected, and importing into eclipse as a maven
project works fine too. README-MAVEN.txt includes instructions for
working against gwt source.

This change is not as big as it looks. 99% of the adds and deletes are
actually simple moves, without even a package name change -- Maven is
happiest when source lives at src/main/java rather than right in
src/main.

Also, there appears to be no need for src/dev. The AppCacheLinker is
working just fine in src/main/java along with all its little friends.

One big caveat: DataNucleus intrumentation is not working from the
command line, though it is working in eclipse. This doesn't seem worth
fixing since we want to switch to Objectify very soon.


Please review this at http://gwt-code-reviews.appspot.com/1450809/

Affected files:
  D eclipse/samples/MobileWebApp/.checkstyle
  D eclipse/samples/MobileWebApp/.classpath
  D eclipse/samples/MobileWebApp/.project
  D  
eclipse/samples/MobileWebApp/.settings/com.google.appengine.eclipse.core.prefs

  D eclipse/samples/MobileWebApp/.settings/com.google.gdt.eclipse.core.prefs
  A samples/mobilewebapp/README-MAVEN.txt
  D samples/mobilewebapp/README.txt
  M samples/mobilewebapp/build.xml
  A samples/mobilewebapp/pom.xml
  D  
samples/mobilewebapp/src/dev/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java

  D samples/mobilewebapp/src/main/META-INF/jdoconfig.xml
  D samples/mobilewebapp/src/main/META-INF/persistence.xml
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/GaeRequest.gwt.xml
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/client/GaeAuthRequestTransport.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/client/GaeAuthenticationFailureEvent.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/client/ReloadOnAuthenticationFailure.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/server/GaeAuthFilter.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/shared/GaeHelper.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/FormFactor.gwt.xml
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/App.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/ClientFactory.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/ClientFactoryImpl.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/ClientFactoryImplMobile.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/ClientFactoryImplTablet.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/MobileWebApp.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/MobileWebAppShell.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/Provider.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/ProvidesPresenter.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/TaskProxyLocalStorage.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/AppActivityMapper.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskEditActivity.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskEditView.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskListActivity.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskListView.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskReadView.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskEditView.css
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskEditView.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskEditView.ui.xml
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskListView.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskListView.ui.xml
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskReadView.java
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskReadView.ui.xml
  D  
samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/MainMenuCellList.css
  D  

  1   2   >