Re: Problems with 1.7.1 -noserver hosted mode on Linux

2009-11-16 Thread bysse
I've managed to replicate the problem in a small project. As soon as i
add the richfaces filter to web.xml it stops working from the hosted
mode browser. It still works in FF though...

On Nov 5, 1:22 pm, bysse erik.byst...@gmail.com wrote:
 Thanks for the suggestions, i didn't receive any notification mail
 about the answers have to check my settings.

 @Jeff: I tried to run a test project and everything works fine. But on
 the real, the big multi-module project hosted mode doesn't work. I
 don't know what the difference between the projects are, i guess i
 have to investigate it further

 @mike_mac: I use the war dir. I tried to run it from command line. The
 results were the same.

 On Oct 29, 4:35 pm, mike_mac michael.mac...@gmail.com wrote:

  Its not the war vs maven webapp issue is it ? the eclipse plugin
  expects a war dir and doesn't work with the maven default dir
  (webapp) ... Try running it from the commandline manually setting the
  classpath to see if it works. If it does you can simply add it to your
  run/debug configurations as a Java Application.

  On Oct 28, 2:36 pm, Jeff Chimene jchim...@gmail.com wrote:

   The problem may be that .16 point release doesn't play well w/ GWT. The
   symptoms are usually that the debugger doesn't stop at a breakpoint, not
   that the entry point is never called. I think you have to downgrade to at
   least .14 Search this list for the JDK version. It's been discussed 
   several
   times.

   On Wed, Oct 28, 2009 at 2:33 AM, bysse erik.byst...@gmail.com wrote:

I'm having huge problems getting hosted mode to work underLinuxwith
the -noserverflag. The module entry point is never called and no
error message is show / logged. I've tried to start it through both
the maven plugin and the eclipse plugin with the same results.

The project works fine in a windows environment with the same setup.
So there must be something wrong with theLinuxSDK. Does anyone have
similar problems?

My setup is:
 Linuxx64 (Ubuntu 9.04)
 Java 1.6.0.16 32bit
 GWT SDK 1.7.1
 Eclipse 3.5
  Google Plugin 1.1.2
 JBoss 4.2.2 and 4.2.3
 Firefox 3.0.14



--

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




Re: Too much is happening (the events are crowding the bus)?

2009-11-16 Thread Thomas Broyer


On Nov 15, 3:19 am, slind...@gmail.com slind...@gmail.com wrote:
 I am attempting to implement the EventBus pattern and I find myself
 creating a LOT of Events (extending GwtEvent). I'll try to illustrate
 what I mean with my Car object. I have a list of cars and a button
 called Add Car. This button has a ClickHandler attached which will
 fire a AddCarEvent.

 This AddCarEvent in turn triggers the display of a dialog where the
 user can enter details of the car like make, model, etc. This dialog
 naturally has a button called Save with another ClickHandler
 attached. This ClickHandler fires a new event slightly different from
 AddCarEvent since we now have some details of the car, so I'm calling
 this event AddNewCarEvent. The event bus has a listener that triggers
 when this event is fired and makes an asynchronous call to the server
 with the details of the new car. The server returns the newly created
 Car object (or id of it), and a new CarAddedEvent is created (this
 event in turn might trigger a LoadCarsEvent to refresh the list of
 cars).

 I figured I can save myself from the AddNewCarEvent by adding
 properties like model, make etc to the AddCarEvent object. If they
 are set I'll make the async call, if not I'll display the dialog. This
 saves one Event class but I still think there must be some better way.
 This is just one object, and one simple action; but it quickly gets
 out of hand when adding more objects and actions (ie. a Car could have
 StartCar, StartNewCar, CarStarted, StopCar, StopNewCar, CarStopped
 events and so on..).

 I hope this doesn't sound too crazy, and I hope someone has some ideas
 to improve and perhaps simplify this, unless this actually is a
 natural side effect of this pattern?

In our app, the dialog would do the RPC call (and handle errors –
though not failures, which go to a global handler–) and fire an event
on success. Now, you also have to decide if you really need the
granularity of a CarAddedEvent compared to a
CarAddedUpdatedOrDeletedEvent of some sort.

My rule of thumb: do not over-engineer; only introduce an event when
you *need* it, not when you think you might need it in the future,
perhaps, depending on how you code the rest of your app.
For instance, if you know your user preferences dialog will only be
trigger by a single button, don't do an event for it, just call your
dialog from the button's click handler. Later on, if you happen to
have to call points for the user preferences, then refactor your code
to add an event.

--

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




Re: GWT Chat

2009-11-16 Thread gwtfanb0y
I would recommend Comet, with this technology you can push serialized
messages from the Server to
each registered Client. Here is an other fine project:
http://code.google.com/p/gwt-comet-streamhub/



On 15 Nov., 14:01, Jim jimmy.verhee...@gmail.com wrote:
 hi,

 I'd like  make a chat using GWT  1.7 but gwt doesn't allow the use of
 socket ? Have you got any idea for the communications client/server?
 i've tested the gwt-socket but the project is not active ... i've
 heard the library comet could help me, what do you think about it ?

 Thx a lot

--

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




Re: How to handle the returned response from the server

2009-11-16 Thread gwtfanb0y
You can use a HTMLPanel to show your (HTML)result:

HTMLPanel(event.getResults())

http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/FormSubmitCompleteEvent.html
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/HTMLPanel.html




On 15 Nov., 00:19, Jey jeyaseelansuku...@gmail.com wrote:
 I am trying to post data to the server using FormPanel widget. In my
 case the server returns a jsp page,so can anyone tell me how should i
 handle the results in my page so that i can display the returned jsp
 page.
 public void onSubmitComplete(
         FormSubmitCompleteEvent event)
     {
               what should i do here???
     }

 and also how can i associate an entry point class to the resulting jsp
 page???

--

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




Re: Does public path=X / still work in GWT 1.6/7 ?

2009-11-16 Thread Thomas Broyer

On Nov 14, 6:36 pm, Steve C st...@steveclaflin.com wrote:
 I'm having trouble getting the above to work in a gwt.xml file, as in:

   source path=entrypoint /
   public path=webresources /

 where my file structure is:

 src/com/xyz/gwt/myapp/ --
  -- entrypoint/ --
  -- -- MyApp.java
  -- webresources/ --
  -- -- MyApp.css

What's your problem? To answer the question from the message subject,
yes public/ still works. that's how GWT themes work.

--

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




How to create user web pages

2009-11-16 Thread Sanjeev Kulkarni
Hi all,
Don't know whether my post will be appropriate to this forum! but I
have become helpless so I am posting here.Please excuse me if not
appropriate.

I want to make a user web pages for all the users who registers into
my application. The user can view his web page with a link like below:

http://example.com/username

I have stored all user information into a table.But not getting how to
create a individual files (either .html or .jsp) to retrieve his
information. I wrote a .jsp file in which I am displaying the user
information based on the search criteria, but now I want display user
web page explicitly without searching like linkedin public profile
pages.

Any idea will be greatly appreciated.Thanks.
Sanjeev

--

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




Re: GWT Chat

2009-11-16 Thread Jimmy Verheecke
Thx ! Have a good day

2009/11/16 gwtfanb0y siegfried.b...@googlemail.com

 I would recommend Comet, with this technology you can push serialized
 messages from the Server to
 each registered Client. Here is an other fine project:
 http://code.google.com/p/gwt-comet-streamhub/



 On 15 Nov., 14:01, Jim jimmy.verhee...@gmail.com wrote:
  hi,
 
  I'd like  make a chat using GWT  1.7 but gwt doesn't allow the use of
  socket ? Have you got any idea for the communications client/server?
  i've tested the gwt-socket but the project is not active ... i've
  heard the library comet could help me, what do you think about it ?
 
  Thx a lot

 --

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




--

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




Re: how large of your GWT compiled code? My one is 850K

2009-11-16 Thread luisfpg
Our app is still 60-70% complete and already has 2.1MiB of obfuscated
code. Pretty code is 14+MiB.
However we've developed several components and widgets, and we have a
lot of RemoteServices wich several (and sometimes complex) model
classes, which are transmitted over the wire.
We will still further investigate the GWT 2.0's runAsync(), which
should make things better.
Gzipping is also a must.
Just to point out, someone said that changing collection interfaces to
implementations (i.e.: List to ArrayList) in remote services /
serializable classes would reduce the code size. We tried it, and
reduced 100k. Not to ignore, but would make the code largely
unmaintainable, so we won't do it.
Any further tips on reducing code size would be nice.
--
Luis Fernando Planella Gonzalez

--

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




Re: Announcing the Google Plugin for Eclipse 1.1.0

2009-11-16 Thread shahid
Thanks misterln2
@Ranjeev yes I am using the current build

On Nov 13, 10:19 am, misterln2 mister...@googlemail.com wrote:
 the changes happened from rev 6641 to 6642

 a bunch of registerHandler(..) statements got removed

 i just tried it: copying those statements back to the current
 DevModeBase.java was sufficient to compile the trunk

--

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




Re: GWT Chat

2009-11-16 Thread Lúcio Camilo
If u are using App Engine, so you can´t open sockets. Pay attention to this.

2009/11/16 Jimmy Verheecke jimmy.verhee...@gmail.com

 Thx ! Have a good day

 2009/11/16 gwtfanb0y siegfried.b...@googlemail.com

 I would recommend Comet, with this technology you can push serialized
 messages from the Server to
 each registered Client. Here is an other fine project:
 http://code.google.com/p/gwt-comet-streamhub/



 On 15 Nov., 14:01, Jim jimmy.verhee...@gmail.com wrote:
  hi,
 
  I'd like  make a chat using GWT  1.7 but gwt doesn't allow the use of
  socket ? Have you got any idea for the communications client/server?
  i've tested the gwt-socket but the project is not active ... i've
  heard the library comet could help me, what do you think about it ?
 
  Thx a lot

 --

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



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


--

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




Re: Problem in AsyncCallback call, returned with success

2009-11-16 Thread Ricardo Cardoso / Gmr
Hello Sri,

It was a great example.
I changed my code to a real asynchronous call and it worked. I just
moved certain code lines to the success method of the asynchronous
call. Before, I was trying to run that lines before the call was
finished, as you must know! :)

Thanks for your good help.


On Nov 15, 6:42 am, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
 I think you should go through the discussion in this thread 
 -http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

 --Sri

 2009/11/12 Ricardo Cardoso / Gmr rcc@gmail.com

  Hello,

  I'm getting a very strange situation. I get the following error in
  log, when I do an AsyncCallback call:

   Uncaught JavaScript exception [_1 has no properties] in
 http://localhost:/servoeasy/sc/modules/ISC_Core.js, line 773

  But the call is returned with success (I get the user data that I
  searched in server). However, the code stops running.

  To be more specific, in a login window, when a user clicks in a
  button, an addClickHandler calls the method:

  private void loadSeUser(String email, String pw) {
                 System.err.println(Sending to loadSeUserByLogin:  + email
  + ,  +
  pw);

   GetInformationService.Util.getInstance().loadSeUserByLogin(email,
  pw,
                                 new AsyncCallbackSeUser() {

                                        �...@override
                                         public void onFailure(Throwable
  caught) {
                                                 System.err.println(Error in
  connection to loadSeUserByLogin);
                                                 SC.say(caught.getMessage());
                                         }

                                        �...@override
                                         public void onSuccess(SeUser result)
  {
                                                 setUser(result);
                                                 SeUser us = getUser();

   System.err.println(loadSeUser()- Received user: 
                                                                 +
  us.getFname());
                                         }

                                 });
         }

  I got the log success message loadSeUser()- Received user: X.
  But the code don't return to addClickHandler following code line.
  Stops here!
  I only get that error log I said, just after control log message
  Sending to loadSeUserByLogin: x...@xx.com, PW.

  More strange than that is the fact this happens only in first time the
  user clicks. After one or two seconds, if he clicks again, everything
  runs OK, the code returns to addClickHandler without problems.

  Any idea?

  --

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

--

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




Re: How to create user web pages

2009-11-16 Thread gwtfanb0y
A solution - without modifying the server redirects - is to use one
url with a parameter like this:

http://example.com/login?user=sanjeev

The servlet extracts the username, load the modeldata from the
database for it and sent it back
to the client.


On 16 Nov., 11:40, Sanjeev Kulkarni sanjeev...@gmail.com wrote:
 Hi all,
 Don't know whether my post will be appropriate to this forum! but I
 have become helpless so I am posting here.Please excuse me if not
 appropriate.

 I want to make a user web pages for all the users who registers into
 my application. The user can view his web page with a link like below:

 http://example.com/username

 I have stored all user information into a table.But not getting how to
 create a individual files (either .html or .jsp) to retrieve his
 information. I wrote a .jsp file in which I am displaying the user
 information based on the search criteria, but now I want display user
 web page explicitly without searching like linkedin public profile
 pages.

 Any idea will be greatly appreciated.Thanks.
 Sanjeev

--

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




Re: How to create user web pages

2009-11-16 Thread Sanjeev Kulkarni
Thanks for the answer. This solution I already did and is working
fine, but know I want to get the user web page by explicit URL like
http://example.com/sanjeev.html
Any idea???



On Nov 16, 5:09 pm, gwtfanb0y siegfried.b...@googlemail.com wrote:
 A solution - without modifying the server redirects - is to use one
 url with a parameter like this:

 http://example.com/login?user=sanjeev

 The servlet extracts the username, load the modeldata from the
 database for it and sent it back
 to the client.

 On 16 Nov., 11:40, Sanjeev Kulkarni sanjeev...@gmail.com wrote:

  Hi all,
  Don't know whether my post will be appropriate to this forum! but I
  have become helpless so I am posting here.Please excuse me if not
  appropriate.

  I want to make a user web pages for all the users who registers into
  my application. The user can view his web page with a link like below:

 http://example.com/username

  I have stored all user information into a table.But not getting how to
  create a individual files (either .html or .jsp) to retrieve his
  information. I wrote a .jsp file in which I am displaying the user
  information based on the search criteria, but now I want display user
  web page explicitly without searching like linkedin public profile
  pages.

  Any idea will be greatly appreciated.Thanks.
  Sanjeev

--

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




exception while running rpc procedure

2009-11-16 Thread HDayi
hi there, iam getting the following exception while trying to run the
rpc procedure.
running code is following the stack trace:

The server is running at http://localhost:8080/
16.Kas.2009 13:29:51
com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: [1258378191128000] javax.servlet.ServletContext log: Exception
while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
tr.bel.kocasinan.client.KocasinanSrv.benString(java.lang.String)'
threw an unexpected exception: java.lang.ExceptionInInitializerError
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
(RPC.java:360)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:546)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:166)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:313)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)
Caused by: java.lang.ExceptionInInitializerError
at com.mysql.jdbc.NonRegisteringDriver.connect
(NonRegisteringDriver.java:282)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at tr.bel.kocasinan.server.KocasinanSrvImpl.benString
(KocasinanSrvImpl.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:527)
... 27 more
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission modifyThreadGroup)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at com.google.appengine.tools.development.DevAppServerFactory
$CustomSecurityManager.checkPermission(DevAppServerFactory.java:139)
at com.google.appengine.tools.development.DevAppServerFactory
$CustomSecurityManager.checkAccess(DevAppServerFactory.java:166)
at java.lang.ThreadGroup.checkAccess(Unknown Source)
at java.lang.Thread.init(Unknown Source)
at java.lang.Thread.init(Unknown Source)
at java.util.TimerThread.init(Unknown Source)
at java.util.Timer.init(Unknown Source)
at java.util.Timer.init(Unknown Source)
at com.mysql.jdbc.ConnectionImpl.clinit(ConnectionImpl.java:208)
... 36 more


the code i am trying to run

public String 

Re: General question about project architecture.

2009-11-16 Thread Davis Ford
I'm doing this now.  I set the project up this way several months ago and it
works great for me.  The only real con is double compile-time, but I don't
care about that.  I even have a feature where I can show a view of one
application inside another, which is very cool.

Here's how I set it up -- http://zenoconsulting.wikidot.com/blog:16

http://zenoconsulting.wikidot.com/blog:16Regards,
Davis

On Sat, Nov 14, 2009 at 8:24 AM, rolf r...@squarebox.co.uk wrote:

 What's the best way to create a web app with multiple entry points but
 a lot of common code (eg. common widgets and dialogs) shared between
 them, as well as a common server back end? Currently I'm creating
 multiple modules and multiple HTML pages within a single web app but
 I'm also worried about scalability. The different entry points
 correspond to different workflows depending on what the user is trying
 to do, or perhaps customised versions of the interface for particular
 customers.

 I guess I should probably have a single module and top level entry
 point and then switch between interfaces from there but that will
 involve a lot of code refactoring.

 -Rolf

 On Nov 14, 11:50 am, Sripathi Krishnan sripathi.krish...@gmail.com
 wrote:
  Multiple modules is the wrong way to use GWT.
 
  GWT highly recommends using a single module. Most of the performance
  optimizations GWT does relies on the fact that you have a single,
 monolithic
  module. Plus, as you observed, the time to build your application keeps
  growing as you add more modules, so it doesn't scale well.
 
  Part of the problem is deciding whether you are building a Web App or a
  Web Site. Lots of
  discussions
 http://www.clyral.com/za/pages/web/website_vs_webapplication.htmlcan
  be found on this topic.
 
  GWT is great if you want to build a Web App. Typically, there is only a
  single HTML page, and different screens are manipulated on the client
 side
  using DOM. But if you are building a traditional, multi-page Web Site
  (nothing wrong with that), then GWT is not for you. You are better off
 using
  one of the many javascript libraries.
 
  So, lets assume you decide you want to build a web-app, and want to use
 GWT
  to do so. To get started, stick to a single HTML page with a single GWT
  Module/Entry Point. Adding multiple screens is adding a new FlowPanel
 or
  Composite with your content. Or perhaps, you have all screens built
 into
  the original HTML page, and you just hide/unhide the divs based on user
  action.
 
  The above approach works well if you have a few (say less than 10)
 screens.
  If your application grows bigger and more complex, you would want to
 start
  following some established patterns. The MVP pattern has been touted as
 the
  way to build web-apps. Just do a google search, there are a lot of
  articles on that subject. Also, catch Ray Ryan's talk on GWT Architecture
  and best practices
 http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPr
 
  --Sri
 
  2009/11/13 David C. Hicks dhi...@i-hicks.org
 
 
 
   Specifically, I'm curious about the use of GWT Modules in a project.
 
   Each time we have a new screen to create, we have been adding a new
   module to our project.  Of course, with each new module, there is an
   additional build cycle to generate the Javascript for that module.
  What
   I'm wondering is if this is normal, or does it make more sense to try
 to
   build up whole applications in a single module and perhaps keep the
   build time down?  Each new module we add appears to increase our build
   time by about 1.5 minutes.  It won't be long and this will be way
 beyond
   painful.
 
   Any thoughts?
   Thanks,
   Dave
 
   --
 
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=.

 --

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





-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 

Re: GWT Chat

2009-11-16 Thread Prempena
I've tried to find a solution with App Engine for weeks without any
success. Server push is not only useful for Chat. It can be used to
inform users of some events coming from the Server.

This is issue is referenced at a good place in the issue list:
http://code.google.com/p/googleappengine/issues/detail?id=377

If someone is able to find a good solution, I'm interested too.

--

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




Re: GWTTestCase + Spring

2009-11-16 Thread Davis Ford
Hi, I personally wouldn't write too many test cases like this unless you are
just trying to ensure that everything is wired together.  Even then, I'd
probably use something like Selenium to record the test from the UI and play
it back.

Alternatively, you might consider employing the MVP pattern.  This would
allow you to test all of your UI logic in standard JUnit, leaving just the
dumb GUI display code untested.  You could choose to test the latter with a
GWTTestCase if you desired.  Once I started doing this, I stopped using
GWTTestCase altogether.  I unit test all my UI logic with just JUnit and
EasyMock.  My tests (500+) finish in about 20 s.

On Fri, Nov 13, 2009 at 2:28 PM, dadodev dado...@gmail.com wrote:

 I'm working on a GWT (1.7) application that uses Spring and Hibernate
 on the server side that is secured with SpringSecurity and CAS.
 I want to create some client side tests using GWTTestCase to test the
 UI and Asynch behavior of the application.

 I have two problems/questions regarding GWTTestCase:
 1) is it possible to customize the web.xml used by the GWT shell
 started by GWTTestCase? If yes, how? I need to customize the web.xml
 used by GWTTestCase to disable the application security mechanism in
 my tests, otherwise I cannot call the remote services which are
 secured.
 2) it's my understanding that the code I write for a GWTTestCase is
 like GWT client code, ie. I cannot use non-serializable classes: am I
 correct? If I'm wrong, is there a way to get to the Spring context in
 a GWTTestCase?

 Thanks

 --

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





-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

--

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




Re: embedding into another site

2009-11-16 Thread Davis Ford
What exactly is the problem you encountered?  I just embedded an app I made
with GWT into another site on another domain in an IFRAME.  It worked fine
for me.  If your app calls remote services, they have to hit the same server
that served the HTML/Js/CSS.

On Fri, Nov 13, 2009 at 2:45 PM, Davidj2k david...@gmail.com wrote:

 I am fairly new to GWT and I am trying to create an application that
 can be embedded into another site easily such as the other site
 identifying a div to place my application in, the problem I have run
 into is cross domain issues, I have looked at using an IFrame but ran
 into problems with that as well because I am needing to have access to
 javascript objects I am creating using GWT and GWTExport, I have seen
 that I should be able to turn on xs in the gwt.xml file but that does
 not seem to do anything and if it does I am unaware of how it is doing
 it I read there should be an XS javascript file but I do not have that
 when I compile the application, any example sites anybody could point
 me to would be greatly appreciated.

 --

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





-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

--

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




Comet and GWT

2009-11-16 Thread iaio81
Hi all,
I need implementing comet with my GWT application and I was reading
about Rocket-GWT. Can I decide when send updates to client ? And if
so, how?
How can Rocket GWT avoid too many connections opened at the same time?

Thanks all

--

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




Re: Too much is happening (the events are crowding the bus)?

2009-11-16 Thread Ian Bambury
As Thomas says, only introduce an event when needed.

Also, remember that there is no point to an event if nothing else is
interested.

If you only have one list of cars, then a CarAdded event is not needed since
the list can deal with the server response directly. The same is true of the
other events (and maybe also StartCar, StartNewCar, CarStarted, StopCar,
StopNewCar, CarStopped if I had any idea what they were for).

So in the scenario you explained, if the dialog is a popup, then since you
haven't mentioned any other page, there is, as yet, no need for any events
at all.

Now if you had a page for adding cars and another page listing cars (on,
say, another tab) then there's a need for an event.

In an optimistic UI, when the Add page submits the 'add' you fire a CarAdded
event and the list (and anything else subscribed to this event) will respond
accordingly. If, subsequently, the server reports that the add failed,
you'll need an undo event to. More work, but it gives a more responsive feel
for the user.

In a pessimistic (traditional) UI, when the Add page, when the server
reports that the add was successful, you fire a CarAdded event so that the
list can respond. Easier, but the user sees a lag between pressing the
button and seeing the update, and if they switch quickly to the list, their
new entry might take a few moments to turn up.

If, somewhere in my app, I do something, I don't just tell the world in the
desperate and pathetic hope that maybe somewhere, sometime, something or
someone might take an interest in the boring, mundane minutiae of what I'm
doing. An event bus is not the programming equivalent of Twitter :-) My
pages are more of the busy executive, working efficiently on their own
initiative as far as possible, and sending out memos on a strictly 'need to
know' basis as well as responding to incoming ones. Or something like that.

Ian

http://examples.roughian.com


2009/11/16 Thomas Broyer t.bro...@gmail.com



 On Nov 15, 3:19 am, slind...@gmail.com slind...@gmail.com wrote:
  I am attempting to implement the EventBus pattern and I find myself
  creating a LOT of Events (extending GwtEvent). I'll try to illustrate
  what I mean with my Car object. I have a list of cars and a button
  called Add Car. This button has a ClickHandler attached which will
  fire a AddCarEvent.
 
  This AddCarEvent in turn triggers the display of a dialog where the
  user can enter details of the car like make, model, etc. This dialog
  naturally has a button called Save with another ClickHandler
  attached. This ClickHandler fires a new event slightly different from
  AddCarEvent since we now have some details of the car, so I'm calling
  this event AddNewCarEvent. The event bus has a listener that triggers
  when this event is fired and makes an asynchronous call to the server
  with the details of the new car. The server returns the newly created
  Car object (or id of it), and a new CarAddedEvent is created (this
  event in turn might trigger a LoadCarsEvent to refresh the list of
  cars).
 
  I figured I can save myself from the AddNewCarEvent by adding
  properties like model, make etc to the AddCarEvent object. If they
  are set I'll make the async call, if not I'll display the dialog. This
  saves one Event class but I still think there must be some better way.
  This is just one object, and one simple action; but it quickly gets
  out of hand when adding more objects and actions (ie. a Car could have
  StartCar, StartNewCar, CarStarted, StopCar, StopNewCar, CarStopped
  events and so on..).
 
  I hope this doesn't sound too crazy, and I hope someone has some ideas
  to improve and perhaps simplify this, unless this actually is a
  natural side effect of this pattern?

 In our app, the dialog would do the RPC call (and handle errors –
 though not failures, which go to a global handler–) and fire an event
 on success. Now, you also have to decide if you really need the
 granularity of a CarAddedEvent compared to a
 CarAddedUpdatedOrDeletedEvent of some sort.

 My rule of thumb: do not over-engineer; only introduce an event when
 you *need* it, not when you think you might need it in the future,
 perhaps, depending on how you code the rest of your app.
 For instance, if you know your user preferences dialog will only be
 trigger by a single button, don't do an event for it, just call your
 dialog from the button's click handler. Later on, if you happen to
 have to call points for the user preferences, then refactor your code
 to add an event.

 --

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




--

You received this message 

Re: How to create user web pages

2009-11-16 Thread Davis Ford
You can do this with the fantastic UrlRewrite filter.  I set my site up this
way to make RESTful style URLs.  There's an example how to do this here:
http://zenoconsulting.wikidot.com/blog:16



On Mon, Nov 16, 2009 at 7:52 AM, Sanjeev Kulkarni sanjeev...@gmail.comwrote:

 Thanks for the answer. This solution I already did and is working
 fine, but know I want to get the user web page by explicit URL like
 http://example.com/sanjeev.html
 Any idea???



 On Nov 16, 5:09 pm, gwtfanb0y siegfried.b...@googlemail.com wrote:
  A solution - without modifying the server redirects - is to use one
  url with a parameter like this:
 
  http://example.com/login?user=sanjeev
 
  The servlet extracts the username, load the modeldata from the
  database for it and sent it back
  to the client.
 
  On 16 Nov., 11:40, Sanjeev Kulkarni sanjeev...@gmail.com wrote:
 
   Hi all,
   Don't know whether my post will be appropriate to this forum! but I
   have become helpless so I am posting here.Please excuse me if not
   appropriate.
 
   I want to make a user web pages for all the users who registers into
   my application. The user can view his web page with a link like below:
 
  http://example.com/username
 
   I have stored all user information into a table.But not getting how to
   create a individual files (either .html or .jsp) to retrieve his
   information. I wrote a .jsp file in which I am displaying the user
   information based on the search criteria, but now I want display user
   web page explicitly without searching like linkedin public profile
   pages.
 
   Any idea will be greatly appreciated.Thanks.
   Sanjeev

 --

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





-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

--

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




Re: embedding into another site

2009-11-16 Thread Davidj2k
Well, embedding using an IFRAME does work for getting the site
embedded into another but having access to objects to update that page
is where my problem is, lets say I have a simple function that sends
an alert like this

import org.timepedia.exporter.client.Export;
import org.timepedia.exporter.client.ExportPackage;
import org.timepedia.exporter.client.Exportable;

import com.google.gwt.user.client.Window;

@Export
@ExportPackage(mypackage)
public class Widget implements Exportable {

 @Export
 public void AlertWidget(String alerts)
 {
 Window.alert(alerts);
 }
}

Now I can use this code in javascript like this

var hello = new mypackage.Widget();
hello.AlertWidget('testing');


but the problem is that I cannot reference that from the page that has
my app embedded in it using an IFRAME



On Nov 16, 8:46 am, Davis Ford davisf...@zenoconsulting.biz wrote:
 What exactly is the problem you encountered?  I just embedded an app I made
 with GWT into another site on another domain in an IFRAME.  It worked fine
 for me.  If your app calls remote services, they have to hit the same server
 that served the HTML/Js/CSS.





 On Fri, Nov 13, 2009 at 2:45 PM, Davidj2k david...@gmail.com wrote:
  I am fairly new to GWT and I am trying to create an application that
  can be embedded into another site easily such as the other site
  identifying a div to place my application in, the problem I have run
  into is cross domain issues, I have looked at using an IFrame but ran
  into problems with that as well because I am needing to have access to
  javascript objects I am creating using GWT and GWTExport, I have seen
  that I should be able to turn on xs in the gwt.xml file but that does
  not seem to do anything and if it does I am unaware of how it is doing
  it I read there should be an XS javascript file but I do not have that
  when I compile the application, any example sites anybody could point
  me to would be greatly appreciated.

  --

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

 --
 Zeno Consulting, Inc.
 home:http://www.zenoconsulting.biz
 blog:http://zenoconsulting.wikidot.com
 p: 248.894.4922
 f: 313.884.2977

--

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




Re: GWT Chat

2009-11-16 Thread Blaze(tu)
Actually you can use socket via Flash or Java Applet.

try http://code.google.com/p/gwt-socket/

or the component in GWT Summer of Code
http://code.google.com/p/gwt-soc/wiki/SocketsForGWT_Report

On Nov 15, 9:01 pm, Jim jimmy.verhee...@gmail.com wrote:
 hi,

 I'd like  make a chat using GWT  1.7 but gwt doesn't allow the use of
 socket ? Have you got any idea for the communications client/server?
 i've tested the gwt-socket but the project is not active ... i've
 heard the library comet could help me, what do you think about it ?

 Thx a lot

--

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




Re: how large of your GWT compiled code? My one is 850K

2009-11-16 Thread Bakul
Hi,

Our app,  50 -55 % done so far, for one browser is nearly 1.6 MB
without gzip. And it has nearly 70 -80 RPC calls.

Luis, Question for you:
As you said your app is 2.1 MB of obfuscated, how is the preformance
and does it has any issue?

Question to all:
What is the max size that of GWT one module that a browser can handle
without any issue, specially IE 6, in our case :-( ?

Thanks,
Bakul.


On Nov 16, 6:08 am, luisfpg lfpg@gmail.com wrote:
 Our app is still 60-70% complete and already has 2.1MiB of obfuscated
 code. Pretty code is 14+MiB.
 However we've developed several components and widgets, and we have a
 lot of RemoteServices wich several (and sometimes complex) model
 classes, which are transmitted over the wire.
 We will still further investigate the GWT 2.0's runAsync(), which
 should make things better.
 Gzipping is also a must.
 Just to point out, someone said that changing collection interfaces to
 implementations (i.e.: List to ArrayList) in remote services /
 serializable classes would reduce the code size. We tried it, and
 reduced 100k. Not to ignore, but would make the code largely
 unmaintainable, so we won't do it.
 Any further tips on reducing code size would be nice.
 --
 Luis Fernando Planella Gonzalez

--

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




Re: Problems with 1.7.1 -noserver hosted mode on Linux

2009-11-16 Thread Jeff Chimene
The general trend seems to be that GWT no longer works reliably with the
xulrunner (which provides hosted mode support on Linux) in recent versions
ot Ubuntu.

If possible, please try GWT 2.0 MS2. It's quite stable, and has lots of
Shiny. Dropping xulrunner in place of OOPHM is really the way you want to go
for testing.


On Mon, Nov 16, 2009 at 1:08 AM, bysse erik.byst...@gmail.com wrote:

 I've managed to replicate the problem in a small project. As soon as i
 add the richfaces filter to web.xml it stops working from the hosted
 mode browser. It still works in FF though...

 On Nov 5, 1:22 pm, bysse erik.byst...@gmail.com wrote:
  Thanks for the suggestions, i didn't receive any notification mail
  about the answers have to check my settings.
 
  @Jeff: I tried to run a test project and everything works fine. But on
  the real, the big multi-module project hosted mode doesn't work. I
  don't know what the difference between the projects are, i guess i
  have to investigate it further
 
  @mike_mac: I use the war dir. I tried to run it from command line. The
  results were the same.
 
  On Oct 29, 4:35 pm, mike_mac michael.mac...@gmail.com wrote:
 
   Its not the war vs maven webapp issue is it ? the eclipse plugin
   expects a war dir and doesn't work with the maven default dir
   (webapp) ... Try running it from the commandline manually setting the
   classpath to see if it works. If it does you can simply add it to your
   run/debug configurations as a Java Application.
 
   On Oct 28, 2:36 pm, Jeff Chimene jchim...@gmail.com wrote:
 
The problem may be that .16 point release doesn't play well w/ GWT.
 The
symptoms are usually that the debugger doesn't stop at a breakpoint,
 not
that the entry point is never called. I think you have to downgrade
 to at
least .14 Search this list for the JDK version. It's been discussed
 several
times.
 
On Wed, Oct 28, 2009 at 2:33 AM, bysse erik.byst...@gmail.com
 wrote:
 
 I'm having huge problems getting hosted mode to work underLinuxwith
 the -noserverflag. The module entry point is never called and no
 error message is show / logged. I've tried to start it through both
 the maven plugin and the eclipse plugin with the same results.
 
 The project works fine in a windows environment with the same
 setup.
 So there must be something wrong with theLinuxSDK. Does anyone have
 similar problems?
 
 My setup is:
  Linuxx64 (Ubuntu 9.04)
  Java 1.6.0.16 32bit
  GWT SDK 1.7.1
  Eclipse 3.5
   Google Plugin 1.1.2
  JBoss 4.2.2 and 4.2.3
  Firefox 3.0.14
 
 

 --

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




--

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




Re: ie8 and spacing....

2009-11-16 Thread Davis Ford
Try to set up as little of this as possible in GWT/Java and do as much as
possible in CSS.  Browsers have CSS quirks...GWT won't help with that.  This
tool is very helpful for working out IE css issues:
http://www.my-debugbar.com/wiki/

On Sun, Nov 15, 2009 at 11:03 PM, golfdude padysr...@gmail.com wrote:


 GWT 1.7...

 I have an app which works fine in IE7 and Firefox 3. But in IE 8, none
 of the spacing ( vertical/horizontal panel ) is being recognized. Any
 thing special I need to set/do ?

 Thanks

 gd

 --

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





-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

--

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




GWT 2.0 Javascript IE Crash

2009-11-16 Thread Charlie M
Hi All,

I have been recently testing out GWT 2.0 currently from the 2.0 branch
of the SVN although I have also tried Milestone 2. My app works fine
in Chrome and Firefox in both development and hosted modes.

When I try and run it in IE 6, 7 or 8 it complains of Javascript
errors. It complains of an Invalid Argument on the finally
statement.

The generated code is below:

function
com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2
(jsFunction, thisObj, arguments){
  var initialEntry;
  initialEntry = com_google_gwt_core_client_impl_Impl_entryDepth++ ==
0;
  try {
return jsFunction.apply(thisObj, arguments);
  }
   finally {
initialEntry  (com_google_gwt_core_client_impl_SchedulerImpl_
$clinit__V() ,
com_google_gwt_core_client_impl_SchedulerImpl_runScheduledTasks__Lcom_google_gwt_core_client_JsArray_2Lcom_google_gwt_core_client_JsArray_2V
(com_google_gwt_core_client_impl_SchedulerImpl_FINALLY_1COMMANDS,
com_google_gwt_core_client_impl_SchedulerImpl_FINALLY_1COMMANDS));
--com_google_gwt_core_client_impl_Impl_entryDepth;
  }
}

Does anyone have any ideas.

Thanks,

Charlie M

--

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




Re: GWT 1.7.1 don't show app in hosted mode (Jetty bug: FULL head)

2009-11-16 Thread Rajeev Dayal
@Stephen: What platform are you on?

@Rodrigo: That sounds like a GXT-specific bug. Have you tried posting on
their forum?

2009/11/15 Stephen Graham sggraha...@gmail.com

 I am getting a similar error:
 Nov 15, 2009 7:24:24 PM com.google.apphosting.utils.jetty.JettyLogger
 info
 INFO: jetty-6.1.x
 Nov 15, 2009 7:24:25 PM com.google.apphosting.utils.jetty.JettyLogger
 info
 INFO: Started selectchannelconnec...@0.0.0.0:8080
 The server is running at http://localhost:8080/
 2009-11-15 14:24:25.396 java[58372:80f] [Java CocoaComponent
 compatibility mode]: Enabled
 2009-11-15 14:24:25.400 java[58372:80f] [Java CocoaComponent
 compatibility mode]: Setting timeout for SWT to 0.10
 Nov 15, 2009 7:24:25 PM
 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext
 disableTransportGuarantee
 INFO: Ignoring transport-guarantee for /* as the SDK does not
 support HTTPS.  It will still be used when you upload your
 application.
 Nov 15, 2009 7:24:25 PM
 com.google.apphosting.utils.jetty.AppEngineAuthentication
 $AppEngineAuthenticator authenticate
 INFO: Got /console.html but no one was logged in, redirecting.
 Nov 15, 2009 7:24:27 PM com.google.apphosting.utils.jetty.JettyLogger
 warn
 WARNING: handle failed
 java.io.IOException: FULL head
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
 (SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
 (BoundedThreadPool.java:442)
 Nov 15, 2009 7:24:27 PM com.google.apphosting.utils.jetty.JettyLogger
 warn
 WARNING: handle failed
 java.io.IOException: FULL head
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
 (SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
 (BoundedThreadPool.java:442)

 I am running from Eclipse Galileo, on a Mac, GWT 1.7.1, GXT 2.0.1.

 Does anyone know the name of the file that is keeping the cookies for
 the hosted mode browser?

 On Nov 2, 11:45 pm, Rodrigo rodrigoglsi...@gmail.com wrote:
  Hi,
 
  Same here.
 
  GXT does use cookies for storing theme related things.
 
  See:
 http://www.extjs.com/deploy/gxtdocs/com/extjs/gxt/ui/client/state/Sta...
 
  It seems it is writing the cookies many times on the file
  user@localhost[1].txt.
 
  After deleting this file my application seems to work. I say seems
  because there
  is another error that looks like has nothing to do with the original
  post.
 
  [ERROR] Unable to load module entry point class com.xxx.App (see
  associated exception for details)
  com.google.gwt.core.client.JavaScriptException: (TypeError):
  '$doc.defaultView' is null or not an object
   number: -2146823281
   description: '$doc.defaultView' is null or not an object
  at
  com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl.getComputedStyle
  (Native Method)
  at
  com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl.getStyleAttribute
  (ComputedStyleImpl.java:27)
  at
 com.extjs.gxt.ui.client.core.El.getStyleAttribute(El.java:1236)
  at com.extjs.gxt.ui.client.util.IconHelper.createStyle
  (IconHelper.java:77)
  at
 com.extjs.gxt.ui.client.util.IconHelper.create(IconHelper.java:
  107)
  at
 com.extjs.gxt.ui.client.util.IconHelper.create(IconHelper.java:93)
  at com.extjs.gxt.ui.client.widget.button.Button.setIconStyle
  (Button.java:357)
  at com.xxx.App.Editor.init(Editor.java:104)
  at com.xxx.App.onModuleLoad(App.java:27)
 
  R.
 
  On Oct 28, 1:12 pm, Rajeev Dayal rda...@google.com wrote:
 
   Hm, I would have expected that to work. Can you verify that when this
   problem happens, you have large cookies in the directories that you
 tried to
   clear?
 
   I believe that the Vista cookies directory is:
 
   C:\Users\ your user name\AppData\Roaming\Microsoft\Windows\Cookies
 
   2009/10/17 lain yana-afanas...@ya.ru
 
 My suspicion is that there is some sort of cookie problem
You are completely right.
 
Now my application works fine without any configurations (because
cookies expiration date has come, I think), so this bug was really a
problem with cookies.
But this problem may occur again in the future. =(
 
If you know where the hosted browser stores cookies, could you tell
me? Probably, they were not stored in those directories, which I
cleaned.
 
On 14 окт, 21:58, Rajeev Dayal rda...@google.com wrote:
 As an FYI, I think the default buffer size on Jetty 6 is 8k, so
 your
current
 setting will not change anything. However, you should really not
 need to

Re: Announcing the Google Plugin for Eclipse 1.1.0

2009-11-16 Thread Rajeev Dayal
Hi,

As an FYI, we're going to release a version of the plugin that fixes this
issue shortly.

However, with the issue that you're experiencing, I wonder if you did not
revert your version of DevMode* back far enough. What version did you revert
to?


Rajeev

On Mon, Nov 16, 2009 at 6:08 AM, shahid shahidza...@gmail.com wrote:

 Thanks misterln2
 @Ranjeev yes I am using the current build

 On Nov 13, 10:19 am, misterln2 mister...@googlemail.com wrote:
  the changes happened from rev 6641 to 6642
 
  a bunch of registerHandler(..) statements got removed
 
  i just tried it: copying those statements back to the current
  DevModeBase.java was sufficient to compile the trunk

 --

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




--

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




Ant test

2009-11-16 Thread Andrey
Hello!

Is it normal that SVN build doesn't pass tests?
Every time I build GWT from SVN I get errors while executing ant
test.

--

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




Re: Redistributing GWT apps in a commercial software

2009-11-16 Thread Parag Thakur

thanks for the reply.

No, we don't ship gwt-dev.jar. However it's not very clear if any of
the code in gwt-dev.jar gets translated into javascript (like they
mention happens for the BrowserDetect code)..

--parag

On Nov 12, 11:27 pm, Yozons Support on Gmail yoz...@gmail.com wrote:
 I'm not an expert (or even a lawyer ;), but most of the third-party stuff
 appears to be related to gwt-dev.jar.  Heck, I don't even know what that JAR
 is since it's not in my WEB-INF/lib.  I only have gwt-servlet.jar and that
 has no third-party stuff so it's just under the Apache 2 license you expect
 of GWT.

 My guess is you don't redistribute any of the other third party stuff, so it
 shouldn't matter.  And even if you do, it seems that they all have
 compatible licenses that will allow you to use it in commercial software.  I
 didn't see any GPL code mentioned, for example.  But if you do ship that
 gwt-dev.jar, you should also include references to those parts and give them
 credit just like Google did with respect to those components as you can use
 them, you just need to give them credit.

 That's my guesstimate anyway

--

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




Re: GWT Hosted Mode crashing after Snow Leopard 10.6.2 Update

2009-11-16 Thread Danny
Hi,

Is there also a fix available for GWT 1.6+ ?
My Eclipse project gives an error saying that the when using the WAR
layout you must use the GWT 1.6 or later.

Thkx,
D.

On Nov 14, 4:10 pm, hugues huguespisa...@gmail.com wrote:
 On 12 nov, 18:39, hugues huguespisa...@gmail.com wrote:

  On 12 nov, 13:35, Daniel Kurka kurka.dan...@googlemail.com wrote:

   I found a very UGLY solution to my problem (which enables me to continue
   working).

   I replaced in LowLevelSaf.java public static native void gcUnprotect(int,
   int); to public static void gcUnprotect(int, int) {}

  I've built a file for GWT 1.5.3 on that same pattern if people are
  insterested... but I've got nowhere to put it. It's +9MB.

 It's finally 
 here:http://org.labarben.s3.amazonaws.com/gwt-saf-fix/gwt-dev-mac.jar

 - Hugues

--

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




How to differentiate between singleClick and doubleClick on the Grid cell?

2009-11-16 Thread Taufeeq
Hi,

I am create an component where in on singleClick of the grid cell I
have to show an alert message displaying metadata of image. And, on
doubleClick have to display the image in new window. For that I had
created a class MyHandler which implements clickHandler and
DoubleClickHandler and added an instance of MyHandler to
addClickHandler of the Grid.

The problem is that whenever I double click on the Grid cell; onClick
() caught the event and no DoubleClick event is generated.
Could anyone provide any pointer for differentiating between
singleClick and doubleClick on the Grid cell in the application?

Any pointer on this issue will be helpfull.

Thank you.

--

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




Re: how to use a server class in client code

2009-11-16 Thread Ray
Hello,

I have my DTO (domain model) classes - which are serializeable POJOs
without annotations - inside jar files on the server, as i want to use
them not only in GWT applications.

Is there no other solution of reusing them on my GWT-client-side
without copying the source
code to the client. Because in the case of changes I don't want to
change the DTO classes at two different places (GWT-Client+Server-
api.jar)

Thanks,
Ray


On 11 Nov., 20:58, Dominik Steiner dominik.j.stei...@googlemail.com
wrote:
 Sanjith,

 you can move the model classes to anywhere under the client folder,  
 the client/domain example is just what i use here with me. And then  
 the server will reuse those classes on server side where he will read  
 the jdo annotations.

 Let me know if it works for you

 Dominik

--

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




Re: GWT Chat

2009-11-16 Thread ArmanGal
Look at this project, i've used it a year ago to build chat (like
skype) in gwt, very nice implementation but requires to install XMPP
server (free).

http://code.google.com/p/emite/


On Nov 15, 3:01 pm, Jim jimmy.verhee...@gmail.com wrote:
 hi,

 I'd like  make a chat using GWT  1.7 but gwt doesn't allow the use of
 socket ? Have you got any idea for the communications client/server?
 i've tested the gwt-socket but the project is not active ... i've
 heard the library comet could help me, what do you think about it ?

 Thx a lot

--

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




Re: how to use a server class in client code

2009-11-16 Thread Ray
Hello,

I have my model classes inside an library on the server-side which I
want user for different applications (not only GWT)

Copying my domain classes to the client side of the GWT-Client-App
doesn't seem to be very convienient, as I have to maintain the same
code in two different locations.

Is there no way to include the library and GWT creates the client-side
java-script whith the model automatically?

Thanks
Ray


On 11 Nov., 20:58, Dominik Steiner dominik.j.stei...@googlemail.com
wrote:
 Sanjith,

 you can move the model classes to anywhere under the client folder,  
 the client/domain example is just what i use here with me. And then  
 the server will reuse those classes on server side where he will read  
 the jdo annotations.

 Let me know if it works for you

 Dominik

--

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




Re: Too much is happening (the events are crowding the bus)?

2009-11-16 Thread ArmanGal
I use Operation enum inside the action that tells my presenter how to
handle the action. + I create number of constructors for this event to
support every operation, while the event it self has all needed
properties for all operations.

;)

On Nov 15, 4:19 am, slind...@gmail.com slind...@gmail.com wrote:
 I am attempting to implement the EventBus pattern and I find myself
 creating a LOT of Events (extending GwtEvent). I'll try to illustrate
 what I mean with my Car object. I have a list of cars and a button
 called Add Car. This button has a ClickHandler attached which will
 fire a AddCarEvent.

 This AddCarEvent in turn triggers the display of a dialog where the
 user can enter details of the car like make, model, etc. This dialog
 naturally has a button called Save with another ClickHandler
 attached. This ClickHandler fires a new event slightly different from
 AddCarEvent since we now have some details of the car, so I'm calling
 this event AddNewCarEvent. The event bus has a listener that triggers
 when this event is fired and makes an asynchronous call to the server
 with the details of the new car. The server returns the newly created
 Car object (or id of it), and a new CarAddedEvent is created (this
 event in turn might trigger a LoadCarsEvent to refresh the list of
 cars).

 I figured I can save myself from the AddNewCarEvent by adding
 properties like model, make etc to the AddCarEvent object. If they
 are set I'll make the async call, if not I'll display the dialog. This
 saves one Event class but I still think there must be some better way.
 This is just one object, and one simple action; but it quickly gets
 out of hand when adding more objects and actions (ie. a Car could have
 StartCar, StartNewCar, CarStarted, StopCar, StopNewCar, CarStopped
 events and so on..).

 I hope this doesn't sound too crazy, and I hope someone has some ideas
 to improve and perhaps simplify this, unless this actually is a
 natural side effect of this pattern?

 Thanks and regards,
 Stian

--

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




Re: GWT Chat

2009-11-16 Thread Roy
App Engine supports XMPP

On Nov 16, 1:38 pm, Prempena pascal.rempena...@gmail.com wrote:
 I've tried to find a solution with App Engine for weeks without any
 success. Server push is not only useful for Chat. It can be used to
 inform users of some events coming from the Server.

 This is issue is referenced at a good place in the issue 
 list:http://code.google.com/p/googleappengine/issues/detail?id=377

 If someone is able to find a good solution, I'm interested too.

--

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




Re: GWT PCI Compliance Toolkit

2009-11-16 Thread Evan Ruff
Hey Duong,

We're preparing to roll out our PCI compliance solution. I was wondering
which gateway you are using to process your payments.

Thanks!

Evan

On Fri, Oct 2, 2009 at 9:29 AM, Duong BaTien duong.bat...@gmail.com wrote:


 Please announce your release and put me duong.bat...@gmail.com in your
 list. We use GWT to develop a new E-Commerce system.

 Duong BaTien
 DBGROUPS and BudhNet

 On Fri, 2009-10-02 at 05:20 -0700, Evan Ruff wrote:
  Hey guys,
 
  I'm the project lead on CRE Secure's new iFrame Hosted Payment Page
  solution (http://www.cresecure.com). I've been a big GWT guy since
  back around 1.5RC1 so I've had a special eye on the GWT-centric issues
  around PCI Compliance, especially from a application control/look-and-
  feel standpoint. The current solution is packaged as a JAR and
  contains a number of hooks to help with the GWT integration. The
  solution gives the developer maximum control over the form, rendering,
  display and callback of the entire payment process, all while
  maintaining PCI compliance without leaving your application.
 
  We're looking to release the platform sometime in early October and
  are looking for early beta testers to help test our implementation. We
  are certified to the Authroize.net Platform and the Chase Paymentech
  (Tampa and Salem) Platform and are looking to get the JAR into
  people's hands a soon as possible. If you accept credit cards in your
  application and are not yet PCI Compliant, we'd like to help you get
  there.
 
  Send me an email or reply to this thread and we'll get in touch. We've
  got a demo up and running that I'd love to walk through to show
  exactly what it can do. Also, if anyone has any PCI Compliance
  questions feel free to drop me a line our check out our site at
  http://www.cresecure.com.
 
  Thanks!
 
  Evan Ruff
  evan.r...@hendersonsawmill.com
  Enterprise Development
  CRE Secure
  


 --~--~-~--~~~---~--~~
  This message is part of the topic GWT PCI Compliance Toolkit in the
 Google Group Google Web Toolkit
 for which you requested email updates.
 To stop receiving email updates for this topic, please visit the topic
 at http://groups.google.com/group/google-web-toolkit/t/6f7acb94e3fd1b8e
 -~--~~~~--~~--~--~---



--

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




Re: GWT: JUnit Google App Engine Tutorial assumes intelligence

2009-11-16 Thread Chris Ramsdale
I second Rajeev's comments. We definitely value feedback, and we'll make
sure the tutorial is updated to reflect that the test folder must be added
manually as a source folder.

With regards to the larger picture, we'll be looking to revamp some of the
existing documentation once we get 2.0 and the associated 2.0 docs out the
door.

- Chris

On Fri, Nov 13, 2009 at 2:36 PM, Steve C st...@steveclaflin.com wrote:

 I'd like to generalize this whole discussion a bit - to my mind the
 entire JUnit testing scenario is one of the worst documented and
 described elements in GWT.  Most of the examples out there are
 repackagings of the same simplistic ones that have been around for a
 few versions now.

 In addition to the undocumented item listed in the previous comment,
 it seems that your test class must be in the same package as your
 entry-point class, but sourced from the test folder instead of src.

 --

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




--

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




ComboBox ??

2009-11-16 Thread salvador.ce
Hi !!

I created a Forms with several fields, I'm doing a query
a database, the data is being selected without problem,
some difficulties I'm having is that this a Forms ComboBox and I
the value that returns is an ID database, the question is: How do I
bring the description in the combobox? These data already have in a Store.

tks[][]

--

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




Re: How to differentiate between singleClick and doubleClick on the Grid cell?

2009-11-16 Thread Lothar Kimmeringer
Taufeeq schrieb:

 I am create an component where in on singleClick of the grid cell I
 have to show an alert message displaying metadata of image. And, on
 doubleClick have to display the image in new window. For that I had
 created a class MyHandler which implements clickHandler and
 DoubleClickHandler and added an instance of MyHandler to
 addClickHandler of the Grid.
 
 The problem is that whenever I double click on the Grid cell; onClick
 () caught the event and no DoubleClick event is generated.
 Could anyone provide any pointer for differentiating between
 singleClick and doubleClick on the Grid cell in the application?

In short, create a Timer in onClick, showing the dialog box
after the Timer reached its end. If onClick is called within
the lifetime of the timer, cancel the timer and perform the
operation you intend to be done for a double click.

You can skip the Timer-thing if you show the meta-data some-
where in your main-area. Then you just need to store
System.currentTimeMillis() in a variable and check the
difference the next time if it is within some threshold to
decide if you have to show the preview-window or not.


Regards, Lothar

--

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




Re: GWT PCI Compliance Toolkit

2009-11-16 Thread Duong BaTien
We are still in development mode and have not fully committed to any
yet. Please keep in touch.

Duong BaTien
DBGROUPS and BudhNet

On Mon, 2009-11-16 at 11:17 -0500, Evan Ruff wrote:
 Hey Duong,
 
 
 We're preparing to roll out our PCI compliance solution. I was
 wondering which gateway you are using to process your payments.
 
 
 Thanks!
 
 
 Evan
 
 On Fri, Oct 2, 2009 at 9:29 AM, Duong BaTien duong.bat...@gmail.com
 wrote:
 
 Please announce your release and put me duong.bat...@gmail.com
 in your
 list. We use GWT to develop a new E-Commerce system.
 
 Duong BaTien
 DBGROUPS and BudhNet
 
 On Fri, 2009-10-02 at 05:20 -0700, Evan Ruff wrote:
  Hey guys,
 
  I'm the project lead on CRE Secure's new iFrame Hosted
 Payment Page
  solution (http://www.cresecure.com). I've been a big GWT guy
 since
  back around 1.5RC1 so I've had a special eye on the GWT-
 centric issues
  around PCI Compliance, especially from a application
 control/look-and-
  feel standpoint. The current solution is packaged as a JAR
 and
  contains a number of hooks to help with the GWT integration.
 The
  solution gives the developer maximum control over the form,
 rendering,
  display and callback of the entire payment process, all
 while
  maintaining PCI compliance without leaving your application.
 
  We're looking to release the platform sometime in early
 October and
  are looking for early beta testers to help test our
 implementation. We
  are certified to the Authroize.net Platform and the Chase
 Paymentech
  (Tampa and Salem) Platform and are looking to get the JAR
 into
  people's hands a soon as possible. If you accept credit
 cards in your
  application and are not yet PCI Compliant, we'd like to help
 you get
  there.
 
  Send me an email or reply to this thread and we'll get in
 touch. We've
  got a demo up and running that I'd love to walk through to
 show
  exactly what it can do. Also, if anyone has any PCI
 Compliance
  questions feel free to drop me a line our check out our site
 at
  http://www.cresecure.com.
 
  Thanks!
 
  Evan Ruff
  evan.r...@hendersonsawmill.com
  Enterprise Development
  CRE Secure
  
 
 
 --~--~-~--~~~---~--~~
  This message is part of the topic GWT PCI Compliance
 Toolkit in the Google Group Google Web Toolkit
 for which you requested email updates.
 To stop receiving email updates for this topic, please visit
 the topic
 at http://groups.google.com/group/google-web-
 toolkit/t/6f7acb94e3fd1b8e
 -~--~~~~--~~--~--~---
 
 
 
 
 --
 
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To post to this group, send email to google-web-
 tool...@googlegroups.com.
 To unsubscribe from this group, send email to google-web-toolkit
 +unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=.

--

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




Re: GWT Chat

2009-11-16 Thread ben fenster
how can the comet gwt lib keep a live connection


On 16 נובמבר, 16:01, Roy roy.smith@googlemail.com wrote:
 App Engine supports XMPP

 On Nov 16, 1:38 pm, Prempena pascal.rempena...@gmail.com wrote:

  I've tried to find a solution with App Engine for weeks without any
  success. Server push is not only useful for Chat. It can be used to
  inform users of some events coming from the Server.

  This is issue is referenced at a good place in the issue 
  list:http://code.google.com/p/googleappengine/issues/detail?id=377

  If someone is able to find a good solution, I'm interested too.

--

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




Re: GWT: JUnit Google App Engine Tutorial assumes intelligence

2009-11-16 Thread Angel Marquez
Fantastic. In the meantime I'm going through the GWT  AE developer guides
in tandem with the fielding dissertation and a java pub on their REST api,
very interesting.

It would be nice to have the completed tutorial source files readily
available as well. Specifically for the JUnit  AE sections of GWT SW. I
have a lot of errors when attempting to compile and the source files are to
large to attach(I could upload and send a link..). Hopefully I would be able
to run a diff/compare if their was a source to compare to and figure out
what needs to be fixed.

I keep on reading people are using GWT 2.0. Is this available to the public
or is this list a mix of people that are not current and can't be? All I'm
aware that is available to me is 1.7.

One more thing. I know someone that just recently received a wave invite. I
kindly requested a an account hook up and she said they didn't give here any
invites and thought it was odd since she wouldn't be able to wave with
anyone. I want to be her wave partner. Any ideas?


On Mon, Nov 16, 2009 at 8:19 AM, Chris Ramsdale cramsd...@google.comwrote:

 I second Rajeev's comments. We definitely value feedback, and we'll make
 sure the tutorial is updated to reflect that the test folder must be added
 manually as a source folder.

 With regards to the larger picture, we'll be looking to revamp some of the
 existing documentation once we get 2.0 and the associated 2.0 docs out the
 door.

 - Chris


 On Fri, Nov 13, 2009 at 2:36 PM, Steve C st...@steveclaflin.com wrote:

 I'd like to generalize this whole discussion a bit - to my mind the
 entire JUnit testing scenario is one of the worst documented and
 described elements in GWT.  Most of the examples out there are
 repackagings of the same simplistic ones that have been around for a
 few versions now.

 In addition to the undocumented item listed in the previous comment,
 it seems that your test class must be in the same package as your
 entry-point class, but sourced from the test folder instead of src.

 --

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



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


--

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




GWT hosted mode crashing after update

2009-11-16 Thread Rob Tanner
Hi,

I was running along last week just perfectly with the GWT Eclipse
plugin v1.7.1 and Eclipse 3.5.1 on an Mac running Snow Leopard. This
morning I installed an update bring Safari to v4.0.4 and the OS to
10.6.2.  Now hosted mode crashes with the error: Invalid memory access
of location 0010 eip=92a2477b.

Since it all worked fine last week, I'm sure this is related to the
update.  I'm not exactly sure what the message is telling me other
than I'm trying to use memory I shouldn't.  Does anyone know of a work-
around?

-- Rob

--

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




Re: GWT hosted mode crashing after update

2009-11-16 Thread Kyle Hayes
Hey Rob,

A lot of us have been having issues with Safari 4.0.4 release since
they updated JavaScriptCore. Check out this thread as well as the last
reply in it:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/386df3f9d5cab7d0/cecf81ab8c9b7fde?#cecf81ab8c9b7fde

On Nov 16, 9:35 am, Rob Tanner caspersg...@gmail.com wrote:
 Hi,

 I was running along last week just perfectly with the GWT Eclipse
 plugin v1.7.1 and Eclipse 3.5.1 on an Mac running Snow Leopard. This
 morning I installed an update bring Safari to v4.0.4 and the OS to
 10.6.2.  Now hosted mode crashes with the error: Invalid memory access
 of location 0010 eip=92a2477b.

 Since it all worked fine last week, I'm sure this is related to the
 update.  I'm not exactly sure what the message is telling me other
 than I'm trying to use memory I shouldn't.  Does anyone know of a work-
 around?

 -- Rob

--

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




Re: GWT hosted mode crashing after update

2009-11-16 Thread Jim Douglas
My MacBook Pro is my main GWT development system, so I'm dead in the
water here too.  Kelly mentions a possible workaround in comment #16,
but I haven't seen the details:

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

Apparently this Apple bug will be fixed in Safari 4.0.5, but there's
no way of knowing when it will be released.

On Nov 16, 9:35 am, Rob Tanner caspersg...@gmail.com wrote:
 Hi,

 I was running along last week just perfectly with the GWT Eclipse
 plugin v1.7.1 and Eclipse 3.5.1 on an Mac running Snow Leopard. This
 morning I installed an update bring Safari to v4.0.4 and the OS to
 10.6.2.  Now hosted mode crashes with the error: Invalid memory access
 of location 0010 eip=92a2477b.

 Since it all worked fine last week, I'm sure this is related to the
 update.  I'm not exactly sure what the message is telling me other
 than I'm trying to use memory I shouldn't.  Does anyone know of a work-
 around?

 -- Rob

--

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




Re: GWT PCI Compliance Toolkit

2009-11-16 Thread Yozons Support on Gmail
Isn't most PCI compliance related to the server?  GWT only holds the
information a short time to make a payment and shouldn't normally hold on to
the data after submitting it for processing.  How does your GWT help with
PCI compliance since this would also require your server and server code to
be compliant.  Furthermore, if using a payment gateway, you shouldn't even
have to store the payment information locally and thus avoid most PCI
compliance issues.

--

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




Re: Gwt 2.0 trunk and Eclipse

2009-11-16 Thread Mark Renouf
Has there been any updates on fixing this?

I confirmed I have the latest GAE plugin and still have the problem.
I'm hoping once the RC comes out there will be an updated. If it was
open source I would patch the Eclipse plugin instead of GWT, but oh
well.




On Nov 9, 10:07 am, misterln2 mister...@googlemail.com wrote:
 this is the same problem i reported in thegooglepluginforeclipse
 thread.

 thepluginautomatically appends the -style parameter which is no
 longer supported by DevMode.

 my solution was to revert:
 trunk\dev\core\src\com\google\gwt\dev\DevMode.java
 trunk\dev\core\src\com\google\gwt\dev\DevModeBase.java
 to earlier versions (from nov 5th)

--

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




Module Creation from Eclipse

2009-11-16 Thread Kyle Hayes
I'm starting a fairly large project with GWT and would like to take
advantage of the modularity of GWT. There are some grey areas for me
in creating a new GWT module through Eclipse from scratch to be
included in a GWT application. I was hoping someone could provide a
set of steps to do so. Assume there is no existing code.

I appreciate any help, thanks!

-Kyle

--

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




Re: Gwt 2.0 trunk and Eclipse

2009-11-16 Thread Chris Ramsdale
We've confirmed that this issue has been resolved in the RC bits that we are
currently testing. The RC should be available very soon. In the meantime you
can switch back to MS2 or use your own custom Java launch config. Let us
know if you go down the custom launch config path and need some help.

- Chris

On Mon, Nov 16, 2009 at 1:13 PM, Mark Renouf mark.ren...@gmail.com wrote:

 Has there been any updates on fixing this?

 I confirmed I have the latest GAE plugin and still have the problem.
 I'm hoping once the RC comes out there will be an updated. If it was
 open source I would patch the Eclipse plugin instead of GWT, but oh
 well.




 On Nov 9, 10:07 am, misterln2 mister...@googlemail.com wrote:
  this is the same problem i reported in thegooglepluginforeclipse
  thread.
 
  thepluginautomatically appends the -style parameter which is no
  longer supported by DevMode.
 
  my solution was to revert:
  trunk\dev\core\src\com\google\gwt\dev\DevMode.java
  trunk\dev\core\src\com\google\gwt\dev\DevModeBase.java
  to earlier versions (from nov 5th)

 --

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




--

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




Re: ComboBox ??

2009-11-16 Thread Chris Ramsdale
Are you returning description text along with the ID?

On Mon, Nov 16, 2009 at 11:20 AM, salvador.ce salvador...@gmail.com wrote:

 Hi !!

 I created a Forms with several fields, I'm doing a query
 a database, the data is being selected without problem,
 some difficulties I'm having is that this a Forms ComboBox and I
 the value that returns is an ID database, the question is: How do I
 bring the description in the combobox? These data already have in a Store.

 tks[][]

 --

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




--

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




Re: GWT PCI Compliance Toolkit

2009-11-16 Thread Evan Ruff
Yozons,

You're running into one of the most common PCI Compliance
misconceptions: just because you don't store the card data does not
mean you're compliant. If the application touches the card data IN ANY
WAY, even just to immediately transmit to the gateway, you must have
your application served in a PCI-Compliant data center, be subjected
to PCI change control guidelines and have your application undergo PCI-
DSS auditing.

Our solution pulls the handling of the actual card data out of the
scope of the application. Because the style and functional operation
of the module is defined by your application, the secure processing is
completely transparent to the user. The customer experience is
completely maintained on your site. The card data is handled 100% on
the CRE Secure side, giving your application PCI Compliance and still
allowing the application to process card data.

Thanks!

Evan

On Nov 16, 12:55 pm, Yozons Support on Gmail yoz...@gmail.com wrote:
 Isn't most PCI compliance related to the server?  GWT only holds the
 information a short time to make a payment and shouldn't normally hold on to
 the data after submitting it for processing.  How does your GWT help with
 PCI compliance since this would also require your server and server code to
 be compliant.  Furthermore, if using a payment gateway, you shouldn't even
 have to store the payment information locally and thus avoid most PCI
 compliance issues.

--

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




Re: incubator's PagingScrollTable(pagination+Sorting)

2009-11-16 Thread Dazza
On Nov 16, 3:27 pm, Davis Ford davisf...@zenoconsulting.biz wrote:
 Hi, here's a blog post I made that shows how I'm using the widget.  It may
 help if you are still looking for a solution.

 http://zenoconsulting.wikidot.com/blog:17

 http://zenoconsulting.wikidot.com/blog:17Regards,
 Davis


Very nice article.  Have you tried adding fixed columns to
PagingScrollTable?

--

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




Tomcat RPC Failure on Lost Client Connections.

2009-11-16 Thread Danny
I get a  Exception while dispatching incoming RPC call exception in
Tomcat after, what I believe is caused by an RPC response not finding
the client that made the request.  The stack print out is included
below.  I say that I believe this is the problem, but I have not been
able to reproduce the error.

Can someone with more Tomcat experience than me, see if my belief is
well founded?  Regardless, does someone have a solution?  My system
seems to be running OK.  Is my worry mostly about Tomcat filling my
web host's disk space with exception messages?

Thanks,

Danny

--

Nov 14, 2009 7:39:50 AM org.apache.catalina.core.ApplicationContext
log
SEVERE: Exception while dispatching incoming RPC call
java.io.IOException
at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:205)
at org.apache.jk.common.JkInputStream.refillReadBuffer
(JkInputStream.java:265)
at org.apache.jk.common.JkInputStream.doRead(JkInputStream.java:183)
at org.apache.coyote.Request.doRead(Request.java:428)
at org.apache.catalina.connector.InputBuffer.realReadBytes
(InputBuffer.java:304)
at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:405)
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:
327)
at org.apache.catalina.connector.CoyoteInputStream.read
(CoyoteInputStream.java:193)
at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8
(RPCServletUtils.java:146)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent
(RemoteServiceServlet.java:343)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:293)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:
190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:
291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
at org.apache.jk.common.ChannelSocket.processConnection
(ChannelSocket.java:698)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt
(ChannelSocket.java:891)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)

--

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




Re: incubator's PagingScrollTable(pagination+Sorting)

2009-11-16 Thread Davis Ford
Yes, I have done this in some cases.  You can do this with the methods from
AbstractColumnDefinitionhttp://collectionofdemos.appspot.com/javadoc/com/google/gwt/gen2/table/client/AbstractColumnDefinition.html

http://collectionofdemos.appspot.com/javadoc/com/google/gwt/gen2/table/client/AbstractColumnDefinition.html
setMinimumColumnWidth()
setMaximumColumnWidth()

It seems to work ok.  If your columns span past the visible area, you end up
getting a horizontal scrollbar which is expected.  Also you can force the
width to whatever the maximum entry width is if you setTruncatable(false)

On Mon, Nov 16, 2009 at 3:02 PM, Dazza dazzacoll...@gmail.com wrote:

 On Nov 16, 3:27 pm, Davis Ford davisf...@zenoconsulting.biz wrote:
  Hi, here's a blog post I made that shows how I'm using the widget.  It
 may
  help if you are still looking for a solution.
 
  http://zenoconsulting.wikidot.com/blog:17
 
  http://zenoconsulting.wikidot.com/blog:17Regards,
  Davis
 

 Very nice article.  Have you tried adding fixed columns to
 PagingScrollTable?

 --

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





-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

--

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




Re: GWT PCI Compliance Toolkit

2009-11-16 Thread Yozons Support on Gmail
This has gone off-topic, so I won't belabor my point, but the PCI principles
clearly show it's more geared towards the server-side, as the browser itself
never had to be PCI compliant or any such rubbish.  And no GWT interface
tool can ensure PCI compliance either.  A server that has gone through the
compliance analysis is key, so if that part is taken over with the GWT
interface, then I surely understand that.

The core of the PCI DSS is a group of principles and accompanying
requirements, around which the specific elements of the DSS are organized:

*Build and Maintain a Secure Network*

*Requirement 1:* Install and maintain a firewall configuration to protect
cardholder data
*Requirement 2:* Do not use vendor-supplied defaults for system passwords
and other security parameters

*Protect Cardholder Data*

*Requirement 3:* Protect stored cardholder data
*Requirement 4:* Encrypt transmission of cardholder data across open, public
networks

*Maintain a Vulnerability Management Program*

*Requirement 5:* Use and regularly update anti-virus software
*Requirement 6:* Develop and maintain secure systems and applications

*Implement Strong Access Control Measures*

*Requirement 7:* Restrict access to cardholder data by business need-to-know
*Requirement 8:* Assign a unique ID to each person with computer access
*Requirement 9:* Restrict physical access to cardholder data

*Regularly Monitor and Test Networks*

*Requirement 10:* Track and monitor all access to network resources and
cardholder data
*Requirement 11:* Regularly test security systems and processes

*Maintain an Information Security Policy*

*Requirement 12:* Maintain a policy that addresses information security

--

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




Re: Redistributing GWT apps in a commercial software

2009-11-16 Thread Thomas Broyer


On Nov 16, 8:06 am, Parag  Thakur para...@gmail.com wrote:
 thanks for the reply.

 No, we don't ship gwt-dev.jar. However it's not very clear if any of
 the code in gwt-dev.jar gets translated into javascript (like they
 mention happens for the BrowserDetect code)..

Of the libs listed here: http://code.google.com/webtoolkit/terms.html#licenses
none of them, except as noted Browser Detect is transliterated into
javascript:
 - Tomcat (and Jetty as of GWT 1.6) is used in Hosted Mode (now
DevMode in GWT 2.0) to host your resources and servlets
 - Eclipse SWT is used for the GWTShell (up to GWT 1.5) and HostedMode
(up to GWT 1.7.x) user interface (GWT 2.0 will have no dependency over
SWT, it'll be Swing-based entirely)
 - Eclipse JDT is used by the GWT's Compiler to parse your Java
sources so they can be analyzed and transliterated into JavaScript
 - Rhino is used by the GWT's Compiler to parse your JSNI (JavaScript)
sources so they can be integrated into the Java-2-JS process
 - Mozilla 1.7 and WebKit are only used in GWTShell and HostedMode (up
to GWT 1.7.1) as the embedded browsers in respectively Linux and OSX
(Windows version just uses IE); GWT 2.0 won't have those dependencies
 - and finally JFreeChart is only used by the BenchmarkViewer tool.

--

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




How to create a development/debug and production setup

2009-11-16 Thread Supercobra Thatbytes
Hello there,

I recently deployed inadvertently a debug version of our game typrX
(typing races at www.typrx.com - try it it's fun).

It was quickly corrected but I know it may happen again. After digging
on Google I found some info how to create 2 different profiles, one
for development mode that has the debug functions and one used for
deployment. Here is what I found from a Google IO presentation. Does
anyone have this setup? Can someone explains how to run this?

MyAppCommon.gwt.xml
module
  ...
  define-property values=debug, release name=app.config /
  replace-with class=myapp.debug.DebugConsole
when-type-is class=myapp.Console /
when-property-is name=app.config value=debug /
  /replace-with
  ...
/module
MyAppDebug.gwt.xml
module
  ...
  set-property name=app.config value=debug /
/module

--

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




Re: Help! Displaying helpful data on a form. SOLVED

2009-11-16 Thread David C. Hicks
Nevermind.  I figured out that I could update my label on kind of an
asyncronous basis, as well.

David C. Hicks wrote:
 I'm sure I must be making this harder than it needs to be, but I'm
 having zero success doing it.

 Entering a new form, I'd like to display the name of an entity that was
 selected on the the calling page.  The calling page is a Struts2 JSP, so
 I don't have the entire entity.  I only have the entity's ID, passed in
 as a parameter on the request URL.  That's easy enough to get, and I
 even have a service set up to go get the full entity once I have the
 ID.  The problem is that the service is asyncronous.  So, I get a Null
 Pointer Exception at the point where I try to set the data I'm
 retrieving into a label because the call hasn't yet completed.

 I'd rather not pass the name on the request URL - trying to avoid the
 messy encoding/decoding problems.  I've tried to create an AsyncCallback
 class that included a hook that I could wait for, but this only seemed
 to create an infinite wait loop.

 So, now I'm wondering if I need to somehow bind the retrieved data to
 a field on my form so that it will populate when the call completes. 
 Then again, maybe this is overkill, too.

 Is there a better way to solve this problem?
 Thanks,
 Dave

   

--

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




Javascript onload called before Java onModuleLoad

2009-11-16 Thread Davidj2k
I am needing the onModuleLoad event to fire before the window onload
event, in Firefox and Chrome it does it correctly but in Internet
Explorer 7 and 8 it happens second, is there anything I can do to make
the onload event of the web page happen after the onModuleLoad?

--

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




Re: ComboBox ??

2009-11-16 Thread salvador.ce
Hi Chris,

When I am accessing the database, do the query ID and description,
the two columns are placed in the Store (SimpleStore), after this the User
can query the data, I'm stating that when the User makes the
consultation brings the description and not ID.

Is there any way to browse the ComboBox and set the correct description?

tks[][]

2009/11/16 Chris Ramsdale cramsd...@google.com:
 Are you returning description text along with the ID?

 On Mon, Nov 16, 2009 at 11:20 AM, salvador.ce salvador...@gmail.com wrote:

 Hi !!

 I created a Forms with several fields, I'm doing a query
 a database, the data is being selected without problem,
 some difficulties I'm having is that this a Forms ComboBox and I
 the value that returns is an ID database, the question is: How do I
 bring the description in the combobox? These data already have in a Store.

 tks[][]

 --

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



 --

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


--

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




Re: Help! Displaying helpful data on a form.

2009-11-16 Thread Davis Ford
Are you using GWT-RPC?  I'm not sure I understand your problem completely.

So if I have a service like:

public interface MyService extends RemoteService {
   public Entity fetchEntity(String id);
}

public interface MyServiceAsync {
void fetchEntity(String id, AsyncCallbackEntity callback);
}

then, in the GWT code, something triggers the service.  Typically it is via
a button click or some event.  You seem to indicate that you are doing it by
passing the id as a URL parameter, like:

http://host/my.gwt.application/Application.html?id=123

You should be able to parse the URL using the Window.Location.getPath() to
get the url param with a regex.

Once you have that, you do this:

MyServiceAsync service = GWT.create(MyService.class);

service.fetchEntity(id, new AsyncCallbackVoid() {
 onFailure(Throwable t) {
  Window.alert(service call failed: +t.getMessage());
 }
 onSuccess(Entity e) {
 // do something with the entity
 }
});

After onSuccess( ) -- you populate the form with whatever.

On Mon, Nov 16, 2009 at 5:02 PM, David C. Hicks dhi...@i-hicks.org wrote:

 I'm sure I must be making this harder than it needs to be, but I'm
 having zero success doing it.

 Entering a new form, I'd like to display the name of an entity that was
 selected on the the calling page.  The calling page is a Struts2 JSP, so
 I don't have the entire entity.  I only have the entity's ID, passed in
 as a parameter on the request URL.  That's easy enough to get, and I
 even have a service set up to go get the full entity once I have the
 ID.  The problem is that the service is asyncronous.  So, I get a Null
 Pointer Exception at the point where I try to set the data I'm
 retrieving into a label because the call hasn't yet completed.

 I'd rather not pass the name on the request URL - trying to avoid the
 messy encoding/decoding problems.  I've tried to create an AsyncCallback
 class that included a hook that I could wait for, but this only seemed
 to create an infinite wait loop.

 So, now I'm wondering if I need to somehow bind the retrieved data to
 a field on my form so that it will populate when the call completes.
 Then again, maybe this is overkill, too.

 Is there a better way to solve this problem?
 Thanks,
 Dave

 --

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





-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

--

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




Re: Disabling inline images (data URIs)

2009-11-16 Thread frostw
Thanks for the reply Thomas. This fixed my IE tree issue.

However, I now find that attempting to use a GWT application with
Firefox (3.5.3) through the Firepass server fails completely.
This is even with the simplest GWT application e.g.

package det.networks.derboard.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;

public class Derboard implements EntryPoint {

// Application entry point
public void onModuleLoad()
{
Label l = new Label(Test);
RootPanel.get().add(l);
}
}

Firefox chokes on this with a 'Error: F5_RewriteBufferFragment is not
defined' in the error window.

This exact same code runs fine through Firepass in IE7, IE8, Opera 10,
Chrome 4.0.245

Does anyone have any idea how to go about fixing this? I'm rather
stumped.

Line: 1
On Nov 7, 12:15 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 6 nov, 02:54, frostw warrenfr...@gmail.com wrote:

  Hi,

  I am developing a GWT application that HAS to work via an F5 Firepass
  reverse proxy.

  Unfortunately, whilst the majority of the application works correctly,
  the Tree widget does not. The + and - images do not appear. The F5
  attempts to rewrite the GWT scripts and makes a terrible mess of the
  data URI images used in the tree (I am using my own svn trunk build of
  GWT).

  Is there a simple way to disable the use of inline images and use
  normal URL references in the Tree?

 You can add the following to your gwt.xml:
   set-property name=ClientBundle.enableInlining value=false /

 Seehttp://code.google.com/p/google-web-toolkit/wiki/ClientBundle#Levers_...

--

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




Re: How to create a development/debug and production setup

2009-11-16 Thread Sripathi Krishnan

 Can someone explains how to run this?


Read about deferred binding in the GWT documentation. It will explain the
underlying concepts.

Here is what you have to do -

   1. Your debug class and production class must inherit from a common
   class.
   2. Based on the property (app.config in this case), you choose the
   correct implementation (debug v/s production)
   3. By default, in your Module.gwt.xml - set the property to production.
   4. Create a new DebugModule.gwt.xml that extends your Module.gwt.xml -
   and overrides the app.config property to debug.
   5. In your ant script - gwtc compile either Module.gwt.xml or
   DebugModule.gwt.xml based on a suitable condition.

--Sri


2009/11/17 Supercobra Thatbytes superco...@gmail.com

 Hello there,

 I recently deployed inadvertently a debug version of our game typrX
 (typing races at www.typrx.com - try it it's fun).

 It was quickly corrected but I know it may happen again. After digging
 on Google I found some info how to create 2 different profiles, one
 for development mode that has the debug functions and one used for
 deployment. Here is what I found from a Google IO presentation. Does
 anyone have this setup? Can someone explains how to run this?

 MyAppCommon.gwt.xml
 module
  ...
  define-property values=debug, release name=app.config /
  replace-with class=myapp.debug.DebugConsole
when-type-is class=myapp.Console /
when-property-is name=app.config value=debug /
  /replace-with
  ...
 /module
 MyAppDebug.gwt.xml
 module
  ...
  set-property name=app.config value=debug /
 /module

 --

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




--

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




Re: Help! Displaying helpful data on a form.

2009-11-16 Thread David C. Hicks
Hi Davis,

Yes, using GWT-RPC.  My problem was that I forgot that I'm dealing
with an asynchronous call.  I was trying to populate the field on my
form with data before the call had successfully returned.  So, I was
getting a Null Pointer Exception from the object I was fetching.  Once I
realized this, I moved my code to populate the field into the
onSuccess() method and it's all happy.

Thanks for the reply!
Dave


Davis Ford wrote:
 Are you using GWT-RPC? �I'm not sure I understand your problem
 completely. �

 So if I have a service like:

 public interface MyService extends RemoteService {
 �� public Entity fetchEntity(String id);
 }

 public interface MyServiceAsync {
 �� �void fetchEntity(String id, AsyncCallbackEntity callback);
 }

 then, in the GWT code, something triggers the service. �Typically it
 is via a button click or some event. �You seem to indicate that you
 are doing it by passing the id as a URL parameter, like:

 http://host/my.gwt.application/Application.html?id=123

 You should be able to parse the URL using the
 Window.Location.getPath() to get the url param with a regex.

 Once you have that, you do this:

 MyServiceAsync service = GWT.create(MyService.class);

 service.fetchEntity(id, new AsyncCallbackVoid() {
 �� � onFailure(Throwable t) {
 �� � � � �Window.alert(service call failed: +t.getMessage());
 �� � }
 �� � onSuccess(Entity e) {
 �� � � � // do something with the entity
 �� � }
 });

 After onSuccess( ) -- you populate the form with whatever. �

 On Mon, Nov 16, 2009 at 5:02 PM, David C. Hicks dhi...@i-hicks.org
 mailto:dhi...@i-hicks.org wrote:

 I'm sure I must be making this harder than it needs to be, but I'm
 having zero success doing it.

 Entering a new form, I'd like to display the name of an entity
 that was
 selected on the the calling page. �The calling page is a Struts2
 JSP, so
 I don't have the entire entity. �I only have the entity's ID,
 passed in
 as a parameter on the request URL. �That's easy enough to get, and I
 even have a service set up to go get the full entity once I have the
 ID. �The problem is that the service is asyncronous. �So, I get a Null
 Pointer Exception at the point where I try to set the data I'm
 retrieving into a label because the call hasn't yet completed.

 I'd rather not pass the name on the request URL - trying to avoid the
 messy encoding/decoding problems. �I've tried to create an
 AsyncCallback
 class that included a hook that I could wait for, but this only
 seemed
 to create an infinite wait loop.

 So, now I'm wondering if I need to somehow bind the retrieved
 data to
 a field on my form so that it will populate when the call completes.
 Then again, maybe this is overkill, too.

 Is there a better way to solve this problem?
 Thanks,
 Dave

 --

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





 -- 
 Zeno Consulting, Inc.
 home: http://www.zenoconsulting.biz
 blog: http://zenoconsulting.wikidot.com
 p: 248.894.4922
 f: 313.884.2977

 --

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

--

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




Re: Disabling inline images (data URIs)

2009-11-16 Thread frostw
I should add that I realise this is more of an F5 issue, but since
their troubleshooting documentation boils down to techniques to avoid
when writing Firepass compatible applications (http://www.f5.com/pdf/
deployment-guides/firepass-rproxy-dg.pdf), it's a bit out of my
control as it's all GWT code that is causing me headaches.

On Nov 17, 3:19 pm, frostw warrenfr...@gmail.com wrote:
 Thanks for the reply Thomas. This fixed my IE tree issue.

 However, I now find that attempting to use a GWT application with
 Firefox (3.5.3) through the Firepass server fails completely.
 This is even with the simplest GWT application e.g.

 package det.networks.derboard.client;

 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.user.client.ui.Label;
 import com.google.gwt.user.client.ui.RootPanel;

 public class Derboard implements EntryPoint {

         // Application entry point
         public void onModuleLoad()
         {
                 Label l = new Label(Test);
                 RootPanel.get().add(l);
         }

 }

 Firefox chokes on this with a 'Error: F5_RewriteBufferFragment is not
 defined' in the error window.

 This exact same code runs fine through Firepass in IE7, IE8, Opera 10,
 Chrome 4.0.245

 Does anyone have any idea how to go about fixing this? I'm rather
 stumped.

 Line: 1
 On Nov 7, 12:15 pm, Thomas Broyer t.bro...@gmail.com wrote:

  On 6 nov, 02:54, frostw warrenfr...@gmail.com wrote:

   Hi,

   I am developing a GWT application that HAS to work via an F5 Firepass
   reverse proxy.

   Unfortunately, whilst the majority of the application works correctly,
   the Tree widget does not. The + and - images do not appear. The F5
   attempts to rewrite the GWT scripts and makes a terrible mess of the
   data URI images used in the tree (I am using my own svn trunk build of
   GWT).

   Is there a simple way to disable the use of inline images and use
   normal URL references in the Tree?

  You can add the following to your gwt.xml:
    set-property name=ClientBundle.enableInlining value=false /

  Seehttp://code.google.com/p/google-web-toolkit/wiki/ClientBundle#Levers_...

--

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




instanceof Element check fails in FF

2009-11-16 Thread bhomass
I have this statement
NodeListNode childNodes = tdElement.getChildNodes();
for (int i=0; ichildNodes.getLength(); i++){
Node childNode = childNodes.getItem(i);
if (childNode instanceof Element !#text.equals
(childNode.getNodeName())){
dosomething();
}
 }

but the #text nodes get thru the if (childNode instanceof Element)
check. I have to add

if (childNode instanceof Element !#text.equals
(childNode.getNodeName())

to fix it. I am sure #text is not an element, and this problem does
not occur in IE, only in FF.

anyone else knows about this anomaly?

--

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




Re: Tomcat RPC Failure on Lost Client Connections.

2009-11-16 Thread t.dave
there's a bit of content on the web about this problem.  if memory
serves it was at least partly blamed on the
RPCServletUtils.readContentAsUtf8() method - that sometimes the
request doesn't make it to the server.  this was blamed on the
vagaries of the internet.

i have it all the time in my web app - probably at least once a day,
but have been unable to replicate it or track down the exact cause.
what version of GWT are you running?  i'm still on 1.5.3 - my hope is
that once i finally get around to rewriting ALL my listeners into a
handler bus and upgrade to 1.7 (or even 2.0 by the time i get to it),
this problem will be solved.

--

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




Re: GWT History Interacts Badly With Non-History iFrame

2009-11-16 Thread Carl
Brian, I appreciate your response and apologize for not having noticed
it until now.

I've moved on from this issue for the moment and will probably revisit
it once I get my initial deployment out the door.

Your suggestion is reasonable but, as I mentioned, I have some doubts
as to whether it would work, because it seems to me that changes to
the non-GWT-History iframe can affect the browser's own
history without informing the GWT History mechanism.  However, until I
actually try what you are
suggesting, I can't be sure that it would not work; it may be that
when the change to the contents of the non-GWT-History iframe are made
from a Hyperlink rather than by a direct user click on an anchor that
targets that iframe, the browser will not place its own disruptive
items on the History list in addition to those entered by GWT.  So I
*will* try that more virtuous approach but,
as St. Augustine said, not now.

Another concern, however, is that as someone fairly new to developing
for the public net, I'm a bit paranoid about the shadowy area of SEO,
and also AdSense spidering, and would like to keep things as vanilla
as possible when it comes to links to other pages.  Using an iframe
alone is already a little iffy in that regard, because there is some
question as to whether the links to the framed page will be credited
back to the containing page.  If I add on top of that dual paths for
the bots vs. the humans, the possibility that this will be perceived
as cloaking is added to the already cloudy mix.

So, I'll try your suggestion but may still stay with the simpler
(albeit non-ideal from the standpoint of bookmarking) approach, even
if your suggestion works.

Carl


On Nov 2, 4:58 am, Brian brian.irei...@gmail.com wrote:
 I'm not sure that I follow completely, but perhaps a different
 approach would be to serve up two versions of the help. One would be
 under control of GWT and the other would be more static and would be
 shown only to search engines. You could probably work out a way that
 they would both show the same content so there wouldn't be versioning
 issues. Again, I'm not sure I followed well enough to know if this
 would help with your problem, but it's a different approach to think
 about.

 -Brian

 On Oct 30, 5:19 am, Carl consult...@goalstate.com wrote:



  I am developing an application that uses an iFrame to display help
  page content, while keeping the main page (which contains my GWT
  widgets) unchanged.  This is being done to preserve the state of the
  GWT widgets while various help pages are viewed by the user.

  The fundamental problem is this:  A browser, if left to its own
  devices (i.e., no GWT history hooks) will keep track of iFrame content
  in its own history list.  In other words, if you have a plain HTML
  page with an iFrame in it and some links in the containing page that
  load stuff into that iFrame, the browser will keep track of what got
  loaded and if you hit the back button the iFrame pages will be
  reloaded in reverse order.  But unfortunately, setting up an
  onValueChange() handler using History.onValueChangeHandler() in GWT
  and managing the History list in the GWT manner will not prevent the
  browser from adding its own items to its own internal history, and
  those items will get interleaved with whatever items your write
  yourself using History.newItem().

  Furthermore, when a browser re-loads this content into the iFrame in
  response to pushes of the Back button, then even if you have set up an
  onValueChange() handler using History.onValueChangeHandler(), that
  handler will not be informed (except for IE and hosted mode) of the
  back button presses that result in restoring those pages that the
  browser has stuck into its history list itself.  Nor will that handler
  be informed when the URL loaded in the iFrame changes and the browser
  detects this and adds items representing those changes to its own
  history list.

  The GWT History mechanism is clearly intended to keep track of state
  changes that are generated within the GWT code that result in distinct
  displayed states but which are not accompanied by changes to the base
  URL.  It pretty much does that.  But when changes must occur to an
  embedded iFrame in the course of using the application, the items
  added to browser history by the browser get all tangled up with the
  items that you add yourself via GWT's History (which of course works
  by manipulating its own embedded, invisible iFrame).

  For SEO and other reasons, I want my links that load help pages into
  the iFrame to be regular anchors rather than Hyperlinks.  But I don't
  think that Hyperlinks would resolve this issue, since the main problem
  is that the browser is still doing its own thing with its history each
  time the content document of an embedded iFrame is changed.  The
  HyperLink widget is intended to signal a GWT application that it
  should change its own internal state, not to signal a GWT application
  

Re: Redistributing GWT apps in a commercial software

2009-11-16 Thread Parag Thakur
Thomas,

Thanks! That's exactly what I was looking for.

regards,
Parag

On Nov 17, 3:02 am, Thomas Broyer t.bro...@gmail.com wrote:
 On Nov 16, 8:06 am, Parag  Thakur para...@gmail.com wrote:

  thanks for the reply.

  No, we don't ship gwt-dev.jar. However it's not very clear if any of
  the code in gwt-dev.jar gets translated into javascript (like they
  mention happens for the BrowserDetect code)..

 Of the libs listed here:http://code.google.com/webtoolkit/terms.html#licenses
 none of them, except as noted Browser Detect is transliterated into
 javascript:
  - Tomcat (and Jetty as of GWT 1.6) is used in Hosted Mode (now
 DevMode in GWT 2.0) to host your resources and servlets
  - Eclipse SWT is used for the GWTShell (up to GWT 1.5) and HostedMode
 (up to GWT 1.7.x) user interface (GWT 2.0 will have no dependency over
 SWT, it'll be Swing-based entirely)
  - Eclipse JDT is used by the GWT's Compiler to parse your Java
 sources so they can be analyzed and transliterated into JavaScript
  - Rhino is used by the GWT's Compiler to parse your JSNI (JavaScript)
 sources so they can be integrated into the Java-2-JS process
  - Mozilla 1.7 and WebKit are only used in GWTShell and HostedMode (up
 to GWT 1.7.1) as the embedded browsers in respectively Linux and OSX
 (Windows version just uses IE); GWT 2.0 won't have those dependencies
  - and finally JFreeChart is only used by the BenchmarkViewer tool.

--

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




Re: incubator's PagingScrollTable(pagination+Sorting)

2009-11-16 Thread shloka
 Davis, thanks for the post ...
In your example Are you using the pagination also?
How do you maintain sorted data between the pages??
I have implemented sorting almost like what you have done
but i am facing problem in maintaining the sorted data with the
pagination.
say i have 10 rows and i make it 5 rows per page.Hence i get 2 pages
now the first page is sorted and fine .when i click the button to go
to next page the control goes to the below  function in the
DataSourceTableModel
public void requestRows(final Request request,
  final CallbackStudent callback) {
// here we have method to create the new data.. how do we stop this?
since i have 5 more rows of old sorted data  yet to be rendered
 or
if we have hard coded array list  data it will again fetch the data as
per page size ie first 5 data  but i need data from 6 to 10 .
}

pls share u r thoughts on this.

Thanks
Chythanya
On Nov 16, 7:27 am, Davis Ford davisf...@zenoconsulting.biz wrote:
 Hi, here's a blog post I made that shows how I'm using the widget.  It may
 help if you are still looking for a solution.

 http://zenoconsulting.wikidot.com/blog:17

 http://zenoconsulting.wikidot.com/blog:17Regards,
 Davis





 On Wed, Nov 4, 2009 at 2:40 AM, shloka chythanya@gmail.com wrote:

  Thanks Davis !

  Yes,I saw the Bug u have reported.

  I tried with gwtlib.jar and sample code  given for this in the link
 http://code.google.com/p/gwtlib/
  They use PagingTable and write the comparator code for sorting...
  The approach is same as you have suggested...

  So now i have to decide weather to go for PagingScrollTable of
  incubator or PagingTable of gwtlib :)

  Thanks!!

  On Nov 3, 8:36 pm, Davis Ford davisf...@zenoconsulting.biz wrote:
   Sorting does seem to work out of the box.  I ended up building my own
   comparators.

   Here's an example of what I did.  I was going to write up a longer blog
   entry on this -- just haven't had time.

   Let's say I have a simple object like this for my RowValue:

   public class Person {
      private final String first;
      private final String last;
      public Person(String first, String last) { first = first; last = last;
  }
      public String getFirst() { return first; }
      public String getLast() { return last; }

   }

   So, I have to define my table model for Person =

   private final classs DataSourceTableModel extends
  MutableTableModelPerson
   {

       private ListPerson list = new ArrayListPerson();

       public void setData(ListPerson list) { this.list = list; }

       public void requestRows(final Request request,
   TableModel.CallbackPerson callback) {
               callback.onRowsReady(request, new ResponsePerson() {
                   @Override
                   public IteratorPerson getRowValues() {
                       int col =
   request.getColumnSortList().getPrimaryColumn();
                       boolean ascending =
   request.getColumnSortList().isPrimaryAscending();

                       /* col tells you which column the user clicked and
   ascending indicates whether to sort up/down */
                       /* i wrote my own Sorter class that knows how to sort
  a
   collection of my own RowValue T here */
                       /* return the iterator of your sorted collection */
                  }};
        }

   }

   There's a bit more to it, but I found that PagingScrollTable does not
  sort
   by itself -- never worked for me.  I filed a bug on it.  Thus, I do the
   sorting myself, and it works well.

   Hope that helps,
   Davis

   On Mon, Nov 2, 2009 at 11:35 PM, shloka chythanya@gmail.com wrote:

Hi All,
I am trying to implement pagination and sorting using the Incubator's
paging scroll table .Could do pagination but Sorting is not happening.
Please pool in some ideas to solve this.Any guidence is highly
appreciated.
Thanks in Advance.

   --
   Zeno Consulting, Inc.
   home:http://www.zenoconsulting.biz
   blog:http://zenoconsulting.wikidot.com
   p: 248.894.4922
   f: 313.884.2977
  --~--~-~--~~~---~--~~
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubs­cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en
  -~--~~~~--~~--~--~---

 --
 Zeno Consulting, Inc.
 home:http://www.zenoconsulting.biz
 blog:http://zenoconsulting.wikidot.com
 p: 248.894.4922
 f: 313.884.2977- Hide quoted text -

 - Show quoted text -

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 

GWT 2.0 RC1

2009-11-16 Thread Allahbaksh
Hi GWT Team,

I noticed that Bruce has created a page GWT 2.0 RC. But I am not able
to find GWT 2.0 RC1. Is is due on 17th early morning?

Bruce one more request if Google guys can open Google Wave UI Source
code then it would great. That is amazingly fast application with all
functionality which I would desire in any great web application.

Regards,
Allahbaksh

--

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




[gwt-contrib] RR : GWT 2.0 : Fix XHR memory leak in IE

2009-11-16 Thread bobv
Reviewers: jgw,

Message:
Review requested.

Description:
XMLHttpRequest.clearOnReadyStateChange() uses the wrong this object
and doesn't actually clear the handler.

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

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

Affected files:
   M user/src/com/google/gwt/xhr/client/XMLHttpRequest.java


Index: user/src/com/google/gwt/xhr/client/XMLHttpRequest.java
diff --git a/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java  
b/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java
index  
8d3a6a4d3b624511b7c07f7c1f1f411d91122c5d..7ebb3da90b7934d164d931d75e883d78bcc7033d
  
100644
--- a/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java
+++ b/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java
@@ -111,8 +111,9 @@ public class XMLHttpRequest extends JavaScriptObject {
 * @see http://www.w3.org/TR/XMLHttpRequest/#onreadystatechange
 */
public final native void clearOnReadyStateChange() /*-{
+var self = this;
  $wnd.setTimeout(function() {
-  this.onreadystatechange = function(){};
+  self.onreadystatechange = @null::nullMethod();
  }, 0);
}-*/;



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


[gwt-contrib] Re: Inconsistent behavior between DevMode and ProdMode for runtime exception handling with deRPC

2009-11-16 Thread BobV
 -In Prod Mode
 Error 500 The call failed on the server; see server log for details
 StatusCodeException  (this exception should be InvocationException, right?)

That's a bug.  It shouldn't be returning a 500 status code.  Please file a bug.

-- 
Bob Vawter
Google Web Toolkit Team

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


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

2009-11-16 Thread codesite-noreply
Revision: 6905
Author: tamplinjohn
Date: Mon Nov 16 07:06:05 2009
Log: Edited wiki page through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=6905

Modified:
  /wiki/UsingOOPHM.wiki

===
--- /wiki/UsingOOPHM.wiki   Wed Nov 11 14:57:55 2009
+++ /wiki/UsingOOPHM.wiki   Mon Nov 16 07:06:05 2009
@@ -15,22 +15,14 @@

  You will need to install a plugin in each browser you intend to use with  
OOPHM.

-  * *Google Chrome (Windows x86 only, Dev channel)*
-  font color=red_*Note: this is relatively untested, but appears to  
work.*_/fontbr
-  If you are running the !DevChannel version of Google Chrome on Windows  
x86  ([http://dev.chromium.org/getting-involved/dev-channel instructions]  
for switching to !DevChannel), you can install the  
[https://dl-ssl.google.com/gwt/plugins/chrome/gwt-dev-plugin.crx GWT Chrome  
extension].  Note that performance is slower than the other browsers right  
now because the plugin runs in an isolated process, though we may be able  
to improve performance before the final release.  Also, you may get  
a plugin unresponsive warning which is annoying but harmless.
-
+If you start DevMode in a browser without the plugin, you will get to the  
page allowing you to install the plugin.  If you want to install it ahead  
of time, you can go directly
+to that [http://gwt-dev-plugin-missing.appspot.com/ missing-plugin page]  
to install the plugin.
+
+The plugins currently available for the following browsers/platforms:
+  * *Google Chrome (Windows x86 only, Dev channel)*
* *Firefox on Windows (x86), Mac (PPC/x86), or Linux (x86/x86_64)*
-  font color=red_*Note: If you have previously installed an OOPHM  
plugin, you will need to uninstall or disable it first.*_/fontbr
-  Install the
-  [https://dl-ssl.google.com/gwt/plugins/firefox/gwt-dev-plugin.xpi  
Firefox Plugin]
-  for Firefox 3.0/3.5
-
-  * *Safari 3/4 on MacOSX (PPC/x86)*
-  Run the installer from this  
[http://google-web-toolkit.googlecode.com/svn/trunk/plugins/webkit/prebuilt/oophm.dmg
  
disk image].  Note that x86_64 is not yet supported, which means Safari on  
Snow Leopard is not yet supported.
-
+  * *Safari 3/4 on MacOSX (PPC/x86 - not yet on Snow Leopard)*
* *IE6/7/8 (32-bit IE only)*
-  font color=red_*Note: If you have previously manually registered the  
OOPHM DLL, you will need to deregister it first with regsvr32 /u  
oophm.dll.*_/fontbr
-  Download and run the  
[http://google-web-toolkit.googlecode.com/svn/trunk/plugins/ie/prebuilt/GwtDevModeIePluginInstaller.msi
  
GWT Dev Mode Plugin for IE] installer.

  = Using OOPHM =
  OOPHM is currently in trunk (it is not and will not be available with any  
version of GWT earlier than 2.0), and is now enabled by default.

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


[gwt-contrib] [google-web-toolkit] r6906 committed - tr...@6895 was merged into this branch...

2009-11-16 Thread codesite-noreply
Revision: 6906
Author: jlaba...@google.com
Date: Mon Nov 16 07:56:07 2009
Log: tr...@6895 was merged into this branch
   Updating the Gwt Developer Plugin for IE to use the latest terminology
 svn merge --ignore-ancestry -c6895  
http://google-web-toolkit.googlecode.com/svn/trunk/ .

Patch by: jlabanca


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

Added:
  /releases/2.0/plugins/ie/prebuilt/gwt-dev-plugin.msi
Deleted:
  /releases/2.0/plugins/ie/installer/COPYING.rtf
  /releases/2.0/plugins/ie/installer/GwtBanner.bmp
  /releases/2.0/plugins/ie/installer/GwtDialog.bmp
  /releases/2.0/plugins/ie/prebuilt/GwtDevModeIePluginInstaller.msi
Modified:
  /releases/2.0/branch-info.txt
  /releases/2.0/plugins/ie/installer/README.txt
  /releases/2.0/plugins/ie/installer/build.xml
  /releases/2.0/plugins/ie/installer/installer.wxs.xml

===
--- /dev/null   
+++ /releases/2.0/plugins/ie/prebuilt/gwt-dev-plugin.msiMon Nov 16  
07:56:07 2009
Binary file, no diff available.
===
--- /releases/2.0/plugins/ie/installer/COPYING.rtf  Thu Oct  8 12:28:52 2009
+++ /dev/null
@@ -1,252 +0,0 @@
-{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}
-{\*\generator Msftedit  
5.41.15.1515;}\viewkind4\uc1\pard\lang1033\f0\fs20GOOGLE WEB  
TOOLKIT LICENSE INFORMATION\par
-\par
-March 3, 2008\par
-\par
-The Google Web Toolkit software and sample code developed by Google is \par
-licensed under the Apache License, v. 2.0. Other software included in this  
\par
-distribution is provided under other licenses, as listed in the Included  
\par
-Software and Licenses section at the bottom of this page. Source code for  
\par
-software included in this distribution is available from the Google Web  
\par
-Toolkit project or as otherwise indicated at the bottom of this page. \par
-\par
-Please note that the executable version of the Google Web Toolkit \par
-distributed by Google will communicate with Google's servers to check for  
\par
-available updates. If updates are available, you will receive the option  
to \par
-install them. \par
-\par
-=\par
-\par
-Apache License\par
-Version 2.0, January 2004\par
-http://www.apache.org/licenses/ \par
-\par
-1. Definitions.\par
-\par
-License shall mean the terms and conditions for use, reproduction, and  
\par
-distribution as defined by Sections 1 through 9 of this document. \par
-\par
-Licensor shall mean the copyright owner or entity authorized by the \par
-copyright owner that is granting the License. \par
-\par
-Legal Entity shall mean the union of the acting entity and all other \par
-entities that control, are controlled by, or are under common control with  
\par
-that entity. For the purposes of this definition, control means (i) the  
\par
-power, direct or indirect, to cause the direction or management of such  
\par
-entity, whether by contract or otherwise, or (ii) ownership of fifty  
percent \par
-(50%) or more of the outstanding shares, or (iii) beneficial ownership of  
\par
-such entity. \par
-\par
-You (or Your) shall mean an individual or Legal Entity exercising \par
-permissions granted by this License. \par
-\par
-Source form shall mean the preferred form for making modifications, \par
-including but not limited to software source code, documentation source,  
and \par
-configuration files. \par
-\par
-Object form shall mean any form resulting from mechanical transformation  
\par
-or translation of a Source form, including but not limited to compiled \par
-object code, generated documentation, and conversions to other media  
types. \par
-\par
-Work shall mean the work of authorship, whether in Source or Object  
form, \par
-made available under the License, as indicated by a copyright notice that  
is \par
-included in or attached to the work (an example is provided in the  
Appendix \par
-below). \par
-\par
-Derivative Works shall mean any work, whether in Source or Object form,  
\par
-that is based on (or derived from) the Work and for which the editorial  
\par
-revisions, annotations, elaborations, or other modifications represent, as  
a \par
-whole, an original work of authorship. For the purposes of this License,  
\par
-Derivative Works shall not include works that remain separable from, or  
\par
-merely link (or bind by name) to the interfaces of, the Work and  
Derivative \par
-Works thereof. \par
-\par
-Contribution shall mean any work of authorship, including the original  
\par
-version of the Work and any modifications or additions to that Work or \par
-Derivative Works thereof, that is intentionally submitted to Licensor for  
\par
-inclusion in the Work by the copyright owner or by an individual or Legal  
\par
-Entity authorized to submit on behalf of the copyright owner. For the \par
-purposes of this definition, submitted means any form of electronic, \par
-verbal, or written communication sent to the Licensor or its \par

[gwt-contrib] Re: Comment on UiBinder in google-web-toolkit

2009-11-16 Thread codesite-noreply
Comment by alex.dob...@gmail.com:

I'd like to use a Css file from which I'm not using ALL the stylesnames  
initially. However, I've noticed the generated CssResource does not include  
unused stylenames. Is there a way to solve this solution (somewhere in the  
code to use addStyleName) ?


For more information:
http://code.google.com/p/google-web-toolkit/wiki/UiBinder

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


[gwt-contrib] [google-web-toolkit] r6908 committed - tr...@6907 was merged into this branch...

2009-11-16 Thread codesite-noreply
Revision: 6908
Author: jlaba...@google.com
Date: Mon Nov 16 08:25:35 2009
Log: tr...@6907 was merged into this branch
   Add registry keys to IE plugin installer
 svn merge --ignore-ancestry -c6907  
http://google-web-toolkit.googlecode.com/svn/trunk/ .

Patch by: jlabanca


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

Modified:
  /releases/2.0/branch-info.txt
  /releases/2.0/plugins/ie/installer/installer.wxs.xml
  /releases/2.0/plugins/ie/prebuilt/gwt-dev-plugin.msi

===
--- /releases/2.0/branch-info.txt   Mon Nov 16 07:56:07 2009
+++ /releases/2.0/branch-info.txt   Mon Nov 16 08:25:35 2009
@@ -660,3 +660,7 @@
  tr...@6895 was merged into this branch
Updating the Gwt Developer Plugin for IE to use the latest terminology
  svn merge --ignore-ancestry -c6895  
http://google-web-toolkit.googlecode.com/svn/trunk/ .
+
+tr...@6907 was merged into this branch
+  Add registry keys to IE plugin installer
+svn merge --ignore-ancestry -c6907  
http://google-web-toolkit.googlecode.com/svn/trunk/ .
===
--- /releases/2.0/plugins/ie/installer/installer.wxs.xmlMon Nov 16  
07:56:07 2009
+++ /releases/2.0/plugins/ie/installer/installer.wxs.xmlMon Nov 16  
08:25:35 2009
@@ -2,24 +2,29 @@
  Wix
xmlns='http://schemas.microsoft.com/wix/2006/wi'

+  !-- Variables. --
+  ?define appName = Google Web Toolkit Developer Plugin for IE ?
+  ?define version = 0.9.0 ?
+  ?define upgradeCode = 9a5e649a-ec63-4c7d-99bf-75adb345e7e5 ?
+
!--
  The main product to install. We generate a new GUID (*) on each
  compile to ensure that windows installer completely removes the old
  version and reinstalls the new version without complaining.
--
Product
-Name='Google Web Toolkit Developer Plugin'
+Name='$(var.appName)'
  Id='*'
-UpgradeCode='9a5e649a-ec63-4c7d-99bf-75adb345e7e5'
+UpgradeCode='$(var.upgradeCode)'
  Language='1033'
  Codepage='1252'
-Version='1.0.0'
+Version='$(var.version)'
  Manufacturer='Google'

  Package
Id='*'
Keywords='Installer'
-  Description='Google Web Toolkit Developer Plugin Installer'
+  Description='$(var.appName) Installer'
Manufacturer='Google'
InstallerVersion='100'
Languages='1033'
@@ -30,9 +35,12 @@
Cabinet='product.cab'
EmbedCab='yes' /

+!-- Suppress reboot prompts. --
+Property Id='REBOOT'ReallySuppress/Property
+
  !-- Remove old version completely when upgrading.  --
  Upgrade
-  Id='9a5e649a-ec63-4c7d-99bf-75adb345e7e5'
+  Id='$(var.upgradeCode)'
UpgradeVersion
  OnlyDetect='no'
  Property='PREVIOUSFOUND'
@@ -72,6 +80,30 @@
/Directory
  /Directory

+!-- Set some registry values. --
+Component
+  Id='registryValues'
+  Directory='INSTALLDIR'
+  Guid='*'
+  RegistryKey
+Root='HKLM'
+Action='createAndRemoveOnUninstall'
+Key='SOFTWARE\Google\Update\Clients\{$(var.upgradeCode)}'
+RegistryValue
+  Name='pv'
+  Value='$(var.version)'
+  Type='string' /
+RegistryValue
+  Name='name'
+  Value='$(var.appName)'
+  Type='string' /
+RegistryValue
+  Name='lang'
+  Value='en'
+  Type='string' /
+  /RegistryKey
+/Component
+
  !-- Define the features to install. --
  Feature
Id='CompleteFeature'
@@ -84,6 +116,8 @@
--
ComponentGroupRef
  Id='oophmDll' /
+  ComponentRef
+Id='registryValues' /
  /Feature

/Product
===
--- /releases/2.0/plugins/ie/prebuilt/gwt-dev-plugin.msiMon Nov 16  
07:56:07 2009
+++ /releases/2.0/plugins/ie/prebuilt/gwt-dev-plugin.msiMon Nov 16  
08:25:35 2009
Binary file, no diff available.

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


[gwt-contrib] [google-web-toolkit] r6909 committed - Work around JSNI uses of JSOs as maps on Chrome in DevMode (where the ...

2009-11-16 Thread codesite-noreply
Revision: 6909
Author: j...@google.com
Date: Mon Nov 16 08:32:42 2009
Log: Work around JSNI uses of JSOs as maps on Chrome in DevMode (where the  
plugin
adds __gwt_ObjectId to any JS object passed to Java to preserve object
identity).  We fix it by overriding Object.prototype.hasOwnProperty and  
fixing
Dictionary to use it.

User-written JSNI may need to make similar changes.

Patch by: jat
Review by: jlabanca

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

Modified:
  /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html
  /trunk/user/src/com/google/gwt/i18n/client/Dictionary.java

===
--- /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html Fri  
Nov 13 09:04:35 2009
+++ /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html Mon  
Nov 16 08:32:42 2009
@@ -72,13 +72,22 @@
  external.gwtOnLoad(window, null, $hostedHtmlVersion);
};
  } else {
-  // install eval wrapper on FF to avoid EvalError problem
-  if (navigator.userAgent.toLowerCase().indexOf(gecko) != -1) {
+  var ua = navigator.userAgent.toLowerCase();
+  if (ua.indexOf(gecko) != -1) {
+// install eval wrapper on FF to avoid EvalError problem
+// TODO(jat): should this UA check be more specific (this hits chrome  
too)?
  var __eval = window.eval;
  window.eval = function(s) {
return __eval(s);
  }
}
+  if (ua.indexOf(chrome) != -1) {
+// work around __gwt_ObjectId appearing in JS objects
+var hop = Object.prototype.hasOwnProperty;
+Object.prototype.hasOwnProperty = function(prop) {
+  return prop != __gwt_ObjectId  hop.call(this, prop);
+};
+  }

// wrapper to call JS methods, which we need both to be able to supply a
// different this for method lookup and to get the exception back
===
--- /trunk/user/src/com/google/gwt/i18n/client/Dictionary.java  Mon Jun  1  
16:12:37 2009
+++ /trunk/user/src/com/google/gwt/i18n/client/Dictionary.java  Mon Nov 16  
08:32:42 2009
@@ -143,20 +143,19 @@
 * @throws MissingResourceException if the value is not found
 */
public native String get(String key) /*-{
-   var value = th...@com.google.gwt.i18n.client.dictionary::dict[key];
-   var keys = th...@com.google.gwt.i18n.client.dictionary::accessedKeys;
-   keys.unshift(key);
-   // only keep the last 30 elements. Shrink it when array exceeds 60
-   if (keys.length  60) {
- keys.splice(30);
-   }
-   if (value == null || !Object.prototype.hasOwnProperty.call(
-   th...@com.google.gwt.i18n.client.dictionary::dict, key))
-   {
-  
th...@com.google.gwt.i18n.client.dictionary::resourceError(Ljava/lang/String;)(key);
-   }
-   return String(value);
-   }-*/;
+var map = th...@com.google.gwt.i18n.client.dictionary::dict;
+var value = map[key];
+var keys = th...@com.google.gwt.i18n.client.dictionary::accessedKeys;
+keys.unshift(key);
+// only keep the last 30 elements. Shrink it when array exceeds 60
+if (keys.length  60) {
+  keys.splice(30);
+}
+if (value == null || !map.hasOwnProperty(key)) {
+   
th...@com.google.gwt.i18n.client.dictionary::resourceError(Ljava/lang/String;)(key);
+}
+return String(value);
+  }-*/;

/**
 * The set of keys associated with this dictionary.
@@ -196,15 +195,21 @@
}

private native void addKeys(HashSetString s) /*-{
-for (x in th...@com.google.gwt.i18n.client.dictionary::dict) {
-  s...@java.util.hashset::add(Ljava/lang/Object;)(x);
+var map = th...@com.google.gwt.i18n.client.dictionary::dict
+for (var key in map) {
+  if (map.hasOwnProperty(key)) {
+s...@java.util.hashset::add(Ljava/lang/Object;)(key);
+  }
  }
}-*/;

private native void addValues(ArrayListString s) /*-{
-for (x in th...@com.google.gwt.i18n.client.dictionary::dict) {
-  var value =  
th...@com.google.gwt.i18n.client.dictionary::get(Ljava/lang/String;)(x);
-  s...@java.util.arraylist::add(Ljava/lang/Object;)(value);
+var map = th...@com.google.gwt.i18n.client.dictionary::dict
+for (var key in map) {
+  if (map.hasOwnProperty(key)) {
+var value =  
th...@com.google.gwt.i18n.client.dictionary::get(Ljava/lang/String;)(key);
+s...@java.util.arraylist::add(Ljava/lang/Object;)(value);
+  }
  }
}-*/;

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


[gwt-contrib] [google-web-toolkit] r6910 committed - Merge trunk r6909 into this branch...

2009-11-16 Thread codesite-noreply
Revision: 6910
Author: j...@google.com
Date: Mon Nov 16 08:35:40 2009
Log: Merge trunk r6909 into this branch

Fixes JSNI uses of JSOs as maps in Chrome DevMode.

svn merge --ignore-ancestry -c6909 \
https://google-web-toolkit.googlecode.com/svn/trunk/ .


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

Modified:
  /releases/2.0/branch-info.txt
  /releases/2.0/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html
  /releases/2.0/user/src/com/google/gwt/i18n/client/Dictionary.java

===
--- /releases/2.0/branch-info.txt   Mon Nov 16 08:25:35 2009
+++ /releases/2.0/branch-info.txt   Mon Nov 16 08:35:40 2009
@@ -664,3 +664,8 @@
  tr...@6907 was merged into this branch
Add registry keys to IE plugin installer
  svn merge --ignore-ancestry -c6907  
http://google-web-toolkit.googlecode.com/svn/trunk/ .
+
+tr...@6909 was merged into this branch
+ Fixes JSNI uses of JSOs as maps in Chrome DevMode.
+svn merge --ignore-ancestry -c6909 \
+  https://google-web-toolkit.googlecode.com/svn/trunk/ .
===
---  
/releases/2.0/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html  
 
Fri Nov 13 09:24:32 2009
+++  
/releases/2.0/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html  
 
Mon Nov 16 08:35:40 2009
@@ -94,13 +94,22 @@
  external.gwtOnLoad(window, null, $hostedHtmlVersion);
};
  } else {
-  // install eval wrapper on FF to avoid EvalError problem
-  if (navigator.userAgent.toLowerCase().indexOf(gecko) != -1) {
+  var ua = navigator.userAgent.toLowerCase();
+  if (ua.indexOf(gecko) != -1) {
+// install eval wrapper on FF to avoid EvalError problem
+// TODO(jat): should this UA check be more specific (this hits chrome  
too)?
  var __eval = window.eval;
  window.eval = function(s) {
return __eval(s);
  }
}
+  if (ua.indexOf(chrome) != -1) {
+// work around __gwt_ObjectId appearing in JS objects
+var hop = Object.prototype.hasOwnProperty;
+Object.prototype.hasOwnProperty = function(prop) {
+  return prop != __gwt_ObjectId  hop.call(this, prop);
+};
+  }

// wrapper to call JS methods, which we need both to be able to supply a
// different this for method lookup and to get the exception back
===
--- /releases/2.0/user/src/com/google/gwt/i18n/client/Dictionary.java   Mon  
Jun  1 16:12:37 2009
+++ /releases/2.0/user/src/com/google/gwt/i18n/client/Dictionary.java   Mon  
Nov 16 08:35:40 2009
@@ -143,20 +143,19 @@
 * @throws MissingResourceException if the value is not found
 */
public native String get(String key) /*-{
-   var value = th...@com.google.gwt.i18n.client.dictionary::dict[key];
-   var keys = th...@com.google.gwt.i18n.client.dictionary::accessedKeys;
-   keys.unshift(key);
-   // only keep the last 30 elements. Shrink it when array exceeds 60
-   if (keys.length  60) {
- keys.splice(30);
-   }
-   if (value == null || !Object.prototype.hasOwnProperty.call(
-   th...@com.google.gwt.i18n.client.dictionary::dict, key))
-   {
-  
th...@com.google.gwt.i18n.client.dictionary::resourceError(Ljava/lang/String;)(key);
-   }
-   return String(value);
-   }-*/;
+var map = th...@com.google.gwt.i18n.client.dictionary::dict;
+var value = map[key];
+var keys = th...@com.google.gwt.i18n.client.dictionary::accessedKeys;
+keys.unshift(key);
+// only keep the last 30 elements. Shrink it when array exceeds 60
+if (keys.length  60) {
+  keys.splice(30);
+}
+if (value == null || !map.hasOwnProperty(key)) {
+   
th...@com.google.gwt.i18n.client.dictionary::resourceError(Ljava/lang/String;)(key);
+}
+return String(value);
+  }-*/;

/**
 * The set of keys associated with this dictionary.
@@ -196,15 +195,21 @@
}

private native void addKeys(HashSetString s) /*-{
-for (x in th...@com.google.gwt.i18n.client.dictionary::dict) {
-  s...@java.util.hashset::add(Ljava/lang/Object;)(x);
+var map = th...@com.google.gwt.i18n.client.dictionary::dict
+for (var key in map) {
+  if (map.hasOwnProperty(key)) {
+s...@java.util.hashset::add(Ljava/lang/Object;)(key);
+  }
  }
}-*/;

private native void addValues(ArrayListString s) /*-{
-for (x in th...@com.google.gwt.i18n.client.dictionary::dict) {
-  var value =  
th...@com.google.gwt.i18n.client.dictionary::get(Ljava/lang/String;)(x);
-  s...@java.util.arraylist::add(Ljava/lang/Object;)(value);
+var map = th...@com.google.gwt.i18n.client.dictionary::dict
+for (var key in map) {
+  if (map.hasOwnProperty(key)) {
+var value =  
th...@com.google.gwt.i18n.client.dictionary::get(Ljava/lang/String;)(key);
+s...@java.util.arraylist::add(Ljava/lang/Object;)(value);
+  }
  }
}-*/;

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


[gwt-contrib] Re: Fix a nasty attribute parsing bug in UiBinder

2009-11-16 Thread rjrjr
Lex, can you take this? I think Joel is on the road.

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

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


[gwt-contrib] Re: Fix a nasty attribute parsing bug in UiBinder

2009-11-16 Thread spoon
Sure thing, looking now.

And here I'd hoped never to have to think too much about XML namespaces.

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

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


[gwt-contrib] [google-web-toolkit] r6912 committed - Restore behavior where hosted mode linking will not overwrite a newer ...

2009-11-16 Thread codesite-noreply
Revision: 6912
Author: sco...@google.com
Date: Mon Nov 16 09:48:58 2009
Log: Restore behavior where hosted mode linking will not overwrite a newer  
compiled selection script.

And generally, older resources won't overwrite newer ones.

Review by: spoon (desk)
http://code.google.com/p/google-web-toolkit/source/detail?r=6912

Modified:
  /trunk/dev/core/src/com/google/gwt/dev/util/NullOutputFileSet.java
  /trunk/dev/core/src/com/google/gwt/dev/util/OutputFileSetOnDirectory.java

===
--- /trunk/dev/core/src/com/google/gwt/dev/util/NullOutputFileSet.java  Tue  
Oct 27 18:11:59 2009
+++ /trunk/dev/core/src/com/google/gwt/dev/util/NullOutputFileSet.java  Mon  
Nov 16 09:48:58 2009
@@ -22,7 +22,7 @@
   * An {...@link OutputFileSet} that discards all data sent to it.
   */
  public class NullOutputFileSet extends OutputFileSet {
-  private static class NullOutputStream extends OutputStream {
+  static class NullOutputStream extends OutputStream {
  @Override
  public void write(byte[] b) throws IOException {
  }
===
---  
/trunk/dev/core/src/com/google/gwt/dev/util/OutputFileSetOnDirectory.java   
 
Tue Oct 27 18:11:59 2009
+++  
/trunk/dev/core/src/com/google/gwt/dev/util/OutputFileSetOnDirectory.java   
 
Mon Nov 16 09:48:58 2009
@@ -15,6 +15,7 @@
   */
  package com.google.gwt.dev.util;

+import com.google.gwt.dev.util.NullOutputFileSet.NullOutputStream;
  import com.google.gwt.dev.util.collect.HashSet;

  import java.io.File;
@@ -42,14 +43,28 @@
}

@Override
-  public OutputStream openForWrite(String path, long lastModifiedTime)
+  public OutputStream openForWrite(String path, final long  
lastModifiedTime)
throws IOException {
+final File file = makeFileForPath(path);
+if (file.exists()  file.lastModified() = lastModifiedTime) {
+  return new NullOutputStream();
+}
+mkdirs(file.getParentFile());
+return new FileOutputStream(file) {
+  @Override
+  public void close() throws IOException {
+super.close();
+file.setLastModified(lastModifiedTime);
+  }
+};
+  }
+
+  private File makeFileForPath(String path) {
  File file = dir;
  for (String part : (prefix + path).split(/)) {
file = new File(file, part);
  }
-mkdirs(file.getParentFile());
-return new FileOutputStream(file);
+return file;
}

/**

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


[gwt-contrib] Re: Fix a nasty attribute parsing bug in UiBinder

2009-11-16 Thread spoon
LGTM.



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

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


[gwt-contrib] [google-web-toolkit] r6913 committed - AttributeParsing was pretty much working by accident, and not at all f...

2009-11-16 Thread codesite-noreply
Revision: 6913
Author: rj...@google.com
Date: Mon Nov 16 10:04:26 2009
Log: AttributeParsing was pretty much working by accident, and not at all  
for the
deprecated urn:with mechanism. I'm not 100% certain there weren't  
non-deprecated
paths that were broken too.

Attribute parsing is still too complicated, but it's better tested now and  
goes
through only two bottlenecks. Should be able to reduce that to one when the
deprecated code is dumped.

Also fixes a stray null in the deprecation message for urn:with

Reviewed by spoon
http://gwt-code-reviews.appspot.com/102818
http://code.google.com/p/google-web-toolkit/source/detail?r=6913

Modified:
   
/trunk/user/src/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java
  /trunk/user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java
  /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
  /trunk/user/src/com/google/gwt/uibinder/rebind/XMLAttribute.java
  /trunk/user/src/com/google/gwt/uibinder/rebind/XMLElement.java
   
/trunk/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java
  /trunk/user/test/com/google/gwt/uibinder/rebind/XMLElementTest.java
  /trunk/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
  /trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java
  /trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml

===
---  
/trunk/user/src/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java
 
Fri Nov  6 16:08:46 2009
+++  
/trunk/user/src/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java
 
Mon Nov 16 10:04:26 2009
@@ -38,7 +38,6 @@
private static final String BUNDLE_URI_SCHEME = urn:with:;

private final TypeOracle oracle;
-  private final String gwtPrefix;
private final MortalLogger logger;
private final OwnerClass ownerClass;
private final String templatePath;
@@ -49,11 +48,9 @@
 */
private final MapString, BundleAttributeParser parsers = new  
LinkedHashMapString, BundleAttributeParser();

-  public BundleAttributeParsers(TypeOracle oracle, String gwtPrefix,
-  MortalLogger logger, OwnerClass ownerClass, String templatePath,
-  JClassType uiOwnerType) {
+  public BundleAttributeParsers(TypeOracle oracle, MortalLogger logger,
+  OwnerClass ownerClass, String templatePath, JClassType uiOwnerType) {
  this.oracle = oracle;
-this.gwtPrefix = gwtPrefix;
  this.logger = logger;
  this.ownerClass = ownerClass;
  this.templatePath = templatePath;
@@ -66,12 +63,10 @@

public BundleAttributeParser get(XMLAttribute attribute)
throws UnableToCompleteException {
-if (attribute.getNamespaceUri() == null) {
-  return null;
-}
-
  String attributePrefixUri = attribute.getNamespaceUri();
-if (!attributePrefixUri.startsWith(BUNDLE_URI_SCHEME)) {
+
+if ((attributePrefixUri == null)
+|| !attributePrefixUri.startsWith(BUNDLE_URI_SCHEME)) {
return null;
  }

@@ -100,10 +95,9 @@
XMLAttribute attribute) throws UnableToCompleteException {

  final String templateResourceName = attribute.getName().split(:)[0];
-warn(The %1$s mechanism is deprecated. Instead, declare the  
following 
-+ %2$s:with element as a child of your %2$s:UiBinder element: 
-+ %2$s:with field='%3$s' type='%4$s.%5$s' /, BUNDLE_URI_SCHEME,
-gwtPrefix, templateResourceName,  
bundleClass.getPackage().getName(),
+warn(\%s\ is deprecated by 
++ ui:with field='%s' type='%s.%s' /, BUNDLE_URI_SCHEME,
+templateResourceName, bundleClass.getPackage().getName(),
  bundleClass.getName());

  // Try to find any bundle instance created with UiField.
===
--- /trunk/user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java  
 
Wed Nov 11 22:08:47 2009
+++ /trunk/user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java  
 
Mon Nov 16 10:04:26 2009
@@ -116,7 +116,7 @@
String propertyName = attribute.getLocalName();
if (setterValues.keySet().contains(propertyName)
|| requiredValues.containsKey(propertyName)) {
-writer.die(Duplicate attribute name: %s, propertyName);
+writer.die(In %s, duplicate attribute name: %s, elem,  
propertyName);
}

if (unfilledRequiredParams.keySet().contains(propertyName)) {
===
--- /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java  Wed  
Nov 11 22:08:47 2009
+++ /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java  Mon  
Nov 16 10:04:26 2009
@@ -262,8 +262,8 @@
  handlerEvaluator = new HandlerEvaluator(ownerClass, logger, oracle);

  attributeParsers = new AttributeParsers(oracle, fieldManager, logger);
-bundleParsers = new BundleAttributeParsers(oracle, gwtPrefix, logger,
-getOwnerClass(), templatePath, uiOwnerType);
+

Re: [gwt-contrib] TaskEngine sample patched for GWT 2.0 MS 2

2009-11-16 Thread Jaime Yap
Thanks for the patch :).

I have been planning on updating the sample for some time now but just never
got around to doing it.

In addition to porting it to use ClientBundle, I was planning on adding
appcache support and implementing an offline mode. Maybe ill block off an
afternoon and finish that up.

-Jaime

On Sat, Nov 14, 2009 at 11:24 AM, Stuart Moffatt stuartmoff...@gmail.comwrote:

 All,

 [excuse the cross posting to gwt/appengine]

 The TaskEngine sample application (http://taskengine.googlecode.com)
 by jaimeyap is a Google Web Toolkit application that runs on App
 Engine (http://taskengine.appspot.com) but is especially designed for
 use on iPhone.

 TaskEngine depends on GWT Incubator (http://code.google.com/p/google-
 web-toolkit-incubator) for CssResource, which is now folded into the
 main GWT trunk with GWT 2.0 Milestone 2. (http://code.google.com/p/
 google-web-toolkit/downloads/list?can=1q=2.0+Milestone+2).

 I have patched the TaskEngine sample code to remove the dependency for
 the incubator jar, and use the updated annotations for CssResource and
 ClientBundle available in GWT 2.0 MS 2. The patch is located at:
 http://code.google.com/p/emcode/wiki/TaskEnginePatchGWT20MS2

 I have posted a screencast of TaskEngine running in the iPhone SDK
 emulator at: http://www.youtube.com/watch?v=LuJi6nadVhU

 Stuart

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


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

[gwt-contrib] [google-web-toolkit] r6914 committed - tr...@6911 was merged into this branch...

2009-11-16 Thread codesite-noreply
Revision: 6914
Author: sco...@google.com
Date: Mon Nov 16 10:54:36 2009
Log: tr...@6911 was merged into this branch
   gwt-user should not reference the dev collections, this causes server  
failures.
 svn merge --ignore-ancestry -c6911  
https://google-web-toolkit.googlecode.com/svn/trunk/ .


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

Modified:
  /releases/2.0/branch-info.txt
  /releases/2.0/user/src/com/google/gwt/rpc/server/RPC.java

===
--- /releases/2.0/branch-info.txt   Mon Nov 16 08:35:40 2009
+++ /releases/2.0/branch-info.txt   Mon Nov 16 10:54:36 2009
@@ -655,17 +655,21 @@

  tr...@6903 was merged into this branch
Updates release notes for GWT 2.0 RC
-svn merge --ignore-ancestry -c6903  
http://google-web-toolkit.googlecode.com/svn/trunk/ .
+svn merge --ignore-ancestry -c6903  
http://google-web-toolkit.googlecode.com/svn/trunk/ .

  tr...@6895 was merged into this branch
Updating the Gwt Developer Plugin for IE to use the latest terminology
-svn merge --ignore-ancestry -c6895  
http://google-web-toolkit.googlecode.com/svn/trunk/ .
+svn merge --ignore-ancestry -c6895  
http://google-web-toolkit.googlecode.com/svn/trunk/ .

  tr...@6907 was merged into this branch
Add registry keys to IE plugin installer
-svn merge --ignore-ancestry -c6907  
http://google-web-toolkit.googlecode.com/svn/trunk/ .
+svn merge --ignore-ancestry -c6907  
http://google-web-toolkit.googlecode.com/svn/trunk/ .

  tr...@6909 was merged into this branch
   Fixes JSNI uses of JSOs as maps in Chrome DevMode.
  svn merge --ignore-ancestry -c6909 \
https://google-web-toolkit.googlecode.com/svn/trunk/ .
+
+tr...@6911 was merged into this branch
+  gwt-user should not reference the dev collections, this causes server  
failures.
+svn merge --ignore-ancestry -c6911  
https://google-web-toolkit.googlecode.com/svn/trunk/ .
===
--- /releases/2.0/user/src/com/google/gwt/rpc/server/RPC.java   Mon Nov  2  
12:44:54 2009
+++ /releases/2.0/user/src/com/google/gwt/rpc/server/RPC.java   Mon Nov 16  
10:54:36 2009
@@ -51,7 +51,7 @@
 * Static map of classes to sets of interfaces (e.g. classes). Optimizes
 * lookup of interfaces for security.
 */
-  private static final MapClass?, SetString  
serviceToImplementedInterfacesMap = new  
com.google.gwt.dev.util.collect.HashMapClass?, SetString();
+  private static final MapClass?, SetString  
serviceToImplementedInterfacesMap = new HashMapClass?, SetString();

static {
  // The space is needed to prevent name collisions

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


[gwt-contrib] Re: Fix a nasty attribute parsing bug in UiBinder

2009-11-16 Thread rjrjr
tr...@6913

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

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


[gwt-contrib] Re: Comment on UsingOOPHM in google-web-toolkit

2009-11-16 Thread codesite-noreply
Comment by mark.renouf:

This patch will make GAE/Eclipse happy for now, seems to work with no side  
effects. Patch and build with 'ant dist-dev'.

Index: dev/core/src/com/google/gwt/dev/DevModeBase.java
===
--- dev/core/src/com/google/gwt/dev/DevModeBase.java(revision 6906)
+++ dev/core/src/com/google/gwt/dev/DevModeBase.java(working copy)
@@ -41,6 +41,7 @@
  import com.google.gwt.dev.util.Util;
  import com.google.gwt.dev.util.arg.ArgHandlerGenDir;
  import com.google.gwt.dev.util.arg.ArgHandlerLogLevel;
+import com.google.gwt.dev.util.arg.ArgHandlerScriptStyle;
  import com.google.gwt.dev.util.arg.OptionGenDir;
  import com.google.gwt.dev.util.arg.OptionLogLevel;
  import com.google.gwt.util.tools.ArgHandlerFlag;
@@ -570,6 +571,7 @@
registerHandler(new ArgHandlerGenDir(options));
registerHandler(new ArgHandlerPortHosted(options));
registerHandler(new ArgHandlerRemoteUI(options));
+  registerHandler(new ArgHandlerScriptStyle(options));
  }
}




For more information:
http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM

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


[gwt-contrib] Re: Comment on UsingOOPHM in google-web-toolkit

2009-11-16 Thread codesite-noreply
Comment by mark.renouf:

This patch will make GAE/Eclipse happy for now, seems to work with no side  
effects. Patch and build with 'ant dist-dev'.

{{{
Index: dev/core/src/com/google/gwt/dev/DevModeBase.java
===
--- dev/core/src/com/google/gwt/dev/DevModeBase.java(revision 6906)
+++ dev/core/src/com/google/gwt/dev/DevModeBase.java(working copy)
@@ -41,6 +41,7 @@
  import com.google.gwt.dev.util.Util;
  import com.google.gwt.dev.util.arg.ArgHandlerGenDir;
  import com.google.gwt.dev.util.arg.ArgHandlerLogLevel;
+import com.google.gwt.dev.util.arg.ArgHandlerScriptStyle;
  import com.google.gwt.dev.util.arg.OptionGenDir;
  import com.google.gwt.dev.util.arg.OptionLogLevel;
  import com.google.gwt.util.tools.ArgHandlerFlag;
@@ -570,6 +571,7 @@
registerHandler(new ArgHandlerGenDir(options));
registerHandler(new ArgHandlerPortHosted(options));
registerHandler(new ArgHandlerRemoteUI(options));
+  registerHandler(new ArgHandlerScriptStyle(options));
  }
}

}}}


For more information:
http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM

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


[gwt-contrib] [google-web-toolkit] r6915 committed - Merges tr...@6913 into releases/2.0...

2009-11-16 Thread codesite-noreply
Revision: 6915
Author: rj...@google.com
Date: Mon Nov 16 11:27:22 2009
Log: Merges tr...@6913 into releases/2.0
   UiBinder attribute parsing was pretty much working by accident
   svn merge --ignore-ancestry -c 6913  
https://google-web-toolkit.googlecode.com/svn/trunk .


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

Modified:
  /releases/2.0/branch-info.txt
   
/releases/2.0/user/src/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java
   
/releases/2.0/user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java
  /releases/2.0/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
  /releases/2.0/user/src/com/google/gwt/uibinder/rebind/XMLAttribute.java
  /releases/2.0/user/src/com/google/gwt/uibinder/rebind/XMLElement.java
   
/releases/2.0/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java
  /releases/2.0/user/test/com/google/gwt/uibinder/rebind/XMLElementTest.java
   
/releases/2.0/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
   
/releases/2.0/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java
   
/releases/2.0/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml

===
--- /releases/2.0/branch-info.txt   Mon Nov 16 10:54:36 2009
+++ /releases/2.0/branch-info.txt   Mon Nov 16 11:27:22 2009
@@ -665,7 +665,7 @@
Add registry keys to IE plugin installer
  svn merge --ignore-ancestry -c6907  
http://google-web-toolkit.googlecode.com/svn/trunk/ .

-tr...@6909 was merged into this branch
+tr...@6909 was merged into this branhc
   Fixes JSNI uses of JSOs as maps in Chrome DevMode.
  svn merge --ignore-ancestry -c6909 \
https://google-web-toolkit.googlecode.com/svn/trunk/ .
@@ -673,3 +673,7 @@
  tr...@6911 was merged into this branch
gwt-user should not reference the dev collections, this causes server  
failures.
  svn merge --ignore-ancestry -c6911  
https://google-web-toolkit.googlecode.com/svn/trunk/ .
+
+tr...@6913 was merged into this branch
+  UiBinder attribute parsing was pretty much working by accident
+  svn merge --ignore-ancestry -c 6913  
https://google-web-toolkit.googlecode.com/svn/trunk .
===
---  
/releases/2.0/user/src/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java
  
Fri Nov  6 17:41:50 2009
+++  
/releases/2.0/user/src/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java
  
Mon Nov 16 11:27:22 2009
@@ -38,7 +38,6 @@
private static final String BUNDLE_URI_SCHEME = urn:with:;

private final TypeOracle oracle;
-  private final String gwtPrefix;
private final MortalLogger logger;
private final OwnerClass ownerClass;
private final String templatePath;
@@ -49,11 +48,9 @@
 */
private final MapString, BundleAttributeParser parsers = new  
LinkedHashMapString, BundleAttributeParser();

-  public BundleAttributeParsers(TypeOracle oracle, String gwtPrefix,
-  MortalLogger logger, OwnerClass ownerClass, String templatePath,
-  JClassType uiOwnerType) {
+  public BundleAttributeParsers(TypeOracle oracle, MortalLogger logger,
+  OwnerClass ownerClass, String templatePath, JClassType uiOwnerType) {
  this.oracle = oracle;
-this.gwtPrefix = gwtPrefix;
  this.logger = logger;
  this.ownerClass = ownerClass;
  this.templatePath = templatePath;
@@ -66,12 +63,10 @@

public BundleAttributeParser get(XMLAttribute attribute)
throws UnableToCompleteException {
-if (attribute.getNamespaceUri() == null) {
-  return null;
-}
-
  String attributePrefixUri = attribute.getNamespaceUri();
-if (!attributePrefixUri.startsWith(BUNDLE_URI_SCHEME)) {
+
+if ((attributePrefixUri == null)
+|| !attributePrefixUri.startsWith(BUNDLE_URI_SCHEME)) {
return null;
  }

@@ -100,10 +95,9 @@
XMLAttribute attribute) throws UnableToCompleteException {

  final String templateResourceName = attribute.getName().split(:)[0];
-warn(The %1$s mechanism is deprecated. Instead, declare the  
following 
-+ %2$s:with element as a child of your %2$s:UiBinder element: 
-+ %2$s:with field='%3$s' type='%4$s.%5$s' /, BUNDLE_URI_SCHEME,
-gwtPrefix, templateResourceName,  
bundleClass.getPackage().getName(),
+warn(\%s\ is deprecated by 
++ ui:with field='%s' type='%s.%s' /, BUNDLE_URI_SCHEME,
+templateResourceName, bundleClass.getPackage().getName(),
  bundleClass.getName());

  // Try to find any bundle instance created with UiField.
===
---  
/releases/2.0/user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java   
 
Wed Nov 11 22:32:37 2009
+++  
/releases/2.0/user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java   
 
Mon Nov 16 11:27:22 2009
@@ -116,7 +116,7 @@
String propertyName = attribute.getLocalName();
if 

[gwt-contrib] Re: Fix a nasty attribute parsing bug in UiBinder

2009-11-16 Thread rjrjr
releases/2...@6915

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

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


[gwt-contrib] [google-web-toolkit] r6916 committed - SOYC artifacts should be private....

2009-11-16 Thread codesite-noreply
Revision: 6916
Author: sco...@google.com
Date: Mon Nov 16 11:29:17 2009
Log: SOYC artifacts should be private.

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

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

===
---  
/trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java
 
Wed Nov 11 16:03:42 2009
+++  
/trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java
 
Mon Nov 16 11:29:17 2009
@@ -952,7 +952,7 @@
SyntheticArtifact dependencies, JavaToJavaScriptMap jjsmap,
MapJsName, String obfuscateMap) throws IOException,
UnableToCompleteException {
-ListArtifact? soycArtifacts = new ArrayListArtifact?();
+ListSyntheticArtifact soycArtifacts = new  
ArrayListSyntheticArtifact();

  ByteArrayOutputStream baos = new ByteArrayOutputStream();

@@ -991,6 +991,10 @@
soycArtifacts.add(dependencies);
  }

+// Set all of the main SOYC artifacts private.
+for (SyntheticArtifact soycArtifact : soycArtifacts) {
+  soycArtifact.setPrivate(true);
+}
  PerfLogger.end();

  if (sizeBreakdowns != null) {

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


[gwt-contrib] [google-web-toolkit] r6917 committed - Fixes a race condition creating StandardGeneratorContext's diskCache....

2009-11-16 Thread codesite-noreply
Revision: 6917
Author: sco...@google.com
Date: Mon Nov 16 11:37:20 2009
Log: Fixes a race condition creating StandardGeneratorContext's diskCache.

Review by: bob (virtual)
http://code.google.com/p/google-web-toolkit/source/detail?r=6917

Modified:
  /trunk/dev/core/src/com/google/gwt/dev/javac/StandardGeneratorContext.java

===
---  
/trunk/dev/core/src/com/google/gwt/dev/javac/StandardGeneratorContext.java  
 
Wed Nov 11 16:03:42 2009
+++  
/trunk/dev/core/src/com/google/gwt/dev/javac/StandardGeneratorContext.java  
 
Mon Nov 16 11:37:20 2009
@@ -202,7 +202,7 @@
  }
}

-  private static DiskCache diskCache;
+  private static DiskCache diskCache = new DiskCache();

private final ArtifactSet allGeneratedArtifacts;

@@ -242,9 +242,6 @@
  this.genDir = genDir;
  this.generatorResourcesDir = generatorResourcesDir;
  this.allGeneratedArtifacts = allGeneratedArtifacts;
-if (diskCache == null) {
-  diskCache = new DiskCache();
-}
}

/**

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


[gwt-contrib] Fix bug formatting milliseconds for pre-1970 dates

2009-11-16 Thread rice
Reviewers: jat,

Description:
 From external GWT issue 4216:

-
System.out.println(DateTimeFormat.getFormat(SS).format(new
Date(-631151998945))) displays 0-93 instead of the expected 05 or
06.
That time is 1.055 seconds after midnight January 1, 1950.
-


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

Affected files:
   user/src/com/google/gwt/i18n/client/DateTimeFormat.java


Index: user/src/com/google/gwt/i18n/client/DateTimeFormat.java
===
--- user/src/com/google/gwt/i18n/client/DateTimeFormat.java (revision 6905)
+++ user/src/com/google/gwt/i18n/client/DateTimeFormat.java (working copy)
@@ -989,7 +989,13 @@
  // Fractional seconds should be left-justified, ie. zero must be padded
  // from left. For example, if value in milliseconds is 5, and count is  
3,
  // the output need to be 005.
-int value = (int) (date.getTime() % 1000);
+long time = date.getTime();
+int value;
+if (time  0) {
+  value = 1000 - (int) (-time % 1000);
+} else {
+  value = (int) (time % 1000);
+}
  if (count == 1) {
value = (value + 50) / 100; // Round to 100ms.
buf.append(Integer.toString(value));


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


[gwt-contrib] [google-web-toolkit] r6918 committed - Remove unused method from ModuleSpace....

2009-11-16 Thread codesite-noreply
Revision: 6918
Author: sco...@google.com
Date: Mon Nov 16 11:37:29 2009
Log: Remove unused method from ModuleSpace.

Review by: jat (desk)
http://code.google.com/p/google-web-toolkit/source/detail?r=6918

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

===
--- /trunk/dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java   Thu Nov 
  
5 17:14:29 2009
+++ /trunk/dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java   Mon Nov 
 
16 11:37:29 2009
@@ -166,15 +166,6 @@
  }
  sCaughtJavaExceptionObject.set(caught);
}
-
-  /**
-   * Get the unique key for this module.
-   *
-   * @return the unique key
-   */
-  public Object getKey() {
-return key;
-  }

/**
 * Get the module name.

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


[gwt-contrib] [google-web-toolkit] r6919 committed - Fixes workDir directory contention between multiple concurrent hosted ...

2009-11-16 Thread codesite-noreply
Revision: 6919
Author: sco...@google.com
Date: Mon Nov 16 11:37:40 2009
Log: Fixes workDir directory contention between multiple concurrent hosted  
mode sessions.

- each StandardLinkerContext gets a unique directory in the workDir
- each session gets its own linker stack
- outputing files into war directory is serialized

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

Modified:
  /trunk/dev/core/src/com/google/gwt/dev/DevMode.java
  /trunk/dev/core/src/com/google/gwt/dev/DevModeBase.java
  /trunk/dev/core/src/com/google/gwt/dev/GWTShell.java

===
--- /trunk/dev/core/src/com/google/gwt/dev/DevMode.java Thu Nov  5 10:42:40  
2009
+++ /trunk/dev/core/src/com/google/gwt/dev/DevMode.java Mon Nov 16 11:37:40  
2009
@@ -41,8 +41,6 @@
  import java.io.File;
  import java.io.IOException;
  import java.net.BindException;
-import java.util.HashMap;
-import java.util.Map;

  /**
   * The main executable class for the hosted mode shell. NOTE: the public  
API for
@@ -203,10 +201,6 @@
  public File getShellBaseWorkDir(ModuleDef moduleDef) {
return new File(new File(getWorkDir(),  
moduleDef.getName()), shell);
  }
-
-public File getShellPublicGenDir(ModuleDef moduleDef) {
-  return new File(getShellBaseWorkDir(moduleDef), public);
-}

  public File getWarDir() {
return warDir;
@@ -258,17 +252,6 @@
@SuppressWarnings(hiding)
protected final HostedModeOptionsImpl options = (HostedModeOptionsImpl)  
super.options;

-  /**
-   * Maps each active linker stack by module.
-   */
-  private final MapString, StandardLinkerContext linkerStacks = new  
HashMapString, StandardLinkerContext();
-
-  /**
-   * The set of specified modules by name; the keys represent the renamed  
name
-   * of each module rather than the canonical name.
-   */
-  private MapString, ModuleDef modulesByName = new HashMapString,  
ModuleDef();
-
/**
 * The server that was started.
 */
@@ -302,11 +285,13 @@
}

@Override
-  protected ArtifactAcceptor doCreateArtifactAcceptor(final ModuleDef  
module) {
+  protected ArtifactAcceptor doCreateArtifactAcceptor(TreeLogger logger,
+  final ModuleDef module) throws UnableToCompleteException {
+final StandardLinkerContext linkerContext = link(logger, module);
  return new ArtifactAcceptor() {
-  public void accept(TreeLogger logger, ArtifactSet  
newlyGeneratedArtifacts)
+  public void accept(TreeLogger relinkLogger, ArtifactSet newArtifacts)
throws UnableToCompleteException {
-relink(logger, module, newlyGeneratedArtifacts);
+relink(relinkLogger, linkerContext, module, newArtifacts);
}
  };
}
@@ -355,6 +340,7 @@
TreeLogger moduleBranch = branch.branch(TreeLogger.INFO, moduleName);
try {
  ModuleDef module = loadModule(moduleBranch, moduleName, false);
+Util.recursiveDelete(options.getShellBaseWorkDir(module), false);
  validateServletTags(moduleBranch, servletValidator, module,  
webXml);
  TreeLogger loadLogger = moduleBranch.branch(TreeLogger.DEBUG,
  Bootstrap link for command-line module ' + moduleName + ');
@@ -403,22 +389,6 @@
protected String getWebServerName() {
  return options.getServletContainerLauncher().getName();
}
-
-  /*
-   * Overridden to keep our map up to date.
-   */
-  @Override
-  protected ModuleDef loadModule(TreeLogger logger, String moduleName,
-  boolean refresh) throws UnableToCompleteException {
-ModuleDef module = super.loadModule(logger, moduleName, refresh);
-modulesByName.put(module.getName(), module);
-return module;
-  }
-
-  protected void restartServer(TreeLogger logger)
-  throws UnableToCompleteException {
-server.refresh();
-  }

/**
 * Perform an initial hosted mode link, without overwriting newer or
@@ -428,7 +398,7 @@
 * @param module the module to link
 * @throws UnableToCompleteException
 */
-  private void link(TreeLogger logger, ModuleDef module)
+  private StandardLinkerContext link(TreeLogger logger, ModuleDef module)
throws UnableToCompleteException {
  TreeLogger linkLogger = logger.branch(TreeLogger.DEBUG, Linking  
module '
  + module.getName() + ');
@@ -436,13 +406,12 @@
  // Create a new active linker stack for the fresh link.
  StandardLinkerContext linkerStack = new  
StandardLinkerContext(linkLogger,
  module, options);
-linkerStacks.put(module.getName(), linkerStack);
-
  ArtifactSet artifacts = linkerStack.invokeLink(linkLogger);
  produceOutput(linkLogger, linkerStack, artifacts, module);
+return linkerStack;
}

-  private void produceOutput(TreeLogger logger,
+  private synchronized void produceOutput(TreeLogger logger,
StandardLinkerContext linkerStack, ArtifactSet artifacts, ModuleDef  
module)
throws UnableToCompleteException {
  TreeLogger linkLogger = 

[gwt-contrib] [google-web-toolkit] r6920 committed - trunk c6917-c6919 were merged into this branch...

2009-11-16 Thread codesite-noreply
Revision: 6920
Author: sco...@google.com
Date: Mon Nov 16 11:48:59 2009
Log: trunk c6917-c6919 were merged into this branch
   Fixes a race condition creating StandardGeneratorContext's diskCache.
   Remove unused method from ModuleSpace.
   Fixes workDir directory contention between multiple concurrent hosted  
mode sessions.
 svn merge --ignore-ancestry -r6916:6919  
https://google-web-toolkit.googlecode.com/svn/trunk/ .


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

Modified:
  /releases/2.0/branch-info.txt
  /releases/2.0/dev/core/src/com/google/gwt/dev/DevMode.java
  /releases/2.0/dev/core/src/com/google/gwt/dev/DevModeBase.java
  /releases/2.0/dev/core/src/com/google/gwt/dev/GWTShell.java
   
/releases/2.0/dev/core/src/com/google/gwt/dev/javac/StandardGeneratorContext.java
  /releases/2.0/dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java

===
--- /releases/2.0/branch-info.txt   Mon Nov 16 11:27:22 2009
+++ /releases/2.0/branch-info.txt   Mon Nov 16 11:48:59 2009
@@ -676,4 +676,10 @@

  tr...@6913 was merged into this branch
UiBinder attribute parsing was pretty much working by accident
-  svn merge --ignore-ancestry -c 6913  
https://google-web-toolkit.googlecode.com/svn/trunk .
+svn merge --ignore-ancestry -c 6913  
https://google-web-toolkit.googlecode.com/svn/trunk .
+
+trunk c6917-c6919 were merged into this branch
+  Fixes a race condition creating StandardGeneratorContext's diskCache.
+  Remove unused method from ModuleSpace.
+  Fixes workDir directory contention between multiple concurrent hosted  
mode sessions.
+svn merge --ignore-ancestry -r6916:6919  
https://google-web-toolkit.googlecode.com/svn/trunk/ .
===
--- /releases/2.0/dev/core/src/com/google/gwt/dev/DevMode.java  Thu Nov  5  
11:49:42 2009
+++ /releases/2.0/dev/core/src/com/google/gwt/dev/DevMode.java  Mon Nov 16  
11:48:59 2009
@@ -38,8 +38,6 @@
  import java.io.File;
  import java.io.IOException;
  import java.net.BindException;
-import java.util.HashMap;
-import java.util.Map;

  /**
   * The main executable class for the hosted mode shell. NOTE: the public  
API for
@@ -200,10 +198,6 @@
  public File getShellBaseWorkDir(ModuleDef moduleDef) {
return new File(new File(getWorkDir(),  
moduleDef.getName()), shell);
  }
-
-public File getShellPublicGenDir(ModuleDef moduleDef) {
-  return new File(getShellBaseWorkDir(moduleDef), public);
-}

  public File getWarDir() {
return warDir;
@@ -255,17 +249,6 @@
@SuppressWarnings(hiding)
protected final HostedModeOptionsImpl options = (HostedModeOptionsImpl)  
super.options;

-  /**
-   * Maps each active linker stack by module.
-   */
-  private final MapString, StandardLinkerContext linkerStacks = new  
HashMapString, StandardLinkerContext();
-
-  /**
-   * The set of specified modules by name; the keys represent the renamed  
name
-   * of each module rather than the canonical name.
-   */
-  private MapString, ModuleDef modulesByName = new HashMapString,  
ModuleDef();
-
/**
 * The server that was started.
 */
@@ -299,11 +282,13 @@
}

@Override
-  protected ArtifactAcceptor doCreateArtifactAcceptor(final ModuleDef  
module) {
+  protected ArtifactAcceptor doCreateArtifactAcceptor(TreeLogger logger,
+  final ModuleDef module) throws UnableToCompleteException {
+final StandardLinkerContext linkerContext = link(logger, module);
  return new ArtifactAcceptor() {
-  public void accept(TreeLogger logger, ArtifactSet  
newlyGeneratedArtifacts)
+  public void accept(TreeLogger relinkLogger, ArtifactSet newArtifacts)
throws UnableToCompleteException {
-relink(logger, module, newlyGeneratedArtifacts);
+relink(relinkLogger, linkerContext, module, newArtifacts);
}
  };
}
@@ -352,6 +337,7 @@
TreeLogger moduleBranch = branch.branch(TreeLogger.INFO, moduleName);
try {
  ModuleDef module = loadModule(moduleBranch, moduleName, false);
+Util.recursiveDelete(options.getShellBaseWorkDir(module), false);
  validateServletTags(moduleBranch, servletValidator, module,  
webXml);
  TreeLogger loadLogger = moduleBranch.branch(TreeLogger.DEBUG,
  Bootstrap link for command-line module ' + moduleName + ');
@@ -400,22 +386,6 @@
protected String getWebServerName() {
  return options.getServletContainerLauncher().getName();
}
-
-  /*
-   * Overridden to keep our map up to date.
-   */
-  @Override
-  protected ModuleDef loadModule(TreeLogger logger, String moduleName,
-  boolean refresh) throws UnableToCompleteException {
-ModuleDef module = super.loadModule(logger, moduleName, refresh);
-modulesByName.put(module.getName(), module);
-return module;
-  }
-
-  protected void restartServer(TreeLogger logger)
-  throws UnableToCompleteException {
-server.refresh();
-  }


  1   2   >