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

2011-06-01 Thread Carlos
hi,

you should check your module file
if you have used this pattern module rename-to=thinpost
then your module name is now reffered to as thinpost (thinpost is just
an example)
so the servlet mapping would look like the following

  servlet-mapping
servlet-namethinpostService/servlet-name
url-patternthinpost/welcome/url-pattern
  /servlet-mapping

and don't forget to add the annotation
@RemoteServiceRelativePath(welcome) on the top of the interface
ThinpostService.java
then compile your project and run it again.


On 31 mai, 02:54, AppEngineNoob taufi...@gmail.com wrote:
 Hi,

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

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

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

 Why am I still getting this error:

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

 Problem accessing /thinpost/welcome. Reason:

     NOT_FOUND

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

 Thank you.

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



Re: creating war

2011-06-01 Thread Carlos
hi,

try this

http://blog.elitecoderz.net/gwt-and-tomcat-create-war-using-eclipse-to-deploy-war-on-tomcat/2009/12/

read it carefully and apply it
it worked with me



On 1 juin, 06:46, Navindian navind...@gmail.com wrote:
 How to create a war out of GWT Web application project?

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



Error during compiling with CellList (2.3)

2011-06-01 Thread Mark Meyer
Moin!

I get the following error using CellList in GWT 2.3 in this piece of code:

TestG.java:91:  CellListString cellList = new CellListString(new 
ClickableTextCell());

the Error:

09:43:54.856 [ERROR] [testg] Generator 
'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator' threw 
an exception while rebinding 
'com.google.gwt.user.cellview.client.CellList.Resources'

java.lang.NullPointerException: null
at 
com.google.gwt.resources.rg.ImageResourceGenerator$BundledImage.addImage(ImageResourceGenerator.java:99)
at 
com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGenerator.java:544)
at 
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1024)
at 
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1050)
at 
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generateIncrementally(AbstractClientBundleGenerator.java:399)
at 
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:681)
at 
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at 
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:74)
at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:285)
at 
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:585)
at 
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:455)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at 
com.google.gwt.user.cellview.client.CellList.getDefaultResources(CellList.java:148)
at 
com.google.gwt.user.cellview.client.CellList.lt;initgt;(CellList.java:175)
at org.ofosos.gwtest.client.TestG.onModuleLoad(TestG.java:91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at 
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:679)

I searched for this error and came across various posts, that basically said 
to increase ulimits open files parameters. However that didn't fix the 
issue. Anybody care to tell me, where to look for the bug?

Kind regards, Mark

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Zkh0WFI0UTk3dXdK.
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-06-01 Thread Alain Ekambi
The Flex API of gwt4air is just a  new UI layer for GWT. Meaning that all
the backend stuff(RPC, RF, RequestBuilder, etc...) should work as usual.
Here is a real world example of using GWT RPC with gwt4air.
http://www.gwt4air.appspot.com/#mx.extended.rpc
Like you can see i just swapped the  native GWT UI with a FleX UI. The RPC
service are the default one that  gets created by GPE(when creating a new
project)

cheers,

Alain


2011/6/1 gwt.user gwt.u...@yahoo.fr

 How do i use RPC with the gwt4air Flex API ?
 Cant get it to work.
 Thx

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




-- 

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

2011-06-01 Thread Jambi
I couldn´t get it working. And I don´t know what I did wrong. Could
you please provide me with the code of your renderer, cell and
cellTable setup? This would be great. I know that you sure customized
your cell for your use cases but it really could help. You could send
it via mail or just post the code here if you want. I´m sure that a
lot of users could need a working implementation of a
clickableImageCell... I´m wondering why there´s no build in
implementation?

Cheers, Mike

On 31 Mai, 19:44, Sydney sydney.henr...@gmail.com wrote:
 In a CellTable

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



Re: New GWT /App engine site

2011-06-01 Thread Deepak Singh
Hi,

Nice work. I am also supposed to integrate google maps with a gwt
application. Can you pls guide on this technically ? is it free to use or do
we need to pay for using maps ?

Thanks
Deepak

On Tue, May 31, 2011 at 11:05 PM, David Chandler drfibona...@google.comwrote:

 Friendly reminder: the appropriate place to post sites built with GWT is
 gwtgallery.appspot.com. Folks can subscribe to the Recent projects RSS
 feed to keep up with the latest projects built with GWT.

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

 Thanks,
 /dmc


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

 Nice.

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

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




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

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


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



configure db in web.xml

2011-06-01 Thread ArnoNyhm
Hi,

i have a problem with my embedde derby database. here is my web.xml:


database 
driver
typeorg.apache.derby.jdbc.EmbeddedDriver/type
urljdbc:derby:C:\Documents and

Settings\*\workspace1\contactApp\contactDB/url
useruser/user
passworduser/password
/driver
/database

is it correct?
i start a rpc, but get a unexpected exception. if i test my method on
server side, without rpc everything 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: configure db in web.xml

2011-06-01 Thread ArnoNyhm
thats really strange. tables are created, but when i start a query i
get nothing, but the query should return one row.

On 1 Jun., 11:27, ArnoNyhm etechniker@googlemail.com wrote:
 Hi,

 i have a problem with my embedde derby database. here is my web.xml:

         database 
                 driver
                         typeorg.apache.derby.jdbc.EmbeddedDriver/type
                         urljdbc:derby:C:\Documents and
                                 
 Settings\*\workspace1\contactApp\contactDB/url
                         useruser/user
                         passworduser/password
                 /driver
         /database

 is it correct?
 i start a rpc, but get a unexpected exception. if i test my method on
 server side, without rpc everything 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: Codesplitting and ``If-Modified-Since`` Header

2011-06-01 Thread pansen
Hey guys,

it seems not as if this is a gwt issue, but a header/browser issue.
I'm asking you anyway, maybe someone knows about the way splitted
scripts are requested.

I proved the server responds in a correct manner if ``If-Modified-
Since`` is sent.

# this file is included in the hosted page via ``script`` tag. and
will respond a 304 the second
# time i load the page
[andi]$ curl -is 
http://dev.beta/latest/vz_main/ADF0D4E5642BF488EE5572F64496EB0A.cache.js|head
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 01 Jun 2011 09:50:08 GMT
Content-Type: application/x-javascript
Connection: keep-alive
Vary: Accept-Encoding
Content-Length: 569494
Last-Modified: Tue, 31 May 2011 13:07:42 GMT
Expires: Fri, 01 Jul 2011 09:50:08 GMT
Cache-Control: max-age=2592000
[andi]$ curl -is 
http://dev.beta/latest/vz_main/ADF0D4E5642BF488EE5572F64496EB0A.cache.js
-H 'If-Modified-Since: Tue, 31 May 2011 13:07:42 GMT'|head
HTTP/1.1 304 Not Modified
Server: nginx
Date: Wed, 01 Jun 2011 09:52:17 GMT
Connection: keep-alive
Last-Modified: Tue, 31 May 2011 13:07:42 GMT
Expires: Fri, 01 Jul 2011 09:52:17 GMT
Cache-Control: max-age=2592000
Access-Control-Allow-Origin: http://xss.beta:9667

# this file is one of the splitted ones and will always get fully
loaded
[andi]$ curl -is 
http://dev.beta/latest/vz_main/deferredjs/ADF0D4E5642BF488EE5572F64496EB0A/61.cache.js|head
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 01 Jun 2011 09:52:59 GMT
Content-Type: application/x-javascript
Connection: keep-alive
Vary: Accept-Encoding
Content-Length: 173765
Last-Modified: Tue, 31 May 2011 13:07:42 GMT
Expires: Fri, 01 Jul 2011 09:52:59 GMT
Cache-Control: max-age=2592000
[andi]$ curl -is 
http://dev.beta/latest/vz_main/deferredjs/ADF0D4E5642BF488EE5572F64496EB0A/61.cache.js
-H 'If-Modified-Since: Tue, 31 May 2011 13:07:42 GMT'|head
HTTP/1.1 304 Not Modified
Server: nginx
Date: Wed, 01 Jun 2011 09:53:40 GMT
Connection: keep-alive
Last-Modified: Tue, 31 May 2011 13:07:42 GMT
Expires: Fri, 01 Jul 2011 09:53:40 GMT
Cache-Control: max-age=2592000
Access-Control-Allow-Origin: http://xss.beta:9667

You can see there is no server configuration issue as far as i can
see. I just set the nginx ``expires`` directive to ``30d``
http://wiki.nginx.org/HttpHeadersModule#expires

Anyone knows how to tweak the response headers to a browser to cache
these files?

Cheers, Andi


On 30 Mai, 17:52, pansen andi.ba...@googlemail.com wrote:
 Hey,

 we are successfully using the codesplitting feature in our project. on
 our staging server, i recognized that all splitted files are always
 completely loaded from the server. All files included in the hostpage,
 will send a ``If-Modified-Since`` header the second time I load the
 app::

 If-Modified-Since   Mon, 30 May 2011 14:29:42 GMT
 Cache-Control   max-age=0

 All splitted JS files are correctly loaded afterwards, but the problem
 is they never contain these information (``If-Modified-Since``
 header). So the server is not able to respond with a 304 Not
 Modified.

 Can someone give me a hint where to tweak this behaviour?

 The advice given 
 here:http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCompi...
 also wont work without that header.

 Thanks, Andi

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



Re: Action on a ImageResourceCell

2011-06-01 Thread Jambi
I could solve my problems and I got it to work. But now I want to use
a FieldUpdater to get the row object when I click on the cell. It does
not work with the tutorial solution. Do I have to add something?

On 1 Jun., 10:49, Jambi michael.lukaszc...@googlemail.com wrote:
 I couldn´t get it working. And I don´t know what I did wrong. Could
 you please provide me with the code of your renderer, cell and
 cellTable setup? This would be great. I know that you sure customized
 your cell for your use cases but it really could help. You could send
 it via mail or just post the code here if you want. I´m sure that a
 lot of users could need a working implementation of a
 clickableImageCell... I´m wondering why there´s no build in
 implementation?

 Cheers, Mike

 On 31 Mai, 19:44, Sydney sydney.henr...@gmail.com wrote:

  In a CellTable

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



Re: Codesplitting and ``If-Modified-Since`` Header

2011-06-01 Thread David Chandler
Hi Andi,

Have a look at the browser's Developer Tools to inspect what the browser is
actually seeing. In the initial response from the server, do the
Last-Modified, Expires, and Cache-control headers appear as above? In the
subsequent request, is the browser sending an If-Modified-Since header based
on the Last-Modified time as above?

/dmc

On Wed, Jun 1, 2011 at 6:11 AM, pansen andi.ba...@googlemail.com wrote:

 Hey guys,

 it seems not as if this is a gwt issue, but a header/browser issue.
 I'm asking you anyway, maybe someone knows about the way splitted
 scripts are requested.

 I proved the server responds in a correct manner if ``If-Modified-
 Since`` is sent.

 # this file is included in the hosted page via ``script`` tag. and
 will respond a 304 the second
 # time i load the page
 [andi]$ curl -is
 http://dev.beta/latest/vz_main/ADF0D4E5642BF488EE5572F64496EB0A.cache.js|head
 HTTP/1.1 200 OK
 Server: nginx
 Date: Wed, 01 Jun 2011 09:50:08 GMT
 Content-Type: application/x-javascript
 Connection: keep-alive
 Vary: Accept-Encoding
 Content-Length: 569494
 Last-Modified: Tue, 31 May 2011 13:07:42 GMT
 Expires: Fri, 01 Jul 2011 09:50:08 GMT
 Cache-Control: max-age=2592000
 [andi]$ curl -is
 http://dev.beta/latest/vz_main/ADF0D4E5642BF488EE5572F64496EB0A.cache.js
 -H 'If-Modified-Since: Tue, 31 May 2011 13:07:42 GMT'|head
 HTTP/1.1 304 Not Modified
 Server: nginx
 Date: Wed, 01 Jun 2011 09:52:17 GMT
 Connection: keep-alive
 Last-Modified: Tue, 31 May 2011 13:07:42 GMT
 Expires: Fri, 01 Jul 2011 09:52:17 GMT
 Cache-Control: max-age=2592000
 Access-Control-Allow-Origin: http://xss.beta:9667

 # this file is one of the splitted ones and will always get fully
 loaded
 [andi]$ curl -is
 http://dev.beta/latest/vz_main/deferredjs/ADF0D4E5642BF488EE5572F64496EB0A/61.cache.js|head
 HTTP/1.1 200 OK
 Server: nginx
 Date: Wed, 01 Jun 2011 09:52:59 GMT
 Content-Type: application/x-javascript
 Connection: keep-alive
 Vary: Accept-Encoding
 Content-Length: 173765
 Last-Modified: Tue, 31 May 2011 13:07:42 GMT
 Expires: Fri, 01 Jul 2011 09:52:59 GMT
 Cache-Control: max-age=2592000
 [andi]$ curl -is
 http://dev.beta/latest/vz_main/deferredjs/ADF0D4E5642BF488EE5572F64496EB0A/61.cache.js
 -H 'If-Modified-Since: Tue, 31 May 2011 13:07:42 GMT'|head
 HTTP/1.1 304 Not Modified
 Server: nginx
 Date: Wed, 01 Jun 2011 09:53:40 GMT
 Connection: keep-alive
 Last-Modified: Tue, 31 May 2011 13:07:42 GMT
 Expires: Fri, 01 Jul 2011 09:53:40 GMT
 Cache-Control: max-age=2592000
 Access-Control-Allow-Origin: http://xss.beta:9667

 You can see there is no server configuration issue as far as i can
 see. I just set the nginx ``expires`` directive to ``30d``
 http://wiki.nginx.org/HttpHeadersModule#expires

 Anyone knows how to tweak the response headers to a browser to cache
 these files?

 Cheers, Andi


 On 30 Mai, 17:52, pansen andi.ba...@googlemail.com wrote:
  Hey,
 
  we are successfully using the codesplitting feature in our project. on
  our staging server, i recognized that all splitted files are always
  completely loaded from the server. All files included in the hostpage,
  will send a ``If-Modified-Since`` header the second time I load the
  app::
 
  If-Modified-Since   Mon, 30 May 2011 14:29:42 GMT
  Cache-Control   max-age=0
 
  All splitted JS files are correctly loaded afterwards, but the problem
  is they never contain these information (``If-Modified-Since``
  header). So the server is not able to respond with a 304 Not
  Modified.
 
  Can someone give me a hint where to tweak this behaviour?
 
  The advice given here:
 http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCompi...
  also wont work without that header.
 
  Thanks, Andi

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




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

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



Re: Overriding a css style loclly

2011-06-01 Thread Brian Reilly
If you want to style all of the Label widgets that are inside a
specific container (e.g. HTMLPanel), you can put a class on the
container add a rule to target labels inside of it.

ui:style
  @external .gwt-Label;

  .container .gwt-Label {
color: #000;
  }
/ui:style

g:HTMLPanel
  g:LabelThis text will be styled by static stylesheets/g:Label
  g:HTMLPanel addStyleNames={style.container}
g:LabelThis text will be blackg:Label
  /g:HTMLPanel
/g:HTMLPanel

.container will be obfuscated, but .gwt-Label will not because it's
declared as external.

-- Brian


On Tue, May 31, 2011 at 6:06 AM, Adolfo Panizo Touzon
adolfo.pan...@gmail.com wrote:
 Hi lalit, try it with this
      ui:style field='reportStyle'
          @external gwt-Label;
    .gwt-Label{ color: #000 !Important; }
  /ui:style
 I founded it here

 2011/5/30 lalit lalit.bh...@gmail.com

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

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

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

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

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

 thanks in advance,

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




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

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


-- 
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: configure db in web.xml

2011-06-01 Thread ArnoNyhm
i figure it out.
my database was created in default path, connection string look like
this:  jdbc:derby:database.

i change it to jdbc:derby:c:\database,  now the webserver know, where
the database is.

On 1 Jun., 13:16, ArnoNyhm etechniker@googlemail.com wrote:
 here the exception:

 tarting Jetty on port 
    [WARN] Exception while dispatching incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract com.*.***.shared.Data
 com.***.***.client.CommunicationService.getTimelineData()
 throws java.lang.IllegalArgumentException' threw an unexpected
 exception: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 385)
         at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 588)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
 208)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
 248)
         at
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
 62)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 487)
         at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 362)
         at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
         at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 181)
         at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 729)
         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 405)
         at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
         at
 org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
 49)
         at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
         at org.mortbay.jetty.Server.handle(Server.java:324)
         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 505)
         at org.mortbay.jetty.HttpConnection
 $RequestHandler.content(HttpConnection.java:843)
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
         at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 395)
         at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:488)
 Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(Unknown Source)
         at java.util.ArrayList.get(Unknown Source)
         at com.***.***.server.Server.init(Server.java:72)
         at com.***.***.server.Server.init(Server.java:29)
         at
 com.***.***.server.CommunicationServiceImpl.getTimelineData(CommunicationServiceImpl.java:
 16)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 569)
         ... 22 more

 On 1 Jun., 11:40, ArnoNyhm etechniker@googlemail.com wrote:

  thats really strange. tables are created, but when i start a query i
  get nothing, but the query should return one row.

  On 1 Jun., 11:27, ArnoNyhm etechniker@googlemail.com wrote:

   Hi,

   i have a problem with my embedde derby database. here is my web.xml:

           database 
                   driver
                           typeorg.apache.derby.jdbc.EmbeddedDriver/type
                           urljdbc:derby:C:\Documents and
                                   
   Settings\*\workspace1\contactApp\contactDB/url
                           useruser/user
                           passworduser/password
                   /driver
           /database

   is it correct?
   i start a rpc, but get a unexpected exception. if i test my method on
   server side, without rpc everything 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: New GWT /App engine site

2011-06-01 Thread ale
Hi, 
the term and conditions to use google maps with gwt, are the same of every 
other technology: you have to get a key, then you can use for free (with 
some limitation, like not hide google logo or don't sell service...)
when you get an api key, you can read the official term and conditions.
http://code.google.com/intl/it-IT/apis/maps/signup.html

To integrate with gwt I use gwp-maps from here

http://code.google.com/p/gwt-google-apis/

is very useful and simple to use, there is also a sample application that 
explain very well everything is possible to do.
This library use  gmap v2 not v3. (but for me is ok)

Alessandro

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/THp2Sk9XZHA2VkFK.
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 and OpenJPA not working together

2011-06-01 Thread roman
Thats good news!
Well obviously I am doing something wrong. When i discovered that I
have to remove the appengine jar from my classpath - to avoid problem
with dataNucleus - yesterday, I also tried the same in my dev branch
with OpenJPA. I saw some other exception.
But now that I know it should work, i can continue investigating.

It's definitly a filebased instance of Derby DB. My connection string
points to C:\bin\apache-james\...
cheers

On 30 Mai, 19:27, Patrick Julien pjul...@gmail.com wrote:
 OpenJPA works fine with GWT.  Your issues have to do with the fact
 you're running on AppEngine.  I don't even see how it's possible you
 got derby running on AppEngine unless you're using an all memory
 database.







 On Mon, May 30, 2011 at 12:31 PM, roman roman.za...@gmail.com wrote:
  allright. your push made me look into it a little deeper :-)
  My solution to the NoClassDefFoundError: java.io.FileOutputStream is
  a restricted class is disabling the usage of Google's App engine
  under Project - Properties | Google | App Engine | Use Google App
  Engine -- uncheck

  After that i got ClassCastException:
  org.datanucleus.store.rdbms.RDBMSManager cannot be cast to
  org.datanucleus.store.appengine.DatastoreManager which made me
  banning the datanucleus-appengine-1.0.8.final.jar from the projects
  classpath as well.
  I have no clue if this is a good idea, but my code is running so far
  and I am able to make calls to the Derby database.

  Which brings me back to my other question:
  Is it utterly impossible to have the persistence layer running with
  OpenJPA along with a GWT frontend? As I fear Apache James is dependent
  on its familiar JPA technology.

  again, thanks for your advice. you helped me loads
  alltogether I spent already a week on these issues, and I'm craving
  for answers
  cheers

  On 30 Mai, 14:48, Patrick Julien pjul...@gmail.com wrote:
  I think that's specific enough:

  Caused by: java.lang.NoClassDefFoundError: java.io.FileOutputStream
  is a restricted class. Please see the Google  App Engine developer's
  guide for more details.

  On Mon, May 30, 2011 at 4:29 AM, roman roman.za...@gmail.com wrote:
   Thank you for your quick response.
   I followed your advise and changed the underlying technology of my JPA
   layer to DataNucleus.

   But i ran into a different problem

   log4j:WARN No appenders could be found for logger
   (DataNucleus.Connection).
   log4j:WARN Please initialize the log4j system properly.
   [ERROR] javax.servlet.ServletContext log: unavailable
   javax.persistence.PersistenceException: Provider error. Provider:
   org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider
          at 
   javax.persistence.Persistence.createFactory(Persistence.java:176)
          ...
          at 
   org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
          at
   org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
   409)
          at org.mortbay.thread.QueuedThreadPool
   $PoolThread.run(QueuedThreadPool.java:582)
   Caused by: javax.jdo.JDOFatalInternalException: Unexpected exception
   caught.
   NestedThrowables:
   java.lang.reflect.InvocationTargetException
          at
   javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:
   1186)
          at 
   javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
   803)
          at 
   javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
   698)
          ...
   Caused by: java.lang.NoClassDefFoundError: java.io.FileOutputStream is
   a restricted class. Please see the Google  App Engine developer's
   guide for more details.
          at
   com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:
   51)
          at
   org.apache.derby.impl.services.stream.SingleStream.PBmakeFileHPW(Unknown
   Source)
          at org.apache.derby.impl.services.stream.SingleStream.run(Unknown
   Source)

   Well I see that i probably have got an error in the configuration of
   the DataStorePersistenceProvider. Unfortunately, I am not sure what
   the error could be. Is there any way to get a more specific
   description of what is causing the problem?

   cheers, roman

   On 27 Mai, 15:28, Patrick Julien pjul...@gmail.com wrote:
   If you wan't to use JPA with AppEngine, you have to use the JPA that
   comes with AppEngine which is based on datanucleus.  See

  http://code.google.com/appengine/docs/java/datastore/jpa/overview.html

   for an overview

   On Fri, May 27, 2011 at 5:56 AM, roman roman.za...@gmail.com wrote:
Hi,
I'm trying to implement a UserManagement based on GoogleWebToolkit
(Adding, deleting, assigning privileged; nothing special there). The
   GWT-module is using a serparate persistence module, which I included
as a jar-file and which is based onOpenJPA.

The persistence layer is working fine as long is I run it standalone.
But when I wire it to myGWTproject, I can't 

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

2011-06-01 Thread AppEngineNoob
Thank you very much. I found out that simply thinpost/welcome works,
but I just had to recompile (wasn't doing that before, when I tried
the same thing).

On Jun 1, 3:29 am, Carlos hbazz...@gmail.com wrote:
 hi,

 you should check your module file
 if you have used this pattern module rename-to=thinpost
 then your module name is now reffered to as thinpost (thinpost is just
 an example)
 so the servlet mapping would look like the following

   servlet-mapping
     servlet-namethinpostService/servlet-name
     url-patternthinpost/welcome/url-pattern
   /servlet-mapping

 and don't forget to add the annotation
 @RemoteServiceRelativePath(welcome) on the top of the interface
 ThinpostService.java
 then compile your project and run it again.

 On 31 mai, 02:54, AppEngineNoob taufi...@gmail.com wrote:







  Hi,

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

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

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

  Why am I still getting this error:

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

  Problem accessing /thinpost/welcome. Reason:

      NOT_FOUND

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

  Thank you.

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



Re: Action on a ImageResourceCell

2011-06-01 Thread Sydney
See my implementation:
http://pastie.org/2003461
http://pastie.org/2003467

The call to add the column:

// Remove Bet Column
ClickableImageResourceCell removeCell = new 
ClickableImageResourceCell();
ColumnYourObject, YourObject removeColumn = new ColumnYourObject
, YourObject(removeCell) {
@Override
public YourObject getValue(YourObject obj) {
return obj;
}
};
removeCell.setUpdater(this);


I use a ValueUpdater instead of a FieldUpdater. The class containing the 
CellTable implements ValueUpdaterYourObject, I guess you can do the same 
with FieldUpdater.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Y0htcThZVUp2ekVK.
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: Reflection Class Generator

2011-06-01 Thread Honza Rames
Hi, from what I can tell GWT doesn't support reflection at all in
client side (JS translatable) code. Just a few simple features like
getting class name (but I can't really call that reflection can
I ;-) ). I have been experimenting with reflection in client side code
though, and with a lot of success I must say :-). I'm planning to
share the code on Google Code when I feel its ready, I'm currently
testing it on business application I'm working on and then we'll see.
If you (or anybody else) would like to give it a try, I might be able
to create some package and share this with you (or maybe create the
Google Code project right away). There is similar framework (don't
remember the name but can be found by Google ;-) ), which didn't
really didn't do the job for me because it was pretty difficult to
generate the reflection information that is needed (please correct me
if I got that wrong). My approach uses GWT generators and annotations
to specify which packages and which classes should participate in
reflection information generation. I'm supporting similar
functionality that java Class gives you with some modifications, but
you can obtain annotations, get/set fields and even call public
methods and create new instance in reflective way (but you need to be
careful on what info you add because it could greatly enlarge your
resulting JS code). I also have unit tests (of course) for bunch of
stuff but it would require a lot of cleanup I guess.

So if anyone is interested just leave a message ;-)

--
Honza Rames

On 31 kvě, 16:20, Adolfo Panizo Touzon adolfo.pan...@gmail.com
wrote:
 Can somebody the function about de class Generator and all the similar
 classes which is contained int he packpage com.google.gwt.core.ext, it´s
 used for deferred binding?

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

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

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



Re: Reflection Class Generator

2011-06-01 Thread giuseppe la scaleia
I am very interessed on it. May you send the project to do a look to the code?
Regards Giuseppe

Inviato da iPhone di Giuseppe La  Scaleia

Il giorno 01/giu/2011, alle ore 16:40, Honza Rames rame...@gmail.com ha 
scritto:

 Hi, from what I can tell GWT doesn't support reflection at all in
 client side (JS translatable) code. Just a few simple features like
 getting class name (but I can't really call that reflection can
 I ;-) ). I have been experimenting with reflection in client side code
 though, and with a lot of success I must say :-). I'm planning to
 share the code on Google Code when I feel its ready, I'm currently
 testing it on business application I'm working on and then we'll see.
 If you (or anybody else) would like to give it a try, I might be able
 to create some package and share this with you (or maybe create the
 Google Code project right away). There is similar framework (don't
 remember the name but can be found by Google ;-) ), which didn't
 really didn't do the job for me because it was pretty difficult to
 generate the reflection information that is needed (please correct me
 if I got that wrong). My approach uses GWT generators and annotations
 to specify which packages and which classes should participate in
 reflection information generation. I'm supporting similar
 functionality that java Class gives you with some modifications, but
 you can obtain annotations, get/set fields and even call public
 methods and create new instance in reflective way (but you need to be
 careful on what info you add because it could greatly enlarge your
 resulting JS code). I also have unit tests (of course) for bunch of
 stuff but it would require a lot of cleanup I guess.
 
 So if anyone is interested just leave a message ;-)
 
 --
 Honza Rames
 
 On 31 kvě, 16:20, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
 Can somebody the function about de class Generator and all the similar
 classes which is contained int he packpage com.google.gwt.core.ext, it´s
 used for deferred binding?
 
 Maybe if I want use reflection in my app, I must use these classes??
 
 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 

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



Hierachy of autobean for state serialization

2011-06-01 Thread Panam
Hi,

I am considering to use autobeans for state serialization, i.e. a
hierachy of graphical objects sharing subsets of common properties.
Each has its specifics (specific properties, e.g. specific fields that
should be serialized), but'd like best to find a common state
serialization for them.
The basic idea is to create an autobean for the most general type
which defines all common methods, e.g.

public interface BasicObjectSerialization{
getX();
getY();
}

public class BasicObject implements BasicObjectSerialization{
getX(){return this.x};
getY(){return this.y};
}
For serialization, the object is wrapped into BasicObjectSerialization
and that autobean is then encoded.
Restoration is done by passing the autobean to a
BasicObject.restore(BasicObjectSerialization state) method which does
the restoration after the BasicObject has been instantiated.

Now, what to do with each object's specifics (i.e. those of the
subtypes)? As an example, consider the class
public class SpecialObject extends BasicObject{
   getColor(){return this.color};
}
I basically see two approaches:
1) Add a method
String BasicObject.getCustomState()
which encodes the the specifics to string. This must be done
separately for each subtype of BasicObject.
- Pros:
  * Definitely seems to work.
- Cons:
  * It is necessesary to provide some kind of extra (de-)
serialization in each subtype with spcifics
  * Overall complicated and a lot of manual things to do.
2) Create an hierachy autobeans :
public interface SpecialObjectSerialization extends
BasicObjectSerialization{
getColor();
}
- Pros:
  * Put everything in an object tree and serialize once. Would make
things simple and clean
- Cons:
  * It seems polymorphism is not possible with autobeans. E.g. if I
have a list of ObjectSerializations, how to get the 'specifics' of the
subtypes encoded (e.g. color)? All my attempts failed so far.

  Now some questions:
  Related to 2): is polymorphism indeed impossible with autobeans so
that I lose subtype specifics when serialzing lists of objects with
different subypes (but a common supertype of course)?
  Related to 1): Can the extra serialization necessary in each
subtype be avoided somehow?

Ideas?

Thanks,
panam

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



RequestFactoryServlet import problem with AppEngine Connected Android Project

2011-06-01 Thread Chad
I created a new AppEngine Connected Android Project but the files
created with the wizard using GPE 2.4beta had a bunch of errors. I was
able to resolve all but one.

The following import statement is bad:

import
com.google.web.bindery.requestfactory.server.RequestFactoryServlet;

Any ideas how/where to import RequestFactoryServlet?

Thanks,
Chad

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



Regarding Login

2011-06-01 Thread sachin sreenivasan
Hi,

   I am fairly new to GWT and wanted to know if there are any existing
libraries in GWT to implement a secured login mechanism?

~ Sachin

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



Fail to compile module with internationalization instructions

2011-06-01 Thread bouba331
Hi,

I'm trying to insert internationalized strings into my application but
it seems to fail a compile time.

What I've done is the following :
 - Add a org.bgaillard.client.constant.LoginPanelConstants which
extends the ConstantsWithLookup interface
 - Add a org/bgaillard/client/constant/
LoginPanelConstants_fr.properties file
 - Add

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

 set-property-fallback name=locale value=en/

In my GWT XML module file.

 - Generate (using the Maven GWT Plugin) a
org.bgaillard.client.constant.LoginPanelConstants_fr.class interface
which extends the ConstantsWithLookup interface
 - Add

   meta name=gwt:property content=locale=fr /

  in my root application HTML file.
 - Configure each file to use the UTF-8 encoding

But, a compile time I always have this error :

[ERROR] Errors in '. . . /src/main/java/org/bgaillard/client/widgets/
panel/LoginPanel.java'
[ERROR] Line 45:  Rebind result
'org.bgaillard.client.constant.LoginPanelConstants_fr' must be a class
[ERROR] Cannot proceed due to previous errors

Line 45 corresponds to that piece of code:

  this.loginPanelConstants =
GWT.create(LoginPanelConstants.class);

I'm using GWT 2.3 and the Maven GWT Plugin 2.2.0 to generate GWT
interfaces (for internationalization and async services) and to
compile.


What is the error ? Why do I have this Rebind error at compile
time ?

Thanks,

Bouba331

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



A little example on howto configure GWT with spring and hibernate.

2011-06-01 Thread karq
Hey everyone!

I've spent quite some time on getting this setup working. So I made a
little example for those who are struggling with the same problem.
http://karq.planet.ee/blog/?p=275

Hope you like it :)

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



Database and GWT

2011-06-01 Thread purni iyer
hello,
Can any one suggest me which method of applying database with GWT is
the best.I have few options
JDO
JSON
Objectifiers

Please suggest
Purnima

-- 
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: Print contents of RichTextArea

2011-06-01 Thread Ashwani Gupta
Anyone has any ideas??

On Mon, May 30, 2011 at 9:58 PM, Ash ashwani...@gmail.com wrote:

 I am able to print contents of a TextArea to a file by doing this
 dom.getElementsByTagName(textarea);

 but don't seem to find a way to do the same for RichTextArea. Does
 anyone has an idea how to do this?

 On the other hand is there a good solution to printing a page that is
 designed using gwt?

 Thanks,
 Ash

 --
 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: Database and GWT

2011-06-01 Thread joe kolba
We personally just use Google RPC calls and send serializable objects
between the server and client.

On Wed, Jun 1, 2011 at 2:14 PM, purni iyer purni.i...@gmail.com wrote:

 hello,
 Can any one suggest me which method of applying database with GWT is
 the best.I have few options
 JDO
 JSON
 Objectifiers

 Please suggest
 Purnima

 --
 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: Database and GWT

2011-06-01 Thread Barry Ard
I found that EodSQL gave me the best bang for my buck (time invested
vs usefulness).

Download from http://java.net/projects/eodsql/downloads

and read tutorial.html in the docs directory.

See the developers blog http://lemnik.wordpress.com/?s=eodsql

Good luck,
Barry

On Jun 1, 12:14 pm, purni iyer purni.i...@gmail.com wrote:
 hello,
 Can any one suggest me which method of applying database with GWT is
 the best.I have few options
 JDO
 JSON
 Objectifiers

 Please suggest
 Purnima

-- 
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: Database and GWT

2011-06-01 Thread purni iyer
Thnks for the replies.I used the serializable objects i.e objects on
shared side.But found many difficulties implementing them.As in I am
unable to set relationship one to many between my objects.I need
suggestion with same

On Jun 1, 11:29 pm, Barry Ard b...@ualberta.ca wrote:
 I found that EodSQL gave me the best bang for my buck (time invested
 vs usefulness).

 Download fromhttp://java.net/projects/eodsql/downloads

 and read tutorial.html in the docs directory.

 See the developers bloghttp://lemnik.wordpress.com/?s=eodsql
 t
 Good luck,
 Barry

 On Jun 1, 12:14 pm, purni iyer purni.i...@gmail.com wrote:







  hello,
  Can any one suggest me which method of applying database with GWT is
  the best.I have few options
  JDO
  JSON
  Objectifiers

  Please suggest
  Purnima

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

2011-06-01 Thread purni iyer
hello
Can anyone suggest me good templates for making GWT apps
Also can anyone suggest me CSS for MenuBar havouring...
Purnima

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



SimpleMaps Tutorial (Google Maps)

2011-06-01 Thread spartanwil...@yahoo.com
Hi y'all,

I have been trying to use the simplemaps tutorial from
http://code.google.com/intl/pt-BR/docreader/#p=gwt-google-apiss=gwt-google-apist=MapsGettingStarted

This is my first attempt at using a Google API in gwt. I am using gwt
2.3.0 and the gwt-maps.jar 1.1.0 as well as the eclipse IDE.

I have followed all the instructions in the tutorial/example to the
best of my ability and I come up with errors:

java.lang.ExceptionInInitializerError: null

Caused by: java.lang.RuntimeException: Deferred binding failed for
'com.google.gwt.maps.client.impl.MapImpl' (did you forget to inherit a
required module?

Caused by: java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected

I have read this forum as well as many others and I see this is might
be a common problem, but from I have found any fixes that fix my
errors.

I apologize if this is in the wrong section , just let me know and I
will repost.

Thanks,

Will

-- 
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: SimpleMaps Tutorial (Google Maps)

2011-06-01 Thread David Chandler
Hi Will,

Looks like you need a newer version of gwt-maps that was compiled after GWT
2.2. See comment 32 on this issue for a link:
http://code.google.com/p/gwt-google-apis/issues/detail?id=447

HTH,
/dmc

On Wed, Jun 1, 2011 at 2:58 PM, spartanwil...@yahoo.com 
spartanwil...@yahoo.com wrote:

 Hi y'all,

 I have been trying to use the simplemaps tutorial from

 http://code.google.com/intl/pt-BR/docreader/#p=gwt-google-apiss=gwt-google-apist=MapsGettingStarted

 This is my first attempt at using a Google API in gwt. I am using gwt
 2.3.0 and the gwt-maps.jar 1.1.0 as well as the eclipse IDE.

 I have followed all the instructions in the tutorial/example to the
 best of my ability and I come up with errors:

 java.lang.ExceptionInInitializerError: null

 Caused by: java.lang.RuntimeException: Deferred binding failed for
 'com.google.gwt.maps.client.impl.MapImpl' (did you forget to inherit a
 required module?

 Caused by: java.lang.IncompatibleClassChangeError: Found interface
 com.google.gwt.core.ext.typeinfo.JClassType, but class was expected

 I have read this forum as well as many others and I see this is might
 be a common problem, but from I have found any fixes that fix my
 errors.

 I apologize if this is in the wrong section , just let me know and I
 will repost.

 Thanks,

 Will

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




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

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



Re: SimpleMaps Tutorial (Google Maps)

2011-06-01 Thread Bala Sankar
GWT 2.3 and Google Maps API has issues.
GWT team has to fix it. They need to work with the Maps team and fix it.

I don't want to suggest you to try earlier versions such as, GWT 2.0, etc

Regards,
Bala

On Wed, Jun 1, 2011 at 11:58 AM, spartanwil...@yahoo.com 
spartanwil...@yahoo.com wrote:

 Hi y'all,

 I have been trying to use the simplemaps tutorial from

 http://code.google.com/intl/pt-BR/docreader/#p=gwt-google-apiss=gwt-google-apist=MapsGettingStarted

 This is my first attempt at using a Google API in gwt. I am using gwt
 2.3.0 and the gwt-maps.jar 1.1.0 as well as the eclipse IDE.

 I have followed all the instructions in the tutorial/example to the
 best of my ability and I come up with errors:

 java.lang.ExceptionInInitializerError: null

 Caused by: java.lang.RuntimeException: Deferred binding failed for
 'com.google.gwt.maps.client.impl.MapImpl' (did you forget to inherit a
 required module?

 Caused by: java.lang.IncompatibleClassChangeError: Found interface
 com.google.gwt.core.ext.typeinfo.JClassType, but class was expected

 I have read this forum as well as many others and I see this is might
 be a common problem, but from I have found any fixes that fix my
 errors.

 I apologize if this is in the wrong section , just let me know and I
 will repost.

 Thanks,

 Will

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



Ignoring unresolvable annotation type

2011-06-01 Thread randasin
I have one annotation and one object.

com.example.model.shared.MyAnnotation
com.example.model.shared.MyObject

MyObject is declared with MyAnnotation:

@MyAnnotation
public class MyObject {
...
}

When I compile, I am getting this warning

[java]Resolving com.example.model.shared.MyObject
[java]   Found type 'com.example.model.shared.MyObject'
[java]  [WARN] Ignoring unresolvable annotation type
com.example.model.shared.MyAnnotation

The compilation still succeeded, but I wonder what side effects are
there?  How do I resolve this warning?

-- 
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: SimpleMaps Tutorial (Google Maps)

2011-06-01 Thread spartanwil...@yahoo.com
Dave,

Thanks Dave. It now works.

Probably will be back here soon. Once again appreciate the help.

V/r,

Will

-- 
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: Ignoring unresolvable annotation type

2011-06-01 Thread Adolfo Panizo Touzon
As you know, GWT is not pure Java, so you can´t use some things.

One way to solve these problem is including a library for reflection (see
gwt-ent in google).

2011/6/1 randasin r4nd7...@gmail.com

 I have one annotation and one object.

 com.example.model.shared.MyAnnotation
 com.example.model.shared.MyObject

 MyObject is declared with MyAnnotation:

 @MyAnnotation
 public class MyObject {
 ...
 }

 When I compile, I am getting this warning

 [java]Resolving com.example.model.shared.MyObject
 [java]   Found type 'com.example.model.shared.MyObject'
 [java]  [WARN] Ignoring unresolvable annotation type
 com.example.model.shared.MyAnnotation

 The compilation still succeeded, but I wonder what side effects are
 there?  How do I resolve this warning?

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




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

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



Re: EMF Error

2011-06-01 Thread Pavel Byles
Anyone?

On Tue, May 31, 2011 at 10:33 PM, Pavel Byles pavelby...@gmail.com wrote:

 Trying to get RequestFactory to work but I am getting:

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

 at the line that contains this code:

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


 Anyone have any ideas?

 --
 -Pav




-- 
-Pav

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



Re: Ignoring unresolvable annotation type

2011-06-01 Thread randasin
I don't plan to use or check the annotation in GWT context so I am ok
if GWT ignores it.  MyObject is still compiled and I can use it in
Async requests, right?

The reason I have the annotation is the classes are also used in
another web service project, which utilizes the annotation.

Just wondered if there is way to get rid of the warning.


On Jun 1, 4:24 pm, Adolfo Panizo Touzon adolfo.pan...@gmail.com
wrote:
 As you know, GWT is not pure Java, so you can´t use some things.

 One way to solve these problem is including a library for reflection (see
 gwt-ent in google).

 2011/6/1 randasin r4nd7...@gmail.com









  I have one annotation and one object.

  com.example.model.shared.MyAnnotation
  com.example.model.shared.MyObject

  MyObject is declared with MyAnnotation:

  @MyAnnotation
  public class MyObject {
  ...
  }

  When I compile, I am getting this warning

  [java]    Resolving com.example.model.shared.MyObject
  [java]       Found type 'com.example.model.shared.MyObject'
  [java]          [WARN] Ignoring unresolvable annotation type
  com.example.model.shared.MyAnnotation

  The compilation still succeeded, but I wonder what side effects are
  there?  How do I resolve this warning?

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

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

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



Re: EMF Error

2011-06-01 Thread A. Stevko
Not sure this is the best forum (server side issue vs client side forum) for
your question but I'll give it a go...

Not much detail to go on so I'll assume that the code you are trying to
execute is server side and em is your entity manager.

You may want to proof everything else is working by returning a static list
instead of executing a query.
Then look at the initializer for EMF. Something is going wrong there.


On Wed, Jun 1, 2011 at 1:35 PM, Pavel Byles pavelby...@gmail.com wrote:

 Anyone?

 On Tue, May 31, 2011 at 10:33 PM, Pavel Byles pavelby...@gmail.comwrote:

 Trying to get RequestFactory to work but I am getting:

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

 at the line that contains this code:

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


 Anyone have any ideas?

 --
 -Pav




 --
 -Pav

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




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

-- 
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: Reflection Class Generator

2011-06-01 Thread Magno Machado
I consider generators as a kind of reflection. It is restricted to compile
time, I know, but you still have full access to all the information about
your classes.

It can succefully replace traditional reflection most of the times, IMHO.
See for exemple GWT-RPC, RequestFactory or the editors framework, these sort
of things would usually be implemented with runtime reflection if possible,
but works pretty well in GWT

On Tue, May 31, 2011 at 12:20 PM, Adolfo Panizo Touzon 
adolfo.pan...@gmail.com wrote:

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

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

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

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




-- 
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: Hierachy of autobean for state serialization

2011-06-01 Thread Panam
Can sombody just comment on this? I have a decision to make

Related to 2): is polymorphism indeed impossible with autobeans so
 that I lose subtype specifics when serialzing lists of objects with
 different subypes (but a common supertype of course)?

Thanks
panam

-- 
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: Reflection Class Generator

2011-06-01 Thread Bademus -
Agreed with you. Is there any bugreport\proposal this feature?
It was extremely useful to have something like this:

public abstract class PersonListEditorT implements HasRequestContextT, 
... {
   private RequestContext reqCtx;
   //used internaly 
   private void createNewEntity() {
  T clazz = (ClassT) ((ParameterizedType) 
getClass().getGenericSuperclass()).getActualTypeArguments()[0];
reqCtx.create( clazz ); //it is impossible without reflection just 
as other trics that let you reuse code
   } 

   @Override
   public void setRequestContext(RequestContext reqCtx) {
  this.reqCtx = reqCtx;
   }
}

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/aHBUNFh3Y3ZocXNK.
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: Reflection Class Generator

2011-06-01 Thread Bademus -
Not so long ago I was interested in gwt 
reflectionshttp://stackoverflow.com/questions/6083578/gwt-invoking-method-by-name.
 
But i solve my problem by code duplication ...
Waiting for code releasing.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/d2JOcWJEbDh3QzhK.
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: Hierachy of autobean for state serialization

2011-06-01 Thread Patrick Julien
Honestly, this is all gibberish to me.  Why are you even doing this?
RequestFactory offers you a way to encode/decode your data, supports
polymorphism, etc.

Intro to requestfactory here:

http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html

Keep in mind here that the entity
(http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#entities),
doesn't actually have to be a JPA entity.



On Wed, Jun 1, 2011 at 6:59 PM, Panam pandem...@googlemail.com wrote:
 Can sombody just comment on this? I have a decision to make

 Related to 2): is polymorphism indeed impossible with autobeans so
  that I lose subtype specifics when serialzing lists of objects with
  different subypes (but a common supertype of course)?

 Thanks
 panam

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



Performance Differences IE 8 Vs FF 3.x

2011-06-01 Thread Mittal
I have one particular use case when there is significant difference in
terms of response time between IE8 Vs FF 3.x

IE 8 = 25-35 seconds response time
FF 3.x = 5 - 8 seconds response time.

Rest of the application seems to be OK in IE 8.

In this particular use case, I am making 1 RPC which in data access
layer makes 5 database calls and returns the data to java class that
corresponds to ui.xml  Java class then populates the data returned
into 4 list boxes and 1 suggestion box- there is no additional
processing of data other than getting it from data access layer. The
data is returned from data access layer pretty fast
In terms of data, 1 list box has 4000 elements and one suggestion box
has 7000 elements.

Event to above use case is selection of row from cell table and
clicking on edit button - this performs very well in FF and Chrome but
has slower performance in IE 8

Any pointers why this could be happen ?

Mittal

-- 
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: SimpleMaps Tutorial (Google Maps)

2011-06-01 Thread Juan Pablo Gardella
Is  gwt-maps.jar 1.1.0 compatible with gwt = 2.2.0. See this
threadhttp://tinyurl.com/3s85a3l

http://tinyurl.com/3s85a3lJuan

2011/6/1 spartanwil...@yahoo.com spartanwil...@yahoo.com

 Hi y'all,

 I have been trying to use the simplemaps tutorial from

 http://code.google.com/intl/pt-BR/docreader/#p=gwt-google-apiss=gwt-google-apist=MapsGettingStarted

 This is my first attempt at using a Google API in gwt. I am using gwt
 2.3.0 and the gwt-maps.jar 1.1.0 as well as the eclipse IDE.

 I have followed all the instructions in the tutorial/example to the
 best of my ability and I come up with errors:

 java.lang.ExceptionInInitializerError: null

 Caused by: java.lang.RuntimeException: Deferred binding failed for
 'com.google.gwt.maps.client.impl.MapImpl' (did you forget to inherit a
 required module?

 Caused by: java.lang.IncompatibleClassChangeError: Found interface
 com.google.gwt.core.ext.typeinfo.JClassType, but class was expected

 I have read this forum as well as many others and I see this is might
 be a common problem, but from I have found any fixes that fix my
 errors.

 I apologize if this is in the wrong section , just let me know and I
 will repost.

 Thanks,

 Will

 --
 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: RequestFactoryServlet import problem with AppEngine Connected Android Project

2011-06-01 Thread Chad
Turns out you need to configure SDK version as referenced here (the
instructions of course :-)): 
http://code.google.com/eclipse/docs/appengine_connected_android.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.



get Session values in client side

2011-06-01 Thread Rama Krishna
Hi

I have to access the server side session values in GWT. plz suggest me How
can I access?

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: Database and GWT

2011-06-01 Thread J.Ganesan
You may use the emulated JRE ( 
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html
) to model  relationships. Specifically, you can use ArrayList (one-to-
many) and HashMap (many-to-many).

J.Ganesan
www.DataStoreGwt.com



On Jun 1, 11:34 pm, purni iyer purni.i...@gmail.com wrote:
 Thnks for the replies.I used the serializable objects i.e objects on
 shared side.But found many difficulties implementing them.As in I am
 unable to set relationship one to many between my objects.I need
 suggestion with same

 On Jun 1, 11:29 pm, Barry Ard b...@ualberta.ca wrote:







  I found that EodSQL gave me the best bang for my buck (time invested
  vs usefulness).

  Download fromhttp://java.net/projects/eodsql/downloads

  and read tutorial.html in the docs directory.

  See the developers bloghttp://lemnik.wordpress.com/?s=eodsql
  t
  Good luck,
  Barry

  On Jun 1, 12:14 pm, purni iyer purni.i...@gmail.com wrote:

   hello,
   Can any one suggest me which method of applying database with GWT is
   the best.I have few options
   JDO
   JSON
   Objectifiers

   Please suggest
   Purnima

-- 
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: EMF Error

2011-06-01 Thread Pavel Byles
Thanks for the help.
Checking my EMF code made me realize I was missing the persistence.xml file.

Once I put that in everything worked!

On Wed, Jun 1, 2011 at 3:46 PM, A. Stevko andy.ste...@gmail.com wrote:

 Not sure this is the best forum (server side issue vs client side forum)
 for your question but I'll give it a go...

 Not much detail to go on so I'll assume that the code you are trying to
 execute is server side and em is your entity manager.

 You may want to proof everything else is working by returning a static list
 instead of executing a query.
 Then look at the initializer for EMF. Something is going wrong there.


 On Wed, Jun 1, 2011 at 1:35 PM, Pavel Byles pavelby...@gmail.com wrote:

 Anyone?

 On Tue, May 31, 2011 at 10:33 PM, Pavel Byles pavelby...@gmail.comwrote:

 Trying to get RequestFactory to work but I am getting:

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

 at the line that contains this code:

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


 Anyone have any ideas?

 --
 -Pav




 --
 -Pav

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




 --
 -- A. Stevko
 ===
 If everything seems under control, you're just not going fast enough. M.
 Andretti





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




-- 
-Pav

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



[gwt-contrib] Re: Add SafeUri type, similar to SafeHtml but for values in a URL attribute context. (issue1380806)

2011-06-01 Thread t . broyer

On 2011/06/01 04:48:04, xtof wrote:

On 2011/06/01 00:10:58, tbroyer wrote:
 On 2011/05/31 23:38:17, xtof wrote:
  My apologies dropping the response on this thread (I'd missed the

last

  question and had assumed this was good to submit).
 
  Also, I didn't realize that I actually need to fetch and submit

this patch

  (I'm not part of GWT team proper and wasn't familiar with the

process for

  changes from external developers).

 No problem.

 Otherwise, proposed changes SGTM.



I can't seem to upload an updated patch set for this issue (presumably

since you

created it).  I'll mail you the patch set separately.


I hope I didn't mess things up during the merge, as I couldn't simply
upload the patch to Rietveld (when you create an issue with
git-cl/upload.py, it appears that you cannot update it manually
afterwards; and I couldn't find an option to upload.py to give it the
patch file either).
Alternatively, you could create another issue in Rietveld…

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

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


[gwt-contrib] Add a test to RequestFactoryInterfaceValidator that the findFoo() domain (issue1453803)

2011-06-01 Thread bobv

Reviewers: rjrjr,


http://gwt-code-reviews.appspot.com/1453803/diff/1/user/test/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidatorTest.java
File
user/test/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidatorTest.java
(right):

http://gwt-code-reviews.appspot.com/1453803/diff/1/user/test/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidatorTest.java#newcode281
user/test/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidatorTest.java:281:
interface SkipValidationContext extends RequestContext {
Re-sorted the file.

Description:
Add a test to RequestFactoryInterfaceValidator that the findFoo() domain
method is static.
http://code.google.com/p/google-web-toolkit/issues/detail?id=6428
Patch by: bobv
Review by: rjrjr
Reported by: zundel


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

Affected files:
  M  
user/src/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidator.java
  M  
user/test/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidatorTest.java



Index:  
user/src/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidator.java

===
---  
user/src/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidator.java	 
(revision 10245)
+++  
user/src/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidator.java	 
(working copy)

@@ -1077,6 +1077,9 @@
 +  cannot be used as the argument to %s(%s), print(keyType),
 findMethod.getName(), print(findMethod.getArgumentTypes()[0]));
   }
+  if (!findMethod.isDeclaredStatic()) {
+logger.poison(The %s method must be static, findMethodName);
+  }
 } else {
   logger.poison(There is no %s method in type %s that returns %2$s,
   findMethodName, print(domainType));
Index:  
user/test/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidatorTest.java

===
---  
user/test/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidatorTest.java	 
(revision 10245)
+++  
user/test/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidatorTest.java	 
(working copy)

@@ -62,12 +62,10 @@
   return 0;
 }
   }
-
   @ProxyFor(ClinitEntity.class)
   interface ClinitEntityProxy extends EntityProxy {
 Object OBJECT = new Object();
   }
-
   @Service(ClinitEntity.class)
   interface ClinitRequestContext extends RequestContext {
 Object OBJECT = new Object();
@@ -128,6 +126,30 @@
 java.sql.Date getSqlDate();
   }

+  /**
+   * Tests that the validator reports non-static finder methods.
+   */
+  static class EntityWithInstanceFind {
+public String getId() {
+  return null;
+}
+
+public int getVersion() {
+  return 0;
+}
+
+/**
+ * This method should be static.
+ */
+EntityWithInstanceFind findEntityWithInstanceFind(String key) {
+  return null;
+}
+  }
+
+  @ProxyFor(EntityWithInstanceFind.class)
+  interface EntityWithInstanceFindProxy extends EntityProxy {
+  }
+
   class Foo {
   }

@@ -246,21 +268,6 @@
   @Service(Domain.class)
   interface ServiceRequestMissingMethod extends RequestContext {
 RequestInteger doesNotExist(int a);
-  }
-
-  @Service(Domain.class)
-  interface SkipValidationContext extends RequestContext {
-@SkipInterfaceValidation
-RequestInteger doesNotExist(int a);
-
-@SkipInterfaceValidation
-RequestLong foo(int a);
-  }
-
-  @Service(Domain.class)
-  interface SkipValidationProxy extends ValueProxy {
-@SkipInterfaceValidation
-boolean doesNotExist();
   }

   @Service(Domain.class)
@@ -270,6 +277,21 @@
 DomainProxyMissingAnnotation getDomainProxyMissingAnnotation();
   }

+  @Service(Domain.class)
+  interface SkipValidationContext extends RequestContext {
+@SkipInterfaceValidation
+RequestInteger doesNotExist(int a);
+
+@SkipInterfaceValidation
+RequestLong foo(int a);
+  }
+
+  @Service(Domain.class)
+  interface SkipValidationProxy extends ValueProxy {
+@SkipInterfaceValidation
+boolean doesNotExist();
+  }
+
   @ProxyFor(Domain.class)
   @ProxyForName(Domain)
   @Service(Domain.class)
@@ -294,8 +316,7 @@
   static class Value {
   }

-  static class VisibleErrorContext extends
-  RequestFactoryInterfaceValidator.ErrorContext {
+  static class VisibleErrorContext extends  
RequestFactoryInterfaceValidator.ErrorContext {

 final ListString logs;

 public VisibleErrorContext(Logger logger) {
@@ -365,6 +386,12 @@
 assertTrue(v.isPoisoned());
   }

+  public void testFindMustBeStatic() {
+v.validateEntityProxy(EntityWithInstanceFindProxy.class.getName());
+assertTrue(v.isPoisoned());
+assertTrue(errors.logs.contains(The findEntityWithInstanceFind method  
must 

[gwt-contrib] Re: A SupportValidation class to make it easy to define a PRC method so (issue1443810)

2011-06-01 Thread rchandia

LGTM.

On 2011/05/28 15:58:24, Nick Chalko wrote:



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

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


[gwt-contrib] Use identity semantics when canonicalizing JsonSplittable instances. (issue1451805)

2011-06-01 Thread bobv

Reviewers: rjrjr,

Description:
Use identity semantics when canonicalizing JsonSplittable instances.
This is necessary to support Android, where the org.json arrays appear
to have value-based equality.
http://code.google.com/p/google-web-toolkit/issues/detail?id=6390
Patch by: bobv
Review by: rjrjr


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

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


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

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

+import com.google.gwt.core.client.impl.WeakMapping;
 import com.google.web.bindery.autobean.shared.Splittable;
 import com.google.web.bindery.autobean.shared.impl.HasSplittable;
 import com.google.web.bindery.autobean.shared.impl.StringQuoter;
@@ -23,27 +24,17 @@
 import org.json.JSONException;
 import org.json.JSONObject;

-import java.lang.ref.Reference;
-import java.lang.ref.WeakReference;
 import java.util.Arrays;
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
-import java.util.WeakHashMap;

 /**
  * Uses the org.json packages to slice and dice request payloads.
  */
 public class JsonSplittable implements Splittable, HasSplittable {
-
-  /**
-   * Ensures that the same JsonSplittable will be returned for a given  
backing

-   * JSONObject.
-   */
-  private static final MapObject, ReferenceJsonSplittable canonical =
-  new WeakHashMapObject, ReferenceJsonSplittable();

   public static JsonSplittable create() {
 return new JsonSplittable(new JSONObject());
@@ -306,13 +297,19 @@
 if (JSONObject.NULL.equals(object)) {
   return null;
 }
-ReferenceJsonSplittable ref = canonical.get(object);
-JsonSplittable seen = ref == null ? null : ref.get();
+/*
+ * Maintain a 1:1 mapping between object instances and JsonSplittables.
+ * Doing this with a WeakHashMap doesn't work on Android, since its  
org.json

+ * arrays appear to have value-based equality.
+ */
+JsonSplittable seen = (JsonSplittable) WeakMapping.get(object,  
JsonSplittable.class.getName());

 if (seen == null) {
   if (object instanceof JSONObject) {
 seen = new JsonSplittable((JSONObject) object);
+WeakMapping.set(object, JsonSplittable.class.getName(), seen);
   } else if (object instanceof JSONArray) {
 seen = new JsonSplittable((JSONArray) object);
+WeakMapping.set(object, JsonSplittable.class.getName(), seen);
   } else if (object instanceof String) {
 seen = new JsonSplittable(object.toString());
   } else if (object instanceof Number) {
@@ -322,7 +319,6 @@
   } else {
 throw new RuntimeException(Unhandled type  + object.getClass());
   }
-  canonical.put(object, new WeakReferenceJsonSplittable(seen));
 }
 return seen;
   }


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


[gwt-contrib] Re: Use identity semantics when canonicalizing JsonSplittable instances. (issue1451805)

2011-06-01 Thread rjrjr

LGTM

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

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


[gwt-contrib] Re: Add a test to RequestFactoryInterfaceValidator that the findFoo() domain (issue1453803)

2011-06-01 Thread rjrjr

LGTM

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

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


[gwt-contrib] Re: Convert samples/mobilewebapp to use maven. This paves the way to converting the sample to use GI... (issue1450809)

2011-06-01 Thread rjrjr

Can I ask for a fast track review on this? Given all the moves I'd like
to get it in quickly.

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

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


[gwt-contrib] Re: Convert samples/mobilewebapp to use maven. This paves the way to converting the sample to use GI... (issue1450809)

2011-06-01 Thread rchandia


http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt
File samples/mobilewebapp/README-MAVEN.txt (right):

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt#newcode24
samples/mobilewebapp/README-MAVEN.txt:24: select Expenses.
s/Expenses/MobileWebApp/ ?

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt#newcode34
samples/mobilewebapp/README-MAVEN.txt:34: - To load a set of initial
data choose: LoadExpensesDB.html
Remove. There is a single entry point.

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt#newcode36
samples/mobilewebapp/README-MAVEN.txt:36: - To run the Expenses
Application choose: Expenses.html
Remove.

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt#newcode39
samples/mobilewebapp/README-MAVEN.txt:39: ExpensesMobile.html
Remove.

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/build.xml
File samples/mobilewebapp/build.xml (right):

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/build.xml#newcode1
samples/mobilewebapp/build.xml:1: project name=mobilewebapp
default=build basedir=.
A better default would be source. samples/build.xml uses the source
target when building this sample as it makes no sense to build it,
being a Maven project.

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java
File
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java
(right):

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java#newcode29
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java:29:
public class AppCacheLinker extends SimpleAppCacheLinker {
The problem with having this class alongside src/main/java is that the
class then ends up being shipped to the server (that is, it ends in the
packaged war).

The larger questions is how to handle GWTC-only dependencies in maven
(i.e. custom linkers, generators, etc.) Talking with @drfibonacci it
seems the approach will involve a muti-pom project, but if it works as
it is now, I do not think we should make this a showstopper.

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

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


[gwt-contrib] Re: Convert samples/mobilewebapp to use maven. This paves the way to converting the sample to use GI... (issue1450809)

2011-06-01 Thread rchandia

LGTM.
On 2011/06/01 16:53:38, rchandia wrote:

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt

File samples/mobilewebapp/README-MAVEN.txt (right):



http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt#newcode24

samples/mobilewebapp/README-MAVEN.txt:24: select Expenses.
s/Expenses/MobileWebApp/ ?



http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt#newcode34

samples/mobilewebapp/README-MAVEN.txt:34: - To load a set of initial

data

choose: LoadExpensesDB.html
Remove. There is a single entry point.



http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt#newcode36

samples/mobilewebapp/README-MAVEN.txt:36: - To run the Expenses

Application

choose: Expenses.html
Remove.



http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt#newcode39

samples/mobilewebapp/README-MAVEN.txt:39: ExpensesMobile.html
Remove.



http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/build.xml

File samples/mobilewebapp/build.xml (right):



http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/build.xml#newcode1

samples/mobilewebapp/build.xml:1: project name=mobilewebapp

default=build

basedir=.
A better default would be source. samples/build.xml uses the

source target

when building this sample as it makes no sense to build it, being a

Maven

project.



http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java

File


samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java

(right):



http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java#newcode29

samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java:29:

public class AppCacheLinker extends SimpleAppCacheLinker {
The problem with having this class alongside src/main/java is that the

class

then ends up being shipped to the server (that is, it ends in the

packaged war).


The larger questions is how to handle GWTC-only dependencies in maven

(i.e.

custom linkers, generators, etc.) Talking with @drfibonacci it seems

the

approach will involve a muti-pom project, but if it works as it is

now, I do not

think we should make this a showstopper.




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

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


[gwt-contrib] Re: Convert samples/mobilewebapp to use maven. This paves the way to converting the sample to use GI... (issue1450809)

2011-06-01 Thread rjrjr

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

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


[gwt-contrib] Re: Convert samples/mobilewebapp to use maven. This paves the way to converting the sample to use GI... (issue1450809)

2011-06-01 Thread rjrjr

Thanks, submitting.


http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt
File samples/mobilewebapp/README-MAVEN.txt (right):

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt#newcode24
samples/mobilewebapp/README-MAVEN.txt:24: select Expenses.
Changed it to Select the directory containing this file, trying to
keep thing generic.

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt#newcode34
samples/mobilewebapp/README-MAVEN.txt:34: - To load a set of initial
data choose: LoadExpensesDB.html
On 2011/06/01 16:53:38, rchandia wrote:

Remove. There is a single entry point.


Done.

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt#newcode36
samples/mobilewebapp/README-MAVEN.txt:36: - To run the Expenses
Application choose: Expenses.html
On 2011/06/01 16:53:38, rchandia wrote:

Remove.


Done.

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/README-MAVEN.txt#newcode39
samples/mobilewebapp/README-MAVEN.txt:39: ExpensesMobile.html
On 2011/06/01 16:53:38, rchandia wrote:

Remove.


Done.

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/build.xml
File samples/mobilewebapp/build.xml (right):

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/build.xml#newcode1
samples/mobilewebapp/build.xml:1: project name=mobilewebapp
default=build basedir=.
On 2011/06/01 16:53:38, rchandia wrote:

A better default would be source. samples/build.xml uses the

source target

when building this sample as it makes no sense to build it, being a

Maven

project.


Done.

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/pom.xml
File samples/mobilewebapp/pom.xml (right):

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/pom.xml#newcode35
samples/mobilewebapp/pom.xml:35: repository
Deleted the gae staging block per offline feedback from Dave.

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java
File
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java
(right):

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java#newcode29
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java:29:
public class AppCacheLinker extends SimpleAppCacheLinker {
Ah, I see. Thanks for the explanation.

@drfibonacci, my inclination is to leave this one in your court. The
status quo strikes me as good enough for a sample, at least for now.
That said, this sample is trying to be as correct as it can. If you have
bandwidth to make it right, I'll work with you to get the fixes in.

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

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


[gwt-contrib] Add SafeUri type, similar to SafeHtml but for values in a URL attribute context. (issue1447812)

2011-06-01 Thread xtof

Reviewers: tbroyer, jlabanca, jat, skybrian,

Description:
Add SafeUri type, similar to SafeHtml but for values in a URL attribute
context.

Support SafeUri-typed arguments in SafeHtmlTemplates.

Also added a few overloads in c.g.g.user.client.

Note that this is a breaking change in the sense that DataResource and
ImageResource have a new getSafeUri method, as well as overloaded
constructors
taking URIs in the form of SafeUri.

Patch by: t.bro...@gmail.com
Fixes issues: 6145


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

Affected files:
  M tools/api-checker/config/gwt23_24userApi.conf
  M user/src/com/google/gwt/cell/client/ImageResourceCell.java
  M user/src/com/google/gwt/resources/Resources.gwt.xml
  M user/src/com/google/gwt/resources/client/DataResource.java
  M user/src/com/google/gwt/resources/client/ImageResource.java
  A user/src/com/google/gwt/resources/client/impl/DataResourcePrototype.java
  M  
user/src/com/google/gwt/resources/client/impl/ExternalTextResourcePrototype.java
  M  
user/src/com/google/gwt/resources/client/impl/ImageResourcePrototype.java

  M user/src/com/google/gwt/resources/css/Spriter.java
  M user/src/com/google/gwt/resources/rg/DataResourceGenerator.java
  M user/src/com/google/gwt/resources/rg/ExternalTextResourceGenerator.java
  M user/src/com/google/gwt/resources/rg/ImageResourceGenerator.java
  M  
user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java

  M user/src/com/google/gwt/safehtml/shared/SafeHtmlUtils.java
  A user/src/com/google/gwt/safehtml/shared/SafeUri.java
  A user/src/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java
  A user/src/com/google/gwt/safehtml/shared/SafeUriString.java
  M user/src/com/google/gwt/safehtml/shared/UriUtils.java
  M user/src/com/google/gwt/user/client/ui/AbstractImagePrototype.java
  M user/src/com/google/gwt/user/client/ui/FormPanel.java
  M user/src/com/google/gwt/user/client/ui/Frame.java
  M user/src/com/google/gwt/user/client/ui/Image.java
  M user/src/com/google/gwt/user/client/ui/ImageResourceRenderer.java
  M user/src/com/google/gwt/user/client/ui/impl/ClippedImageImpl.java
  M user/src/com/google/gwt/user/client/ui/impl/ClippedImageImplIE6.java
  M user/src/com/google/gwt/user/client/ui/impl/ClippedImagePrototype.java
  A  
user/super/com/google/gwt/safehtml/super/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java

  M user/test/com/google/gwt/resources/client/ImageResourceTest.java
  M user/test/com/google/gwt/safehtml/client/SafeHtmlTemplatesTest.java
  A user/test/com/google/gwt/safehtml/shared/GwtUriUtilsTest.java
  A user/test/com/google/gwt/safehtml/shared/UriUtilsTest.java
  M user/test/com/google/gwt/user/client/ui/ImageTest.java
  M  
user/test/com/google/gwt/user/client/ui/impl/ClippedImagePrototypeTest.java



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


[gwt-contrib] Re: Add SafeUri type, similar to SafeHtml but for values in a URL attribute context. (issue1380806)

2011-06-01 Thread Christoph Kern
On Wed, Jun 1, 2011 at 03:09, t.bro...@gmail.com wrote:

 On 2011/06/01 04:48:04, xtof wrote:

 On 2011/06/01 00:10:58, tbroyer wrote:
  On 2011/05/31 23:38:17, xtof wrote:
   My apologies dropping the response on this thread (I'd missed the

 last

   question and had assumed this was good to submit).
  
   Also, I didn't realize that I actually need to fetch and submit

 this patch

   (I'm not part of GWT team proper and wasn't familiar with the

 process for

   changes from external developers).
 
  No problem.
 
  Otherwise, proposed changes SGTM.


  I can't seem to upload an updated patch set for this issue (presumably

 since you

 created it).  I'll mail you the patch set separately.


 I hope I didn't mess things up during the merge, as I couldn't simply
 upload the patch to Rietveld (when you create an issue with
 git-cl/upload.py, it appears that you cannot update it manually
 afterwards; and I couldn't find an option to upload.py to give it the
 patch file either).


How annoying; this doesn't make collaborative editing particularly easy :)

Anyway, the merge seems to have come pretty close, though there were a few
differences (some of the changes that I made to appease checkstyle didn't
take, and one of the tests in SafeHtmlTemplatesTest seems to have gotten
duplicated.  I've downloaded your patch set and applied it to a clean client
at the same base CL; the diff of what I have vs what I got from your patch
set is appended below.



 Alternatively, you could create another issue in Rietveld…

 Done: http://gwt-code-reviews.appspot.com/1447812




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


diff --git
a/google3/third_party/java_src/gwt/svn/trunk/user/src/com/google/gwt/user/client/ui/impl/ClippedImageImplIE6.java
b/google3/third_party/java_src/gwt/svn/trunk/user/src/com/google/gwt/user/client/ui/impl/ClippedImageImplIE6.java
index d69fe3b..5d623ca 100644
---
a/google3/third_party/java_src/gwt/svn/trunk/user/src/com/google/gwt/user/client/ui/impl/ClippedImageImplIE6.java
+++
b/google3/third_party/java_src/gwt/svn/trunk/user/src/com/google/gwt/user/client/ui/impl/ClippedImageImplIE6.java
@@ -132,4 +132,12 @@ public class ClippedImageImplIE6 extends
ClippedImageImpl {

 return SafeHtmlUtils.fromTrustedString(clippedImgHtml);
   }
+
+  @Override
+  public Element getImgElement(Image image) {
+if (!isIE6()) {
+  return super.getImgElement(image);
+}
+return image.getElement().getFirstChildElement();
+  }
 }
diff --git
a/google3/third_party/java_src/gwt/svn/trunk/user/test/com/google/gwt/safehtml/client/SafeHtmlTemplatesTest.java
b/google3/third_party/java_src/gwt/svn/trunk/user/test/com/google/gwt/safehtml/client/SafeHtmlTemplatesTest.java
index bc80a97..4721856 100644
---
a/google3/third_party/java_src/gwt/svn/trunk/user/test/com/google/gwt/safehtml/client/SafeHtmlTemplatesTest.java
+++
b/google3/third_party/java_src/gwt/svn/trunk/user/test/com/google/gwt/safehtml/client/SafeHtmlTemplatesTest.java
@@ -110,6 +110,16 @@ public class SafeHtmlTemplatesTest extends GWTTestCase
{
 Assert.assertEquals(
 spana href=\#\b + HTML_MARKUP + /b/a/span,
 templates.templateWithUriAttribute(
+BAD_URL,
SafeHtmlUtils.fromSafeConstant(HTML_MARKUP)).asString());
+// UriUtils.fromString: sanitized by fromString
+Assert.assertEquals(
+spana href=\ + GOOD_URL_ENCODED + \b + HTML_MARKUP
++ /b/a/span,
+templates.templateWithUriAttribute(
+UriUtils.fromString(GOOD_URL),
SafeHtmlUtils.fromSafeConstant(HTML_MARKUP)).asString());
+Assert.assertEquals(
+spana href=\#\b + HTML_MARKUP + /b/a/span,
+templates.templateWithUriAttribute(
 UriUtils.fromString(BAD_URL),
SafeHtmlUtils.fromSafeConstant(HTML_MARKUP)).asString());
 // UriUtils.fromTrustedString: not sanitized
 Assert.assertEquals(
diff --git
a/google3/third_party/java_src/gwt/svn/trunk/user/test/com/google/gwt/safehtml/shared/GwtUriUtilsTest.java
b/google3/third_party/java_src/gwt/svn/trunk/user/test/com/google/gwt/safehtml/shared/GwtUriUtilsTest.java
index 4329e82..5c891dd 100644
---
a/google3/third_party/java_src/gwt/svn/trunk/user/test/com/google/gwt/safehtml/shared/GwtUriUtilsTest.java
+++
b/google3/third_party/java_src/gwt/svn/trunk/user/test/com/google/gwt/safehtml/shared/GwtUriUtilsTest.java
@@ -34,13 +34,13 @@ public class GwtUriUtilsTest extends GWTTestCase {
 StringBuilder sb = new StringBuilder(UriUtils.DONT_NEED_ENCODING);
 final int upcaseOffset = 'A' - 'a';
 for (char c = 'a'; c = 'z'; c++) {
-  sb.append(c).append((char) (c + upcaseOffset));
+  sb.append(c).append((char)(c + upcaseOffset));
 }
 for (char c = '0'; c = '9'; c++) {
   sb.append(c);
 }
 final String expected = sb.toString();
-
+
 assertEquals(expected, UriUtils.encode(expected));
   }

diff --git
a/google3/third_party/java_src/gwt/svn/trunk/user/test/com/google/gwt/safehtml/shared/UriUtilsTest.java

[gwt-contrib] Re: Add SafeUri type, similar to SafeHtml but for values in a URL attribute context. (issue1447812)

2011-06-01 Thread xtof

This is a continuation of the review of
http://gwt-code-reviews.appspot.com/1380806, authored by
http://gwt-code-reviews.appspot.com/user/tbroyer, to capture minor
changes made by the submitter.

For the main code review discussion, see issue 1380806.


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

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


[gwt-contrib] Re: Convert samples/mobilewebapp to use maven. This paves the way to converting the sample to use GI... (issue1450809)

2011-06-01 Thread larsenje


http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/pom.xml
File samples/mobilewebapp/pom.xml (right):

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/pom.xml#newcode87
samples/mobilewebapp/pom.xml:87: /dependency
I don't believe you want to include gwt-dev as a dependency. That should
be taken care of for you by the gwt-maven-plugin.

http://gwt-code-reviews.appspot.com/1450809/diff/1/samples/mobilewebapp/pom.xml#newcode186
samples/mobilewebapp/pom.xml:186: /dependency
Why not Gin 1.5?

Also Gin 1.5 should bring Guice 3 along with it, so you shouldn't need
to specify a Guice dependency. (gin 1.5 also requires
Guice-assitedinject but all that should be taken care of for you by the
Gin pom.xml)

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

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


[gwt-contrib] Fix samples build file for mobilewebapp target (issue1449809)

2011-06-01 Thread rchandia

Reviewers: rjrjr, fabbott,

Description:
Fix samples build file for mobilewebapp target


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

Affected files:
  M samples/build.xml


Index: samples/build.xml
===
--- samples/build.xml   (revision 10253)
+++ samples/build.xml   (working copy)
@@ -35,7 +35,7 @@
   /target

   target name=mobilewebapp description=Build mobile web app
-gwt.ant dir=mobilewebapp target=source+libs /
+gwt.ant dir=mobilewebapp target=source /
   /target

   target name=showcase description=Build showcase


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


[gwt-contrib] Re: Fix samples build file for mobilewebapp target (issue1449809)

2011-06-01 Thread jlabanca

LGTM

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

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


[gwt-contrib] Move the SimpleAppCacheLinker out to sample land, it's not quite ready. (issue1447813)

2011-06-01 Thread rjrjr

Reviewers: rchandia,

Description:
Move the SimpleAppCacheLinker out to sample land, it's not quite ready.


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

Affected files:
  D dev/core/src/com/google/gwt/core/linker/SimpleAppCacheLinker.java
  D dev/core/test/com/google/gwt/core/linker/SimpleAppCacheLinkerTest.java
  M samples/mobilewebapp/README-MAVEN.txt
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/Core.gwt.xml
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinker.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java
  A  
samples/mobilewebapp/src/test/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinkerTest.java

  M user/test/com/google/gwt/core/ext/LinkerSuite.java


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


[gwt-contrib] Re: Move the SimpleAppCacheLinker out to sample land, it's not quite ready. (issue1447813)

2011-06-01 Thread rjrjr

Ready for review.

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

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


[gwt-contrib] Re: Move the SimpleAppCacheLinker out to sample land, it's not quite ready. (issue1447813)

2011-06-01 Thread rchandia

LGTM
On 2011/06/01 18:51:58, rjrjr wrote:

Ready for review.




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

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


[gwt-contrib] Re: Adding additional testing for GWT RPC. Some custom serialized objects (issue1441804)

2011-06-01 Thread unnurg

LGTM

On 2011/05/12 23:04:46, Stephen Chenney wrote:

http://gwt-code-reviews.appspot.com/1441804/diff/1/user/test/com/google/gwt/user/client/rpc/LoggingRPCTest.java

File user/test/com/google/gwt/user/client/rpc/LoggingRPCTest.java

(right):


http://gwt-code-reviews.appspot.com/1441804/diff/1/user/test/com/google/gwt/user/client/rpc/LoggingRPCTest.java#newcode84

user/test/com/google/gwt/user/client/rpc/LoggingRPCTest.java:84: */
On 2011/05/12 22:07:04, tobyr wrote:
 Stale comment?



Done.




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

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


[gwt-contrib] Re: Fix samples build file for mobilewebapp target (issue1449809)

2011-06-01 Thread rchandia

Submitted as r10254

On 2011/06/01 18:46:05, jlabanca wrote:

LGTM




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

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


[gwt-contrib] Added a placeholed for sample/mobilewebapp/war. Required by source target. (issue1451806)

2011-06-01 Thread rchandia

Reviewers: jlabanca, rjrjr,

Description:
Added a placeholed for sample/mobilewebapp/war. Required by source
target.


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

Affected files:
  A samples/mobilewebapp/war/.place-holder


Index: samples/mobilewebapp/war/.place-holder
===
--- samples/mobilewebapp/war/.place-holder  (revision 0)
+++ samples/mobilewebapp/war/.place-holder  (revision 0)


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


[gwt-contrib] Re: Added a placeholed for sample/mobilewebapp/war. Required by source target. (issue1451806)

2011-06-01 Thread jlabanca

LGTM

We should put fortunes in these place holders.

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

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


[gwt-contrib] [google-web-toolkit] r10255 committed - Move the SimpleAppCacheLinker out to sample land, it's not quite ready...

2011-06-01 Thread codesite-noreply

Revision: 10255
Author:   rj...@google.com
Date: Wed Jun  1 09:26:16 2011
Log:  Move the SimpleAppCacheLinker out to sample land, it's not quite  
ready.


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

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

Added:
 /trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core
  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/Core.gwt.xml

 /trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/linker
  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinker.java

 /trunk/samples/mobilewebapp/src/test
 /trunk/samples/mobilewebapp/src/test/java
 /trunk/samples/mobilewebapp/src/test/java/com
 /trunk/samples/mobilewebapp/src/test/java/com/google
 /trunk/samples/mobilewebapp/src/test/java/com/google/gwt
 /trunk/samples/mobilewebapp/src/test/java/com/google/gwt/sample
 /trunk/samples/mobilewebapp/src/test/java/com/google/gwt/sample/core
 /trunk/samples/mobilewebapp/src/test/java/com/google/gwt/sample/core/linker
  
/trunk/samples/mobilewebapp/src/test/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinkerTest.java

Deleted:
 /trunk/dev/core/src/com/google/gwt/core/linker/SimpleAppCacheLinker.java
  
/trunk/dev/core/test/com/google/gwt/core/linker/SimpleAppCacheLinkerTest.java

Modified:
 /trunk/samples/mobilewebapp/README-MAVEN.txt
  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml
  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java

 /trunk/user/test/com/google/gwt/core/ext/LinkerSuite.java

===
--- /dev/null
+++  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/Core.gwt.xml	 
Wed Jun  1 09:26:16 2011

@@ -0,0 +1,22 @@
+!-- 
--
+!-- 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   --
+!-- 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. License for the specific language governing permissions  
and   --
+!-- limitations under the  
License. --

+
+!-- Types and resources required to support primitive system  
operation.--
+!-- 
--
+!-- Types from this module are visible to and imported into user  
code. --
+!-- Every module should directly or indirectly inherit this  
module.--
+!-- 
--

+module
+  inherits name=com.google.gwt.core.Core /
+/module
===
--- /dev/null
+++  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinker.java	 
Wed Jun  1 09:26:16 2011

@@ -0,0 +1,183 @@
+/*
+ * 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.sample.core.linker;
+
+import com.google.gwt.core.ext.LinkerContext;
+import com.google.gwt.core.ext.TreeLogger;
+import com.google.gwt.core.ext.UnableToCompleteException;
+import com.google.gwt.core.ext.linker.AbstractLinker;
+import com.google.gwt.core.ext.linker.Artifact;
+import com.google.gwt.core.ext.linker.ArtifactSet;
+import com.google.gwt.core.ext.linker.EmittedArtifact;
+import com.google.gwt.core.ext.linker.LinkerOrder;
+import com.google.gwt.core.ext.linker.LinkerOrder.Order;
+import com.google.gwt.core.ext.linker.impl.SelectionInformation;
+
+import java.util.Arrays;
+import java.util.Date;
+
+/**
+ * Linker for public path resources in the Application Cache.
+ * p
+ * strongWarning/strongThis linker sends 

[gwt-contrib] [google-web-toolkit] r10254 committed - Fix samples build file for mobilewebapp target...

2011-06-01 Thread codesite-noreply

Revision: 10254
Author:   rchan...@google.com
Date: Wed Jun  1 08:59:33 2011
Log:  Fix samples build file for mobilewebapp target

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

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

Modified:
 /trunk/samples/build.xml

===
--- /trunk/samples/build.xmlFri May  6 08:20:47 2011
+++ /trunk/samples/build.xmlWed Jun  1 08:59:33 2011
@@ -35,7 +35,7 @@
   /target

   target name=mobilewebapp description=Build mobile web app
-gwt.ant dir=mobilewebapp target=source+libs /
+gwt.ant dir=mobilewebapp target=source /
   /target

   target name=showcase description=Build showcase

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


[gwt-contrib] Re: Added a placeholed for sample/mobilewebapp/war. Required by source target. (issue1451806)

2011-06-01 Thread rchandia

[+1!]

Submitted as r10256

On 2011/06/01 19:35:53, jlabanca wrote:

LGTM



We should put fortunes in these place holders.




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

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


[gwt-contrib] Re: Added a placeholed for sample/mobilewebapp/war. Required by source target. (issue1451806)

2011-06-01 Thread rjrjr

Sorry, what does this fix?

On 2011/06/01 19:48:02, rchandia wrote:

[+1!]



Submitted as r10256



On 2011/06/01 19:35:53, jlabanca wrote:
 LGTM

 We should put fortunes in these place holders.




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

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


[gwt-contrib] Re: Added a placeholed for sample/mobilewebapp/war. Required by source target. (issue1451806)

2011-06-01 Thread Rodrigo Chandia
Fixes ant build breakage.

The source target used for samples/mobilewebapp and  samples/expenses looks
for content in war/. For Expenses, expenses/war/.place-holder fulfills that
requirement. I added the same thing to mobilewebapp to fix the ant build.

A better fix is to test for the existence of a war folder before trying to
copy it. I wanted to fix the build quickly, though.

El 1 de junio de 2011 15:49, rj...@google.com escribió:

 Sorry, what does this fix?


 On 2011/06/01 19:48:02, rchandia wrote:

 [+1!]


  Submitted as r10256


  On 2011/06/01 19:35:53, jlabanca wrote:
  LGTM
 
  We should put fortunes in these place holders.




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


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

[gwt-contrib] Re: Convert samples/mobilewebapp to use maven. This paves the way to converting the sample to use GI... (issue1450809)

2011-06-01 Thread rjrjr

r10253

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

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


[gwt-contrib] Re: Move the SimpleAppCacheLinker out to sample land, it's not quite ready. (issue1447813)

2011-06-01 Thread rjrjr

r10255

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

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


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

2011-06-01 Thread zundel

You introduced a new concept of a volatile polymorphism.  Please
document it a little better than a comment hidden away that says,
Magic...

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

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


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

2011-06-01 Thread jbrosenberg


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

http://gwt-code-reviews.appspot.com/1448808/diff/1/dev/core/src/com/google/gwt/dev/CompileModule.java#newcode147
dev/core/src/com/google/gwt/dev/CompileModule.java:147: static
UnableToCompleteException logAndTranslateException(TreeLogger logger,
Throwable e) {
This code seems to be duplicated several places, in
JavaToJavaScriptCompiler and GwtAstBuilder.  Can it be consolidated?
Maybe as part of LoggerUtils class, etc.?

http://gwt-code-reviews.appspot.com/1448808/diff/1/dev/core/src/com/google/gwt/dev/CompileModule.java#newcode194
dev/core/src/com/google/gwt/dev/CompileModule.java:194:
Add an overview comment for this method?

http://gwt-code-reviews.appspot.com/1448808/diff/1/dev/core/src/com/google/gwt/dev/CompileModule.java#newcode195
dev/core/src/com/google/gwt/dev/CompileModule.java:195: public boolean
run(final TreeLogger logger) {
It seems like the order that modules are processed is important here.
Should it be sub-modules first, then parent modules, etc.  Otherwise a
parent module will end up including the units of a sub-module, and then
if a sub-module is processed, it will have to again write a compiled
sub-module file with the same units again.  I guess, I'm not sure why
units from a sub-module can be included in a parent module, shouldn't
each sub-module contain only it's units (with possible updating to these
if needed?).  It seems like it is only writing a final top-level
compiled module file, which can contain all units that haven't been
found in any precompiled modules so far.

For instance, we wouldn't want the units for a widget library to be
separately included in each application module, instead we want to keep
all the library's units in it's own pre-compiled cache.

http://gwt-code-reviews.appspot.com/1448808/diff/1/dev/core/src/com/google/gwt/dev/CompileModule.java#newcode204
dev/core/src/com/google/gwt/dev/CompileModule.java:204:
Might be useful to add module name to the speed tracer event.

http://gwt-code-reviews.appspot.com/1448808/diff/1/dev/core/src/com/google/gwt/dev/CompileModule.java#newcode206
dev/core/src/com/google/gwt/dev/CompileModule.java:206:
SpeedTracerLogger.start(CompilerEventType.LOAD_PRECOMPILED);
compiledModuleURLs?

http://gwt-code-reviews.appspot.com/1448808/diff/1/dev/core/src/com/google/gwt/dev/CompileModule.java#newcode219
dev/core/src/com/google/gwt/dev/CompileModule.java:219: if
(compiledModule.getName().equals(moduleToCompile)) {
Don't we risk throwing away already compiled units here?  It seems like
below, for 'moduleToCompile', a fresh CompiledGwtModule is created, and
everything compiled fresh?

http://gwt-code-reviews.appspot.com/1448808/diff/1/dev/core/src/com/google/gwt/dev/CompileModule.java#newcode233
dev/core/src/com/google/gwt/dev/CompileModule.java:233: }
put in a finally block, in case an unchecked exception happens.

http://gwt-code-reviews.appspot.com/1448808/diff/1/dev/core/src/com/google/gwt/dev/CompileModule.java#newcode255
dev/core/src/com/google/gwt/dev/CompileModule.java:255: if
(!outputDir.isDirectory()  !outputDir.mkdirs()) {
don't we also need to bail altogether, in this case?

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

http://gwt-code-reviews.appspot.com/1448808/diff/1/dev/core/src/com/google/gwt/dev/CompiledGwtModule.java#newcode36
dev/core/src/com/google/gwt/dev/CompiledGwtModule.java:36:
Since this might not contain a complete set of units for a module, and
in fact can contain units of nested modules, perhaps this should be
called something like:

ModuleCompiledUnitCache (or some such)

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

http://gwt-code-reviews.appspot.com/1448808/diff/1/dev/core/src/com/google/gwt/dev/Precompile.java#newcode349
dev/core/src/com/google/gwt/dev/Precompile.java:349:
SpeedTracerLogger.start(CompilerEventType.LOAD_PRECOMPILED);
compiledModuleURLs

http://gwt-code-reviews.appspot.com/1448808/diff/1/dev/core/src/com/google/gwt/dev/Precompile.java#newcode368
dev/core/src/com/google/gwt/dev/Precompile.java:368: }
put in finally block, in case of unchecked exception

http://gwt-code-reviews.appspot.com/1448808/diff/1/dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java
File dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java (right):

http://gwt-code-reviews.appspot.com/1448808/diff/1/dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java#newcode91
dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java:91:
This is essentially a list of URL's for nested modules which are
compiled.  Consider changing name to something like:

compiledNestedGwtModuleURLs  (well I guess that's ugly).

Point is, I wasn't sure at 

[gwt-contrib] [google-web-toolkit] r10256 committed - Added a placeholed for sample/mobilewebapp/war. Required by source tar...

2011-06-01 Thread codesite-noreply

Revision: 10256
Author:   rchan...@google.com
Date: Wed Jun  1 09:39:48 2011
Log:  Added a placeholed for sample/mobilewebapp/war. Required by  
source target.


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

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

Added:
 /trunk/samples/mobilewebapp/war
 /trunk/samples/mobilewebapp/war/.place-holder

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


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

2011-06-01 Thread scottb

Added comments.


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

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


[gwt-contrib] Allow source samples to forgo having a war folder (issue1451807)

2011-06-01 Thread rchandia

Reviewers: rjrjr,

Description:
Allow source samples to forgo having a war folder
Removed war folders from expenses and mobilewebapp samples
Removed redundant task in samples's source target


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

Affected files:
  M samples/common.ant.xml
  D samples/expenses/war/.place-holder
  D samples/mobilewebapp/war/.place-holder


Index: samples/common.ant.xml
===
--- samples/common.ant.xml  (revision 10257)
+++ samples/common.ant.xml  (working copy)
@@ -38,10 +38,15 @@
 copy todir=${sample.build}/src
   fileset dir=src /
 /copy
-mkdir dir=${sample.build}/war /
-copy todir=${sample.build}/war
-  fileset dir=war excludes=WEB-INF/classes/**/
-/copy
+if
+  available file=war type=dir /
+  then
+mkdir dir=${sample.build}/war /
+copy todir=${sample.build}/war
+  fileset dir=war excludes=WEB-INF/classes/**/
+/copy
+  /then
+/if
 if
   available file=pom.xml/
   then
@@ -58,12 +63,6 @@
   available file=README.txt/
   then
 copy tofile=${sample.build}/README.txt file=README.txt/
-  /then
-/if
-if
-  available file=user-build.xml/
-  then
-copy tofile=${sample.build}/build.xml file=user-build.xml/
   /then
 /if
 if
Index: samples/expenses/war/.place-holder
===
--- samples/expenses/war/.place-holder  (revision 10257)
+++ samples/expenses/war/.place-holder  (working copy)
Index: samples/mobilewebapp/war/.place-holder
===
--- samples/mobilewebapp/war/.place-holder  (revision 10257)
+++ samples/mobilewebapp/war/.place-holder  (working copy)


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


[gwt-contrib] [google-web-toolkit] r10258 committed - Add a test to RequestFactoryInterfaceValidator that the findFoo() doma...

2011-06-01 Thread codesite-noreply

Revision: 10258
Author:   b...@google.com
Date: Wed Jun  1 10:19:05 2011
Log:  Add a test to RequestFactoryInterfaceValidator that the findFoo()  
domain

method is static.
http://code.google.com/p/google-web-toolkit/issues/detail?id=6428
Patch by: bobv
Review by: rjrjr
Reported by: zundel

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

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

Modified:
  
/trunk/user/src/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidator.java
  
/trunk/user/test/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidatorTest.java


===
---  
/trunk/user/src/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidator.java	 
Tue Apr 19 06:04:28 2011
+++  
/trunk/user/src/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidator.java	 
Wed Jun  1 10:19:05 2011

@@ -1077,6 +1077,9 @@
 +  cannot be used as the argument to %s(%s), print(keyType),
 findMethod.getName(), print(findMethod.getArgumentTypes()[0]));
   }
+  if (!findMethod.isDeclaredStatic()) {
+logger.poison(The %s method must be static, findMethodName);
+  }
 } else {
   logger.poison(There is no %s method in type %s that returns %2$s,
   findMethodName, print(domainType));
===
---  
/trunk/user/test/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidatorTest.java	 
Tue Apr 19 06:04:28 2011
+++  
/trunk/user/test/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidatorTest.java	 
Wed Jun  1 10:19:05 2011

@@ -62,12 +62,10 @@
   return 0;
 }
   }
-
   @ProxyFor(ClinitEntity.class)
   interface ClinitEntityProxy extends EntityProxy {
 Object OBJECT = new Object();
   }
-
   @Service(ClinitEntity.class)
   interface ClinitRequestContext extends RequestContext {
 Object OBJECT = new Object();
@@ -127,6 +125,30 @@
   interface DomainWithSqlDateProxy extends EntityProxy {
 java.sql.Date getSqlDate();
   }
+
+  /**
+   * Tests that the validator reports non-static finder methods.
+   */
+  static class EntityWithInstanceFind {
+public String getId() {
+  return null;
+}
+
+public int getVersion() {
+  return 0;
+}
+
+/**
+ * This method should be static.
+ */
+EntityWithInstanceFind findEntityWithInstanceFind(String key) {
+  return null;
+}
+  }
+
+  @ProxyFor(EntityWithInstanceFind.class)
+  interface EntityWithInstanceFindProxy extends EntityProxy {
+  }

   class Foo {
   }
@@ -247,6 +269,13 @@
   interface ServiceRequestMissingMethod extends RequestContext {
 RequestInteger doesNotExist(int a);
   }
+
+  @Service(Domain.class)
+  interface SkipValidationChecksReferredProxies extends ValueProxy {
+@SkipInterfaceValidation
+// still validates other proxies
+DomainProxyMissingAnnotation getDomainProxyMissingAnnotation();
+  }

   @Service(Domain.class)
   interface SkipValidationContext extends RequestContext {
@@ -262,13 +291,6 @@
 @SkipInterfaceValidation
 boolean doesNotExist();
   }
-
-  @Service(Domain.class)
-  interface SkipValidationChecksReferredProxies extends ValueProxy {
-@SkipInterfaceValidation
-// still validates other proxies
-DomainProxyMissingAnnotation getDomainProxyMissingAnnotation();
-  }

   @ProxyFor(Domain.class)
   @ProxyForName(Domain)
@@ -294,8 +316,7 @@
   static class Value {
   }

-  static class VisibleErrorContext extends
-  RequestFactoryInterfaceValidator.ErrorContext {
+  static class VisibleErrorContext extends  
RequestFactoryInterfaceValidator.ErrorContext {

 final ListString logs;

 public VisibleErrorContext(Logger logger) {
@@ -364,6 +385,12 @@
 v.validateEntityProxy(DomainWithSqlDateProxy.class.getName());
 assertTrue(v.isPoisoned());
   }
+
+  public void testFindMustBeStatic() {
+v.validateEntityProxy(EntityWithInstanceFindProxy.class.getName());
+assertTrue(v.isPoisoned());
+assertTrue(errors.logs.contains(The findEntityWithInstanceFind method  
must be static));

+  }

   /**
* Test the {@link FindRequest} context used to implement find().
@@ -378,8 +405,7 @@
*/
   public void testFollowingTypeParameters() {
 v.validateEntityProxy(HasList.class.getName());
-assertNotNull(v.getEntityProxyTypeName(HasListDomain.class.getName(),
-HasList.class.getName()));
+assertNotNull(v.getEntityProxyTypeName(HasListDomain.class.getName(),  
HasList.class.getName()));

 assertNotNull(v.getEntityProxyTypeName(Domain.class.getName(),
 ReachableOnlyThroughParamaterList.class.getName()));
 assertNotNull(v.getEntityProxyTypeName(Domain.class.getName(),
@@ -487,7 +513,8 @@
 Logger logger = Logger.getLogger();
 logger.setLevel(DUMP_PAYLOAD ? Level.ALL : Level.OFF);
 errors = new VisibleErrorContext(logger);
-v = new 

[gwt-contrib] Re: Allow source samples to forgo having a war folder (issue1451807)

2011-06-01 Thread rjrjr

LGTM

Thanks.

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

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


[gwt-contrib] Re: Resubmitting r9970 again (again) - updating Animation to use the native requestAnimationFrame, w... (issue1446812)

2011-06-01 Thread jlabanca

Committed as r10257


http://gwt-code-reviews.appspot.com/1446812/diff/3002/user/test/com/google/gwt/animation/AnimationTest.gwt.xml
File user/test/com/google/gwt/animation/AnimationTest.gwt.xml (right):

http://gwt-code-reviews.appspot.com/1446812/diff/3002/user/test/com/google/gwt/animation/AnimationTest.gwt.xml#newcode25
user/test/com/google/gwt/animation/AnimationTest.gwt.xml:25:
replace-with
class=com.google.gwt.animation.client.testing.StubAnimationSchedulerImpl
On 2011/05/27 14:04:34, tbroyer wrote:

On 2011/05/27 13:47:12, jlabanca wrote:
 On 2011/05/27 13:17:02, tbroyer wrote:
  On 2011/05/27 13:07:01, jlabanca wrote:
   On 2011/05/27 12:11:44, tbroyer wrote:
Would probably be better to somehow inject a

StubAnimationScheduler

into
Animation, rather than hack AnimationScheduler.
  
   Agreed if we had an injection framework like gin built in to

GWT. Deferred

   bindings are the closest thing we have for now.
 
  How about my proposal for protected AnimationScheduler
 getAnimationScheduler()
  { return AnimationScheduler.get(); } in Animation?
  (which you'd override in TestAnimation in the AnimationTest)

 Or maybe a protected constructor that takes an AnimationScheduler

instead?


Works for me.


Done.

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

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


[gwt-contrib] Re: Reverting r9970 due to build break. (issue1408804)

2011-06-01 Thread jlabanca

Final version committed as r10257

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

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


[gwt-contrib] Clarify some confusing code in TypeTightener (issue1446814)

2011-06-01 Thread scottb

Reviewers: jbrosenberg, zundel,



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

Affected files:
  M dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java


Index: dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java
diff --git a/dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java  
b/dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java
index  
5894420fb09afa527cefd056d487eca467369ea1..63124acb7d6ca003607bfb88f13787d2a82f772f  
100644

--- a/dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java
+++ b/dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java
@@ -560,8 +560,11 @@ public class TypeTightener {
 x = newCall;
   }

-  if (x.canBePolymorphic()) {
-// See if we can remove virtualization from this call.
+  /*
+   * Mark a call as non-polymorphic if the targeted method is the only
+   * possible dispatch, given the qualifying instance type.
+   */
+  if (x.canBePolymorphic()  !target.isAbstract()) {
 JExpression instance = x.getInstance();
 assert (instance != null);
 JReferenceType instanceType = (JReferenceType) instance.getType();
@@ -575,6 +578,7 @@ public class TypeTightener {
   return;
 }
   }
+  // The instance type is incompatible with all overrides.
 }
 x.setCannotBePolymorphic();
 madeChanges();


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


[gwt-contrib] Re: Clarify some confusing code in TypeTightener (issue1446814)

2011-06-01 Thread zundel

LGTM

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

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


[gwt-contrib] [google-web-toolkit] r10259 committed - Adding a couple of useful methods to AbstractCellTable. getColumnWidt...

2011-06-01 Thread codesite-noreply

Revision: 10259
Author:   jlaba...@google.com
Date: Wed Jun  1 10:50:41 2011
Log:  Adding a couple of useful methods to AbstractCellTable.   
getColumnWidth() can be used to access the width of a column set using  
setColumnWidth().  flush() will immediately flush pending changes into the  
view.


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

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

Modified:
 /trunk/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java
  
/trunk/user/test/com/google/gwt/user/cellview/client/AbstractCellTableTestBase.java


===
---  
/trunk/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java	 
Thu May 26 04:44:13 2011
+++  
/trunk/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java	 
Wed Jun  1 10:50:41 2011

@@ -633,6 +633,20 @@
 columnWidths.remove(column);
 refreshColumnWidths();
   }
+
+  /**
+   * Flush all pending changes to the table and render immediately.
+   *
+   * p
+   * Modifications to the table, such as adding columns or setting data,  
are not

+   * rendered immediately. Instead, changes are coalesced at the end of the
+   * current event loop to avoid rendering the table multiple times. Use  
this
+   * method to force the table to render all pending modifications  
immediately.

+   * /p
+   */
+  public void flush() {
+getPresenter().flush();
+  }

   /**
* Get the column at the specified index.
@@ -674,6 +688,17 @@
   public ColumnSortList getColumnSortList() {
 return sortList;
   }
+
+  /**
+   * Get the width of a {@link Column}.
+   *
+   * @param column the column
+   * @return the width of the column, or null if not set
+   * @see #setColumnWidth(Column, double, Unit)
+   */
+  public String getColumnWidth(ColumnT, ? column) {
+return columnWidths.get(column);
+  }

   /**
* Get the widget displayed when the table has no rows.
@@ -703,7 +728,7 @@
*   current page
*/
   public TableRowElement getRowElement(int row) {
-getPresenter().flush();
+flush();
 checkRowBounds(row);
 NodeListTableRowElement rows = getTableBodyElement().getRows();
 return rows.getLength()  row ? rows.getItem(row) : null;
===
---  
/trunk/user/test/com/google/gwt/user/cellview/client/AbstractCellTableTestBase.java	 
Thu May 26 04:44:13 2011
+++  
/trunk/user/test/com/google/gwt/user/cellview/client/AbstractCellTableTestBase.java	 
Wed Jun  1 10:50:41 2011

@@ -21,6 +21,7 @@
 import com.google.gwt.dom.client.Document;
 import com.google.gwt.dom.client.NativeEvent;
 import com.google.gwt.dom.client.TableCellElement;
+import com.google.gwt.dom.client.Style.Unit;
 import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
 import  
com.google.gwt.user.cellview.client.LoadingStateChangeEvent.LoadingState;

 import com.google.gwt.user.client.ui.HasHorizontalAlignment;
@@ -271,6 +272,28 @@
   // Expected.
 }
   }
+
+  public void testSetColumnWidth() {
+AbstractCellTableString table = createAbstractHasData(new  
TextCell());

+ColumnString, ? col0 = new MockColumnString, String();
+ColumnString, ? col1 = new MockColumnString, String();
+ColumnString, ? col2 = new MockColumnString, String();
+
+// Set a column width.
+table.setColumnWidth(col0, 100px);
+table.setColumnWidth(col1, 200.0, Unit.EM);
+assertEquals(100px, table.getColumnWidth(col0));
+
+// Some browsers return 200.0, others 200.
+assertTrue(table.getColumnWidth(col1).contains(200));
+
+// Check a column that has not been set.
+assertNull(table.getColumnWidth(col2));
+
+// Check a column that has been cleared.
+table.clearColumnWidth(col0);
+assertNull(table.getColumnWidth(col0));
+  }

   public void testSetEmptyTableWidget() {
 AbstractCellTableString table = createAbstractHasData(new  
TextCell());


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


[gwt-contrib] Re: Adding a couple of useful methods to AbstractCellTable. getColumnWidth() can be used to access ... (issue1453801)

2011-06-01 Thread jlabanca

committed as r10259

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

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


[gwt-contrib] Creates a delegate for CompilationResult for use by third party linkers. (issue1451808)

2011-06-01 Thread zundel

Reviewers: bobv, unnurg,

Description:
Creates a delegate for CompilationResult for use by third party linkers.


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

Affected files:
  A  
dev/core/src/com/google/gwt/core/ext/linker/DelegatingCompilationResult.java



Index:  
dev/core/src/com/google/gwt/core/ext/linker/DelegatingCompilationResult.java

===
---  
dev/core/src/com/google/gwt/core/ext/linker/DelegatingCompilationResult.java	 
(revision 0)
+++  
dev/core/src/com/google/gwt/core/ext/linker/DelegatingCompilationResult.java	 
(revision 0)

@@ -0,0 +1,76 @@
+/*
+ * 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.core.ext.linker;
+
+import com.google.gwt.core.ext.Linker;
+
+import java.util.SortedMap;
+import java.util.SortedSet;
+
+/**
+ * A delegate for {@link CompilationResult} intended for third party  
linkers
+ * that want to modify a compilation result.  Extending this class should  
insulate

+ * against future changes to the CompilationResult type.
+ */
+public class DelegatingCompilationResult extends CompilationResult {
+  private final CompilationResult delegate;
+
+  public DelegatingCompilationResult(Class? extends Linker linkerType,
+  CompilationResult compilationResult) {
+super(linkerType);
+this.delegate = compilationResult;
+  }
+
+  @Override
+  public String[] getJavaScript() {
+return delegate.getJavaScript();
+  }
+
+  @Override
+  public int getPermutationId() {
+return delegate.getPermutationId();
+  }
+
+  @Override
+  public SortedSetSortedMapSelectionProperty, String getPropertyMap() {
+return delegate.getPropertyMap();
+  }
+
+  @Override
+  public SoftPermutation[] getSoftPermutations() {
+return delegate.getSoftPermutations();
+  }
+
+  @Override
+  public StatementRanges[] getStatementRanges() {
+return delegate.getStatementRanges();
+  }
+
+  @Override
+  public String getStrongName() {
+return delegate.getStrongName();
+  }
+
+  @Override
+  public SymbolData[] getSymbolMap() {
+return delegate.getSymbolMap();
+  }
+
+  @Override
+  public String toString() {
+return delegate.toString();
+  }
+}


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


[gwt-contrib] [google-web-toolkit] r10260 committed - Clarify some confusing code in TypeTightener....

2011-06-01 Thread codesite-noreply

Revision: 10260
Author:   sco...@google.com
Date: Wed Jun  1 11:03:46 2011
Log:  Clarify some confusing code in TypeTightener.

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

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

Modified:
 /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java

===
--- /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java	Fri  
May 27 07:39:55 2011
+++ /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/TypeTightener.java	Wed  
Jun  1 11:03:46 2011

@@ -557,8 +557,11 @@
 x = newCall;
   }

-  if (x.canBePolymorphic()) {
-// See if we can remove virtualization from this call.
+  /*
+   * Mark a call as non-polymorphic if the targeted method is the only
+   * possible dispatch, given the qualifying instance type.
+   */
+  if (x.canBePolymorphic()  !target.isAbstract()) {
 JExpression instance = x.getInstance();
 assert (instance != null);
 JReferenceType instanceType = (JReferenceType) instance.getType();
@@ -572,6 +575,7 @@
   return;
 }
   }
+  // The instance type is incompatible with all overrides.
 }
 x.setCannotBePolymorphic();
 madeChanges();

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


[gwt-contrib] Re: Creates a delegate for CompilationResult for use by third party linkers. (issue1451808)

2011-06-01 Thread zundel

The use case for this is a change to the Gears linker to go ahead and
throw a fixed chunk of JS into the permutation instead of using a
script tag.

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

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


[gwt-contrib] [google-web-toolkit] r10261 committed - Adding additional testing for GWT RPC. Some custom serialized objects...

2011-06-01 Thread codesite-noreply

Revision: 10261
Author:   schen...@google.com
Date: Wed Jun  1 11:09:25 2011
Log:  Adding additional testing for GWT RPC. Some custom serialized  
objects

were previously untested, at least explicitly. Testing put in
place now provides coverage to test future changes.

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

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

Added:
 /trunk/user/test/com/google/gwt/user/LoggingRPCSuite.gwt.xml
 /trunk/user/test/com/google/gwt/user/LoggingRPCSuite.java
 /trunk/user/test/com/google/gwt/user/client/rpc/CoreJavaTest.java
 /trunk/user/test/com/google/gwt/user/client/rpc/CoreJavaTestService.java
  
/trunk/user/test/com/google/gwt/user/client/rpc/CoreJavaTestServiceAsync.java

 /trunk/user/test/com/google/gwt/user/client/rpc/LoggingRPCTest.java
 /trunk/user/test/com/google/gwt/user/client/rpc/LoggingRPCTestService.java
  
/trunk/user/test/com/google/gwt/user/client/rpc/LoggingRPCTestServiceAsync.java
  
/trunk/user/test/com/google/gwt/user/server/rpc/CoreJavaTestServiceImpl.java
  
/trunk/user/test/com/google/gwt/user/server/rpc/LoggingRPCTestServiceImpl.java

Modified:
 /trunk/user/test/com/google/gwt/user/RPCSuite.gwt.xml
 /trunk/user/test/com/google/gwt/user/RPCSuite.java
  
/trunk/user/test/com/google/gwt/user/client/rpc/CustomFieldSerializerTest.java


===
--- /dev/null
+++ /trunk/user/test/com/google/gwt/user/LoggingRPCSuite.gwt.xml	Wed Jun  1  
11:09:25 2011

@@ -0,0 +1,25 @@
+!-- 
--
+!-- Copyright 2007 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   --
+!-- 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. License for the specific language governing permissions  
and   --
+!-- limitations under the  
License. --

+
+module
+  inherits name='com.google.gwt.user.User' /
+  inherits name=com.google.gwt.logging.Logging/
+
+  define-property name='rpc.enforceTypeVersioning' values=true, false /
+  set-property name='rpc.enforceTypeVersioning' value='true' /
+
+  servlet path='/loggingrpc'
+class='com.google.gwt.user.server.rpc.LoggingRPCTestServiceImpl' /
+
+/module
===
--- /dev/null
+++ /trunk/user/test/com/google/gwt/user/LoggingRPCSuite.java	Wed Jun  1  
11:09:25 2011

@@ -0,0 +1,48 @@
+/*
+ * 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;
+
+import com.google.gwt.dev.BootStrapPlatform;
+import com.google.gwt.junit.tools.GWTTestSuite;
+import com.google.gwt.user.client.rpc.LoggingRPCTest;
+
+
+import junit.framework.Test;
+
+/**
+ * A collection of TestCases for the RPC system.
+ */
+public class LoggingRPCSuite {
+
+  static {
+/*
+ * Required for OS X Leopard. This call ensures we have a valid context
+ * ClassLoader. Many of the tests test low-level RPC mechanisms and  
rely on

+ * a ClassLoader to resolve classes and resources.
+ */
+BootStrapPlatform.applyPlatformHacks();
+  }
+
+  public static Test suite() {
+GWTTestSuite suite = new GWTTestSuite(
+Test for com.google.gwt.user.client.rpc.core.java.util.logging);
+
+// GWTTestCases
+suite.addTestSuite(LoggingRPCTest.class);
+
+return suite;
+  }
+}
===
--- /dev/null
+++ /trunk/user/test/com/google/gwt/user/client/rpc/CoreJavaTest.java	Wed  
Jun  1 11:09:25 2011

@@ -0,0 +1,67 @@
+/*
+ * 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
+ *
+ * 

[gwt-contrib] Re: Allow source samples to forgo having a war folder (issue1451807)

2011-06-01 Thread rchandia

You are welcome. Submitted as r10262.
On 2011/06/01 20:39:13, rjrjr wrote:

LGTM



Thanks.




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

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


[gwt-contrib] [google-web-toolkit] r10262 committed - Allow source samples to forgo having a war folder...

2011-06-01 Thread codesite-noreply

Revision: 10262
Author:   rchan...@google.com
Date: Wed Jun  1 11:14:07 2011
Log:  Allow source samples to forgo having a war folder
Removed war folders from expenses and mobilewebapp samples
Removed redundant task in samples's source target

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

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

Deleted:
 /trunk/samples/expenses/war
 /trunk/samples/mobilewebapp/war
Modified:
 /trunk/samples/common.ant.xml

===
--- /trunk/samples/common.ant.xml   Fri May  6 08:20:47 2011
+++ /trunk/samples/common.ant.xml   Wed Jun  1 11:14:07 2011
@@ -38,10 +38,15 @@
 copy todir=${sample.build}/src
   fileset dir=src /
 /copy
-mkdir dir=${sample.build}/war /
-copy todir=${sample.build}/war
-  fileset dir=war excludes=WEB-INF/classes/**/
-/copy
+if
+  available file=war type=dir /
+  then
+mkdir dir=${sample.build}/war /
+copy todir=${sample.build}/war
+  fileset dir=war excludes=WEB-INF/classes/**/
+/copy
+  /then
+/if
 if
   available file=pom.xml/
   then
@@ -61,12 +66,6 @@
   /then
 /if
 if
-  available file=user-build.xml/
-  then
-copy tofile=${sample.build}/build.xml file=user-build.xml/
-  /then
-/if
-if
   available file=user-build.xml/
   then
 copy tofile=${sample.build}/build.xml file=user-build.xml/

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


  1   2   >