Re: Default Custom Field Serializer

2010-06-10 Thread jd
Further to this - I have tried creating a Generator that creates
CustomFieldSerializer source code for any class with a certain
annotation but these generated serializers are not found and used.

How can I generate CustomFieldSerializers so that they are picked up
by the RPC mechanism?  Is it due to the RPC generators being called
before mine?

Thanks

John

On May 29, 9:02 pm, jd jdpatter...@gmail.com wrote:
 Hi,

 I want to make the RPC mechanism call GWT.create() to instantiate
 certain classes when they are deserialized on the client.  I know I
 can do this with a custom fieldserializerfor each class but I want a
 a more automatic solution.

 Any ideas?

 Thanks,

 John

-- 
You received 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: Cleaning up threads on GWT application shutdown

2010-06-10 Thread Jason Morris
Hi Jim,

Generally I would register a ServletContextListener with the
application-server (in your case Tomcat) to start and stop background
services. You would register it in your web.xml file:

listener
listener-classcom.company.webapp.MyContextListener/listener-class
/listener

Hope this is what you're looking for.
//Jason

On Wed, Jun 9, 2010 at 12:02 AM, jjd jjdemp...@gmail.com wrote:
 I have a GWT application that starts an independent thread and leaves
 it running for use by multiple GWT sessions.

 It appears that under Tomcat, when I Stop of Undeploy the application,
 this thread keeps running.  I can't figure out the right way to manage
 shutting down the thread when the application is stopped (but tomcat
 keeps running).

 I tried adding a ShutdownHook using
 Runtime.getRuntime().addShutdownHook(), but that doesn't get called
 until Tomcat itself is shutdown.

 What is the proper way to manage threads at application shutdown time?

 Thanks,

 --Jim--

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



Using Google Voice Video Chat plug-in in GWT

2010-06-10 Thread Saeed Zarinfam
I want to write a GWT program that uses Google Voice  Video Chat plug-
in. Is there any GWT API for doing this work ?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Managing of connection to JMS server, listening to JMS Topic

2010-06-10 Thread vkrejcirik
Hi Chris, thank you for your links. They help me a lot! thanks

On 8 čvn, 16:08, Chris Lercher cl_for_mail...@gmx.net wrote:
 Are you looking for this:

 http://forums.sun.com/thread.jspa?threadID=5397323

 Probably, an even cleaner alternative would be to inject aJMS
 ConnectionFactory using 
 Annotations:http://java.sun.com/javaee/5/docs/tutorial/doc/bnceh.html
  - I assume, it would clean up itself when undeploying, but I'm not
 sure about the details.

 On Jun 8, 3:21 pm, vkrejcirik vkrejci...@gmail.com wrote:



  Hi Paul,

  I thought about using Spring for server side, but now I have 99%
  complete application and I don't have time to redesign it for using
  Spring. Or could I use Spring only for management connection toJMS?
  I have only little experience with Spring..

  DO you know, if it exists another way? When I must to call manually
  closeConnection? Thanks a lot for all comments.

  On 8 čvn, 13:49, Paul Grenyer paul.gren...@gmail.com wrote:

   Hi

   On Tue, Jun 8, 2010 at 12:38 PM, vkrejcirik vkrejci...@gmail.com wrote:
Hi, I'm developing web based application with GWT toolkit. I have
client and server part. On server part, I have class for managing of
connection toJMSserver for listening toJMStopic. I don't find
better way than periodically send request from client to server. On
server I have saved last message fromJMStopic. I get this message
and I send it to client. This application runs on tomcat server. I use
JAXB for mappingJMSmessages to Java classes, which are generated
from xml files.

   If you implmenet Sprin gon the server side you won't need JAXB and
   yourJMSclient will stop and start with the server.

   --
   Thanks
   Paul

   Paul Grenyer
   e: paul.gren...@gmail.com
   b: paulgrenyer.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.



Re: Compilation NullPointerException

2010-06-10 Thread mmoossen
hi daniel, stefan!

i have not had this problem, but wow, i would have never come to that
idea, never ever!!

but this looks pretty much to me like a compiler bug so it would be
good to file an issue, just to get it first better documented.
i mean non static inner classes are valid java cosntructs and should
be supported.

thanks
Michael

On Jun 8, 10:32 pm, Daniel Simons daniel.simo...@gmail.com wrote:
 Yep changing to static solved the problem...thanks!

 On Tue, Jun 8, 2010 at 12:06 PM, Stefan Bachert stefanbach...@yahoo.dewrote:

  Hi Daniel,

  we need much more information.
  Probably you have a uncommon complex type case.
  I run into such a problem when I used foreign code which has
  extensively used inner classes and generics.
  The solution was, to make some inner classes static which should be
  done anyway when possible

  Stefan Bachert
 http://gwtworld.de

  On 7 Jun., 17:06, Daniel Simons daniel.simo...@gmail.com wrote:
    I'm getting the following error when compiling my project.  Any ideas
  why
   this error would occur?

   Compiling module module name
   [ERROR] Unexpected
   java.lang.NullPointerException
   at com.google.gwt.dev.javac.CompiledClass.init(CompiledClass.java:83)
   at

  com.google.gwt.dev.javac.JdtCompiler$FindTypesInCud.visit(JdtCompiler.java:186)
   at

  org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1253)
   at

  org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression.traverse(QualifiedAllocationExpression.java:478)
   at

  org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.traverse(FieldDeclaration.java:298)
   at

  org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1232)
   at

  org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:687)
   at

  com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:158)

  --
  You received 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: Get today's date, and the first day of this week's date?

2010-06-10 Thread Lothar Kimmeringer
Charles Keepax schrieb:

 As for performing operations on Dates such as adding days I usually
 use the getTime method (this returns the Date as a long representing
 the number of milliseconds that have passed since January 1, 1970,
 00:00:00 GMT) and operate on the dates as a long. So for example if I
 want to add a day I just add (24*60*60*1000) to the long then create a
 new Date object.

you're not the first giving this advice. This way of adding
days is plain wrong. In countries with e.g. CEST adding 24 hours
to 10/30/2010 03:01 AM will result to 10/31/2010 02:01 AM.

So stop doing this kind of arithmetic and use Calendar on
server-side and wait (as I do) that there will some equal
kind of thing on the client side at some day. If I would
have the time to implement it, I'd program it for myself.



Regards, Lothar

-- 
You received 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: Synchronous Calls with RPC??

2010-06-10 Thread Olivier Monaco
I'm okay for blocking one part of the application or the whole for
global processing (login...). What I dislike is application blocking
me when I just ask for a little component to upgrade. Like if you have
a iGoogle page and click refresh on one widget block all widgets ;).

Olivier

On 10 juin, 03:14, Craigo craig...@gmail.com wrote:
 +1.

 When the user presses load / submit / ... on my app, I enable the
 glass pane, and they have to wait until the submit has completed
 successfully.  I see nothing wrong with this approach:

 PopupPanel loadingDialog = new PopupPanel();
 loadingDialog.setWidget(loadingImageAnimation);
 loadingDialog.setGlassEnabled(true);
 loadingDialog.center();

 .. do the work

 onSuccess and onFailure callback
 loadingDialog.hide();

 On Jun 10, 9:28 am, Carl Pritchett bogusggem...@gmail.com wrote:

   Your proposal is interesting. But as a user, if I have to wait, I
   leave... So many be an application needing some wait a minute popup
   is not a good approach for the future.

  I wouldn't popup (block user interaction) over the whole page! Just
  the component that needs to load. In fact you don't even need to block
  user interaction. I just do it in my application because (for example)
  the user has clicked refresh on a component and any interaction with
  the refreshing component would be invalid. So in my case partial
  blocking the UI is better for the user - they can go on interacting
  with other parts of the app (we have a multiple portal like windows)

  Carl.



-- 
You received 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: Using Javascript Overlays vs. Manually setting up POJO instances?

2010-06-10 Thread Olivier Monaco
You have also some framework like piriti allowing easy mapping between
JSON and Java object. But I don't like them because their overhead. I
use another approach.

My model is made of interfaces. I share the interfaces between the
server and GWT. For GWT, I have a generator that automatically
implements the interface as a wrapper around the JSO. This wrapper is
a zero-overhead implementation (just method forward).

You can find my generator here if it can help you:
http://code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/main/com/googlecode/tyco/gwt/tikray
And you have some unittests here:
http://code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/test/com/googlecode/tyco/gwt/tikray

Olivier

On 10 juin, 01:06, rhodebump rhodeb...@gmail.com wrote:
 I did some reading up on RPC.  Sounds like it would be perfect except
 for the face that it is limited by the Same Origin Policy, so I can't
 use it.

 I wish we could do an RPC with JsonpRequestBuilder

 Thanks for your insight, you have convinced me to do the Javascript
 Overlays.  I do like type safety and it sounds like it would be more
 efficient.

 Phillip

 On Jun 9, 5:52 pm, Sripathi Krishnan sripathi.krish...@gmail.com
 wrote:

  I am assuming you have a strong reason not to use standard RPC - because if
  you really have POJO's on the server side, reusing the same objects on the
  client side should be a breeze.

  It always makes sense to Javascript Overlays, otherwise you loose type
  safety and all the other advantages java has over javascript. It is a pain
  to maintain two versions for the same entity, but the advantages far
  outweigh the inconvenience. You can perhaps even build a small utility that
  generates the overlays -- shouldn't be too difficult.

  And finally, if it eases your pain, most people end up having DTOs and Model
  objects *even if* they use regular RPC. That's because the POJO's you have
  on the server may be a complex hierarchy of objects; what you want on the
  client side is usually pretty simple and doesn't have deep hierarchies.

  --Sri

  On 10 June 2010 02:56, rhodebump rhodeb...@gmail.com wrote:

   I have several Java classes that I am using on the serverside, and I
   am using these same classes to serialize the JSON stream back to my
   GWT application.  I am using the JsonpRequestBuilder to call my
   service and it is successfully returning a JavascriptObject.

   What is the recommended approach to getting my objects from the json
   response?, should it be a) coerce my JavaScriptObject into a string
   and use the JsonParser, or b) write a 2nd implementation of my classes
   using Javascript overlays?

   I don't really like either approach, one option means having 2 types
   of objects that I would need to keep in sync (the pojo and the
   Javascript overlay) and the other way means I have to traverse the
   Json myself, populating my object glyph manually.
   Either way, ouch.

   Thanks for listening,
   Phillip

   --
   You received 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: Using JavaScript Overlay Types for Nested JavaScriptObjects

2010-06-10 Thread Olivier Monaco
Hi,

Imagine you have this in your HTML page:
-
html
  ...
  script
window.data = { prop1 : { prop2: 42 } };
  /script
  ...
/hmtl
-

First create a JSO for the prop1 value:
class InnerJSO extends JSO {
  protected InnerJSO() {}
  public native int getProp2() /*-{ return this.prop2; }-*/;
}

Second create the outer JSO (the data value):
class OuterJSO extends JSO {
  protected OuterJSO() {}
  public native InnerJSO getProp1() /*-{ return this.prop1; }-*/;
}

Finally create a method that returns data:
public native OuterJSO getData() /*-{ return $wnd.data; }-*/;

Okay? Do you need more explanation?

Olivier

On 9 juin, 01:58, bluedes bluediamond...@gmail.com wrote:
 i also have the same problem..

 i have this setup:

 public class Entry extends JavaScriptObject
 {
         protected Entry() { }
         public final native String getWidth() /*-{ return
 this.Width; }-*/;
         public final native String getHeight()  /*-{ return
 this.Height;  }-*/;

 }

 public class ResponseEntries extends JavaScriptObject
 {
         protected ResponseEntries() { }
         public final native String getStatus() /*-{ return
 this.Status; }-*/;
         public final native JsArrayEntry getEntries()  /*-{ return
 this.Entries;  }-*/;

 }

 the json string looks like this, but i can't seem to create the proper
 js overlay type.. how to nest javascriptobjects??

 { Status:Success, Entries:
 [ { Width:10, Height:20 }, { Width:15, Height:25 } ] }

 On May 31, 9:22 pm, powwow jimmy.w...@gmail.com wrote:

  I have this in my html and I can use JavaScriptOverlaytypesno
  problem and it works:

   script
          var properties = {width:640, height:480};
   /script

  public class Properties extends JavaScriptObject
  {
          protected Properties() { }

          public final native String getWidthString() /*-{ return this.width; 
  }-
  */;
          public final native String getHeightString()  /*-{ return
  this.height;  }-*/;

  }

  However, when I start nesting objects like below I do not know how to
  extract the property object from properties.

   script
          var properties = {property:{canvasWidth:1920, canvasHeight:
  1200, width:640, height:480, fps:15, bgcolor:#FF}};
   /script

  What do I need to do to get the properties object, and then get to
  the property object?



-- 
You received 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 entire IncrementalCommand run in one tick?

2010-06-10 Thread Thomas Broyer


On 10 juin, 01:25, macagain rgk...@gmail.com wrote:
 Do all steps of an IncrementalCommand run in one tick, or does it
 return control to the js event loop in between steps, thereby allowing
 other commands on the deferred queue to run in between steps?  e.g.

 List results = some list returned from a service;

 DeferredCommand.addCommand(new IncrementalCommand() {
    int i=0;
    public boolean execute {
       doSomeReallyLongAssWorkWithRecord(results.get(i++));
       updateUI();
       return iresults.size();
    }

 });

 DeferredCommand.addCommand(new Command() {
    public void execute() {
       doCleanUp();
    }

 });

 i.e. will the 2nd deferred cmd (i.e. the cleanup step) always only run
 after the incremental command is done, or can it creep in between
 steps of the incremental command?

 Thanks much for replies!

Your incremental command will execute once, then the deferred command,
then the incremental command again during at most 100ms (I mean,
repeating, and GWT will check between each call whether the total was
less than 100ms so it can call once more, or not; because JS is single-
threaded); and only then it'll yield to the browser. And if you
incremental command wasn't done (i.e. returned true), then quickly
after it'll start executing again, repeating for at most 100ms before
yielding to the browser, etc.

Well, this is from memory, maybe it's rather how Scheduler works
rather than DeferredCommand. But ther'll be one call to the
incremental command, then the call to the deferred command, then only
the remaining calls to the incremental command.

-- 
You received 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: Hook before History changes

2010-06-10 Thread Thomas Broyer


On 8 juin, 17:29, fmod francisco.mode...@gdsoft.eu wrote:
 Hi, I think that question has been posted before but don't find any
 answer for it. I want to have a behavior like this forum, Whenever the
 user press back or forward buttons being able to alert the user that
 he is going to loose the changes.

 The problem come while navigating inside my page. If I hook in the
 History.onValueChange the History has already change before I have
 some control. So the only way I find is either I let the History in an
 inconsistent state. Or I fix the state but loose the future History
 (the forward History get resets due the change).

 So is there a way I can hook my code before the actual change occurs?

No, and you can't prevent the browser from changing the history.
What GMail does is that it lets the history in an inconsistent state.

-- 
You received 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: No source code is available error when using resources

2010-06-10 Thread Thomas Broyer


On 8 juin, 17:57, AkiRoss akirosspo...@gmail.com wrote:
 Hello,
 I'm trying to use ClientBundle for icons and Constants for text in my
 application, but I get these errors:

 [ERROR] Line 133: No source code is available for type
 resources.images.IconsBundle; did you forget to inherit a required
 module?
 [ERROR] Line 134: No source code is available for type
 resources.strings.IconsStrings; did you forget to inherit a required
 module?

 But I included both Resource module and I18N module in my gwt.xml

 module rename-to='narrative_ke'
   inherits name='com.google.gwt.user.User'/
   inherits name=com.google.gwt.resources.Resources /
   inherits name=com.google.gwt.i18n.I18N/
   !-- ... Other stuff --
 /module

 My project has this structure:

 myproject package contains client code and so on, in detail
 myproject.client.common.widgets contains the lines 133 and 134 that
 give the errors above, here the lines:

         private IconsBundle images = IconsBundle.RES;
         private IconsStrings strings = IconsStrings.RES;

 they just use the IconsBundle and IconsString resource instance, that
 is:

 resources.images.IconsBundle interface is like:

 public interface IconsBundle extends ClientBundle {
         public static final IconsBundle RES = GWT.create(IconsBundle.class);

         @Source(resources/images/someImage.png)
         public ImageResource someImage();

 }

 and
 resources.strings.IconsStrings interface is like:

 public interface IconsStrings extends Constants {
         public static final IconsStrings RES =
 GWT.create(IconsStrings.class);
         public String someString();

 }

 Actually I've only one locale, placed in the file
 resources/strings/IconStrings.properties

 Can somone please tell me why I get these errors? Did I forgot other
 modules?

I believe your app's gwt.xml is in myproject, and it has a source
path=client / (or no source/ at all, which is equivalent). If
that's the case, then the interfaces aren't within the
myproject.client package so you can't use them right away.
You have to either move the interfaces into you module's client source
path (myproject.client package or a subpackage) or create a module
(say in resources and with source path=strings/, or in
resources.strings and with source path=/) that you then inherit.

-- 
You received 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: Using Javascript Overlays vs. Manually setting up POJO instances?

2010-06-10 Thread Roger Studner
The only problem I found with this interface technique (which I immediately 
wanted) was this:

public interface MyEntity {
   ListString getNames();
}

The javascript overlay type has to deal in JSArray's, the server can't etc.

So for all lists/collections I found it broke down pretty quick

Roger

On Jun 10, 2010, at 5:55 AM, Olivier Monaco wrote:

 You have also some framework like piriti allowing easy mapping between
 JSON and Java object. But I don't like them because their overhead. I
 use another approach.
 
 My model is made of interfaces. I share the interfaces between the
 server and GWT. For GWT, I have a generator that automatically
 implements the interface as a wrapper around the JSO. This wrapper is
 a zero-overhead implementation (just method forward).
 
 You can find my generator here if it can help you:
 http://code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/main/com/googlecode/tyco/gwt/tikray
 And you have some unittests here:
 http://code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/test/com/googlecode/tyco/gwt/tikray
 
 Olivier
 
 On 10 juin, 01:06, rhodebump rhodeb...@gmail.com wrote:
 I did some reading up on RPC.  Sounds like it would be perfect except
 for the face that it is limited by the Same Origin Policy, so I can't
 use it.
 
 I wish we could do an RPC with JsonpRequestBuilder
 
 Thanks for your insight, you have convinced me to do the Javascript
 Overlays.  I do like type safety and it sounds like it would be more
 efficient.
 
 Phillip
 
 On Jun 9, 5:52 pm, Sripathi Krishnan sripathi.krish...@gmail.com
 wrote:
 
 I am assuming you have a strong reason not to use standard RPC - because if
 you really have POJO's on the server side, reusing the same objects on the
 client side should be a breeze.
 
 It always makes sense to Javascript Overlays, otherwise you loose type
 safety and all the other advantages java has over javascript. It is a pain
 to maintain two versions for the same entity, but the advantages far
 outweigh the inconvenience. You can perhaps even build a small utility that
 generates the overlays -- shouldn't be too difficult.
 
 And finally, if it eases your pain, most people end up having DTOs and Model
 objects *even if* they use regular RPC. That's because the POJO's you have
 on the server may be a complex hierarchy of objects; what you want on the
 client side is usually pretty simple and doesn't have deep hierarchies.
 
 --Sri
 
 On 10 June 2010 02:56, rhodebump rhodeb...@gmail.com wrote:
 
 I have several Java classes that I am using on the serverside, and I
 am using these same classes to serialize the JSON stream back to my
 GWT application.  I am using the JsonpRequestBuilder to call my
 service and it is successfully returning a JavascriptObject.
 
 What is the recommended approach to getting my objects from the json
 response?, should it be a) coerce my JavaScriptObject into a string
 and use the JsonParser, or b) write a 2nd implementation of my classes
 using Javascript overlays?
 
 I don't really like either approach, one option means having 2 types
 of objects that I would need to keep in sync (the pojo and the
 Javascript overlay) and the other way means I have to traverse the
 Json myself, populating my object glyph manually.
 Either way, ouch.
 
 Thanks for listening,
 Phillip
 
 --
 You received 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.
 

-- 
You received 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: Using jqPlot library (javascript chart) with the MVP pattern

2010-06-10 Thread Rizen
Thank you very much for this explication. However I had already added
a div id=chart1/div Element into the HTML page to be sure that
it was adding correctly. But I will use your method for the wrapper.

After this I make two different test.
First I used only the JQuery library with a simple $wnd.$
('#chart1').text('Salut');. It works perfectly and Salut has been
added inside the div Element.

The same method just replacing the code with the chart's code print
the error message : $ is not defined. So it seems that the problem
comes from jqPlot only. I developped also a simple HTML page with the
chart's code and all is ok. As a result my external jqPlot file
doesn't have some problems (hopefully).

So now I don't know if there is a conflict between JQuery and jqPlot,
but I'm going to make some others test.
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.



Disabling DatePicker

2010-06-10 Thread Stephan T
How do I disable the DatePicker widget programatically? Can't find any
suitable setEnabled-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: 1 layout - 3 browsers - 3 results?

2010-06-10 Thread Magnus
Hi Alejandro,

thank you very much!!!
This solution seems to be perfect for me!

I played around a little bit. I Changed the base class for the
ChessTable to DockLayoutPanel, to add some annotations to the chess
board. This worked, too!

Then I inserted a grid into the center section of ChessTable. It's
clear that this was not centered.
May I use the same mechanism to center this grid within the
ChessTable?

I understand the mechanism as follows:

- create a new class, which implements RequiresResize
- write a onResize method which centers this object within the parent

Well, it works great on FF and IE. Good job!

Thanks again!
Magnus


On 9 Jun., 20:31, Alejandro D. Garin aga...@gmail.com wrote:
 Just from the webappcreator. Nothing special.

 On Jun 9, 2010 3:28 PM, Magnus alpineblas...@googlemail.com wrote:

 Hi Alejandro,

 this looks very good and I am still analyzing the java code. I will
 give you a more detailed feedback later...

 The java code looks clean, but the html file is pumped up with of
 JavaScript.
 Does this code belong to the solution or is it just generated from
 other sources?

 Magnus

 On Jun 9, 7:35 pm, Alejandro D. Garin aga...@gmail.com wrote:

  Hi,

  The code below is part of the task, but it center the main chess table in
  the dock center panel

 http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.javahttp://ww...



  On Wed, Jun 9, 2010 at 12:50 PM, Magnus alpineblas...@googlemail.com
 wrote:

   Hi,

   everything you said is correct.

   Magnus

   On Jun 9, 5:09 pm, Alejandro D. ...
   google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com

 google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com



 .
 For more options, visit this group at
http://groups.google.com/group/goog...

-- 
You received 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 Localistion for Large Enterprise apps

2010-06-10 Thread Brian
Hi,

I am developing a massive enterprise application from scratch using
GWT.
I want to use GWT's implementation of localisation but I have some
concerns with performance.
I will have thousands of labels across all my screens that will
require conversion to the appropriate language. Do I have to put all
these label tags into one .properties file? If so, I fear this will
add alot of time to the application startup.
Another approach I was thinking of taking was having multiple
properties files per module and implementing code splitting for each
module. Will code splitting work with loading locale properties files?

It would be great to hear of other people's experience developing
large enterprise apps with regards to localisation.

Thanks

Brian

-- 
You received 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: Using Javascript Overlays vs. Manually setting up POJO instances?

2010-06-10 Thread Olivier Monaco
My TNativeList is a list-like wrapper around a JS array (http://
code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/main/com/
googlecode/tyco/gwt/tikray/client/TNativeList.java). It is used by
TList, a List implementation that maps a JS array to a List without
(too much) overhead.

The following unittest is an example of ListString member:
http://code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/test/com/googlecode/tyco/gwt/tikray/client/collection/GwtTestCollection.java
. I plan to reduce this code be providing a default list where the
list if null.

Currently, my code allows the members of:
- primitive types (int, boolean...)
- wrapper types (Integer, Boolean...)
- String
- Collection/List of wrapper types or String
- Collection/List of JSO
- Collection/List of TObject (something generated by my generator)

Adding Map is not so hard, I just have no need it before ;).

Olivier

On 10 juin, 12:53, Roger Studner rstud...@gmail.com wrote:
 The only problem I found with this interface technique (which I immediately 
 wanted) was this:

 public interface MyEntity {
    ListString getNames();

 }

 The javascript overlay type has to deal in JSArray's, the server can't etc.

 So for all lists/collections I found it broke down pretty quick

 Roger

 On Jun 10, 2010, at 5:55 AM, Olivier Monaco wrote:

  You have also some framework like piriti allowing easy mapping between
  JSON and Java object. But I don't like them because their overhead. I
  use another approach.

  My model is made of interfaces. I share the interfaces between the
  server and GWT. For GWT, I have a generator that automatically
  implements the interface as a wrapper around the JSO. This wrapper is
  a zero-overhead implementation (just method forward).

  You can find my generator here if it can help you:
 http://code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/main/c...
  And you have some unittests here:
 http://code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/test/c...

  Olivier

  On 10 juin, 01:06, rhodebump rhodeb...@gmail.com wrote:
  I did some reading up on RPC.  Sounds like it would be perfect except
  for the face that it is limited by the Same Origin Policy, so I can't
  use it.

  I wish we could do an RPC with JsonpRequestBuilder

  Thanks for your insight, you have convinced me to do the Javascript
  Overlays.  I do like type safety and it sounds like it would be more
  efficient.

  Phillip

  On Jun 9, 5:52 pm, Sripathi Krishnan sripathi.krish...@gmail.com
  wrote:

  I am assuming you have a strong reason not to use standard RPC - because 
  if
  you really have POJO's on the server side, reusing the same objects on the
  client side should be a breeze.

  It always makes sense to Javascript Overlays, otherwise you loose type
  safety and all the other advantages java has over javascript. It is a pain
  to maintain two versions for the same entity, but the advantages far
  outweigh the inconvenience. You can perhaps even build a small utility 
  that
  generates the overlays -- shouldn't be too difficult.

  And finally, if it eases your pain, most people end up having DTOs and 
  Model
  objects *even if* they use regular RPC. That's because the POJO's you have
  on the server may be a complex hierarchy of objects; what you want on the
  client side is usually pretty simple and doesn't have deep hierarchies.

  --Sri

  On 10 June 2010 02:56, rhodebump rhodeb...@gmail.com wrote:

  I have several Java classes that I am using on the serverside, and I
  am using these same classes to serialize the JSON stream back to my
  GWT application.  I am using the JsonpRequestBuilder to call my
  service and it is successfully returning a JavascriptObject.

  What is the recommended approach to getting my objects from the json
  response?, should it be a) coerce my JavaScriptObject into a string
  and use the JsonParser, or b) write a 2nd implementation of my classes
  using Javascript overlays?

  I don't really like either approach, one option means having 2 types
  of objects that I would need to keep in sync (the pojo and the
  Javascript overlay) and the other way means I have to traverse the
  Json myself, populating my object glyph manually.
  Either way, ouch.

  Thanks for listening,
  Phillip

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

com.google.gwt.core.client.JavaScriptException: (TypeError): methodTable[2] is not a function

2010-06-10 Thread GregCA75
Hi guys,


I have just upgraded my web application from GWT 1.5 to GWT 2.0.3 and
I get this error:

uncaught exception: com.google.gwt.core.client.JavaScriptException:
(TypeError): methodTable[2] is not a function stack:
$serialize([object Object],[object Object],[object
Object],web.gwt.rsosync.client.model.RSOFormData$QueryModel/
177076075)@http://localhost:8080/myapp/gwt/RSO/
7ED6F3C652B9A90CD7E6F789A9414211.cache.html:33827

It looks like it is linked to the serialization but the classes
serialized are exactly the ones that were perfectly serialized by GWT
1.5
I must say I am completely stuck on this one and I don't see anyway to
debug.

Does anybody know about this ? Any idea about how to nail down the
issue ?

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



Google visualization over HTTPS

2010-06-10 Thread Flavien Laurent
I am using GWT 2.0.3 and have a page, compiled as client-side Java
code
into JavaScript containing a Google Visualization chart included in
the Java code with VisualizationUtils.loadVisualizationApi.

This page is delivered over https.

The problem being that the call to retrieve the chart from the
compiled javascript is made over http and browsers, especially IE
create warnings that pop up about insecure items being imported into
the secure page.

Is there any way to specify an option in the Java code or the setup
(*.gwt.xml file) so that the http request to retrieve the chart is
made over https ?

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



Page Navigation

2010-06-10 Thread CIAO
Hi I am a newbie to GWT and am working on an application Dev that has
a login page and when the user successfully identifies itself it goes
to a data page (loads the new data widgets after removing the login
widgets) that shows it all the data s/he requires
the problem i am facing is
whenever i press the refresh button (or F5) it goes back to the login
widgets..
i need to arrest this behavior and user should *NOT* be sent back once
user has logged in...

thanks in advance
CIAO

-- 
You received 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 Expert job opening

2010-06-10 Thread Annabeth Daly-TEKsystems
Please contact me, anmil...@teksystems.com, if interested in a great
opportunity for a GWT Expert opening in Norfolk, VA for a government
client.  This position will allow a candidate to gain a security
clearance.  Position is as follows:

Google Web Toolkit Expert Job Description:
TEKsystems has an immediate need for an Expert Google Web Toolkit UI
Developer for a large government integrator in Norfolk, VA. The
selected candidate will be responsible for the design and development
of User Interface (UI) software. The selected candidate will perform
the following:

Work closely with the customer to define UI software requirements.
Write complex UI software code.
Lead code and design reviews.
Design and execute UI software tests.
Identify and report software problems. Develop software trouble
reports. Debug and validate fix.
Employ industry best practices.
Lead junior UI software developers in the software development
process.

Required Qualifications:
Must be eligible to obtain a DoD SECRET Security Clearance.

Typically requires bachelor's degree or equivalent, and 10 to 12 years
of related software development experience. Must have experience in
Google Web Toolkit (GWT) User Interface development. The 10-12 years
of software development experience must include:

Core Java Skills
* Java Programming Language (Java 2 5.0 or 6.0 preferred)
* Object Oriented Design
- Design Patterns
- Inversion of Control, Spring experience a plus.
- Universal Modeling Language (UML)
- Prior experience in non-maintenance development,
- new enterprise business systems preferred, especially SOA and J2EE
systems.
* Test Driven Development
- using JUnit and/or Selenium a plus.

User Interface Specialist Skills:
* Google Web Toolkit (GWT) User Interface Development (GWT v2 a huge
plus).
* Common UI Design patterns
(MVP - Model View Presenter, MVC - Model View Controller)
* GWT Presenter experience a plus.
* Gin experience (a dependency injection library) a plus.
* Experience extending GWT widgets a plus.
* GWT Widget library experience (SmartGWT, gwt-ext, etc...) a plus
* JavaScript/JScript Development
* Advanced Javascript development, including JavaScript Object
Notation (JSON)
a huge plus
* Basic HTML and CSS web page authoring
* Basic Web Graphics understanding (Web Safe Color Schemes, etc...)
* Human Systems Integration and Usability Testing Experience a plus.
* Web Application Performance optimization experience a plus.
(Async Splitting, YSlow, etc...)
* Graphic Design skills and Adobe CS Design Premium fluency a plus.

Development Tools
* Eclipse IDE
* Java Build Systems (Ant and/or Maven)
* JUnit/Selenium

Desired Qualifications:
* Experience working on Service Oriented Architecture (SOA) systems.
* J2EE, experience on the JBoss platform preferred.
- Web Services Development
- SOAP or REST services, both preferred.
- Web Services Description Language (WSDL).
- Service Mediation systems experience a small plus.
- Enterprise JavaBean experience (EJB2.x or EJB3)
- Business Process Management using jBPM. (Service Orchestration)
- Database Programming (SQL) and Object Relational Mapping (ORM) using
Hibernate or the Java Persistence API (JPA).
- Sybase experience is nice to have.
- Event stream processing using Esper a plus.
- Enterprise Service Bus (ESB).
- eXtensible Markup Language (XML) and Schemas (XSD).
- XML StyleSheet Transformations (XSLT).
- JavaScript Object Notation (JSON) a plus.
- Service Discovery using UDDI is a nice to have, but not a
discriminator.
- Application Performance Optimization experience a plus.
- RSS/RDF/Atom Format



Required Skills:
GOOGLE WEB TOOLKIT
JAVA/J2EE
SOAP/REST

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



app engine with hosted mode

2010-06-10 Thread alexh
Hi,

I am currently developing a GWT application that will run on Google
App Engine. I have chosen to use Maven and am running my application
from the command line for debugging and testing. What I would like to
be able to do is run my application in the GWT 2.0 hosted environment
but still initialize the App Engine runtime. Can someone help me out
with what I need to configure in order to make this happen? I'm
currently using gwt-maven-plugin in my pom.xml. Any help with this
would be greatly appreciated.

Thanks,

Alex

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.



Does @DefaultMessage and @PluralText really work?

2010-06-10 Thread PEZ
I'm making (porting really) a relative time module for human
readable date-and-time messages to GWT. The first (alpha-ish) version
is up on Github: http://github.com/PEZ/GWT-Relative-Time

Anyone who tries it will notice that it reports all times as plurals.
When it should say an hour ago, it says 1 hours ago. My messages
interface looks like so:

public interface TimeMessages extends Messages {
...
@DefaultMessage({0} {1,number} hours {2})
@PluralText({one, an hour})
String hours(String prefix, @PluralCount int count, String
suffix);
...
}

From what I can understand of the documentation, that is how you
should be able to deal with singular and plural forms, right? Well, it
doesn't work. Anyone who knows how this works? Or, if it's a bug in
GWT, can I work myself around 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.



Re: calling rest service from GWT

2010-06-10 Thread PEZ
On Jun 9, 11:36 pm, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
    This has some disadvantages - authentication cookies meant for external
    domain will not be sent by the browser.

What does that mean in practice?

/PEZ

-- 
You received 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 with Seam in Host mode.

2010-06-10 Thread Nag
Hi

I am developing one application with seam-2.2.0 and GWT-2.0.3. I am
able to deploy the application in Jboss server with ant script, but am
not able to run the same application in host mode with built in jetty
server. I am getting the runtime exception No Such Component while
running in host mode. The below is full stack trace of the error.

   [WARN] Exception while dispatching incoming RPC call
java.lang.RuntimeException: No such component:
com.test.client.GreetingService
 at
org.jboss.seam.remoting.gwt.GWTToSeamAdapter.callWebRemoteMethod(GWTToSeamAdapter.java:
68)
 at
org.jboss.seam.remoting.gwt.SeamRPC.invokeAndEncodeResponse(SeamRPC.java:
152)
 at org.jboss.seam.remoting.gwt.GWTService.processCall(GWTService.java:
124)
 at org.jboss.seam.remoting.gwt.GWTService$1.process(GWTService.java:
92)
 at
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:
53)
 at org.jboss.seam.remoting.gwt.GWTService.getResource(GWTService.java:
113)
 at
org.jboss.seam.servlet.SeamResourceServlet.service(SeamResourceServlet.java:
80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
 at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1097)
 at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:83)
 at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
 at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
 at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:
90)
 at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
 at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
 at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1088)
 at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
360)
 at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
 at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
 at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
 at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
 at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49)
 at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
 at org.mortbay.jetty.Server.handle(Server.java:324)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
 at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:843)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
 at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395)
 at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488)
Jun 10, 2010 9:50:34 AM org.jboss.seam.contexts.Contexts
flushAndDestroyContexts
SEVERE: could not discover transaction status
[ERROR] 500 - POST /seam/resource/gwt2 (127.0.0.1) 57 bytes
   Request headers
  Host: 127.0.0.1:
  User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729)
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
*;q=0.8
  Accept-Language: en-us,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 300
  Connection: keep-alive
  Cookie: JSESSIONID=1vu6je0lq3gtp
  Referer: http://127.0.0.1:/test/hosted.html?test
  X-GWT-Permutation: HostedMode
  X-GWT-Module-Base: http://127.0.0.1:/test/
  Content-Type: text/x-gwt-rpc; charset=utf-8
  Content-Length: 162
  Pragma: no-cache
  Cache-Control: no-cache
   Response headers
  Expires: Thu, 01 Jan 1970 00:00:00 GMT
  Set-Cookie: JSESSIONID=argmt93d1l5l;Path=/
  Content-Type: text/plain

Could any one let me know how to resolve this issue.

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: Safari 5 / GWT / GWT EXT 2.0.6

2010-06-10 Thread Dan Dunham

Here is the underlying Webkit bug causing this: 
https://bugs.webkit.org/show_bug.cgi?id=40355

-- 
You received 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 today's date, and the first day of this week's date?

2010-06-10 Thread Nicholas
To answer #6: I asked the GWT team about this during the fireside chat at
I/O this year.  They appeared to be caught off guard by the question but
eventually came out and said that they have no plans on resolving this
issue.  I kind of got the feeling that this was the first time that it came
up to them.  We have attempted to tackle this issue in two different ways.
 We first made a DateUtil class that wrapped up all of the deprecated
methods that we used from java.util.Date.  This was an OK solution but it
seemed really dirty.   Then a co-worker went about modifying Joda Time (
http://joda-time.sourceforge.net/) for the purpose of using it within GWT.
 The result was gwt-time (http://code.google.com/p/gwt-time/).  It is usable
but it is considered alpha as there is much work to be done with it before
it is ready for GWT prime time.  It is our hope that we will be able to make
this a rich implementation of the joda time API that plays well in GWT land.
 Unfortunately neither of the contributors have had much time to hack away
at it lately.

-Nick

On Tue, Jun 8, 2010 at 3:58 PM, spierce7 spier...@gmail.com wrote:

 Hey guys, I just found out that the Java Calendar class isn't
 compatible with GWT (Assumed it was since Date was). I'm a Java newb
 and spent a few hours figuring out how to do what I wanted to do with
 the Calendar class, and I'm clueless how to do this with GWT, so any
 help would be appreciated.

 1. Get today's date.
 2. Using the current date, get the date of the first day of the week
 (Sunday), and I think I might need to know how to get the end date
 also.
 3. How to Add and subtract a number of days to a date.
 4. I need to know how to parse all the above questions information
 into a string.

 Off the top of my head, that's what I'm trying to do. 1 More question:
 5. Would it improve performance while handling a start date and an end
 date for an event, instead of keeping an end date, calculating the
 duration that the event would last, rather than calculating the date?
 Would it even be worth it? (A friend recommended this)

 6. Are we seeing any updates coming for working with dates? I'm
 currently using GWT 2.03.

 --
 You received 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: quirks vs. standard mode

2010-06-10 Thread Ata
 In GWT some widgets only work properly in quirks or standard mode, not
 both. As far as I could tell I should be running the app in standard
 mode because I have !doctype html as the first line of the root HTML
 page, however widgets like TabLayoutPanel that are supposed to work in
 standard mode don't work, and the quirks mode ones do. I'm using IE6
 (I can also try with chrome and IE8 later, but it should work with any
 browser). Does anyone know why this quirks/standard mode is not
 working as advertised? Could it be a browser thing, or am I really NOT
 in standard mode even though I think I am, or is the GWT documentation
 just lying to 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.



How to suppress Deprecation warnings

2010-06-10 Thread Sekhar
Hi

I am using GWT 2.0.3 and gwt-incubator-20100204 in building our
application.
After migation from GWT 1.5.3 to GWT 2.0.3, i see below deprecation
warnings while compiling the code using GWT compiler. Also you can see
all these warnings are due to deprecated class references from
incubator jar.
Can you please help me how i can suppress these warnings?


Also is there a way to suppress the messages Compiling 6
permutations ...

Thanks
Sekhar

compile.web:
 [java] Compiling module deshaw.sonar.rose.gwt.SonarViewer
 [java]Validating newly compiled units
 [java]   [WARN] Warnings in 'jar:file:/u/yemparal/svn/base/
gwt-incubator-20100204-r1747.jar!/com/google/gwt/widgetideas/table/
client/GridBulkRenderer.java'
 [java]  [WARN] Line 102: Referencing deprecated class
'com.google.gwt.widgetideas.table.client.overrides.HTMLTable'
 [java]  [WARN] Line 103: Referencing deprecated class
'com.google.gwt.widgetideas.table.client.overrides.Grid'
 [java]  [WARN] Line 104: Referencing deprecated class
'com.google.gwt.widgetideas.table.client.overrides.Grid'
 [java]  [WARN] Line 104: Referencing deprecated class
'com.google.gwt.widgetideas.table.client.overrides.HTMLTable'
 [java]   [WARN] Warnings in 'jar:file:/u/yemparal/svn/base/
gwt-incubator-20100204-r1747.jar!/com/google/gwt/widgetideas/table/
client/TableBulkRenderer.java'
 [java]  [WARN] Line 404: Referencing deprecated class
'com.google.gwt.widgetideas.table.client.overrides.HTMLTable'
 [java]   [WARN] Warnings in 'jar:file:/u/yemparal/svn/base/
gwt-incubator-20100204-r1747.jar!/com/google/gwt/widgetideas/table/
client/FixedWidthGridBulkRenderer.java'
 [java]  [WARN] Line 122: Referencing deprecated class
'com.google.gwt.widgetideas.table.client.overrides.HTMLTable'
 [java]   [WARN] Warnings in 'jar:file:/u/yemparal/svn/base/
gwt-incubator-20100204-r1747.jar!/com/google/gwt/widgetideas/client/
impl/GlassPanelImpl.java'
 [java]  [WARN] Line 30: Referencing deprecated class
'com.google.gwt.user.client.impl.DocumentRootImpl'
 [java]  [WARN] Line 38: Referencing deprecated class
'com.google.gwt.user.client.impl.DocumentRootImpl'
 [java]Compiling 6 permutations
 [java]   Compiling permutation 0...
 [java]   Compiling permutation 1...
 [java]   Compiling permutation 2...
 [java]   Compiling permutation 3...
 [java]   Compiling permutation 4...
 [java]   Compiling permutation 5...
 [java]Compile of permutations succeeded

-- 
You received 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: Google first page - Change background image - in GWT?

2010-06-10 Thread mmoossen
Hi, Matic!

 It would be a really huge reference
i think Google Wave is a better example anyway!

regards
Michael

On Jun 9, 3:03 pm, rudolf michael roud...@gmail.com wrote:
 yeah you're right...just the obfuscated js made think that it is GWT,
 but apparently there is not
 *..nocache.jsview-source:http://192.168.0.173:8080/SMD/smdesigner_gwt/smdesigner_gwt.nocache.js

  file included. this means that this is not a GWT Module.

 On Wed, Jun 9, 2010 at 1:14 PM, Sripathi Krishnan 

 sripathi.krish...@gmail.com wrote:
  Don't think it is GWT. Although the code is obfuscated, it doesn't have any
  of GWTs tell-tale signs.

  @Rudolf - anything specific in the source that makes you think it is GWT?

  --Sri

  On 9 June 2010 15:26, rudolf michael roud...@gmail.com wrote:

  yes, i can confirm this after looking at the source. this is GWT ;--)

  On Wed, Jun 9, 2010 at 12:48 PM, maticpetek maticpe...@gmail.com wrote:

  Hello,
   I just see option Change background image on Google search first
  page (www.google.com). Design of dialog looks like GWT. Is this
  written in GWT? It would be a really huge reference
  Regards,
   Matic

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@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.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.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: Using jqPlot library (javascript chart) with the MVP pattern

2010-06-10 Thread Rizen
I'm a stupid boy... I forgot to replace ALL $.jqplot() by $wnd.
$.jqplot();

It's an improvement, but now the error has changed by :

com.google.gwt.core.client.JavaScriptException: (String): Improper
Data Array

The table works in a HTML page, so I don't know why not here :/

I'm going to continue my research.
Thanks a lot for your help.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: quirks vs. standard mode

2010-06-10 Thread Daniel Le Clere
Ummm... IE 6 doesn't have a standards mode... Adding that doctype is
probably just causing more issues. The HTML 5 doctype is useful for
forcing IE 7 and 8 into standards mode. If you want to get your
program rolling for IE 6 you're going to have to write some specific
views under the MVC or accept greater restrictions in your overall
design. GWT is not magic, it cannot force IE 6 to do something that
was not accounted for in its design. If you want that kind of magic
try Google Frame :)


On Jun 10, 12:37 pm, Ata ata@gmail.com wrote:
  In GWT some widgets only work properly in quirks or standard mode, not
  both. As far as I could tell I should be running the app in standard
  mode because I have !doctype html as the first line of the root HTML
  page, however widgets like TabLayoutPanel that are supposed to work in
  standard mode don't work, and the quirks mode ones do. I'm using IE6
  (I can also try with chrome and IE8 later, but it should work with any
  browser). Does anyone know why this quirks/standard mode is not
  working as advertised? Could it be a browser thing, or am I really NOT
  in standard mode even though I think I am, or is the GWT documentation
  just lying to 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: GWT Localistion for Large Enterprise apps

2010-06-10 Thread Stefan Bachert
Hi Brian,

let us calculate

1000 Labels, average 10 characters in size.
makes 10KByte

How fast do you expect your network?
10KB/s - 10 Sec (Modem)
100KB/s - 1 Sec (ISDN)
1MB/s - 0.1 Sec (DSL)
10MB/s - 0.01 Sec (ADSL)
100MB/s - 0.001 Sec (intranet)

How often this addition time applies?
Exactly the first time you download the app. After that, it is in the
cache.
OK, each release requires a further download

When your figures are in that range, is it really worth to care about
it?

Do what is good for modularisation but do not care about download
performance.

Stefan Bachert
http://gwtworld.de

On Jun 10, 1:29 pm, Brian bboyl...@gmail.com wrote:
 Hi,

 I am developing a massive enterprise application from scratch using
 GWT.
 I want to use GWT's implementation of localisation but I have some
 concerns with performance.
 I will have thousands of labels across all my screens that will
 require conversion to the appropriate language. Do I have to put all
 these label tags into one .properties file? If so, I fear this will
 add alot of time to the application startup.
 Another approach I was thinking of taking was having multiple
 properties files per module and implementing code splitting for each
 module. Will code splitting work with loading locale properties files?

 It would be great to hear of other people's experience developing
 large enterprise apps with regards to localisation.

 Thanks

 Brian

-- 
You received 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: Disabling DatePicker

2010-06-10 Thread Stefan Bachert
Hi Stephan,

Yes, that is odd. Any Widget/UIObject should be able to disable.

Anyway, sometime it works to set the dependent style to disabled.

Stefan Bachert
http://gwtworld.de

On Jun 10, 12:58 pm, Stephan T stephan.tern...@gmail.com wrote:
 How do I disable the DatePicker widget programatically? Can't find any
 suitable setEnabled-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: Using jqPlot library (javascript chart) with the MVP pattern

2010-06-10 Thread Olivier Monaco
Because the array is bound to the sub-frame used by GWT.

When you create an array using [], the Array function is called. This
is the same as new Array(). Then the following condition returns
true: [].constructor == Array.

But, there is an Array function for each frame. If you create an array
in one frame, and use the same comparison in another, it will returns
false.

You must create your array using new $wnd.Array(). That's another
reason to do a real wrapper ;).

Olivier

On 10 juin, 14:06, Rizen vianney.dep...@gmail.com wrote:
 I'm a stupid boy... I forgot to replace ALL $.jqplot() by $wnd.
 $.jqplot();

 It's an improvement, but now the error has changed by :

 com.google.gwt.core.client.JavaScriptException: (String): Improper
 Data Array

 The table works in a HTML page, so I don't know why not here :/

 I'm going to continue my research.
 Thanks a lot for your help.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: quirks vs. standard mode

2010-06-10 Thread Chris Lercher
Daniel, IE 6 does have something like a standards mode - it's not
really standards compliant, but it does behave differently, when
putting it into that mode. That's because, when it's in quirks mode,
then it behaves like IE 5.5. See http://www.quirksmode.org/css/quirksmode.html
for more details.

As far as I can tell, the new layout panels of GWT 2.x are designed to
also work on IE6 in its standards mode - sometimes by emulating CSS
properties with javascript.

@Ata: Try to use !DOCTYPE html (note the uppercase DOCTYPE). Make
sure, that it's the very first thing in the document (no comments or
anything in front of it!)


On Jun 10, 2:28 pm, Daniel Le Clere daniel.lecl...@gmail.com wrote:
 Ummm... IE 6 doesn't have a standards mode... Adding that doctype is
 probably just causing more issues. The HTML 5 doctype is useful for
 forcing IE 7 and 8 into standards mode. If you want to get your
 program rolling for IE 6 you're going to have to write some specific
 views under the MVC or accept greater restrictions in your overall
 design. GWT is not magic, it cannot force IE 6 to do something that
 was not accounted for in its design. If you want that kind of magic
 try Google Frame :)

 On Jun 10, 12:37 pm, Ata ata@gmail.com wrote:



   In GWT some widgets only work properly in quirks or standard mode, not
   both. As far as I could tell I should be running the app in standard
   mode because I have !doctype html as the first line of the root HTML
   page, however widgets like TabLayoutPanel that are supposed to work in
   standard mode don't work, and the quirks mode ones do. I'm using IE6
   (I can also try with chrome and IE8 later, but it should work with any
   browser). Does anyone know why this quirks/standard mode is not
   working as advertised? Could it be a browser thing, or am I really NOT
   in standard mode even though I think I am, or is the GWT documentation
   just lying to 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: LayoutPanel question

2010-06-10 Thread Stefan Bachert
Hi Chris,

it is not really clear to me.
Did you switched of the added child, or the layer (div) containing the
added child.
The first is not suffient and will leave the layer (div).

I think, the correct method to get the layer div of any child widgets
is
getWidgetContainerElement.

Call this and set the visibiltity

Stefan Bachert
http://gwtworld.de


On Jun 9, 11:28 pm, Chris christopher.burr...@gmail.com wrote:
 Hi there

 I'm trying to hide a layer in my LayoutPanel. The idea is to have a
 layer act a bit like a popup, but it's not really a popup, and it
 makes it easier if it is a layer.

 I'm trying to hide it, so I toggle the layer child (a simplePanel)'s
 visibility property on/off, which seems to work fine, but it leaves a
 div element (from the layer I suppose), which means I can't click
 through to the elements behind it... When I look at the DOM, I get a
 div with all the properties from my layer, and then the div inside
 that is the SimplePanel I'm using.

 Any ideas? I guess i could just ask for the widget's parent? But that
 seems hacky. Am I doing something wrong?

 Chris

-- 
You received 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 @DefaultMessage and @PluralText really work?

2010-06-10 Thread PEZ
I'm using GWT 2.0.3. I have now also tried using a .properties file
instead. Like so:

hours[one]=an hour
hours={0} {1,number} hours {2}

With the same, boring, results.

/PEZ

On Jun 9, 10:38 pm, PEZ p...@pezius.com wrote:
 I'm making (porting really) a relative time module for human
 readable date-and-time messages to GWT. The first (alpha-ish) version
 is up on Github:http://github.com/PEZ/GWT-Relative-Time

 Anyone who tries it will notice that it reports all times as plurals.
 When it should say an hour ago, it says 1 hours ago. My messages
 interface looks like so:

 public interface TimeMessages extends Messages {
 ...
     @DefaultMessage({0} {1,number} hours {2})
     @PluralText({one, an hour})
     String hours(String prefix, @PluralCount int count, String
 suffix);
 ...

 }

 From what I can understand of the documentation, that is how you
 should be able to deal with singular and plural forms, right? Well, it
 doesn't work. Anyone who knows how this works? Or, if it's a bug in
 GWT, can I work myself around 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.



Renaming nocache.js

2010-06-10 Thread Aditya
Hi,
 Does renaming nocache.js affects deployment?

Cheers,
Aditya


-- 
You received 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: Safari 5 / GWT / GWT EXT 2.0.6

2010-06-10 Thread eric73
Thanks all

I will try to fix some peace of code in my application

Cheers

Eric

On 9 juin, 23:53, Dan Dunham dunha...@gmail.com wrote:
 Here is the underlying Webkit bug causing 
 this:https://bugs.webkit.org/show_bug.cgi?id=40355

-- 
You received 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 eclipse plugin source code

2010-06-10 Thread fedy2
Hi,
when the GWT eclipse plugin source code will be released?

Thanks,
Federico

-- 
You received 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, servlet, JSP and datastore

2010-06-10 Thread kensai yanesha
@Tristan

thx 4 info

On 9 čvn, 18:32, Tristan Slominski tristan.slomin...@gmail.com
wrote:
 @kensai

 If you look at Google App Engine, the datastore is part of Google's
 free-to-start cloud hosting service.

 On Wed, Jun 9, 2010 at 02:56, kensai yanesha archenr...@googlemail.comwrote:

  Hi Laurent,

  I am also new to GWT, also fascinated :-). I also already went trough
  samples and tutorials and well stopped at the point how to bind
  components to, in my case, database table in Oracle database. I don't
  know what do you mean exactly by Google datastore but I think you
  mean the Datastore class in GWT framework.

  Even GWT is very good for creating nice GUI on the client side, it's
  object-relational mapping is still in incubation period and you
  following options how to proceed:
  1.) You need to manually write the functions which manipulate with
  data  on the server side and call it via AJAX (JavaScript) from the
  client side when necessary.
  2.) Look at EoD SQL project athttp://eodsql.sourceforge.net/this
  library may help you, there are also tutorials how to use it together
  with GWT
  3.) This is the easiest, free for trial then payed, option. Use
  SmartGWT Professional or Enterprise. Take a look at it
 http://code.google.com/p/smartgwt/. It has integrated tomcat inside.
  In the SDK there are lot of examples and tutorials, but also something
  what you will find maybe really useful:
  Datasource generator - generate XML DS descriptional file, works with
  standard database engines, etc.
  Visual designer - you can create client layouts in visual way, in this
  tool you are also able to use for example Datagrid directly with
  Datasource you created in generator, and you have component directly
  interacting with any datasource.

  I found SmartGWT SDK best for learning, as standard GWT, you have
  access to all Java, XML files, but from Visual designer you also
  generate JSP file and can see what have you created.

  Hope I helped you. Also send me your experiences I you already found
  something better, different.

  Best regards,

  Kensai
  On Jun 8, 11:08 am, laurentleb laurent...@gmail.com wrote:
   To the GWT community,

   I am pretty new to GWT but familiar with n-tiers application
   development. I find GWT fascinating to develop rich web applications
   and went through the tutorial. This is amazingly simple to achieve.

   On the other side, I tested also Google app Engine to develop and
   deploy a JSP/servlet + datastore testing app. Once again, it is really
   efficient.

   My question is : how can I combine these two approaches to build nice
   applications on the client side with efficient business java code on
   the server side and data storing in Google datastore ?

   Are there some guidelines ? Is there a policy ?

   Thank you in advance for your help.

   Laurent

  --
  You received 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: GWT and Spring - with Spring Web MVC or without it?

2010-06-10 Thread Brian Reilly
I've had good luck with the second (non-invasive) approach. A coworker
of mine implemented the first (using Spring MVC) approach and it did
work for the most part. However, we aren't otherwise using Spring MVC
and don't have any broad expertise in it, so I was initially confused
when looking at it. Specifically, I didn't know about the relationship
between the servlet name and the -servlet.xml file, the contents of
which require some learning to understand (i.e.,
SimpleUrlHandlerMapping and its mappings property). I also didn't
like the additional wrapper GwtRpcController around the actual
service; it seems like an unnecessary layer. I think this setup keeps
you from having to extend RemoteServiceServlet, but you still have to
worry about GWT serialization of parameters and return values so I
don't see it as a big gain. Also, the proxy means that you lose
getThreadLocalRequest unless you add code to the GwtRpcController to
forward it to your service.

I like the non-invasive approach because it keeps the setup of the GWT-
RPC servlet exactly as explained in the GWT documentation. Your spring-
configured services don't change either. You just gain the ability to
inject those services into your GWT-RPC remote servlets.

I think it comes down to where you're coming from. If you already use
and like Spring MVC, you'll probably prefer the first approach. (I
hope someone with that perspective also responds to describe the
benefits of that setup.) If you like GWT and just need to integrate
with your spring-configured services, you'll probably prefer the
second approach.

-Brian

On Jun 8, 11:32 am, ezamur eza...@gmail.com wrote:
 Hi all...

 I am new to GWT - had some contact with it earlier but not enough to
 say I am confident with it.

 My task is to investigate this technology and pair it with Spring
 framework. There are a lot of tutorials explaining how this can be
 done, but what is bothering me is I can't decide which approach to
 choose. For example, I've seen one using Spring's MVC (like this 
 one:http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-...),
 but also other where integration is done without it 
 (e.g.http://code.google.com/p/gwt-spring-starter-app/)

 I am afraid to miss something important by choosing one of these
 approaches and possibly lose some of Web MVC functionalities that
 might be needed later or end up in dead end street using it.

 I would be grateful if anyone explained me what are the pros and cons
 of these approaches from practical point of view - is there a need for
 DispatcherServlet and Controllers while having GWT and its RPC
 mechanism.

 Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Seeing RangeError: Maximum call stack size exceeded. with Safari 5 and our GWT 2.0.3 app

2010-06-10 Thread Brian Reilly
This is being discussed in another thread:

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e4e2694eba39f93d

-Brian

On Jun 8, 11:07 am, matthew jones bigboxe...@gmail.com wrote:
 Anyone else having this issue?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Seeing RangeError: Maximum call stack size exceeded. with Safari 5 and our GWT 2.0.3 app

2010-06-10 Thread Brian Reilly
Also this thread:

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/3886f3c851bdefdc

On Jun 10, 9:33 am, Brian Reilly brian.irei...@gmail.com wrote:
 This is being discussed in another thread:

 http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

 -Brian

 On Jun 8, 11:07 am, matthew jones bigboxe...@gmail.com wrote:



  Anyone else having this issue?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Disabling DatePicker

2010-06-10 Thread mariyan nenchev
Hi,

you can try this:

public void setEnabled(boolean enabled) {
DOM.setElementPropertyBoolean(getElement(), disabled, !enabled);
if (enabled) {
this.removeStyleName(disabled);
} else {
this.addStyleName(disabled);
}
}

public boolean isEnabled() {
return !DOM.getElementPropertyBoolean(getElement(), disabled);
}

// css
.disabled {
cursor: default ! important;
color: #888 ! important;
}

Extend DatePicker, add these two methods. The only problem is that you have
to check on every event if the DatePicker is enabled or not...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: No source code is available error when using resources

2010-06-10 Thread AkiRoss
On Jun 10, 12:50 pm, Thomas Broyer t.bro...@gmail.com wrote:
 I believe your app's gwt.xml is in myproject, and it has a source
 path=client / (or no source/ at all, which is equivalent). If
 that's the case, then the interfaces aren't within the
 myproject.client package so you can't use them right away.
 You have to either move the interfaces into you module's client source
 path (myproject.client package or a subpackage) or create a module
 (say in resources and with source path=strings/, or in
 resources.strings and with source path=/) that you then inherit.

Hello Thomas,
thanks for the reply, yes: you were right. I had that source path.

Can the problem also be fixed by adding a new source
path=resources / or by moving the resources package in the client
source?

I'm not an expert with modules, and I don't know any documentation
about how to configure the .gwt.xml (do you know where I can find
it?), but I forgot that translatable code was in the client/
directory.

Anyway I solved,
thanks very much.

~Aki

-- 
You received 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: Cleaning up threads on GWT application shutdown

2010-06-10 Thread jhulford
Technically, the proper way according to the specs is to not utilize
background threads.  Of course, since nobody actually obeys that
proclamation, use a ServletContextListener to start your Thread when
the servlet context is started and stop the thread when the context is
being destroyed.  In general, that's the proper way to do any init /
teardown work in a web application.

On Jun 8, 6:02 pm, jjd jjdemp...@gmail.com wrote:
 I have a GWT application that starts an independent thread and leaves
 it running for use by multiple GWT sessions.

 It appears that under Tomcat, when I Stop of Undeploy the application,
 this thread keeps running.  I can't figure out the right way to manage
 shutting down the thread when the application is stopped (but tomcat
 keeps running).

 I tried adding a ShutdownHook using
 Runtime.getRuntime().addShutdownHook(), but that doesn't get called
 until Tomcat itself is shutdown.

 What is the proper way to manage threads at application shutdown time?

 Thanks,

 --Jim--

-- 
You received 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: Extracting the year from a Date() object

2010-06-10 Thread Eric


On Jun 10, 6:31 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 8 juin, 16:29, Eric erjab...@gmail.com wrote:

  Sadly, the best method is to use GWT's DateTimeFormat:

  private static final DateTimeFormat YEAR_FORMAT =
  DateTimeFormat.getFormat();
  public static int year(final Date date) {
    return Integer.parseInt(YEAR_FORMAT.format(date));

  }

 Do you really think GWT won't use a Date#getYear() to output the
  formatted string? How then parsing it back into an int would be
 better than just calling getYear() and adding a @SuppressWarning on
 your method?

I've come to the conclusion that you're right.  I dislike suppressing
warnings; I work on projects where people deprecate their own code
but never refactor the old code away.  Suppressing warnings lets those
people hide their malpractice from themselves.

But in this case, the deprecation is Sun's problem.  My problem is
that
I'm a programming prig prig.  Go ahead--use the anotation, and save
yourself many lines of useless code.  If it weren't too much trouble
to
set up, I'd suggest using a JSNI function to do the work.  However,
the
invocation and the creation of that are both ugly.

I surrender.

Respectfully,
Eric Jablow

-- 
You received 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: problem with RequestBuilder

2010-06-10 Thread Alex
im using cobogwave to build my wave gadget,
when i add add-linker name=xs/
it show some boot error

On Jun 8, 4:34 pm, nino ekambi jazzmatad...@googlemail.com wrote:
 I think you could use the xs-linker.
 But i think even that wont help if the browser from wich u make the request
 doesnt allows xs-Requeest

 2010/6/8 Alex monsterno...@gmail.com

  what should i use to make such a request?
  i have tried com.google.gwt.xhr.client.XMLHttpRequest, but the status
  code i get is 0.

  On Jun 8, 4:26 am, Sripathi Krishnan sripathi.krish...@gmail.com
  wrote:
   It seems you are making a cross-domain request.  In general, you cannot
  use
   RequestBuilder to make cross domain calls.

   --Sri

   On 7 June 2010 23:39, Alex monsterno...@gmail.com wrote:

im getting empty string from response.getText()
and response.getStatusText() give OK

must the response from the server be in xml?
must the data i send be in xml?

im working on a google wave gadget.
im trying to send a http POST to a web service which i have no control
of.
the data im sending is in plain text and the data im expecting is in
plain text.

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

2010-06-10 Thread Geoffrey Wiseman
On Jun 8, 10:47 am, Geoffrey Wiseman geoffrey.wise...@gmail.com
wrote:
 Anyone tried Safari 5.0 with GWT 1.7.x to see if it solves the crash
 issue?
 (http://code.google.com/p/google-web-toolkit/issues/detail?id=4220)

Got bored of waiting.  Tried it myself.  Seems to work so far;
pleasing.

-- 
You received 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: calling rest service from GWT

2010-06-10 Thread Vitali Lovich
Browsers support XML, but unfortunately there's no API exposing that.

Google provides the XML parser
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html?overview-summary.html

You may have to write your own code to generate that request.

On Thu, Jun 10, 2010 at 12:12 AM, PEZ p...@pezius.com wrote:

 On Jun 9, 11:36 pm, Sripathi Krishnan sripathi.krish...@gmail.com
 wrote:
 This has some disadvantages - authentication cookies meant for
 external
 domain will not be sent by the browser.

 What does that mean in practice?

 /PEZ

 --
 You received 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: Extracting the year from a Date() object

2010-06-10 Thread Thomas Broyer


On 10 juin, 17:05, Eric erjab...@gmail.com wrote:
 On Jun 10, 6:31 am, Thomas Broyer t.bro...@gmail.com wrote:

  On 8 juin, 16:29, Eric erjab...@gmail.com wrote:
   Sadly, the best method is to use GWT's DateTimeFormat:

   private static final DateTimeFormat YEAR_FORMAT =
   DateTimeFormat.getFormat();
   public static int year(final Date date) {
     return Integer.parseInt(YEAR_FORMAT.format(date));

   }

  Do you really think GWT won't use a Date#getYear() to output the
   formatted string? How then parsing it back into an int would be
  better than just calling getYear() and adding a @SuppressWarning on
  your method?

 I've come to the conclusion that you're right.  I dislike suppressing
 warnings; I work on projects where people deprecate their own code
 but never refactor the old code away.  Suppressing warnings lets those
 people hide their malpractice from themselves.

...or you can use the new JsDate (in 2.1M1) ;-)
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/core/client/JsDate.html
(if you don't have to send it with GWT-RPC or use shared client/server
code)

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



Access ClientBundle ImageResource from UiBinder

2010-06-10 Thread David Grant
Has anyone succeeded in using @sprite selector {gwt-image: ...} in a
uibinder file to access an image in a ClientBundle?

I've tried the following which Chris Ramsdale at Google claimed would
workhttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/ed48cc0ddde4b52fbut
it doesn't:

ui:with field=theme type=com.companyname.resources.ThemeManager /
ui:image field=myimage resource={theme.res.globalrelaylogounity}/
ui:style
 @sprite .header {
  gwt-image: 'myimage';
 }
/ui:style

I can't use ui:image src= because I definitely can't put a hard-coded
path there because it needs change if the user changes themes. I'm grabbing
the ClientBundle from ThemeManager.res(). We need to be able to switch
themes, which involves switching the ClientBundle being used. I've tried
putting an expression in src= using curly braces to get the path dynamically
but that doesn't work.

The only alternative I can think of is to layout the UI in java code which
sucks.

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: Access ClientBundle ImageResource from UiBinder

2010-06-10 Thread David Grant
The other solution which seems to work is that I can put

@sprite .header {
  gwt-image: 'myimage';
 }

in a css file and reference it as a CssResource in a ClientBundle...then it
will look for an image resource called 'myimage' in that ClientBundle.

it works but it just puts stuff in to the css file associated with my global
theme that I would rather just keep local to my widget.

Dave

On Thu, Jun 10, 2010 at 9:41 AM, David Grant davidgr...@gmail.com wrote:

 Has anyone succeeded in using @sprite selector {gwt-image: ...} in a
 uibinder file to access an image in a ClientBundle?

 I've tried the following which Chris Ramsdale at Google claimed would 
 workhttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/ed48cc0ddde4b52fbut
  it doesn't:

 ui:with field=theme type=com.companyname.resources.ThemeManager /
 ui:image field=myimage resource={theme.res.globalrelaylogounity}/
 ui:style
  @sprite .header {
   gwt-image: 'myimage';
  }
 /ui:style

 I can't use ui:image src= because I definitely can't put a hard-coded
 path there because it needs change if the user changes themes. I'm grabbing
 the ClientBundle from ThemeManager.res(). We need to be able to switch
 themes, which involves switching the ClientBundle being used. I've tried
 putting an expression in src= using curly braces to get the path dynamically
 but that doesn't work.

 The only alternative I can think of is to layout the UI in java code which
 sucks.

 Dave




-- 
David Grant
http://www.davidgrant.ca

-- 
You received 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: Renaming nocache.js

2010-06-10 Thread Sripathi Krishnan
Haven't tried, but should not matter.

On 6/10/10, Aditya 007aditya.b...@gmail.com wrote:
 Hi,
  Does renaming nocache.js affects deployment?

 Cheers,
 Aditya


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



-- 
Sent from my mobile device

--Sri

-- 
You received 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: 1 layout - 3 browsers - 3 results?

2010-06-10 Thread Magnus
Hi,

there is a strange problem with the menubar in your example using IE8
(not with FF).

When it opens a popup menu, the whole page disappears and only the
popup menu is visible.

The popup menu is added to the menubar as follows:

MenuBar m= new MenuBar (true);
m.addItem (Login, (Command)null);
m.addItem (Logout,(Command)null);
m.addItem (Register,(Command)null);
m.addItem (Profile,(Command)null);
menu.addItem (Account,m);

What's that again?

Magnus

On 10 Jun., 13:08, Magnus alpineblas...@googlemail.com wrote:
 Hi Alejandro,

 thank you very much!!!
 This solution seems to be perfect for me!

 I played around a little bit. I Changed the base class for the
 ChessTable to DockLayoutPanel, to add some annotations to the chess
 board. This worked, too!

 Then I inserted a grid into the center section of ChessTable. It's
 clear that this was not centered.
 May I use the same mechanism to center this grid within the
 ChessTable?

 I understand the mechanism as follows:

 - create a new class, which implements RequiresResize
 - write a onResize method which centers this object within the parent

 Well, it works great on FF and IE. Good job!

 Thanks again!
 Magnus

 On 9 Jun., 20:31, Alejandro D. Garin aga...@gmail.com wrote:

  Just from the webappcreator. Nothing special.

  On Jun 9, 2010 3:28 PM, Magnus alpineblas...@googlemail.com wrote:

  Hi Alejandro,

  this looks very good and I am still analyzing the java code. I will
  give you a more detailed feedback later...

  The java code looks clean, but the html file is pumped up with of
  JavaScript.
  Does this code belong to the solution or is it just generated from
  other sources?

  Magnus

  On Jun 9, 7:35 pm, Alejandro D. Garin aga...@gmail.com wrote:

   Hi,

   The code below is part of the task, but it center the main chess table in
   the dock center panel

 http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.javahttp://ww...

   On Wed, Jun 9, 2010 at 12:50 PM, Magnus alpineblas...@googlemail.com
  wrote:

Hi,

everything you said is correct.

Magnus

On Jun 9, 5:09 pm, Alejandro D. ...
google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com

  google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com

  .
  For more options, visit this group at
 http://groups.google.com/group/goog...

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



opening popup menu hides all remaining page content

2010-06-10 Thread Magnus
Hello,

I found a strange problem under IE 7:

When I click on a menu item that opens a popup submenu, the whole page
content (all widgets including the menubar itself) is hidden and only
the popup menu is visible.

I reduced the code to a minimum example and added it at the end of
this posting. There is no other code and no CSS, just the empty
project created with the eclipse plugin.

Since there is nothing special in this code, I assume that this
problem must be known to others.

Thank you
Magnus

-
package test.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.*;
import com.google.gwt.user.client.ui.*;

public class LayoutTest_1 implements EntryPoint
{
 public void onModuleLoad()
 {
  MenuBar menu = new MenuBar();

  MenuBar m= new MenuBar (true);
  m.addItem (Login, (Command)null);
  m.addItem (Logout,(Command)null);
  m.addItem (Register,(Command)null);
  m.addItem (Profile,(Command)null);
  menu.addItem (Account,m);

  DockLayoutPanel dock = new DockLayoutPanel(Unit.PX);
  dock.addNorth(menu, 28);
  RootLayoutPanel.get().add(dock);
 }
}

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



retrieving the size of a panel/widget before it is added

2010-06-10 Thread Magnus
Hi,

when I add a VerticalPanel to the center of a DockLayoutPanel, it will
immediately be stretched to the remaining size of its parent. But I
would like it to keep its natural size, i. e. the size it needs for
its children (and then center it within its parent).

So I tried to get its size, before it is added:

VerticalPanel vp = new VerticalPanel;
//vp.add ...
int xs = p.getOffsetWidth();
int ys = p.getOffsetHeight();
add(vp);

But this size is 0.

So one of the following is needed:
- get the size of the panel before it's added
- prevent it from beeing stretched and then retrieve the size

Are there methods to do this?

Thanks
Magnus

-- 
You received 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] mail patch

2010-06-10 Thread Stephen Haberman
Hi,

I was playing with the Mail example this morning and saw a stack trace
casting the Message class to Comparable for the TreeMap inside of the
MailSelectionModel.toString(). Seemed to happen most reliably when
clicking select all on this page. A simple fix is attached.

Thanks,
Stephen


-- 
http://groups.google.com/group/Google-Web-Toolkit-ContributorsIndex: bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/MailRecipe.java
===
--- bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/MailRecipe.java	(revision 8239)
+++ bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/MailRecipe.java	(working copy)
@@ -177,7 +177,7 @@
   }
 
   // Hashing, comparison, and equality are based on the message id
-  static class Message {
+  static class Message implements ComparableMessage {
 Date date;
 int id;
 boolean isRead;
@@ -230,6 +230,11 @@
   return Message [id= + id + , sender= + sender + , subject=
   + subject + , read= + isRead + , date= + date + ];
 }
+
+@Override
+public int compareTo(Message o) {
+  return this.id - o.id;
+}
   }
 
   private static Label messageIdsLabel = new Label();


[gwt-contrib] Re: Fixes pathological slowness in remote UI logger (GPE) (issue550801)

2010-06-10 Thread rdayal

I like the cleanup you've done here - however, there are a few things
that I'd like you to take a look at before I give the LGTM. Let's go for
one more round on this one; we can discuss this stuff f2f if it's
easier.

Side note: When these changes to MessageTransport land, we should update
GPE so that it uses this newer version of MessageTransport as well; it's
not a requirement, but it's nice to keep them somewhat in sync.


http://gwt-code-reviews.appspot.com/550801/diff/1/2
File
dev/core/src/com/google/gwt/dev/shell/remoteui/MessageTransport.java
(right):

http://gwt-code-reviews.appspot.com/550801/diff/1/2#newcode99
dev/core/src/com/google/gwt/dev/shell/remoteui/MessageTransport.java:99:
callback.onError(e);
Nit: You need to synchronize around the callback object, because its
fields are being set by different threads - no, I'm wrong, you don't,
because your callback calls methods on future, and those are protected.
It would be good to note this in the comment though, since it it is not
generally known whether or not the callback does its own synchronization
or not - or you could doc the Callback interface to indicate that
implementers of the interface must ensure thread safety themselves.

http://gwt-code-reviews.appspot.com/550801/diff/1/2#newcode118
dev/core/src/com/google/gwt/dev/shell/remoteui/MessageTransport.java:118:
callback.onDone(responseMessage);
Nit: You need to synchronize around the callback object, because its
fields are being set by different threads - no, I'm wrong, you don't,
because your callback calls methods on future, and those are protected.
It would be good to note this in the comment though, since it it is not
generally known whether or not the callback does its own synchronization
or not - or you could doc the Callback interface to indicate that
implementers of the interface must ensure thread safety themselves.

http://gwt-code-reviews.appspot.com/550801/diff/1/2#newcode240
dev/core/src/com/google/gwt/dev/shell/remoteui/MessageTransport.java:240:
class FutureTaskExtension extends FutureTaskResponse {
Nice simplification (and removal of unnecessary asynchronousity/queuing)
 From reading the java docs, it seems that calling future.get(..) will
block until:
1) an exception is set on the future
2) future.set(..)is called
3) the thread calling future.get(..) is interrupted

The callable is executed whenever future.get(..) is called, but we don't
need to worry about having the callable set the future's value; the
future will still block until future.set(..) is called.

Do I have this right?

http://gwt-code-reviews.appspot.com/550801/diff/1/4
File
dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceClient.java
(right):

http://gwt-code-reviews.appspot.com/550801/diff/1/4#newcode49
dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceClient.java:49:
public void onError(Throwable t) {
Error handling? In the addLogEntry case, a potential error is being
lost. We at least need to log this to the console (which is weird, I
know, since we're in a logger abstraction right now), or we need to
figure out a way to throw this exception out via the  main thread. Maybe
we release the lock on which the main thread waits if we hit one of
these exceptions?

http://gwt-code-reviews.appspot.com/550801/diff/1/5
File
dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceTreeLogger.java
(right):

http://gwt-code-reviews.appspot.com/550801/diff/1/5#newcode75
dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceTreeLogger.java:75:
private volatile int logHandle = -1;
Nit: volatile works, but I prefer AtomicInteger for clarity.

http://gwt-code-reviews.appspot.com/550801/diff/1/5#newcode110
dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceTreeLogger.java:110:
pending = Lists.add(pending, new PendingBranch(child, type, msg, caught,
You need synchronization around the pending object here. The pending
variable is non-final, and it's being re-assigned here.

http://gwt-code-reviews.appspot.com/550801/diff/1/5#newcode121
dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceTreeLogger.java:121:
pending = Lists.add(pending, new PendingLog(indexOfLogEntry, type, msg,
You need synchronization around the pending object here. The pending
variable is non-final, and it's being re-assigned here.

http://gwt-code-reviews.appspot.com/550801/diff/1/5#newcode126
dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceTreeLogger.java:126:
synchronized void initLogHandle(int result) {
Rename the param to newLogHandle

http://gwt-code-reviews.appspot.com/550801/diff/1/5#newcode129
dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceTreeLogger.java:129:
for (Pending item : pending) {
Create an instance lock and use it to protect the assignment or
logHandle,the iteration over the pending list, and the possible re-init
of the pending variable; then use the same lock to protect the
assignment of the pending variable in the two methods above.


[gwt-contrib] Adding AbstractListViewAdapter#getViews() to get the views associated with an adapter. Also add... (issue601801)

2010-06-10 Thread jlabanca

Reviewers: jgw,

Description:
Adding AbstractListViewAdapter#getViews() to get the views associated
with an adapter.  Also adding some tests for com.google.gwt.view.client.


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

Affected files:
  M user/src/com/google/gwt/user/cellview/client/CellListImpl.java
  M user/src/com/google/gwt/view/client/AbstractListViewAdapter.java
  M user/src/com/google/gwt/view/client/DefaultSelectionModel.java
  M user/src/com/google/gwt/view/client/Range.java
  A user/test/com/google/gwt/view/client/AbstractListViewAdapterTest.java
  A user/test/com/google/gwt/view/client/AsyncListViewAdapterTest.java
  A user/test/com/google/gwt/view/client/DefaultNodeInfoTest.java
  A user/test/com/google/gwt/view/client/MockPagingListView.java
  A user/test/com/google/gwt/view/client/RangeTest.java


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


[gwt-contrib] Thoughts on GWT MVP

2010-06-10 Thread jarrod
After reading and viewing the sessions from I/O, I felt compelled to
respond with my thoughts on MVP, history management, and a few other
things that relate. Please check out my post:

http://dev.methodknowledgy.com/2010/06/05/comments-on-gwt-mvp/

Comments welcome. Thanks!

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