Re: How to center application in webpage

2010-12-08 Thread suersh babu
Try using horizontal or vertical panel instead of absolute panel


On Wed, Dec 8, 2010 at 10:57 AM, stymie jamesty...@gmail.com wrote:

 I have a root panel with an absolute panel in it that both are 480px
 wide.I created the following rule in the css file and have applied it
 to both the root panel and the absolute panel,but it is not centered
 in the page.

 .gwt-Container {
margin: 0 auto;
  width: 480px;
 }

 What am I doing wrong?

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




-- 
*Regards

Suresh Babu G*

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



Re: issue with RequestFactory not finding a ValidatorFactory

2010-12-08 Thread ali
Thanks to both of you. Yes, the class file was in gwt-servlet-deps.jar
which is not deployed by the plugin! This is a bad bug there. hope
they fix it.

On Dec 5, 1:34 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 5 déc, 06:13, ali a.akhava...@gmail.com wrote:

  I am using JDO with RequestFactory and here's what happens when I run
  GWT in the development mode. Is there a jar file I'm missing that
  needs to be added as the implementation of the JSR 303
  ValidatorFActory ?

 RequestFactory depends on org.json.* and javax.validation.*. If you're
 using Maven, add the appropriate dependencies (have a look at the
 Expenses sample's pom.xml). Otherwise, you can just add gwt-servlet-
 deps.jar to your WEB-INF/lib in addition to gwt-servlet.jar

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



Transactions in Request Factory

2010-12-08 Thread ali
I have operations in my client that can impact multiple entities. Now
using Requst Factory, the only way seem to be doing one at a time which
causes one RPC to the server. Also, transactions can't be done this way
neither.


So what is the solution ? Do everything on the server using a static
request method and update the proxies on the client manually ? -- This
is not a clean soluton to me.


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



Re: SOP Problem with GWT 2.0.4

2010-12-08 Thread Thomas Broyer

On 7 déc, 11:44, julio antongiuli...@gmail.com wrote:
 Hi,

 I have a simple callback to a remote server like this:

 RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url);

                 try {
                         builder.sendRequest(null, new RequestCallback() {

                                 public void onError(Request request, 
 Throwable exception)
 { Window.alert(Failed to send the request:  +
 exception.getMessage()); }

                                 public void onResponseReceived(Request 
 request, Response response)
 {
                                         if (200 == response.getStatusCode()) {
                                                 
 Window.alert(response.getText());
                                       } else {
                                           Window.alert(STATUS CODE: 
 +response.getStatusCode());
                                       }

                                 }
                         });
                 } catch (RequestException e) { Window.alert(Failed to send 
 the
 request:  + e.getMessage()); }
         }

 and it returns STATUS CODE: 0. The url is a remote public CGI (not
 under my control).
 I added in my gwt.xml file this:

 inherits name='com.google.gwt.user.User'/
 inherits name=com.google.gwt.http.HTTP/
 add-linker name=xs/

 as I supposed it to be a SOP problem.
 But unfortunately it doesn't work me, either using a deployed app on
 tomcat or with run as- web application in eclipse.

The xs linker only allows you to load the GWT app (*.nocache.js et
al.) from a different origin than the HTML host page. This is
because the default linker (std, or IFrameLinker) uses an iframe to
load the *.cache.html and then hits the SOP when trying to communicate
with the host page. The xs linker does not use an iframe but instead
load *.cache.js files directly in the host page.

 Have you any idea?

There's no way a browser can contact a remote public CGI (not under
[your] control) if that one doesn't explicitly allows it (using
CORS), and were it the case then it would only work for those browsers
that support CORS (recent versions of Firefox, Chrome, Safari and
Opera; IE8 supports it but with a specific API that GWT doesn't use).

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



Re: what Mock framework do you recommend ?

2010-12-08 Thread Thomas Broyer


On 7 déc, 16:32, Raphael André Bauer raphael.andre.ba...@gmail.com
wrote:
 On Tue, Dec 7, 2010 at 2:18 PM, Christian Goudreau

 goudreau.christ...@gmail.com wrote:
  I read the article proposed by Didier and Mockito is even easier than those

 +1 Mockito is great...

+1

(I've been using EasyMock 2.x on another project, I really do prefer
Mockito)

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



Re: RequestFactory EntityProxyChange events

2010-12-08 Thread ali
Hi PJ,
Can you share the solution if you have found one ? I am working on the
same problem space


Thanks
Ali

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



Re: gwt 2.1, xml. Document.getElementById() returns null

2010-12-08 Thread Thomas Broyer


On 7 déc, 01:28, Roman Makurin dro...@gmail.com wrote:
 Hi All!

 I need to handle xml on client side, so Im using following
 scheme:

 Document xml = XMLParser.parse(xmlStr);
 Element el = xml.getElementById(id1);

 at this point getElementById() returns null, but im 100%
 sure that element with id=id1 presents in xml document.

 Why this happen ? And is there any chance to get it
 working ?

Is there a DTD for your XML doc that defines the 'id' attribute to be
of type ID? If not, then 'id' is just an attribute; its name doesn't
make it an ID; that's how XML works.

Good luck! http://bitworking.org/news/2010/12/json-xml-web

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



Re: Get all events

2010-12-08 Thread MAM
Still searching, any help?
Thanks

On 2 déc, 12:00, MAM mersni.am...@gmail.com wrote:
 thank you for the reply, but that's not what I want, actually I want
 to do the same thing like in gwt designer :by clicking on the widget
 we haveallthe possibleeventsto be added and  those already
 present. i try to do the Same Thing by retrievingallevents(to add 
 added).
 Thanks

 On 24 nov, 11:18, ep eplisc...@googlemail.com wrote:







  hi, is this one you're looking 
  for?http://groups.google.com/group/google-web-toolkit-contributors/browse...
  if so, maybe we can make an issue on that :)

  elsewise, maybe a workaround would help:

  write a JSNI method which takes generic eventhandler and a widget it
  shall bind it with, and attach your handler from within the javascript
  code (referring to widget's method via GWT's @class references, rather
  than raw JS code)

  On 24 Nov., 10:43, MAM mersni.am...@gmail.com wrote:

   please , need help!!

   thanks

   On 23 nov, 09:53, MAM mersni.am...@gmail.com wrote:

thanks for the reply , i'm not trying to listen to native domevents.
i give you an example to understand:

- i have a button add with an addClickHandler
- At runtime i'm trying togetallbutton's properties andevents(in
this case the addClickHandler)

Thanks

On 19 nov, 12:25, Jack mlsubscri...@gmail.com wrote:

 You mean something like:

 Event.addNativePreviewHandler(NativePreviewHandler handler)

 ?

 JavaDoc: Adds a NativePreviewHandler that will receiveallevents
 before they are fired to their handlers. Note that the handler will
 receiveallnativeevents, including those received due to bubbling,
 whereas normal event handlers only receive explicitly sunkevents.

 On 19 Nov., 10:33, MAM mersni.am...@gmail.com wrote:

  i want to retrieveallevents, previouslyadded to a Widget(button,
  Panel, TextFiled ...) , at runtime

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



Re: RPC in separate module

2010-12-08 Thread Metronome / Basic

Thanks for your help , I think that it must be something like that
so I tried
servlet
servlet-nameuserServlet/servlet-name

servlet-classmetro.app.tmupack.server.MyModServiceImpl/servlet-class

/servlet


servlet-mapping

servlet-nameuserServlet/servlet-name

url-pattern/metro.app.tmupack/modervice/url-pattern

/servlet-mapping

where metro.app.tmupack is from the main module but , ie does't work

I guess that the url of the module have to be addes somehow ?

Any Idea

Thanks

Patrick


- Original Message - 
From: Brian Reilly brian.irei...@gmail.com

To: google-web-toolkit@googlegroups.com
Sent: Tuesday, December 07, 2010 8:15 PM
Subject: Re: RPC in separate module


You do have to declare the servlet in the web.xml of the main module.
As such, you have to treat it like it's in the main module. I suspect
the metro.module.rpcpack part of the url-pattern is the problem. The
URL pattern is determined by the main module name, not the inherited
module name or the package containing the RPC code.

-Brian

On Tue, Dec 7, 2010 at 12:17 PM, Metronome / Basic
metronome.ba...@worldonline.fr wrote:

It certainly is but I cannot find it

I tried
servlet

servlet-nameuserServlet/servlet-name

servlet-classmetro.module.rpcpack.server.MyModServiceImpl/servlet-class

/servlet


servlet-mapping

servlet-nameuserServlet/servlet-name

url-pattern/metro.module.rpcpack/modervice/url-pattern

/servlet-mapping

in the web.xml of the main module
metro.module.rpcpack is the package name of the module with the rpc

should the declaration of the servlet be in the main module ?
what is the path

I cannot sort it out

Thanks

Patrick

- Original Message - From: Didier Durand 
durand.did...@gmail.com

To: Google Web Toolkit google-web-toolkit@googlegroups.com
Sent: Tuesday, December 07, 2010 1:08 PM
Subject: Re: RPC in separate module


Hi,

Everything you need is detailed here:
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html

On Dec 7, 11:06 am, coelho metronome.ba...@worldonline.fr wrote:


Hello

I'm trying to bild a small application using RPC to acces SQL data
( jdbc )

It works no problem so far

I'd like this application to use modules , so that the code could be
reused in others

so I'd like to put the SQL parts in a separate module

and the question is :

How do You declare a servlet that is not in the main module
( application)

or am I missing something ? ( probably)

Thanks for reading

Patrick


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




-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1170 / Base de données virale: 426/3301 - Date: 06/12/2010


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




--
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.

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





-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1170 / Base de données virale: 426/3303 - Date: 07/12/2010


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



Re: RPC in separate module

2010-12-08 Thread Andreas Horst
Well, yes. But that's not what I meant. These are the servlet declarations
in the DEPLOYMENT descriptor (aka web.xml).

What I meant is you could declare the servlet in the MODULE descriptor (aka
mymodule.gwt.xml) of your inherited module.

A servlet declaration in a module descriptor looks like this:
servlet class=com.mymodule.Servlet path=/path /

However what you still need to do is get an appropriate servlet mapping in
the deployment descriptor of the inheriting module. There are several
options:
- with Maven: use goal gwt:mergewebxml
- with Ant/GWT compiler: I don't know, ask the group!
- manually edit the deployment descriptor like you just proposed, however
make sure the url-pattern matches the
RemoteServiceRelativePathhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/rpc/RemoteServiceRelativePath.html
and
probably the rename-to directive (not sure about this last point though
especially in case both your inherited and the inheriting module declare
(different) directives)

Hope I did not create more confusion about this.

Regards,

Andreas

2010/12/8 Metronome / Basic metronome.ba...@worldonline.fr

 Thanks for your help , I think that it must be something like that
 so I tried

 servlet
 servlet-nameuserServlet/servlet-name

 servlet-classmetro.app.tmupack.server.MyModServiceImpl/servlet-class


 /servlet


 servlet-mapping

 servlet-nameuserServlet/servlet-name

 url-pattern/metro.app.tmupack/modervice/url-pattern

 /servlet-mapping

 where metro.app.tmupack is from the main module but , ie does't work

 I guess that the url of the module have to be addes somehow ?

 Any Idea

 Thanks

 Patrick


 - Original Message - From: Brian Reilly brian.irei...@gmail.com
 
 To: google-web-toolkit@googlegroups.com
 Sent: Tuesday, December 07, 2010 8:15 PM

 Subject: Re: RPC in separate module


 You do have to declare the servlet in the web.xml of the main module.
 As such, you have to treat it like it's in the main module. I suspect
 the metro.module.rpcpack part of the url-pattern is the problem. The
 URL pattern is determined by the main module name, not the inherited
 module name or the package containing the RPC code.

 -Brian

 On Tue, Dec 7, 2010 at 12:17 PM, Metronome / Basic
 metronome.ba...@worldonline.fr wrote:

 It certainly is but I cannot find it

 I tried
 servlet

 servlet-nameuserServlet/servlet-name


 servlet-classmetro.module.rpcpack.server.MyModServiceImpl/servlet-class

 /servlet


 servlet-mapping

 servlet-nameuserServlet/servlet-name

 url-pattern/metro.module.rpcpack/modervice/url-pattern

 /servlet-mapping

 in the web.xml of the main module
 metro.module.rpcpack is the package name of the module with the rpc

 should the declaration of the servlet be in the main module ?
 what is the path

 I cannot sort it out

 Thanks

 Patrick

 - Original Message - From: Didier Durand 
 durand.did...@gmail.com
 To: Google Web Toolkit google-web-toolkit@googlegroups.com
 Sent: Tuesday, December 07, 2010 1:08 PM
 Subject: Re: RPC in separate module


 Hi,

 Everything you need is detailed here:
 http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html

 On Dec 7, 11:06 am, coelho metronome.ba...@worldonline.fr wrote:


 Hello

 I'm trying to bild a small application using RPC to acces SQL data
 ( jdbc )

 It works no problem so far

 I'd like this application to use modules , so that the code could be
 reused in others

 so I'd like to put the SQL parts in a separate module

 and the question is :

 How do You declare a servlet that is not in the main module
 ( application)

 or am I missing something ? ( probably)

 Thanks for reading

 Patrick


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




 -
 Aucun virus trouvé dans ce message.
 Analyse effectuée par AVG - www.avg.fr
 Version: 10.0.1170 / Base de données virale: 426/3301 - Date: 06/12/2010


 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 

Re: webappcreator with -maven and Eclipse: output directories don't match

2010-12-08 Thread Rocky
I have found a workaround on StackOverflow. Go here and take a look at
GWT issue report, and star it please!

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

On 7 дец, 18:09, Rocky rocky...@gmail.com wrote:
 I have very similar configuration and I get the same error.

 Have you managed to resolve this issue?

 Rade

 On 28 нов, 23:50, PeteUK newbar...@gmail.com wrote:







  On Nov 28, 5:57 pm, Rajeev Dayal rda...@google.com wrote:

   If you look at Project Properties - Google - Web Toolkit, what is
   mentioned for the GWT SDK? Also, if you navigate to Window - Show View -
   Error Log, do you see any errors listed there?

  Rajeev,

  The Web Toolkit in use is (specific SDK): C:\M2Repository\com\google
  \gwt - 2.1.0. There is also a radio button to Use default SDK (GWT -
  2.1.0) but it is not selected.

  N.B. C:\M2Repository is my local repository as specified in Maven's
  ~/.m2/settings.xml.

  In the Error Log I have 5 warnings and one error:

  Warnings:
  1): The workspace exited with unsaved changes in the previous session;
  refreshing workspace to recover changes.
  2): While loading class
  com.google.gdt.eclipse.suite.resources.GdtImages, thread
  Thread[main,6,main] timed out waiting (5000ms) for thread
  Thread[Worker-1,5,main] to finish starting bundle
  com.google.gdt.eclipse.suite_1.4.0.v201010280102 [12]. To avoid
  deadlock, thread Thread[main,6,main] is proceeding but
  com.google.gdt.eclipse.suite.resources.GdtImages may not be fully
  initialized.
  3) Same as #2 but for class
  com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContributio 
  n.
  4) Same as #2 but for class
  com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContributio 
  n
  $1
  5) Same for
  com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContributio 
  n
  $2

  Error:
  1) Unable to update index for central|http://repo1.maven.org/maven2.
  The lowest part of the stack is: java.io.IOException: Transfer for
  nexus-maven-repository-index.properties failed; Transfer error: null

  Thanks,

  Pete

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



Re: webappcreator with -maven and Eclipse: output directories don't match

2010-12-08 Thread Rocky
I have found a workaround on StackOverflow. Go take a look at GWT
issue report, and star it please!

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

Rade

On 7 дец, 18:09, Rocky rocky...@gmail.com wrote:
 I have very similar configuration and I get the same error.

 Have you managed to resolve this issue?

 Rade

 On 28 нов, 23:50, PeteUK newbar...@gmail.com wrote:







  On Nov 28, 5:57 pm, Rajeev Dayal rda...@google.com wrote:

   If you look at Project Properties - Google - Web Toolkit, what is
   mentioned for the GWT SDK? Also, if you navigate to Window - Show View -
   Error Log, do you see any errors listed there?

  Rajeev,

  The Web Toolkit in use is (specific SDK): C:\M2Repository\com\google
  \gwt - 2.1.0. There is also a radio button to Use default SDK (GWT -
  2.1.0) but it is not selected.

  N.B. C:\M2Repository is my local repository as specified inMaven's
  ~/.m2/settings.xml.

  In the Error Log I have 5 warnings and one error:

  Warnings:
  1): The workspace exited with unsaved changes in the previous session;
  refreshing workspace to recover changes.
  2): While loading class
  com.google.gdt.eclipse.suite.resources.GdtImages, thread
  Thread[main,6,main] timed out waiting (5000ms) for thread
  Thread[Worker-1,5,main] to finish starting bundle
  com.google.gdt.eclipse.suite_1.4.0.v201010280102 [12]. To avoid
  deadlock, thread Thread[main,6,main] is proceeding but
  com.google.gdt.eclipse.suite.resources.GdtImages may not be fully
  initialized.
  3) Same as #2 but for class
  com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContributio 
  n.
  4) Same as #2 but for class
  com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContributio 
  n
  $1
  5) Same for
  com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContributio 
  n
  $2

  Error:
  1) Unable to update index for central|http://repo1.maven.org/maven2.
  The lowest part of the stack is: java.io.IOException: Transfer for
  nexus-maven-repository-index.properties failed; Transfer error: null

  Thanks,

  Pete

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



Re: RequestFactory: Obfuscate traffic/Elide type names

2010-12-08 Thread Thomas Broyer


On 7 déc, 15:30, Chris Lercher cl_for_mail...@gmx.net wrote:
 Hi,

 with GWT RPC, it's possible to elide/obfuscate the type names from the
 network traffic, by adding:

    inherits
 name=com.google.gwt.user.RemoteServiceObfuscateTypeNames/

 to the .gwt.xml file. (This effectively sets the property
 gwt.elideTypeNamesFromRPC to true.)

 Is something like that also available for the new (GWT 2.1)
 RequestFactory?

Looks like there's not (yet):
http://code.google.com/p/google-web-toolkit/source/browse/releases/2.1/user/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.java#269

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



Re: SOP Problem with GWT 2.0.4

2010-12-08 Thread julio
Hi Thomas thanks for your reply.

 The xs linker only allows you to load the GWT app (*.nocache.js et
 al.) from a different origin than the HTML host page. This is
 because the default linker (std, or IFrameLinker) uses an iframe to
 load the *.cache.html and then hits the SOP when trying to communicate
 with the host page. The xs linker does not use an iframe but instead
 load *.cache.js files directly in the host page.

Ok so it's not my case.

  Have you any idea?

 There's no way a browser can contact a remote public CGI (not under
 [your] control) if that one doesn't explicitly allows it (using
 CORS), and were it the case then it would only work for those browsers
 that support CORS (recent versions of Firefox, Chrome, Safari and
 Opera; IE8 supports it but with a specific API that GWT doesn't use).

if I paste and copy the remote cgi's url in the browser bar the data
get displayed on it (Firefox 3.5.12, IE6 and Chrome 8).
In this case something is still possible?

Thanks,
Julio

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



Re: SOP Problem with GWT 2.0.4

2010-12-08 Thread bananos
Julio, you can try using JSONP, if your external CGI page is capable
of returning valid JSON data.
If it's not your case, the only possible way is to write server-side
code at your backend, and serve data from your own host

On Dec 8, 3:22 pm, julio antongiuli...@gmail.com wrote:
 Hi Thomas thanks for your reply.

  The xs linker only allows you to load the GWT app (*.nocache.js et
  al.) from a different origin than the HTML host page. This is
  because the default linker (std, or IFrameLinker) uses an iframe to
  load the *.cache.html and then hits the SOP when trying to communicate
  with the host page. The xs linker does not use an iframe but instead
  load *.cache.js files directly in the host page.

 Ok so it's not my case.

   Have you any idea?

  There's no way a browser can contact a remote public CGI (not under
  [your] control) if that one doesn't explicitly allows it (using
  CORS), and were it the case then it would only work for those browsers
  that support CORS (recent versions of Firefox, Chrome, Safari and
  Opera; IE8 supports it but with a specific API that GWT doesn't use).

 if I paste and copy the remote cgi's url in the browser bar the data
 get displayed on it (Firefox 3.5.12, IE6 and Chrome 8).
 In this case something is still possible?

 Thanks,
 Julio

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



RequestFactory persist new object and return the id

2010-12-08 Thread poe
Hi,

is there a simple way to get the objects id after calling the persist
method?


EmployeeProxy employee  = ...request.create(EmployeeProxy.class);
...request.persist().using(employee);
...persistRequest.fire(...) {
  onSuccess(Void response) {
// can i somehow get the id from the server-object?
  }
 }

I've tried altering the persist method to public String persist()
instead of public void persist() but the requestFactory won't play
along.

Is there a good way to implement that without making a static persist
method?

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



Re: GWT Designer / TabLayoutPanel Woes

2010-12-08 Thread Eric Clayberg
I tried that and it worked fine for me.

It would be helpful to see a test case (both the file you are editing
and the HTML file).

On Dec 7, 12:59 pm, cri chuck.irvine...@gmail.com wrote:
 I'm new to GWT Designer, so I'm probably making a basic mistake of
 some sort. When using GWT Designer to create a TabPanel, things seem
 to work fine. That is, I lay down the TabPanel and then add tab
 elements and everything shows up as expected in the Designer window.
 However, if I instead use a TabLayout panel and then start adding
 tabs, the designer window basically is just a blank canvas. I did make
 sure the my doctype setting in my HTML landing page is set to
 standards mode. Any help is appreciated. 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to install GWT Designer

2010-12-08 Thread Marcello Nuccio
It should be like it:
http://mac.softpedia.com/progScreenshots/Eclipse-SDK-Screenshot-8571.html

As in most Mac OSX apps the menu is on top of the screen, NOT of the
window.


On 3 Dic, 19:31, Basi Lambanog restyc...@gmail.com wrote:
 Thank you for your reply.

 I'm new to Eclipse (though not to IDEs). When I start Eclipse I don't
 see the expected menu items like File Edit Navigate, etc. Instead, I
 see the Package Explorer perspective and a bunch of icons (related to
 cutting and pasting along the top where the menu items should be.

 I installed the Eclipse IDE for Java developers Helios package. Mac
 Mini OSX 10.6.

 I'm missing a menu. I can't order anything. I'm hungry!

 Thanks.

 On Dec 3, 8:33 am, András Csányi sayusi.a...@gmail.com wrote:







  On 3 December 2010 10:19, Basi Lambanog restyc...@gmail.com wrote:

   Hello,
   I'm trying to install GWT Designer onto Eclipse 3.6. The instruction
   says

   In Eclipse, click Help  Install New Software...

   but there is no Help option on the Eclipse menu.

   How else can I install GWT Designer?

   Thanks,.

  Should be.
  File - Edit - Navigate - Search - Project - Run - Window - Help

  It's first start? There is a little x on the left side, close the
  advertise page and everything is going to fine.

  --
  - -
  --  Csanyi Andras (Sayusi Ando)  
  --http://sayusi.hu--http://facebook.com/andras.csanyi
  --  Trust in God and keep your gunpowder dry! - Cromwell

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



Re: How to install GWT Designer

2010-12-08 Thread Boris Lenzinger
Check this :
http://code.google.com/webtoolkit/tools/download-gwtdesigner.html

This page contains the URLs to supply for installing a new soft under
Eclipse from a site.
To install a software with this method, check this :
http://www.eclipse.org/modeling/emf/updates

The example is for eclipse 3.4 but it is the same for 3.6.


Boris

2010/12/3 Basi Lambanog restyc...@gmail.com

 Hello,
 I'm trying to install GWT Designer onto Eclipse 3.6. The instruction
 says

 In Eclipse, click Help  Install New Software...

 but there is no Help option on the Eclipse menu.

 How else can I install GWT Designer?

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



Re: RequestFactory: Obfuscate traffic/Elide type names

2010-12-08 Thread Chris Lercher
Ok, thanks - opened an enhancement request:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5729


On Dec 8, 12:47 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 7 déc, 15:30, Chris Lercher cl_for_mail...@gmx.net wrote:

  Hi,

  with GWT RPC, it's possible to elide/obfuscate the type names from the
  network traffic, by adding:

     inherits
  name=com.google.gwt.user.RemoteServiceObfuscateTypeNames/

  to the .gwt.xml file. (This effectively sets the property
  gwt.elideTypeNamesFromRPC to true.)

  Is something like that also available for the new (GWT 2.1)
  RequestFactory?

 Looks like there's not 
 (yet):http://code.google.com/p/google-web-toolkit/source/browse/releases/2

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



How to add multiple markers out of Array

2010-12-08 Thread Jan
Hi Everybody,

For my actual GWT Project, i need to add markers on my map. The number
of markers depends, it could be 0-3 of them. I get the datas for the
markers out of my database and in an array. Now i created a method,
witch has a for loop in it. In the for loop, i create the marker and
add it to the map. When i run my application, it stops at the line
map.addOverlay(shipMarkers[i]); but there comes no exceptions in the
debugging mode, it only stops and does nothing. I found that out,
because i have a textbox in my UI, where i can give some messages out.
As soon as i remove the line map.addOverlay(), my programm runs to the
end and works perfectly, but without markers..

Here is the code of the method:

private Marker[] getShipMarkersFrom(LinkedListLatLng[] latLng) {
shipMarkers = new Marker[latLng.length];

for(int i = 0; i  latLng.length; i++) {
  Icon iconAnimation = Icon.newInstance(baseIcon);
  iconAnimation.setImageURL(marker_pictures/
ship_marker.png);
  MarkerOptions optionsAnimation =
MarkerOptions.newInstance();
  optionsAnimation.setIcon(iconAnimation);
  LatLng latLngPoint =
LatLng.newInstance(latLng[i].get(0).getLatitude(),latLng[i].get(0).getLongitude());
  shipMarkers[i]= new Marker(latLngPoint, optionsAnimation);

  map.addOverlay(shipMarkers[i]);
}

return shipMarkers;
}

I'm searching now for more than 3 hours because of this problem. I
would be really happy, if anybody can help me.

Thanks and best regards.

Jan

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



Re: Request.cancel doesn't work for me!

2010-12-08 Thread jhulford
You can have the initial RPC request kick off a sub-process (new
thread, pass a message to another process, etc..) and then return some
sort of id to your client that uniquely identifies the particular
process the user initiated.  The client can then emulate the blocking
w/ a dialog or something like that while polling the server to find
out the state of your subprocess by passing the id it received back
from the initial call.  Create another method that can cancel the
process given the id...then if the user hits some sort of cancel
button (or you hit some sort of time limit), you send the id to the
cancel method and the backend handles canceling out the process.

On Dec 7, 12:20 pm, newnoise tommmuel...@googlemail.com wrote:
 Ok. Too bad ...

 Is there any way to abort the running method on my server?

 Thanks
 Tom

 On 7 Dez., 16:54, jhulford jhulf...@gmail.com wrote:

  All calling it does is call the abort() method of XmlHttpRequest which
  will stop the execution of your callback, it doesn't do anything on
  your server.

  Check theRequest.cancel() code..it's pretty straightforward.

  On Dec 7, 7:01 am, newnoise tommmuel...@googlemail.com wrote:

   Does really no one got any idea?

   On 29 Nov., 18:29, newnoise tommmuel...@googlemail.com wrote:

Me again,

just tried to make the imExpensive-method less complex, but still no
success.

TheRequestis not cancelled ... What am I doing wrong?

Thanks
Tom

On Nov 29, 6:16 pm, newnoise tommmuel...@googlemail.com wrote:

 Hi,

 I'm working on an GWT-App displaying a map with different layers.
 Some of those layers are drawn just onrequestand just for the part
 of the map which is currently displayed.

 The Problem occurs if a user moves and zooms the map pretty fast, so
 that a lot of pictures have to be drawn. This results in quite a time
 of waiting when he finally stops. What I tried was tocancelthe
requestusingRequest.cancel(the Async Method returnsRequestinstead
 of void), but all the pictures are drawn anyway.

 How does theRequest.cancel-method work? Is it just blocking the
 Callback? Or does it actuallycancelthe running code on server-side?
 Maybe the problem is, that the specific method contains mainly one
 complex method-call? The specific method-scheme looks like:

 public Boolean update() {
 int a = 2;
 int b = 3;

 int x = imExpensive(a,b); // method which needs like 95% of
 calculating time

 if (x0) return true;
 return false;

 }

 I suppose that theRequest.cancel-method does notcancela running
 method, and stops the method right after imExpensive(). Is that right?
 In that case the problem could be solved by making the method
 imExpensive less complex, which would be a pretty doable task ...

 Thanks a lot!
 Tom

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



Re: SuggestBox

2010-12-08 Thread Jon Vaughan
Hm have added a VCH to clear the other loaded stuff.  VCH fires before
the Suggestion picked.

On Dec 6, 5:32 pm, Jon Vaughan jsvaug...@gmail.com wrote:
 I have a suggest box

 the user selects something from it, causing other things to load in
 the page

 they then go back to the suggest box and type some stuff into it which
 doesn't result in a new selection

 how can i determine that the value has changed to clear the other
 loaded things in the page without introducing a race condition between
 the valuechangehandler and the suggestionhandler when a suggestion
 actually is picked?

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



Re: SOP Problem with GWT 2.0.4

2010-12-08 Thread Lukasz
JSONP is a quite straight forward solution for the SOP problem and
thanks to the JsonpRequestBuilder nicely supported in GWT 2.1. But as
already mentioned the CGI service needs to be able to respond with
valid JSON data. Below some code example:

StringBuilder url = new StringBuilder(SERVICE_URL);
url.append(?
action=getAll).append(userToken=).append(userMgr.getCurrentUserToken());
/*
 * Resolving the data
 */
JsonpRequestBuilder jsonp = new JsonpRequestBuilder();
jsonp.setFailureCallbackParam(errorCallback);
jsonp.requestObject(url.toString(),
new AsyncCallbackJavaScriptObject() {

@Override
public void onFailure(Throwable caught) 
{
// some exception handling code
}

@Override
public void onSuccess(JavaScriptObject 
result) {
/*
 * Processing the provided JSON 
Data
 */
something.buildFromJSON(new 
JSONObject(

result));
}
});

HTH,
Lukasz

On 8 Dez., 14:46, bananos andrew.druche...@gmail.com wrote:
 Julio, you can try using JSONP, if your external CGI page is capable
 of returning valid JSON data.
 If it's not your case, the only possible way is to write server-side
 code at your backend, and serve data from your own host

 On Dec 8, 3:22 pm, julio antongiuli...@gmail.com wrote:







  Hi Thomas thanks for your reply.

   The xs linker only allows you to load the GWT app (*.nocache.js et
   al.) from a different origin than the HTML host page. This is
   because the default linker (std, or IFrameLinker) uses an iframe to
   load the *.cache.html and then hits the SOP when trying to communicate
   with the host page. The xs linker does not use an iframe but instead
   load *.cache.js files directly in the host page.

  Ok so it's not my case.

Have you any idea?

   There's no way a browser can contact a remote public CGI (not under
   [your] control) if that one doesn't explicitly allows it (using
   CORS), and were it the case then it would only work for those browsers
   that support CORS (recent versions of Firefox, Chrome, Safari and
   Opera; IE8 supports it but with a specific API that GWT doesn't use).

  if I paste and copy the remote cgi's url in the browser bar the data
  get displayed on it (Firefox 3.5.12, IE6 and Chrome 8).
  In this case something is still possible?

  Thanks,
  Julio

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



Re: add gwt to existing Java project

2010-12-08 Thread salk31
I'd suggest using the app creator 
http://code.google.com/webtoolkit/gettingstarted.html
to create a blank project for you. It also builds with ant...

You can then get a feel for how it works and merge them together...

The ant compile works nicely but you need a bit of care getting class
paths etc correct.

Definitely agree that GWT is a good choice. Having the same source
running on client and server has some huge advantages...
Junit testing client and server... Don't get me started ;)

On Dec 7, 1:48 pm, Andrew Balakhanov andrewbalakha...@vingrad.ru
wrote:
 Hello.
 Could you please help me.  I have a Java project (server part) and now
 I am going to write client part on GWT. I build my project via ANT.
 Can you please help me, how shlould I add GWT to my project, and then
 to build 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Passing information back to main page from Window()

2010-12-08 Thread Ross McKinnon
Hi there,

Quick question:

On my main page of my App i have a number of tabs that contain a grid
of data on each tab.  A feature I am trying to implement is a search
facility that returns the results by dynamically adding a new tab
containing the results.  The search facility is contained in a
Window().  Is there a way that I can pass the results of the search
back to the main page to add a new tab?

Im getting my results from a MySQL database.

Thanks,
Ross

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



Dynamically Instantiation

2010-12-08 Thread Gaurav Vaish
Hi,

I have a peculiar situation in my application.

I need to instantiate a class given its name. The name is determined
dnyamically.

In JavaScript, it's easy to do...

---
var ctorFn = window[className]; //assuming that the className does not
have any dots
var instance = new ctorFn();
---


How can I, if at all, accomplish this in GWT.


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



ListEditor is there a way to edit a generic type?

2010-12-08 Thread DaveC
Hi,

What I'm trying to do is pass ListEditor a list of generic types e.g.
an AbstractAnimal type but what the list gets might be a Bird type, a
Fish type, Mammal... etc...

The problem is that that my Bird type has a property wingSpan which
the Fish type does not.. they might also share a property e.g. name
or canFly.

The Editor complains that it couldn't find a getter for canFly in
proxy type ...AbstractAnimal.

Is there any way around this?

Thanks for you help in advance.

Cheers,
Dave

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



Re: Plugin Upgrade Woes

2010-12-08 Thread Evan Ruff
Rajeev,



Apparently, Eclipse upgraded my Android plugin at the same time. The
new Android plugin had an error in it that was the source of a lot of
those errors.


I have upgraded the Android plugin and still get the same errors.


Thanks,


E

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



Re: GWT JavaDoc failures KeyPress v. KeyDown

2010-12-08 Thread DaveC
@Greg

I felt the need to reply on the topic of what GWT is/does...

What (Java) devs think GWT is/does...

*** Removes the need for them to understand ANY front end web
technologies (e.g. HTML, Javascript, DOM, CSS + xbrowser differences)
***

All of our Java developers (where I work) have found that they still
need to understand some CSS, HTML, DOM + xbrowser differences... what
GWT gives you is Java, Type Checking, Refactoring, Dependancy
Injection, code optimisations etc...all from a Java perspective...

As a non-Java developer I struggle with GWT... I find it gets in my
way, I have to understand Java, I don't like that fact that what I
write is not what gets run in the browser, devmode is slow...

But I agree with your point about Java docs/examples they are
sometimes a little thin especially for someone (like me) who is not a
Java Dev.

Cheers,
Dave


On Dec 8, 12:15 am, Jeff Chimene jchim...@gmail.com wrote:
 As one who writes documentation professionally, I see the impedance mismatch
 between Greg's desires and Javadoc. AFAICT, Greg wants to know why;
 Javadoc describes how. A toolkit that evolves as rapidly as GWT does not
 lend itself to in-depth why documentation.

 I see that the GWT team puts substantial effort into sample programs; which
 examples may be as close as we can get to why combined with how.

 I'm sure that the GWT team would welcome documentation contributions. The
 issue I have is ensuring such contributions have a lifetime  6 months.

 On Tue, Dec 7, 2010 at 3:17 PM, A. Stevko andy.ste...@gmail.com wrote:
  Greg - I admire your position on the quality of documentation.
  IMO, a measure of a sw engineer is not how much arcana he knows but rather
  knowing where to find it.
  Javadocs have long been a great source for the many of the details that I
  face daily although they typically suck for usability.

  A question to the group - Is it possible to crowd source the GWT and GAE
  javadocs?
  If we can't get to the source to augment the documentation, how about some
  kind of sister wiki site that can be the proving ground for training and
  usability improvements while also providing a very specific location to
  discuss API meta issues.

  The first thought on an approach to this is to have the javadoc template
  automatically write external links into a google site or similar.

  --Andy Stevko

  On Tue, Dec 7, 2010 at 12:30 PM, Jeff Schwartz 
  jefftschwa...@gmail.comwrote:

  Good luck!

  On Tue, Dec 7, 2010 at 3:08 PM, Greg Dougherty 
  dougherty.greg...@mayo.edu wrote:

  Hi Jeff,

  If it ever comes to be the situation that the only way I can do
  programming is on the web, then I'll waste the time to learn the
  current iteration of web programming.  But life is currently not so
  dim or dreary, and doesn't look to be that way any time soon.  (And if
  I am going to take the time to read, read, read on new programming
  ideas, it'll be on the Android (where there's a decent job market, and
  worthwhile development tools) or the iPhone (I've got one iPhone app
  out, but I'd like to learn more networking, and some of the newer
  technologies, not on a constantly changing standards body heavily
  influenced by Microsoft and Internet Explorer.)  I have a finite
  supply of learn time, and I have thigns that, for me, are far better
  ways to spend it than reading W3C documents.

  Let me put it another way: I have absolutely NO desire to be a master
  Web applications developer.  If I wanted to be one of those, I
  wouldn't be using GWT.  I'd be rolling my own.

  I took a look at SpringToolsSuite and Spring Roo.  Their documentation
  sucks, their tutorials are out of date, their integration with Eclipse
  is poor, and the support on the forums is weak.  So, since I AM a good
  SQL developer, I said the heck with that, and rolled my own for my
  current project.  And do not regret the choice at all.  The difference
  is that I find SQL a lot more interesting than JavaScript.

  Look, I'm glad that there are people out there who WANT to dig into
  the arcana of web programming.  I'm not one of them.  I'm someone who
  wants to solve other problems.  It was my impression that GWT exists
  to serve the people who want to solve those other problems, and don't
  want to have to dig in to that web BS (like worrying about IE vs.
  FF).  If that IS GWT's purpose, then their documentation sucks, and is
  not in line with their purpose.

  If that ISN'T GWTs purpose, what is?

  Greg

  On Dec 7, 11:24 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
   Hi Greg,

   I have been in IT for a very long time. You see, I am what the youngins
   sometimes refer to as an ol' fart :). As a matter of fact, I've been a
   developer in one form or another for so long that everything else prior
  to
   that seems to me to be prehistory - a vague sense of something there
  but not
   having much substance (oh GOD, help me lol).

   My point is that as technologies advance I try to stay 

Announcing Chrome Developer Plugin support for Mac and Linux

2010-12-08 Thread Peter Ondruska
http://googlewebtoolkit.blogspot.com/2010/12/announcing-chrome-developer-plugin.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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: AXIS2 WITH ECLIPSE AND GWT PLUGIN

2010-12-08 Thread bond
Any ideas??

Thanks!

On 3 Dic, 15:14, bond daniele.re...@gmail.com wrote:
 Hi,
 thanks for your reply.
 I created an Tomcat 6.20 server but how I can add it to my project? I
 remember you that my project is a GWT Web Application Project
 created with Gwt Plugin for Eclipse.

 Can you send me a link of a tutorial?

 Thanks very much

 Regards

 Daniele

 On 3 Dic, 14:53, v b vnb1...@gmail.com wrote:

  Look for adding a server in eclipse.

  On Dec 3, 1:32 pm, bond daniele.re...@gmail.com wrote:

   Hi guys,
   I've a big problem. I've a gwt project with Eclipse Helios + gwt 2.1
   and gwt plugin 3.6. So my project is NOT a web project and when I run
   it Eclipse uses Jetty to deploy it.

   Now I've to creare some web services with axis 2 in order to publish
   them in my project. The web service wizard can't create my service
   because it wants a web project with Tomcat.

   There is some solutions to my problem?

   Thanks very much

   Best regards

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



Re: Does SimplePager have to be subclassed in order for the last page button to work?

2010-12-08 Thread Benju
Try this...

SimplePager pager = new SimplePager(SimplePager.TextLocation.RIGHT,
GWT.SimplePager.Resourcescreate(SimplePager.Resources.class), false,
0, true);

On Nov 3, 5:48 pm, Jeff Schwartz jefftschwa...@gmail.com wrote:
 I am using a SimplePager but the last page button is never enabled. I didn't
 subclass SimplePager. Doe it need to be? Thanks in advance.

 Jeff

 --
 Jeff

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



How To Extend Entities For Use In RequestFactory

2010-12-08 Thread Daniel Simons
I have several entities which are automatically generated using hibernate
tools.  I would like to make use of RequestFactory by extending these
entities, but am running into a number of issues in doing so.  It seems that
the current design of RequestFactory requires that all DAO methods be
defined in the Entity itself.  Are there any simple ways around this?

Thanks,
Daniel

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



IE7 and ALIGN_JUSTIFY

2010-12-08 Thread Greg Dougherty
I'm working on a new app using GWT 2.1.  If I create a
HorizontalPanel, and set the horizontal alignment to ALIGN_JUSTIFY,
then when I try to add anything to that panel, I get the following
exception.  This only happens in IE, and I have to actually try to
added something to the panel (creating the panel, setting its
alignment, and then adding it (empty) to another panel does NOT cause
a problem):

15:51:05.169 [ERROR] [exometablebrowser] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (Error): Could not get
the align property. Invalid argument.
 number: -2147024809
 description: Could not get the align property. Invalid argument.
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:619)

I searched the group and did not see this mentioned.  Any idea why
this happens?

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



Re: get plugin failed to connect to hosted mode server on .... error with Chrome GWT developer plugin but works fine with Firefox

2010-12-08 Thread Chris Conroy
Are you still seeing this issue? The Chrome plugin was recently updated. If
you go to chrome://extensions what version do you see for the GWT developer
plugin? (1.0.9274 is the latest).

If you don't have the latest for whatever reason, grab it from
gwt.google.com/missing-plugin.


On Mon, Dec 6, 2010 at 6:08 AM, puthali puthali...@gmail.com wrote:

 Hi,

 From yesterday I've been getting plugin failed to connect to hosted
 mode server on 127.0.0.1:9997 error with GWT developer plugin on
 Chrome but when I try the same on Firefox it works. Any help will be
 greatly appreciated as I really don't want to launch FF just for this.

 My Chrome GWT developer plugin version is 1.0.9274 and the Firefox GWT
 plugin version is 1.0.7511

 thanks,
 Puthali

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Fire a button click event programmatically

2010-12-08 Thread zhong
Hi,

Is there a way to fire a button click event programmatically?

Many thanks,
Zhong

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



Re: Fire a button click event programmatically

2010-12-08 Thread Nick Newman
Might be simpler and clearer to have the button click event call a method,
and simply call that method directly.

Nick

On Wed, Dec 8, 2010 at 4:27 PM, zhong zhongl...@gmail.com wrote:

 Hi,

 Is there a way to fire a button click event programmatically?

 Many thanks,
 Zhong

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



HTMPanel error in 2.1.0: (TypeError): this.removeChild is not a function (bug?)

2010-12-08 Thread Ed
I get the following error when adding a widget that is a child of a
HTMLPanel is removed from his parent:
(TypeError): this.removeChild is not a function
The full error is listed below.

What I do (gwt 2.1.0):
Create a HTMLPanel from a string and then iterate through all elements
and add RadioButtons on determined places. I store references to the
RadioButtons in a List so I can reuse them on a refresh.
On a refresh, I iterate again through the HTMLPanel elements an add
again the stored RadioButtons. On this refresh I get an error when the
RadioButton tries to remove him self from his parent.
In a code snippet:
iterating through all HTMLPanel elements:
final RadioButton child = getNextCachedRadioButton()
child.removeFromParent();
htmlPanel.add(child, cell);

The error occurs when calling child.removeFromParent() in the refresh
when it's already a child of the HTMLPanel (not the first time when
it's not a child of the HTMLPanel yet)...
Any idea why the error occurs? I this a bug?

Thrown exception part:

Caused by: com.google.gwt.core.client.JavaScriptException:
(TypeError): this.removeChild is not a function
 fileName: http://127.0.0.1:
 lineNumber: 104
 stack: ([object HTMLSpanElement])@http://127.0.0.1::104
@:0
(null,655430,[object MouseEvent],[object HTMLDivElement],[object
GWTJavaObject])@http://127.0.0.1:/serviceplus/hosted.html?
serviceplus:56
([object MouseEvent])@http://127.0.0.1::161
((function (evt) {var listener, curElem = this;while (curElem  !
(listener = curElem.__listener)) {curElem = curElem.parentNode;}if
(curElem  curElem.nodeType != 1) {curElem = null;}if (listener) {if
(__gwt_makeJavaInvoke(1)(null, 589942, listener))
{__gwt_makeJavaInvoke(3)(null, 655430, evt, curElem, listener);}}}),
[object HTMLDivElement],[object Object])@http://127.0.0.1::66
@:0
(null,106,(function (evt) {var listener, curElem = this;while (curElem
 !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if
(curElem  curElem.nodeType != 1) {curElem = null;}if (listener) {if
(__gwt_makeJavaInvoke(1)(null, 589942, listener))
{__gwt_makeJavaInvoke(3)(null, 655430, evt, curElem, listener);}}}),
[object HTMLDivElement],[object Object])@http://127.0.0.1:/
serviceplus/hosted.html?serviceplus:56
([object MouseEvent])@http://127.0.0.1::20

at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.dom.client.Node$.removeChild$(Node.java)
at com.google.gwt.user.client.DOM.removeChild(DOM.java:992)
at
com.google.gwt.user.client.ui.ComplexPanel.remove(ComplexPanel.java:
71)
at
com.google.gwt.user.client.ui.Widget.removeFromParent(Widget.java:180)




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



Re: AXIS2 WITH ECLIPSE AND GWT PLUGIN

2010-12-08 Thread Filipe Sousa
On Wednesday, December 8, 2010 6:49:14 PM UTC, bond wrote:Any ideas??

Convert your project to a web project. Select menu Project | Properties
| Project Facets and enable Dynamic Web Module

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



How to use CellTable's LoadingState?

2010-12-08 Thread Hilco Wijbenga
Hi all,

CellTable (or, really, HasDataPresenter) has a loading state which
displays a nice image indicating that processing is going on.
Unfortunately, everything related to loading state seems to be
(package) private.

How can I set this loading state?

Cheers,
Hilco

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



Re: Debug problem since GWT 2.1.0, gwt-maven-plugin 2.1.0, Maven 3.0

2010-12-08 Thread Geoffrey Wiseman
On Dec 2, 3:53 pm, Geoffrey Wiseman geoffrey.wise...@gmail.com
wrote:
 I'm guessing this is caused by this filed 
 issue?http://code.google.com/p/google-web-toolkit/issues/detail?id=4853

Repeating what I said there on that issue:

Near as I can tell, these INDEX.LIST are in gwt-servlet.jar and gwt-
user.jar from GWT 1.6 through to GWT 2.1.0.  With that in mind, I
don't think they're the only cause of the current issues with
debugging in Eclipse, although they may be partially responsible.  I
suspect there's also a recent regression with the Google Plugin for
Eclipse.

See files below:

v.2.0:
https://repository.sonatype.org/service/local/repositories/central-proxy/archive/com/google/gwt/gwt-servlet/2.0.0/gwt-servlet-2.0.0.jar/!/META-INF/INDEX.LIST

v2.0.1:
https://repository.sonatype.org/service/local/repositories/central-proxy/archive/com/google/gwt/gwt-servlet/2.0.1/gwt-servlet-2.0.1.jar/!/META-INF/INDEX.LIST

v2.0.2:
https://repository.sonatype.org/service/local/repositories/central-proxy/archive/com/google/gwt/gwt-servlet/2.0.2/gwt-servlet-2.0.2.jar/!/META-INF/INDEX.LIST

v2.0.3:
https://repository.sonatype.org/service/local/repositories/central-proxy/archive/com/google/gwt/gwt-servlet/2.0.3/gwt-servlet-2.0.3.jar/!/META-INF/INDEX.LIST

v2.0.4:
https://repository.sonatype.org/service/local/repositories/central-proxy/archive/com/google/gwt/gwt-servlet/2.0.4/gwt-servlet-2.0.4.jar/!/META-INF/INDEX.LIST

v2.1.0
https://repository.sonatype.org/service/local/repositories/central-proxy/archive/com/google/gwt/gwt-servlet/2.1.0/gwt-servlet-2.1.0.jar/!/META-INF/INDEX.LIST

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



Embedding Javascripts in GWT client code.

2010-12-08 Thread Jmu
I would like to embedd the below Javascript on GWT1.4 client side
code. Anyways to acheive this?

div id=lpButDivID-XXX/div
script type=text/javascript charset=UTF-8 src=https://
server.iad.XX.net/hc/X/?
cmd=mTagRepstatesite=25531345buttonID=1divID=l pButDivID-
Xbt=1c=1/script

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



Using GWT for display data from OPC Server on a web page!!

2010-12-08 Thread amarasat
I have a question, can GWT be used to grab data from an OC Server and
display it ona web page?

Has any one used GWT for this purpose. I have seen so many Java
implementations for OPC Clients and COM Servers online.

Further after this can GWT be used to display data on web page. Is
there any example for this!!

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



EntryPoint Initialization Exception.

2010-12-08 Thread amarasat
I am trying to run the StockWatcherApplication. I am getting an
EntryPoint Initialization Exception. The previous time i ran the
application like amonth back it has worked fine.

Below is the exception:

EntryPoint initialization exception

Exception while loading module
com.google.gwt.sample.stockwatcher.client.StockWatcher. See
Development Mode for details.
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries) at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
503) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
375) at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183) 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(Unknown Source)


What can i do.

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



Getting Started: SpringSource Tool Suite

2010-12-08 Thread Peter Alexander
Hi.

I'm trying to follow the 'Getting Started' procedure, as described in
the Developer's Guide, for using SpringSource Tool Suite[1].

I'm at the point where it says:

[quote]
Now that you've created our app and launched it from the command line,
you can import it into STS to start customizing it. To do this switch
back to STS and click the menu item File - Import, and then select
Existing Maven Projects.
[/quote]

But I can't, because the instructions do not indicate where Roo/Maven
put the project in my file system, and STS does not auto-magically
list the project as I would think a tool suite should.

Leaving out one crucial sentence like this, makes it very hard for
newbies to a new tool/framework.

I'm using these tools on a Linux platform.

Thank you for your help.
Peter Alexander

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



GWT and Internet Explorer

2010-12-08 Thread Marcelo L
I've developed an app using GWT and work with Firefox, Chrome and
Safari, but not with Explorer, I can´t make Explorer to load the GWT
script. Is there any configuration (of javascript) that I have to set
on Explorer for running my app? Is there any rules to consider?

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



How to reuse an editor of the parent class?

2010-12-08 Thread tleroy
Good evening everybody,

I have a probleme to solve

I have a main class :

MainClass{
String name;
   String firstname;
}

2 sub classes :

ChildClass1 extends MainClass{
String anotherProperty1;
 }

ChildClass2 extends MainClass{
  String anotherProperty2;
}

I'd like an editor for properties of my MainClass I use in my sub clas
editor :

MainClassEditor{
TextBox  name;
TextBox firstname;
}

ChildClass1Editor{
TextBox  anotherProperty1;
MainClassEditor nameAndFirstNameEditor;
}

ChildClass2Editor{
   TextBox  anotherProperty2;
   MainClassEditor nameAndFirstNameEditor;
}

Is it possible or I need a class to group name and firstname
properties?

can you help me?

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



Re: How To Extend Entities For Use In RequestFactory

2010-12-08 Thread David Chandler
Daniel,

Hang tight. GWT 2.1.1 has new Locator and ServiceLocator interfaces that
will allow you to move all such methods out of entities into DAOs.

See http://code.google.com/p/google-web-toolkit/issues/detail?id=5680
Also http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1

/dmc

On Wed, Dec 8, 2010 at 3:00 PM, Daniel Simons daniel.simo...@gmail.comwrote:

 I have several entities which are automatically generated using hibernate
 tools.  I would like to make use of RequestFactory by extending these
 entities, but am running into a number of issues in doing so.  It seems that
 the current design of RequestFactory requires that all DAO methods be
 defined in the Entity itself.  Are there any simple ways around this?

 Thanks,
 Daniel

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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
http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Strange bug: Uncaught TypeError: Cannot set property '__gwt_getProperty' of undefined

2010-12-08 Thread Najitaka
I haven't used GWT in a while so I was doing a one to two hour spike
to see how far I could get on a project as a test.  I get this strange
bug when I add any element directly to my HTML page that has an ID
with the same as the project name.

I used the project name hangman with webAppCreator and if I add a div
id=hangman/div element to my HTML directly (not through java)
then I get this bug.  If I make the ID anything other than hangman
then this bug goes away.

I'm worried about little quirks like this on my project since non-
programmers may be adding small changes to the HTML page as it matures
and I'm afraid if there are many quirks like this then it will break
the GWT widgets as this does and these non-programmers won't be able
to figure out what they have done to break the page.

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



Re: Fire a button click event programmatically

2010-12-08 Thread Gaurav Vaish
Native javascript:

btnElement.click()



--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.com



On Dec 9, 4:42 am, Nick Newman nick.x.new...@gmail.com wrote:
 Might be simpler and clearer to have the button click event call a method,
 and simply call that method directly.

 Nick

 On Wed, Dec 8, 2010 at 4:27 PM, zhong zhongl...@gmail.com wrote:
  Hi,

  Is there a way to fire a button click event programmatically?

  Many thanks,
  Zhong

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Fire a button click event programmatically

2010-12-08 Thread Jim Douglas
The GWT Button Widget is actually an HTML button object; it exposes
button.click():

http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/Button.html#click()

But GWT CustomButtons (PushButton/ToggleButton) are really styled
DIVs, not HTML button objects, so the native click() method isn't an
option.  For CustomButtons, you have to write code that invokes
whatever it is you want to do when the user clicks the button.

http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/CustomButton.html

On Dec 8, 9:59 pm, Gaurav Vaish gaurav.va...@gmail.com wrote:
 Native javascript:

 btnElement.click()

 --
 Happy Hacking,
 Gaurav Vaishhttp://www.mastergaurav.com

 On Dec 9, 4:42 am, Nick Newman nick.x.new...@gmail.com wrote:



  Might be simpler and clearer to have the button click event call a method,
  and simply call that method directly.

  Nick

  On Wed, Dec 8, 2010 at 4:27 PM, zhong zhongl...@gmail.com wrote:
   Hi,

   Is there a way to fire a button click event programmatically?

   Many thanks,
   Zhong

   --
   You received this message because you are subscribed to the Google Groups
   Google Web Toolkit group.
   To post to this group, send email to google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
cr...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to make additional finder methods available from the generated domainRequest?

2010-12-08 Thread JosephLi
I have been trying to hack around to customize a GWT + Roo test
project and so far from my very primitive customized gui, I can call
the simple count, findById methods without problem. But I hit a road
block when I try to implement some simple search function by addition
a finder to the domain class and try to call it thru the
requestFactory.ABCRequest().findABCByNameLike(...). Turns out the new
finder method just didn't get picked up Roo and auto generate the part
of the code that facilitate the call from the GWT client. I can see
the finder itself is created in the ABC_Roo_Finder.aj file and can be
accessed from server side code, just not available on the client side
thru the requestFactory.

Anyone has any solution as to why the new finder, created thru Roo, is
no included in the requestFactory?

Thanks,
Joseph

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



Re: How to make additional finder methods available from the generated domainRequest?

2010-12-08 Thread JosephLi
Looks like someone just asked similar questions:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/827d22b8b12c2fbf

Anyone knows another way before GWT 2.1.1? I am thinking I might just
be missing some useful annotation that I don't know of to easily make
the new finder available through requestFactory.request?

Thanks in advance,
Joseph


On Dec 9, 2:07 am, JosephLi joseph.l...@gmail.com wrote:
 I have been trying to hack around to customize a GWT + Roo test
 project and so far from my very primitive customized gui, I can call
 the simple count, findById methods without problem. But I hit a road
 block when I try to implement some simple search function by addition
 a finder to the domain class and try to call it thru the
 requestFactory.ABCRequest().findABCByNameLike(...). Turns out the new
 finder method just didn't get picked up Roo and auto generate the part
 of the code that facilitate the call from the GWT client. I can see
 the finder itself is created in the ABC_Roo_Finder.aj file and can be
 accessed from server side code, just not available on the client side
 thru the requestFactory.

 Anyone has any solution as to why the new finder, created thru Roo, is
 no included in the requestFactory?

 Thanks,
 Joseph

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



Re: Embedding Javascripts in GWT client code.

2010-12-08 Thread rjcarr
If the snippet has nothing to do with GWT just put it in your html
page directly.

On Dec 8, 12:23 pm, Jmu test0...@gmail.com wrote:
 I would like to embedd the below Javascript on GWT1.4 client side
 code. Anyways to acheive this?

 div id=lpButDivID-XXX/div
 script type=text/javascript charset=UTF-8 src=https://
 server.iad.XX.net/hc/X/?
 cmd=mTagRepstatesite=25531345buttonID=1divID=l pButDivID-
 Xbt=1c=1/script

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



Re: GWT and Internet Explorer

2010-12-08 Thread rjcarr
The GWT will compile for IE by default so that shouldn't be your
problem.  If you open your page in IE and nothing is shown you likely
have a javascript error.  Your best bet is to run the app in devmode
(using IE, of course) and see what errors are thrown.  That should
give you some direction as to what's going wrong.

On Dec 8, 12:32 pm, Marcelo L marcelo.a.l...@gmail.com wrote:
 I've developed an app using GWT and work with Firefox, Chrome and
 Safari, but not with Explorer, I can´t make Explorer to load the GWT
 script. Is there any configuration (of javascript) that I have to set
 on Explorer for running my app? Is there any rules to consider?

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



Re: ListEditor is there a way to edit a generic type?

2010-12-08 Thread rjcarr
Is this a GWT question?  It sounds like a generic polymorphism
question.

If the latter, you have two options.  Either add wing span information
to the parent type (Animal) or do explicit checks for Birds and then
do a cast.

Good luck!

On Dec 8, 9:11 am, DaveC david.andrew.chap...@gmail.com wrote:
 Hi,

 What I'm trying to do is pass ListEditor a list of generic types e.g.
 an AbstractAnimal type but what the list gets might be a Bird type, a
 Fish type, Mammal... etc...

 The problem is that that my Bird type has a property wingSpan which
 the Fish type does not.. they might also share a property e.g. name
 or canFly.

 The Editor complains that it couldn't find a getter for canFly in
 proxy type ...AbstractAnimal.

 Is there any way around this?

 Thanks for you help in advance.

 Cheers,
 Dave

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



Re: Dynamically Instantiation

2010-12-08 Thread rjcarr
Have you looked at the create() method of the GWT class?

On Dec 8, 9:03 am, Gaurav Vaish gaurav.va...@gmail.com wrote:
 Hi,

 I have a peculiar situation in my application.

 I need to instantiate a class given its name. The name is determined
 dnyamically.

 In JavaScript, it's easy to do...

 ---
 var ctorFn = window[className]; //assuming that the className does not
 have any dots
 var instance = new ctorFn();
 ---

 How can I, if at all, accomplish this in GWT.

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



Re: Passing information back to main page from Window()

2010-12-08 Thread rjcarr
I (and likely others) am not following what you mean here.  What do
you mean by Window()?  Are you saying that your results are currently
going to a new browser window but you want them to instead go into a
tab of the current window?

On Dec 8, 9:01 am, Ross McKinnon r.mckinno...@googlemail.com wrote:
 Hi there,

 Quick question:

 On my main page of my App i have a number of tabs that contain a grid
 of data on each tab.  A feature I am trying to implement is a search
 facility that returns the results by dynamically adding a new tab
 containing the results.  The search facility is contained in a
 Window().  Is there a way that I can pass the results of the search
 back to the main page to add a new tab?

 Im getting my results from a MySQL database.

 Thanks,
 Ross

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



Re: How to add multiple markers out of Array

2010-12-08 Thread rjcarr
I haven't looked too closely, but you are using an array of lists.
Are you sure this is what you're intending?  From your explanation it
seems you'd need only a one dimensional data structure.

On Dec 8, 7:10 am, Jan jan.widm...@gmx.ch wrote:
 Hi Everybody,

 For my actual GWT Project, i need to add markers on my map. The number
 of markers depends, it could be 0-3 of them. I get the datas for the
 markers out of my database and in an array. Now i created a method,
 witch has a for loop in it. In the for loop, i create the marker and
 add it to the map. When i run my application, it stops at the line
 map.addOverlay(shipMarkers[i]); but there comes no exceptions in the
 debugging mode, it only stops and does nothing. I found that out,
 because i have a textbox in my UI, where i can give some messages out.
 As soon as i remove the line map.addOverlay(), my programm runs to the
 end and works perfectly, but without markers..

 Here is the code of the method:

 private Marker[] getShipMarkersFrom(LinkedListLatLng[] latLng) {
         shipMarkers = new Marker[latLng.length];

         for(int i = 0; i  latLng.length; i++) {
           Icon iconAnimation = Icon.newInstance(baseIcon);
           iconAnimation.setImageURL(marker_pictures/
 ship_marker.png);
           MarkerOptions optionsAnimation =
 MarkerOptions.newInstance();
           optionsAnimation.setIcon(iconAnimation);
           LatLng latLngPoint =
 LatLng.newInstance(latLng[i].get(0).getLatitude(),latLng[i].get(0).getLongi 
 tude());
           shipMarkers[i]= new Marker(latLngPoint, optionsAnimation);

           map.addOverlay(shipMarkers[i]);
         }

         return shipMarkers;

 }

 I'm searching now for more than 3 hours because of this problem. I
 would be really happy, if anybody can help me.

 Thanks and best regards.

 Jan

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



[gwt-contrib] [google-web-toolkit] r9376 committed - Fixing a bug in IE6 where the styles on some Cell Widget items do not ...

2010-12-08 Thread codesite-noreply

Revision: 9376
Author: jlaba...@google.com
Date: Wed Dec  8 02:27:55 2010
Log: Fixing a bug in IE6 where the styles on some Cell Widget items do not  
update, causing the items to disappear. Adding zoom:1 fixes the problem.


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

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

Modified:
 /trunk/user/src/com/google/gwt/cell/client/IconCellDecorator.java
 /trunk/user/src/com/google/gwt/user/cellview/CellView.gwt.xml
 /trunk/user/src/com/google/gwt/user/cellview/client/CellBrowser.css
 /trunk/user/src/com/google/gwt/user/cellview/client/CellList.css
 /trunk/user/src/com/google/gwt/user/cellview/client/CellTree.css
 /trunk/user/src/com/google/gwt/user/cellview/client/CellTree.java
 /trunk/user/src/com/google/gwt/user/cellview/client/CellTreeBasic.css
 /trunk/user/test/com/google/gwt/cell/client/IconCellDecoratorTest.java

===
--- /trunk/user/src/com/google/gwt/cell/client/IconCellDecorator.java	Wed  
Dec  1 05:40:20 2010
+++ /trunk/user/src/com/google/gwt/cell/client/IconCellDecorator.java	Wed  
Dec  8 02:27:55 2010

@@ -38,7 +38,7 @@
 public class IconCellDecoratorC implements CellC {

   interface Template extends SafeHtmlTemplates {
-@Template(div  
style=\position:relative;padding-{0}:{1}px;\{2}div{3}/div/div)
+@Template(div  
style=\position:relative;padding-{0}:{1}px;zoom:1;\{2}div{3}/div/div)

 SafeHtml outerDiv(String direction, int width, SafeHtml icon,
 SafeHtml cellContents);

===
--- /trunk/user/src/com/google/gwt/user/cellview/CellView.gwt.xml	Thu Nov  
11 05:24:51 2010
+++ /trunk/user/src/com/google/gwt/user/cellview/CellView.gwt.xml	Wed Dec   
8 02:27:55 2010

@@ -54,12 +54,4 @@
   when-property-is name=user.agent value=ie8/
 /any
   /replace-with
-
-  !-- IE6-specific CellTree implementation. --
-  replace-with  
class=com.google.gwt.user.cellview.client.CellTree.ImplIE6
-when-type-is  
class=com.google.gwt.user.cellview.client.CellTree.Impl/

-any
-  when-property-is name=user.agent value=ie6/
-/any
-  /replace-with
 /module
===
--- /trunk/user/src/com/google/gwt/user/cellview/client/CellBrowser.css	Wed  
Oct 13 12:59:56 2010
+++ /trunk/user/src/com/google/gwt/user/cellview/client/CellBrowser.css	Wed  
Dec  8 02:27:55 2010

@@ -27,10 +27,12 @@

 .cellBrowserEvenItem {
   padding: 8px;
+  zoom: 1;
 }

 .cellBrowserOddItem {
   padding: 8px;
+  zoom: 1;
 }

 .cellBrowserKeyboardSelectedItem {
===
--- /trunk/user/src/com/google/gwt/user/cellview/client/CellList.css	Wed  
Sep 22 12:58:01 2010
+++ /trunk/user/src/com/google/gwt/user/cellview/client/CellList.css	Wed  
Dec  8 02:27:55 2010

@@ -19,10 +19,12 @@

 .cellListEvenItem {
   cursor: pointer;
+  zoom: 1;
 }

 .cellListOddItem {
   cursor: pointer;
+  zoom: 1;
 }

 .cellListKeyboardSelectedItem {
===
--- /trunk/user/src/com/google/gwt/user/cellview/client/CellTree.css	Wed  
Sep 22 12:58:01 2010
+++ /trunk/user/src/com/google/gwt/user/cellview/client/CellTree.css	Wed  
Dec  8 02:27:55 2010

@@ -27,6 +27,7 @@
   padding-bottom: 4px;
   cursor: hand;
   cursor: pointer;
+  zoom: 1;
 }

 .cellTreeItemImage {
@@ -34,7 +35,7 @@
 }

 .cellTreeItemImageValue {
-
+  zoom: 1;
 }

 .cellTreeItemValue {
===
--- /trunk/user/src/com/google/gwt/user/cellview/client/CellTree.java	Mon  
Nov 22 12:05:46 2010
+++ /trunk/user/src/com/google/gwt/user/cellview/client/CellTree.java	Wed  
Dec  8 02:27:55 2010

@@ -443,11 +443,6 @@
 + width:{2}px;height:{3}px;\{4}/div)
 SafeHtml imageWrapper(String classes, String direction, int width,
 int height, SafeHtml image);
-
-@Template(div class=\{0}\ style=\position:absolute;{1}:-{2}px;
-+ width:{2}px;height:{3}px;\{4}/div)
-SafeHtml imageWrapperIE6(String classes, String direction, int width,
-int height, SafeHtml image);
   }

   /**
@@ -462,30 +457,6 @@
   return template.imageWrapper(classes, direction, width, height,  
image);

 }
   }
-
-  /**
-   * Implementation of {...@link CellTable} used by IE6.
-   */
-  @SuppressWarnings(unused)
-  private static class ImplIE6 extends Impl {
-@Override
-public SafeHtml imageWrapper(String classes, String direction, int  
width,

-int height, SafeHtml image) {
-  /*
-   * In IE6, left/right positions are relative to the inside of the  
padding
-   * instead of the outside of the padding. The bug does not happen on  
IE7,
-   * which maps to the IE6 user agent, so we need a runtime check for  
IE6.

-   */
-  if (isIe6()) {
-return template.imageWrapperIE6(classes, direction, width, height,  
image);

-  }
-  return super.imageWrapper(classes, direction, width, height, image);
-}
-
-private native boolean isIe6() 

[gwt-contrib] Re: Fixing a bug in IE6 where the styles on some Cell Widget items do not update, causing the items ... (issue1193801)

2010-12-08 Thread jlabanca

committed as r9376

http://gwt-code-reviews.appspot.com/1193801/show

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


[gwt-contrib] [google-web-toolkit] r9377 committed - Cherry picking r9376 into release branch for issue #5722.

2010-12-08 Thread codesite-noreply

Revision: 9377
Author: jlaba...@google.com
Date: Wed Dec  8 04:10:15 2010
Log: Cherry picking r9376 into release branch for issue #5722.

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

Modified:
 /releases/2.1/user/src/com/google/gwt/cell/client/IconCellDecorator.java
 /releases/2.1/user/src/com/google/gwt/user/cellview/CellView.gwt.xml
 /releases/2.1/user/src/com/google/gwt/user/cellview/client/CellBrowser.css
 /releases/2.1/user/src/com/google/gwt/user/cellview/client/CellList.css
 /releases/2.1/user/src/com/google/gwt/user/cellview/client/CellTree.css
 /releases/2.1/user/src/com/google/gwt/user/cellview/client/CellTree.java
  
/releases/2.1/user/src/com/google/gwt/user/cellview/client/CellTreeBasic.css
  
/releases/2.1/user/test/com/google/gwt/cell/client/IconCellDecoratorTest.java


===
---  
/releases/2.1/user/src/com/google/gwt/cell/client/IconCellDecorator.java	 
Wed Dec  1 07:51:56 2010
+++  
/releases/2.1/user/src/com/google/gwt/cell/client/IconCellDecorator.java	 
Wed Dec  8 04:10:15 2010

@@ -38,7 +38,7 @@
 public class IconCellDecoratorC implements CellC {

   interface Template extends SafeHtmlTemplates {
-@Template(div  
style=\position:relative;padding-{0}:{1}px;\{2}div{3}/div/div)
+@Template(div  
style=\position:relative;padding-{0}:{1}px;zoom:1;\{2}div{3}/div/div)

 SafeHtml outerDiv(String direction, int width, SafeHtml icon,
 SafeHtml cellContents);

===
--- /releases/2.1/user/src/com/google/gwt/user/cellview/CellView.gwt.xml	 
Mon Nov 15 02:27:58 2010
+++ /releases/2.1/user/src/com/google/gwt/user/cellview/CellView.gwt.xml	 
Wed Dec  8 04:10:15 2010

@@ -54,12 +54,4 @@
   when-property-is name=user.agent value=ie8/
 /any
   /replace-with
-
-  !-- IE6-specific CellTree implementation. --
-  replace-with  
class=com.google.gwt.user.cellview.client.CellTree.ImplIE6
-when-type-is  
class=com.google.gwt.user.cellview.client.CellTree.Impl/

-any
-  when-property-is name=user.agent value=ie6/
-/any
-  /replace-with
 /module
===
---  
/releases/2.1/user/src/com/google/gwt/user/cellview/client/CellBrowser.css	 
Wed Oct 13 10:19:59 2010
+++  
/releases/2.1/user/src/com/google/gwt/user/cellview/client/CellBrowser.css	 
Wed Dec  8 04:10:15 2010

@@ -27,10 +27,12 @@

 .cellBrowserEvenItem {
   padding: 8px;
+  zoom: 1;
 }

 .cellBrowserOddItem {
   padding: 8px;
+  zoom: 1;
 }

 .cellBrowserKeyboardSelectedItem {
===
--- /releases/2.1/user/src/com/google/gwt/user/cellview/client/CellList.css	 
Wed Sep 22 12:58:01 2010
+++ /releases/2.1/user/src/com/google/gwt/user/cellview/client/CellList.css	 
Wed Dec  8 04:10:15 2010

@@ -19,10 +19,12 @@

 .cellListEvenItem {
   cursor: pointer;
+  zoom: 1;
 }

 .cellListOddItem {
   cursor: pointer;
+  zoom: 1;
 }

 .cellListKeyboardSelectedItem {
===
--- /releases/2.1/user/src/com/google/gwt/user/cellview/client/CellTree.css	 
Wed Sep 22 12:58:01 2010
+++ /releases/2.1/user/src/com/google/gwt/user/cellview/client/CellTree.css	 
Wed Dec  8 04:10:15 2010

@@ -27,6 +27,7 @@
   padding-bottom: 4px;
   cursor: hand;
   cursor: pointer;
+  zoom: 1;
 }

 .cellTreeItemImage {
@@ -34,7 +35,7 @@
 }

 .cellTreeItemImageValue {
-
+  zoom: 1;
 }

 .cellTreeItemValue {
===
---  
/releases/2.1/user/src/com/google/gwt/user/cellview/client/CellTree.java	 
Wed Nov 24 02:08:09 2010
+++  
/releases/2.1/user/src/com/google/gwt/user/cellview/client/CellTree.java	 
Wed Dec  8 04:10:15 2010

@@ -443,11 +443,6 @@
 + width:{2}px;height:{3}px;\{4}/div)
 SafeHtml imageWrapper(String classes, String direction, int width,
 int height, SafeHtml image);
-
-@Template(div class=\{0}\ style=\position:absolute;{1}:-{2}px;
-+ width:{2}px;height:{3}px;\{4}/div)
-SafeHtml imageWrapperIE6(String classes, String direction, int width,
-int height, SafeHtml image);
   }

   /**
@@ -462,30 +457,6 @@
   return template.imageWrapper(classes, direction, width, height,  
image);

 }
   }
-
-  /**
-   * Implementation of {...@link CellTable} used by IE6.
-   */
-  @SuppressWarnings(unused)
-  private static class ImplIE6 extends Impl {
-@Override
-public SafeHtml imageWrapper(String classes, String direction, int  
width,

-int height, SafeHtml image) {
-  /*
-   * In IE6, left/right positions are relative to the inside of the  
padding
-   * instead of the outside of the padding. The bug does not happen on  
IE7,
-   * which maps to the IE6 user agent, so we need a runtime check for  
IE6.

-   */
-  if (isIe6()) {
-return template.imageWrapperIE6(classes, direction, width, height,  
image);

-  }
-  return super.imageWrapper(classes, direction, width, height, image);
-}
-
-private native boolean isIe6() /*-{
-  

[gwt-contrib] Changing the behavior of CellBrowser so that the first child node of the next level in the tree ... (issue1198801)

2010-12-08 Thread jlabanca

Reviewers: sbrubaker,

Description:
Changing the behavior of CellBrowser so that the first child node of the
next level in the tree is not immediately selected in the SelectionModel
when its parent is selected. In general, we no longer select a value in
a CellList or CellTable until the user interacts with the widget. Also,
we do not deselect a selected value until a new value is available for
selection. This is important for asynchronous lists, which clear the
current data then load the new data asynchronously. We do not want to
trigger a SelectionEvent between these states where we have nothing
selected.


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

Affected files:
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/ShowMorePagerPanel.java

  M user/src/com/google/gwt/user/cellview/client/HasDataPresenter.java
  M  
user/test/com/google/gwt/user/cellview/client/AbstractCellTreeTestBase.java

  M user/test/com/google/gwt/user/cellview/client/CellBrowserTest.java
  M user/test/com/google/gwt/user/cellview/client/HasDataPresenterTest.java


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


[gwt-contrib] Re: Changing the behavior of CellBrowser so that the first child node of the next level in the tree ... (issue1198801)

2010-12-08 Thread sbrubaker

LGTM

http://gwt-code-reviews.appspot.com/1198801/show

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


[gwt-contrib] Propagate WriteOperation.DELETE to EntityProxyChange handlers. (issue1199801)

2010-12-08 Thread bobv

Reviewers: rjrjr, rchandia,

Description:
Propagate WriteOperation.DELETE to EntityProxyChange handlers.
Re-enable a disabled test.
Patch by: bobv
Review by: rjrjr


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

Affected files:
  M  
user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java

  M user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java
  M user/test/com/google/gwt/requestfactory/server/SimpleFoo.java


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


[gwt-contrib] Re: Propagate WriteOperation.DELETE to EntityProxyChange handlers. (issue1199801)

2010-12-08 Thread rjrjr

LGTM

On 2010/12/08 17:39:21, bobv wrote:




http://gwt-code-reviews.appspot.com/1199801/show

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


[gwt-contrib] Re: Propagate WriteOperation.DELETE to EntityProxyChange handlers. (issue1199801)

2010-12-08 Thread rjrjr


http://gwt-code-reviews.appspot.com/1199801/diff/1/2
File
user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java
(right):

http://gwt-code-reviews.appspot.com/1199801/diff/1/2#newcode792
user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java:792:
WriteOperation effect = op.getOperation();
maybe comment when effect is null

http://gwt-code-reviews.appspot.com/1199801/show

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


Re: [gwt-contrib] Re: Breaking change proposed: future proofing Activity in 2.1.1

2010-12-08 Thread Ray Ryan
Basically we don't know exactly how we want to change the thing, but have a
feeling something will be needed. Re: composition or delegation, it always
happens, but I'm not sure that's a concrete issue yet. We could introduce an
IsActivity interface, but I don't see anywhere in the current GWT code we
would actually call it. People implement their own ActivityMappers by hand,
so they could use that convention themselves.

Sounds like there aren't super strong feelings on this, so today for 2.1.1
I'm inclined to

   - drop the interface
   - rename AbstractActivity to Activity
   - document as being forbidden from developing any non-trivial behavior
   - and perhaps document the intent to retroactively introduce an interface
   when it's had a chance to settle

Last passionate objections?

On Tue, Dec 7, 2010 at 8:31 AM, PhilBeaudoin philippe.beaud...@gmail.comwrote:

 Tell me if I get this right, but the most important advantage of
 having only an abstract class is that you are guaranteed your user
 extends the abstract class instead of implementing the interface,
 which let you easily extend it later (i.e. add methods) without
 breaking existing user code?

 On the other hand, it looks like, in a world of unchanging APIs, the
 interface might be the best way to go, facilitating things like reuse
 via a composition/delegation pattern. For example, MyPresenter could
 inherit from BasePresenter class and implement Activity, delegating
 all the calls to a composed AbstractActivity. Without an interface I
 would have to refactor BasePresenter to inherit from the Activity
 abstract class, making it impossible to have non-activity presenters.

 So it looks to me like it boils down to:
 1) How likely is it that the Activity interface evolves in a way that
 would not be handled by adding subinterfaces or extra interfaces?
 2) How frequently are users expected to compose/delegate with
 Activity?

 A concluding remark: GWTP went the abstract class way for its
 hierarchy of Presenter classes. It makes it quite easy to use, but the
 composition problem has reared its ugly head a couple of times. If I
 had to do it again I would use interfaces and favor composition of
 default implementations.

 Cheers,

   Philippe

 On Dec 6, 5:05 am, Jeff Larsen larse...@gmail.com wrote:
  Personally, I'm a fan of having both. The default implementation can
  be an abstract class but have that abstract class implement the
  Activity interface. Developers will be making a conscious choice to
  use the interface only knowing that they can introduce bugs.

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


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

Re: [gwt-contrib] Re: Breaking change proposed: future proofing Activity in 2.1.1

2010-12-08 Thread John Tamplin
On Wed, Dec 8, 2010 at 2:17 PM, Ray Ryan rj...@google.com wrote:

 Basically we don't know exactly how we want to change the thing, but have a
 feeling something will be needed. Re: composition or delegation, it always
 happens, but I'm not sure that's a concrete issue yet. We could introduce an
 IsActivity interface, but I don't see anywhere in the current GWT code we
 would actually call it. People implement their own ActivityMappers by hand,
 so they could use that convention themselves.

 Sounds like there aren't super strong feelings on this, so today for 2.1.1
 I'm inclined to

- drop the interface
- rename AbstractActivity to Activity
- document as being forbidden from developing any non-trivial behavior
- and perhaps document the intent to retroactively introduce an
interface when it's had a chance to settle

 Last passionate objections?


I still feel like there is little cost in having the interface, which is
what is used in the API, and a default implementation where any new methods
added will get default behavior.  Then document that if you implement the
interface but don't extend the default implementation, you will be broken by
future updates. That lets users decide whether they care more about not
being broken by updates or more about not having to extend a base class.

-- 
John A. Tamplin
Software Engineer (GWT), Google

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

Re: [gwt-contrib] Re: Breaking change proposed: future proofing Activity in 2.1.1

2010-12-08 Thread Ray Ryan
I hope that doesn't come across as having ignored Neil, John et al. I
do prefer using interface + abstract class, but I don't really believe
that people actually read JavaDoc, and I'm certain we need to mess with
this interface just a bit more. 

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

Re: [gwt-contrib] Re: Breaking change proposed: future proofing Activity in 2.1.1

2010-12-08 Thread Philippe Beaudoin
Just ran into an interesting little hack today. Basically, the
interface includes a method:

public void __do_not_implement_this_interface_extend_FooImpl_instead();

I'm far from convinced I like it, but it sure is right in your face in
case you don't read javadocs! ;)

   Philippe

On Wed, Dec 8, 2010 at 12:11 PM, Ray Ryan rj...@google.com wrote:
 I hope that doesn't come across as having ignored Neil, John et al. I do
 prefer using interface + abstract class, but I don't really believe that
 people actually read JavaDoc, and I'm certain we need to mess with this
 interface just a bit more.

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

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


[gwt-contrib] [google-web-toolkit] r9378 committed - Propagate WriteOperation.DELETE to EntityProxyChange handlers....

2010-12-08 Thread codesite-noreply

Revision: 9378
Author: gwt.mirror...@gmail.com
Date: Wed Dec  8 08:24:06 2010
Log: Propagate WriteOperation.DELETE to EntityProxyChange handlers.
Re-enable a disabled test.
Patch by: bobv
Review by: rjrjr

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

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

Modified:
  
/trunk/user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java
  
/trunk/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java

 /trunk/user/test/com/google/gwt/requestfactory/server/SimpleFoo.java

===
---  
/trunk/user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java	 
Tue Dec  7 22:33:06 2010
+++  
/trunk/user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java	 
Wed Dec  8 08:24:06 2010

@@ -114,7 +114,10 @@
   }

   private static final String PARENT_OBJECT = parentObject;
-  private final SetSimpleProxyId? createdIds = new  
HashSetSimpleProxyId?();

+  private static final WriteOperation[] PERSIST_AND_UPDATE = {
+  WriteOperation.PERSIST, WriteOperation.UPDATE};
+  private static final WriteOperation[] DELETE_ONLY =  
{WriteOperation.DELETE};
+  private static final WriteOperation[] UPDATE_ONLY =  
{WriteOperation.UPDATE};
   private final ListAbstractRequest? invocations = new  
ArrayListAbstractRequest?();

   private boolean locked;
   private final AbstractRequestFactory requestFactory;
@@ -149,7 +152,6 @@
 checkLocked();

 SimpleProxyIdT id = requestFactory.allocateId(clazz);
-createdIds.add(id);
 AutoBeanT created = requestFactory.createProxy(clazz, id);
 return takeOwnership(created);
   }
@@ -612,7 +614,8 @@
 if (response.getGeneralFailure() != null) {
   ServerFailureMessage failure = response.getGeneralFailure();
   ServerFailure fail = new ServerFailure(failure.getMessage(),
-  failure.getExceptionType(), failure.getStackTrace(),  
failure.isFatal());

+  failure.getExceptionType(), failure.getStackTrace(),
+  failure.isFatal());

   fail(receiver, fail);
   return;
@@ -649,7 +652,8 @@
 response.getInvocationResults().get(i)).as();
 invocations.get(i).onFail(
 new ServerFailure(failure.getMessage(),
-failure.getExceptionType(), failure.getStackTrace(),  
failure.isFatal()));

+failure.getExceptionType(), failure.getStackTrace(),
+failure.isFatal()));
   }
 }

@@ -777,24 +781,36 @@
* Process an array of OperationMessages.
*/
   private void processReturnOperations(ResponseMessage response) {
-ListOperationMessage records = response.getOperations();
+ListOperationMessage ops = response.getOperations();

 // If there are no observable effects, this will be null
-if (records == null) {
+if (ops == null) {
   return;
 }

-for (OperationMessage op : records) {
+for (OperationMessage op : ops) {
   SimpleProxyId? id = getId(op);
-  if (id.isEphemeral()) {
-processReturnOperation(id, op);
-  } else if (id.wasEphemeral()  createdIds.contains(id)) {
-// Only send a PERSIST if this RequestContext created the id.
-processReturnOperation(id, op, WriteOperation.PERSIST,
-WriteOperation.UPDATE);
-  } else {
-processReturnOperation(id, op, WriteOperation.UPDATE);
-  }
+  WriteOperation[] toPropagate = null;
+
+  // May be null if the server is returning an unpersisted object
+  WriteOperation effect = op.getOperation();
+  if (effect != null) {
+switch (effect) {
+  case DELETE:
+toPropagate = DELETE_ONLY;
+break;
+  case PERSIST:
+toPropagate = PERSIST_AND_UPDATE;
+break;
+  case UPDATE:
+toPropagate = UPDATE_ONLY;
+break;
+  default:
+// Should never reach here
+throw new RuntimeException(effect.toString());
+}
+  }
+  processReturnOperation(id, op, toPropagate);
 }
   }

===
---  
/trunk/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java	 
Tue Dec  7 22:33:06 2010
+++  
/trunk/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java	 
Wed Dec  8 08:24:06 2010

@@ -196,69 +196,6 @@
   assertNotSame(x.stableId(), value.stableId());
 }
   }
-
-  /**
-   * Test that removing a parent entity and implicitly removing the child  
sends

-   * an event to the client that the child was removed.
-   *
-   * TODO(rjrjr): Should cascading deletes be detected?
-   */
-  public void disableTestMethodWithSideEffectDeleteChild() {
-delayTestFinish(DELAY_TEST_FINISH);
-
-// Persist bar.
-SimpleBarRequest context = req.simpleBarRequest();
-final SimpleBarProxy bar = 

[gwt-contrib] [google-web-toolkit] r9379 committed - Integrate to GWT 2.1 branch....

2010-12-08 Thread codesite-noreply

Revision: 9379
Author: b...@google.com
Date: Wed Dec  8 08:45:23 2010
Log: Integrate to GWT 2.1 branch.
Propagate DELETE events to EntityProxyChange handlers.

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

Modified:
  
/releases/2.1/user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java
  
/releases/2.1/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java

 /releases/2.1/user/test/com/google/gwt/requestfactory/server/SimpleFoo.java

===
---  
/releases/2.1/user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java	 
Tue Dec  7 20:02:07 2010
+++  
/releases/2.1/user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java	 
Wed Dec  8 08:45:23 2010

@@ -114,7 +114,10 @@
   }

   private static final String PARENT_OBJECT = parentObject;
-  private final SetSimpleProxyId? createdIds = new  
HashSetSimpleProxyId?();

+  private static final WriteOperation[] PERSIST_AND_UPDATE = {
+  WriteOperation.PERSIST, WriteOperation.UPDATE};
+  private static final WriteOperation[] DELETE_ONLY =  
{WriteOperation.DELETE};
+  private static final WriteOperation[] UPDATE_ONLY =  
{WriteOperation.UPDATE};
   private final ListAbstractRequest? invocations = new  
ArrayListAbstractRequest?();

   private boolean locked;
   private final AbstractRequestFactory requestFactory;
@@ -149,7 +152,6 @@
 checkLocked();

 SimpleProxyIdT id = requestFactory.allocateId(clazz);
-createdIds.add(id);
 AutoBeanT created = requestFactory.createProxy(clazz, id);
 return takeOwnership(created);
   }
@@ -612,7 +614,8 @@
 if (response.getGeneralFailure() != null) {
   ServerFailureMessage failure = response.getGeneralFailure();
   ServerFailure fail = new ServerFailure(failure.getMessage(),
-  failure.getExceptionType(), failure.getStackTrace(),  
failure.isFatal());

+  failure.getExceptionType(), failure.getStackTrace(),
+  failure.isFatal());

   fail(receiver, fail);
   return;
@@ -649,7 +652,8 @@
 response.getInvocationResults().get(i)).as();
 invocations.get(i).onFail(
 new ServerFailure(failure.getMessage(),
-failure.getExceptionType(), failure.getStackTrace(),  
failure.isFatal()));

+failure.getExceptionType(), failure.getStackTrace(),
+failure.isFatal()));
   }
 }

@@ -777,24 +781,36 @@
* Process an array of OperationMessages.
*/
   private void processReturnOperations(ResponseMessage response) {
-ListOperationMessage records = response.getOperations();
+ListOperationMessage ops = response.getOperations();

 // If there are no observable effects, this will be null
-if (records == null) {
+if (ops == null) {
   return;
 }

-for (OperationMessage op : records) {
+for (OperationMessage op : ops) {
   SimpleProxyId? id = getId(op);
-  if (id.isEphemeral()) {
-processReturnOperation(id, op);
-  } else if (id.wasEphemeral()  createdIds.contains(id)) {
-// Only send a PERSIST if this RequestContext created the id.
-processReturnOperation(id, op, WriteOperation.PERSIST,
-WriteOperation.UPDATE);
-  } else {
-processReturnOperation(id, op, WriteOperation.UPDATE);
-  }
+  WriteOperation[] toPropagate = null;
+
+  // May be null if the server is returning an unpersisted object
+  WriteOperation effect = op.getOperation();
+  if (effect != null) {
+switch (effect) {
+  case DELETE:
+toPropagate = DELETE_ONLY;
+break;
+  case PERSIST:
+toPropagate = PERSIST_AND_UPDATE;
+break;
+  case UPDATE:
+toPropagate = UPDATE_ONLY;
+break;
+  default:
+// Should never reach here
+throw new RuntimeException(effect.toString());
+}
+  }
+  processReturnOperation(id, op, toPropagate);
 }
   }

===
---  
/releases/2.1/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java	 
Tue Dec  7 20:02:07 2010
+++  
/releases/2.1/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java	 
Wed Dec  8 08:45:23 2010

@@ -196,69 +196,6 @@
   assertNotSame(x.stableId(), value.stableId());
 }
   }
-
-  /**
-   * Test that removing a parent entity and implicitly removing the child  
sends

-   * an event to the client that the child was removed.
-   *
-   * TODO(rjrjr): Should cascading deletes be detected?
-   */
-  public void disableTestMethodWithSideEffectDeleteChild() {
-delayTestFinish(DELAY_TEST_FINISH);
-
-// Persist bar.
-SimpleBarRequest context = req.simpleBarRequest();
-final SimpleBarProxy bar = context.create(SimpleBarProxy.class);
-

[gwt-contrib] Change Activity to an abstract class, to allow its api to evolve. (issue1200801)

2010-12-08 Thread rjrjr

Reviewers: robertvawter,

Description:
Change Activity to an abstract class, to allow its api to evolve.

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


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

Affected files:
  M  
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java
  M  
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportList.java
  M  
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpensesActivityMapper.java

  D user/src/com/google/gwt/activity/shared/AbstractActivity.java
  M user/src/com/google/gwt/activity/shared/Activity.java
  M user/src/com/google/gwt/activity/shared/ActivityManager.java
  A user/src/com/google/gwt/activity/shared/IsActivity.java
  A user/src/com/google/gwt/activity/shared/SimpleActivity.java
  M user/test/com/google/gwt/activity/shared/ActivityManagerTest.java


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


[gwt-contrib] Disallow persisted entities with null version properties because it breaks RequestFactory update... (issue1201801)

2010-12-08 Thread bobv

Reviewers: rjrjr,

Description:
Disallow persisted entities with null version properties because it
breaks RequestFactory update semantics.
Patch by: bobv
Review by: rjrjr


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

Affected files:
  M  
user/src/com/google/gwt/requestfactory/server/SimpleRequestProcessor.java

  M user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java
  M user/test/com/google/gwt/requestfactory/server/SimpleFoo.java
  M user/test/com/google/gwt/requestfactory/shared/ComplexKeysTest.java
  M user/test/com/google/gwt/requestfactory/shared/SimpleFooRequest.java


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


[gwt-contrib] [google-web-toolkit] r9380 committed - Fixes $entry() wrappers for EventTarget and subtypes, Timers, and prop...

2010-12-08 Thread codesite-noreply

Revision: 9380
Author: j...@google.com
Date: Wed Dec  8 11:37:11 2010
Log: Fixes $entry() wrappers for EventTarget and subtypes, Timers, and  
properties of

the form Element.onclick. Adds tests to confirm that this makes the
UncaughtExceptionHandler fire properly.

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

Modified:
 /trunk/user/src/com/google/gwt/junit/JUnit.gwt.xml

===
--- /trunk/user/src/com/google/gwt/junit/JUnit.gwt.xml	Mon Jun  7 12:20:31  
2010
+++ /trunk/user/src/com/google/gwt/junit/JUnit.gwt.xml	Wed Dec  8 11:37:11  
2010

@@ -32,8 +32,8 @@
   /generate-with

   !-- We want to provide consistent stack traces across all browsers. --
-  set-configuration-property  
name=compiler.emulatedStack.recordFileNames value=true /

-  set-property name=compiler.emulatedStack value=true /
+  set-configuration-property  
name=compiler.emulatedStack.recordFileNames value=false /

+  set-property name=compiler.emulatedStack value=false /

   !-- Override the regular symbolMaps linker to put the data somewhere we  
can find it --
   define-linker name=symbolMaps  
class=com.google.gwt.junit.linker.JUnitSymbolMapsLinker /


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


[gwt-contrib] Re: Change Activity to an abstract class, to allow its api to evolve. (issue1200801)

2010-12-08 Thread rjrjr

http://gwt-code-reviews.appspot.com/1200801/show

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


[gwt-contrib] Re: Disallow persisted entities with null version properties because it breaks RequestFactory update... (issue1201801)

2010-12-08 Thread rjrjr

lgtm

http://gwt-code-reviews.appspot.com/1201801/show

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


[gwt-contrib] Re: Change Activity to an abstract class, to allow its api to evolve. (issue1200801)

2010-12-08 Thread bobv

LGTM.

Why is log4j.properties in this patch?


http://gwt-code-reviews.appspot.com/1200801/diff/3001/4002
File
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportList.java
(right):

http://gwt-code-reviews.appspot.com/1200801/diff/3001/4002#newcode98
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportList.java:98:

Extra blank line here?

http://gwt-code-reviews.appspot.com/1200801/diff/3001/4006
File user/src/com/google/gwt/activity/shared/Activity.java (right):

http://gwt-code-reviews.appspot.com/1200801/diff/3001/4006#newcode29
user/src/com/google/gwt/activity/shared/Activity.java:29: * this class
should not introduce non-trivial behavior.
@see IsActivity   ?

http://gwt-code-reviews.appspot.com/1200801/diff/3001/4006#newcode39
user/src/com/google/gwt/activity/shared/Activity.java:39: abstract
public String mayStop();
JLS modifier order, here and elsewhere.

http://gwt-code-reviews.appspot.com/1200801/diff/3001/4008
File user/src/com/google/gwt/activity/shared/IsActivity.java (right):

http://gwt-code-reviews.appspot.com/1200801/diff/3001/4008#newcode22
user/src/com/google/gwt/activity/shared/IsActivity.java:22: Activity
asActivity();
doc?

http://gwt-code-reviews.appspot.com/1200801/show

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


[gwt-contrib] Re: Change Activity to an abstract class, to allow its api to evolve. (issue1200801)

2010-12-08 Thread rjrjr

log4j thing is there because the lack of it causes an insane amount of
console noise, and I keep forgetting to add it.


http://gwt-code-reviews.appspot.com/1200801/diff/3001/4002
File
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportList.java
(right):

http://gwt-code-reviews.appspot.com/1200801/diff/3001/4002#newcode98
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportList.java:98:

On 2010/12/08 23:27:43, bobv wrote:

Extra blank line here?


Done.

http://gwt-code-reviews.appspot.com/1200801/diff/3001/4006
File user/src/com/google/gwt/activity/shared/Activity.java (right):

http://gwt-code-reviews.appspot.com/1200801/diff/3001/4006#newcode29
user/src/com/google/gwt/activity/shared/Activity.java:29: * this class
should not introduce non-trivial behavior.
On 2010/12/08 23:27:43, bobv wrote:

@see IsActivity   ?


Done.

http://gwt-code-reviews.appspot.com/1200801/diff/3001/4006#newcode39
user/src/com/google/gwt/activity/shared/Activity.java:39: abstract
public String mayStop();
On 2010/12/08 23:27:43, bobv wrote:

JLS modifier order, here and elsewhere.


Done.

http://gwt-code-reviews.appspot.com/1200801/diff/3001/4008
File user/src/com/google/gwt/activity/shared/IsActivity.java (right):

http://gwt-code-reviews.appspot.com/1200801/diff/3001/4008#newcode22
user/src/com/google/gwt/activity/shared/IsActivity.java:22: Activity
asActivity();
On 2010/12/08 23:27:43, bobv wrote:

doc?


Done.

http://gwt-code-reviews.appspot.com/1200801/show

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


[gwt-contrib] Re: Change Activity to an abstract class, to allow its api to evolve. (issue1200801)

2010-12-08 Thread rjrjr

http://gwt-code-reviews.appspot.com/1200801/show

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


Re: [gwt-contrib] Re: Breaking change proposed: future proofing Activity in 2.1.1

2010-12-08 Thread Thomas Broyer
On Wednesday, December 8, 2010 8:22:39 PM UTC+1, John A. Tamplin wrote:
On Wed, Dec 8, 2010 at 2:17 PM, Ray Ryan rj...@google.com wrote:
Basically we don't know exactly how we want to change the thing, but
have a feeling something will be needed. Re: composition or delegation,
it always happens, but I'm not sure that's a concrete issue yet. We
could introduce an IsActivity interface, but I don't see anywhere in
the current GWT code we would actually call it. People implement their
own ActivityMappers by hand, so they could use that convention
themselves.


Sounds like there aren't super strong feelings on this, so today for
2.1.1 I'm inclined to

- drop the interface
- rename AbstractActivity to Activity
- document as being forbidden from developing any non-trivial behavior
- and perhaps document the intent to retroactively introduce an
interface when it's had a chance to settle
Last passionate objections?


I still feel like there is little cost in having the interface, which
is what is used in the API, and a default implementation where any new
methods added will get default behavior. Then document that if you
implement the interface but don't extend the default implementation,
you will be broken by future updates. That lets users decide whether
they care more about not being broken by updates or more about not
having to extend a base class.

+1


Though I'm OK with the proposed (abstract)Activity and SimpleActivity
(i.e. just make Activity an abstract class rather than an interface
–with all methods being abstract– and rename AbstractActivity into
SimpleActivity, rather than just renaming the current AbstractActivity
to Activity, with the no-op methods)

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

[gwt-contrib] Re: Guard against invalid dispIds in JavaDispatchImpl (issue1172801)

2010-12-08 Thread conroy

http://gwt-code-reviews.appspot.com/1172801/show

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


[gwt-contrib] [google-web-toolkit] r9382 committed - Integrate r9381 into GWT 2.1 branch....

2010-12-08 Thread codesite-noreply

Revision: 9382
Author: b...@google.com
Date: Wed Dec  8 12:52:04 2010
Log: Integrate r9381 into GWT 2.1 branch.
Disallow persisted entities with null version properties because it breaks  
RequestFactory update semantics.


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

Modified:
  
/releases/2.1/user/src/com/google/gwt/requestfactory/server/SimpleRequestProcessor.java
  
/releases/2.1/user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestFactory.java
  
/releases/2.1/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java

 /releases/2.1/user/test/com/google/gwt/requestfactory/server/SimpleFoo.java
  
/releases/2.1/user/test/com/google/gwt/requestfactory/shared/ComplexKeysTest.java
  
/releases/2.1/user/test/com/google/gwt/requestfactory/shared/SimpleFooRequest.java


===
---  
/releases/2.1/user/src/com/google/gwt/requestfactory/server/SimpleRequestProcessor.java	 
Tue Dec  7 20:02:07 2010
+++  
/releases/2.1/user/src/com/google/gwt/requestfactory/server/SimpleRequestProcessor.java	 
Wed Dec  8 12:52:04 2010

@@ -186,7 +186,7 @@
 processOperationMessages(state, message);
 ListObject decoded = decodeInvocationArguments(state,
 message.getInvocations().get(0).getParameters(),
-new Class?[] {proxyType}, new Type[] {domainClass});
+new Class?[]{proxyType}, new Type[]{domainClass});

 @SuppressWarnings(unchecked)
 ListT toReturn = (ListT) decoded;
@@ -273,10 +273,16 @@
   Splittable version = null;
   if (writeOperation == WriteOperation.PERSIST
   || writeOperation == WriteOperation.UPDATE) {
+/*
+ * If we're sending an operation, the domain object must be  
persistent.

+ * This means that it must also have a non-null version.
+ */
 Object domainVersion = service.getVersion(domainObject);
-if (domainVersion != null) {
-  version = returnState.flatten(domainVersion);
-}
+if (domainVersion == null) {
+  throw new UnexpectedException(The persisted entity with id 
+  + service.getId(domainObject) +  has a null version, null);
+}
+version = returnState.flatten(domainVersion);
   }

   boolean inResponse = bean.getTag(Constants.IN_RESPONSE) != null;
===
---  
/releases/2.1/user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestFactory.java	 
Wed Nov 24 12:53:58 2010
+++  
/releases/2.1/user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestFactory.java	 
Wed Dec  8 12:52:04 2010

@@ -82,7 +82,7 @@
   protected RequestData makeRequestData() {
 return new RequestData(
 com.google.gwt.requestfactory.shared.impl.FindRequest::find,
-new Object[] {proxyId}, propertyRefs, proxyId.getProxyClass(),  
null);
+new Object[]{proxyId}, propertyRefs, proxyId.getProxyClass(),  
null);

   }
 };
   }
@@ -142,6 +142,8 @@
*/
   protected boolean hasVersionChanged(SimpleProxyId? id,
   String observedVersion) {
+assert id != null : id;
+assert observedVersion != null : observedVersion;
 String key = getHistoryToken(id);
 String existingVersion = version.get(key);
 // Return true if we haven't seen this before or the versions differ
===
---  
/releases/2.1/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java	 
Wed Dec  8 08:45:23 2010
+++  
/releases/2.1/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java	 
Wed Dec  8 12:52:04 2010

@@ -1068,6 +1068,27 @@
   }
 });
   }
+
+  /**
+   * Test that the server code will not allow a persisted entity to be  
returned

+   * if it has a null version property.
+   */
+  public void testPersistedEntityWithNullVersion() {
+delayTestFinish(DELAY_TEST_FINISH);
+simpleFooRequest().getSimpleFooWithNullVersion().fire(
+new ReceiverSimpleFooProxy() {
+
+  @Override
+  public void onFailure(ServerFailure error) {
+finishTestAndReset();
+  }
+
+  @Override
+  public void onSuccess(SimpleFooProxy response) {
+fail();
+  }
+});
+  }

   public void testPersistExistingEntityExistingRelation() {
 delayTestFinish(DELAY_TEST_FINISH);
===
---  
/releases/2.1/user/test/com/google/gwt/requestfactory/server/SimpleFoo.java	 
Wed Dec  8 08:45:23 2010
+++  
/releases/2.1/user/test/com/google/gwt/requestfactory/server/SimpleFoo.java	 
Wed Dec  8 12:52:04 2010

@@ -123,6 +123,16 @@
 list.add(3);
 return list;
   }
+
+  /**
+   * This tests that the server detects and disallows the use of persisted
+   * objects with a null version property.
+   */
+  public static SimpleFoo getSimpleFooWithNullVersion() {
+SimpleFoo foo = new SimpleFoo();
+foo.setVersion(null);
+return foo;
+  }

   public 

[gwt-contrib] [google-web-toolkit] r9383 committed - Edited wiki page RequestFactory_2_1_1 through web user interface.

2010-12-08 Thread codesite-noreply

Revision: 9383
Author: b...@google.com
Date: Wed Dec  8 16:02:54 2010
Log: Edited wiki page RequestFactory_2_1_1 through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=9383

Modified:
 /wiki/RequestFactory_2_1_1.wiki

===
--- /wiki/RequestFactory_2_1_1.wiki Tue Dec  7 16:17:42 2010
+++ /wiki/RequestFactory_2_1_1.wiki Wed Dec  8 16:02:54 2010
@@ -44,15 +44,14 @@
   * (Issue 5680) *New API* `ServiceLocator` API to allow `Request` methods  
to be invoked on non-static methods.
 * The `...@service` and `...@servicename` annotations now have an optional  
`locator` value that specifies a `ServiceLocator` which will provide a  
service object instance.

   * (Issue 5675) Subtypes of `java.util.Date` cause exceptions
-
-= What's in review =
-
   * (Issue 5564) RF has bad handling of SC_UNAUTHORIZED
 * *API Break* The `RequestEvent`; `UserInformation` and related  
proxies, requests and services; `AuthenticationFailureHandler` and  
`LoginWidget` were hacky work arounds for the lack of value objects and a  
service layer, and have been deleted. For the same reason,  
`DefaultRequestTransport` no longer takes an `EventBus` constructor  
argument.
 * *API Break* `TransportReceiver#onTransportFailure(ServerFailure)`  
replaces `TransportReceiver#onTransportFailure(String)`, to give custom  
transports useful error reporting.
 * *API Break* `ServerFailure` now has a boolean `isFatal()` method  
(usually true), which `Request#onFailure` checks before throwing a  
RuntimeException
 * The Expenses sample has been extended to show how to handle user  
authentication in the wake of these changes. It's easier now, and more  
flexible.

-
+  * (Issue 5674) The server code will explicitly disallow persisted  
entities with null versions.

+
+= What's in review =
 = What's coming =
   * That's it!

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


[gwt-contrib] Bump version numbers in samples/expenses pom.xml pending release of 2.1.1. (issue1202801)

2010-12-08 Thread rjrjr

Reviewers: drfibonacci,

Description:
Bump version numbers in samples/expenses pom.xml pending release of
2.1.1.


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

Affected files:
  M samples/expenses/pom.xml
  M  
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java
  M  
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportList.java
  M  
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpensesActivityMapper.java

  A samples/expenses/src/main/resources/log4j.properties
  M tools/api-checker/config/gwt21_22userApi.conf
  M tools/scripts/maven_script.sh
  D user/src/com/google/gwt/activity/shared/AbstractActivity.java
  M user/src/com/google/gwt/activity/shared/Activity.java
  M user/src/com/google/gwt/activity/shared/ActivityManager.java
  A user/src/com/google/gwt/activity/shared/IsActivity.java
  A user/src/com/google/gwt/activity/shared/SimpleActivity.java
  M user/test/com/google/gwt/activity/shared/ActivityManagerTest.java


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


[gwt-contrib] Re: Bump version numbers in samples/expenses pom.xml pending release of 2.1.1. (issue1202801)

2010-12-08 Thread rjrjr

Whoops, ignore this. Includes other unsubmitted changes.

On 2010/12/09 00:35:15, rjrjr wrote:




http://gwt-code-reviews.appspot.com/1202801/show

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


[gwt-contrib] Re: Guard against invalid dispIds in JavaDispatchImpl (issue1172801)

2010-12-08 Thread jat

So what actually changed?  It looks the same as patch set 1.


http://gwt-code-reviews.appspot.com/1172801/show

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


[gwt-contrib] [google-web-toolkit] r9384 committed - Change Activity to an abstract class, to allow its api to evolve....

2010-12-08 Thread codesite-noreply

Revision: 9384
Author: rj...@google.com
Date: Wed Dec  8 13:58:54 2010
Log: Change Activity to an abstract class, to allow its api to evolve.

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

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

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

Added:
 /trunk/samples/expenses/src/main/resources
 /trunk/samples/expenses/src/main/resources/log4j.properties
 /trunk/user/src/com/google/gwt/activity/shared/IsActivity.java
 /trunk/user/src/com/google/gwt/activity/shared/SimpleActivity.java
Deleted:
 /trunk/user/src/com/google/gwt/activity/shared/AbstractActivity.java
Modified:
  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java
  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportList.java
  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpensesActivityMapper.java

 /trunk/tools/api-checker/config/gwt21_22userApi.conf
 /trunk/user/src/com/google/gwt/activity/shared/Activity.java
 /trunk/user/src/com/google/gwt/activity/shared/ActivityManager.java
 /trunk/user/test/com/google/gwt/activity/shared/ActivityManagerTest.java

===
--- /dev/null
+++ /trunk/user/src/com/google/gwt/activity/shared/IsActivity.java	Wed Dec   
8 13:58:54 2010

@@ -0,0 +1,28 @@
+/*
+ * Copyright 2010 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.activity.shared;
+
+
+/**
+ * Implemented by objects that can return an {...@link Activity} aspect.
+ */
+public interface IsActivity {
+
+  /**
+   * Return the {...@link Activity} aspect of this object.
+   */
+  Activity asActivity();
+}
===
--- /dev/null
+++ /trunk/user/src/com/google/gwt/activity/shared/SimpleActivity.java	Wed  
Dec  8 13:58:54 2010

@@ -0,0 +1,42 @@
+/*
+ * Copyright 2010 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.activity.shared;
+
+
+/**
+ * Simple base implementation of {...@link Activity}.
+ */
+public abstract class SimpleActivity extends Activity {
+
+  /**
+   * Return null.
+   */
+  public String mayStop() {
+return null;
+  }
+
+  /**
+   * No-op.
+   */
+  public void onCancel() {
+  }
+
+  /**
+   * No-op.
+   */
+  public void onStop() {
+  }
+}
===
--- /trunk/user/src/com/google/gwt/activity/shared/AbstractActivity.java	 
Tue Oct 12 10:53:11 2010

+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2010 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.activity.shared;
-
-/**
- * Simple Activity implementation that is always willing to stop,
- * and does nothing onStop and onCancel.
- */
-public abstract class AbstractActivity implements Activity {
-
-  public String mayStop() {
-return null;
-  }
-
-  public void onCancel() {
-  }
-
-  public void onStop() {
-  }
-}
===
---  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java	 
Wed Dec  1 05:40:20 2010
+++  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java	 
Wed Dec  8 13:58:54 2010

@@ -16,6 +16,8 @@
 package 

[gwt-contrib] Re: Guard against invalid dispIds in JavaDispatchImpl (issue1172801)

2010-12-08 Thread scottb

LGTM

http://gwt-code-reviews.appspot.com/1172801/show

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


[gwt-contrib] [google-web-toolkit] r9385 committed - Cherry pick of r9384 into releases/2.1, make Actiivty an abstract clas...

2010-12-08 Thread codesite-noreply

Revision: 9385
Author: rj...@google.com
Date: Wed Dec  8 14:18:19 2010
Log: Cherry pick of r9384 into releases/2.1, make Actiivty an abstract class

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

Added:
 /releases/2.1/samples/expenses/src/main/resources
 /releases/2.1/samples/expenses/src/main/resources/log4j.properties
 /releases/2.1/user/src/com/google/gwt/activity/shared/IsActivity.java
 /releases/2.1/user/src/com/google/gwt/activity/shared/SimpleActivity.java
Deleted:
 /releases/2.1/user/src/com/google/gwt/activity/shared/AbstractActivity.java
Modified:
  
/releases/2.1/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java
  
/releases/2.1/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportList.java
  
/releases/2.1/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpensesActivityMapper.java

 /releases/2.1/tools/api-checker/config/gwt21_22userApi.conf
 /releases/2.1/user/src/com/google/gwt/activity/shared/Activity.java
 /releases/2.1/user/src/com/google/gwt/activity/shared/ActivityManager.java
  
/releases/2.1/user/test/com/google/gwt/activity/shared/ActivityManagerTest.java


===
--- /dev/null
+++ /releases/2.1/user/src/com/google/gwt/activity/shared/IsActivity.java	 
Wed Dec  8 14:18:19 2010

@@ -0,0 +1,28 @@
+/*
+ * Copyright 2010 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.activity.shared;
+
+
+/**
+ * Implemented by objects that can return an {...@link Activity} aspect.
+ */
+public interface IsActivity {
+
+  /**
+   * Return the {...@link Activity} aspect of this object.
+   */
+  Activity asActivity();
+}
===
--- /dev/null
+++  
/releases/2.1/user/src/com/google/gwt/activity/shared/SimpleActivity.java	 
Wed Dec  8 14:18:19 2010

@@ -0,0 +1,42 @@
+/*
+ * Copyright 2010 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.activity.shared;
+
+
+/**
+ * Simple base implementation of {...@link Activity}.
+ */
+public abstract class SimpleActivity extends Activity {
+
+  /**
+   * Return null.
+   */
+  public String mayStop() {
+return null;
+  }
+
+  /**
+   * No-op.
+   */
+  public void onCancel() {
+  }
+
+  /**
+   * No-op.
+   */
+  public void onStop() {
+  }
+}
===
---  
/releases/2.1/user/src/com/google/gwt/activity/shared/AbstractActivity.java	 
Thu Oct 14 11:27:30 2010

+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2010 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.activity.shared;
-
-/**
- * Simple Activity implementation that is always willing to stop,
- * and does nothing onStop and onCancel.
- */
-public abstract class AbstractActivity implements Activity {
-
-  public String mayStop() {
-return null;
-  }
-
-  public void onCancel() {
-  }
-
-  public void onStop() {
-  }
-}
===
---  
/releases/2.1/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java	 
Wed Dec  1 07:51:56 2010
+++  
/releases/2.1/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java	 
Wed Dec  8 14:18:19 2010

@@ -16,6 +16,8 @@
 package com.google.gwt.sample.expenses.client;

 import 

[gwt-contrib] [google-web-toolkit] r9386 committed - Temporary rollback of r9384 (Change Activity to an abstract class) unt...

2010-12-08 Thread codesite-noreply

Revision: 9386
Author: rj...@google.com
Date: Wed Dec  8 14:50:20 2010
Log: Temporary rollback of r9384 (Change Activity to an abstract class)  
until some internal clients catch up


Original review at http://gwt-code-reviews.appspot.com/1200801

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

Added:
 /trunk/user/src/com/google/gwt/activity/shared/AbstractActivity.java
Deleted:
 /trunk/samples/expenses/src/main/resources
 /trunk/user/src/com/google/gwt/activity/shared/IsActivity.java
 /trunk/user/src/com/google/gwt/activity/shared/SimpleActivity.java
Modified:
  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java
  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportList.java
  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpensesActivityMapper.java

 /trunk/tools/api-checker/config/gwt21_22userApi.conf
 /trunk/user/src/com/google/gwt/activity/shared/Activity.java
 /trunk/user/src/com/google/gwt/activity/shared/ActivityManager.java
 /trunk/user/test/com/google/gwt/activity/shared/ActivityManagerTest.java

===
--- /dev/null
+++ /trunk/user/src/com/google/gwt/activity/shared/AbstractActivity.java	 
Wed Dec  8 14:50:20 2010

@@ -0,0 +1,33 @@
+/*
+ * Copyright 2010 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.activity.shared;
+
+/**
+ * Simple Activity implementation that is always willing to stop,
+ * and does nothing onStop and onCancel.
+ */
+public abstract class AbstractActivity implements Activity {
+
+  public String mayStop() {
+return null;
+  }
+
+  public void onCancel() {
+  }
+
+  public void onStop() {
+  }
+}
===
--- /trunk/user/src/com/google/gwt/activity/shared/IsActivity.java	Wed Dec   
8 13:58:54 2010

+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright 2010 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.activity.shared;
-
-
-/**
- * Implemented by objects that can return an {...@link Activity} aspect.
- */
-public interface IsActivity {
-
-  /**
-   * Return the {...@link Activity} aspect of this object.
-   */
-  Activity asActivity();
-}
===
--- /trunk/user/src/com/google/gwt/activity/shared/SimpleActivity.java	Wed  
Dec  8 13:58:54 2010

+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2010 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.activity.shared;
-
-
-/**
- * Simple base implementation of {...@link Activity}.
- */
-public abstract class SimpleActivity extends Activity {
-
-  /**
-   * Return null.
-   */
-  public String mayStop() {
-return null;
-  }
-
-  /**
-   * No-op.
-   */
-  public void onCancel() {
-  }
-
-  /**
-   * No-op.
-   */
-  public void onStop() {
-  }
-}
===
---  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java	 
Wed Dec  8 13:58:54 2010
+++  
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseReportDetails.java	 
Wed Dec  8 14:50:20 2010

@@ -16,8 +16,6 @@
 package com.google.gwt.sample.expenses.client;

 import com.google.gwt.activity.shared.Activity;
-import com.google.gwt.activity.shared.IsActivity;
-import 

[gwt-contrib] I can't ant test com/google/common/annotations/GwtCompatible.class not found

2010-12-08 Thread Luis
Hi!

I'm trying to execute the tests but I get this message:

=
...
...
...
-do:
test:
ant-gwt:
compile:
build:
compile.emma.if.enabled:
-compile.emma.if.enabled:
compile.tests:
test:
 [echo] Writing test results to /Users/Luis/Documents/workspace-
gwt/gwt/build/out/build-tools/ant-gwt/test/reports for tests.antgwt
-create.emma.coverage.if.enabled:
[junit] WARNING: multiple versions of ant detected in path for
junit
[junit]  jar:file:/Applications/eclipse%20J2EE%20Helios/
plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant.jar!/org/apache/
tools/ant/Project.class
[junit]  and jar:file:/Users/Luis/Documents/workspace-gwt/gwt/
build/staging/gwt-0.0.0/gwt-dev.jar!/org/apache/tools/ant/
Project.class
[junit] Running com.google.gwt.ant.taskdefs.CommandRunnerTest
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,079
sec
[junit] Running com.google.gwt.ant.taskdefs.SvnInfoTest
[junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 0,067
sec
customchecks:
compile:
build:
test:
doctool:
compile:
build:
test:
-do:
dev:
buildtools:
build:
ant-gwt:
compile:
build:
customchecks:
compile:
build:
doctool:
compile:
build:
-do:
compiler.standalone:
build.alldeps.jar:
compile:
-filter.props:
build:
compile.emma.if.enabled:
-compile.emma.if.enabled:
compile.tests:
[gwt.javac] Compiling 2249 source files to /Users/Luis/Documents/
workspace-gwt/gwt/build/out/dev/bin-test
[gwt.javac] An exception has occurred in the compiler (1.5.0_20).
Please file a bug at the Java Developer Connection (http://
java.sun.com/webapps/bugreport)  after checking the Bug Parade for
duplicates. Include your program and the following diagnostic in your
report.  Thank you.
[gwt.javac] com.sun.tools.javac.code.Symbol$CompletionFailure: file
com/google/common/annotations/GwtCompatible.class not found

BUILD FAILED
/Users/Luis/Documents/workspace-gwt/gwt/build.xml:117: The following
error occurred while executing this line:
/Users/Luis/Documents/workspace-gwt/gwt/build.xml:27: The following
error occurred while executing this line:
/Users/Luis/Documents/workspace-gwt/gwt/build.xml:54: The following
error occurred while executing this line:
/Users/Luis/Documents/workspace-gwt/gwt/dev/build.xml:34: Compile
failed; see the compiler error output for details.

Total time: 2 minutes 18 seconds

=

the default target works for me, but I get the error with the target
test. The problem comes from dev/build.xml target compile.tests. I
tried to run that target directly, getting the same message, and with
user/build.xml compile.tests target too

Any idea? I have been trying to solve this for two of days :S

Thank you

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


[gwt-contrib] Re: Isolates the portion of TypeOracleMediator that (issue1188802)

2010-12-08 Thread alexander . mitin

You cannot build the TypeOracle using the class bytes using the
classpath only, because of the re-rooted resources which have no
compiled classes near the source file. So, as part of the GWT Designer I
implemented disk caching of the compiled CompilationUnits. The CU caught
after compiling and it's class (and inner classes) bytes and JSNI code
stored on disk in single file per class. Then, when new session starts
up the cache loads as CachedCompilationUnit and no compilation occurred
at all (except generated resources of course). This gives us 2-3 times
faster startup of the dev mode.

Now, it slow in the building of the TypeOracle itself. For this is the
idea to prepare the TypeOracles from classpath (ex., one per JAR file)
and then share them between sessions. This requires delegating
TypeOracle which consists of several shared TypeOracles (in this case
the recent refactoring of the TypeOracle as interface is very suitable,
I did the same by myself but I'll use the Scott's version; additionally,
I did some refactoring of the CompiledClassLoader to remove the
DispatchIdOracle (and related) from it).

--
Alexander Mitin,
GWT Designer Developer

On 2010/12/06 19:48:18, zundel wrote:

This change is not all the way ready for review, but I wanted some

feedback on

the testing portion.



The overall aim of this change is to isolate the part of building the

type

oracle that relies on running the JDT compiler from the part that

builds the

type oracle from bytecode.



The idea is to show that loading the type oracle using classbytes from

the

classpath is the same as compiling source code with JDT and taking the
classbytes from there.  To do that, I created new source files with

the same

data as in the TypeOracleMediatorTest resources, then look up the

bytecode using

the class loader for those classes.



The only test I've modified is testAssimilation().  I wanted to run

the same

test on both the source and bytecode build type oracle.  I'm not

really happy

with it and am looking for fresh ideas.




http://gwt-code-reviews.appspot.com/1188802/show

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