any advices to make gwt applications look nicer/

2009-02-08 Thread ytbryan

hi all,

is there a specific way to create nicer and more quality gwt
application?

i do know about mygwt and gwt ext. but is there other ways?

thank you any advices are welcome.

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



Re: Announcing GWT 1.6 Milestone 1

2009-02-08 Thread Samyem Tuladhar

Great! I was wondering if this version supports OOPHM?

Thanks,
Samyem

On Feb 6, 10:26 am, Scott Blum sco...@google.com wrote:
 Greetings GWT developers,

 The GWT team is happy to announce the availability of 1.6 Milestone 1!
 Binary distributions are available for download directly from GWT's Google
 Code project.

 http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=1.6.0

 As always, milestone builds like this are use-at-your-own-risk. There are
 known bugs, and it definitely isn't ready for production use. Please expect
 some trial and error getting everything to work. The javadoc that comes
 bundled with the distribution should be up-to-date, but the online Developer
 Guide (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-6) is
 still very much a work in progress. We will be updating it over the next
 several weeks. In lieu of an up-to-date Developer Guide and release notes,
 below are the major highlights relative to GWT 1.5.3.

 *** New Project Structure in GWT 1.6 ***

 One of the biggest changes to GWT 1.6 is a new project structure. The old
 output format has been replaced by the standard Java web app expanded war
 format, and the actual directory name does default to /war. Note that the
 war directory is not only for compiler output; it is also intended to
 contain handwritten static resources that you want to be included in your
 webapp alongside GWT modules (that is, things you'd want to version
 control). Please also note that the GWTShell and GWTCompiler tools will
 maintain their legacy behavior, but they have been deprecated in favor of
 new HostedMode and Compiler tools which use the new war output. When 1.6
 is officially released, we will be encouraging existing projects to update
 to the new directory format and to use the new tools to take advantage of
 new features and for compatibility with future GWT releases.

 The sample projects provided in the GWT distribution provide an example of
 correct new project configurations. For more details on the specifics of the
 new project format, please see GWT 1.6 WAR design document 
 (http://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6).

 A couple of important changes we should highlight here:

 - Projects with server-side code (GWT RPC) must configure a web.xml file
 at /war/WEB-INF/web.xml. This web.xml file must define and publish any
 servlets associated with the web application. See the included DynaTable
 sample. Additionally, server-side library dependencies must be copied into
 /war/WEB-INF/lib. For example, any GWT RPC servlets must have a copy of
 gwt-servlet.jar in this folder.

 - HTML host pages will no longer typically be located in a GWT module's
 public path. Instead, we'll be recommending that people take advantage of
 the natural web app behavior for serving static files by placing host pages
 anywhere in the war structure that makes sense. For exmaple, you might want
 to load a GWT module from a JSP page located in the root of your web app. To
 keep such handwritten static files separate from those produced by the GWT
 compiler, the latter will be placed into module-specific subdirectories. Any
 page that wishes to include a GWT module can do so via a script tag by
 referencing the GWT-produced module.nocache.js script within that
 module's subdirectory. As of 1.6, we'll be recommending that only
 module-specific resources used directly by GWT code, such as image files
 needed by widgets, should remain on the public path. See the included
 Showcase sample for some examples of this distinction.

 - When you do need to load resources from a module's public path, always
 construct an absolute URL by prepending GWT.getModuleBaseURL(). For example,
 'GWT.getModuleBaseURL() + dir/file.ext'. This advice has not changed, but
 in the past it was easy to be sloppy with this, because the host page and
 GWT module typically lived in the same directory, so using a relative URL
 would usually do the right thing. Now that GWT modules live in a
 subdirectory, you must reference public resources through
 GWT.getModuleBaseURL().

 *** Hosted Mode Enhancements ***

 Although the legacy GWTShell still uses an embedded Tomcat server, the new
 HostedMode runs Jetty instead. There is also a new Restart Server button
 on the main hosted mode window. Clicking this button restarts the internal
 Jetty server, which allows Java code changes to take effect on the server
 without having to completely exit and restart hosted mode. This is useful
 when making code changes to RPC servlets, or when serializable RPC types are
 modified and the server and client are out of sync.

 *** New EventHandler System ***

 Event handlers have been added to replace the old event listeners used by
 Widgets, History, and various other classes. The new system has a few
 differences from the old system:

 - EventHandler methods always take a single parameter: the GwtEvent that the
 Widget fired. For example, ClickHandler has a 

gwt + gmail template/site

2009-02-08 Thread lidos

Hello,
I m new to gwt community and i would like to learn how to build a
similar panel
as gwt and gmail site.
I want a panel like a horizontal one. but when u click something in
the right panel for example and then apart from the appropriate data
to be shown into the left panel, a line like here in gwt will appear
to show exactly what button pressed from the right panel. Like here
with Home, discussions or like the gmail with inbox starred , draft
etc


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



Re: Best image preloading practice?

2009-02-08 Thread darkflame

Well, I know prefetch is working to some extent (at least, in Chrome
and Firefox), as I can watch it prefetching
rather large volumes of images that arnt used in the html at all.
All of those images must have been triggered by the prefetch loop.

Still, I'll read over the Mozzilla doc, maybe things have changed a
little since javascript has been more widely used.


On Feb 6, 3:12 pm, gregor greg.power...@googlemail.com wrote:
 @Litty: yes, I think you are right, my ignorance. Image.prefetch()
 will causes the image to be loaded into browser cache. You then use
 the same URL to instantiate an Image object later in code, and
 hopefully the image binary will be already downloaded. This old
 Mozzilla doc describes the process:

 http://devedge-temp.mozilla.org/viewsource/2003/link-prefetching/inde...

 The doc suggests the behavior darkflame described in OP, namely,
 browser is busy downloading all the prefetches it finds in the page.

 @darkflame:



  b) If I do have to load, say, upto 10 images that have to be seperate,
  is it better to just loop over a list of them prefetching and leave it
  upto the browseror should I put a timer and trigger a load every,
  say, 5 seconds ?
  (or dosnt it make much difference).

 My reading of the Mozzilla doc is that the browser will notice all the
 prefetch tags when it loads the page, and it will then get busy
 downloading them. So I have doubts whether where you put the
 Image.prefetch(url) in execution logic makes any difference, i.e. you
 do not have fine tune programmatic control over prefetch so you can't
 code to prefetch first 10, then later trigger prefetching next 10. For
 example the Mozzilla doc states The link tag has to be inside the
 head tag to make prefetching work etc.



  On Feb 6, 9:14 am, Litty Preeth preeth.h...@gmail.com wrote:

 You are thinking of loading 20MB of images into the DHTML DOM of you
 application

 Am I? Does the DOM keep them there even when not displayed?
 These images certainly wouldnt be displayed all at once. 1 or 2 at a
 time at most.

I'm not absolutely sure, but I think if you load an image it is
basically attached to a document, whether the browser caches it or
not, and whether it is currently visible of not. You don't control the
browser cache, I mean I don't think you can tell it to conveniently
download all your images and store them neatly on disk until you need
to display them for example.

   ah, pig.
   I thought that was exactly that prefetch was doing -sigh-
   I thought it loaded it to ram first, then the browser keeps a copy in
   its cache for reloading if needed.
   -sigh-
   That does change things indeed then.

   AFAIK the prefetch creates an IMG element but its not attached to the DOM.

   - Litty

   On Fri, Feb 6, 2009 at 1:03 PM, darkflame darkfl...@gmail.com wrote:

  You are thinking of loading 20MB of images into the DHTML DOM of 
  you
  application

  Am I? Does the DOM keep them there even when not displayed?
  These images certainly wouldnt be displayed all at once. 1 or 2 at a
  time at most.

 I'm not absolutely sure, but I think if you load an image it is
 basically attached to a document, whether the browser caches it or
 not, and whether it is currently visible of not. You don't control the
 browser cache, I mean I don't think you can tell it to conveniently
 download all your images and store them neatly on disk until you need
 to display them for example.

ah, pig.
I thought that was exactly that prefetch was doing -sigh-
I thought it loaded it to ram first, then the browser keeps a copy in
its cache for reloading if needed.
-sigh-
That does change things indeed then.

  Again, not at once.
  Surely a staggered download they wouldnt have a problem with?
  Emulating, say, what it would expect from a user browseing 
  DeviantArt?

 yeah, the staggered download is basically the idea of the maze - each
 time you move to next location you've only got one locations worth of
 images to fetch. Or if it worked fast enough you could fetch all the
 required images for the adjoining locations so they would be ready to
 go instantly. It depends entirely on no of image bytes per location.

Yes, I looks like I'll be switching to a as-you-go-along-it-loads-the-
next-rooms approach.
Allthough...

 Point is doing it this way old images are thrown away and can be
 garbage collected as you go, so you are not accumulating images in
 memory. It's stable. (assuming I'm right about the how this works of
 course).

...I'm not sure there will be much that can be chucked away in this
game.
My engine is able to remove items easily enough, but for this game
items from the start of the game are still usefull at the end, so
theres only a few case's when images can be removed never to be
recalled.

  . The 

Re: JDBC realm for form-based authentication in hosted mode

2009-02-08 Thread marcelstoer



On Feb 5, 2:22 am, Sumit Chandel sumitchan...@google.com wrote:
 Hello everyone,
 I'm not very familiar with JDBC realm, but for starters, are you using
 hosted mode with the -noserver option (i.e., running hosted mode with your
 own custom Tomcat server that has JDBC realm configured?).

No, I'm running an out-of-the-box GWT embedded Tomcat.
As described in my previous posting, the ROOT.xml gets picked up
correctly and Tomcat considers the realm configuration i.e. it
authenticates me against the database referred to in the realm config.
However, the parent context element in ROOT.xml asks me to define a
docBase parameter. No matter what path I enter there, in subsequent
requests Tomcat/GWT shell has problems locating some of the artifacts
in my project.
Through Tomcat debugging I tried to find out what its internal docBase
value is (maybe set through GWT shell?) if I don't add ROOT.xml but
didn't succeed.

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



Does the GWT compiler have problems with Generics?

2009-02-08 Thread marcelstoer

My *Async interface contains the following method signature:

void reportsAvailableFor(Class? extends AbstractRow rowClass,
AsyncCallbackBoolean callback);

The method signature in the application i.e. Servlet interface
likewise looks like:

Boolean reportsAvailableFor(Class? extends AbstractRow rowClass);

The GWT shell complains at startup that:

[ERROR] Type 'java.lang.Class? extends
ch.netcetera.eveni.client.model.table.AbstractRow' was not
serializable and has no concrete serializable subtypes

At that point I thought that GWT had an issue with the Generics
parameter. Hence, I removed the restrictive ? extends AbstractRow
suffix from the Class type, but GWT still complains about:

'java.lang.Class' was not serializable and has no concrete
serializable subtypes

Now this is definitely bogus IMO as java.lang.ClassT clearly states
implements java.io.Serializable - and yes, I'm using GWT 1.5.3.

Marcel





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



Re: Does the GWT compiler have problems with Generics?

2009-02-08 Thread Damien Picard
Hi,

Your class has to implement the interface
com.google.gwt.user.client.rpc.IsSerializable and you have to add a
free-parameters constructor as is :

public class MyClass implements IsSerializable{

public MyClass(){
 ...
}
}

Maybe this default constructor misses ?

Regards
Damien Picard.

2009/2/8 marcelstoer mar...@frightanic.com


 My *Async interface contains the following method signature:

 void reportsAvailableFor(Class? extends AbstractRow rowClass,
 AsyncCallbackBoolean callback);

 The method signature in the application i.e. Servlet interface
 likewise looks like:

 Boolean reportsAvailableFor(Class? extends AbstractRow rowClass);

 The GWT shell complains at startup that:

 [ERROR] Type 'java.lang.Class? extends
 ch.netcetera.eveni.client.model.table.AbstractRow' was not
 serializable and has no concrete serializable subtypes

 At that point I thought that GWT had an issue with the Generics
 parameter. Hence, I removed the restrictive ? extends AbstractRow
 suffix from the Class type, but GWT still complains about:

 'java.lang.Class' was not serializable and has no concrete
 serializable subtypes

 Now this is definitely bogus IMO as java.lang.ClassT clearly states
 implements java.io.Serializable - and yes, I'm using GWT 1.5.3.

 Marcel





 


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



Re: Announcing GWT 1.6 Milestone 1

2009-02-08 Thread Arthur Kalmenson

It doesn't, OOPHM is suppose to be scheduled for 2.0. It is possible
to use OOPHM from the branch, although I haven't tried it myself.

--
Arthur Kalmenson



On Sun, Feb 8, 2009 at 8:28 AM, Samyem Tuladhar sam...@gmail.com wrote:

 Great! I was wondering if this version supports OOPHM?

 Thanks,
 Samyem

 On Feb 6, 10:26 am, Scott Blum sco...@google.com wrote:
 Greetings GWT developers,

 The GWT team is happy to announce the availability of 1.6 Milestone 1!
 Binary distributions are available for download directly from GWT's Google
 Code project.

 http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=1.6.0

 As always, milestone builds like this are use-at-your-own-risk. There are
 known bugs, and it definitely isn't ready for production use. Please expect
 some trial and error getting everything to work. The javadoc that comes
 bundled with the distribution should be up-to-date, but the online Developer
 Guide (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-6) is
 still very much a work in progress. We will be updating it over the next
 several weeks. In lieu of an up-to-date Developer Guide and release notes,
 below are the major highlights relative to GWT 1.5.3.

 *** New Project Structure in GWT 1.6 ***

 One of the biggest changes to GWT 1.6 is a new project structure. The old
 output format has been replaced by the standard Java web app expanded war
 format, and the actual directory name does default to /war. Note that the
 war directory is not only for compiler output; it is also intended to
 contain handwritten static resources that you want to be included in your
 webapp alongside GWT modules (that is, things you'd want to version
 control). Please also note that the GWTShell and GWTCompiler tools will
 maintain their legacy behavior, but they have been deprecated in favor of
 new HostedMode and Compiler tools which use the new war output. When 1.6
 is officially released, we will be encouraging existing projects to update
 to the new directory format and to use the new tools to take advantage of
 new features and for compatibility with future GWT releases.

 The sample projects provided in the GWT distribution provide an example of
 correct new project configurations. For more details on the specifics of the
 new project format, please see GWT 1.6 WAR design document 
 (http://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6).

 A couple of important changes we should highlight here:

 - Projects with server-side code (GWT RPC) must configure a web.xml file
 at /war/WEB-INF/web.xml. This web.xml file must define and publish any
 servlets associated with the web application. See the included DynaTable
 sample. Additionally, server-side library dependencies must be copied into
 /war/WEB-INF/lib. For example, any GWT RPC servlets must have a copy of
 gwt-servlet.jar in this folder.

 - HTML host pages will no longer typically be located in a GWT module's
 public path. Instead, we'll be recommending that people take advantage of
 the natural web app behavior for serving static files by placing host pages
 anywhere in the war structure that makes sense. For exmaple, you might want
 to load a GWT module from a JSP page located in the root of your web app. To
 keep such handwritten static files separate from those produced by the GWT
 compiler, the latter will be placed into module-specific subdirectories. Any
 page that wishes to include a GWT module can do so via a script tag by
 referencing the GWT-produced module.nocache.js script within that
 module's subdirectory. As of 1.6, we'll be recommending that only
 module-specific resources used directly by GWT code, such as image files
 needed by widgets, should remain on the public path. See the included
 Showcase sample for some examples of this distinction.

 - When you do need to load resources from a module's public path, always
 construct an absolute URL by prepending GWT.getModuleBaseURL(). For example,
 'GWT.getModuleBaseURL() + dir/file.ext'. This advice has not changed, but
 in the past it was easy to be sloppy with this, because the host page and
 GWT module typically lived in the same directory, so using a relative URL
 would usually do the right thing. Now that GWT modules live in a
 subdirectory, you must reference public resources through
 GWT.getModuleBaseURL().

 *** Hosted Mode Enhancements ***

 Although the legacy GWTShell still uses an embedded Tomcat server, the new
 HostedMode runs Jetty instead. There is also a new Restart Server button
 on the main hosted mode window. Clicking this button restarts the internal
 Jetty server, which allows Java code changes to take effect on the server
 without having to completely exit and restart hosted mode. This is useful
 when making code changes to RPC servlets, or when serializable RPC types are
 modified and the server and client are out of sync.

 *** New EventHandler System ***

 Event handlers have been added to replace the old event listeners used 

Re: Does the GWT compiler have problems with Generics?

2009-02-08 Thread marcelstoer

Thanks for your quick reply.

On Feb 8, 5:37 pm, Damien Picard picard.dam...@gmail.com wrote:
 Hi,

 Your class has to implement the interface
 com.google.gwt.user.client.rpc.IsSerializable and you have to add a

As of GWT 1.5  this is no longer required, implementing
java.io.Serializable is enough.

 free-parameters constructor as is :

 public class MyClass implements IsSerializable{

     public MyClass(){
          ...
     }

 }

 Maybe this default constructor misses ?

Yes, indeed. I totally forgot about the default constructor. Thanks
for pointing that out. java.lang.Class does have a no-args
constructor, but it's private.

I just whish the GWT compiler were a little more verbose or precise
about the problem.

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



Re: Does the GWT compiler have problems with Generics?

2009-02-08 Thread Damien Picard
You're welcome.

I've already been confronted with this problem and the GWT compiler is not
verbose with this.
I've find this information in a tutorial where these two conditions was
exposed.



2009/2/8 marcelstoer mar...@frightanic.com


 Thanks for your quick reply.

 On Feb 8, 5:37 pm, Damien Picard picard.dam...@gmail.com wrote:
  Hi,
 
  Your class has to implement the interface
  com.google.gwt.user.client.rpc.IsSerializable and you have to add a

 As of GWT 1.5  this is no longer required, implementing
 java.io.Serializable is enough.

  free-parameters constructor as is :
 
  public class MyClass implements IsSerializable{
 
  public MyClass(){
   ...
  }
 
  }
 
  Maybe this default constructor misses ?

 Yes, indeed. I totally forgot about the default constructor. Thanks
 for pointing that out. java.lang.Class does have a no-args
 constructor, but it's private.

 I just whish the GWT compiler were a little more verbose or precise
 about the problem.

 Marcel
 


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



Re: Announcing GWT 1.6 Milestone 1

2009-02-08 Thread Itamar Ravid
Hi - I've perused the WAR Design document, but I've several questions that
remained unanswered.

In my project, we use GWT-SL and Gilead - the former for exporting Spring
beans as GWT-RPC services, and the latter for transferring Hibernate-enabled
objects back and forth between the server and client.

A consequence of using GWT-SL is that I no longer map my servlets through
web.xml - instead, I've a springDispatcher servlet which receives all
requests and routes them to the appropriate service exports I've defined
with GWT-SL, using the SimpleUrlHandlerMapping which Spring provides.

Now, since I'd like to route only GWT-RPC (and servlet) requests through the
Dispatcher servlet, I've only routed /services/* to it.

The difficulty arises when using Hosted Mode. First, I have to copy a
modified web.xml to ${project}/tomcat/webapps/ROOT. This web.xml routes all
requests to /services/* to my springDispatcher. This web.xml is different
than the one I distribute with my WAR, since it also includes mapping for
the GWTShellServlet. Also, in order for serialization to work, I have to
compile my project once (using GWTCompiler) and copy all resulting *.gwt.rpc
files to ${project}/tomcat/webapps/ROOT/${module}/. This occurs because the
GWTShellServlet generates these dynamically as GWT-RPC requests arrive.

I've semi-automated the whole process using Ant tasks, and I'm aware of the
gwt-maven plugin which provides some of this functionality, but I'd like to
know whether the situation has been fully or partly addressed with the 1.6
release.

On Sun, Feb 8, 2009 at 6:41 PM, Arthur Kalmenson arthur.k...@gmail.comwrote:


 It doesn't, OOPHM is suppose to be scheduled for 2.0. It is possible
 to use OOPHM from the branch, although I haven't tried it myself.

 --
 Arthur Kalmenson



 On Sun, Feb 8, 2009 at 8:28 AM, Samyem Tuladhar sam...@gmail.com wrote:
 
  Great! I was wondering if this version supports OOPHM?
 
  Thanks,
  Samyem
 
  On Feb 6, 10:26 am, Scott Blum sco...@google.com wrote:
  Greetings GWT developers,
 
  The GWT team is happy to announce the availability of 1.6 Milestone 1!
  Binary distributions are available for download directly from GWT's
 Google
  Code project.
 
 
 http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=1.6.0
 
  As always, milestone builds like this are use-at-your-own-risk. There
 are
  known bugs, and it definitely isn't ready for production use. Please
 expect
  some trial and error getting everything to work. The javadoc that comes
  bundled with the distribution should be up-to-date, but the online
 Developer
  Guide (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-6)
 is
  still very much a work in progress. We will be updating it over the next
  several weeks. In lieu of an up-to-date Developer Guide and release
 notes,
  below are the major highlights relative to GWT 1.5.3.
 
  *** New Project Structure in GWT 1.6 ***
 
  One of the biggest changes to GWT 1.6 is a new project structure. The
 old
  output format has been replaced by the standard Java web app expanded
 war
  format, and the actual directory name does default to /war. Note that
 the
  war directory is not only for compiler output; it is also intended to
  contain handwritten static resources that you want to be included in
 your
  webapp alongside GWT modules (that is, things you'd want to version
  control). Please also note that the GWTShell and GWTCompiler tools
 will
  maintain their legacy behavior, but they have been deprecated in favor
 of
  new HostedMode and Compiler tools which use the new war output. When
 1.6
  is officially released, we will be encouraging existing projects to
 update
  to the new directory format and to use the new tools to take advantage
 of
  new features and for compatibility with future GWT releases.
 
  The sample projects provided in the GWT distribution provide an example
 of
  correct new project configurations. For more details on the specifics of
 the
  new project format, please see GWT 1.6 WAR design document (
 http://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6).
 
  A couple of important changes we should highlight here:
 
  - Projects with server-side code (GWT RPC) must configure a web.xml
 file
  at /war/WEB-INF/web.xml. This web.xml file must define and publish any
  servlets associated with the web application. See the included DynaTable
  sample. Additionally, server-side library dependencies must be copied
 into
  /war/WEB-INF/lib. For example, any GWT RPC servlets must have a copy
 of
  gwt-servlet.jar in this folder.
 
  - HTML host pages will no longer typically be located in a GWT module's
  public path. Instead, we'll be recommending that people take advantage
 of
  the natural web app behavior for serving static files by placing host
 pages
  anywhere in the war structure that makes sense. For exmaple, you might
 want
  to load a GWT module from a JSP page located in the root of your web
 app. To
  keep such 

Doing AOP, Dojo style

2009-02-08 Thread jarrod

I'm a huge fan of GWT, but I'm also a big fan of development
methodologies, like Inversion of Control and Aspect-Oriented
Programming.

IoC and AOP are two concepts I've struggled to work into the GWT
framework since day one, with AOP being a bit more difficult to
achieve than IoC, in my opinion.

I recently came across the Dojo Toolkit, which includes, among other
things, a facility for advising your code, AOP style:
http://svn.dojotoolkit.org/src/tags/release-1.2.3/dojox/lang/aspect.js

After digging into it, it appears to take advantage of the dynamic
nature of the JavaScript language, swapping out implementations of
advised methods at run time with wrapper functions.

All-in-all, I think this is a rather brilliant approach, and it's
something I'd love to see supported in GWT. The only problem I see is
how to go about crossing that dynamic bridge that, at first glance,
appears to be the kind of thing Java and GWT might not work well with.

Of course, deferring to native code implementation is an option, but
that seems to defeat the purpose of the compiler's advantages. Any
suggestions on this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Announcing GWT 1.6 Milestone 1

2009-02-08 Thread Sebastien

Hi,

I am interested to migrate from the 1.5.3 to the 1.6.0 M1. When I use
this M1 with -war option, the the compiler output is not like an
expanded war. I tried to specify all parameters (-war, -gen, -
extra ..) without success. The output of the compiler is always
similar to the output of the 1.5.3 compiler. The compiler indicates
the 1.6.0 version, so I am sure to use the 1.6. I am under linux
(ubuntu).

Do you have any idea why the compiler output is not like an expanded
war ?

Regards,
Seb

On 6 fév, 16:26, Scott Blum sco...@google.com wrote:
 Greetings GWT developers,

 The GWT team is happy to announce the availability of 1.6 Milestone 1!
 Binary distributions are available for download directly from GWT's Google
 Code project.

 http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=1.6.0

 As always, milestone builds like this are use-at-your-own-risk. There are
 known bugs, and it definitely isn't ready for production use. Please expect
 some trial and error getting everything to work. The javadoc that comes
 bundled with the distribution should be up-to-date, but the online Developer
 Guide (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-6) is
 still very much a work in progress. We will be updating it over the next
 several weeks. In lieu of an up-to-date Developer Guide and release notes,
 below are the major highlights relative to GWT 1.5.3.

 *** New Project Structure in GWT 1.6 ***

 One of the biggest changes to GWT 1.6 is a new project structure. The old
 output format has been replaced by the standard Java web app expanded war
 format, and the actual directory name does default to /war. Note that the
 war directory is not only for compiler output; it is also intended to
 contain handwritten static resources that you want to be included in your
 webapp alongside GWT modules (that is, things you'd want to version
 control). Please also note that the GWTShell and GWTCompiler tools will
 maintain their legacy behavior, but they have been deprecated in favor of
 new HostedMode and Compiler tools which use the new war output. When 1.6
 is officially released, we will be encouraging existing projects to update
 to the new directory format and to use the new tools to take advantage of
 new features and for compatibility with future GWT releases.

 The sample projects provided in the GWT distribution provide an example of
 correct new project configurations. For more details on the specifics of the
 new project format, please see GWT 1.6 WAR design document 
 (http://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6).

 A couple of important changes we should highlight here:

 - Projects with server-side code (GWT RPC) must configure a web.xml file
 at /war/WEB-INF/web.xml. This web.xml file must define and publish any
 servlets associated with the web application. See the included DynaTable
 sample. Additionally, server-side library dependencies must be copied into
 /war/WEB-INF/lib. For example, any GWT RPC servlets must have a copy of
 gwt-servlet.jar in this folder.

 - HTML host pages will no longer typically be located in a GWT module's
 public path. Instead, we'll be recommending that people take advantage of
 the natural web app behavior for serving static files by placing host pages
 anywhere in the war structure that makes sense. For exmaple, you might want
 to load a GWT module from a JSP page located in the root of your web app. To
 keep such handwritten static files separate from those produced by the GWT
 compiler, the latter will be placed into module-specific subdirectories. Any
 page that wishes to include a GWT module can do so via a script tag by
 referencing the GWT-produced module.nocache.js script within that
 module's subdirectory. As of 1.6, we'll be recommending that only
 module-specific resources used directly by GWT code, such as image files
 needed by widgets, should remain on the public path. See the included
 Showcase sample for some examples of this distinction.

 - When you do need to load resources from a module's public path, always
 construct an absolute URL by prepending GWT.getModuleBaseURL(). For example,
 'GWT.getModuleBaseURL() + dir/file.ext'. This advice has not changed, but
 in the past it was easy to be sloppy with this, because the host page and
 GWT module typically lived in the same directory, so using a relative URL
 would usually do the right thing. Now that GWT modules live in a
 subdirectory, you must reference public resources through
 GWT.getModuleBaseURL().

 *** Hosted Mode Enhancements ***

 Although the legacy GWTShell still uses an embedded Tomcat server, the new
 HostedMode runs Jetty instead. There is also a new Restart Server button
 on the main hosted mode window. Clicking this button restarts the internal
 Jetty server, which allows Java code changes to take effect on the server
 without having to completely exit and restart hosted mode. This is useful
 when making code changes to RPC servlets, or 

Re: any advices to make gwt applications look nicer/

2009-02-08 Thread Sebastien

Hi,

- First, I suggest you to use SmartGWT. GWT ext will not evolve lot
due to ext licence. GXT is not free and today it does not offer enough
widgets than smart GWT.
- Second you have to play with CSS. For the last point I advice you to
define an interface containing style definitions (String field
representing the style name).
- If after that you are not happy, you should get a web designer ;-)

Regards,
Seb

On 8 fév, 14:03, ytbryan ytbr...@gmail.com wrote:
 hi all,

 is there a specific way to create nicer and more quality gwt
 application?

 i do know about mygwt and gwt ext. but is there other ways?

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



Re: gwt + gmail template/site

2009-02-08 Thread Sebastien

Hi,

You have to divide your screen space in severl areas managed by
panels. On click event you can update the content the expected panel.
Take a look to the samples provided in the binary distribution.

Regards,
Seb

On 8 fév, 15:41, lidos thebestaven...@hotmail.com wrote:
 Hello,
 I m new to gwt community and i would like to learn how to build a
 similar panel
 as gwt and gmail site.
 I want a panel like a horizontal one. but when u click something in
 the right panel for example and then apart from the appropriate data
 to be shown into the left panel, a line like here in gwt will appear
 to show exactly what button pressed from the right panel. Like here
 with Home, discussions or like the gmail with inbox starred , draft
 etc

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



GWTShell crashes quickly under ubuntu with 64bit processor

2009-02-08 Thread Sebastien

Hi,

I am using GWT 1.5.3 version. Since 3 years I worked with GWT under
linux (ubuntu 8.10) with a 32 processor. Since few days I have a new
computer with 64bit processor (ubuntu 8.10 again). My project works
well in compiled mode. But at each time, I use the simulator
(GWTShell), it crashes quickly after some actions. I tried to change
the java version or runtime without sucess. The crash is a classical
JVM crash. I have flash animations in my gwt application. Then I
integrated the flash plugin into the mozilla 1.7.12 provided with the
GWT ditribution.

Thanks in advance for any help.

Regards,
Seb

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



Re: gwt + gmail template/site

2009-02-08 Thread lidos

Ty for the immediate answer.
I know how to make on click events, i just dont know how to make this
very simple panel. I mean i want to be clearly seen what the user
pressed by drawing a line like here.
For instance if the user perss Articles, it will be something like
that

-
   |  Home
   | Discussions

 Articles   |
---
|
-

Same if he press Home or Discussions for example.
Ty again.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Drag and drop problematic with firefox ie

2009-02-08 Thread amich...@gmail.com

Hi,

I'm trying to use my own implementation of drag and drop in a Tetris-
like game:

http://www.numbrosia.com (not Numbrosia, but you can play it there)

It seems ok on Chrome, but Firefox and IE seem to have their own idea
of what drag and drop should do that interferes with my implementation
of drag and drop.

For example, Firefox will actually try to drag and drop a square on
its own  (even though the squares are not images) and show a circle
with a line through it (indicating that you can't drop the square in
that position).

How do I disable Firefox and IE from attempting to drag and drop their
own way?

Amir

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



Re: gwt + gmail template/site

2009-02-08 Thread Dan Ox

In the onclick of the articles link, change the articles link's
style.

On Feb 9, 6:26 am, lidos thebestaven...@hotmail.com wrote:
 Ty for the immediate answer.
 I know how to make on click events, i just dont know how to make this
 very simple panel. I mean i want to be clearly seen what the user
 pressed by drawing a line like here.
 For instance if the user perss Articles, it will be something like
 that

 -
                    |  Home
                    | Discussions
                     
                      Articles   |
                     ---
                     |
 -

 Same if he press Home or Discussions for example.
 Ty again.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Drag and drop problematic with firefox ie

2009-02-08 Thread Dan Ox

I think that rather than trying to change a browser to fit your
implementation, you should try changing your implementation to fit the
browsers you want to run it in.

On Feb 9, 9:02 am, amich...@gmail.com amich...@gmail.com wrote:
 Hi,

 I'm trying to use my own implementation of drag and drop in a Tetris-
 like game:

 http://www.numbrosia.com(not Numbrosia, but you can play it there)

 It seems ok on Chrome, but Firefox and IE seem to have their own idea
 of what drag and drop should do that interferes with my implementation
 of drag and drop.

 For example, Firefox will actually try to drag and drop a square on
 its own  (even though the squares are not images) and show a circle
 with a line through it (indicating that you can't drop the square in
 that position).

 How do I disable Firefox and IE from attempting to drag and drop their
 own way?

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



Re: Drag and drop problematic with firefox ie

2009-02-08 Thread Amir Michail

On Sun, Feb 8, 2009 at 2:18 PM, Dan Ox danoxs...@gmail.com wrote:

 I think that rather than trying to change a browser to fit your
 implementation, you should try changing your implementation to fit the
 browsers you want to run it in.

Yes, but how?  Is it easy to fix?

Amir


 On Feb 9, 9:02 am, amich...@gmail.com amich...@gmail.com wrote:
 Hi,

 I'm trying to use my own implementation of drag and drop in a Tetris-
 like game:

 http://www.numbrosia.com(not Numbrosia, but you can play it there)

 It seems ok on Chrome, but Firefox and IE seem to have their own idea
 of what drag and drop should do that interferes with my implementation
 of drag and drop.

 For example, Firefox will actually try to drag and drop a square on
 its own  (even though the squares are not images) and show a circle
 with a line through it (indicating that you can't drop the square in
 that position).

 How do I disable Firefox and IE from attempting to drag and drop their
 own way?

 Amir
 




-- 
http://readmytweets.com
http://chatbotgame.com
http://numbrosia.com
http://twitter.com/amichail

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



Re: Announcing GWT 1.6 Milestone 1

2009-02-08 Thread Dop Sun

I guess in the sample projects (included in the M1 build), there is
build file for each and every of them, and within that, there build
tasks for the project. Maybe, you can have a try what there?

On Feb 9, 2:49 am, Sebastien chassa...@gmail.com wrote:
 Hi,

 I am interested to migrate from the 1.5.3 to the 1.6.0 M1. When I use
 this M1 with -war option, the the compiler output is not like an
 expanded war. I tried to specify all parameters (-war, -gen, -
 extra ..) without success. The output of the compiler is always
 similar to the output of the 1.5.3 compiler. The compiler indicates
 the 1.6.0 version, so I am sure to use the 1.6. I am under linux
 (ubuntu).

 Do you have any idea why the compiler output is not like an expanded
 war ?

 Regards,
 Seb

 On 6 fév, 16:26, Scott Blum sco...@google.com wrote:

  Greetings GWT developers,

  The GWT team is happy to announce the availability of 1.6 Milestone 1!
  Binary distributions are available for download directly from GWT's Google
  Code project.

 http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=1.6.0

  As always, milestone builds like this are use-at-your-own-risk. There are
  known bugs, and it definitely isn't ready for production use. Please expect
  some trial and error getting everything to work. The javadoc that comes
  bundled with the distribution should be up-to-date, but the online Developer
  Guide (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-6) is
  still very much a work in progress. We will be updating it over the next
  several weeks. In lieu of an up-to-date Developer Guide and release notes,
  below are the major highlights relative to GWT 1.5.3.

  *** New Project Structure in GWT 1.6 ***

  One of the biggest changes to GWT 1.6 is a new project structure. The old
  output format has been replaced by the standard Java web app expanded war
  format, and the actual directory name does default to /war. Note that the
  war directory is not only for compiler output; it is also intended to
  contain handwritten static resources that you want to be included in your
  webapp alongside GWT modules (that is, things you'd want to version
  control). Please also note that the GWTShell and GWTCompiler tools will
  maintain their legacy behavior, but they have been deprecated in favor of
  new HostedMode and Compiler tools which use the new war output. When 1.6
  is officially released, we will be encouraging existing projects to update
  to the new directory format and to use the new tools to take advantage of
  new features and for compatibility with future GWT releases.

  The sample projects provided in the GWT distribution provide an example of
  correct new project configurations. For more details on the specifics of the
  new project format, please see GWT 1.6 WAR design document 
  (http://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6).

  A couple of important changes we should highlight here:

  - Projects with server-side code (GWT RPC) must configure a web.xml file
  at /war/WEB-INF/web.xml. This web.xml file must define and publish any
  servlets associated with the web application. See the included DynaTable
  sample. Additionally, server-side library dependencies must be copied into
  /war/WEB-INF/lib. For example, any GWT RPC servlets must have a copy of
  gwt-servlet.jar in this folder.

  - HTML host pages will no longer typically be located in a GWT module's
  public path. Instead, we'll be recommending that people take advantage of
  the natural web app behavior for serving static files by placing host pages
  anywhere in the war structure that makes sense. For exmaple, you might want
  to load a GWT module from a JSP page located in the root of your web app. To
  keep such handwritten static files separate from those produced by the GWT
  compiler, the latter will be placed into module-specific subdirectories. Any
  page that wishes to include a GWT module can do so via a script tag by
  referencing the GWT-produced module.nocache.js script within that
  module's subdirectory. As of 1.6, we'll be recommending that only
  module-specific resources used directly by GWT code, such as image files
  needed by widgets, should remain on the public path. See the included
  Showcase sample for some examples of this distinction.

  - When you do need to load resources from a module's public path, always
  construct an absolute URL by prepending GWT.getModuleBaseURL(). For example,
  'GWT.getModuleBaseURL() + dir/file.ext'. This advice has not changed, but
  in the past it was easy to be sloppy with this, because the host page and
  GWT module typically lived in the same directory, so using a relative URL
  would usually do the right thing. Now that GWT modules live in a
  subdirectory, you must reference public resources through
  GWT.getModuleBaseURL().

  *** Hosted Mode Enhancements ***

  Although the legacy GWTShell still uses an embedded Tomcat server, the new
  HostedMode runs 

Re: GWT 1.6 preliminary exploration and doc wish list

2009-02-08 Thread Duong BaTien

  The GWT team is happy to announce the availability of 1.6 Milestone 1!
  Binary distributions are available for download directly from GWT's Google
  Code project.

  Happy coding,
  Scott, on behalf of the GWT team

Greetings:

Thanks for the tremendous efforts from GWT team and supporting
communities. Here are some preliminary exploration and wish list of the
coming doc:

1) Using the webAppCreator (ant 1.7.0, jdk 1.6) i create an application,
run the hosted mode, then the build to compile the app. In the app war
directory, i see the hosted.html and app.nocache.js, but Not the .css
and .html file as listed in the compiler output of the StockWatcher 1.6
example.

2) The current gwt-incubator_1-5_Dec_28.jar is not compatible with
GWT-1.6.0. Hope the new compatible version will be out soon. I am still
working through the examples to understand the new war structure,
especially the project that uses different modular GWT modules and the
location of public files for different modules. Some documentation and
suggested best practices may be required.

3) With new GWT Event Handler, the stockwatcher example shows a
container class to use a single handler method for event (ClickHandler)
coming from different event publishers (but1 and but2). GWT team may
share its experience and approach for all GWT event types in 1 container
class, especially the way to integrate GWT event handler with OpenAjax
Hub, leveraging GWT JSO and coming UIBinder ;-)

4) In the doc Articles and Tutorials, i see GWT for JSON Mashups and
Application of Facebook. It may be a good idea to centralize in 1 place
possible GWT applications and how-to to leverage Google API and
facilities: Gears, AppEngine, google-ajax-examples, etc.

Thanks

Duong BaTien
DBGROUPS and BudhNet



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



Re: how to access objects from another frame?

2009-02-08 Thread asdf_asdf

His,

Will try to follow some ideas from
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/cd09890e8b532e2e/86bd6b94c573fdb6?lnk=gstq=share+object#86bd6b94c573fdb6
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/9af4fa30bf762fd2
and GWT in Action to share objects across an iframe. Maybe anyone
has already tried this with frames and could share experience?

One more thing regarding interframe communication. I feel a somewhat
confused about EntryPoints. Is a single EntryPoint essentially meant
to correspond to a distinct webpage? If so, than I would need a
separate EntryPoint class for every html page needing GWT support...
what would be a proper way than to have an iframe that holds an active
cache and does not get reloaded when user clicks a link.

My initial approach would have been to have an EntryPoint with logic
for the active cache defining an iframe to host other pages (that
would do actual presentation and utilize data from the active cache).
Could you please suggest if that would be a correct approach? What
would be the way than to specify a webpages that they should be
enbedded in a iframe element of the existing page?

Thanks.

I feel somewhat confused about architecture

On 5 Feb., 23:29, asdf_asdf denis.ergashb...@gmail.com wrote:
 Thanks Damien,

 No, unfortunately plugins are not an acceptable solutions. I feel
 nevertheless that there should be a way to communicate between frames.
 Preferably without JSNI?

 On 5 Feb., 18:48, Damien Picard picard.dam...@gmail.com wrote:

  If you can accept browser's plugins in your project, take a look at Google
  Gears. With this, you can take a better control of locally stored data and
  much more ...

 http://gears.google.com/

  2009/2/5 asdf_asdf denis.ergashb...@gmail.com

   His,

   Read some posts in the group and still wondering if implementing such
   a scenario would be possible with GWT:
   A web page is served which contains two frames - one for presenting
   the stuff and the other one to constantly make requests to the server
   (a timer) and maintain latest of data (lots of objects, so only the
   new data is added / removed and not everything at once).

   Is there a way for one frame to get a reference to the other where the
   current data resides? The obvious benefit would be that when user
   clicks a link and goes to a different page the data is still in the
   other frame and there is no need to load everything over again. Has
   someone maybe already done that or experienced a similar challenge?

   That's my view on the problem. But maybe there can be another way to
   retain pieces of working logic and current data without frames when a
   user jumps to physically distinct html page.

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



Re: Old issues in the RichTextEditor

2009-02-08 Thread vruiz.jur...@gmail.com

On 6 feb, 22:50, Sumit Chandel sumitchan...@google.com wrote:
 Hi Vicente,
 Thanks for bumping this up. In aggregate, it seems that there are a few
 developers that are waiting for these enhancements to RichTextEditor, so
 these are definitely important to consider as we roll out future releases.

nice...

 I particularly bumped up Issue #1433 so the team gets to take a look at
 investigating it before a final 1.6 release. It seems like having support
 for setting innerHTML would solve the most use cases in one fix.

I agree.

 Finally having said that, you know our motto, Patches welcome!.

I know. I started adding

public void insertHtml(String html) {
execCommand(InsertHtml, html);
}

in RichTextAreaImplStandard that works in Mozilla, but sadly I don't
have resources/capacity to do and test the same in other browsers.

Thanks Sumit,


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



Anything wrong with the GWT-Tutorial's url?

2009-02-08 Thread ChaoS

http://code.google.com/intl/zh-CN/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=GettingStarted

Why does this url take me to Google Code documentation reader?

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



Re: Anything wrong with the GWT-Tutorial's url?

2009-02-08 Thread Dan Ox

That is because it is a link to a google code documentation reader
page.

On Feb 9, 1:27 pm, ChaoS edo...@gmail.com wrote:
 http://code.google.com/intl/zh-CN/docreader/#p=google-web-toolkit-doc...

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



Re: how to access objects from another frame?

2009-02-08 Thread Dan Ox

Is there a reason why you cannot implement this using a single frame
containing two GWT scroll panels.

In one pannel is all your regularly refreshing content, in the other
is the content the user is interested in. This way your object model
is shared across the application and there is only a need for one.

You are correct in your understanding of entry points. One entry point
specifies on GWT application. Using multiple frame would require
multiple GWT applications. You could potentially share data across the
applications using native javascript. But this seems like a very
complex and error-prone implementation to me. Keeping your whole user
interface in one application is the most logical and simplest
approach.

On Feb 9, 11:35 am, asdf_asdf denis.ergashb...@gmail.com wrote:
 His,

 Will try to follow some ideas 
 fromhttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
 and GWT in Action to share objects across an iframe. Maybe anyone
 has already tried this with frames and could share experience?

 One more thing regarding interframe communication. I feel a somewhat
 confused about EntryPoints. Is a single EntryPoint essentially meant
 to correspond to a distinct webpage? If so, than I would need a
 separate EntryPoint class for every html page needing GWT support...
 what would be a proper way than to have an iframe that holds an active
 cache and does not get reloaded when user clicks a link.

 My initial approach would have been to have an EntryPoint with logic
 for the active cache defining an iframe to host other pages (that
 would do actual presentation and utilize data from the active cache).
 Could you please suggest if that would be a correct approach? What
 would be the way than to specify a webpages that they should be
 enbedded in a iframe element of the existing page?

 Thanks.

 I feel somewhat confused about architecture

 On 5 Feb., 23:29, asdf_asdf denis.ergashb...@gmail.com wrote:

  Thanks Damien,

  No, unfortunately plugins are not an acceptable solutions. I feel
  nevertheless that there should be a way to communicate between frames.
  Preferably without JSNI?

  On 5 Feb., 18:48, Damien Picard picard.dam...@gmail.com wrote:

   If you can accept browser's plugins in your project, take a look at Google
   Gears. With this, you can take a better control of locally stored data and
   much more ...

  http://gears.google.com/

   2009/2/5 asdf_asdf denis.ergashb...@gmail.com

His,

Read some posts in the group and still wondering if implementing such
a scenario would be possible with GWT:
A web page is served which contains two frames - one for presenting
the stuff and the other one to constantly make requests to the server
(a timer) and maintain latest of data (lots of objects, so only the
new data is added / removed and not everything at once).

Is there a way for one frame to get a reference to the other where the
current data resides? The obvious benefit would be that when user
clicks a link and goes to a different page the data is still in the
other frame and there is no need to load everything over again. Has
someone maybe already done that or experienced a similar challenge?

That's my view on the problem. But maybe there can be another way to
retain pieces of working logic and current data without frames when a
user jumps to physically distinct html page.

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



Re: Best image preloading practice?

2009-02-08 Thread davidroe

I have only skimmed this thread, and I've not looked at the game, but
here is my 2c.

my situation is a little different - I'm not pre-loading images per
se, but I am loading them in the background. I use a hidden panel
(hidden by being positioned off screen rather than display:none) which
I load images onto. each image has a load listener so that I can
process it when it arrives and move it to the appropriate part of the
DOM.

on to your problem.

could you maintain an array of image URLs, load the first image,
attach a load listener and attach it to a hidden panel? when the image
has loaded, repeat the process to load the next one. that way, you
ensure that they only load one at a time (less blocking behaviour in
the browser). once you know an image has been loaded, you are free to
use new Image(url) and know reliably that the image will be loaded
from cache.

HTH,
/dave

On Feb 8, 7:04 am, darkflame darkfl...@gmail.com wrote:
 Well, I know prefetch is working to some extent (at least, in Chrome
 and Firefox), as I can watch it prefetching
 rather large volumes of images that arnt used in the html at all.
 All of those images must have been triggered by the prefetch loop.

 Still, I'll read over the Mozzilla doc, maybe things have changed a
 little since javascript has been more widely used.

 On Feb 6, 3:12 pm, gregor greg.power...@googlemail.com wrote:

  @Litty: yes, I think you are right, my ignorance. Image.prefetch()
  will causes the image to be loaded into browser cache. You then use
  the same URL to instantiate an Image object later in code, and
  hopefully the image binary will be already downloaded. This old
  Mozzilla doc describes the process:

 http://devedge-temp.mozilla.org/viewsource/2003/link-prefetching/inde...

  The doc suggests the behavior darkflame described in OP, namely,
  browser is busy downloading all the prefetches it finds in the page.

  @darkflame:

   b) If I do have to load, say, upto 10 images that have to be seperate,
   is it better to just loop over a list of them prefetching and leave it
   upto the browseror should I put a timer and trigger a load every,
   say, 5 seconds ?
   (or dosnt it make much difference).

  My reading of the Mozzilla doc is that the browser will notice all the
  prefetch tags when it loads the page, and it will then get busy
  downloading them. So I have doubts whether where you put the
  Image.prefetch(url) in execution logic makes any difference, i.e. you
  do not have fine tune programmatic control over prefetch so you can't
  code to prefetch first 10, then later trigger prefetching next 10. For
  example the Mozzilla doc states The link tag has to be inside the
  head tag to make prefetching work etc.

   On Feb 6, 9:14 am, Litty Preeth preeth.h...@gmail.com wrote:

  You are thinking of loading 20MB of images into the DHTML DOM of 
  you
  application

  Am I? Does the DOM keep them there even when not displayed?
  These images certainly wouldnt be displayed all at once. 1 or 2 at a
  time at most.

 I'm not absolutely sure, but I think if you load an image it is
 basically attached to a document, whether the browser caches it or
 not, and whether it is currently visible of not. You don't control the
 browser cache, I mean I don't think you can tell it to conveniently
 download all your images and store them neatly on disk until you need
 to display them for example.

ah, pig.
I thought that was exactly that prefetch was doing -sigh-
I thought it loaded it to ram first, then the browser keeps a copy in
its cache for reloading if needed.
-sigh-
That does change things indeed then.

AFAIK the prefetch creates an IMG element but its not attached to the 
DOM.

- Litty

On Fri, Feb 6, 2009 at 1:03 PM, darkflame darkfl...@gmail.com wrote:

   You are thinking of loading 20MB of images into the DHTML DOM of 
   you
   application

   Am I? Does the DOM keep them there even when not displayed?
   These images certainly wouldnt be displayed all at once. 1 or 2 
   at a
   time at most.

  I'm not absolutely sure, but I think if you load an image it is
  basically attached to a document, whether the browser caches it or
  not, and whether it is currently visible of not. You don't control 
  the
  browser cache, I mean I don't think you can tell it to conveniently
  download all your images and store them neatly on disk until you 
  need
  to display them for example.

 ah, pig.
 I thought that was exactly that prefetch was doing -sigh-
 I thought it loaded it to ram first, then the browser keeps a copy in
 its cache for reloading if needed.
 -sigh-
 That does change things indeed then.

   Again, not at once.
   Surely a staggered download they wouldnt have a problem with?
   Emulating, say, what it would expect from a user browseing 
   DeviantArt?

  

Re: Drag and drop problematic with firefox ie

2009-02-08 Thread Adam T

just try using the gwt drag n drop library which has solved all these
problems: http://code.google.com/p/gwt-dnd/

//Adam

On 8 Feb, 23:26, Amir Michail amich...@gmail.com wrote:
 On Sun, Feb 8, 2009 at 2:18 PM, Dan Ox danoxs...@gmail.com wrote:

  I think that rather than trying to change a browser to fit your
  implementation, you should try changing your implementation to fit the
  browsers you want to run it in.

 Yes, but how?  Is it easy to fix?

 Amir





  On Feb 9, 9:02 am, amich...@gmail.com amich...@gmail.com wrote:
  Hi,

  I'm trying to use my own implementation of drag and drop in a Tetris-
  like game:

 http://www.numbrosia.com(notNumbrosia, but you can play it there)

  It seems ok on Chrome, but Firefox and IE seem to have their own idea
  of what drag and drop should do that interferes with my implementation
  of drag and drop.

  For example, Firefox will actually try to drag and drop a square on
  its own  (even though the squares are not images) and show a circle
  with a line through it (indicating that you can't drop the square in
  that position).

  How do I disable Firefox and IE from attempting to drag and drop their
  own way?

  Amir

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



Re: Calling of business method from Client

2009-02-08 Thread Arul

Thanks Gregor, let me explore the options you mentioned.


On Feb 6, 10:52 pm, gregor greg.power...@googlemail.com wrote:
 Hi Arul,

 Check out:

 http://code.google.com/p/google-web-toolkit-incubator/wiki/TreeTable

 Personally I find tree tables sometimes look confusing, especially if
 there are significant differences in the structure and/or size of the
 nodes, but a lot of people like them. They are also complicated
 widgets. I would consider as an alternative breaking up the structure
 into three widgets, for example:

 1. A list of Accounts (Acc No) to pick from left side (a
 HorizontalPanel basically).
 2. A standard Tree widget representing Account Name nodes at top level
 with the rules and tests nested underneath located top right
 3. A leaf data panel to show details of a particular test or rule
 selected from the Tree, located bottom right.

 You could use HorizontalSplitPanel and VerticalSplitPanel to divide up
 the display giving much more flexibility to the user's view of the
 data, and I think you may find it looks a lot better and is easier to
 use. There are other alternatives involving DisclosurePanels etc. This
 approach may not only be easier for the user, but you may find it a
 lot easier to code as well.

 regards
 gregor

 On Feb 6, 3:48 pm, Arul arulmanikandan.sriniva...@gmail.com wrote:



  Hi Gregor,
      I some how managed GWT component as replacement of my presentation
  layer.
  currenlty my application will be displaying like tree structure as
  menu in the left hand and selecting each link its content is diplayed
  in right side in grid with rows and columns. This kind of requirement
  suits most of the places.

     In partcular link, the grid in right hand side would be dipslayed
  like.
       a)Acct no       Accont Name
           1000            ABC ( 2 tests)
                                Test1 (2 rule)
                              Rule1
                               Test2( 2 rules)
                              Rule1
                              Rule2

          2000            XYZ ( 1 tests)
                                Test1 (5 rules)

  Here first only acct no and name woold be displayed , test belongs to
  an account would be expaned if user uses kind of arrow on acct name.
  then rules belongs to each test expaned on request basis as selecting
  the arrow.

  Would you please assist me how I can achive this behavior in Grid? or
  send me some usefule links if you have.?

  Thanks a Lot
  Arul

  On Jan 2, 7:35 pm, gregor greg.power...@googlemail.com wrote:

Here in the existing application it is easy for getting session values
(JSP) and assigned as part of query string.

Would you please tell me how the same can be acheived in GWT client
code(JAVA)?
How I can get those session values so that I can assign in Window.open
method?.

   Well your existing JSPs are running server side as servlets whereas
   your GWT code is running as javascript client side, so whereas your
   JSPs have automatic access to httpsession your GWT client code
   obviously does not. I think you might have to make a preparatory RPC
   call to get the necessary parameters from the user's session before
   you construct the URL.

Thanks
Arul- Hide quoted text -

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



Re: Announcing GWT 1.6 Milestone 1

2009-02-08 Thread Sebastien

Hi,

I take a look on the build.xml of samples. I didn't see any special
difference.
Here is a part of my build.xml :
java maxmemory=1200m classname=com.google.gwt.dev.Compiler
fork=true failonerror=true taskName=gwtc
arg value=com.raisepartner.prism.PRISM /
classpath
pathelement location=src/main/
fileset dir=${prj.lib}include name=**/*.jar//fileset
/classpath
/java
=
[gwtc] Compiling module com.raisepartner.prism.PRISM
[gwtc]Compiling 10
permutations
[gwtc]   Permutation compile
succeeded
[gwtc]Linking into
war
[gwtc]   Link
succeeded
[gwtc]Compilation succeeded --
483,002s

The output is 'war' directory at the root of my project. This
directory contains only the module directory. There is no WEB-INF
directory created. Is it the expected behavior ?
By looking the samples I understand that my main html page (the one
calling the nocache.js) must me copied manually at the root of the war
directory. The content of the module.public is copied into war/
module. I expected the content would be copied at the root of the
'war' directory.

So my conclusion is that there is no change compared to the
1.5.3 ... :-(

Regards,
Seb
On 8 fév, 23:45, Dop Sun dop...@gmail.com wrote:
 I guess in the sample projects (included in the M1 build), there is
 build file for each and every of them, and within that, there build
 tasks for the project. Maybe, you can have a try what there?

 On Feb 9, 2:49 am, Sebastien chassa...@gmail.com wrote:

  Hi,

  I am interested to migrate from the 1.5.3 to the 1.6.0 M1. When I use
  this M1 with -war option, the the compiler output is not like an
  expanded war. I tried to specify all parameters (-war, -gen, -
  extra ..) without success. The output of the compiler is always
  similar to the output of the 1.5.3 compiler. The compiler indicates
  the 1.6.0 version, so I am sure to use the 1.6. I am under linux
  (ubuntu).

  Do you have any idea why the compiler output is not like an expanded
  war ?

  Regards,
  Seb

  On 6 fév, 16:26, Scott Blum sco...@google.com wrote:

   Greetings GWT developers,

   The GWT team is happy to announce the availability of 1.6 Milestone 1!
   Binary distributions are available for download directly from GWT's Google
   Code project.

  http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=1.6.0

   As always, milestone builds like this are use-at-your-own-risk. There are
   known bugs, and it definitely isn't ready for production use. Please 
   expect
   some trial and error getting everything to work. The javadoc that comes
   bundled with the distribution should be up-to-date, but the online 
   Developer
   Guide (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-6) is
   still very much a work in progress. We will be updating it over the next
   several weeks. In lieu of an up-to-date Developer Guide and release notes,
   below are the major highlights relative to GWT 1.5.3.

   *** New Project Structure in GWT 1.6 ***

   One of the biggest changes to GWT 1.6 is a new project structure. The old
   output format has been replaced by the standard Java web app expanded 
   war
   format, and the actual directory name does default to /war. Note that 
   the
   war directory is not only for compiler output; it is also intended to
   contain handwritten static resources that you want to be included in your
   webapp alongside GWT modules (that is, things you'd want to version
   control). Please also note that the GWTShell and GWTCompiler tools 
   will
   maintain their legacy behavior, but they have been deprecated in favor of
   new HostedMode and Compiler tools which use the new war output. When 
   1.6
   is officially released, we will be encouraging existing projects to update
   to the new directory format and to use the new tools to take advantage of
   new features and for compatibility with future GWT releases.

   The sample projects provided in the GWT distribution provide an example of
   correct new project configurations. For more details on the specifics of 
   the
   new project format, please see GWT 1.6 WAR design document 
   (http://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6).

   A couple of important changes we should highlight here:

   - Projects with server-side code (GWT RPC) must configure a web.xml file
   at /war/WEB-INF/web.xml. This web.xml file must define and publish any
   servlets associated with the web application. See the included DynaTable
   sample. Additionally, server-side library dependencies must be copied into
   /war/WEB-INF/lib. For example, any GWT RPC servlets must have a copy of
   gwt-servlet.jar in this folder.

   - HTML host pages will no longer typically be located in a GWT module's
   public path. Instead, we'll be recommending that people take advantage of
   the natural web app behavior for serving static files by placing host 
   pages
   anywhere in the war structure 

Re: ScrollPanel maxWidth or maxHeight?

2009-02-08 Thread alex.d

I see,
I will try it - thank you all for your help.

On 6 Feb., 19:32, gregor greg.power...@googlemail.com wrote:
 Oh right...

 I think you've got to make sure that the whatever the ScrollPanel
 contains has actually reduced in size already - if it hasn't the
 ScrollPanel will refuse to cooperate (i.e. it won't squash it's
 contents by itself). Then you need to reset it to 1px  more than the
 height/width of its contents (1px is fine if contents is now 0) in
 order to get rid of the scroll bars (0px etc is ignored as I
 recall). It won't do that by itself. After that you'll have to try
 things out - I've always reset ScrollPanel's to a specific height
 after this procedure, so I don't know how to release it from the 1px
 instruction without specifying another. I think I would use debugger
 to find out exact style properties of ScrollPanel whilst it's in
 growing mode to start with, and attempt to replicate that. If it has
 nothing in height/width you may have a problem because, as you say,
 you may not be allowed to actually remove a style attribute once it's
 there, only modify it, in which case the ScrollPanel may stubbornly
 refuse to cooperate.

 You might be forced to attempt a detach of the items widget, replace
 ScollPanel with a new one, and reattach the items widget to it, or
 some such...

  or you might consider another way to do this altogether -
 ScrollPanel's can be tiresome, uncooperative widgets at times ;-)

 On Feb 6, 3:46 pm, Davsket g.ave...@gmail.com wrote:

  well, at least replace it..

  On 6 feb, 10:41, alex.d alex.dukhov...@googlemail.com wrote:

   Haven't found one either. But checking height while adding elements is
   ok - have it almoust working already. Well, almoust - the problem is
   that when height or width properties are set once, you can't take it
   back. So, while panel shows the desired behaviour while adding
   elements, it remains big when elements are removed. I've already
   tried:

   scrollPanel.setWidth();
   scrollPanel.setWidth(null);

   but no luck. I've also tried to set the style-attribute directly with

   DOM.setStyleAttribute(scrollPanel.getElement(), width, );

   but no luck either.
   Sadly, i haven't found a removeStyleAttribute-method.

   Any ideas?
   Thx

   On 6 Feb., 15:23, gregor greg.power...@googlemail.com wrote:

 Is there a real browser-event or should i
 just call a check procedure whenever i add elements?

The latter, no browser event available AFAIK.

  I have looked in vain for a general method to get ScrollPanels to
  resize and generally behave by themselves. I think the reason is 
  that
  individual divs/table cells etc do not generate events when their 
  size
  changes. ScrollPanel is basically a div with an overflow setting. I
  have supposed this is because there can be hundreds if not thousands
  of boxes on a page, so if they all emitted an event every time they
  changed their width/heights the browser's event queue would be 
  brought
  to its knees.

  On Feb 5, 4:13 pm, Litty Preeth preeth.h...@gmail.com wrote:

   there is some max-height CSS property. But dont know if it works.

   On Thu, Feb 5, 2009 at 8:59 PM, alex.d 
   alex.dukhov...@googlemail.comwrote:

On 5 Feb., 16:10, gregor greg.power...@googlemail.com wrote:
 Hi Alex,

 I think you have to explicitly specify the height of a 
 ScollPanel in
 pixels to get the scroll bars to kick in, and that will set 
 the height
 of the panel from the word go. If what you mean is that you 
 want a
 panel to start at a minimum size, then grow as things are 
 added to it,
 but then to stop growing and go into scroll mode at a certain 
 point,

exactly what i meant.

 I do not think that is realistically possible since there is 
 no event
 you can listen for that would tell you when the panel had 
 grown to a
 given height. You can listen for the browser window changing, 
 but not
 for an individual panel.

 I suppose one approach might be to set up a timer to check 
 the current
 height at intervals and take appropriate action when it hit 
 the limit,
 but this sounds very inefficient.

Indeed it does. I kind of hoped somebody will have a genious 
idea
about it ;-) Thank you for your input anyway.

 regards
 gregor

 On Feb 5, 9:29 am, alex.d alex.dukhov...@googlemail.com 
 wrote:

  Hi folks,
  I'm trying to impelement a scrollpanel that becomes bigger 
  (height) to
  the certain size (maxHeight) when populating it with data.  
  After that
  vertical scrollbar should appear and the panel should stop 
  growing.
  Any ideas on how to implement this would be appreciated.



[no subject]

2009-02-08 Thread GWT GWT
Hi ,
I am new in GWT.
I am trying to develp an application using GWT+Spring .

following  are application code

1) MyApplication .java

package com.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.ui.*;


// Referenced classes of package csw.client MyService, MyServiceAsync
public class MyApplication implements EntryPoint {
public MyApplication() {
}
public void onModuleLoad() {
final Label label = new Label();
final MyServiceAsync svc = (MyServiceAsync)
GWT.create(com.client.MyService.class);
ServiceDefTarget endpoint = (ServiceDefTarget) svc;
endpoint.setServiceEntryPoint(services/myService);
final AsyncCallback callback = new AsyncCallback() {
public void onSuccess(Object result) {
label.setText(result.toString());
}
public void onFailure(Throwable ex) {
label.setText(ex.toString());
}
};
Button button = new Button(Click ME);
button.addClickListener(new ClickListener() {
public void onClick(Widget w) {
svc.myMethod(Do Something, callback);
}
});
RootPanel.get(testing).add(button);
RootPanel.get(testing2).add(label);
}
}



Myapplication.html


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

html
  head
meta http-equiv=content-type content=text/html; charset=UTF-8

titleMyApplication/title

script type=text/javascript language=javascript
src=com.MyApplication.nocache.js/script
  /head
  body

iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1'
style=position:absolute;width:0;height:0;border:0
/iframe
table align=center
 trtd id=testing/td
 td id=testing2/td
 /tr
 /table
  /body
/html

Myapplication.gwt.xml

module
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --
  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='com.company.client.MyApplication'/

  !-- Specify the application specific style sheet.  --
  stylesheet src='MyApplication.css' /

/module


when I run  MyApplication-shell  command

I got click me button.
But when i click on click me button I got following exception.

[WARN] StandardContext[]Error loading WebappClassLoader
  delegate: false
  repositories:
-- Parent Classloader:
sun.misc.launcher$appclassloa...@11b86e7
 org.springframework.web.servlet.DispatcherServlet
java.lang.ClassNotFoundException:
org.springframework.web.servlet.DispatcherServlet
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:964)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
 at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 at

Getting an Error No source code is available for type java.util.ResourceBundle; while compilation.

2009-02-08 Thread Suresh

Hi,

I'm trying to develop a module with GWT and integrate it with
exisiting project in JS. My Page contains lot of list boxes for which
i have to load the values from properties file. If i use
com.google.gwt.i18n.client.Constants i have to write lot of getter
methods for each values with interface. Instead of this i'm planning
to use ResourceBundle but if i use Resourcebundle i'm gettign the
following error during compilation No source code is available for
type java.util.ResourceBundle;. What needs to be done to resolve this
error?

Regards,
Suresh

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



adding listener to gwt tree

2009-02-08 Thread Raju

ha,
I am very new to GWT.When doing my application I need add to listener
to my tree .But I am unable to do this .
Any one can help me
Here my code:


/*
 * TreeMainEntryPoint.java
 *
 * Created on February 5, 2009, 2:36 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.karishma.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Tree;
import com.google.gwt.user.client.ui.TreeItem;
import com.gwtext.client.widgets.Panel;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.ListIterator;
/**
 *
 * @author veerraju
 */
public class TreeMainEntryPoint  implements EntryPoint {
   public Tree tree ;
/**
The entry point method, called automatically by loading a
module
that declares an implementing class as an entry-point
*/
public void onModuleLoad() {
 tree = new Tree();
tree.setWidth(10px);
 Panel p1=new Panel();
 p1.add(tree);
 p1.setTitle(Tree Structure);
 p1.setBorder(true);
 p1.setPaddings(5);
 p1.setSize(250,500);
 p1.setAutoScroll(true);
 RootPanel.get().add(p1);
// Create an asynchronous callback to handle the result.
   final AsyncCallback callback = new AsyncCallback() {
public void onSuccess(Object result) {
ArrayList pal1=(ArrayList)result;
 ListIterator li1=pal1.listIterator();
 while(li1.hasNext()){
  String code=(String)li1.next();
  String name=(String)li1.next();
  String parent=(String)li1.next();
  if(parent.equals()){
  String count=getChildCount(pal1,code);
  Window.alert(count);
  if(Integer.parseInt(count)0)
  {
  TreeItem i1=new TreeItem(name);
  Window.alert(name);
  getSubNodes(i1,pal1,code);
  tree.addItem(i1);
  }
  else
  {
  tree.addItem(name);
  }
  }
 }
}
   public void onFailure(Throwable caught) {
 Window.alert(Communication failed);
}
public String getChildCount(ArrayList a,String parent)
{
int i=0;
Iterator j=a.iterator();
while(j.hasNext())
{
String code=(String)j.next();
String name=(String)j.next();
String parent1=(String)j.next();
if(parent1.equals(parent)) i=i+1;
}

return new Integer(i).toString();
}
public void getSubNodes(TreeItem i1,ArrayList a,String
parent)
{

ListIterator j=a.listIterator();
while(j.hasNext())
{
String code=(String)j.next();
  String name=(String)j.next();
  String parent1=(String)j.next();
  if(parent1.equals(parent)){
  String count=getChildCount(a,code);
  if(Integer.parseInt(count)0)
  {
  TreeItem i2=new TreeItem(name);
  Window.alert(i2.toString());
  getSubNodes(i2,a,code);
  i1.addItem(i2);

  }
  else
  {
  i1.addItem(name);
  }
  }
}

}

};

   getService().getTree(callback);

}
public static TreeServiceAsync getService(){
// Create the client proxy. Note that although you are
creating the
// service interface proper, you cast the result to the
asynchronous
// version of
// the interface. The cast is always safe because the
generated proxy
// implements the asynchronous interface automatically.
TreeServiceAsync service = (TreeServiceAsync) GWT.create
(TreeService.class);
// Specify the URL at which our service implementation is
running.
// Note that the target URL must reside on the same domain and
port from
// which the host page was served.
//
ServiceDefTarget endpoint = (ServiceDefTarget) service;
String moduleRelativeURL = GWT.getModuleBaseURL() +
treeservice;

Re:

2009-02-08 Thread Shawn Brown

Do you have the Spring jar in your classpath ( MyApplication-shell)

I have never run spring hosted.  I run my app hosted but specify the
server that I know I have spring configured on.  Let me know if it
works.

Shawn

On Mon, Feb 9, 2009 at 3:20 PM, GWT GWT rdforj...@gmail.com wrote:
 Hi ,
 I am new in GWT.
 I am trying to develp an application using GWT+Spring .

 following  are application code

 1) MyApplication .java

 package com.client;
 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.rpc.ServiceDefTarget;
 import com.google.gwt.user.client.ui.*;

 // Referenced classes of package csw.client MyService, MyServiceAsync
 public class MyApplication implements EntryPoint {
 public MyApplication() {
 }
 public void onModuleLoad() {
 final Label label = new Label();
 final MyServiceAsync svc = (MyServiceAsync)
 GWT.create(com.client.MyService.class);
 ServiceDefTarget endpoint = (ServiceDefTarget) svc;
 endpoint.setServiceEntryPoint(services/myService);
 final AsyncCallback callback = new AsyncCallback() {
 public void onSuccess(Object result) {
 label.setText(result.toString());
 }
 public void onFailure(Throwable ex) {
 label.setText(ex.toString());
 }
 };
 Button button = new Button(Click ME);
 button.addClickListener(new ClickListener() {
 public void onClick(Widget w) {
 svc.myMethod(Do Something, callback);
 }
 });
 RootPanel.get(testing).add(button);
 RootPanel.get(testing2).add(label);
 }
 }



 Myapplication.html


 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 html
   head
 meta http-equiv=content-type content=text/html; charset=UTF-8

 titleMyApplication/title

 script type=text/javascript language=javascript
 src=com.MyApplication.nocache.js/script
   /head
   body

 iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1'
 style=position:absolute;width:0;height:0;border:0
 /iframe
 table align=center
  trtd id=testing/td
  td id=testing2/td
  /tr
  /table
   /body
 /html

 Myapplication.gwt.xml

 module
   !-- Inherit the core Web Toolkit stuff.--
   inherits name='com.google.gwt.user.User'/

   !-- Inherit the default GWT style sheet.  You can change   --
   !-- the theme of your GWT application by uncommenting  --
   !-- any one of the following lines.--
   inherits name='com.google.gwt.user.theme.standard.Standard'/
   !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
   !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --
   !-- Other module inherits  --
   !-- Specify the app entry point class. --
   entry-point class='com.company.client.MyApplication'/

   !-- Specify the application specific style sheet.  --
   stylesheet src='MyApplication.css' /

 /module


 when I run  MyApplication-shell  command

 I got click me button.
 But when i click on click me button I got following exception.

 [WARN] StandardContext[]Error loading WebappClassLoader
   delegate: false
   repositories:
 -- Parent Classloader:
 sun.misc.launcher$appclassloa...@11b86e7
  org.springframework.web.servlet.DispatcherServlet
 java.lang.ClassNotFoundException:
 org.springframework.web.servlet.DispatcherServlet
  at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
  at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
  at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:964)
  at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
  at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
  at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
  at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
  at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
  at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at
 

[gwt-contrib] [google-web-toolkit commit] r4668 - trunk/dev/core/src/com/google/gwt/dev/shell

2009-02-08 Thread codesite-noreply

Author: amitman...@google.com
Date: Sun Feb  8 13:14:33 2009
New Revision: 4668

Modified:
trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java

Log:
Simple patch to fix the trunk build breakage.

Patch by: amitmanjhi
Review by: jat (TBR)



Modified:  
trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java
==
--- trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java   
 
(original)
+++ trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java   
 
Sun Feb  8 13:14:33 2009
@@ -673,7 +673,7 @@
   * class is loaded.
   */
  if (!classRewriter.isJsoIntf(className)) {
-  CompilationUnit unit = getUnitForClassName(className);
+  CompilationUnit unit =  
getUnitForClassName(canonicalizeClassName(className));
if (unit != null) {
  toInject.push(unit);
}

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



[gwt-contrib] Re: Doing AOP, Dojo style

2009-02-08 Thread Miroslav Pokorny
Hello Jarrod

I have implemented an IOC and AOP framework for GWT - rocket-gwt -
everything is defined in a Spring like xml file and the factory realised at
runtime via a generator.

I am however after looking back not convinced of the need for AOP in a GWT
environment because of the extra crap that is needed to support the idiom.

Basically the following operations need to be supported to emulate the AOP
alliance interfaces.

   - Unwrapping parameters into an array.
   - Invoking interceptors passing the array of parameters.
   - At the end of the interceptor chain one needs an adapter to invoke the
   original method after re-wrapping the parameters.

Attempting to emulate the AOP alliance interfaces ( my versions are almost
identical copy with minor diferences - eg I pass the method name instead of
java.lang.ref.Method instances) adds a lot of bloat because of the need to
generate classes to support for each and every targetted class. Any solution
that attempts to emulate reflection for the GWT runtime will result in the
same need for generated types. If you want look at my tests after turning
the compiler option to keep generated classes and you can take a look at
what im describing above.

Implementating a Spring like IOC container with support for all the basic
interfaces (InitializingBean, FactoryBean etc ) with support for all the
different lifecycle interfaces also requires a lot of generated classes.
Again take a look at the generated classes for further details.

To reduce the noise one needs to chop out or simplify features
considerably. But then again who wants to write an interceptor that doesnot
have access to the target method arguments, types or name ? Im not convinced
of the value in such a case.

hth

On Mon, Feb 9, 2009 at 6:11 AM, Arthur Kalmenson arthur.k...@gmail.comwrote:


 Hello Jarrod,

 If you're looking for a Dependency Injection framework for the client
 side, look no further then Google GIN:
 http://code.google.com/p/google-gin/. It's essentially a Guice
 implementation on the client side. Method interception, i.e. AOP, is
 planned: http://code.google.com/p/google-gin/wiki/GuiceCompatibility.

 --
 Arthur Kalmenson



 On Sun, Feb 8, 2009 at 1:27 PM, jarrod jarrod.carl...@gmail.com wrote:
 
  I'm a huge fan of GWT, but I'm also a big fan of development
  methodologies, like Inversion of Control and Aspect-Oriented
  Programming.
 
  IoC and AOP are two concepts I've struggled to work into the GWT
  framework since day one, with AOP being a bit more difficult to
  achieve than IoC, in my opinion.
 
  I recently came across the Dojo Toolkit, which includes, among other
  things, a facility for advising your code, AOP style:
  http://svn.dojotoolkit.org/src/tags/release-1.2.3/dojox/lang/aspect.js
 
  After digging into it, it appears to take advantage of the dynamic
  nature of the JavaScript language, swapping out implementations of
  advised methods at run time with wrapper functions.
 
  All-in-all, I think this is a rather brilliant approach, and it's
  something I'd love to see supported in GWT. The only problem I see is
  how to go about crossing that dynamic bridge that, at first glance,
  appears to be the kind of thing Java and GWT might not work well
  with.
 
  Of course, deferring to native code implementation is an option, but
  that seems to defeat the purpose of the compiler's advantages. Any
  suggestions on this?
  
 

 



-- 
mP

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