Re: How to learn use GWT

2011-05-20 Thread MD Bruno
Thank much.
I will try best to learn , thanhk 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.



Re: GWT Designer

2011-05-20 Thread François Bacconnet
Thank you very much Eric for your support!

It worked fine just by trying one more time. 

The Ways of TCP/IP are Inscrutable :) 
Maybe my slow connection (1Mbit/s DL max) is to blame. (Orange France is my 
prov.)

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



Strange gwt compile error: JPrimitiveType JReferenceType

2011-05-20 Thread Raphael André Bauer
Hi GWTlist,


we are getting a strange compile exception and we are not sure where
it comes from. The project is
up and running for months now, but out of a sudden stopped working...
Maybe somebody knows something like that (there is an issue [1] here,
but I am not sure if it's related).

Does anybody have a good starting point to get to the root of the
problem? At the end it seems we or
any 3rd party library we are using is causing the problem. But the
stacktrace does not give any
exact information on that. Stacktrace is attached below.

Any help appreciated...

Thanks,


Raphael

[1] http://code.google.com/p/google-web-toolkit/issues/detail?id=2478




[INFO]Compiling 18 permutations
[INFO]   Compiling permutation 0...
[INFO]   Process output
[INFO]  Compiling
[INFO] Compiling permutation 1...
[INFO]   [ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected
error during visit.
[INFO]  at 
com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:108)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:277)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:266)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:115)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse(JBinaryOperation.java:82)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:362)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:274)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:266)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:115)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JWhileStatement.traverse(JWhileStatement.java:44)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:337)
[INFO]  at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:362)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:274)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:136)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:132)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:362)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:274)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:266)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:329)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:297)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:337)
[INFO]  at com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:80)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:362)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:288)
[INFO]  at com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1124)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:362)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:274)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:266)
[INFO]  at 
com.google.gwt.dev.jjs.impl.EqualityNormalizer.execImpl(EqualityNormalizer.java:223)
[INFO]  at 
com.google.gwt.dev.jjs.impl.EqualityNormalizer.exec(EqualityNormalizer.java:208)
[INFO]  at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:302)
[INFO]  at 
com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(UnifiedAst.java:136)
[INFO]  at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:192)
[INFO]  at 
com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:49)
[INFO]  at 
com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:73)
[INFO]  at java.lang.Thread.run(Thread.java:680)
[INFO] Caused by: java.lang.ClassCastException:
com.google.gwt.dev.jjs.ast.JPrimitiveType cannot be cast to
com.google.gwt.dev.jjs.ast.JReferenceType
[INFO]  at 
com.google.gwt.dev.jjs.impl.EqualityNormalizer$BreakupAssignOpsVisitor.endVisit(EqualityNormalizer.java:85)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse(JBinaryOperation.java:84)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:362)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:274)
[INFO]  ... 38 more
[INFO]  [ERROR] at Base64Coder.java(73): in[iLen - 1] == '='
[INFO]   

Re: Issue in method anonymous class in GWT

2011-05-20 Thread ankit
thanks Juan for ur reply.i have one thread only as GWT is
single threaded. but i need to run the anonymous class method when the
called method runs heres my sample code of the problem

public void model(){
System.out.println(This line is executing);

   DataListModel model = new DataListModel() {
public void setRecords(List records) {
System.out.println(I see this line after model() executes
completely);
int i = 0;
records = new LinkedList(records);
}
}
System.out.println(this line is executed without executing
DataListModel.setRecords());
}

i get setRecords() output after model() executes completely. but in my
project, i have to run anonymous class SetRecords() while model()
executes..hope u understand my problem Juan.plss reply
me as soon as possible Juan
On May 17, 5:16 am, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 In gwt app you only have 1 thread. In swing you queue this actions in EDT
 thread. How do you manage this?

 2011/5/16 ankit ankitsaxena0...@gmail.com







  i am making a GWT framework similar to Swing framework. in GWT, i have
  one method in which i am making a anonymous class in method. but
  problem is when this method executes, execution control does not go to
  anonymous class instead it skips over it. after this method executes
  completely, control transfers to anonymous class. and this thing is
  working perfectly fine in Swing. hope u guys understand my problem.
  thnk you for have a look at this..
  Ankit

  --
  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 Designer also compiles test and shared classes

2011-05-20 Thread Baloe
OK, thanks, I agree that's the best thing to do, I will try to make a
test case showing this problem.
All the best,
Baloe

On 20 mei, 04:09, Eric Clayberg clayb...@google.com wrote:
 Please submit a bug with a complete test case project that will
 illustrate the problem as we are unable to reproduce it on our end.
 Once we can reproduce it, presumably we can do something about it.

 On May 19, 7:42 am, Baloe nielsba...@gmail.com wrote:







  Hi all,

  Thanks for the hints.

  I understand thatGWTDesignerdoesn't compile anything, but it callsGWTto 
  perform it's compilation, but strangely enough not with the
  correct paths and other settings. We do not get _any_ of these errors
  when we run thegwtcompilation (either by starting up the development
  mode or the regular runtime mode), never. We have never seen these
  errors anywhere else.

  So, the main question remains the same: how do I make sure that it
  only compiles certain packages, or -appearently- just takes a proper
  look to the project.gwt.xml file to see which packages it should look
  into, and which modules it should inherit?

  Thanks,
  Niels

  On 18 mei, 16:27, Eric Clayberg clayb...@google.com wrote:

   1)GWTDesignerdoes not compile anything. Those [ERROR] lines you are
   seeing are coming fromGWTitself and imply some sort of problem with
   yourGWTproject configuration.

   2) $hide$ comments are used to hide code from theGWTDesignerparser
   (for GUI editing purposes). They have no impact on theGWTcompilation
   process. $hide$ tags are described here...

      
   http://code.google.com/webtoolkit/tools/gwtdesigner/preferences/prefe...

   On May 18, 8:20 am, Baloe nielsba...@gmail.com wrote:

Hi,

After renaming the server package,GWTdesignernow even hangs on
compiling thegwt-user.jar.

For example:

Validating newly compiled units
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
   gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/EventBus.java'
      [ERROR] Line 24: No source code is available for type
com.google.web.bindery.event.shared.EventBus; did you forget to
inherit a required module?
      [ERROR] Line 28: No source code is available for type
com.google.web.bindery.event.shared.HandlerRegistration; did you
forget to inherit a required module?
      [ERROR] Line 28: No source code is available for type
com.google.web.bindery.event.shared.EventH.TypeH; did you forget
to inherit a required module?
      [ERROR] Line 48: No source code is available for type
com.google.web.bindery.event.shared.EventH; did you forget to
inherit a required module?
      [ERROR] Line 68: Cannot cast from GwtEventcapture#1-of ? to
Event?
      [ERROR] Line 69: No source code is available for type
com.google.web.bindery.event.shared.UmbrellaException; did you forget
to inherit a required module?
      [ERROR] Line 76: Cannot cast from GwtEventcapture#3-of ? to
Event?
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
   gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
LegacyHandlerWrapper.java'
      [ERROR] Line 19: No source code is available for type
com.google.web.bindery.event.shared.HandlerRegistration; did you
forget to inherit a required module?
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
   gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
ResettableEventBus.java'
      [ERROR] Line 27: No source code is available for type
com.google.web.bindery.event.shared.ResettableEventBus; did you forget
to inherit a required module?
      [ERROR] Line 49: Cannot cast from GwtEvent.TypeH to
Event.TypeH
      [ERROR] Line 49: No source code is available for type
com.google.web.bindery.event.shared.EventH.TypeH; did you forget
to inherit a required module?
      [ERROR] Line 53: No source code is available for type
com.google.web.bindery.event.shared.HandlerRegistration; did you
forget to inherit a required module?
      [ERROR] Line 59: Cannot cast from GwtEvent.TypeH to
Event.TypeH
      [ERROR] Line 68: No source code is available for type
com.google.web.bindery.event.shared.EventH; did you forget to
inherit a required module?
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
   gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
SimpleEventBus.java'
      [ERROR] Line 27: No source code is available for type
com.google.web.bindery.event.shared.SimpleEventBus; did you forget to
inherit a required module?
      [ERROR] Line 32: Cannot cast from GwtEvent.TypeH to
Event.TypeH
      [ERROR] Line 32: No source code is available for type
com.google.web.bindery.event.shared.EventH.TypeH; did you forget
to inherit a required module?
      [ERROR] Line 36: No source code is available for type

Re: Strange gwt compile error: JPrimitiveType JReferenceType

2011-05-20 Thread Raphael André Bauer
On Fri, May 20, 2011 at 10:29 AM, Raphael André Bauer
raphael.andre.ba...@gmail.com wrote:
 Hi GWTlist,


 we are getting a strange compile exception and we are not sure where
 it comes from. The project is
 up and running for months now, but out of a sudden stopped working...
 Maybe somebody knows something like that (there is an issue [1] here,
 but I am not sure if it's related).

I added '-Dgwt.draftCompile=true' and it works again. But that's not
really an option for us...

Any ideas?


Thanks :)

Raphael

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



Automatic bug reporting

2011-05-20 Thread Thomas Lefort
Hi,

I was just adding some bug report mechanism to my application and I
thought that it would be nice to have it somehow automatic (at least
when an exception occurs), eg like in Android when an app crashes. In
developer mode it looks possible, not sure how it would work in
compiled mode. Any idea if there is already something out there like
that?

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.



run via cmd

2011-05-20 Thread Carlos
now as i have finished creating the .war file am passing an argument
via command line to initialize the enviroment variable which
represents the path to the configuration file
but i have a question concerning how to run my application via cmd
what should i write as a command and where


-- 
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 Designer also compiles test and shared classes

2011-05-20 Thread Baloe
Testing a bit for creating a test case, I stumbled upon a related
problem. This problem might be important for my problem as well,
that's why I'm asking it in this thread.

Where is the PROJECT.gwt.xml file attached to the project? It is not a
setting in a .xml file, which I did not expect. I get the following
message:  Unable to find 'nl/presenter/package/Project.gwt.xml' on
your classpath; could be a typo, or maybe you forgot to include a
classpath entry for source?

Adding the gwt.xml file to the classpath doesn't work (which is
nonsense anyway, but might be what is suggested above).

Thanks!
Baloe

On 20 mei, 10:42, Baloe nielsba...@gmail.com wrote:
 OK, thanks, I agree that's the best thing to do, I will try to make a
 test case showing this problem.
 All the best,
 Baloe

 On 20 mei, 04:09, Eric Clayberg clayb...@google.com wrote:







  Please submit a bug with a complete test case project that will
  illustrate the problem as we are unable to reproduce it on our end.
  Once we can reproduce it, presumably we can do something about it.

  On May 19, 7:42 am, Baloe nielsba...@gmail.com wrote:

   Hi all,

   Thanks for the hints.

   I understand thatGWTDesignerdoesn't compile anything, but it callsGWTto 
   perform it's compilation, but strangely enough not with the
   correct paths and other settings. We do not get _any_ of these errors
   when we run thegwtcompilation (either by starting up the development
   mode or the regular runtime mode), never. We have never seen these
   errors anywhere else.

   So, the main question remains the same: how do I make sure that it
   only compiles certain packages, or -appearently- just takes a proper
   look to the project.gwt.xml file to see which packages it should look
   into, and which modules it should inherit?

   Thanks,
   Niels

   On 18 mei, 16:27, Eric Clayberg clayb...@google.com wrote:

1)GWTDesignerdoes not compile anything. Those [ERROR] lines you are
seeing are coming fromGWTitself and imply some sort of problem with
yourGWTproject configuration.

2) $hide$ comments are used to hide code from theGWTDesignerparser
(for GUI editing purposes). They have no impact on theGWTcompilation
process. $hide$ tags are described here...

   
http://code.google.com/webtoolkit/tools/gwtdesigner/preferences/prefe...

On May 18, 8:20 am, Baloe nielsba...@gmail.com wrote:

 Hi,

 After renaming the server package,GWTdesignernow even hangs on
 compiling thegwt-user.jar.

 For example:

 Validating newly compiled units
    [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/EventBus.java'
       [ERROR] Line 24: No source code is available for type
 com.google.web.bindery.event.shared.EventBus; did you forget to
 inherit a required module?
       [ERROR] Line 28: No source code is available for type
 com.google.web.bindery.event.shared.HandlerRegistration; did you
 forget to inherit a required module?
       [ERROR] Line 28: No source code is available for type
 com.google.web.bindery.event.shared.EventH.TypeH; did you forget
 to inherit a required module?
       [ERROR] Line 48: No source code is available for type
 com.google.web.bindery.event.shared.EventH; did you forget to
 inherit a required module?
       [ERROR] Line 68: Cannot cast from GwtEventcapture#1-of ? to
 Event?
       [ERROR] Line 69: No source code is available for type
 com.google.web.bindery.event.shared.UmbrellaException; did you forget
 to inherit a required module?
       [ERROR] Line 76: Cannot cast from GwtEventcapture#3-of ? to
 Event?
    [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
 LegacyHandlerWrapper.java'
       [ERROR] Line 19: No source code is available for type
 com.google.web.bindery.event.shared.HandlerRegistration; did you
 forget to inherit a required module?
    [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
 ResettableEventBus.java'
       [ERROR] Line 27: No source code is available for type
 com.google.web.bindery.event.shared.ResettableEventBus; did you forget
 to inherit a required module?
       [ERROR] Line 49: Cannot cast from GwtEvent.TypeH to
 Event.TypeH
       [ERROR] Line 49: No source code is available for type
 com.google.web.bindery.event.shared.EventH.TypeH; did you forget
 to inherit a required module?
       [ERROR] Line 53: No source code is available for type
 com.google.web.bindery.event.shared.HandlerRegistration; did you
 forget to inherit a required module?
       [ERROR] Line 59: Cannot cast from GwtEvent.TypeH to
 Event.TypeH
       [ERROR] Line 68: No source code is available for type
 

Re: Strange gwt compile error: JPrimitiveType JReferenceType

2011-05-20 Thread Raphael André Bauer
On Fri, May 20, 2011 at 10:49 AM, Raphael André Bauer
raphael.andre.ba...@gmail.com wrote:
 On Fri, May 20, 2011 at 10:29 AM, Raphael André Bauer
 raphael.andre.ba...@gmail.com wrote:
 Hi GWTlist,


 we are getting a strange compile exception and we are not sure where
 it comes from. The project is
 up and running for months now, but out of a sudden stopped working...
 Maybe somebody knows something like that (there is an issue [1] here,
 but I am not sure if it's related).

 I added '-Dgwt.draftCompile=true' and it works again. But that's not
 really an option for us...

optimizationLevel0/optimizationLevel
also fixes the issue, but again - not an option as the generated files
are approx. 6 times the size.

Again - any hints regarding debugging the issue are appreciated.


Thanks :)


Raphael

-- 
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: Issue in method anonymous class in GWT

2011-05-20 Thread Magno Machado
  DataListModel model = new DataListModel() {
   public void setRecords(List records) {
   System.out.println(I see this line after model() executes
completely);
   int i = 0;
   records = new LinkedList(records);
   }
   }

This is simply instantiating a subclass of DataListModel which overrides the
setRecords method. Per se, it don't imply that the overriden method will get
executed. In order to execute the setRecords method, there should be an
explicit call for it somewhere.

On Fri, May 20, 2011 at 5:40 AM, ankit ankitsaxena0...@gmail.com wrote:

 thanks Juan for ur reply.i have one thread only as GWT is
 single threaded. but i need to run the anonymous class method when the
 called method runs heres my sample code of the problem

 public void model(){
System.out.println(This line is executing);

   DataListModel model = new DataListModel() {
public void setRecords(List records) {
System.out.println(I see this line after model() executes
 completely);
int i = 0;
records = new LinkedList(records);
}
}
System.out.println(this line is executed without executing
 DataListModel.setRecords());
 }

 i get setRecords() output after model() executes completely. but in my
 project, i have to run anonymous class SetRecords() while model()
 executes..hope u understand my problem Juan.plss reply
 me as soon as possible Juan
 On May 17, 5:16 am, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  In gwt app you only have 1 thread. In swing you queue this actions in
 EDT
  thread. How do you manage this?
 
  2011/5/16 ankit ankitsaxena0...@gmail.com
 
 
 
 
 
 
 
   i am making a GWT framework similar to Swing framework. in GWT, i have
   one method in which i am making a anonymous class in method. but
   problem is when this method executes, execution control does not go to
   anonymous class instead it skips over it. after this method executes
   completely, control transfers to anonymous class. and this thing is
   working perfectly fine in Swing. hope u guys understand my problem.
   thnk you for have a look at this..
   Ankit
 
   --
   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.




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



TextBox filter

2011-05-20 Thread Issam
Hi all,

Anyone has an idea about limiting the keyboard entries on a textBox
(creating a filter for example) or if it exists on GWT ?


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: Issue in method anonymous class in GWT

2011-05-20 Thread ankit
yes u are right Magnoand DataListModel setRecords() is
getting call  thats why i can see output on my console i see this
line after model() executes completely but problem is this executes
after model() execution. but i want it to be execute while model() is
executing hope u understand what i said..as my english is not good

On May 20, 3:33 pm, Magno Machado magn...@gmail.com wrote:
   DataListModel model = new DataListModel() {
        public void setRecords(List records) {
            System.out.println(I see this line after model() executes
 completely);
            int i = 0;
            records = new LinkedList(records);
        }
    }

 This is simply instantiating a subclass of DataListModel which overrides the
 setRecords method. Per se, it don't imply that the overriden method will get
 executed. In order to execute the setRecords method, there should be an
 explicit call for it somewhere.









 On Fri, May 20, 2011 at 5:40 AM, ankit ankitsaxena0...@gmail.com wrote:
  thanks Juan for ur reply.i have one thread only as GWT is
  single threaded. but i need to run the anonymous class method when the
  called method runs heres my sample code of the problem

  public void model(){
     System.out.println(This line is executing);

    DataListModel model = new DataListModel() {
         public void setRecords(List records) {
             System.out.println(I see this line after model() executes
  completely);
             int i = 0;
             records = new LinkedList(records);
         }
     }
     System.out.println(this line is executed without executing
  DataListModel.setRecords());
  }

  i get setRecords() output after model() executes completely. but in my
  project, i have to run anonymous class SetRecords() while model()
  executes..hope u understand my problem Juan.plss reply
  me as soon as possible Juan
  On May 17, 5:16 am, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
   In gwt app you only have 1 thread. In swing you queue this actions in
  EDT
   thread. How do you manage this?

   2011/5/16 ankit ankitsaxena0...@gmail.com

i am making a GWT framework similar to Swing framework. in GWT, i have
one method in which i am making a anonymous class in method. but
problem is when this method executes, execution control does not go to
anonymous class instead it skips over it. after this method executes
completely, control transfers to anonymous class. and this thing is
working perfectly fine in Swing. hope u guys understand my problem.
thnk you for have a look at this..
Ankit

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

 --
 Magno Machado 
 Paulohttp://blog.magnomachado.com.brhttp://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.



Prototypical implementation of Desktop Notifications

2011-05-20 Thread Max Jonas Werner
Hi,

(this is a re-post of my original posting to the GWT Contributors list. Due 
to suspected lack of interest there I post it here now)

I'm a huge fan of Web Notifications (or Desktop Notifications as called by 
Webkit/Chrome, see http://www.w3.org/TR/notifications/) so I started to hack 
away a very rudimentary implementation of them in GWT. My implementation 
consists basically of four components: A Notification class acting as a 
wrapper around a NativeNotification class which extends JavaScriptObject. 
For handling the display event (which is called show in the W3C spec) I 
created a class DisplayEvent extending DomEventDisplayHandler.

For creating a Notification I borrowed the mechanism used in the 
experimental Storage API of GWT 2.3:

final Notification popup = Notification.createIfSupported(, Title, 
Body);

This creates a Notification object wrapping a NativeNotification object. 
Since I'm not THAT firm with DOM events and stuff I would like you to 
comment on my implementation and if it is somewhat usable or leaking memory 
or sth.

The code is in prototype status and currently works in Chrome only.

Please find attached my implementation.

Cheers!
Max

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

package de.maxwerner.gwtplayground.client;

import com.google.gwt.event.dom.client.DomEvent;

/**
 * Represents a native display event.
 * 
 * @author Max Jonas Werner max.jonas.wer...@justsoftwareag.com
 */
public class DisplayEvent extends DomEventDisplayHandler {

/**
 * Event type for display events. Represents the meta-data associated with
 * this event.
 */
private static final com.google.gwt.event.dom.client.DomEvent.TypeDisplayHandler TYPE = new com.google.gwt.event.dom.client.DomEvent.TypeDisplayHandler(
display, new DisplayEvent());

/**
 * Gets the event type associated with display events.
 * 
 * @return the handler type
 */
public static TypeDisplayHandler getType() {
return TYPE;
}

/**
 * Protected constructor, use
 * {@link DomEvent#fireNativeEvent(com.google.gwt.dom.client.NativeEvent, com.google.gwt.event.shared.HasHandlers)}
 * to fire display events.
 */
protected DisplayEvent() {
}

@Override
public final TypeDisplayHandler getAssociatedType() {
return TYPE;
}

@Override
protected void dispatch(DisplayHandler handler) {
handler.onDisplay(this);
}

}
package de.maxwerner.gwtplayground.client;

import com.google.gwt.event.shared.EventHandler;

/**
 * @author Max Jonas Werner max.jonas.wer...@justsoftwareag.com
 */
public interface DisplayHandler extends EventHandler {

public void onDisplay(DisplayEvent event);
}
package de.maxwerner.gwtplayground.client;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * Instances of this type represent a single notification window which can be
 * displayed to the user and closed programatically. Use
 * {@link Notification#createIfSupported(String, String, String)} to create an
 * instance of this class.
 * 
 * @author Max Jonas Werner max.jonas.wer...@justsoftwareag.com
 */
public class NativeNotification extends JavaScriptObject {

protected NativeNotification() {
}

public final native void show() /*-{
this.show();
}-*/;

public final native void cancel() /*-{
this.cancel();
}-*/;
}
package de.maxwerner.gwtplayground.client;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.event.shared.HandlerRegistration;

/**
 * Implementation of W3C's Web Notifications specification. Obtain a
 * Notification object by invoking
 * {@link #createIfSupported(String, String, String)} and then show it using the
 * {@link #show()} method.
 * 
 * @see a href=http://www.w3.org/TR/notifications/;W3C Web Notifications/a
 * 
 * @author Max Jonas Werner max.jonas.wer...@justsoftwareag.com
 */
public class Notification {

private NativeNotification _nativePopup;
private ListDisplayHandler _displayEventHandlers;
// this handler actually calls the attached GWT handlers when a 'display'
// event is fired by the notification window.
protected JavaScriptObject jsHandler;

public static Notification createIfSupported(final String icon, final String title, final String body) {
return new Notification(icon, title, body);
};

public void show() {
_nativePopup.show();
}

public void cancel() {
_nativePopup.cancel();
}


Re: TextBox filter

2011-05-20 Thread Pedro Ferreira
Issam,

setMaxLength() method in TextBox class. (If you are using native GWT
TextBox, of course)



Em 20-05-2011 07:40, Issam escreveu:
 Hi all,

 Anyone has an idea about limiting the keyboard entries on a textBox
 (creating a filter for example) or if it exists on GWT ?


 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: Issue in method anonymous class in GWT

2011-05-20 Thread Juan Pablo Gardella
Do:

public void model(){
   System.out.println(This line is executing);

  DataListModel model = new MyDataListModel(records) ;
   }

   System.out.println(this line is executed and executing
DataListModel.setRecords());
}

MyDataListModel extends/implements DataListModel{

public MyDataListModel(List records){
 super();
 setRecords(records);
}

}


2011/5/20 ankit ankitsaxena0...@gmail.com

 yes u are right Magnoand DataListModel setRecords() is
 getting call  thats why i can see output on my console i see this
 line after model() executes completely but problem is this executes
 after model() execution. but i want it to be execute while model() is
 executing hope u understand what i said..as my english is not good

 On May 20, 3:33 pm, Magno Machado magn...@gmail.com wrote:
DataListModel model = new DataListModel() {
 public void setRecords(List records) {
 System.out.println(I see this line after model() executes
  completely);
 int i = 0;
 records = new LinkedList(records);
 }
 }
 
  This is simply instantiating a subclass of DataListModel which overrides
 the
  setRecords method. Per se, it don't imply that the overriden method will
 get
  executed. In order to execute the setRecords method, there should be an
  explicit call for it somewhere.
 
 
 
 
 
 
 
 
 
  On Fri, May 20, 2011 at 5:40 AM, ankit ankitsaxena0...@gmail.com
 wrote:
   thanks Juan for ur reply.i have one thread only as GWT is
   single threaded. but i need to run the anonymous class method when the
   called method runs heres my sample code of the problem
 
   public void model(){
  System.out.println(This line is executing);
 
 DataListModel model = new DataListModel() {
  public void setRecords(List records) {
  System.out.println(I see this line after model() executes
   completely);
  int i = 0;
  records = new LinkedList(records);
  }
  }
  System.out.println(this line is executed without executing
   DataListModel.setRecords());
   }
 
   i get setRecords() output after model() executes completely. but in my
   project, i have to run anonymous class SetRecords() while model()
   executes..hope u understand my problem Juan.plss reply
   me as soon as possible Juan
   On May 17, 5:16 am, Juan Pablo Gardella gardellajuanpa...@gmail.com
   wrote:
In gwt app you only have 1 thread. In swing you queue this actions
 in
   EDT
thread. How do you manage this?
 
2011/5/16 ankit ankitsaxena0...@gmail.com
 
 i am making a GWT framework similar to Swing framework. in GWT, i
 have
 one method in which i am making a anonymous class in method. but
 problem is when this method executes, execution control does not go
 to
 anonymous class instead it skips over it. after this method
 executes
 completely, control transfers to anonymous class. and this thing is
 working perfectly fine in Swing. hope u guys understand my problem.
 thnk you for have a look at this..
 Ankit
 
 --
 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.
 
  --
  Magno Machado Paulohttp://blog.magnomachado.com.brhttp://
 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.



-- 
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: run via cmd

2011-05-20 Thread Juan Pablo Gardella
http://mojo.codehaus.org/gwt-maven-plugin/user-guide/hosted.html

2011/5/20 Carlos hbazz...@gmail.com

 now as i have finished creating the .war file am passing an argument
 via command line to initialize the enviroment variable which
 represents the path to the configuration file
 but i have a question concerning how to run my application via cmd
 what should i write as a command and where
 

 --
 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: Prototypical implementation of Desktop Notifications

2011-05-20 Thread Juan Pablo Gardella
Thanks for share it!! I will test

2011/5/20 Max Jonas Werner m...@maxwerner.de

 Hi,

 (this is a re-post of my original posting to the GWT Contributors list. Due
 to suspected lack of interest there I post it here now)

 I'm a huge fan of Web Notifications (or Desktop Notifications as called by
 Webkit/Chrome, see http://www.w3.org/TR/notifications/) so I started to
 hack away a very rudimentary implementation of them in GWT. My
 implementation consists basically of four components: A Notification class
 acting as a wrapper around a NativeNotification class which extends
 JavaScriptObject. For handling the display event (which is called show
 in the W3C spec) I created a class DisplayEvent extending
 DomEventDisplayHandler.

 For creating a Notification I borrowed the mechanism used in the
 experimental Storage API of GWT 2.3:

 final Notification popup = Notification.createIfSupported(, Title,
 Body);

 This creates a Notification object wrapping a NativeNotification object.
 Since I'm not THAT firm with DOM events and stuff I would like you to
 comment on my implementation and if it is somewhat usable or leaking memory
 or sth.

 The code is in prototype status and currently works in Chrome only.

 Please find attached my implementation.

 Cheers!
 Max

 --
 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: run via cmd

2011-05-20 Thread Carlos
thank you for your answer but am not using maven in my project

On 20 mai, 13:22, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 http://mojo.codehaus.org/gwt-maven-plugin/user-guide/hosted.html

 2011/5/20 Carlos hbazz...@gmail.com



  now as i have finished creating the .war file am passing an argument
  via command line to initialize the enviroment variable which
  represents the path to the configuration file
  but i have a question concerning how to run my application via cmd
  what should i write as a command and where
  

  --
  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.- Masquer le texte 
 des messages précédents -

 - Afficher le texte des messages précédents -

-- 
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: TextBox filter

2011-05-20 Thread Boris Lenzinger
Hi,

Is your question about the number of characters or do you want to have a
limited set of characters ?

Boris

2011/5/20 Issam boualem.is...@gmail.com

 Hi all,

 Anyone has an idea about limiting the keyboard entries on a textBox
 (creating a filter for example) or if it exists on GWT ?


 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.



-- 
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: run via cmd

2011-05-20 Thread Juan Pablo Gardella
Try this http://code.google.com/webtoolkit/gettingstarted.html#run

2011/5/20 Carlos hbazz...@gmail.com

 thank you for your answer but am not using maven in my project

 On 20 mai, 13:22, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  http://mojo.codehaus.org/gwt-maven-plugin/user-guide/hosted.html
 
  2011/5/20 Carlos hbazz...@gmail.com
 
 
 
   now as i have finished creating the .war file am passing an argument
   via command line to initialize the enviroment variable which
   represents the path to the configuration file
   but i have a question concerning how to run my application via cmd
   what should i write as a command and where
   
 
   --
   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.- Masquer le
 texte des messages précédents -
 
  - Afficher le texte des messages précédents -

 --
 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 Designer also compiles test and shared classes

2011-05-20 Thread Baloe
I figured out the last question, it seems that the selected module in
the project didn't work, but it did. You only also have to delete the
Run-as instance in Eclipse, because it is not adjusted automaticly
when you rename the gml.xml file - too bad.

On 20 mei, 12:10, Baloe nielsba...@gmail.com wrote:
 Testing a bit for creating a test case, I stumbled upon a related
 problem. This problem might be important for my problem as well,
 that's why I'm asking it in this thread.

 Where is the PROJECT.gwt.xml file attached to the project? It is not a
 setting in a .xml file, which I did not expect. I get the following
 message:  Unable to find 'nl/presenter/package/Project.gwt.xml' on
 your classpath; could be a typo, or maybe you forgot to include a
 classpath entry for source?

 Adding the gwt.xml file to the classpath doesn't work (which is
 nonsense anyway, but might be what is suggested above).

 Thanks!
 Baloe

 On 20 mei, 10:42, Baloe nielsba...@gmail.com wrote:







  OK, thanks, I agree that's the best thing to do, I will try to make a
  test case showing this problem.
  All the best,
  Baloe

  On 20 mei, 04:09, Eric Clayberg clayb...@google.com wrote:

   Please submit a bug with a complete test case project that will
   illustrate the problem as we are unable to reproduce it on our end.
   Once we can reproduce it, presumably we can do something about it.

   On May 19, 7:42 am, Baloe nielsba...@gmail.com wrote:

Hi all,

Thanks for the hints.

I understand thatGWTDesignerdoesn't compile anything, but it callsGWTto 
perform it's compilation, but strangely enough not with the
correct paths and other settings. We do not get _any_ of these errors
when we run thegwtcompilation (either by starting up the development
mode or the regular runtime mode), never. We have never seen these
errors anywhere else.

So, the main question remains the same: how do I make sure that it
only compiles certain packages, or -appearently- just takes a proper
look to the project.gwt.xml file to see which packages it should look
into, and which modules it should inherit?

Thanks,
Niels

On 18 mei, 16:27, Eric Clayberg clayb...@google.com wrote:

 1)GWTDesignerdoes not compile anything. Those [ERROR] lines you are
 seeing are coming fromGWTitself and imply some sort of problem with
 yourGWTproject configuration.

 2) $hide$ comments are used to hide code from theGWTDesignerparser
 (for GUI editing purposes). They have no impact on theGWTcompilation
 process. $hide$ tags are described here...

    
 http://code.google.com/webtoolkit/tools/gwtdesigner/preferences/prefe...

 On May 18, 8:20 am, Baloe nielsba...@gmail.com wrote:

  Hi,

  After renaming the server package,GWTdesignernow even hangs on
  compiling thegwt-user.jar.

  For example:

  Validating newly compiled units
     [ERROR] Errors in 
  'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/EventBus.java'
        [ERROR] Line 24: No source code is available for type
  com.google.web.bindery.event.shared.EventBus; did you forget to
  inherit a required module?
        [ERROR] Line 28: No source code is available for type
  com.google.web.bindery.event.shared.HandlerRegistration; did you
  forget to inherit a required module?
        [ERROR] Line 28: No source code is available for type
  com.google.web.bindery.event.shared.EventH.TypeH; did you forget
  to inherit a required module?
        [ERROR] Line 48: No source code is available for type
  com.google.web.bindery.event.shared.EventH; did you forget to
  inherit a required module?
        [ERROR] Line 68: Cannot cast from GwtEventcapture#1-of ? to
  Event?
        [ERROR] Line 69: No source code is available for type
  com.google.web.bindery.event.shared.UmbrellaException; did you 
  forget
  to inherit a required module?
        [ERROR] Line 76: Cannot cast from GwtEventcapture#3-of ? to
  Event?
     [ERROR] Errors in 
  'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
  LegacyHandlerWrapper.java'
        [ERROR] Line 19: No source code is available for type
  com.google.web.bindery.event.shared.HandlerRegistration; did you
  forget to inherit a required module?
     [ERROR] Errors in 
  'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
  ResettableEventBus.java'
        [ERROR] Line 27: No source code is available for type
  com.google.web.bindery.event.shared.ResettableEventBus; did you 
  forget
  to inherit a required module?
        [ERROR] Line 49: Cannot cast from GwtEvent.TypeH to
  Event.TypeH
        [ERROR] Line 49: No source code is available for type
  

what's the difference between GWT designer and GPE designer, i'm talking about a comparison chart or something

2011-05-20 Thread Elhanan
our CTO insists on using gwt designer instead of GPE, so i wanna know what's 
so special about it.
 
also on another matter, i know that in development mode gwt detects jar that 
are not in the lib of the war, but ARE in the projec'ts classpath, but as 
far as i know it can only do so for jars being directly used, 
however if there are transitive depedencies (like hibernate using javaasist) 
these will not be detected and thus the application will fall.
 
the reason i'm asking is that i'm trying to create a project with some 
commons ground for classes, that although will not be operational as a gwt 
project on it's own, i will be able to include it in other projects, and at 
the end jar it. 
the only problem is that i have to maintain split set of jars. 
 
 
also is there chance in us seeing gwt developer's guide in eclipse help 
system? (hmm, maybe it should become an open source issue as a plugin 
contribution).
 

-- 
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: Strange gwt compile error: JPrimitiveType JReferenceType

2011-05-20 Thread Brian Reilly
Have you recently moved to a newer version of GWT? The errors look
vaguely like the kinds of errors that 3rd party libraries ran into
when GWT 2.2 was released. However, I don't see any 3rd party packages
listed in the stack trace. My best guess is that you may have multiple
versions of the GWT jars on your classpath during compilation.

It might help if you can provide the versions of GWT and any 3rd party
libraries you're using.

-- Brian


On Fri, May 20, 2011 at 6:19 AM, Raphael André Bauer
raphael.andre.ba...@gmail.com wrote:
 On Fri, May 20, 2011 at 10:49 AM, Raphael André Bauer
 raphael.andre.ba...@gmail.com wrote:
 On Fri, May 20, 2011 at 10:29 AM, Raphael André Bauer
 raphael.andre.ba...@gmail.com wrote:
 Hi GWTlist,


 we are getting a strange compile exception and we are not sure where
 it comes from. The project is
 up and running for months now, but out of a sudden stopped working...
 Maybe somebody knows something like that (there is an issue [1] here,
 but I am not sure if it's related).

 I added '-Dgwt.draftCompile=true' and it works again. But that's not
 really an option for us...

 optimizationLevel0/optimizationLevel
 also fixes the issue, but again - not an option as the generated files
 are approx. 6 times the size.

 Again - any hints regarding debugging the issue are appreciated.


 Thanks :)


 Raphael

 --
 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: Strange gwt compile error: JPrimitiveType JReferenceType

2011-05-20 Thread Raphael André Bauer
On Fri, May 20, 2011 at 3:15 PM, Brian Reilly brian.irei...@gmail.com wrote:
 Have you recently moved to a newer version of GWT? The errors look
 vaguely like the kinds of errors that 3rd party libraries ran into
 when GWT 2.2 was released. However, I don't see any 3rd party packages
 listed in the stack trace. My best guess is that you may have multiple
 versions of the GWT jars on your classpath during compilation.

 It might help if you can provide the versions of GWT and any 3rd party
 libraries you're using.

 -- Brian

Hi Brian,


thanks for the reply :)
We had 2.1.0 / 2.2.0 probs as well, but afaik the symptom was
something like: java.lang.IncompatibleClassChangeError: Found
interface com.google.gwt.core.ext.typeinfo.JClassType, but class was
expected . So I guess it's yet another problem...

After some debugging I found out that Base64Coder.java [1] might refer
to a 3rd party lib we are using: Emite (An excellent jabber / xmpp GWT
library).

I am currently asking on their list if they know anything [2]...

Any help still appreciated...

I'll keep you updated,


Best,

Raphael


[1] 
https://github.com/EmiteGWT/emite/blob/master/src/main/java/com/calclab/emite/core/client/xmpp/sasl/Base64Coder.java
[2] http://groups.google.com/group/emite/browse_thread/thread/eb6c469c9593fbb2

-- 
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: TextBox filter

2011-05-20 Thread Issam
Thanks for your answers ,

My question is about the type of entries (I would like that TextBox
accepts just interger (int) )

On 20 mai, 14:14, Boris Lenzinger boris.lenzin...@gmail.com wrote:
 Hi,

 Is your question about the number of characters or do you want to have a
 limited set of characters ?

 Boris

 2011/5/20 Issam boualem.is...@gmail.com







  Hi all,

  Anyone has an idea about limiting the keyboard entries on a textBox
  (creating a filter for example) or if it exists on GWT ?

  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.

-- 
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: TextBox filter

2011-05-20 Thread Boris Lenzinger
I see 2 ways to do this :
  - onKeyUp you check that the entry is an integer (or a float)
  - you can check that the key entered is a number (warning key code are
differents from pad on the right and numbers above letters).

Boris

2011/5/20 Issam boualem.is...@gmail.com

 Thanks for your answers ,

 My question is about the type of entries (I would like that TextBox
 accepts just interger (int) )

 On 20 mai, 14:14, Boris Lenzinger boris.lenzin...@gmail.com wrote:
  Hi,
 
  Is your question about the number of characters or do you want to have a
  limited set of characters ?
 
  Boris
 
  2011/5/20 Issam boualem.is...@gmail.com
 
 
 
 
 
 
 
   Hi all,
 
   Anyone has an idea about limiting the keyboard entries on a textBox
   (creating a filter for example) or if it exists on GWT ?
 
   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.

 --
 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: User GWT to develop android apps that are not browser based?

2011-05-20 Thread Derek
Not sure what you want here. Android development is a separate thing
from Web development, and GWT is for the web. However since they're
both Java-based there are opportunities to re-use code in either, if
you want to write both an android and web version of your app.

Granted, Android has WebViews which embeds the webkit rendering engine
in your app, and you can easily use GWT for that aspect of development
(I've done that). The result would certainly be something you could
put on Android Market, though hopefully you're adding some Android
integration and not just repackaging a webpage.

Since you've already been watching Google I/O talks, let me recommend
a couple more:

http://www.google.com/events/io/2011/sessions/html5-versus-android-apps-or-web-for-mobile-development.html
- HTML5 vs Android Apps goes into a lot of the reasons you might want
to create an Android App rather than a mobile web app, and vice versa.
To boil down a lot of it, mobile web apps are cross platform (work on
iOS, webOS, etc), while android apps allow tighter integration with
the device.

http://www.google.com/events/io/2011/sessions/android-app-engine-a-developer-s-dream-combination.html
- This is a really cool talk that I wish I had attended. It shows how,
using GPE, you can create an app that does reuse a lot of code between
GWT and Android with an AppEngine backend.

Hope that helps,

Derek

On May 19, 3:55 pm, cri chuck.irvine...@gmail.com wrote:
 I just skimmed through the Google IO talk by Chris Ramsdale on using
 GWT to build mobile web apps, hosted on Android for example.
 Interesting, but what about using GWT to develop an Android app that
 isn't accessed via the browser, i.e. that is downloaded through the
 Android Market? Is this possible? The latter seems more like a first
 class android application. Thanks

-- 
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-20 Thread jhulford
This all looks pretty fantasic, nice work.

You might want to check that example, though. I'm not sure why, but
the Export Grid to PDF button doesn't do anything when I click it in
Firefox 3.6.17 w/ the Acrobat plugin.

On May 19, 11:12 am, Alain Ekambi jazzmatad...@googlemail.com wrote:
 Here is the client side PDF generation 
 examplehttp://www.gwt4air.appspot.com/#mx.extended.Export
 http://www.gwt4air.appspot.com/#mx.extended.Exportcheers,

 Alain

 2011/5/19 Juan Pablo Gardella gardellajuanpa...@gmail.com

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



what would be the best design pattern in this case?

2011-05-20 Thread KD
My app has the following layout..

---header---
--searchbox--
  W1, W2, W3
  W3 W4

Where W1-5 are widgets, just like on Google Desktop. Using the
searchbox basically updates the widgets with results depending on what
widgets are mean to show. And yes, user can hit the back button and
get back to his previous search. So not only I would need to keep
search terms in the URL history but also some widgets settings like
page #, chart view vs plain view etc.

I plan to make widgets as plain GWT implementations and I do not plan
to use UI binders.

I am clear about the use the EventBus here but...

What should be my strategy for this in terms of
- what places do I need? (1 for every widget and searchbox)?
- what all activities would I need? (one for each widget, searchbox
AND one for the main activity)?
- how about activity mappers?

I see a note in bottom about Composites, here
http://code.google.com/webtoolkit/doc/trunk/DevGuideMvpActivitiesAndPlaces.html#How_to_navigate

but is that the best design pattern in this case?

thanks in advance...
-KD

-- 
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-20 Thread Alain Ekambi
@jhulford
Thank you.
I ll have a look at it.
It should be working :)

2011/5/20 jhulford jhulf...@gmail.com

 This all looks pretty fantasic, nice work.

 You might want to check that example, though. I'm not sure why, but
 the Export Grid to PDF button doesn't do anything when I click it in
 Firefox 3.6.17 w/ the Acrobat plugin.

 On May 19, 11:12 am, Alain Ekambi jazzmatad...@googlemail.com wrote:
  Here is the client side PDF generation examplehttp://
 www.gwt4air.appspot.com/#mx.extended.Export
  http://www.gwt4air.appspot.com/#mx.extended.Exportcheers,
 
  Alain
 
  2011/5/19 Juan Pablo Gardella gardellajuanpa...@gmail.com

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




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Stale link to GWT api doc

2011-05-20 Thread elgoog
Hello,

on web page: http://code.google.com/intl/de-DE/webtoolkit/community.html
the link ReferenceSDK API Reference (Javadoc) goes to GWT api doc
of version 2.2.0 (instead 2.3.0).

Regards elgoog

-- 
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: Problem with Helios Eclipse 3.6 Update Repository

2011-05-20 Thread Saptadeep Dutta
Picking on the error message: *Connection reset*.

To me it seems like you have issues with the network. (Error while
connecting to the server: *dl.google.com/*)
**
Launch browser and attempt one of the URLs, proceed to download and see what
happens.

HTH.

On Thu, May 19, 2011 at 3:02 PM, Prince Riley acmeprocessgr...@gmail.comwrote:

 Hello

 I've been experiencing problems obtaining the updates for the GWT for
 Eclipse 3.6 from the repository. I've followed the instructions posted to
 the group page, but the update fails and the error log contains these
 messages.

   An error occurred while collecting items to be installed
 session context was:(profile=epp.package.cpp,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
 action=).
 Unable to read repository at
 http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.appengine.eclipse.core_2.3.1.r36v201105092302.jar
 .
 Connection reset
 Unable to read repository at http://dl.google.com/eclipse/plugin/3.6/plugin
 snipped...


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

2011-05-20 Thread Saptadeep Dutta
Hi-

Hope this helps you troubleshoot:

Launch http://dl.google.com/ on your browser and see if it connects.

Then add parameters one by one.
Example:
http://dl.google.com/
then:
http://dl.google.com/eclipse/
then:
http://dl.google.com/eclipse/plugin/
then:
http://dl.google.com/eclipse/plugin/3.5/

. . . 
and finally:
http://dl.google.com/eclipse/plugin/3.5/plugins/com.google.gdt.eclipse.designer.hosted.1_6_2.3.0.r35x201105061507.jar
v23.lscache6.c.bigcache.googleapis.com

HTH
2011/5/20 François Bacconnet tcho...@gmail.com

 I have the same issue with Eclipse 3.5. I tried several times to just
 update and got multiple Unknown host errors.
 Today I tried to un-install GWT and to re-install the new version, and
 still I get errors.
 Here's the message:
 An error occurred while collecting items to be installed
   session context was:(profile=epp.package.jee,
 phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect,
 operand=, action=).
   Unknown Host:
 http://dl.google.com/eclipse/plugin/3.5/plugins/com.google.gdt.eclipse.designer.hosted.1_6_2.3.0.r35x201105061507.jar
   v23.lscache6.c.bigcache.googleapis.com
   Unknown Host:
 http://dl.google.com/eclipse/plugin/3.5/plugins/com.google.gdt.eclipse.designer.hosted.2_0.webkit_win32_2.3.0.r35x201105061507.jar
   v19.lscache2.c.bigcache.googleapis.com
   Unknown Host:
 http://dl.google.com/eclipse/plugin/3.5/plugins/com.google.gwt.eclipse.sdkbundle_2.3.0.r35v201104261923.jar
   v21.lscache2.c.bigcache.googleapis.com
   Unknown Host:
 http://dl.google.com/eclipse/plugin/3.5/plugins/org.eclipse.wb.core.lib_0.9.0.r35x201105061447.jar
   v18.lscache2.c.bigcache.googleapis.com

 What can I do next?

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



separate js + css + images from server

2011-05-20 Thread mpo
We'd like to have the following configuration :

- one server is replying to GWT RPC : x.com (the one running Java)
- another server is serving js / css / images : y.com (for bandwith
optimization)

So the main page is :  http://x.com/index.html
and contains this line:  script type=text/javascript
language=javascript src=http://x.com/my-app.nocache.js;/script

We're getting a SOP error: Unsafe JavaScript attempt to access frame
with URL ...

Any suggestion, help about that ?

-- 
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: RequestFactory with EJB Beans, how??

2011-05-20 Thread andre.doelger
Great! Now everything works.

On May 17, 4:18 pm, Bálint Kriván bal...@krivan.info wrote:
 Please have a look at the following piece of codes:

 The ServiceLocator 
 implementation:https://github.com/messo/KFC/blob/master/kfc-war/src/main/java/hu/sch...

 https://github.com/messo/KFC/blob/master/kfc-war/src/main/java/hu/sch...
 EntityLocator:https://github.com/messo/KFC/blob/master/kfc-war/src/main/java/hu/sch...
 https://github.com/messo/KFC/blob/master/kfc-war/src/main/java/hu/sch...It's
 used for single entities.

 An example 
 RequestContext:https://github.com/messo/KFC/blob/master/kfc-war/src/main/java/hu/sch...
 https://github.com/messo/KFC/blob/master/kfc-war/src/main/java/hu/sch...Note
 the locator = BeanLocator stuff

 And the implementation which is an 
 EJB:https://github.com/messo/KFC/blob/master/kfc-ejb/src/main/java/hu/sch...

 https://github.com/messo/KFC/blob/master/kfc-ejb/src/main/java/hu/sch...It
 was working a several weeks ago with 2.2, I didn't checked with 2.3.

 2011/5/17 andre.doelger andre.doel...@freenet.de









  Hi,

  the example implementation is not really working. I've tried a
  RequestFactory/EJB integration like this with GWT 2.3.
  When findGroups() is called from a GWT client the EJB look-up via
  BeanLocator is okay. But before GWT returns the objects to the client
  it directly creates a instance of GroupManager and calls find() for
  each returned object. The dependcy injection did not take place and
  the EntityManager is null - NullPointerexception.

  What I do not understand:

  1. Why does the RequestFactory directly creates an instance of the
  Locator and do not use the ServiceLocator?
  2. Why call find() for each entity that is returned in the List -
  Creates n+1 SQL calls

  Regards,

  André

  On 2 Feb., 12:25, Bálint Kriván bal...@krivan.info wrote:
   Ok, I've found the problem:

   Using EJB bean for Locator implementation isn't good, because GWT
   instantiate it, so we have to make a EntityLocator, which lookups for the
   EJB and invoke the right methods. I hope this helps to the others!

   2011/2/2 Bálint Kriván bal...@krivan.info

Hi!

Did anybody tried to use RequestFactory with EJB Beans using
Locator/ServiceLocator?

I'm having a little issue here.

My stateless session bean extends LocatorGroup, Long. For my
RequestContext I use a ServiceLocator which uses
  InitialContext.doLookup();
to lookup the EJB (I can't use @EJB because the ServiceLocator instance
isn't container-managed -- btw. is there any solution for this? lookup
  looks
ugly). Everything looks fine, but in my Bean, the entityManager
  instance is
null (I'm using @PersistenceContext annotation on it) when GWT wants to
invoke find(Class?, Long) method: here I use simple em.find(). It's
strange because invoking from a servlet, using @EJB, it works fine.
  What am
I doing wrong?

I've created a gist for it:https://gist.github.com/807082

So in this file:
 https://gist.github.com/807082#file_group_manager.javaLine
#29, the em is null, but using this servlet:
   https://gist.github.com/807082#file_test_servlet.javaitworks
  perfectly.

Has anybody experience with this problem? I would like to use EJBs,
  because
I would like to have JTA and Container-managed transactions. Thanks for
  any
advice!

--
Regards,
Bálint Kriván

   --
   Üdv,
   Kriván Bálint

 --
 Üdv,
 Kriván Bálint

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



Re: How to learn use GWT

2011-05-20 Thread Yannis BRES
Hi !

Just in case you can read French (or for other people who will read
this post), the Programmation GWT 2 : Développer des applications RIA
et Ajax avec Google Web Toolkit book by Sami Jabber
(http://www.amazon.fr/Programmation-GWT-D%C3%A9velopper-applications-Toolkit/dp/2212125690/)
remains, IMHO as AFAICT ;-), the most complete book that focuses on
GWT (and, e.g. not on GAE).  However, this book is more than 6 month
old ;-) = only GWT 2.0 !
A bit more updated (circa GWT 2.1) and in English but less focused on
GWT only, I'd recommend Google App Engine Java and GWT Application
Development, by Daniel Guermeur and Amy Unruh
(https://www.packtpub.com/google-app-engine-java-and-gwt-application-development/book).
 Some of the apparently GAE specific chapters actually talk about more
generic frameworks (JDO  co) that GAE implements.
Each of these books quite nicely complement all the documentation your
can already get from the official site.

Best regards,
          Yannis

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



Designer?

2011-05-20 Thread Navindian
I need to use GWT Designer and it seems not to be working..
Can anybody saw working version of gwt designer anytime?
Please tell which version is working fine..

-- 
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 Deploy to AppEngine not working

2011-05-20 Thread Alain Ekambi
Hello,

It looks i cant deploy my GWT application to appengine with GPE.
The button is not doing anything.
Can someone help me ?

-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Re: separate js + css + images from server

2011-05-20 Thread Andi
you should use the xs linker in *.gwt.xml

andi

(vom fon)

On 20.05.2011, at 16:35, mpo marc.poli...@gmail.com wrote:

 We'd like to have the following configuration :
 
 - one server is replying to GWT RPC : x.com (the one running Java)
 - another server is serving js / css / images : y.com (for bandwith
 optimization)
 
 So the main page is :  http://x.com/index.html
 and contains this line:  script type=text/javascript
 language=javascript src=http://x.com/my-app.nocache.js;/script
 
 We're getting a SOP error: Unsafe JavaScript attempt to access frame
 with URL ...
 
 Any suggestion, help about that ?
 
 -- 
 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: separate js + css + images from server

2011-05-20 Thread Raphael André Bauer
On Fri, May 20, 2011 at 5:25 PM, Andi andi.ba...@googlemail.com wrote:
 you should use the xs linker in *.gwt.xml

Even better: xsiframe linker :)
add-linker name=xsiframe /

Introduced in GWT 2.1 and works both in hosted and dev mode :)


Best,


Raphael




 andi

 (vom fon)

 On 20.05.2011, at 16:35, mpo marc.poli...@gmail.com wrote:

 We'd like to have the following configuration :

 - one server is replying to GWT RPC : x.com (the one running Java)
 - another server is serving js / css / images : y.com (for bandwith
 optimization)

 So the main page is :  http://x.com/index.html
 and contains this line:  script type=text/javascript
 language=javascript src=http://x.com/my-app.nocache.js;/script

 We're getting a SOP error: Unsafe JavaScript attempt to access frame
 with URL ...

 Any suggestion, help about that ?

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



GPE Unable to connet to project Hosting

2011-05-20 Thread Alain Ekambi
I m getting the following  error:

org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.LinkageError: loader constraint violation: when resolving method
com.google.gdt.eclipse.login.LoginCallbackServer.addServlet(Ljava/lang/String;Ljavax/servlet/Servlet;)V
the class loader (instance of
org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current
class, com/google/gdt/eclipse/login/LoginCallbackServer, and the class
loader (instance of
org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved
class, com/google/gdt/eclipse/login/LoginCallbackServer, have different
Class objects for the type javax/servlet/Servlet used in the signature)
Failed to execute runnable (java.lang.LinkageError: loader constraint
violation: when resolving method
com.google.gdt.eclipse.login.LoginCallbackServer.addServlet(Ljava/lang/String;Ljavax/servlet/Servlet;)V
the class loader (instance of
org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current
class, com/google/gdt/eclipse/login/LoginCallbackServer, and the class
loader (instance of
org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved
class, com/google/gdt/eclipse/login/LoginCallbackServer, have different
Class objects for the type javax/servlet/Servlet used in the signature)

Has anybody the same issue ?


-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Re: How to learn use GWT

2011-05-20 Thread Alisson Prestes
I highly recommend the tutorials on the official website, they're very
good.

When you know the basics (how to create simple UI and how to communicate
with a server) it's time to learn MVP model. I recommend Model View
Presenter - A Short Presentation (
http://www.youtube.com/watch?v=oiNfPjV72lg) and as Ryan said before, Google
I/O 2009 - Best Practices for Architecting GWT App (
http://www.youtube.com/watch?v=PDuhR18-EdM). and Google I/O 2010 -
Architecting GWT apps (http://www.youtube.com/watch?v=M5x6E6ze1x8).

Alisson Prestes
www.google.com/profiles/javalisson

On Fri, May 20, 2011 at 6:20 AM, Yannis BRES yaya.at.w...@gmail.com wrote:

 Hi !

 Just in case you can read French (or for other people who will read
 this post), the Programmation GWT 2 : Développer des applications RIA
 et Ajax avec Google Web Toolkit book by Sami Jabber
 (
 http://www.amazon.fr/Programmation-GWT-D%C3%A9velopper-applications-Toolkit/dp/2212125690/
 )
 remains, IMHO as AFAICT ;-), the most complete book that focuses on
 GWT (and, e.g. not on GAE).  However, this book is more than 6 month
 old ;-) = only GWT 2.0 !
 A bit more updated (circa GWT 2.1) and in English but less focused on
 GWT only, I'd recommend Google App Engine Java and GWT Application
 Development, by Daniel Guermeur and Amy Unruh
 (
 https://www.packtpub.com/google-app-engine-java-and-gwt-application-development/book
 ).
  Some of the apparently GAE specific chapters actually talk about more
 generic frameworks (JDO  co) that GAE implements.
 Each of these books quite nicely complement all the documentation your
 can already get from the official site.

 Best regards,
   Yannis

 --
 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 to learn use GWT

2011-05-20 Thread KD
Mucking around with the examples will make you very confident. Just
check out the samples code and add your own lego blocks. Still you
need some helps from books and tutorials in terms of design patterns.

-KD

On May 20, 12:21 pm, Alisson Prestes javalis...@gmail.com wrote:
 I highly recommend the tutorials on the official website, they're very
 good.

 When you know the basics (how to create simple UI and how to communicate
 with a server) it's time to learn MVP model. I recommend Model View
 Presenter - A Short Presentation 
 (http://www.youtube.com/watch?v=oiNfPjV72lg) and as Ryan said before, Google
 I/O 2009 - Best Practices for Architecting GWT App 
 (http://www.youtube.com/watch?v=PDuhR18-EdM). and Google I/O 2010 -
 Architecting GWT apps (http://www.youtube.com/watch?v=M5x6E6ze1x8).

 Alisson Presteswww.google.com/profiles/javalisson

 On Fri, May 20, 2011 at 6:20 AM, Yannis BRES yaya.at.w...@gmail.com wrote:
  Hi !

  Just in case you can read French (or for other people who will read
  this post), the Programmation GWT 2 : Développer des applications RIA
  et Ajax avec Google Web Toolkit book by Sami Jabber
  (
 http://www.amazon.fr/Programmation-GWT-D%C3%A9velopper-applications-T...
  )
  remains, IMHO as AFAICT ;-), the most complete book that focuses on
  GWT (and, e.g. not on GAE).  However, this book is more than 6 month
  old ;-) = only GWT 2.0 !
  A bit more updated (circa GWT 2.1) and in English but less focused on
  GWT only, I'd recommend Google App Engine Java and GWT Application
  Development, by Daniel Guermeur and Amy Unruh
  (
 https://www.packtpub.com/google-app-engine-java-and-gwt-application-d...
  ).
   Some of the apparently GAE specific chapters actually talk about more
  generic frameworks (JDO  co) that GAE implements.
  Each of these books quite nicely complement all the documentation your
  can already get from the official site.

  Best regards,
            Yannis

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

2011-05-20 Thread nino
I actally had a bug in one of the PDF generation class, see 
http://code.google.com/p/gwt4air/issues/detail?id=4
The issue is fixed  and the demo now generates the PDF (I just checked).

Greets,

Alain

-- 
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: Development mode cross site RPC requests

2011-05-20 Thread Thomas Broyer
Did you try this? 
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#How_do_I_use_my_own_server_in_development_mode_instead_of_GWT's

-- 
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: RequestFactory with EJB Beans, how??

2011-05-20 Thread Bálint Kriván
Good to hear ;)

On Fri, May 20, 2011 at 8:43 AM, andre.doelger andre.doel...@freenet.dewrote:

 Great! Now everything works.

 On May 17, 4:18 pm, Bálint Kriván bal...@krivan.info wrote:
  Please have a look at the following piece of codes:
 
  The ServiceLocator implementation:
 https://github.com/messo/KFC/blob/master/kfc-war/src/main/java/hu/sch...
 
  https://github.com/messo/KFC/blob/master/kfc-war/src/main/java/hu/sch..
 .
  EntityLocator:
 https://github.com/messo/KFC/blob/master/kfc-war/src/main/java/hu/sch...
  https://github.com/messo/KFC/blob/master/kfc-war/src/main/java/hu/sch..
 .It's
  used for single entities.
 
  An example RequestContext:
 https://github.com/messo/KFC/blob/master/kfc-war/src/main/java/hu/sch...
  https://github.com/messo/KFC/blob/master/kfc-war/src/main/java/hu/sch..
 .Note
  the locator = BeanLocator stuff
 
  And the implementation which is an EJB:
 https://github.com/messo/KFC/blob/master/kfc-ejb/src/main/java/hu/sch...
 
  https://github.com/messo/KFC/blob/master/kfc-ejb/src/main/java/hu/sch..
 .It
  was working a several weeks ago with 2.2, I didn't checked with 2.3.
 
  2011/5/17 andre.doelger andre.doel...@freenet.de
 
 
 
 
 
 
 
 
 
   Hi,
 
   the example implementation is not really working. I've tried a
   RequestFactory/EJB integration like this with GWT 2.3.
   When findGroups() is called from a GWT client the EJB look-up via
   BeanLocator is okay. But before GWT returns the objects to the client
   it directly creates a instance of GroupManager and calls find() for
   each returned object. The dependcy injection did not take place and
   the EntityManager is null - NullPointerexception.
 
   What I do not understand:
 
   1. Why does the RequestFactory directly creates an instance of the
   Locator and do not use the ServiceLocator?
   2. Why call find() for each entity that is returned in the List -
   Creates n+1 SQL calls
 
   Regards,
 
   André
 
   On 2 Feb., 12:25, Bálint Kriván bal...@krivan.info wrote:
Ok, I've found the problem:
 
Using EJB bean for Locator implementation isn't good, because GWT
instantiate it, so we have to make a EntityLocator, which lookups for
 the
EJB and invoke the right methods. I hope this helps to the others!
 
2011/2/2 Bálint Kriván bal...@krivan.info
 
 Hi!
 
 Did anybody tried to use RequestFactory with EJB Beans using
 Locator/ServiceLocator?
 
 I'm having a little issue here.
 
 My stateless session bean extends LocatorGroup, Long. For my
 RequestContext I use a ServiceLocator which uses
   InitialContext.doLookup();
 to lookup the EJB (I can't use @EJB because the ServiceLocator
 instance
 isn't container-managed -- btw. is there any solution for this?
 lookup
   looks
 ugly). Everything looks fine, but in my Bean, the entityManager
   instance is
 null (I'm using @PersistenceContext annotation on it) when GWT
 wants to
 invoke find(Class?, Long) method: here I use simple em.find().
 It's
 strange because invoking from a servlet, using @EJB, it works fine.
   What am
 I doing wrong?
 
 I've created a gist for it:https://gist.github.com/807082
 
 So in this file:
  https://gist.github.com/807082#file_group_manager.javaLine
 #29, the em is null, but using this servlet:
https://gist.github.com/807082#file_test_servlet.javaitworks
   perfectly.
 
 Has anybody experience with this problem? I would like to use EJBs,
   because
 I would like to have JTA and Container-managed transactions. Thanks
 for
   any
 advice!
 
 --
 Regards,
 Bálint Kriván
 
--
Üdv,
Kriván Bálint
 
  --
  Üdv,
  Kriván Bálint

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




-- 
Üdv,
Kriván Bálint

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



JSNI, qualified reference to static method (devmode works fine!)

2011-05-20 Thread Chris
All,

I'm not sure what to make of this; I have a JSNIBridge class that was
working perfectly in 'devmode' for taking being able to call a Java
method via JavaScript.  Here is a snippet:

public static void doRasterTune(String rfId, String digitalTunerId,
double frequency, double bandwidth, String frequencyUnit, String
bandwidthUnit) {
  // it's completely empty now for trying to resolve the issue below
 }

public static native void define_doProcessHitMethod() /*-{
var that = this;
$wnd.doProcessHit = function(oldId, newId, mousePtX, mousePtY,
xUnit, yUnit) {
return 
that.@com.hidden.JSNIBridge::doProcessHitRasterTune(Ljava/
lang/String;Ljava/lang/String;DDLjava/lang/String;Ljava/lang/String;)
((oldId, newId, mousePtX, mousePtY, xUnit, yUnit);
}
}-*/;

onModuleLoad, I call:

JSNIBridge.define_doProcessHitMethod();

When I try to compile (gwtc/war), I get the following:

[ERROR] Line 68:  Cannot make a qualified reference to the static
method doProcessHit

I've since stripped everything out of doProcessHit, it's just an
empty method, but I'm still encountering this build error.  Does
anyone have any ideas?

-- 
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: Development mode cross site RPC requests

2011-05-20 Thread Ben Imp
You could create a server side component for your GWT app, and delegate 
fetching the XML data to that.

-Ben

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



JSNI, qualified reference to static method (devmode works fine!

2011-05-20 Thread Chris
All,

I'm not sure what to make of this; I have a JSNIBridge class that was
working perfectly in 'devmode' for taking being able to call a Java
method via JavaScript.  Here is a snippet:

public static void doProcessHit(String oldId, String newId, double
mousePtX, double mousePtY, String xUnit, String yUnit) {
  // it's completely empty now for trying to resolve the issue below
 }

public static native void define_doProcessHitMethod() /*-{
var that = this;
$wnd.doProcessHit = function(oldId, newId, mousePtX, mousePtY, xUnit,
yUnit) {
return that.@com.hidden.JSNIBridge::doProcessHit(Ljava/lang/
String;Ljava/lang/String;DDLjava/lang/String;Ljava/lang/String;)
((oldId, newId, mousePtX, mousePtY, xUnit, yUnit);
}
}-*/;

onModuleLoad, I call:

JSNIBridge.define_doProcessHitMethod();

As I said, this works fine in 'devmode', but when I try to compile
(gwtc/war), I get the following:

[ERROR] Line 68:  Cannot make a qualified reference to the static
method doProcessHit

I've since stripped everything out of doProcessHit, it's just an
empty method, but I'm still encountering this build error.  Does
anyone have any ideas?

-- 
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.1 - Plugin for Eclipse

2011-05-20 Thread Alex Humesky
Hi Ramzi,
It sounds like you're looking for GWT SDK 2.1.0. You can use an older
version of the GWT SDK with a newer version of GPE. GWT 2.1.0 can be
downloaded here: http://google-web-toolkit.googlecode.com/files/gwt-2.1.0.zip
For instructions on setting up the SDK in GPE, see:
http://code.google.com/eclipse/docs/using_sdks.html

Alex, GPE Team

On May 18, 3:06 pm, Ramzi Oueslati oueslat...@gmail.com wrote:
 Hi,
 A zip file I can deploy under eclipse directory would be good too.
 Best regards,
 Ramzi
 Le 18 mai 2011 18:07, Ramzi Oueslati oueslat...@gmail.com a écrit :







  Hi everyone,

  I was just wondering if there was any update site URL that would allow
  me to install eclipse plugins for GWT 2.1. I'm using Eclipse 3.5.

  I know the URL ishttp://dl.google.com/eclipse/plugin/3.5for the
  stable version (2.3) andhttp://dl.google.com/eclipse/plugin/beta/3.5
  for the beta version (2.4). However I want to use GWTAI for applet
  interactions and it is not compatible with GWT 2.2+ versions.

  I hope you can help me.

  Best regards,
  Ramzi

-- 
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: Development mode cross site RPC requests

2011-05-20 Thread Ben Imp
I would think that the servlet would increase the performance of the 
application by a bit.  XML parsing in JS can't be fun, or fast, for that 
matter.  This assumes the latency between wherever you would run your 
application server and the target C++ backend isn't too high, though.  
Otherwise you are making a big triangle of a route, as opposed to simply 
back and forth.  Probably still worth it, since then you can leverage 
awesome java XML parsing libraries.

You may see some performance penalty for switching servers, I suppose.  I 
seem to recall that Tomcat wasn't quite as zippy as Apache.

-Ben

-- 
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: TextBox filter

2011-05-20 Thread ciosbel
There is a handy IntegerBox (as well as DoubleBox and LongBox) that you can 
use instead of a simple TextBox. It parses and accepts only integer values 
inside a TextBox.
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/IntegerBox.html

In general if you want something different you can extend a ValueBox giving 
a right parser and renderer.
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/ValueBox.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.



Re: JSNI, qualified reference to static method (devmode works fine!

2011-05-20 Thread Thomas Broyer
If it's static, why do you qualify it with that? Simply call it with 
return @com.hidden.JSNIBridge::doProcessHit(Ljava/lang/ 
String;Ljava/lang/String;DDLjava/lang/String;Ljava/lang/String;)((oldId, 
newId, mousePtX, mousePtY, xUnit, yUnit);

-- 
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: CellTable specify no records message

2011-05-20 Thread Patrick Tucker
It is not in 2.2, I do see it in 2.3 though...

Thanks for the heads up.

On May 19, 2:16 pm, Isaac Truett itru...@gmail.com wrote:
 I use 2.3.0. I don't know if it's in 2.2.0.

 On Thu, May 19, 2011 at 2:14 PM, Patrick Tucker 







 patrick.tuc...@macefusion.com wrote:
  What version of GWT are you using?

  This method does not appear to be in the version that I am using, GWT
  2.2.0.

  On May 18, 11:19 am, Isaac Truett itru...@gmail.com wrote:
   I've been calling setEmptyTableWidget(new Label()) before requesting data
  to
   show a loading... message, in the callback's onFailure to show an error
   message, and in onSuccess to show the no records found message.

   On Wed, May 18, 2011 at 11:17 AM, Patrick Tucker 

   patrick.tuc...@macefusion.com wrote:
Is there a way to tell CellTable that it should display a particular
message when it has no rows to display?

Similar to how it draws the loading indicator, but I need to display
something like No records available. after the request comes back
from the server.

Thanks,
Pat

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



Vaadin always causes out of memory exception

2011-05-20 Thread Andigator
I wanted to check out certain Vaadin Widgets after reading about it
the GWT blog.  However, I can't even add it to my inherits list on the
xml without causing immediate out of memory errors.  I moved my VM Xmx
flag all the way up to 4 GB.  Anyone else have this problem?

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



Re: Designer?

2011-05-20 Thread Eric Clayberg
Please be more specific about what you mean by it seems not to be
working.

Are you using the latest build?

On May 19, 11:40 pm, Navindian navind...@gmail.com wrote:
 I need to use GWT Designer and it seems not to be working..
 Can anybody saw working version of gwt designer anytime?
 Please tell which version is working fine..

-- 
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: Designer?

2011-05-20 Thread Brandon Donnelson
On update of latest SDK I had a GWT designer failure, some suggested, 
uninstalling it completely from the plugins directory. I tried that but 
deleted to many, but after eclipse reinstall, I was fixed. I'm using Mac 
OSX. It's working great for me. Minor hiccup for me. 

What OS and SDK version are you using?

Brandon Donnelson
http://gwt-examples.googlecode.com

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



Re: How to learn use GWT

2011-05-20 Thread Brandon Donnelson
I've got some demos and source you can look at here. Its not perfect, but 
can give another angle.

http://gwt-examples.googlecode.com

Brandon Donnelson
http://c.gawkat.com

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



Re: run via cmd

2011-05-20 Thread Magno Machado
i don't remember everything on the top of my mind and i'm not with my build
scripts here, so i cannot look at the code, but basicaly this is what i do;
Call com.google.gwt.dev.Compiler (or something like that) to compile your
app. You have to provide the necessary arguments
Call com.google.gwt.dev.Devmode (or something like that) to run the app.
Yes, exactly as you would to to run devmode, the difference is that you
won't use the ?gwt.codesvr argument on the url

You could pack everything in a war, set up a jetty/tomcat/whatever instance
and run your app, but I found on devmode to be simpler

On Fri, May 20, 2011 at 9:15 AM, Juan Pablo Gardella 
gardellajuanpa...@gmail.com wrote:

 Try this http://code.google.com/webtoolkit/gettingstarted.html#run

 2011/5/20 Carlos hbazz...@gmail.com

 thank you for your answer but am not using maven in my project

 On 20 mai, 13:22, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  http://mojo.codehaus.org/gwt-maven-plugin/user-guide/hosted.html
 
  2011/5/20 Carlos hbazz...@gmail.com
 
 
 
   now as i have finished creating the .war file am passing an argument
   via command line to initialize the enviroment variable which
   represents the path to the configuration file
   but i have a question concerning how to run my application via cmd
   what should i write as a command and where
   
 
   --
   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.- Masquer le
 texte des messages précédents -
 
  - Afficher le texte des messages précédents -

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




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



Re: SWT Browser requires a compatible xulrunner version installed

2011-05-20 Thread Eric Clayberg
The eRCP Designer plugin is Windows only.

On May 15, 7:00 am, Tuatini GODARD tuatinigod...@gmail.com wrote:
 By the way I can't install the eRCP eclipse's plugin.
 When I try to install I get this:
 Cannot complete the install because some dependencies are not
 satisfiable
   org.eclipse.wb.ercp.feature.feature.group [0.9.0.r36x201105051047]
 cannot be installed in this environment because its filter is not
 applicable.
 Please help me, 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.



Re: No UiBinder type (WindowBuilder/GWT Designer)

2011-05-20 Thread Eric Clayberg
I would recommend installing WebKit.

xulrunner is only needed for Linux distros that don't have WebKit
installed.

These are typically older Linux distros that have xulrunner 1.9.x
installed.

On May 13, 8:20 am, Thad thad.humphr...@gmail.com wrote:
 Okay, this was a dumb question brought on by too little sleep and too
 much office time. The solution (of course) is to rename the
 *View.ui.xml file to *ViewImpl.ui.xml.  Duh!

 Now my stumbling block is the version ofxulrunner. In Eclipse 3.6,
 WindowBuilder wants 1.9.1.x or 1.9.2.x. I'm running openSuSE 11.4, and
 it hasxulrunner-2.0.1 installed. I've tried `ln 
 -sxulrunner-2.0.1xulrunner-1.9.1.17` (just picking a version one up from an 
 old one)
 but that didn't work. I'll dittle with this for a while (though
 considering past frustrations with WindowBuilder, I dunno why).

 On May 12, 6:42 pm, Thad thad.humphr...@gmail.com wrote:







  I'm starting a new project.  Unlike previous project which stumbled
  along fromGWT1.1 to till now, I'm trying to be a good Do Bee--I'm
  attempting to use MVP and UiBinder as shown in the Contacts2 demo
  (http://code.google.com/webtoolkit/articles/mvp-architecture-2.html).
  (My project is both practical and a chance for me to try these
  techniques.)

  I also thought this would be an ideal time to try out WindowBuilder/
 GWTDesigner.  I'd tried it way back withGWT1.3 or 1.4, and wasn't
  pleased. But now--my first UiBinder endeavor--I thought I'd give it a
  go.

  However, because of conflicting naming conventions between the MVP
  example and WindowBuilder, I can't get WindowBuilder to open my
  *.ui.xml file in Design mode. Here's an example of the error message
  from the Contacts2 example (note this is copied right from Eclipse,
  with all the formatting and missing /'s):

  You are attempting to use UiBinder

                  for
  Contacts2srccomgooglegwtsamplecontactsclientviewContactsViewuixml
  however your form class
  comgooglegwtsamplecontactsclientviewContactsView does not have a

                          UiBinder inner type subclass This is 
  recommendedGWTpattern and

                  requirement ofGWTDesigner

  So what gives?  It seems odd that inGWT2.3.0 the WindowDesigner tool
  won't work with a naming convention that theGWTteam espouses.

  Is there a way around this?  If I stick to the MVP example, it seems
  that I can't use WindowDesigner.  If I cave to WindowDesigner and drop
  the ViewImpl implements View paradigm, what am I giving up?

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



Code for a multi-select listbox / combobox

2011-05-20 Thread Celinio
Hi,
I need to add a listbox / combobox which allows the user to choose several
values.
I know there is one already available in the GWT API
http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/index.html?overview-summary.html
with 
*isMultipleSelecthttp://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/user/client/ui/ListBox.html#isMultipleSelect%28%29
*()  set to true.
But the problem is that this version takes too much space.

I am looking for something like that  (second one on that page, the
picklist) :
http://www.smartclient.com/smartgwt/showcase/#multi_select_combobox_category

Can anyone share some code for that kind of list box ? I do not want to use
Smart GWT at the moment.

Another cool idea would be to add a small button on the right of a textbox
and when the user clicks on that small button,
a pop up opens and the user can select values from that popup by checking
them (checkboxes) and that would automatically
populates the textbox (values separated by commas) when he closes the popup.

How do i implement such widget ?
I am looking for samples, ideas, suggestions ...

Thanks !

-- 
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: Re-implement runAsync to improve code size. (issue1442807)

2011-05-20 Thread Scott Blum
Yeah, sorry.  old = what is now committed and new = this patch.

On Fri, May 20, 2011 at 9:41 AM, zun...@google.com wrote:

 I'm missing some contect here.  I  don't know what you mean by 'new' and
 old implementations of runAsync.  How new is new (this cl? something
 already committed or a project in the works?)



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


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

[gwt-contrib] Re: Better home for ImageResourceRenderer (issue1446807)

2011-05-20 Thread Ray Ryan
Meh, that's a lot of work for not a lot of gain.

Why don't we just move it to user.client.ui, right next to
AbstractImagePrototype? I don't see why we'd make it a nested class.

On Thu, May 19, 2011 at 10:32 PM, Ray Ryan rj...@google.com wrote:

 I was wondering if we should move the code from abstract image prototype
 here, make it depend on the renderer. Deferred binding and all. What do you
 think?
 On May 19, 2011 9:41 PM, jlaba...@google.com wrote:
 
 
 http://gwt-code-reviews.appspot.com/1446807/diff/1/user/src/com/google/gwt/resources/client/ImageResourceRenderer.java
  File user/src/com/google/gwt/resources/client/ImageResourceRenderer.java
  (right):
 
 
 http://gwt-code-reviews.appspot.com/1446807/diff/1/user/src/com/google/gwt/resources/client/ImageResourceRenderer.java#newcode21
  user/src/com/google/gwt/resources/client/ImageResourceRenderer.java:21:
  import com.google.gwt.user.client.ui.AbstractImagePrototype;
  This creates a dependency from gwt.resources to gwt.user.
 
  Maybe we can make this an inner class of AbsractImagePrototype, since
  that is what is uses for the implementation?
 
  http://gwt-code-reviews.appspot.com/1446807/


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

[gwt-contrib] Re: Better home for ImageResourceRenderer (issue1446807)

2011-05-20 Thread jlabanca

On 2011/05/20 14:48:29, rjrjr wrote:

Meh, that's a lot of work for not a lot of gain.

Exactly, which is why I never moved it.



Why don't we just move it to user.client.ui, right next to
AbstractImagePrototype? I don't see why we'd make it a nested class.



On Thu, May 19, 2011 at 10:32 PM, Ray Ryan mailto:rj...@google.com

wrote:


 I was wondering if we should move the code from abstract image

prototype

 here, make it depend on the renderer. Deferred binding and all. What

do you

 think?
 On May 19, 2011 9:41 PM, mailto:jlaba...@google.com wrote:
 
 



http://gwt-code-reviews.appspot.com/1446807/diff/1/user/src/com/google/gwt/resources/client/ImageResourceRenderer.java

  File

user/src/com/google/gwt/resources/client/ImageResourceRenderer.java

  (right):
 
 



http://gwt-code-reviews.appspot.com/1446807/diff/1/user/src/com/google/gwt/resources/client/ImageResourceRenderer.java#newcode21

 

user/src/com/google/gwt/resources/client/ImageResourceRenderer.java:21:

  import com.google.gwt.user.client.ui.AbstractImagePrototype;
  This creates a dependency from gwt.resources to gwt.user.
 
  Maybe we can make this an inner class of AbsractImagePrototype,

since

  that is what is uses for the implementation?
 
  http://gwt-code-reviews.appspot.com/1446807/





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

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


[gwt-contrib] [google-web-toolkit] r10199 committed - Add baseInterface support to UiBinder....

2011-05-20 Thread codesite-noreply

Revision: 10199
Author:   gwt.mirror...@gmail.com
Date: Fri May 20 08:32:00 2011
Log:  Add baseInterface support to UiBinder.

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

Added:
 /trunk/user/test/com/google/gwt/uibinder/test/client/MyMessages.java
Modified:
 /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
 /trunk/user/src/com/google/gwt/uibinder/rebind/messages/MessagesWriter.java
  
/trunk/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java

 /trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml

===
--- /dev/null
+++ /trunk/user/test/com/google/gwt/uibinder/test/client/MyMessages.java	 
Fri May 20 08:32:00 2011

@@ -0,0 +1,26 @@
+/*
+ * Copyright 2011 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.uibinder.test.client;
+
+import com.google.gwt.i18n.client.Messages;
+import com.google.gwt.i18n.client.LocalizableResource.DefaultLocale;
+
+/**
+ * Base messages to prove we can override the default.
+ */
+@DefaultLocale(en_US)
+public interface MyMessages extends Messages {
+}
===
--- /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java	 
Thu May  5 09:42:56 2011
+++ /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java	 
Fri May 20 05:12:05 2011

@@ -158,7 +158,7 @@

 MortalLogger logger = new MortalLogger(treeLogger);
 String templatePath = deduceTemplateFile(logger, interfaceType);
-MessagesWriter messages = new MessagesWriter(BINDER_URI, logger,
+MessagesWriter messages = new MessagesWriter(oracle, BINDER_URI,  
logger,

 templatePath, interfaceType.getPackage().getName(), implName);

 boolean useLazyWidgetBuilders = useLazyWidgetBuilders(logger,  
propertyOracle);

===
---  
/trunk/user/src/com/google/gwt/uibinder/rebind/messages/MessagesWriter.java	 
Fri Oct  8 06:15:38 2010
+++  
/trunk/user/src/com/google/gwt/uibinder/rebind/messages/MessagesWriter.java	 
Fri May 20 05:12:05 2011

@@ -16,6 +16,9 @@
 package com.google.gwt.uibinder.rebind.messages;

 import com.google.gwt.core.ext.UnableToCompleteException;
+import com.google.gwt.core.ext.typeinfo.JClassType;
+import com.google.gwt.core.ext.typeinfo.TypeOracle;
+import com.google.gwt.i18n.client.Messages;
 import com.google.gwt.uibinder.rebind.IndentedWriter;
 import com.google.gwt.uibinder.rebind.MortalLogger;
 import com.google.gwt.uibinder.rebind.UiBinderWriter;
@@ -49,6 +52,7 @@
   private final ListMessageWriter messages = new  
ArrayListMessageWriter();

   private final String generatedFrom;

+  private String baseInterface;
   private String defaultLocale;
   private String messagesPrefix;
   private String generateKeys;
@@ -57,7 +61,9 @@
   private MapXMLElement, CollectionAttributeMessage  
elemToAttributeMessages =

   new HashMapXMLElement, CollectionAttributeMessage();

-  public MessagesWriter(String nameSpaceUri, MortalLogger mortalLogger,  
String generatedFrom,

+  private TypeOracle oracle;
+
+  public MessagesWriter(TypeOracle oracle, String nameSpaceUri,  
MortalLogger mortalLogger, String generatedFrom,

   String packageName, String uiBinderImplClassName) {
 this.messagesNamespaceURI = nameSpaceUri;
 this.generatedFrom = generatedFrom;
@@ -67,6 +73,9 @@
 this.messagesClassName = uiBinderImplClassName.replaceAll(_, )  
+ GenMessages;


 this.logger = mortalLogger;
+this.oracle = oracle;
+
+baseInterface = Messages.class.getCanonicalName();
   }

   /**
@@ -150,11 +159,31 @@
   /**
* Expected to be called with the root element, to allow configuration  
from

* various messages related attributes.
+   *
+   * @throws UnableToCompleteException
*/
-  public void findMessagesConfig(XMLElement elem) {
+  public void findMessagesConfig(XMLElement elem) throws  
UnableToCompleteException {

 String prefix = elem.lookupPrefix(getMessagesUri());
 if (prefix != null) {
   messagesPrefix = prefix;
+  String baseInterfaceAttr =  
elem.consumeRawAttribute(getMessagesPrefix() + :baseInterface);

+  if (baseInterfaceAttr != null) {
+JClassType baseInterfaceType = oracle.findType(baseInterfaceAttr);
+if (baseInterfaceType == null) {
+  logger.die(elem, Could not find class %s, baseInterfaceAttr);
+}
+

[gwt-contrib] Re: Better home for ImageResourceRenderer (issue1446807)

2011-05-20 Thread rjrjr

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

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


[gwt-contrib] Re: Better home for ImageResourceRenderer (issue1446807)

2011-05-20 Thread rjrjr

It's not just a lot of work, it's the wrong thing to do. Even the
rendered image relies on the com.google.gwt.user event handling system,
at least for IE6.

How do you like it in user/client/ui?

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

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


[gwt-contrib] Re: 1. Assert, at runtime, that GWT is running in Standards Mode (i.e. with an appropriate DOCTYPE d... (issue1422816)

2011-05-20 Thread jlabanca

LGTM


http://gwt-code-reviews.appspot.com/1422816/diff/8001/user/src/com/google/gwt/user/client/DocumentModeAsserter.java
File user/src/com/google/gwt/user/client/DocumentModeAsserter.java
(right):

http://gwt-code-reviews.appspot.com/1422816/diff/8001/user/src/com/google/gwt/user/client/DocumentModeAsserter.java#newcode69
user/src/com/google/gwt/user/client/DocumentModeAsserter.java:69: +
currentMode + ' is not one of:  + Arrays.toString(allowedModes);
We should give the user better instructions here.

Change the doctype at the top of you applications host html page to one
of  + Arrays.toString(allowedModes) + .  Or, add the following line to
your gwt.xml file to continue using quirks mode, but understand that GWT
no longer supports Quirks mode: extend-property
name=\document.compatMode\ values=\BackCompat\/

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

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


[gwt-contrib] Re: Better home for ImageResourceRenderer (issue1446807)

2011-05-20 Thread John LaBanca
user/client/ui works for me

Thanks,
John LaBanca
jlaba...@google.com


On Fri, May 20, 2011 at 12:06 PM, rj...@google.com wrote:

 It's not just a lot of work, it's the wrong thing to do. Even the
 rendered image relies on the com.google.gwt.user event handling system,
 at least for IE6.

 How do you like it in user/client/ui?


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


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

[gwt-contrib] Fix AutoBean VM memory leak due to circular references between the ProxyAutoBean, ShimHandler, a... (issue1448803)

2011-05-20 Thread bobv

Reviewers: tbroyer, rjrjr,

Message:
This is a simpler version of
http://gwt-code-reviews.appspot.com/1401802, which just adds a
WeakReference from the ProxyAutoBean to the shim.  I tested this by
allocating new AutoBean instances in a tight loop and observing a
constant Java heap size well below the -Xmx value.

Description:
Fix AutoBean VM memory leak due to circular references between the
ProxyAutoBean, ShimHandler, and WeakReference.
Issue 6193.
Patch by: bobv
Review by: tbroyer, rjrjr


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

Affected files:
  M user/src/com/google/web/bindery/autobean/vm/impl/ProxyAutoBean.java


Index: user/src/com/google/web/bindery/autobean/vm/impl/ProxyAutoBean.java
===
--- user/src/com/google/web/bindery/autobean/vm/impl/ProxyAutoBean.java	 
(revision 10198)
+++ user/src/com/google/web/bindery/autobean/vm/impl/ProxyAutoBean.java	 
(working copy)

@@ -15,14 +15,15 @@
  */
 package com.google.web.bindery.autobean.vm.impl;

+import com.google.gwt.core.client.impl.WeakMapping;
 import com.google.web.bindery.autobean.shared.AutoBean;
 import com.google.web.bindery.autobean.shared.AutoBeanFactory;
 import com.google.web.bindery.autobean.shared.AutoBeanUtils;
 import com.google.web.bindery.autobean.shared.AutoBeanVisitor;
 import com.google.web.bindery.autobean.shared.impl.AbstractAutoBean;
 import com.google.web.bindery.autobean.vm.Configuration;
-import com.google.gwt.core.client.impl.WeakMapping;
-
+
+import java.lang.ref.WeakReference;
 import java.lang.reflect.InvocationHandler;
 import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
@@ -66,7 +67,7 @@
   Class?... extraInterfaces) {
 Class?[] intfs;
 if (extraInterfaces == null) {
-  intfs = new Class?[]{intf};
+  intfs = new Class?[] {intf};
 } else {
   intfs = new Class?[extraInterfaces.length + 1];
   intfs[0] = intf;
@@ -116,7 +117,25 @@
   private final ClassT beanType;
   private final Configuration configuration;
   private final Data data;
-  private final T shim;
+  /**
+   * Because the shim and the ProxyAutoBean are related through  
WeakMapping, we

+   * need to ensure that the ProxyAutoBean doesn't artificially extend the
+   * lifetime of the shim. If there are no external references to the  
shim, it's

+   * ok if it's deallocated, since it has no interesting state.
+   *
+   * pre
+   *
+   * ---
+   * | ProxyAutoBean ||Shim|
+   * |   | --+-bean   |
+   * |  shim-+---X---||
+   * |___|  ^
+   * ^  |
+   * |  X
+   * |__ WeakMapping ___|
+   * /pre
+   */
+  private WeakReferenceT shim;

   // These constructors mirror the generated constructors.
   @SuppressWarnings(unchecked)
@@ -125,7 +144,6 @@
 this.beanType = (ClassT) beanType;
 this.configuration = configuration;
 this.data = calculateData(beanType);
-this.shim = createShim();
   }

   @SuppressWarnings(unchecked)
@@ -135,12 +153,16 @@
 this.beanType = (ClassT) beanType;
 this.configuration = configuration;
 this.data = calculateData(beanType);
-this.shim = createShim();
   }

   @Override
   public T as() {
-return shim;
+T toReturn = shim == null ? null : shim.get();
+if (toReturn == null) {
+  toReturn = createShim();
+  shim = new WeakReferenceT(toReturn);
+}
+return toReturn;
   }

   public Configuration getConfiguration() {
@@ -241,7 +263,7 @@
   Object value;
   try {
 getter.setAccessible(true);
-value = getter.invoke(shim);
+value = getter.invoke(as());
   } catch (IllegalArgumentException e) {
 throw new RuntimeException(e);
   } catch (IllegalAccessException e) {


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


[gwt-contrib] Re: Fix AutoBean VM memory leak due to circular references between the ProxyAutoBean, ShimHandler, a... (issue1448803)

2011-05-20 Thread rjrjr

LGTM

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

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


[gwt-contrib] Re: 1. Assert, at runtime, that GWT is running in Standards Mode (i.e. with an appropriate DOCTYPE d... (issue1422816)

2011-05-20 Thread Ray Ryan
LGTM

On Fri, May 20, 2011 at 12:09 PM, jlaba...@google.com wrote:

 LGTM



 http://gwt-code-reviews.appspot.com/1422816/diff/8001/user/src/com/google/gwt/user/client/DocumentModeAsserter.java

 File user/src/com/google/gwt/user/client/DocumentModeAsserter.java
 (right):


 http://gwt-code-reviews.appspot.com/1422816/diff/8001/user/src/com/google/gwt/user/client/DocumentModeAsserter.java#newcode69
 user/src/com/google/gwt/user/client/DocumentModeAsserter.java:69: +
 currentMode + ' is not one of:  + Arrays.toString(allowedModes);
 We should give the user better instructions here.

 Change the doctype at the top of you applications host html page to one
 of  + Arrays.toString(allowedModes) + .  Or, add the following line to
 your gwt.xml file to continue using quirks mode, but understand that GWT
 no longer supports Quirks mode: extend-property
 name=\document.compatMode\ values=\BackCompat\/

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


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

Re: [gwt-contrib] Facilitate implementations of EventBus in other packages (issue1443804)

2011-05-20 Thread Ray Ryan
Looks good to me.

Do you still need the patch that brings back GwtEvent.setSource, or is this
enough by itself?

On Thu, May 19, 2011 at 3:58 PM, stephen.haber...@gmail.com wrote:

 Reviewers: rjrjr,

 Description:
 Adds two protected static methods to EventBus that expose otherwise
 inaccessible methods on Event (setSource and dispatch) to subclasses of
 EventBus.

 This is not a huge deal to me, but, in general, it would be nice to move
 my EventBus implementation out of a c.g package. These two methods are
 the key to doing so, and the protected static method approach seemed
 like a reasonable way to expose them to only a small subset of user code
 (namely subclasses of EventBus).


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

 Affected files:
  user/src/com/google/web/bindery/event/shared/EventBus.java


 Index: user/src/com/google/web/bindery/event/shared/EventBus.java
 ===
 --- user/src/com/google/web/bindery/event/shared/EventBus.java  (revision
 10188)
 +++ user/src/com/google/web/bindery/event/shared/EventBus.java  (working
 copy)
 @@ -30,6 +30,24 @@
  */
  public abstract class EventBus {

 +  /** Invokes {@code event.dispatch} with {@code handler}.
 +   *
 +   * This allows EventBus implementations in different packages to
 dispatch
 +   * events even though the {@code event.dispatch} method is protected.
 +   */
 +  protected static H void dispatchEvent(EventH event, H handler) {
 +event.dispatch(handler);
 +  }
 +
 +  /** Sets {@code source} as the source of {@code event}.
 +   *
 +   * This allows EventBus implementations in different packages to set an
 +   * event source even though the {@code event.setSource} method is
 protected.
 +   */
 +  protected static void setSourceOnEvent(Event? event, Object source) {
 +event.setSource(source);
 +  }
 +
   /**
* Adds an unfiltered handler to receive events of this type from all
 sources.
* p


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


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

[gwt-contrib] [google-web-toolkit] r10200 committed - Better home for ImageResourceRenderer...

2011-05-20 Thread codesite-noreply

Revision: 10200
Author:   rj...@google.com
Date: Fri May 20 06:32:48 2011
Log:  Better home for ImageResourceRenderer

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

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

Added:
 /trunk/user/src/com/google/gwt/user/client/ui/ImageResourceRenderer.java
Deleted:
 /trunk/user/src/com/google/gwt/cell/client/ImageResourceRenderer.java
Modified:
 /trunk/user/src/com/google/gwt/cell/client/ImageResourceCell.java

===
--- /dev/null
+++  
/trunk/user/src/com/google/gwt/user/client/ui/ImageResourceRenderer.java	 
Fri May 20 06:32:48 2011

@@ -0,0 +1,31 @@
+/*
+ * Copyright 2011 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.user.client.ui;
+
+import com.google.gwt.resources.client.ImageResource;
+import com.google.gwt.safehtml.shared.SafeHtml;
+import com.google.gwt.safehtml.shared.SafeHtmlUtils;
+import com.google.gwt.text.shared.AbstractSafeHtmlRenderer;
+
+/**
+ * Given an {@link ImageResource}, renders a span element to show it.
+ */
+public class ImageResourceRenderer extends  
AbstractSafeHtmlRendererImageResource {

+  @Override
+  public SafeHtml render(ImageResource image) {
+return  
SafeHtmlUtils.fromTrustedString(AbstractImagePrototype.create(image).getHTML());

+  }
+}
===
--- /trunk/user/src/com/google/gwt/cell/client/ImageResourceRenderer.java	 
Thu May 19 03:45:45 2011

+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright 2011 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.cell.client;
-
-import com.google.gwt.resources.client.ImageResource;
-import com.google.gwt.safehtml.shared.SafeHtml;
-import com.google.gwt.safehtml.shared.SafeHtmlUtils;
-import com.google.gwt.text.shared.AbstractSafeHtmlRenderer;
-import com.google.gwt.user.client.ui.AbstractImagePrototype;
-
-/**
- * Given an {@link ImageResource}, renders a span element to show it.
- */
-public class ImageResourceRenderer extends  
AbstractSafeHtmlRendererImageResource {

-  @Override
-  public SafeHtml render(ImageResource image) {
-return  
SafeHtmlUtils.fromTrustedString(AbstractImagePrototype.create(image).getHTML());

-  }
-}
===
--- /trunk/user/src/com/google/gwt/cell/client/ImageResourceCell.java	Thu  
May 19 03:45:45 2011
+++ /trunk/user/src/com/google/gwt/cell/client/ImageResourceCell.java	Fri  
May 20 06:32:48 2011

@@ -17,6 +17,7 @@

 import com.google.gwt.resources.client.ImageResource;
 import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
+import com.google.gwt.user.client.ui.ImageResourceRenderer;

 /**
  * An {@link AbstractCell} used to render an {@link ImageResource}.

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


Re: [gwt-contrib] Facilitate implementations of EventBus in other packages (issue1443804)

2011-05-20 Thread Stephen Haberman

 Do you still need the patch that brings back GwtEvent.setSource, or is
 this enough by itself?

If I had any sort of external userbase (which I don't), putting GwtEvent
setSource back would be preferrable as then users' code could keep using
an existing release of my project while they upgraded to GWT 2.4.

However, realistically, I will upgrade to both GWT 2.4 + a new release of
my project with non-c.g. EventBus at the same time, so technically just
this patch is good enough for me.

Thanks!

- Stephen

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


[gwt-contrib] Re: Adds a ui:safehtml tag to UiBinder (issue1422812)

2011-05-20 Thread rjrjr


http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java
File
user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java
(right):

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java#newcode42
user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java:42:
class defaultDelegate implements Delegate {
class names have an initial cap

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java#newcode48
user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java:48:
public UiBinderWriter getWriter() {
Get rid of this method.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java#newcode61
user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java:61:
public ComputedAttributeInterpreter(Delegate delegate) {
This method should take both a UiBinderWriter and a Delegate.

If you're bothered by the delegate needing a redundant reference to the
writer, change its signature to getAttributeToken(XMLAttribute,
UiBinderWriter)

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiSafeHtmlInterpreter.java
File
user/src/com/google/gwt/uibinder/elementparsers/UiSafeHtmlInterpreter.java
(right):

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiSafeHtmlInterpreter.java#newcode24
user/src/com/google/gwt/uibinder/elementparsers/UiSafeHtmlInterpreter.java:24:
* blt;ui:text from={myMsg.message} /gt;/b. It's called in both
hasText
ui:safehtml

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiSafeHtmlInterpreter.java#newcode25
user/src/com/google/gwt/uibinder/elementparsers/UiSafeHtmlInterpreter.java:25:
* and hasHTML context.
only called in html context, right?

Also, html context is broader than just HasHtml objects.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java
File
user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java
(right):

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java#newcode27
user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java:27:
* and hasHTML context.
both text and html contexts.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java#newcode44
user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java:44:
protected static final String BINDER_URI =
urn:ui:com.google.gwt.uibinder;
not used by subclass, should be private

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java#newcode45
user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java:45:
protected static final String LOCAL_NAME = text;
ditto

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java#newcode48
user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java:48:
protected final MortalLogger logger;
ditto

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java#newcode66
user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java:66:
createComputedAttributeInterpreter().interpretElement(elem);
don't create a new one each time, make it in the constructor.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java
File
user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java
(right):

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java#newcode72
user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java:72:
static final String BINDER_URI = urn:ui:com.google.gwt.uibinder;
Don't hard code it to the correct value, we won't know if parsers are
incorrectly hard coding it themselves. Make it a constructor argument on
MockUiBinderWriter.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
File user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
(right):

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java#newcode634
user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java:634:
assertEquals(widgetUi.myText2.getText(), bThis text won't be
bold!/b);
Watch out for 

[gwt-contrib] Re: 1. Assert, at runtime, that GWT is running in Standards Mode (i.e. with an appropriate DOCTYPE d... (issue1422816)

2011-05-20 Thread fredsa

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

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


[gwt-contrib] Re: 1. Assert, at runtime, that GWT is running in Standards Mode (i.e. with an appropriate DOCTYPE d... (issue1422816)

2011-05-20 Thread fredsa


http://gwt-code-reviews.appspot.com/1422816/diff/8001/user/src/com/google/gwt/user/client/DocumentModeAsserter.java
File user/src/com/google/gwt/user/client/DocumentModeAsserter.java
(right):

http://gwt-code-reviews.appspot.com/1422816/diff/8001/user/src/com/google/gwt/user/client/DocumentModeAsserter.java#newcode69
user/src/com/google/gwt/user/client/DocumentModeAsserter.java:69: +
currentMode + ' is not one of:  + Arrays.toString(allowedModes);
On 2011/05/20 16:09:13, jlabanca wrote:

We should give the user better instructions here.



Change the doctype at the top of you applications host html page to

one of  +

Arrays.toString(allowedModes) + .  Or, add the following line to your

gwt.xml

file to continue using quirks mode, but understand that GWT no longer

supports

Quirks mode: extend-property name=\document.compatMode\
values=\BackCompat\/


Done. Let me know what you think. There's two cases we need to handle:
1. Deprecation of quirks mode
2. Developer has done something custom

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

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


[gwt-contrib] Re: 1. Assert, at runtime, that GWT is running in Standards Mode (i.e. with an appropriate DOCTYPE d... (issue1422816)

2011-05-20 Thread jlabanca

LGTM

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

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


[gwt-contrib] Re: Fix AutoBean VM memory leak due to circular references between the ProxyAutoBean, ShimHandler, a... (issue1448803)

2011-05-20 Thread t . broyer

LGTM too; that was indeed simple!

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

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


[gwt-contrib] Re: Adds a ui:safehtml tag to UiBinder (issue1422812)

2011-05-20 Thread sbrubaker


http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java
File
user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java
(right):

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java#newcode42
user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java:42:
class defaultDelegate implements Delegate {
On 2011/05/20 17:06:17, rjrjr wrote:

class names have an initial cap


Done.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java#newcode48
user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java:48:
public UiBinderWriter getWriter() {
On 2011/05/20 17:06:17, rjrjr wrote:

Get rid of this method.


Done.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java#newcode61
user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java:61:
public ComputedAttributeInterpreter(Delegate delegate) {
On 2011/05/20 17:06:17, rjrjr wrote:

This method should take both a UiBinderWriter and a Delegate.



If you're bothered by the delegate needing a redundant reference to

the writer,

change its signature to getAttributeToken(XMLAttribute,

UiBinderWriter)

Done.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiSafeHtmlInterpreter.java
File
user/src/com/google/gwt/uibinder/elementparsers/UiSafeHtmlInterpreter.java
(right):

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiSafeHtmlInterpreter.java#newcode24
user/src/com/google/gwt/uibinder/elementparsers/UiSafeHtmlInterpreter.java:24:
* blt;ui:text from={myMsg.message} /gt;/b. It's called in both
hasText
On 2011/05/20 17:06:17, rjrjr wrote:

ui:safehtml


Done.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiSafeHtmlInterpreter.java#newcode25
user/src/com/google/gwt/uibinder/elementparsers/UiSafeHtmlInterpreter.java:25:
* and hasHTML context.
On 2011/05/20 17:06:17, rjrjr wrote:

only called in html context, right?



Also, html context is broader than just HasHtml objects.


Done.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java
File
user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java
(right):

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java#newcode27
user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java:27:
* and hasHTML context.
On 2011/05/20 17:06:17, rjrjr wrote:

both text and html contexts.


Done.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java#newcode44
user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java:44:
protected static final String BINDER_URI =
urn:ui:com.google.gwt.uibinder;
On 2011/05/20 17:06:17, rjrjr wrote:

not used by subclass, should be private


Done.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java#newcode45
user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java:45:
protected static final String LOCAL_NAME = text;
On 2011/05/20 17:06:17, rjrjr wrote:

ditto


Done.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java#newcode48
user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java:48:
protected final MortalLogger logger;
On 2011/05/20 17:06:17, rjrjr wrote:

ditto


Done.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java#newcode66
user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java:66:
createComputedAttributeInterpreter().interpretElement(elem);
On 2011/05/20 17:06:17, rjrjr wrote:

don't create a new one each time, make it in the constructor.


Done.

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java
File
user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java
(right):

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java#newcode72
user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java:72:
static final String BINDER_URI = urn:ui:com.google.gwt.uibinder;
On 2011/05/20 17:06:17, rjrjr wrote:

Don't hard code it to the correct value, we won't know if parsers are
incorrectly hard coding it themselves. Make it a constructor argument

on

[gwt-contrib] Re: Adds a ui:safehtml tag to UiBinder (issue1422812)

2011-05-20 Thread sbrubaker

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

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


[gwt-contrib] [google-web-toolkit] r10201 committed - Fix AutoBean VM memory leak due to circular references between the...

2011-05-20 Thread codesite-noreply

Revision: 10201
Author:   b...@google.com
Date: Fri May 20 08:39:14 2011
Log:  Fix AutoBean VM memory leak due to circular references between the
ProxyAutoBean, ShimHandler, and WeakReference.
Issue 6193.
http://gwt-code-reviews.appspot.com/1448803
Patch by: bobv
Review by: tbroyer, rjrjr

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

Modified:
 /trunk/user/src/com/google/web/bindery/autobean/vm/impl/ProxyAutoBean.java

===
---  
/trunk/user/src/com/google/web/bindery/autobean/vm/impl/ProxyAutoBean.java	 
Mon Apr 18 02:42:06 2011
+++  
/trunk/user/src/com/google/web/bindery/autobean/vm/impl/ProxyAutoBean.java	 
Fri May 20 08:39:14 2011

@@ -15,14 +15,15 @@
  */
 package com.google.web.bindery.autobean.vm.impl;

+import com.google.gwt.core.client.impl.WeakMapping;
 import com.google.web.bindery.autobean.shared.AutoBean;
 import com.google.web.bindery.autobean.shared.AutoBeanFactory;
 import com.google.web.bindery.autobean.shared.AutoBeanUtils;
 import com.google.web.bindery.autobean.shared.AutoBeanVisitor;
 import com.google.web.bindery.autobean.shared.impl.AbstractAutoBean;
 import com.google.web.bindery.autobean.vm.Configuration;
-import com.google.gwt.core.client.impl.WeakMapping;
-
+
+import java.lang.ref.WeakReference;
 import java.lang.reflect.InvocationHandler;
 import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
@@ -66,7 +67,7 @@
   Class?... extraInterfaces) {
 Class?[] intfs;
 if (extraInterfaces == null) {
-  intfs = new Class?[]{intf};
+  intfs = new Class?[] {intf};
 } else {
   intfs = new Class?[extraInterfaces.length + 1];
   intfs[0] = intf;
@@ -116,7 +117,25 @@
   private final ClassT beanType;
   private final Configuration configuration;
   private final Data data;
-  private final T shim;
+  /**
+   * Because the shim and the ProxyAutoBean are related through  
WeakMapping, we

+   * need to ensure that the ProxyAutoBean doesn't artificially extend the
+   * lifetime of the shim. If there are no external references to the  
shim, it's

+   * ok if it's deallocated, since it has no interesting state.
+   *
+   * pre
+   *
+   * ---
+   * | ProxyAutoBean ||Shim|
+   * |   | --+-bean   |
+   * |  shim-+---X---||
+   * |___|  ^
+   * ^  |
+   * |  X
+   * |__ WeakMapping ___|
+   * /pre
+   */
+  private WeakReferenceT shim;

   // These constructors mirror the generated constructors.
   @SuppressWarnings(unchecked)
@@ -125,7 +144,6 @@
 this.beanType = (ClassT) beanType;
 this.configuration = configuration;
 this.data = calculateData(beanType);
-this.shim = createShim();
   }

   @SuppressWarnings(unchecked)
@@ -135,12 +153,16 @@
 this.beanType = (ClassT) beanType;
 this.configuration = configuration;
 this.data = calculateData(beanType);
-this.shim = createShim();
   }

   @Override
   public T as() {
-return shim;
+T toReturn = shim == null ? null : shim.get();
+if (toReturn == null) {
+  toReturn = createShim();
+  shim = new WeakReferenceT(toReturn);
+}
+return toReturn;
   }

   public Configuration getConfiguration() {
@@ -241,7 +263,7 @@
   Object value;
   try {
 getter.setAccessible(true);
-value = getter.invoke(shim);
+value = getter.invoke(as());
   } catch (IllegalArgumentException e) {
 throw new RuntimeException(e);
   } catch (IllegalAccessException e) {

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


[gwt-contrib] Re: Pruner runs only once. (issue1436802)

2011-05-20 Thread jbrosenberg

Most of the way there to signing off, with a few questions/suggestions.


http://gwt-code-reviews.appspot.com/1436802/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java
File dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java
(right):

http://gwt-code-reviews.appspot.com/1436802/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java#newcode84
dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java:84: *
Marks as referenced any types, methods, and fields that are reachable.
s/any the classes/any classes/

http://gwt-code-reviews.appspot.com/1436802/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java#newcode382
dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java:382:
This is specific only to Pruner.CleanupRefsVisitor?  Why is it
'crazy'?  Seems pretty straightforward, this is where you are populating
the argsLiveExceptForParamRead map.  Maybe describe why this useful (or
add a comment below where argsLiveExceptForParamRed is declared, as is
done for membersLiveExceptForInstantiability).

http://gwt-code-reviews.appspot.com/1436802/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java#newcode385
dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java:385:
if (program.staticImplFor(method) != null) {
Pruner.CleanupRefsVisitor

http://gwt-code-reviews.appspot.com/1436802/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java#newcode772
dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java:772:
Perhaps add a comment for this map, similar to the Schrodinger's
comment below for membersLiveExceptForInstantiability.  I'm a bit
confused by the name argsLiveExceptForParamRead, how about
argsToAcceptIfParamRead.

http://gwt-code-reviews.appspot.com/1436802/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java#newcode787
dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java:787:
*/
How about membersToRescueIfInstantiable

http://gwt-code-reviews.appspot.com/1436802/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/Pruner.java
File dev/core/src/com/google/gwt/dev/jjs/impl/Pruner.java (right):

http://gwt-code-reviews.appspot.com/1436802/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/Pruner.java#newcode421
dev/core/src/com/google/gwt/dev/jjs/impl/Pruner.java:421: *
devirtualizations. If the instance method has been pruned, then it's
Here I think it's assumed saveCodeGenTypes == true = it's the final
pass.  Perhaps this should be made more clear, or the comment updated
to clarify.

http://gwt-code-reviews.appspot.com/1436802/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/Pruner.java#newcode570
dev/core/src/com/google/gwt/dev/jjs/impl/Pruner.java:570: // Retain the
original arguments, they will be evaluated for side effects.
This seems like a good change!

http://gwt-code-reviews.appspot.com/1436802/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/Pruner.java#newcode600
dev/core/src/com/google/gwt/dev/jjs/impl/Pruner.java:600:
Is it now certain that the Pruner should not need any subsequent passes
to complete all possible pruning?  Or is it most of the way there, and
this is now fair to cut it off to save time?

http://gwt-code-reviews.appspot.com/1436802/diff/4001/dev/core/test/com/google/gwt/dev/jjs/impl/PrunerTest.java
File dev/core/test/com/google/gwt/dev/jjs/impl/PrunerTest.java (right):

http://gwt-code-reviews.appspot.com/1436802/diff/4001/dev/core/test/com/google/gwt/dev/jjs/impl/PrunerTest.java#newcode145
dev/core/test/com/google/gwt/dev/jjs/impl/PrunerTest.java:145:
program.addEntryMethod(findMainMethod(program));
Why is this looping necessary? Since the change in Pruner removes
looping, shouldn't we be testing here the behavior with no looping also?
 Do we have a test for the second arg to Pruner.exec() is false?

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

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


[gwt-contrib] Re: Updating CellTable doc. (issue1442808)

2011-05-20 Thread jlabanca

committed as r10197

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

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


[gwt-contrib] Re: Re-implement runAsync to improve code size. (issue1442807)

2011-05-20 Thread scottb

New patch, and added some hopefully helpful commentary.


http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java
File dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java
(left):

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java#oldcode519
dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java:519:
allRootTypes.add(FragmentLoaderCreator.ASYNC_FRAGMENT_LOADER);
This was an indexed type anyway.

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java
File dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java
(right):

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java#newcode92
dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java:92:
private JMethod currentMethod;
This is needed because the whole stack of methods isn't tracked when
dependency recorder isn't running.

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
File dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
(right):

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java#newcode1691
dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java:1691:
gwtOnLoad.setArtificiallyRescued(true);
This turns out to be a much better signal to JsUnusedFunctionRemover.

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/JsFunctionClusterer.java
File dev/core/src/com/google/gwt/dev/jjs/impl/JsFunctionClusterer.java
(right):

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/JsFunctionClusterer.java#newcode86
dev/core/src/com/google/gwt/dev/jjs/impl/JsFunctionClusterer.java:86:
return;
Some fragments are now so small, they don't contain any functions. :)

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java
File dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java
(right):

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java#newcode677
dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java:677: refType
= nullifyArrayType(arrayType);
I ran into an oscillation bug here, because in one test,
RunAsyncCallback[][] kept getting transformed to null[] and back due to
RunAsyncCall[] being uninstantiable.  But, we don't modify the
corresponding JNewArray that was flowing into this expression.

Seems like we should either type-tighten JNewArray, or else not do this
at all.  But this fixes the immediate bug... possibly by disabling the
optimization in all cases.

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/js/JsUnusedFunctionRemover.java
File dev/core/src/com/google/gwt/dev/js/JsUnusedFunctionRemover.java
(left):

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/js/JsUnusedFunctionRemover.java#oldcode118
dev/core/src/com/google/gwt/dev/js/JsUnusedFunctionRemover.java:118:
(new JsNameRefVisitor()).accept(program);
This was just doing a more work than it needed to.

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/test/com/google/gwt/dev/jjs/impl/RunAsyncNameTest.java
File dev/core/test/com/google/gwt/dev/jjs/impl/RunAsyncNameTest.java
(left):

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/test/com/google/gwt/dev/jjs/impl/RunAsyncNameTest.java#oldcode64
dev/core/test/com/google/gwt/dev/jjs/impl/RunAsyncNameTest.java:64:
builder.expectError(Cannot proceed due to previous errors, null);
Because this is now caught by ReplaceRunAsync instead of
FindDeferredBindingSitesVisitor.

http://gwt-code-reviews.appspot.com/1442807/diff/4001/user/src/com/google/gwt/core/client/GWT.java
File user/src/com/google/gwt/core/client/GWT.java (right):

http://gwt-code-reviews.appspot.com/1442807/diff/4001/user/src/com/google/gwt/core/client/GWT.java#newcode248
user/src/com/google/gwt/core/client/GWT.java:248: callback.onSuccess();
What I have done here is make it so that the code simply behaves as if
the target fragment were already loaded.  I don't think the stats events
(that don't match real splitting anyway) are at all important.  And
there's no need to trap exceptions with the UEH either, if the caller
doesn't catch the exception, the UEH will get it eventually anyway.

http://gwt-code-reviews.appspot.com/1442807/diff/4001/user/src/com/google/gwt/core/client/impl/AsyncFragmentLoader.java
File user/src/com/google/gwt/core/client/impl/AsyncFragmentLoader.java
(right):


[gwt-contrib] Re: Adds a ui:safehtml tag to UiBinder (issue1422812)

2011-05-20 Thread rjrjr


http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java
File
user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java
(right):

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java#newcode72
user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java:72:
static final String BINDER_URI = urn:ui:com.google.gwt.uibinder;
It became part of the scope of this patch when you pasted a copy of the
value here.

Make UiBinderGenerator#BINDER_URI private. You will find that there are
three (3) places that refer to it, all of which can trivially be made to
take it as a constructor argument instead.

On 2011/05/20 18:27:10, sbrubaker wrote:

On 2011/05/20 17:06:17, rjrjr wrote:
 Don't hard code it to the correct value, we won't know if parsers

are

 incorrectly hard coding it themselves. Make it a constructor

argument on

 MockUiBinderWriter.



Can you elaborate on what you are looking for?  This value is

hard-coded in

UiBinderGenerator, so any call to UiBinderWriter#isBinderElement

compares to

this exact value.  Retooling UiBinderGenerator and all of the places

where

UiBinderGenerator#BINDER_URI is referenced is outside the scope of

this CL.

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

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


Re: [gwt-contrib] Cell design fail

2011-05-20 Thread Ray Cromwell
http://gxtvsgwt.appspot.com/
Most gxt widgets are 3x to 10x slower to render. GWT Cell Widgets,
while complex, ensure that they scale to large UIs.

-Ray

On Tue, May 17, 2011 at 2:57 PM, dmen dmenou...@gmail.com wrote:
 Dear GWT team,

 Once again I feel this unbearable need to complain about your API
 design choices. I have been trying to implement a custom CellTree,
 delving into your sources and man I am left astonished with the level
 of over-engineering and IMHO horrible code organization! I think you
 often make a mistake of trying to fight complexity by throwing more
 code at it.

 I am in no way affiliated with the Sencha guys, but I'd urge you to
 take a good look at their architecture and equivalent widget
 implementations. They are beautiful like a poem! They are economical,
 clear to read and understand.

 This is a friendly message. I just want my GWT lean 'n mean!

 Dimitris

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


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


[gwt-contrib] Re: Adds a ui:safehtml tag to UiBinder (issue1422812)

2011-05-20 Thread sbrubaker

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

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


[gwt-contrib] Re: Adds a ui:safehtml tag to UiBinder (issue1422812)

2011-05-20 Thread sbrubaker


http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java
File
user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java
(right):

http://gwt-code-reviews.appspot.com/1422812/diff/7001/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java#newcode72
user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java:72:
static final String BINDER_URI = urn:ui:com.google.gwt.uibinder;
I made it a constructor argument to MockUiBinderWriter; how do you
propose getting around the need for the hard-coded string in
ElementParserTester?

On 2011/05/20 22:58:12, rjrjr wrote:

It became part of the scope of this patch when you pasted a copy of

the value

here.



Make UiBinderGenerator#BINDER_URI private. You will find that there

are three

(3) places that refer to it, all of which can trivially be made to

take it as a

constructor argument instead.



On 2011/05/20 18:27:10, sbrubaker wrote:
 On 2011/05/20 17:06:17, rjrjr wrote:
  Don't hard code it to the correct value, we won't know if parsers

are

  incorrectly hard coding it themselves. Make it a constructor

argument on

  MockUiBinderWriter.

 Can you elaborate on what you are looking for?  This value is

hard-coded in

 UiBinderGenerator, so any call to UiBinderWriter#isBinderElement

compares to

 this exact value.  Retooling UiBinderGenerator and all of the places

where

 UiBinderGenerator#BINDER_URI is referenced is outside the scope of

this CL.


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

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


[gwt-contrib] Re: Re-implement runAsync to improve code size. (issue1442807)

2011-05-20 Thread zundel


http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/core/ext/soyc/impl/SplitPointRecorder.java
File
dev/core/src/com/google/gwt/core/ext/soyc/impl/SplitPointRecorder.java
(left):

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/core/ext/soyc/impl/SplitPointRecorder.java#oldcode131
dev/core/src/com/google/gwt/core/ext/soyc/impl/SplitPointRecorder.java:131:
} else {
just to make sure I understand - looks like you replaced this with
either the name of the class literal (if passed) or getImplicitName() in
ReplaceRunAsyncs.

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jdt/FindDeferredBindingSitesVisitor.java
File
dev/core/src/com/google/gwt/dev/jdt/FindDeferredBindingSitesVisitor.java
(right):

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jdt/FindDeferredBindingSitesVisitor.java#newcode45
dev/core/src/com/google/gwt/dev/jdt/FindDeferredBindingSitesVisitor.java:45:
public final MessageSend messageSend;
Dumb question.  What does this JDT MessageSend class represent?  It
looks to me like we would want to look for static method invocations if
we are looking for GWT.create() calls.

I see GWT.create() has a complex declaration using generics, does that
make it special?

 public static T T create(Class? classLiteral)

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java
File dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java
(left):

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java#oldcode519
dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java:519:
allRootTypes.add(FragmentLoaderCreator.ASYNC_FRAGMENT_LOADER);
On 2011/05/20 22:47:15, scottb wrote:

This was an indexed type anyway.


just to clarify, What you are saying is that it would have been found in
the reachability analysis without explicitly adding it as a root type.

Now you are adding a direct call to AsyncFragmentLoader.runAsync() via
visiting a JAsyncNode CloneExpressionVisitor returned from
JRunAsync.getRunAsyncCall().

http://gwt-code-reviews.appspot.com/1442807/diff/4001/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/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java#newcode617
dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java:617:
if (module != null  options.isRunAsyncEnabled()) {
Thinking out loud... is this still going to work?  We won't replace
GWT.runAsync() calls with JRunAsyncNodes so CloneExpressionVisitor won't
add references to AsyncFragmentLoader.runAsync().  So what will happen
to them instead?

nm, I see the standard implementation of GWT.runAsync() is
GWT.runAsyncWithoutCodeSplitting()

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java
File dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java (right):

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java#newcode842
dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java:842: public
ListJRunAsync getRunAsyncs() {
This is nice; it seems a lot clearer than before the patch.

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java
File dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java (left):

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java#oldcode541
dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java:541: /**
nice that you don't need this anymore.

http://gwt-code-reviews.appspot.com/1442807/diff/4001/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/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java#newcode271
dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java:271: if
(refString.startsWith(@)) {
I'm surprised to find all this JSNI checking here (What about JSNI
checker?).  why would this be any different in the split point logic
than a monolithic program?  Are these just assertions to make sure
liveness checks are working correctly?

http://gwt-code-reviews.appspot.com/1442807/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java#newcode973
dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java:973: int
splitPoint = runAsync.getSplitPoint();
Aside: all this referencing to split points by number and keeping track
of when to add or subtract 1 make me think - could we define some kind
of SplitPoint class instead or is there a good reason to keep them as
numbers?

(but not in this patch,