Re: JSONParser can't parse some unescaped unicode characters

2010-06-08 Thread Boris Granveaud
@gmail.com wrote:
 On Jun 7, 11:00 am, Boris Granveaud bgran...@gmail.com wrote:
  Hi,

  It seems that JSONParser doesn't like some unicode characters if they
  are not escaped with \u:

  public class Test implements EntryPoint {
    public void onModuleLoad() {
      for (char c = 0x2000; c  0x2050; c++) {
        String str = {\string\:\ + c + \};
        try {
          JSONValue json = JSONParser.parse(str);
        } catch (Exception e) {
          System.out.println(JSON parse error char= +
  Integer.toHexString((int) c));
        }
      }
    }

  }

  In GWT 2.0.3 emulator, I've got the following results:

  - Chrome 5.0 and FF 3.6: error with character 0x2028 and 0x2029
  - IE 8.0: no error

  It works if I escape the characters with \u2028 and \u2029.

 This is because GWT for now uses eval() to parse JSON, and U+2028
 and U+2029 are line terminators in JavaScript (per spec).
 Quoting ECMASCript 5, which defines JSON.parse:
 JSON uses a more limited set of white space characters than
 WhiteSpace and allows Unicode code points U+2028 and U+2029 to
 directly appear in JSONString literals without using an escape
 sequence.

  I'm using Jackson on server-side to generate the JSON string which is
  sent to my GWT application and it doesn't escape by default these
  characters. As a workaround, I've implemented a Jackson custom
  serializer.

 Jackson is right, as these aren't special characters in JSON, but on
 the other hand, it could escape them to cope with web apps that eval()
 the result instead of JSON.parse()ing it.

if someone is interested by the workaround, it is now on Jackson wiki:
http://wiki.fasterxml.com/JacksonSampleQuoteChars

there are also several issues regarding escaping in JIRA:

http://jira.codehaus.org/browse/JACKSON-102
http://jira.codehaus.org/browse/JACKSON-262
http://jira.codehaus.org/browse/JACKSON-219

Boris.

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



How to add Anchors to an GWT application

2010-06-08 Thread Florian Rhomberg
Hello!
That´s more or less my question: How can I add an anchor for example to a tab 
pane, that I can directly get this tab by adding the anchor to the url? I did 
not find an example, but google uses this at the gwt showcase.

I hope someone can help me!

Thanks,
Florian

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



Re: How to add Anchors to an GWT application

2010-06-08 Thread Thomas Broyer


On Jun 8, 11:08 am, Florian Rhomberg florian.rhomb...@nettania.at
wrote:
 Hello!
 That´s more or less my question: How can I add an anchor for example to a tab 
 pane, that I can directly get this tab by adding the anchor to the url? I did 
 not find an example, but google uses this at the gwt showcase.

 I hope someone can help me!

http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html#example

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



Unable to access dir on network from GWt app

2010-06-08 Thread SC
I am  running a GWT application on a tomcat container on a linux
server. In one part of the code on the server side, I am trying to
search for some files within a directory structure  which is on the
network .

This works on windows hosted mode (hence I think my code is okay) but
not when I deploy the app on tomcat.
I am unable to understand why this would be happening , hence any help
on this is appreciated.

Could it be a  permissions issue or a mount issue (I think the files
on the network are on automount on the server)?

I don't get any errors or exceptions from the File class object in
Java saying access denied.
However when I debug and run  fileObject.canRead() and
fileObject.canWrite it returns false. I cannot query the dir structure
to look for the file through the application when running onlinux. The
directory and the sub dirs have the correct permissions on them.

Could this be a GwT running on tomcat and linux issue?

Thanks for any help/ideas.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Unable to access dir on network from GWt app

2010-06-08 Thread Lothar Kimmeringer
SC schrieb:
 I am  running a GWT application on a tomcat container on a linux
 server. In one part of the code on the server side, I am trying to
 search for some files within a directory structure  which is on the
 network .

[...]

 I don't get any errors or exceptions from the File class object in
 Java saying access denied.

File isn't accessing the file but is the representation of a
file in a file system allowing you to query informations about
it, like the ability to read etc.

 However when I debug and run  fileObject.canRead() and
 fileObject.canWrite it returns false.

So trying to open a FileInputStream or FileOutputStream
will throw an IOException.

 I cannot query the dir structure
 to look for the file through the application when running onlinux. The
 directory and the sub dirs have the correct permissions on them.
 
 Could this be a GwT running on tomcat and linux issue?

No. Most likely Tomcat is running as a unprivileged user (like
nobody) or installed a SecurityManager preventing you from
accessing parts of the file-system outside the sandbox.


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.



Managing of connection to JMS server, listening to JMS Topic

2010-06-08 Thread vkrejcirik
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 to JMS server for listening to JMS topic. I don't find
better way than periodically send request from client to server. On
server I have saved last message from JMS topic. I get this message
and I send it to client. This application runs on tomcat server. I use
JAXB for mapping JMS messages to Java classes, which are generated
from xml files.

I create connection to JMS server while initilalizing server part. I
have problem while undeploying. If I undeploy application, I have
error message on tomcat log and every client (web browser), which is
connect to application in the same time will be freeze.

Exactly, I don't know when I should call closeConnection from JMS
sever. Is there any method or exception, which is call when
application is undeploying? I think, this is my problem.


Thanks for your help. I know, that it's complicated, so If you have
any additional question, please ask.

Stacktrace from log from tomcat server:

INFO: Undeploying context [/disasterRecovery_prd]
Jun 7, 2010 2:22:32 AM org.apache.catalina.loader.WebappClassLoader
findResourceInternal
INFO: Illegal access: this web application instance has been stopped
already.  Could not load com/pike/vectren/disasterRecovery/dashboard/
server/generated/direloadschema/jaxb.properties.  The eventual
following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused
the illegal access, and has no functional impact.
Jun 7, 2010 2:22:32 AM org.apache.catalina.loader.WebappClassLoader
findResourceInternal
INFO: Illegal access: this web application instance has been stopped
already.  Could not load META-INF/services/
javax.xml.bind.JAXBContext.  The eventual following stack trace is
caused by an error thrown for debugging purposes as well as to attempt
to terminate the thread which caused the illegal access, and has no
functional impact.
Jun 7, 2010 2:22:32 AM org.apache.catalina.loader.WebappClassLoader
loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load com.sun.xml.internal.bind.v2.ContextFactory.
The eventual following stack trace is caused by an error thrown for
debugging purposes as well as to attempt to terminate the thread which
caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1273)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1233)
at javax.xml.bind.ContextFinder.safeLoadClass(Unknown Source)
at javax.xml.bind.ContextFinder.newInstance(Unknown Source)
at javax.xml.bind.ContextFinder.find(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at
com.pike.vectren.disasterRecovery.dashboard.server.generated.NotifyCheckCreator.unmarshal(NotifyCheckCreator.java:
16)
at
com.pike.vectren.disasterRecovery.dashboard.server.NotifyCheckSubscriber.onMessage(NotifyCheckSubscriber.java:
69)
at com.tibco.tibjms.TibjmsSession._submit(TibjmsSession.java:3568)
at
com.tibco.tibjms.TibjmsSession._dispatchAsyncMessage(TibjmsSession.java:
1964)
at com.tibco.tibjms.TibjmsSession$Dispatcher.run(TibjmsSession.java:
3099)
Jun 7, 2010 2:22:32 AM org.apache.catalina.loader.WebappClassLoader
loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load
com.pike.vectren.disasterRecovery.dashboard.server.generated.direloadschema.ObjectFactory.
The eventual following stack trace is caused by an error thrown for
debugging purposes as well as to attempt to terminate the thread which
caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1273)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1233)
at com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown
Source)
at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.xml.bind.ContextFinder.newInstance(Unknown Source)
at javax.xml.bind.ContextFinder.find(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at

Re: Unable to access dir on network from GWt app

2010-06-08 Thread SC
Okay thanks .


On Jun 8, 11:33 am, Lothar Kimmeringer j...@kimmeringer.de wrote:
 SC schrieb:

  I am  running a GWT application on a tomcat container on a linux
  server. In one part of the code on the server side, I am trying to
  search for some files within a directory structure  which is on the
  network .

 [...]

  I don't get any errors or exceptions from the File class object in
  Java saying access denied.

 File isn't accessing the file but is the representation of a
 file in a file system allowing you to query informations about
 it, like the ability to read etc.

  However when I debug and run  fileObject.canRead() and
  fileObject.canWrite it returns false.

 So trying to open a FileInputStream or FileOutputStream
 will throw an IOException.

  I cannot query the dir structure
  to look for the file through the application when running onlinux. The
  directory and the sub dirs have the correct permissions on them.

  Could this be a GwT running on tomcat and linux issue?

 No. Most likely Tomcat is running as a unprivileged user (like
 nobody) or installed a SecurityManager preventing you from
 accessing parts of the file-system outside the sandbox.

 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: How to configure jetty in hosted mode

2010-06-08 Thread Antonio R. de Oliveira
You can put jetty-web.xml in WEB-INF directory.
This file is the same as jetty.xml config file.

On 7 jun, 15:22, Paul Stockley pstockl...@gmail.com wrote:
 I need to set up my project to use basic authentication to simulate
 the way our firewall works. I can do this through web.xml. However I
 need to add a user to Jetty and assign a specific role. Does anyone
 know how to get access to the Jetty config used by hosted mode?

-- 
You received 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-08 Thread Paul Grenyer
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 to JMS server for listening to JMS topic. I don't find
 better way than periodically send request from client to server. On
 server I have saved last message from JMS topic. I get this message
 and I send it to client. This application runs on tomcat server. I use
 JAXB for mapping JMS messages to Java classes, which are generated
 from xml files.

If you implmenet Sprin gon the server side you won't need JAXB and
your JMS client 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: Unable to access dir on network from GWt app

2010-06-08 Thread fmod
It may help to try to deploy in a fresh install of Tomcat (downloaded
from apache, the bin distribution) executed with root.

Most Tomcat distributions (specially the one from Debian) are
configured for production mode. It may be really secure, but it's a
nightmare for programmers.

Once you have it running you can try to look for the differences in
the setup and experiment a bit.


On Jun 8, 12:33 pm, Lothar Kimmeringer j...@kimmeringer.de wrote:
 SC schrieb:

  I am  running a GWT application on a tomcat container on a linux
  server. In one part of the code on the server side, I am trying to
  search for some files within a directory structure  which is on the
  network .

 [...]

  I don't get any errors or exceptions from the File class object in
  Java saying access denied.

 File isn't accessing the file but is the representation of a
 file in a file system allowing you to query informations about
 it, like the ability to read etc.

  However when I debug and run  fileObject.canRead() and
  fileObject.canWrite it returns false.

 So trying to open a FileInputStream or FileOutputStream
 will throw an IOException.

  I cannot query the dir structure
  to look for the file through the application when running onlinux. The
  directory and the sub dirs have the correct permissions on them.

  Could this be a GwT running on tomcat and linux issue?

 No. Most likely Tomcat is running as a unprivileged user (like
 nobody) or installed a SecurityManager preventing you from
 accessing parts of the file-system outside the sandbox.

 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: Inheriting a class within a package

2010-06-08 Thread Patrick Tucker
After a little bit more time beating my head on the table, I noticed I
had a typo.

For others, I went with this format:
source path=package
  include name=Class1.java/
  include name=Class2.java/
/source

Thanks for your response,
Pat

On Jun 7, 5:45 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On Jun 7, 11:32 pm, Patrick Tucker tucker...@gmail.com wrote:





  I'm trying to inherit 1 class file that is in a particular package.
  The problem is the package has other classes that inherit from java
  classes that GWT has not emulated.  Because of this I can not use
  something like source path=blah/blah / in my GWT module.  The
  class iself can be emulated byt GWT as I have pulled it out just to
  test.

  The goal is to not move the class file into another package because it
  is being used by other applications using the same class file.
  Basically I am trying to avoid maintaining 2 version of the same exact
  code.

  I stumbled across these 
  writeups:http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec..

  Which say you can do pattern based filtering on a source element, but
  I can't seem to get it to work.

  Has anyone been able to do this?

 I haven't checked it myself but this should work:
 source path=foo includes=Bar.java /- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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-08 Thread vkrejcirik
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 to JMS ?
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 to JMS server for listening to JMS topic. I don't find
  better way than periodically send request from client to server. On
  server I have saved last message from JMS topic. I get this message
  and I send it to client. This application runs on tomcat server. I use
  JAXB for mapping JMS messages to Java classes, which are generated
  from xml files.

 If you implmenet Sprin gon the server side you won't need JAXB and
 your JMS client 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: Managing of connection to JMS server, listening to JMS Topic

2010-06-08 Thread Chris Lercher
Are you looking for this:

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

Probably, an even cleaner alternative would be to inject a JMS
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 to JMS ?
 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 to JMS server for listening to JMS topic. I don't find
   better way than periodically send request from client to server. On
   server I have saved last message from JMS topic. I get this message
   and I send it to client. This application runs on tomcat server. I use
   JAXB for mapping JMS messages to Java classes, which are generated
   from xml files.

  If you implmenet Sprin gon the server side you won't need JAXB and
  your JMS client 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: Extracting the year from a Date() object

2010-06-08 Thread Eric


On Jun 7, 7:58 pm, Rob Tanner caspersg...@gmail.com wrote:
 I have a Date() object that holds a date of birth and I want to
 extract the year and make sure no one's trying to tell me they're 150
 years old, etc.  The getYear method of the Date() class is deprecated
 and you normally use a Calendar() to get the year.  The problem is
 that when I try to use a Calendar() object the application doesn't
 know what it is.  How can I extract the year from a Date() object and
 not fall back on a deprecated method?

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));
}

You can put this into a utility class; you might even want to
remove the static modifier on year() and inject the class
where its needed; that might help testing.

Since GWT is being translated to JavaScript, and JS has no
threads, you can leave YEAR_FORMAT static, and you don't
need to synchronize access to it or create one for each
year() call.  Still, since you get the format through a getFormat()
call and not a constructor, I suspect GWT caches DateTimeFormats.
In that case the following is clearer.

public int year(Date date) {
  return
Integer.parseInt(DateTimeFormat.getFormat().format(date));
}

Should we all be using [JG]oda-Time?

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: seamless rpc during upgrades

2010-06-08 Thread Sripathi Krishnan
*IMHO, once you have deployed new code, you want to tell the users to
refresh the browsers as soon as possible. Trying to get old clients working
with new code can work at times; but since there is no guarantee I prefer to
fail-fast.*
*
*
*re. Old Client, New Server*
I prefer to take a different approach - which is - If the serialization
policy can't be found, *assume* the client is out-of-sync and throw
IncompatibleRemoteServiceException. As a general purpose library, GWT
cannot assume the above statement. For example, developers can forget to
copy the *.rpc files during deployment. But in my case, I know that I will
copy the files and deploy them properly, so at runtime if I can't find the
files, it just means client and server are out of sync.

So, I end up overriding doGetSerializationPolicy() in my RPC Servlet. If
super.doGetSerializationPolicy() returns null, I throw an
IncompatibleRemoteServiceException. The client code handles this exception
and asks the user to reload the browser.

*re. New Client, Old Server*
In this case, client code will get a 404 when trying to load
permutation.cache.html file. It is possible to detect this and take
action. You need to provide an implementation of onLoadErrorFn, and in that
implementation you ask the user to refresh his browser. See this
threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/2dafc6fd50e622a4for
more information on this error function.

--Sri


On 8 June 2010 04:53, Stephen Haberman stephen.haber...@gmail.com wrote:

 Hi,

 I've done some research about keeping GWT deployments as seamless as
 possible for both new and old clients.

 Basically avoiding (when possible) the LegacySerializationPolicy,
 IncompatibleRemoteServiceException, type name elision, no RPC
 whitelist, etc. errors that I had been seeing while deploying upgrade
 to a gwt app.

 I had trouble finding an existing writeup that covered everything, so
 I wrote up a more detailed description at:

 http://www.draconianoverlord.com/2010/07/07/gwt-seamless-upgrades.html

 It seems to boil down to:

 * Use IsSerializable and no type name elision in the RPC DTOs (can't
 rely on serialization policy file being available)
 * Handle IncompatibleRemoteServiceException in the RPC AsyncCallbacks
 for when the contract has actually changed
 * Handle 404’s in the runAsync onFailures
 * Minimize/eliminate the window when both old and new servers are
 available

 I'd appreciate it anyone could verify/correct/add to my list of
 suggestions.

 When in doubt, I can deploy at night, but I was hoping to gain some
 flexibility and just wanted to see what it would take to make it
 possible.

 Thanks,
 Stephen


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



Safari 5.0 with GWT 1.7.x?

2010-06-08 Thread Geoffrey Wiseman
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)

-- 
You received 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-08 Thread Tristan
take a look here

http://www.google.com/url?sa=Dq=http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html

On Jun 8, 12:06 am, Alex monsterno...@gmail.com wrote:
 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%2Bunsubs
cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



Seeing RangeError: Maximum call stack size exceeded. with Safari 5 and our GWT 2.0.3 app

2010-06-08 Thread matthew jones
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: Extracting the year from a Date() object

2010-06-08 Thread Erik Uzureau
I am curious as to why folks wouldn't just use

date.getYear() + 1900;

There was a post[1] not to long ago that I replied to (inadvertently 3
times) essentially suggesting the above, but nobody followed up so I'm
wondering if I'm not on the right track.

In a nutshell:

1) The GWT date object is based on the js date object
2) The js Date object's getDate(), getYear(), etc  are not deprecated.
3) Official GWT widgets (namely the DatePicker) are using those deprecated
methods

Happy to be proven incorrect, but seems more straightforward to me to use
those methods than to go through a formatter.

Erik


[1]
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/1f04acdede6d9825/713a3dfad374c191?hl=en%CB%89a3dfad374c191


On Tue, Jun 8, 2010 at 09:29, Eric erjab...@gmail.com wrote:



 On Jun 7, 7:58 pm, Rob Tanner caspersg...@gmail.com wrote:
  I have a Date() object that holds a date of birth and I want to
  extract the year and make sure no one's trying to tell me they're 150
  years old, etc.  The getYear method of the Date() class is deprecated
  and you normally use a Calendar() to get the year.  The problem is
  that when I try to use a Calendar() object the application doesn't
  know what it is.  How can I extract the year from a Date() object and
  not fall back on a deprecated method?

 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));
 }

 You can put this into a utility class; you might even want to
 remove the static modifier on year() and inject the class
 where its needed; that might help testing.

 Since GWT is being translated to JavaScript, and JS has no
 threads, you can leave YEAR_FORMAT static, and you don't
 need to synchronize access to it or create one for each
 year() call.  Still, since you get the format through a getFormat()
 call and not a constructor, I suspect GWT caches DateTimeFormats.
 In that case the following is clearer.

 public int year(Date date) {
  return
 Integer.parseInt(DateTimeFormat.getFormat().format(date));
 }

 Should we all be using [JG]oda-Time?

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



Using jqPlot library (javascript chart) with the MVP pattern

2010-06-08 Thread Rizen
Hello,

I'm creating a chart thanks to the jqplot plugin, which depends of the
JQuery library.
From the jqPlot website I try to implement the simple following
example :

public native void createChart() /*-{
line1 = [1,4,9, 16];
line2 = [25, 12.5, 6.25, 3.125];

plot1 = $.jqplot('chart1', [line1, line2], {
legend:{show:true, location:'ne'},title:'Bar Chart',
series:[
{label:'Profits', renderer:$.jqplot.BarRenderer},
{label:'Expenses', renderer:$.jqplot.BarRenderer}
],
axes:{
xaxis:{renderer:$.jqplot.CategoryAxisRenderer},
yaxis:{min:0}
}
});
}-*/;

Using the MVP pattern, I need to attach this chart in my view. So I
can't use $wnd.$, I have to find another solution.
Maybe I can use the JavaScriptObject class but it's not compatible
with the Widget that I must use with the view.
Do you have an idea about how have I to proceed ?

Thanks a lot for your help.
Regards.

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



Hook before History changes

2010-06-08 Thread fmod
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?

Thanks
/Fran

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



GWT and Spring - with Spring Web MVC or without it?

2010-06-08 Thread ezamur
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-its-step/),
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.



1 layout - 3 browsers - 3 results?

2010-06-08 Thread Magnus
Hello,

after struggeling with the positioning of layout panels without a real
solution (thread layout problems with positioning or aligning
content) I found out that things are even worse: There are totally
different results with different browsers:

- Linux + Firefox 3.6.3
- Windows + Firefox 3.5.2
- Windows + IE 7

Look at the screenshots:
http://h1403230.stratoserver.net/apache2-default/tmp/LayoutTest/Screenshots/

The different Firefox versions show the chess board positioned and
aligned differently. And in IE the whole layout is totally broken.

I believe that either
- I made some serious mistakes (I hope so), or
- predictable layouts are not realizable with GWT

I have reduced the code to a minimum. If you like, you can view the
main source files or download the whole eclipse project:

http://h1403230.stratoserver.net/apache2-default/tmp/LayoutTest/

What do you think?

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.



Re: layout problems with positioning or aligning content

2010-06-08 Thread Magnus
Sorry, I did not realize the fmod's posting at the time of mine.

However, today I found that things are even worse:
The result looks totally different on different browsers (see thread:
1 layout - 3 browsers - 3 results? )

If this is true (and I didn't make another mistake) then GWT is not
suitable for doing predictable layouts in my opinion...

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.



Re: layout problems with positioning or aligning content

2010-06-08 Thread Magnus
Hi fmod,

I am thinking about your advice using UIbinder, but I think I cannot
use it, because my layout is dynamically generated. I think that the
declarative way using UIbinder is for fixed panels like forms, isn't
it?

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.



Re: layout problems with positioning or aligning content

2010-06-08 Thread Tristan Slominski
What do you mean by dynamically generated? Are you setting styles and
widths programmatically? What's the use case?

On Tue, Jun 8, 2010 at 10:45, Magnus alpineblas...@googlemail.com wrote:

 Hi fmod,

 I am thinking about your advice using UIbinder, but I think I cannot
 use it, because my layout is dynamically generated. I think that the
 declarative way using UIbinder is for fixed panels like forms, isn't
 it?

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

2010-06-08 Thread kozura
Not sure how many times this has been stated, but if you use the
Layout panels as it seems you are, you must use standards mode by
adding !DOCTYPE HTML to the top of your html file.  Else your
results are gonna be very problematic.

On Jun 8, 9:33 am, Magnus alpineblas...@googlemail.com wrote:
 Hello,

 after struggeling with the positioning of layout panels without a real
 solution (thread layout problems with positioning or aligning
 content) I found out that things are even worse: There are totally
 different results with different browsers:

 - Linux + Firefox 3.6.3
 - Windows + Firefox 3.5.2
 - Windows + IE 7

 Look at the 
 screenshots:http://h1403230.stratoserver.net/apache2-default/tmp/LayoutTest/Scree...

 The different Firefox versions show the chess board positioned and
 aligned differently. And in IE the whole layout is totally broken.

 I believe that either
 - I made some serious mistakes (I hope so), or
 - predictable layouts are not realizable with GWT

 I have reduced the code to a minimum. If you like, you can view the
 main source files or download the whole eclipse project:

 http://h1403230.stratoserver.net/apache2-default/tmp/LayoutTest/

 What do you think?

 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.



Re: 1 layout - 3 browsers - 3 results?

2010-06-08 Thread Magnus
This is the case for TestLayout.html:
!doctype html

Magnus

On Jun 8, 6:08 pm, kozura koz...@gmail.com wrote:
 Not sure how many times this has been stated, but if you use the
 Layout panels as it seems you are, you must use standards mode by
 adding !DOCTYPE HTML to the top of your html file.  Else your
 results are gonna be very problematic.

-- 
You received 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-08 Thread Stefan Bachert


On 8 Jun., 13:38, 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 to JMS server for listening to JMS topic. I don't find
 better way than periodically send request from client to server.

Hi,

there is no need to poll.
Use techniques like comet, server push. It is rather simple to
implement. And there are open source libs available for that topic.

Stefan Bachert
http://gwtworld.de

-- 
You received 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-08 Thread Ian Bambury
I think your best bet is to use the onResize and just calculate it. CSS
doesn't support centring vertically and I don't think GWT has any magic
bullet either.

Ian

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



No source code is available error when using resources

2010-06-08 Thread AkiRoss
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?
In case it may help, I'm developing with Eclipse on GNU/Linux x86_64.

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.



Get all markers added by GeoXmlOverlay.load()

2010-06-08 Thread Jesse Fulton
I'm planning on loading a bunch of markers using the
GeoXmlOverlay.load() method, but I also need to be able to
programmatically access the generated markers after the fact. Is there
any sort of map.getAllMarkers() method that I can call to retrieve the
markers? I haven't been able to find anything yet and I've been
searching for quite a while now...

I'm using the Java libraries: GWT Maps 1.1.0  GWT 2.0.3

Thanks in advance,
-Jesse

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

2010-06-08 Thread laurentleb
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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



MenuItem

2010-06-08 Thread Siraj
hi,

I am integrating gwt with jsp. fatched the gwt menu component on
jsp
but how to sent perticuler jsp page as link on it.

Thanks in Advance
Siraj

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



Using GWT in an existing Java Project

2010-06-08 Thread Mike
Hi-

I am trying to create a GWT application that will be stored in a much
larger project (it is the project that contains all the code my
company has developed, so its pretty big). However, eclipse will not
allow me to create a Web Application Project within the existing
project, and all my attempts to move a functional project into our
file structure have failed. Do you have any ideas on how to get GWT to
work within an external project, short of creating my project, and
then trying to import my company's entire code base (~120,000 files)?
Thanks.

I apologize in advance if there has already been a thread pertaining
to this (I looked as best I could).

Thanks

-Mike

-- 
You received 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: Delivery Status Notification (Failure)

2010-06-08 Thread Kuldeep Poonia


 Hi all

 Sorry for this simple question because I am New in GWT.

 I get problem in UIBnder with ListBox. I hava a Class *Base *and I defined
 variable *name* in it. I hava a list for this name and I want to choose one
 of It. So I use

  @UiField ListBox name;

 and in ui.xml file I use
 g:ListBox styleName=txtbx ui:field=name visibleItemCount='1' name =
 name /g:ListBox

 but when I run this It shows error
 10:01:09.668 [ERROR] [applicationScaffold] The UiField
 com.google.gwt.user.client.ui.ListBox name does not have a HaxText or
 HasValue super-interface


 Plz help me on this topic.
 --
 With Thanks  Regards
 Kuldeep Poonia




-- 
With Thanks  Regards
Kuldeep Poonia

-- 
You received 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-Roo Issue : ClassNotFound Exception while trying mvn gwt:run

2010-06-08 Thread Kaniska
Hi All,

I am a newbie in Roo and GWT.

Using following software (downloaded along with STS)
STS Version : 2.3.3.M1-e3.5.2 Win32
ROO Version : 1.1.0.M1 [rev 3a0b8a3]
Maven Version : 2.2.1

I had successfully created the First Project (Roo Standalone) as
mentioned in http://www.springsource.org/roo/start
and also 'script expense.roo' worked fine. GWT Ui code also got
generated without any issues.

But as soon as I fire 'mvn gwt:run', I get the
ClassNotFoundException : A required class is missing: org/codehaus/
plexus/util/xml/XmlStreamReader

Even after adding the following in pom.xml
--- 'dependency
groupIdorg.codehaus.plexus/groupId
artifactIdplexus-utils/artifactId
version1.5.15/version
/dependency '

--- I still get the [ERROR] BUILD ERROR
-
[INFO] Internal error in the plugin manager executing goal
'org.codehaus.mojo:gw
t-maven-plugin:1.3.1.google:run': Unable to load the mojo
'org.codehaus.mojo:gwt
-maven-plugin:1.3.1.google:run' in the plugin 'org.codehaus.mojo:gwt-
maven-plugi
n'. A required class is missing: org/codehaus/plexus/util/xml/
XmlStreamReader
org.codehaus.plexus.util.xml.XmlStreamReader
[INFO] ---

I am completely stuck up as I can't even try samples like expense.roo
Any insight into the matter will be very helpful.

Thanks
Kaniska

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



Problem in ListBox

2010-06-08 Thread Kuldeep Poonia
Hi all,

I hava a variable name in Class Base and want to bind this to the
listbox. so i use

@ListBox name.
 and in ui.xml i use
g:ListBox ui:field='name'/g:ListBox/td

but it shows error that list cannot have hasText ot HasValue super
interface.

Plz Help whar can i do.

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



RootPanel : addKeyPressHandler ?

2010-06-08 Thread Jean-Francois L.
Hello,

I need to capture all keys press on the whole window (RootPanel)

Is there a way to do this ?

I see there no addKeyPressHandler on RootPanel ?

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.



Setting cell widthheight, while dynamically changing color

2010-06-08 Thread M.qrius
I'm trying to create a table with square cells, which are always the
same size. I'm having some trouble with doing just this.
I've created a
Grid editG = new Grid(5,5);
and I tried to set the width/height of the cells in the css with:
td {
width:50px;
height:50px;
}
But this doesn't actually increase the size much. It definitely
doesn't reach 50x50 px.


Apart from this, I want to dynamically change the background color of
a cell. I did this with:
editG.getCellFormatter().setStyleName(0, 0, alive);
and in the css
.alive {
background-color: #00;
}

This seems to be working.

How do I set the cell size? I feel like I'm missing something obvious.
Could someone point me in the right direction?




NB:The content will not exceed the size, so overflow can be
disregarded.

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



Returning values from RPC-Call

2010-06-08 Thread uwi_u
Hi there,

I'm currently writing an application which fetches Data from an DB2
Database. I've got a very basic question opn returning values from
RPC


Here's the method, which calls the RPC:
public int loginUser(String user, String passwd, boolean override){
  loginFeedback = -1;
  XGENgwt.loginUser(user, passwd, override, new AsyncCallback(){
public void onSuccess(Object result){
  loginFeedback = Integer.parseInt(result.toString());
}
public void onFailure (Throwable caught){
Window.alert(Unable to login: +caught.toString());
}
  });
  logToServer(Bei der Zuweisung: +loginFeedback);
  return loginFeedback;
}

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



Returning values, next try. Sending was too fast for me

2010-06-08 Thread uwi_u
Hi there,

I'm currently writing an Application with GWT, and am Stuck at one
position:

When I call my RPC, the value which is to be returned, will be passed
to an global variable. Unfortunately, the returning of this global
variable out of the method happens before the onSuccess comes
back.

the only way to block which I see is to do a while until 
loginFeedback  0


Heres some Code (loginFeedback shall get a value from 0 to 2):

public int loginUser(String user, String passwd, boolean override){
  loginFeedback = -1;
  XGENgwt.loginUser(user, passwd, override, new AsyncCallback(){
public void onSuccess(Object result){
  loginFeedback = Integer.parseInt(result.toString());
}
public void onFailure (Throwable caught){
  Window.alert(Unable to login: +caught.toString());
}
  });
  logToServer(Bei der Zuweisung: +loginFeedback);
  return loginFeedback;
}

Is there a better way? I hope so

-- 
You received 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-08 Thread nino ekambi
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.



Downloading a document while some RPC call is still running

2010-06-08 Thread Darkman97i
Hi,

Well when I execute some Window.open and there's some RPC still live
always is firing some error
Window.open(http://someweb.com/somedocumentPath, _self, );

I think the problem is that, the browser url is temporary broken by
new url, reason why rpc is closed and error is fired meanwhile browser
not detects that is a file to be downloaded.

Really it's a stupid problem, but I don't find a good and simply idea
to solve it.

1- One solution could be open in a _blank window, but it's really an
horrible usability user interface option ( I think ).
2- Other in the same way than the first could be open some new small
window, and when document is yet started to downloading close it
( I've seen in some webs ).
3- In some cases I can not ensure ( synhronize ) that there's no RPC
call before downloading. That could be a good option, but is not
possible in my case.

Any idea it'll be wellcome.

OpenKM Team ( be open my friend )

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



HttpSession session = getThreadLocalRequest().getSession() Null Pointer Exception

2010-06-08 Thread KenJi_getpowered
Hello every body,

I can't figure out why there is a Null Pointer Exception here.

I am trying to share informations through sessions within my
application. I have a regular servlet that sets the session and insert
a login. then I wanted to retrieve that login into a
RemoteServiceServlet with that instruction :
HttpSession session = getThreadLocalRequest().getSession();

but as I said it gives me a NPE.  What is wrong?
Also I can't find any good documentation on working with sessions with
GWT.

Do you have any solution? or at least explanation?

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



Server Side Socket Connection in GWT

2010-06-08 Thread Jay Bruno
Hello All,

I'm trying to set up a GWT Web App that will give a User a certain
Permission in the Web Application based on their Active Directory
Roles.  I'm currently trying to connect to an AD server via LDAP.
This part works perfectly unless I add it to the GWT application.
Then I get a socket error saying that it can't connect.

I have read that you are not able to open Sockets in the App Engine.
Does this still hold true?  If it does that's fine I can run the Web
App on Tomcat.  I just need to know for sure that there is no way to
do the LDAP authentication with App Engine and GWT.  It will be an
effort to change the project over to Tomcat.

Any hints/tips/tricks would be greatly appreciated.

Cheers,
Jay Bruno

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



Menu event

2010-06-08 Thread Siraj
hi,

I am integrating gwt with jsp. fatched the gwt menu component on
jsp
but how to sent perticuler jsp page as link on it.

Thanks in Advance
Siraj

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



Safari 5 / GWT / GWT EXT 2.0.6

2010-06-08 Thread eric73
Hi all!

today I upgrade my Safari 4.0 to Safari 5.0 on Snow (other browsers
are OK)
Now my sites build with GWT 2.0.3 / GWT EXT 2.0.6 etc ... sometime
don't run.
I test its with Safari 4.0 and all worked.

A javascript Error appear :

RangeError: Maximum call stack size exceeded.

I don't known where the error come in my application.
And my application run in DevMode!

Any helps will be welcome

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

2010-06-08 Thread Magnus
Hi Ian,

does this mean that I have to do all the layout in absolute
coordinates manually? I thought this would GWT do for me.

In addition, the layout under IE 7 is totally broken. What is the
whole set of layout panels good for, when it does not provide some
predictable results?

Magnus

On Jun 8, 6:29 pm, Ian Bambury ianbamb...@gmail.com wrote:
 I think your best bet is to use the onResize and just calculate it. CSS
 doesn't support centring vertically and I don't think GWT has any magic
 bullet either.

 Ian

-- 
You received 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-08 Thread matthew jones
Same thing here.

On Jun 8, 11:43 am, eric73 e...@pentila.com wrote:
 Hi all!

 today I upgrade my Safari 4.0 to Safari 5.0 on Snow (other browsers
 are OK)
 Now my sites build with GWT 2.0.3 / GWT EXT 2.0.6 etc ... sometime
 don't run.
 I test its with Safari 4.0 and all worked.

 A javascript Error appear :

 RangeError: Maximum call stack size exceeded.

 I don't known where the error come in my application.
 And my application run in DevMode!

 Any helps will be welcome

 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-08 Thread Jeff Chimene
On 06/08/2010 09:46 AM, matthew jones wrote:
 Same thing here.
 
 On Jun 8, 11:43 am, eric73 e...@pentila.com wrote:
 Hi all!

 today I upgrade my Safari 4.0 to Safari 5.0 on Snow (other browsers
 are OK)
 Now my sites build with GWT 2.0.3 / GWT EXT 2.0.6 etc ... sometime
 don't run.
 I test its with Safari 4.0 and all worked.

 A javascript Error appear :

 RangeError: Maximum call stack size exceeded.

Are you using deferred commands or codesplitting? I'mn seeing the same
thing on the Linux build of Chrome.

-- 
You received 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: Calculation of widget size during onModuleLoad() = move to DeferredCommand?

2010-06-08 Thread Stefan Bachert
Hi Chris,

I dont think, that the css is not applied yet, rather the whole
uibinder isnt applied, yet.
However, you did not show us the full code.

I usally put elements in a certain environment to measure its real
size (inclunding border, padding, margin).
I always get immediate results.

Stefan Bachert
http://gwtworld.de

On 6 Jun., 21:58, Chris Lercher cl_for_mail...@gmx.net wrote:
 Hi,

 I want to perform a size calculation on a composite generated by
 UiBinder, using UIObject.getOffsetWidth(). The composite's ui.xml
 (simplified) looks like this:

          ui:style
                 .test {
                         width: 80px;
                         height: 50px;
                 }
         /ui:style
         g:HTMLPanel styleName={style.test}
         /g:HTMLPanel

 When I execute getOffsetWidth() during onModuleLoad(), the result is
 987 (the same as the body's width in my case). That's quite
 understandable: I assume, the CSS from the ui.xml isn't applied yet.

 So I put getOffsetWidth() in a DeferredCommand, and now it returns 80,
 which is correct.

 But I'm a bit worried, that this may actually be a race condition: Can
 I be sure, that the CSS will be fully loaded, before the
 DeferredCommand gets its turn? Or is there a better place to put that
 code?

 Thanks
 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: Get all markers added by GeoXmlOverlay.load()

2010-06-08 Thread Eric Ayers
Try this library:

http://code.google.com/p/gwt-maps-utility/
http://code.google.com/p/gwt-maps-utility/

On Mon, Jun 7, 2010 at 5:05 PM, Jesse Fulton jesseful...@gmail.com wrote:

 I'm planning on loading a bunch of markers using the
 GeoXmlOverlay.load() method, but I also need to be able to
 programmatically access the generated markers after the fact. Is there
 any sort of map.getAllMarkers() method that I can call to retrieve the
 markers? I haven't been able to find anything yet and I've been
 searching for quite a while now...

 I'm using the Java libraries: GWT Maps 1.1.0  GWT 2.0.3

 Thanks in advance,
 -Jesse

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




-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

-- 
You received 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-08 Thread Stefan Bachert
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.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-08 Thread eric73


On 8 juin, 18:54, Jeff Chimene jchim...@gmail.com wrote:
 On 06/08/2010 09:46 AM, matthew jones wrote:

  Same thing here.

  On Jun 8, 11:43 am, eric73 e...@pentila.com wrote:
  Hi all!

  today I upgrade my Safari 4.0 to Safari 5.0 on Snow (other browsers
  are OK)
  Now my sites build with GWT 2.0.3 / GWT EXT 2.0.6 etc ... sometime
  don't run.
  I test its with Safari 4.0 and all worked.

  A javascript Error appear :

  RangeError: Maximum call stack size exceeded.

 Are you using deferred commands or codesplitting? I'mn seeing the same
 thing on the Linux build of Chrome.

No, this error appear on 2 tree (gwt ext) and a Grid with a potential
big set of data...
But an other grid in an others part of my application, with an other
big set of data work ...

I use cross-site compilation (xs linker) ...

Thanks for reply

-- 
You received 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: layout problems with positioning or aligning content

2010-06-08 Thread Magnus
I would like a menubar, and whenever a menu item is selected, I would
like to show a panel.

The screen should have a north, west, east and south section, and in
the center the current panel should be shown.

For example, if the user selects create account, a form should be
shown to enter the data for a new account.

And I would like the form to be centered within the middle space...

Magnus

On Jun 8, 5:48 pm, Tristan Slominski tristan.slomin...@gmail.com
wrote:
 What do you mean by dynamically generated? Are you setting styles and
 widths programmatically? What's the use case?

 On Tue, Jun 8, 2010 at 10:45, Magnus alpineblas...@googlemail.com wrote:
  Hi fmod,

  I am thinking about your advice using UIbinder, but I think I cannot
  use it, because my layout is dynamically generated. I think that the
  declarative way using UIbinder is for fixed panels like forms, isn't
  it?

  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.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 / GWT / GWT EXT 2.0.6

2010-06-08 Thread matthew jones
We're using deferred commands and code splitting.

On Jun 8, 12:12 pm, eric73 e...@pentila.com wrote:
 On 8 juin, 18:54, Jeff Chimene jchim...@gmail.com wrote:





  On 06/08/2010 09:46 AM, matthew jones wrote:

   Same thing here.

   On Jun 8, 11:43 am, eric73 e...@pentila.com wrote:
   Hi all!

   today I upgrade my Safari 4.0 to Safari 5.0 on Snow (other browsers
   are OK)
   Now my sites build with GWT 2.0.3 / GWT EXT 2.0.6 etc ... sometime
   don't run.
   I test its with Safari 4.0 and all worked.

   A javascript Error appear :

   RangeError: Maximum call stack size exceeded.

  Are you using deferred commands or codesplitting? I'mn seeing the same
  thing on the Linux build of Chrome.

 No, this error appear on 2 tree (gwt ext) and a Grid with a potential
 big set of data...
 But an other grid in an others part of my application, with an other
 big set of data work ...

 I use cross-site compilation (xs linker) ...

 Thanks for reply

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



DialogBox is already shown right after gadget is loaded

2010-06-08 Thread Alex
i use uiBinder and have this
!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui
g:HTMLPanel
g:DialogBox ui:field=myDialogBox autoHide=true modal=true
g:captionbCaption/b/g:caption
/g:DialogBox
g:Button ui:field=clickBtnClick Me/g:Button
/g:HTMLPanel

right after the gadget is loaded, the dialog is already shown.it only
start showing normally after i click on Click Me button

However when i create the DialogBox in code
myDialogBox=new DialogBox(true,true);
myDialogBox.setHTML(bCaption/b);

i still use the uiBinder, just that i remove the dialogbox part
!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui
g:HTMLPanel
g:Button ui:field=clickBtnClick Me/g:Button
/g:HTMLPanel
it work as expected.

-- 
You received 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-08 Thread Ian Bambury
I'm sure someone will correct me if I'm wrong, but layout panels are more
for using the whole of an area of the screen - header, footer, menu on the
left, all the rest used for page display, that kind of thing rather than
allowing you to float things at various places on the screen.

For that, it seems to work OK in my limited experience.

You can use 'margin:0 auto;' to centre the inner panel horizontally, listen
for resize events, and just set 'top' to half of what is left of the height
after you take away the height of the inner panel.

If you don't want to do that (and don't care what happens if the window is
smaller than the inner panel) then you can use 'top:50%;margin:top:-300px;'
(changing '-300px' to half the height of inner panel + border). It's an old
hack, but it still works.

Ian

-- 
You received 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: Calculation of widget size during onModuleLoad() = move to DeferredCommand?

2010-06-08 Thread Chris Lercher
Hi Stefan,

not sure, if it's only the CSS, or the entire UiBinder - but I had
assumed, that it's only the CSS, because the div has the same width as
the body (which makes sense, if the CSS selector of the div doesn't
find its CSS class).

Oh, the code I posted is all there is for this little test project!
(The only thing that was lost somehow on copypaste is the source code
line RootPanel rootPanel = RootPanel.get();) The HTML file is just
the basic template from StockWatcher, with the unnecessary example
content removed from the body tag.

 I usally put elements in a certain environment to measure its real
 size (inclunding border, padding, margin).

Sounds interesting - how do I get that environment?

Cheers
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: DialogBox is already shown right after gadget is loaded

2010-06-08 Thread Alex
i get it to work, my previous post i miss out a /ui:UiBinder at the
bottom
!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui
g:HTMLPanel
g:DialogBox ui:field=myDialogBox autoHide=true
modal=true
g:captionbCaption/b/g:caption
/g:DialogBox
g:Button ui:field=clickBtnClick Me/g:Button
/g:HTMLPanel
/ui:UiBinder

the fix is to call these right after
initWidget(uiBinder.createAndBindUi(this));
myDialogBox.show();
myDialogBox.hide();
so it wont show right after the gadget is loaded

On Jun 9, 1:24 am, Alex monsterno...@gmail.com wrote:
 i use uiBinder and have this
 !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
 ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
         xmlns:g=urn:import:com.google.gwt.user.client.ui
 g:HTMLPanel
                 g:DialogBox ui:field=myDialogBox autoHide=true 
 modal=true
                         g:captionbCaption/b/g:caption
                 /g:DialogBox
                 g:Button ui:field=clickBtnClick Me/g:Button
 /g:HTMLPanel

 right after the gadget is loaded, the dialog is already shown.it only
 start showing normally after i click on Click Me button

 However when i create the DialogBox in code
 myDialogBox=new DialogBox(true,true);
 myDialogBox.setHTML(bCaption/b);

 i still use the uiBinder, just that i remove the dialogbox part
 !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
 ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
         xmlns:g=urn:import:com.google.gwt.user.client.ui
 g:HTMLPanel
                 g:Button ui:field=clickBtnClick Me/g:Button
 /g:HTMLPanel
 it work as expected.

-- 
You received 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-08 Thread Magnus
Is there a typo?
top:50%;margin:top:-300px;
Do you mean margin-top?

I don't understand it. What's the effect of this?

Magnus

On Jun 8, 7:25 pm, Ian Bambury ianbamb...@gmail.com wrote:
 I'm sure someone will correct me if I'm wrong, but layout panels are more
 for using the whole of an area of the screen - header, footer, menu on the
 left, all the rest used for page display, that kind of thing rather than
 allowing you to float things at various places on the screen.

 For that, it seems to work OK in my limited experience.

 You can use 'margin:0 auto;' to centre the inner panel horizontally, listen
 for resize events, and just set 'top' to half of what is left of the height
 after you take away the height of the inner panel.

 If you don't want to do that (and don't care what happens if the window is
 smaller than the inner panel) then you can use 'top:50%;margin:top:-300px;'
 (changing '-300px' to half the height of inner panel + border). It's an old
 hack, but it still works.

 Ian

-- 
You received 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: Calculation of widget size during onModuleLoad() = move to DeferredCommand?

2010-06-08 Thread Chris Lercher
[I see, that you replied to the first message in this thread - most of
the code is in the second message.]

The full thread is here:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/1c632fbbb37f6f66/54b2d8927811fe14


On Jun 8, 7:39 pm, Chris Lercher cl_for_mail...@gmx.net wrote:
 Hi Stefan,

 not sure, if it's only the CSS, or the entire UiBinder - but I had
 assumed, that it's only the CSS, because the div has the same width as
 the body (which makes sense, if the CSS selector of the div doesn't
 find its CSS class).

 Oh, the code I posted is all there is for this little test project!
 (The only thing that was lost somehow on copypaste is the source code
 line RootPanel rootPanel = RootPanel.get();) The HTML file is just
 the basic template from StockWatcher, with the unnecessary example
 content removed from the body tag.

  I usally put elements in a certain environment to measure its real
  size (inclunding border, padding, margin).

 Sounds interesting - how do I get that environment?

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

2010-06-08 Thread Ian Bambury
Yep, a typo

It sets the top to half way down the screen (top:50%) then moves it back up
with the negative margin by half the height of the panel. The effect being
that it is centred vertically.

-- 
You received 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-08 Thread Ian Bambury
I think you might need to use 'position:absolute' and set left and
margin-left the same way. It's a long time since I've used it.

On 8 June 2010 18:52, Ian Bambury ianbamb...@gmail.com wrote:

 Yep, a typo

 It sets the top to half way down the screen (top:50%) then moves it back up
 with the negative margin by half the height of the panel. The effect being
 that it is centred vertically.



-- 
You received 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: HttpSession session = getThreadLocalRequest().getSession() Null Pointer Exception

2010-06-08 Thread olivier nouguier
Hi,
 the getThreadLocalRequest() as it sound returns the request stored *during*
the request/response in a ThreadLocal. So if it return null it's because it
is not the same thread ;)


On Tue, Jun 8, 2010 at 11:05 AM, KenJi_getpowered mikael.k...@gmail.comwrote:

 Hello every body,

 I can't figure out why there is a Null Pointer Exception here.

 I am trying to share informations through sessions within my
 application. I have a regular servlet that sets the session and insert
 a login. then I wanted to retrieve that login into a
 RemoteServiceServlet with that instruction :
 HttpSession session = getThreadLocalRequest().getSession();

 but as I said it gives me a NPE.  What is wrong?
 Also I can't find any good documentation on working with sessions with
 GWT.

 Do you have any solution? or at least explanation?

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




-- 
Computers are useless. They can only give you answers.
- Pablo Picasso -

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



Can deferred binding do this?

2010-06-08 Thread Kevin Qiu
I'm thinking about using annotation to mark a method that has certain
aspects, and then be processed by the deferred binding, adding necessary
pieces as needed (kinda like a python's method decorator). Here's a example:

class Foo {

  @Logged
  public void bar() {
// do something
  }

}

and when the generator sees @Logged, it adds a call to log the entrance and
exit of the method. I'm wondering if that's possible.

-- 
You received 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: Can deferred binding do this?

2010-06-08 Thread fmod
Check this project. Is on my list of things to try someday.

http://code.google.com/p/gwt-ent/wiki/AOP


On Jun 8, 8:16 pm, Kevin Qiu kevin.jing@gmail.com wrote:
 I'm thinking about using annotation to mark a method that has certain
 aspects, and then be processed by the deferred binding, adding necessary
 pieces as needed (kinda like a python's method decorator). Here's a example:

 class Foo {

   @Logged
   public void bar() {
     // do something
   }

 }

 and when the generator sees @Logged, it adds a call to log the entrance and
 exit of the method. I'm wondering if that's possible.

-- 
You received 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-08 Thread eric73
I am not use deferred commands and code splitting
so the problem stay unsolved .

Please help

On 8 juin, 19:17, matthew jones bigboxe...@gmail.com wrote:
 We're using deferred commands and code splitting.

 On Jun 8, 12:12 pm, eric73 e...@pentila.com wrote:

  On 8 juin, 18:54, Jeff Chimene jchim...@gmail.com wrote:

   On 06/08/2010 09:46 AM, matthew jones wrote:

Same thing here.

On Jun 8, 11:43 am, eric73 e...@pentila.com wrote:
Hi all!

today I upgrade my Safari 4.0 to Safari 5.0 on Snow (other browsers
are OK)
Now my sites build with GWT 2.0.3 / GWT EXT 2.0.6 etc ... sometime
don't run.
I test its with Safari 4.0 and all worked.

A javascript Error appear :

RangeError: Maximum call stack size exceeded.

   Are you using deferred commands or codesplitting? I'mn seeing the same
   thing on the Linux build of Chrome.

  No, this error appear on 2 tree (gwt ext) and a Grid with a potential
  big set of data...
  But an other grid in an others part of my application, with an other
  big set of data work ...

  I use cross-site compilation (xs linker) ...

  Thanks for reply

-- 
You received 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-08 Thread Magnus
Thanks, but it doesn't work, at least in one of the three
environments: Linux + Firefox
The inner panel (chess board) is always stretched vertically to fill
the total height of the parent (see screenshot). Your CSS style
changes something, but it's still stretched. I believe that it works
for the other environments...

But what about the differences in the browsers? I thought that GWT
manages them?

Magnus

On Jun 8, 7:54 pm, Ian Bambury ianbamb...@gmail.com wrote:
 I think you might need to use 'position:absolute' and set left and
 margin-left the same way. It's a long time since I've used it.

 On 8 June 2010 18:52, Ian Bambury ianbamb...@gmail.com wrote:

  Yep, a typo

  It sets the top to half way down the screen (top:50%) then moves it back up
  with the negative margin by half the height of the panel. The effect being
  that it is centred vertically.

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



Re: Get all markers added by GeoXmlOverlay.load()

2010-06-08 Thread Jesse Fulton
Well, MarkerManager only works if you add the markers to the map
through the MarkerManager class. GeoXmlOverlay.load() adds the markers
directly to the map, so if I want to use MarkerManager, then I'll need
to write my own KML/GeoRSS parser in order to add the markers using
MarkerManager...

Is there any way to get all of the markers *without* using Marker
Manager? Or maybe some way to get the GeoXmlOverlay class to use
MarkerManager...?

Thanks,
-Jesse

On Jun 8, 10:03 am, Eric Ayers zun...@google.com wrote:
 Try this library:

 http://code.google.com/p/gwt-maps-utility/
 http://code.google.com/p/gwt-maps-utility/



 On Mon, Jun 7, 2010 at 5:05 PM, Jesse Fulton jesseful...@gmail.com wrote:
  I'm planning on loading a bunch of markers using the
  GeoXmlOverlay.load() method, but I also need to be able to
  programmatically access the generated markers after the fact. Is there
  any sort of map.getAllMarkers() method that I can call to retrieve the
  markers? I haven't been able to find anything yet and I've been
  searching for quite a while now...

  I'm using the Java libraries: GWT Maps 1.1.0  GWT 2.0.3

  Thanks in advance,
  -Jesse

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

 --
 Eric Z. Ayers
 Google Web Toolkit, Atlanta, GA USA

-- 
You received 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: Returning values, next try. Sending was too fast for me

2010-06-08 Thread Chad
You don't want to block the UI with a while loop. Instead, consider
creating an interface with a single method:

public interface LoginCallback {
  void onLogin(int feedback);
}

Then, alter your loginUser method to return void and take as an
addition parameter a LoginCallback:

public void loginUser(String user, String passwd, boolean override,
final LoginCallback cb) {
  XGENgwt.loginUser(user, passwd, override, new AsyncCallback() {
public void onSuccess(Object result) {
  cb.onLogin(Integer.parseInt(result.toString()));
}

public void onFailure (Throwable caught) {
  Window.alert(Unable to login: +caught.toString());
}
  });

  logToServer(Bei der Zuweisung: +loginFeedback);
}

You could also call the onLogin from the onFailure if you wanted to.
Or create an addition method in your LoginCallback to call from the
onFailure.

Take the code that currently follows the call to your loginUser method
and move it into the onLogin method of an instance of LoginCallback
that gets passed to the new loginUser method. Think Async! ;-)

HTH,
Chad


On Jun 8, 8:07 am, uwi_u uwe.chris...@gad.de wrote:
 Hi there,

 I'm currently writing an Application with GWT, and am Stuck at one
 position:

 When I call my RPC, the value which is to be returned, will be passed
 to an global variable. Unfortunately, the returning of this global
 variable out of the method happens before the onSuccess comes
 back.

 the only way to block which I see is to do a while until 
 loginFeedback  0

 Heres some Code (loginFeedback shall get a value from 0 to 2):

 public int loginUser(String user, String passwd, boolean override){
           loginFeedback = -1;
           XGENgwt.loginUser(user, passwd, override, new AsyncCallback(){
                 public void onSuccess(Object result){
                   loginFeedback = Integer.parseInt(result.toString());
                 }
                 public void onFailure (Throwable caught){
                   Window.alert(Unable to login: +caught.toString());
                 }
           });
           logToServer(Bei der Zuweisung: +loginFeedback);
           return loginFeedback;
         }

 Is there a better way? I hope so

-- 
You received 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-08 Thread Ian Bambury

 But what about the differences in the browsers? I thought that GWT
 manages them?


If you add your own CSS, it doesn't go around trying to correct it. It's
just what you do in GWT (using the widgets as they are meant to be used - or
rather, as Google use them and not just how you want to use them, not that
you always get told what that is) and then it's pretty much OK.

So this (http://roughian.com/magnus/) looks wrong in Linux/FF? Shame. It
works in Windows IE/Chrome/FF/Safari/Opera - I don't have the ability right
now to test anything else.

BTW, didn't get the screenshot.

Ian

-- 
You received 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-08 Thread Daniel Simons
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: Downloading a document while some RPC call is still running

2010-06-08 Thread André Moraes
If you don't really need to open a new window to start the download,
you could make a call to the server and fetch the url to de document.
Then simply put this inside a hyperlink on the application or inside a
dialogbox.

Then the user just need to click on the link to download the file.
This don't make the user navigate to another window, if the HTTP
headers defining the mime-type of the document are correct.
There are also another HTTP header which forces the browser to
download the contents of the url instead of display it, but i can't
remember it...

On Jun 8, 11:49 am, Darkman97i jllte...@gmail.com wrote:
 Hi,

 Well when I execute some Window.open and there's some RPC still live
 always is firing some error
 Window.open(http://someweb.com/somedocumentPath, _self, );

 I think the problem is that, the browser url is temporary broken by
 new url, reason why rpc is closed and error is fired meanwhile browser
 not detects that is a file to be downloaded.

 Really it's a stupid problem, but I don't find a good and simply idea
 to solve it.

 1- One solution could be open in a _blank window, but it's really an
 horrible usability user interface option ( I think ).
 2- Other in the same way than the first could be open some new small
 window, and when document is yet started to downloading close it
 ( I've seen in some webs ).
 3- In some cases I can not ensure ( synhronize ) that there's no RPC
 call before downloading. That could be a good option, but is not
 possible in my case.

 Any idea it'll be wellcome.

 OpenKM Team ( be open my friend )

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



CSS theming

2010-06-08 Thread David Grant
Any suggestions on how to do theming, ie. to allow a new theme to be created
in the future as a separate css file that can be switched on/off at runtime.
I also don't want just global CSS though, I want CSS scope as local as
possible but I want to be able to expose some CSS to be themable. Here's my
idea about how to organize our CSS to do this:

1) Shared CSS file - contain some styles that are shared across all widgets
like fonts
2) Local CSS stuff - stuff that applies only to 1 widget or so, this will be
inside the widget's ui.xml file, or in a separate css file and referened
from the ui.xml file
3) Theme CSS file - there will be several, all of which extend from some
interface that defines classes that can be then modified by a theme's css
file

So within any one ui.xml file I might be referring to some local css, the
shared css, or the theme's css.

Any comments?

-- 
You received 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 api for access of calendar data

2010-06-08 Thread Robo
Hi,
Is anyone else having problems with the GWT  API for accessing
Calendar data. I have been getting
An error occurred while retrieving the Event feed: response timed
out error message
and the
http://gwt-gdata.appspot.com/samples/v2.2.1/HelloGData.html
example is getting the same errors.

Customer support says it is an engineering problem, but it is
definitely a problem for me too.

It looks like this has been going on for approximately 4 weeks? If
anyone has work around idea, please let me know. This killing our
business plan and we had hoped to be helping damaged soldiers and
civilians by now. ouc.



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



Extending a Widget subclass or Composite?

2010-06-08 Thread David Grant
Is it generally bad practice to extend a widget rather than extending from
Composite?

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.



Adding event handler to the document

2010-06-08 Thread Raziel
What's the best way to add an event handler (for example for keyboard
events) to the entire document?

I need something more general than the FocusPanel; specially because
I cannot attach a FocusPanel to my application's body.

I've seen some solutions sinking events and using
addNativePreviewHandler but it seems kinda overly complicated for
something that should probably be no more than a line of code. Then
there's also warnings like Please note that nondeterministic behavior
will result if more than one GWT application registers preview
handlers. See issue 3892 for details. that tell me I should be extra
careful with this.

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.



Get today's date, and the first day of this week's date?

2010-06-08 Thread spierce7
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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Adding event handler to the document

2010-06-08 Thread spierce7
I'd be interested to know this as well. Something like this isn't
possible with a click handler, but perhaps with a keypress handler?

On Jun 8, 4:54 pm, Raziel raziel...@gmail.com wrote:
 What's the best way to add an event handler (for example for keyboard
 events) to the entire document?

 I need something more general than the FocusPanel; specially because
 I cannot attach a FocusPanel to my application's body.

 I've seen some solutions sinking events and using
 addNativePreviewHandler but it seems kinda overly complicated for
 something that should probably be no more than a line of code. Then
 there's also warnings like Please note that nondeterministic behavior
 will result if more than one GWT application registers preview
 handlers. See issue 3892 for details. that tell me I should be extra
 careful with this.

 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: Extending a Widget subclass or Composite?

2010-06-08 Thread Ian Bambury
No.

Ask yourself if you want to expose all the top-level widget's methods. If
you don't, then use a composite. For example, if you are making a labelled
textbox by adding a label and a text box to a VerticalPanel, do you really
want the user able to add more things to the VP, to be able to clear the
widgets out of it etc? If you are making a NumbersOnlyTextBox out of a
textbox, you probably *do* want to expose all the normal methods.

Ian

On 8 June 2010 21:46, David Grant davidgr...@gmail.com wrote:

 Is it generally bad practice to extend a widget rather than extending from
 Composite?

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



[Development mode] script tag not in top level frame

2010-06-08 Thread Thiago F. G. Albuquerque
Hi,

Development mode does not work if the script tag is not in the top
level frame:

script type=text/javascript language=javascript
src=xxx.nocache.js/script

This is a problem for me, because I maintain an application that uses
a framework (Echo 1) that doesn't allow modifying the top-level frame.
(Believe me, I tried. There's no way unless I modify the framework
itself). Does anybody know how could I work around this?

TIA,
Thiago

-- 
You received 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-08 Thread fmod
 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.
java.util.Date is compatible with GWT. Probably your IDE will complain
about deprecated methods. But they are not for GWT. So you probably
will end up with a lots of '@SuppressWarnings(deprecation) // GWT
requires Date' before your method declaration.


 1. Get today's date.
new 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.
Date date = new Date();
date.getDay() gives you the current day in the week.
date.getTime() gives you the time in milliseconds since 1/1/1970
date.setTime(date.getTime() - 24 * 60 * 60 * 1000) sets the date to
yesterday

 4. I need to know how to parse all the above questions information
 into a string.
Take a look at this post: 
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/641e83518db5ee0e

 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)
Computing the difference of two dates is straightforward
long millisDiff = end.getTime() - start.getTime();

 6. Are we seeing any updates coming for working with dates? I'm
 currently using GWT 2.03.
No idea, but I will not depend on that.

To finish you can take a look in the package
com.google.gwt.user.datepicker.client
http://code.google.com/p/google-web-toolkit/source/browse/#svn/trunk/user/src/com/google/gwt/user/datepicker/client
to see how GWT guys seems to work with dates.

-- 
You received 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-08 Thread Lothar Kimmeringer
spierce7 schrieb:

 1. Get today's date.

Date today = new 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.

So you're not going to create an i8n-aware application?
Sunday isn't the first day of the week everwhere (e.g.
it's monday in Germany). Here is an (untested) solution:

DateTimeConstants constants = 
LocaleInfo.getCurrentLocale().getDateTimeConstants();
int firstDay = Integer.parseInt(constants.firstDayOfTheWeek()) - 1;
int offset = firstDay - date.getDay();
date.setDate(date.getDate() + offset);

 3. How to Add and subtract a number of days to a date.

date.setDate(date.getDate() + days);

 4. I need to know how to parse all the above questions information
 into a string.

By parse do you mean format?

Use the various ways DateTimeFormat offers.

 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)

If the event happens during a change in daylight saving times,
you will end up with wrong times.

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

I'm not a developer, so I can't say anything about that, but
if you're sugessting a (maybe restricted) implementation of
Calender, here is a +1 by me, because above methods in Date
are all deprecated since JDK 1.1, so I really hate to use them,
even in a GWT client-class where that doesn't matter much.


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: Returning values, next try. Sending was too fast for me

2010-06-08 Thread Chad
Oh, BTW, you would need to move your call to logToServer into the
onSuccess as well. I didn't notice that one at first.

HTH,
Chad

On Jun 8, 2:28 pm, Chad chad...@gmail.com wrote:
 You don't want to block the UI with a while loop. Instead, consider
 creating an interface with a single method:

 public interface LoginCallback {
   void onLogin(int feedback);

 }

 Then, alter your loginUser method to return void and take as an
 addition parameter a LoginCallback:

 public void loginUser(String user, String passwd, boolean override,
 final LoginCallback cb) {
   XGENgwt.loginUser(user, passwd, override, new AsyncCallback() {
     public void onSuccess(Object result) {
       cb.onLogin(Integer.parseInt(result.toString()));
     }

     public void onFailure (Throwable caught) {
       Window.alert(Unable to login: +caught.toString());
     }
   });

   logToServer(Bei der Zuweisung: +loginFeedback);

 }

 You could also call the onLogin from the onFailure if you wanted to.
 Or create an addition method in your LoginCallback to call from the
 onFailure.

 Take the code that currently follows the call to your loginUser method
 and move it into the onLogin method of an instance of LoginCallback
 that gets passed to the new loginUser method. Think Async! ;-)

 HTH,
 Chad

 On Jun 8, 8:07 am, uwi_u uwe.chris...@gad.de wrote:



  Hi there,

  I'm currently writing an Application with GWT, and am Stuck at one
  position:

  When I call my RPC, the value which is to be returned, will be passed
  to an global variable. Unfortunately, the returning of this global
  variable out of the method happens before the onSuccess comes
  back.

  the only way to block which I see is to do a while until 
  loginFeedback  0

  Heres some Code (loginFeedback shall get a value from 0 to 2):

  public int loginUser(String user, String passwd, boolean override){
            loginFeedback = -1;
            XGENgwt.loginUser(user, passwd, override, new AsyncCallback(){
                  public void onSuccess(Object result){
                    loginFeedback = Integer.parseInt(result.toString());
                  }
                  public void onFailure (Throwable caught){
                    Window.alert(Unable to login: +caught.toString());
                  }
            });
            logToServer(Bei der Zuweisung: +loginFeedback);
            return loginFeedback;
          }

  Is there a better way? I hope so

-- 
You received 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: seamless rpc during upgrades

2010-06-08 Thread Stephen Haberman
Hi Sri,

Thanks for the reply.

 *IMHO, once you have deployed new code, you want to tell the users to
 refresh the browsers as soon as possible. Trying to get old clients working
 with new code can work at times; but since there is no guarantee I prefer to
 fail-fast.*

I think it depends. I am hoping to get to a point where I can deploy
bug fixes mid-day and not worry about users that are already in the
application losing their work and having to refresh.

Assuming the RPC contract is 90-100% the same, this seems reasonable.
Though it does mean users will continue using out-of-date client code
instead of the latest and greatest, with potentially important bug
fixes. I'll think about that.

 So, I end up overriding doGetSerializationPolicy() in my RPC Servlet. If
 super.doGetSerializationPolicy() returns null, I throw an
 IncompatibleRemoteServiceException. The client code handles this exception
 and asks the user to reload the browser.

Interesting. Thanks for the mentioning that--I'll keep that in mind.

 *re. New Client, Old Server*
 In this case, client code will get a 404 when trying to load
 permutation.cache.html file. It is possible to detect this and take
 action. You need to provide an implementation of onLoadErrorFn

Nice, thanks for the link. I'll check it out.

- Stephen

-- 
You received 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-08 Thread spierce7
Guys, thank you so much for your replies! I've got my program doing
what I needed it to :-) Thank you very much!

Lothar, your code works (at least for the current date) :
DateTimeConstants constants =
LocaleInfo.getCurrentLocale().getDateTimeConstants();
int firstDay = Integer.parseInt(constants.firstDayOfTheWeek()) - 1;
int offset = firstDay - date.getDay();
date.setDate(date.getDate() + offset);

However, I can't find a way to get the first day of the week for any
given date. For instance, lets say I wanted to find the first day of
the week for September 27th, 2010, how would I do that?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Help to find only clickable panel except focuspanel

2010-06-08 Thread Deepak Bammi
Stefan,



Can you please help me to remove tab index from focuspanel ?


Regards,
Dev

On Mon, Jun 7, 2010 at 4:49 PM, stefan bachert stefanbach...@yahoo.dewrote:

 Hi Deepak,

 I would prefer to discus in the gwt group.
 That may help other peoples, too and maybe other peoples have a good input,
 too.

 Stefan

 --
 *Von:* Deepak Bammi deepak.ba...@gmail.com
 *An:* Stefan Bachert stefanbach...@yahoo.de
 *Gesendet:* Montag, den 7. Juni 2010, 12:51:26 Uhr
 *Betreff:* Re: Help to find only clickable panel except focuspanel

 Stefan,

 Thanks for your support !

 Do you have gmail id ? can you share it with me so that i can explain you
 the problem more clearly if you really don't mind.


 Thanks again !

 Regards,
 Dev.


 On Tue, Jun 1, 2010 at 12:45 AM, Stefan Bachert stefanbach...@yahoo.dewrote:

 Hi Deepak,

 I tried your corrected code (I use g: instead of gwt, gwr).
 However, no input are is created.

 I am using FF. May this is a workaround for other browser.
 Did you checked the issues?

 --

 container.getElement().getChild(container.getTabIndex()).removeFromParent();

 Please provide your suggestions, is it a correct way to remove this
 tabindex ?
 

 The above may accidently work. Logically it is wrong. A tabIndex is in
 general not a element child index.

 Stefan Bachert
 http://gwtworld.de

 On 29 Mai, 20:27, Deepak Bammi deepak.ba...@gmail.com wrote:
  Hi Stefan,
 
  Thanks for your response.
 
  I'm using focuspanel to create a simple div element which is clickable
 so
  that i can embed any widget.
 
  e.g
  Using UiBinder.
 
   gwt:FocusPanel
 gwt:FlowPanel
 // Widget.
 /gwr:FlowPanel
   /gwt:FocusPanel
 
  The above code creates two div element (one for focuspanel and other for
  flowpanel), but the focus panel will automatically inserts the textbox
  before the second div element into DOM and i want to remove this textbox
  from fouspanel.
 
  I think now you will get the problem and if still you have any doubt
 please
  feel free to share.
 
  Thanks,
  Dev
  On Sat, May 29, 2010 at 7:55 PM, Stefan Bachert stefanbach...@yahoo.de
 wrote:
 
   Hi Deepak,
 
   I use focusPanel with a ClickHandler for the tab of an own TabPanel.
   I don't understand what your problem is?
   Did you also added a textbox into the focus panel?
 
   Or do you call the focus marquise as input box?
   When yes, remove the attribute tabIndex.
   (getElement().removeArribute())
 
   Otherwise we need more information about your issue
 
   Stefan Bachert
  http://gwtworld.de
 
   On 29 Mai, 11:55, Deepak Bammi deepak.ba...@gmail.com wrote:
Hi All,
 
I need a panel which is clickable.I found focuspanel but it has one
   drawback
in my case that it automatically embeds the input box which causes a
   problem
for me.
 
Please share to access the input box in the focus panel or to find
 the
clickable panel.
 
Thanks,
Dev
 
   --
   You received 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: Can deferred binding do this?

2010-06-08 Thread opn
I personally hope that GIN will implement this someday, too. But this
feature is marked with a (?) on the GIN page.
Does this AOP work well with a GIN injected class?

Regards opn

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

2010-06-08 Thread gangurg gangurg
I am new to Injection . What I wanted to do was a simple Interface Injection
in my GWT IMpl . Can anyone tell me how do a Field Injection or a
construction based Injection .Assume Everything in this snippet works fine
.

Public Interface Payment(
public void pay();
}

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

2010-06-08 Thread gangurg gangurg
Sry it was an incomplete post . Here is my full post .

I am new to Injection . What I wanted to do was a simple Interface Injection
in my GWT IMpl . Can anyone tell me how do a Field Injection or a
construction based Injection .Assume Everything in this snippet works fine
.

public Interface Payment(
public void pay();
}

public class PaymentImpl implements Payment {

public void pay() {
System.out.println(I'll pay with a credit card);

}

}

//My Guice Module
public class TestGuiceModule extends AbstractModule {
  @Override
  protected void configure() {
bind(Payment.class).to(PaymentImpl.class);

  }
}

//My Actual GWT Servlet

 public class MyServiceImpl extends RemoteServiceServlet implements
MyService {

 private Payment payment;
 @Inject
public MyServiceImpl (Payment payment)
{
Injector injector = Guice.createInjector(new TestGuiceModule());
payment= injector.getInstance(Payment.class);
   this.payment = payment

 // This works in terms of i get the instance of the object ,
but I am sure this is not the right apprach . Can anyone suggest whats the
correct method of doing

}

-- 
You received 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] Re: Adding TreeItem#insert methods to insert items into a tree. (issue592801)

2010-06-08 Thread jlabanca

committed as r8236

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

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


[gwt-contrib] Re: Deleting the stocks sample in favor of the Expenses sample. (issue580801)

2010-06-08 Thread jlabanca

committed as r8234

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

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


[gwt-contrib] which jdk to use for development

2010-06-08 Thread Marko Vuksanovic
Which JDK do you suggest to use with gwt - open jdk or sun's one?

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