gwt-dnd for FlexTable

2009-03-16 Thread priya

Hi all,

I want to use gwt-dnd library for FlexTable row drag and drop.

The data which i am displaying in FlexTable is coming from database as
ArrayList.
I have another FlexTable rows of which are in co-ordination with the
first FlexTable rows.

When row of first flex table gets dragged and dropped i want to
refresh the second flex table according to the index of row of first
flex table.

Both flex tables are in ScrollPanel.

I saw example of gwt-dnd for FlexTable. But it is given that
AbsolutePanel is required for DragController.

How can I use AbsolutePanel? Can I use ScrollPanel inside
AbsolutePanel ?

Can anyone help me with this issue?
It's really urgent...

Thanks in advance..
Priya

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



Re: Different sessionIDs in one application

2009-03-16 Thread Jason Morris

Hi Markus,

Is it possible the SessionId Cookie hasn't been sent to the client when the 
second method is 
invoked? You may need to force the Server to create the HttpSession object and 
send the Cookie in 
your host page (or before you reach it).

Basically any call to HttpServletRequest.getSession() should create the session 
and assign an ID to 
it, but until the response has been sent to the client, the browser won't have 
knowledge of that 
Session.

Let me know if thats not the problem.
//J

Markus wrote:
 Hello
 
 I have following problem with my application.
 If I make generally rpc calls during RemoteServiceServlet all is fine,
 if I use: this.getThreadLocalRequest().getSession().getId() I allways
 get the same sessionID back
 and I can work with it.
 
 No I have following case. I added a long polling mechanism to get
 actual data from the server.
 Exactly I have a RemoteServiceServlet which is waiting for data.
 
 Now the problem:
 If I make another rpc call to another RemoteServiceServlet, during the
 long polling servlet is running,
 I get on that second Servlet, a new sessionID if I do
 this.getThreadLocalRequest().getSession().getId().
 
 How can it be, that I get 2 different sessionIDs with the same
 application?
 
 
  
 

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



Re: Shouldn't everyone stop using GWT-Ext so we can get critical mass in a supported library?

2009-03-16 Thread heru

i think gwt-ext is enough for my application now, although the ext
engine will not be update again.
if just making CRUD app gwt-ext is enough.

Best Regards

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



Re: Loading Images into GWT via MySQL

2009-03-16 Thread alex.d

Does the img.setUrl(data:image/jpg;base64,...-trick work reliable in
all major browsers?

On 13 Mrz., 15:07, Darren siegel.dar...@gmail.com wrote:
 The one case that hasn't been mentioned is when one dynamically
 creates transient images on the server.

 We transform various XML data sources into SVG and then transcode into
 JPG (using Batik) on the fly, then base 64 encode the JPG into a
 string and send it across via GWT-RPC.

 Then on the client, once you have the image data from the RPC callback
 (as a String):
 String base64EncodedImage = ... ;
 Image img = new Image();
 img.setUrl(data:image/jpg;base64, + base64EncodedImage);

 On Mar 13, 5:08 am, stone stones...@gmail.com wrote:

  use a servlet url for downloading img.
  for example: myapp/dbimage/123456
  and the servlet mapping is /dbimage/*

  On Mar 13, 9:52 am, Itamar Ravid itamar.ira...@gmail.com wrote:

   Don't forget however to set the content type on the response to an image 
   of
   some type, otherwise the client's browser will try to download the picture
   rather than display it.

   On Fri, Mar 13, 2009 at 2:28 AM, gregor 
   greg.power...@googlemail.comwrote:

I think Itamar is right, Jack, you should use a standard HttpServlet
for this, not GWT-RPC, because this sends the image over to the
browser as byte steam, and I don't think RPC can do that.

First, I take it these are not images used in your UI (like icons
etc), 'cos those should go in an ImageBundle. I assume you know that 
these images are downloaded as user selections etc.

1) Consult your MySQL docs/forum to find out how to obtain an
InputStream for the image via JDBC. You want to pass an InputStream
back to your image download HttpServlet. You don't want to read out
the image bytes yet.

2) You write the HttpServlet something like this example (there are
lots of others around):

   http://snippets.dzone.com/posts/show/4629

Notice that the key is a looping read of the InputStream (which you
got from MySQL) that writes straight into the HttpServlet's response
OutputStream. Notice also it uses a buffer byte[] array. This is so
that your web server does not get it's memory clogged up with big
image byte arrays - the image bytes just get shunted from the DB
straight out to the browser via this buffer. Therefore set this buffer
small. Apache tend to use 2048 bytes. I think Oracle prefer 4096. That
sort of size for the buffer. Take care to set the response content
type so the browser knows what it's dealing with.

3) In your client you can set the Image widget's URL to your image
download HttpServlet adding a parameter for the image id.

regards
gregor

On Mar 12, 8:54 pm, fatjack1...@googlemail.com
fatjack1...@googlemail.com wrote:
 Hi,

 I'm not too sure how to implement a HTTPServlet. Does anyone know how
 to use images using RPC?

 Im really stuck on this.

 On Mar 12, 8:43 pm, Itamar Ravid itamar.ira...@gmail.com wrote:

  The best way, IMO, is to not use GWT-RPC, but rather implement an
  HttpServlet, that retrieves the data from the database and returns 
  it
with
  the appropriate Content-Type in response to a GET http request. 
  Then,
you
  simply place an image in your GWT code, with its source being the 
  path
to
  the servlet (defined in your web.xml), passing along any parameters
required
  - such as the ID of the image in the database.

  On Thu, Mar 12, 2009 at 12:59 PM, fatjack1...@googlemail.com 

  fatjack1...@googlemail.com wrote:

   Hi,

   I am new to loading images into GWT from MySQL and am abit lost on
the
   best way to do it.

   I already have my image in the database. How do I retrieve it? I 
   read
   somewhere that it can just be stored as a String. Is this 
   correct? So
   my code on the server side would look like:

   //Open database connection
   dc.openConnection();
   resultSet = dc.statement.executeQuery(SELECT CategoryImage FROM
   itemcategory_table WHERE ItemType = 'Test');

     while(resultSet.next()) {
          String test = resultSet.getString(1);
   }

   dc.closeConnection();

   Or have I got this completely wrong?

   Next, I need to send this over to the client. What is the best 
   way to
   send an image over from the server to the client and how should 
   it be
   stored?

   Any help on how to use images would be much appreciated!

   Regards,
   Jack


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

best deploy for jnlp applet via GWT

2009-03-16 Thread Giuseppe Sacco

Hi all,
i am approaching GWT for the first time, trying to understand how to
implement all functionalities required by my application. I currently
need to access database, so I'll have to create some widget that load
and store data via a servlet; this is not a problem. What I think
might be a problem is scanning and sending all scanned pages to the
server. In order to scan, I have an applet that I currently load via
jnlp since it require a few extensions (JAI and JAI Image I/O). I
could probably load the applet when the GWT application start, but
then, I have to communicate with the applet when the user select to
scan.

I browsed all the archives of this forum and I found how to invoke
applet methods from GWT code, but I failed to find a way to do the
same thing when the applet is loaded via JNLP. Is there any way to
communicate with applet ran via JNLP? Moreover I use JNLP instead of
APPLET because I may specify how much RAM the jvm should use. (I need
a lot of ram for storing buffered images.)

Otherwise, I think I have to load the applet via APPLET tag, but I
have no idea about how to deploy extensions and how to specify -Xmx
using this tag.

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



Re: file upload like orkut

2009-03-16 Thread Adam T

File upload is done via either:

a) The FileUpload widget - if your happy for the user to select one
file at a time, or
b) Via a Flash Movie that allows multiple file selects.

Which ever option you choose you would then build your UI on-top since
you choose when to post the contents of FileUpload or the flash
approach to your file uploading servlet (or other).

If you don't want to roll your own flash movie / UI, and are happy to
have a GWT wrapper around an existing library, you could try swfupload-
gwt (http://www.ongwt.com/post/2009/03/14/A-GWT-wrapper-for-the-
SWFUpload-library  (via OnGWT)).

From experience, if you do roll your own solution multiple select
solution then you will never get it pure GWT since you need a) a flash
movie and b) use of Flash's ExternalInterface command to make call
backs to GWT and JSNI to make calls from GWT to the Flash movie.  You
also need make sure you cope with the new Flash 10 security
restriction (must click on the flash movie to open the file select
rather than before, where you could click on a GWT component and send
that click to the flash movie).

//Adam

On 16 Mar, 06:51, vaibhav.saxena vaibhav@gmail.com wrote:
 Hi,
 I want to have the widget like the orkut photo upload. What they do
 they show the files to be upload in a list view and when upload file
 is clicked the files gets uploaded. How can i make the file upload
 without the use of File Upload widget provided. I know that it is
 possible as the GWT-UX provide this type of widget. may be they make
 use of the JSNI but i want to have it in core GWT.

 Thanks in advance

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



Re: Different sessionIDs in one application

2009-03-16 Thread djd


So just making a dummy call is enough? i.e. 2 method calls one after
the other (in client code) will result in different IDs? More, since
this mechanism is sevlet specific, client code shouldn't set any
cookies, by hand at least.


On Mar 16, 9:10 am, Jason Morris lem...@gmail.com wrote:
 Hi Markus,

 Is it possible the SessionId Cookie hasn't been sent to the client when the 
 second method is
 invoked? You may need to force the Server to create the HttpSession object 
 and send the Cookie in
 your host page (or before you reach it).

 Basically any call to HttpServletRequest.getSession() should create the 
 session and assign an ID to
 it, but until the response has been sent to the client, the browser won't 
 have knowledge of that
 Session.

 Let me know if thats not the problem.
 //J

 Markus wrote:
  Hello

  I have following problem with my application.
  If I make generally rpc calls during RemoteServiceServlet all is fine,
  if I use: this.getThreadLocalRequest().getSession().getId() I allways
  get the same sessionID back
  and I can work with it.

  No I have following case. I added a long polling mechanism to get
  actual data from the server.
  Exactly I have a RemoteServiceServlet which is waiting for data.

  Now the problem:
  If I make another rpc call to another RemoteServiceServlet, during the
  long polling servlet is running,
  I get on that second Servlet, a new sessionID if I do
  this.getThreadLocalRequest().getSession().getId().

  How can it be, that I get 2 different sessionIDs with the same
  application?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



help required

2009-03-16 Thread poonam

hello,
 According to the Three Part Tutorial suggested by u I have
developed my application but instead of SQL I have used MySQL; my
application has worked in the Hosted mode and now according to the
Forth Part of the tutorial I am trying to convert it to Web mode.But I
am not getting that where to create the context file and where is
the path CATALINA_HOME/conf/Catalina/localhost and also further how to
run the project in web mode.

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



Re: Different sessionIDs in one application

2009-03-16 Thread Jason Morris

I think the problem here is specific to the long polling case mixed with RPC.

If the first call that requests a Session is in the long polling method, while 
the second call (to 
the other method) occurs before the long polling method has completed: the 
browser won't have 
received the Session ID cookie from the first request (since it hasn't returned 
yet).

You could test this by using
HttpSession.isNew()
in each of the Servlet methods to see if both requests have created their own 
session.

Putting a dummy request for a session into a Servlet or JSP when the host 
page is served 
establishes the session with the client, since the page content will have a 
Cookie header containing 
the Session ID the browser needs to send to all the RPC methods.

It's not the client code setting the Cookie, but rather the Servlet Container 
setting the session ID 
with the client so that the client will request that Session in subsequent 
invocations.

Hope that explains my thinking a bit better.
//J

djd wrote:
 
 So just making a dummy call is enough? i.e. 2 method calls one after
 the other (in client code) will result in different IDs? More, since
 this mechanism is sevlet specific, client code shouldn't set any
 cookies, by hand at least.
 
 
 On Mar 16, 9:10 am, Jason Morris lem...@gmail.com wrote:
 Hi Markus,

 Is it possible the SessionId Cookie hasn't been sent to the client when the 
 second method is
 invoked? You may need to force the Server to create the HttpSession object 
 and send the Cookie in
 your host page (or before you reach it).

 Basically any call to HttpServletRequest.getSession() should create the 
 session and assign an ID to
 it, but until the response has been sent to the client, the browser won't 
 have knowledge of that
 Session.

 Let me know if thats not the problem.
 //J

 Markus wrote:
 Hello
 I have following problem with my application.
 If I make generally rpc calls during RemoteServiceServlet all is fine,
 if I use: this.getThreadLocalRequest().getSession().getId() I allways
 get the same sessionID back
 and I can work with it.
 No I have following case. I added a long polling mechanism to get
 actual data from the server.
 Exactly I have a RemoteServiceServlet which is waiting for data.
 Now the problem:
 If I make another rpc call to another RemoteServiceServlet, during the
 long polling servlet is running,
 I get on that second Servlet, a new sessionID if I do
 this.getThreadLocalRequest().getSession().getId().
 How can it be, that I get 2 different sessionIDs with the same
 application?
  
 

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



Re: Strange List serialization behaviour

2009-03-16 Thread RobW


 We have services which have more than one method returning
 parameterised lists (using GWT 1.5.3). Any error messages?


Yeah - I'm sure others do also, so it must be something odd we're
doing.

Only messages we've seen so far are the usual:

[WARN] Field 'private final
com.google.gwt.i18n.client.impl.ConstantMap.OrderedConstantSetjava.lang.String
keys' will not be serialized because it is final

But we've had those forever, and they're noted in the known issues. I
don't think they relate to this.

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



Re: file upload like orkut

2009-03-16 Thread Thomas Broyer



On 16 mar, 09:06, Adam T adam.t...@gmail.com wrote:
 File upload is done via either:

 a) The FileUpload widget - if your happy for the user to select one
 file at a time, or
 b) Via a Flash Movie that allows multiple file selects.

c) Google Gears (as used by YouTube)
http://code.google.com/p/gwt-google-apis/
b) Yahoo! BrowserPlus
http://browserplus.yahoo.com
http://code.google.com/p/gwt-in-the-air/ (preliminary support)

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



Possible cause's of onSubmitComplete not fired ? (content type text/html, form not hidden)

2009-03-16 Thread darkflame

onSubmitComplete dosnt seem to be firing on my form, yet firebug shows
the request is returned and no javascript exceptions are fired :-/

I read a few threads on this group, but nothing seems to apply to me.

The response headers I get back are;

Server  - Apache/1.3.41 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4
mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/
0.9.8b
X-Powered-By -PHP/5.2.8
Keep-Alive timeout=15, max=100
Connection - Keep-Alive
Transfer-Encoding - chunked
Content-Type- text/html

Which is ok right?

I also get the response returned correctly according to firebug.

However FormSubmitCompleteEvent never seems to fire. (FormSubmitEvent
does)

Heres the code for the form;

==

LoginForm.setMethod(FormPanel.METHOD_POST);
LoginForm.setEncoding(FormPanel.ENCODING_MULTIPART);

LoginBits.add(LoginFields);

LoginForm.addFormHandler(new FormHandler() {
public void onSubmit(FormSubmitEvent event){
 Window.alert(logging in4);

}

 public void onSubmitComplete(FormSubmitCompleteEvent
event) {

 Window.alert(logged in);

/* lots of code commented out */
   }
}

(LoginFields is a horizontal panel containing the fields)

 I get the logging in 4 but not the logged in.

Also, the form is never hidden.

Any ideas for other causes?


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



Re: Getting started with GWT SL

2009-03-16 Thread wouter

I see your point but much depends on your own preferences.

I finished my last J2EE project in the summer of 2004, so I'm not an
expert in that field.
But in my experience you should always check if a tool is worth the
cost in learning and performance.
Nobody has ever been able to convince me to use spring, although it
has been a hype for years now.
Tools like Hibernate or (as I prefer) OpenJPA  are very useful as they
a
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Strange List serialization behaviour

2009-03-16 Thread RobW


 We have services which have more than one method returning
 parameterised lists (using GWT 1.5.3). Any error messages?

Also we do see the following, but they don't seem like actuall errors:


 [java] Scanning for additional dependencies: file:/E:/Data/tas/
proj/webui/src/com/ascert/webui/vt/client/model/DriverLibService
.java
 [java]Computing all possible rebind results for
'com.ascert.webui.vt.client.model.DriverLibService'
 [java]   Rebinding
com.ascert.webui.vt.client.model.DriverLibService
 [java]  Invoking generate-with
class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/

 [java] Generating client proxy for remote service
interface 'com.ascert.webui.vt.client.model.DriverLibService'
 [java]Analyzing
'com.ascert.webui.vt.client.model.DriverLibService' for serializable
types
 [java]   Analyzing methods:
 [java]  public abstract
java.util.Listcom.ascert.webui.vt.client.model.DriverlibRepositoryDef
getRepositories() throws java.lang.Exception
 [java] Return type:
java.util.Listcom.ascert.webui.vt.client.model.DriverlibRepositoryDef
 [java]
java.util.Listcom.ascert.webui.vt.client.model.DriverlibRepositoryDef
 [java]   Verifying instantiability
 [java]
com.ascert.webui.vt.client.model.TestCaseStateListenerCollection
 [java] Checking parameters of
'java.util.ArrayListcom.ascert.webui.vt.client.model.DriverlibRepositoryDef'
 [java]Checking type
argument 0 of type 'java.util.ArrayListE' because it is
directlyexposed in this type or in one of its subtypes
 [java]
com.ascert.webui.vt.client.model.DriverlibRepositoryDef
 [java]  Verifying
instantiability
 [java]
com.ascert.webui.vt.client.model.DriverlibRepositoryDef
 [java]
Analyzing the fields of type
'com.ascert.webui.vt.client.model.DriverlibRepositoryDef' that qualify
for serialization
 [java]
protected java.util.Mapjava.lang.String, java.lang.String repoProps
 [java]
java.util.Mapjava.lang.String, java.lang.String
 
[java]
Verifying instantiability
 
[java]
com.google.gwt.i18n.client.impl.ConstantMap
 
[java]
Analyzing the fields of type
'com.google.gwt.i18n.client.impl.ConstantMap' that qualify for
serialization
 
[java]
[WARN] Field 'private final
com.google.gwt.i18n.client.impl.ConstantMap.OrderedConstantSetjava.lang.String
keys' will not be serialized because it is final
 [java] Compilation succeeded


The odd one is the
com.ascert.webui.vt.client.model.TestCaseStateListenerCollection check
- since in theory at least, this service doesn't reference it at 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Getting started with GWT SL

2009-03-16 Thread wouter

Sorry, pushed a wrong key. I continue ...

allow you to implement a persistence layer without having to write an
enormous amount of SQL.
And a J2EE application server is mainly useful if you have a heavy
application with lots of users and objects.

Finally you could also consider implementing the serverside in another
language or technology, like PHP which is widely available in
webhosting.

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



Re: Deploy GWT on Google Cloud Itself?

2009-03-16 Thread Darkflame

Generaly running on your own sever.
I think Google Cloud (you mean Google App Engine?) is more for back-
end processing.

On Mar 15, 5:48 pm, Neal walters.n...@gmail.com wrote:
 I've got three books on GWT - and none of them talk about deployment.
 So once I have written my GWT application, where do I run it?

 a) Can I deploy it to the Google Cloud and run it there?  If yes - any
 web links on this?  Especially interesting in pricing or hosting
 plans.

 b) Do I have to run it on my own server, using Tomcat or similar?

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



Re: Deploy GWT on Google Cloud Itself?

2009-03-16 Thread Arthur Kalmenson

 a) Can I deploy it to the Google Cloud and run it there?  If yes - any
 web links on this?  Especially interesting in pricing or hosting
 plans.

GWT just generates HTML and Javascript, AFAIK you can easily deploy
that on GAE. The only thing to keep in mind is that you have to use
Python as your back end. You can find lots of information by doing a
Google search for Google App Engine.

 b) Do I have to run it on my own server, using Tomcat or similar?

You can do that too.

--
Arthur Kalmenson



On Sun, Mar 15, 2009 at 12:48 PM, Neal walters.n...@gmail.com wrote:

 I've got three books on GWT - and none of them talk about deployment.
 So once I have written my GWT application, where do I run it?

 a) Can I deploy it to the Google Cloud and run it there?  If yes - any
 web links on this?  Especially interesting in pricing or hosting
 plans.

 b) Do I have to run it on my own server, using Tomcat or similar?

 Thanks,
 Neal Walters

 


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



Re: Custom widget theme?

2009-03-16 Thread Marcelo Emanoel B. Diniz

I think it can't know... but you can have a method that asks the user
which one he's using... for example:

MyWidgetLibrary.setTheme(anyTheme);

and that should change the styleName of the widget :)

On Mar 15, 11:08 am, Riyaz Mansoor riyaz.mans...@gmail.com wrote:
 How would I do this without a - say - ListBox?

 My widget is being used in another application and that user might
 choose to do it in Standard, Dart or other theme. How can my widget
 know what theme is being used and to apply the respective styles?

 On Mar 12, 4:36 pm, Sean slough...@gmail.com wrote:

  Sure, have a listener attached to a drop down box or menu or a button,
  some way for the user to select the theme. And on select
  use .removeStyleName(style) to remove the old style and .addStyleName
  (style) to add the new style name. If this is the only style you have
  applied to the Widget you could just use .setStyleName(style) to
  remove the old ones and use this new style.

  On Mar 11, 11:44 pm, Riyaz Mansoor riyaz.mans...@gmail.com wrote:

   Have widget that I have stylized using CSS. But I have no idea how to
   theme this widget. I want some CSS differences to be seen by the user,
   when different themes are selected.

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



Re: On-The-Fly compiling

2009-03-16 Thread Michael Wyraz

That's my use-case: developing and testing in the target browser(s).
The alternative is to develop in the hosted mode and test later in the
target browser. I use to develop in the target browser to see directly
if something's going wrong.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



how to Specify DialogBox position ?

2009-03-16 Thread jake H

 Hello,
The scenario is the following.
I have a flextable with some textboxes in it. When a value pressed in
a textbox isn't what i expected i call a Dialog Box with an error
message. My question is if it is possible to get the position of the
'erroneous textbox' and show the dialog box in the previous cell.

For example my table

0, 0, Label 1
0 , 1 , TextBox 1
1, 0, Label 2
1 , 1 , TextBox 2

If the TextBox 2 is wrong then i want to place the DialogBox in the
1 , 0 position over the Label 2.
How can i do this automatically???

Ty in advance.

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



Need help with callback

2009-03-16 Thread dean.mikel

I'm attempting to use html5 db from my gwt application. I'm able to
open/create a database, and insert data in the table, but I cannot
read data from table. I can't get the data handler callback to work.
I am running this in Web mode (because the db won't be available in
hosted mode). Safari script debugger shows an error stating
dataHandler and errorHandler can't be found.

I have something similar to this snippet of code:

public void Read( JavaScriptObject db ){
getData( db );
}


private native void getData( JavaScriptObject db )  /*-{
db.transaction
(
function ( transaction ) {
transaction.executeSql(SELECT * from people';,
[], dataHandler, errorHandler );
}
);
}-*/;


public native void dataHandler( JavaScriptObject transaction,
JavaScriptObject results )/*-{
   var string = Data contains: \n\n;
for (var i=0; iresults.rows.length; i++) {
var row = results.rows.item(i);
string = string + row['name'] + '\n';
}
$wnd.alert(string);
}-*/;

public native static void errorHandler( JavaScriptObject transaction,
JavaScriptObject results )/*-{
$wnd.alert('DB Error: ' + error.message + ' (ErrorCode: ' +
error.code + ')' );
}-*/;


Any help would be greatly appreciated.
Thanks,
Dean Mikel



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



GWT RPC Serialization\Deserialization time

2009-03-16 Thread Sonar

Hi All,

I'd like to be taught how do I log the time GWT spends on serialization
\deserialization of remote method parameters \ return types.

Thanks in advance

Alex

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



Re: On-The-Fly compiling

2009-03-16 Thread Vitali Lovich
It seems like a use case that is not going to be around for too long.  My
recommendation would be to use OOPHM- you get to use your target browser
(I've only tried Firefox - haven't been able to get IE working), but run
with all the benefits of Hosted mode such as dynamically updated client (hit
refresh)  server (restart the jetty server which costs nothing) code 
step-through/breakpoint debugging of both client  server Java code.

On Mon, Mar 16, 2009 at 9:16 AM, Michael Wyraz mich...@wyraz.de wrote:


 That's my use-case: developing and testing in the target browser(s).
 The alternative is to develop in the hosted mode and test later in the
 target browser. I use to develop in the target browser to see directly
 if something's going wrong.
 


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



Re: GWT RPC Serialization\Deserialization time

2009-03-16 Thread Vitali Lovich
 Before I explain an OK first-order approximation, ask yourself is it really
worth the time to worry about the serialization/deserialization cost?  I can
tell you from first hand it's minimal compared with the typical code I've
written.  Now maybe if your passing in large amounts of data (think
megabytes), the story might be different.

At which point you've got to be wondering why do you actually need to
transfer that much data  wouldn't it be better to split up the result in
chunks - highly unlikely the user is going to need that much data.  And at
that point your bigger costs are probably going to be actually transferring
the data across the network.

Now that I've had my spiel about the dangers of micro-optimizing, I'm giving
you the tools to shoot yourself in the foot (in terms of wasting your time).

I dunno if it's strictly possible without actually modifying the code.  You
could always add instrumentation to the GWT code  rebuild your own flavour
of it (simply get the timestamp difference surrounding the
(de)/serialization  add that to a global diff value  update the amount of
times it's been called.  Then you can keep a running average of the cost
that you can query at any time.

If that scares you, you could try to estimate it, but only if your client 
server are the same machine.

Right before making the RPC call, store the current timestamp in a local
variable.
On entry into the RPC call, store the timestamp in a local variable  put a
breakpoint right after.

The difference between the two times is the cost of going through the client
communication stack (serializing parameters, making the AJAX request,
creating the network packets, sending them to the server, handling the
packets by the server, handling an AJAX request by your app server 
deserializing your parameters.

Working on the assumption that the most expensive part of that process is
serialization/deserialization (which is reasonable cause transmission time
should be 0, and since it's a socket-to-socket communication on a local
machine, you shouldn't see any significant latency overhead in the kernel -
maybe 100 us at most), then you can estimate how much time that took..

Repeat the process by recording the exit time (this would have to be in a
global variable) from the RPC call  the time on the client when the call
returned.  This will give you an idea of the cost of serializing the return
value.

This is a good-enough first-order approximation.  Note, that if you want
this to be done in a logging fashion, you'll have to include the timestamp
in your RPC request parameters  result which might skew your results (do
not print timestamps as that definitely screws things up because printing to
screen is relatively expensive when your dealing with these kinds of
microbenchmarks).

On Mon, Mar 16, 2009 at 8:33 AM, Sonar serp...@gmail.com wrote:


 Hi All,

 I'd like to be taught how do I log the time GWT spends on serialization
 \deserialization of remote method parameters \ return types.

 Thanks in advance

 Alex

 


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



Re: Need help with callback

2009-03-16 Thread Vitali Lovich
That's because GWT doesn't know you actually need the errorHandler name.
It'll mangle it to improve performance when compiling (by minimizing the
size of your javascript).

What you need to do is instead of giving it errorHandler, pass it a
Javascript function you create (on every call or cached in the page
somewhere) which then calls your Java code using JSNI although, since it
seems like you want to do the error handling in native Javascript (why?),
you don't need the JSNI part.  Same goes for the dataHandler.

On Mon, Mar 16, 2009 at 3:20 AM, dean.mikel dean.mi...@gmail.com wrote:


 I'm attempting to use html5 db from my gwt application. I'm able to
 open/create a database, and insert data in the table, but I cannot
 read data from table. I can't get the data handler callback to work.
 I am running this in Web mode (because the db won't be available in
 hosted mode). Safari script debugger shows an error stating
 dataHandler and errorHandler can't be found.

 I have something similar to this snippet of code:

 public void Read( JavaScriptObject db ){
getData( db );
 }


 private native void getData( JavaScriptObject db )  /*-{
db.transaction
(
function ( transaction ) {
transaction.executeSql(SELECT * from people';,
[], dataHandler, errorHandler );
}
);
}-*/;


 public native void dataHandler( JavaScriptObject transaction,
 JavaScriptObject results )/*-{
   var string = Data contains: \n\n;
for (var i=0; iresults.rows.length; i++) {
var row = results.rows.item(i);
string = string + row['name'] + '\n';
}
$wnd.alert(string);
}-*/;

 public native static void errorHandler( JavaScriptObject transaction,
 JavaScriptObject results )/*-{
$wnd.alert('DB Error: ' + error.message + ' (ErrorCode: ' +
 error.code + ')' );
}-*/;


 Any help would be greatly appreciated.
 Thanks,
 Dean Mikel



 


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



Re: help required

2009-03-16 Thread Vitali Lovich
CATALINA_HOME is the name for the home of Tomcat.  You'll have to lookup how
to set up a Tomcat server.

On Mon, Mar 16, 2009 at 5:45 AM, poonam poonam...@gmail.com wrote:


 hello,
 According to the Three Part Tutorial suggested by u I have
 developed my application but instead of SQL I have used MySQL; my
 application has worked in the Hosted mode and now according to the
 Forth Part of the tutorial I am trying to convert it to Web mode.But I
 am not getting that where to create the context file and where is
 the path CATALINA_HOME/conf/Catalina/localhost and also further how to
 run the project in web mode.

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



Re: GWT Hosted Mode SSL on Ubuntu 8.04 - need help please!

2009-03-16 Thread Yegor

I had exactly the same problem on my Ubuntu 8.04 system. My workaround
was to disable SSL while I was debugging in hosted mode. The final
testing was done on a compiled version in Firefox with SSL enabled. I
see, though, that you may not be able to disable SSL so easily.

I might try Ross's fix if I get a chance. Thanks, Ross, for posting
it.

Yegor


On Mar 15, 10:00 pm, ross ross.m.sm...@googlemail.com wrote:
 PS make sure that you have no space characters at the end of a line in
 'gwt-dl-loadorder.conf ' or else you'll get link errors, great
 parsing :P

 On Mar 15, 11:56 pm, ross ross.m.sm...@googlemail.com wrote:

  Ok, i'm going to post this and hopefully it will save another soul
  from spending their entire Sunday fighting the demons of Hardy Heron
  and GWT :)

  So, like I said in my first post the fix offered in the other
  related threads to this issue is crap (disclaimer - at least on my
  machine! ;) ).  Not only did downgrading the libnss3-1d package lead
  to another error (the PSM popup box) but it also caused me to lose a
  couple hours chasing down why my YouTube videos stopped playing in
  Firefox.  You bet it, they were related.  The adobe flash plugin is
  linked to libnss3-1d and downgrading corrupted it, cheers to the
  original fix!  So, after upgrading back to the latest libnss3-1d I
  was back to the original crash bug on the redirect to the secure site:

  SIGSEGV (0xb) at pc=0xb7fbe540, pid=3168, tid=1988291472

  yay.

  Well, at this point I started to look into the GWT code, noticed in
  'BootStrapPlatform.java' that it was searching mozilla installs in
  'mozilla-hosted-browser.conf'  and that I could control the shared
  library loading in the 'gwt-linux-1.5.3/mozilla-1.7.13'  with the
  magical file 'gwt-dl-loadorder.conf'

  After a lot of hacking, and finding some examples of 'gwt-dl-
  loadorder.conf' in the gwt-contributor forum... I arrived at a
  beautiful hack which fixed the problem!  Note that if you try to use
  this and it doesn't work I not only won't be surprised but I can offer
  no support :)  But, if you have been pulling out your few remaining
  hairs on a Sunday afternoon/evening as I have this just might make
  your weekend:

  gwt-linux-1.5.3/mozilla-1.7.13/gwt-dl-loadorder.conf
  --
  libnspr4.so
  libplc4.so
  libplds4.so
  libxpcom.so
  libmozz.so
  libmozjs.so
  libgkgfx.so
  components/libtypeaheadfind.so
  components/libembedcomponents.so
  components/libpref.so
  components/libsystem-pref.so
  components/libnecko.so
  components/libcaps.so
  components/libjsd.so
  libgtkembedmoz.so
  libsoftokn3.so
  libnss3.so

  --

  cheers,
  Ross

  On Mar 15, 7:16 pm, ross ross.m.sm...@googlemail.com wrote:

   Hello friends,

   I hope that someone is able to help me with this as I'm getting rather
   frustrated here!  I decided to update my Ubuntu system to the 'Hardy
   Heron' last week and I am sure regretting it.  Besides other
   annoyances I won't get into, my main concern is that I cannot make any
   progress on my GWT app right now because of problems with hosted
   mode.

   My GWT app uses the google data API, which means I have to redirect to
   AuthSub which is a secure connection.  When I first tried the redirect
   after upgrading to Ubuntu 8.0.4 I got the problem described here:

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

   I implemented the fix described (forcing the libnss3-1d package) and
   no more crash.  Instead I get the following popup:

   This document cannot be displayed unless you install the Personal
   Security Manager (PSM). Download and install PSM and try again, or
   contact your system administrator.

   I did a fair amount of investigation into this and it seems I need the
   mozilla-psm package.  However, it seems that this package no longer
   exists in Hardy Heron, and that it is just a dummy upgrade marker to
   get you to install SeaMonkey:

  http://packages.ubuntu.com/hardy/mozilla-psm

   Well, I let it go ahead and install SeaMonkey and of course that does
   not solve the problem for GWT hosted mode...

   So, does anyone know how I can get the actual mozilla-psm stuff to
   work in 8.04?  Perhaps this is not an appropriate question for a GWT
   board but I gotta believe this has happened to other GWT developers!

   I am really stuck right now, considering either going back to Gutsy
   Gibon or trying to build OOPHM so that I can use firefox in hosted
   mode.  It seems like we need to accelerate the OOPHM feature, as there
   have to be a lot of frustrated ubuntu developers out there?  Or am I
   the only one here who hasn't figured this out?  :)  I wouldn't be
   surprised (and I hope!) that i'm just missing something easy..

   thanks for the help

   Ross


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 

Re: Strange List serialization behaviour

2009-03-16 Thread RobW

Progress ... of a sort.

I think this is something to do with the way we package our GWT
service handlers into OSGi bundles.

I don't really understand how the GWT serializer and proxy code
works ... but ... the thing that is different about this new service
handler class is that it exists in a different package and bundle to
our normal GWT service handler classes.

If I move it into our xx.xx.xx.server package, bingo, it all starts
working.

My guess is the reason comes down to 1 of 2 things:

- the GWT compiler wants to scan all xxxServiceImpl classes that use
RemoteServiceServlet to deliver an RPC service as part of it's proxy
generation
- there is some package/class resolution failing which causes the
seriallizer code to fail

The latter is very common in OSGi, but I don't see any errors to
suggest that happens in this case.

What's strange is that this only seems to effect the two services
returning ListE types - and the class in a different package and
bundle breaks both of them. That kind of suggests to me that there's
some generic ArrayListE serializer being used for both these cases,
and because one of the services exists in a different package that
wasn't scanned by the GWT compiler, it somehow breaks both cases.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Strange List serialization behaviour

2009-03-16 Thread RobW

Ah - looks like I'm not the first to hit this:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/14e6c550dd125ec6/be34f1975e33ae11?lnk=gstq=osgi#be34f1975e33ae11

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



Re: Strange List serialization behaviour

2009-03-16 Thread RobW

And finally - here may be the solution:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/3185cecb772f0f61/8be4bf5333017f3f?lnk=gstq=gwt+osgi+List#8be4bf5333017f3f

Crossing fingers!

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



Re: Anyway to clone a listbox?

2009-03-16 Thread flyingb...@gmail.com

but that will make it just an html object no way to make it back to a
listbox?

On Mar 13, 2:18 pm, Velu kool.v...@gmail.com wrote:
 Hopefully the solution below will help you.

 Create your list box once and -

 String listBoxHtmlString = yourListBox.toString();

 Once you have the html string you can create as many number of HTML
 objects out of that as needed.

 HTML listBoxHtml = new HTML(listBoxHtmlString);
 yourWidget.add(listBoxHtml, left, top);

 However, I am not sure this is anymore efficient than creating as many
 instances of the ListBox itself.

 Try it and let us know.

 Thanks
 S. Velu

 On Mar 13, 1:04 pm, flyingb...@gmail.com flyingb...@gmail.com
 wrote:

  Just wondering is there any way to make clone of listbox where I would
  not have to readd all the values to a new listbox again.

  For example my listbox is filled with like 100 items.

  It will have to go though a loop to add them. I have more than one
  listbox so it would have to go though a loop to add them to the new
  listbox.

  So is there any where where you can create one listbox and than make
  new listbox use the old lsitbox name/values
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: help required

2009-03-16 Thread eggsy

I have already replied to this from your blog comment.

Eggsy

On Mar 16, 2:45 pm, Vitali Lovich vlov...@gmail.com wrote:
 Oh, and SQL is the umbrella name for the database language.  There's a lot
 of different vendors providing slightly different implementations.  MySQL is
 a popular one.

 On Mon, Mar 16, 2009 at 10:44 AM, Vitali Lovich vlov...@gmail.com wrote:
  CATALINA_HOME is the name for the home of Tomcat.  You'll have to lookup
  how to set up a Tomcat server.

  On Mon, Mar 16, 2009 at 5:45 AM, poonam poonam...@gmail.com wrote:

  hello,
          According to the Three Part Tutorial suggested by u I have
  developed my application but instead of SQL I have used MySQL; my
  application has worked in the Hosted mode and now according to the
  Forth Part of the tutorial I am trying to convert it to Web mode.But I
  am not getting that where to create the context file and where is
  the path CATALINA_HOME/conf/Catalina/localhost and also further how to
  run the project in web mode.

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



How to set GWT application into a frame

2009-03-16 Thread Romero

Hi!

I would like to create a menu on the left hand of the page, which
links parse URL for the content (the rest of the page).
The menu is a simple no GWT html.
The content is a GWT application.
For this, I would like to create a frameset:

  frameset cols=150,*
frame name=menu src=menu.html/
frame name=content src=content.jsp/
  /frameset

Can somebody tell me how can I put the GWT application into the
content frame?
A simple example would enough.

Thank you for your help in advance.

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



gwt.1.5.3 on jboss.5.0.1 with ejb3 notation

2009-03-16 Thread tetsuo

hello folks,

since a couple of days (within weeks) i tried to get the gwt running
on a jboss. fortunately it runs on the tomcat 6, but that isn´t my
primary target-server, so the wish was, to port the gwt on the jboss,
but it is like hell. no remote calls from the client/js side are
running thru the chain of proxy, interface and the implicit class on
the ejb side.

the configuration of a jboss is not that easy, as a tomcat would be,
so its quite a lot of things to do within the xml hell there.
hopefully its solved, the gwt dos´not get a single tone from the
server. my question is, why is there no complete example, on how to
run the gwt on a application server ? a distributed server 3-4 tier
environment is more than a handful of clustered tomcats at all, so who
got the clue, to glue that stuff together.

let me know, where i can find a configuration and sample code -
completelyand ootb for easy to understand brain, like me. all the code
snippets, without correct version number  are pain in the ... dont
waste a byte for sites like this. it is a quest(ion) for the developer
on google, i want a primary answer, that forum should be the place for
that issue.

have a good day, should be more satisfied than mine.

cheers
tet

p.s. the gwt-on-seam is the same lame example without practical
function - that theoretic should run is also crap, have´nt seen a
single running example :/

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



Smartgwt ListGrid Visualization Problem

2009-03-16 Thread eoc...@googlemail.com

Hi,

I'm using the Smartgwt-1.0b2-SNAPSHOT.jar and would like to populate a
ListGrid with some data. Unfortunately I do not seem to be able to
visualize the data in the grid. So far I have followed the example for
a grid with checkbox select in the smartgwt example. I have written a
class that extends ListGridRecord and used the ResultsGrid.setData
(SampleData.getRecords()); to populate the results grid. The program
recognises the number of data entries and the values of the data
entries, it just does not display them i.e. I can see 3 list grid
records, but they're blank, I can select one of them and display the
blank values in another grid at the minute.

Any help would be greatly appreciated.

Thanks,

Ed


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



Re: Need help with callback

2009-03-16 Thread Thomas Broyer


On 16 mar, 08:20, dean.mikel dean.mi...@gmail.com wrote:
 I'm attempting to use html5 db from my gwt application. I'm able to
 open/create a database, and insert data in the table, but I cannot
 read data from table. I can't get the data handler callback to work.
 I am running this in Web mode (because the db won't be available in
 hosted mode). Safari script debugger shows an error stating
 dataHandler and errorHandler can't be found.

 I have something similar to this snippet of code:

 public void Read( JavaScriptObject db ){
     getData( db );

 }

 private native void getData( JavaScriptObject db )      /*-{

var dataHandler = function (transaction, results) {
   th...@my.package.myclass::dataHandler(Lcom/google/gwt/core/client/
JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;)
(transaction, results);
}

var errorHandler = function (transaction, results) {
   th...@my.package.myclass::errorHandler(Lcom/google/gwt/core/client/
JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;)
(transaction, results);
}

             db.transaction
             (
                 function ( transaction ) {
                     transaction.executeSql(SELECT * from people';,
                         [], dataHandler, errorHandler );
                 }
             );
         }-*/;

Have a look at http://code.google.com/p/gwt-google-apis/ for code
wrapping Gears DB (which has an API similar, if not identical, to
HTML5)

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



Re: gwt.1.5.3 on jboss.5.0.1 with ejb3 notation

2009-03-16 Thread rudolf michael
You just need to bundle everything in .war file and put it under
/default/deploy
I have done the following and it is working for me Over JBoss 5.0.1.
Create a folder called MyApplication.war, make sure you add the .war on the
folder name.
put there your compiled gwt files, which should include your .js and .html
and all the other static file. so let's say your compiled module in MyModule
so now we have MyApplication.war--MyModule--index.html/module
launcher.html
Next in MyApplication.war, create a folder called WEB-INF inside this folder
you will have the following:
folder called classes, lib, and web.xml
in web.xml you have the servlet mapping, in classes you have the impl of
your rpc servlets if any exist and in the lib folder you add there
gwt-servlet.jar

sure you can automate all this using maven/ant scripts. but as a start give
it a try like that and it should work for you.
nothing to configure on JBoss if you're not using seam/llooking up your EJBs
from your rpc servlet impl.

regards,
ruds

On Mon, Mar 16, 2009 at 4:24 PM, tetsuo tetsuomeis...@googlemail.comwrote:


 hello folks,

 since a couple of days (within weeks) i tried to get the gwt running
 on a jboss. fortunately it runs on the tomcat 6, but that isn´t my
 primary target-server, so the wish was, to port the gwt on the jboss,
 but it is like hell. no remote calls from the client/js side are
 running thru the chain of proxy, interface and the implicit class on
 the ejb side.

 the configuration of a jboss is not that easy, as a tomcat would be,
 so its quite a lot of things to do within the xml hell there.
 hopefully its solved, the gwt dos´not get a single tone from the
 server. my question is, why is there no complete example, on how to
 run the gwt on a application server ? a distributed server 3-4 tier
 environment is more than a handful of clustered tomcats at all, so who
 got the clue, to glue that stuff together.

 let me know, where i can find a configuration and sample code -
 completelyand ootb for easy to understand brain, like me. all the code
 snippets, without correct version number  are pain in the ... dont
 waste a byte for sites like this. it is a quest(ion) for the developer
 on google, i want a primary answer, that forum should be the place for
 that issue.

 have a good day, should be more satisfied than mine.

 cheers
 tet

 p.s. the gwt-on-seam is the same lame example without practical
 function - that theoretic should run is also crap, have´nt seen a
 single running example :/

 


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



Re: Anyway to clone a listbox?

2009-03-16 Thread flyingb...@gmail.com

I just tried

HTML listBoxHtml = new HTML(mycolorliststring.get
(threadtype));
return ColorfulListBox.wrap(listBoxHtml.getElement());

but i get an error

On Mar 16, 8:20 am, flyingb...@gmail.com flyingb...@gmail.com
wrote:
 but that will make it just an html object no way to make it back to a
 listbox?

 On Mar 13, 2:18 pm, Velu kool.v...@gmail.com wrote:

  Hopefully the solution below will help you.

  Create your list box once and -

  String listBoxHtmlString = yourListBox.toString();

  Once you have the html string you can create as many number of HTML
  objects out of that as needed.

  HTML listBoxHtml = new HTML(listBoxHtmlString);
  yourWidget.add(listBoxHtml, left, top);

  However, I am not sure this is anymore efficient than creating as many
  instances of the ListBox itself.

  Try it and let us know.

  Thanks
  S. Velu

  On Mar 13, 1:04 pm, flyingb...@gmail.com flyingb...@gmail.com
  wrote:

   Just wondering is there any way to make clone of listbox where I would
   not have to readd all the values to a new listbox again.

   For example my listbox is filled with like 100 items.

   It will have to go though a loop to add them. I have more than one
   listbox so it would have to go though a loop to add them to the new
   listbox.

   So is there any where where you can create one listbox and than make
   new listbox use the old lsitbox name/values
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Anyway to clone a listbox?

2009-03-16 Thread flyingb...@gmail.com

I also tried

HTML listBoxHtml = new HTML(mycolorliststring.get
(threadtype));
Window.alert(listBoxHtml.getElement().getFirstChildElement
().getInnerHTML());
return ColorfulListBox.wrap(listBoxHtml.getElement
().getFirstChildElement());

Error: uncaught exception: java.lang.IllegalStateException: Should
only call onAttach when the widget is detached from the browser's
document

get that error too.


On Mar 16, 9:16 am, flyingb...@gmail.com flyingb...@gmail.com
wrote:
 I just tried

         HTML listBoxHtml = new HTML(mycolorliststring.get
 (threadtype));
         return ColorfulListBox.wrap(listBoxHtml.getElement());

 but i get an error

 On Mar 16, 8:20 am, flyingb...@gmail.com flyingb...@gmail.com
 wrote:

  but that will make it just an html object no way to make it back to a
  listbox?

  On Mar 13, 2:18 pm, Velu kool.v...@gmail.com wrote:

   Hopefully the solution below will help you.

   Create your list box once and -

   String listBoxHtmlString = yourListBox.toString();

   Once you have the html string you can create as many number of HTML
   objects out of that as needed.

   HTML listBoxHtml = new HTML(listBoxHtmlString);
   yourWidget.add(listBoxHtml, left, top);

   However, I am not sure this is anymore efficient than creating as many
   instances of the ListBox itself.

   Try it and let us know.

   Thanks
   S. Velu

   On Mar 13, 1:04 pm, flyingb...@gmail.com flyingb...@gmail.com
   wrote:

Just wondering is there any way to make clone of listbox where I would
not have to readd all the values to a new listbox again.

For example my listbox is filled with like 100 items.

It will have to go though a loop to add them. I have more than one
listbox so it would have to go though a loop to add them to the new
listbox.

So is there any where where you can create one listbox and than make
new listbox use the old lsitbox name/values
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: gwt.1.5.3 on jboss.5.0.1 with ejb3 notation

2009-03-16 Thread rudolf michael
You will always need the Tomcat container to host your RPC servlet. In order
for your GWT module to communicate with your server, you will need an
interface that extends RemoteService which needs to be present in a Servlet
container.
From there you will have to look up your ejbs and with EJB3.0 it is easy to
do it, you just create the IntialContext and look up your remote beans.
I have done a full flow from client--tomcat COntainer-- App server
layer-- ORM(Hibernate) and back with the flow to the client.
all the configuration needed on JBOss are 2 xml files that you need to
change so you can call your EJB remote interface from your rcp servlet that
is hosted over tomcat.

On Mon, Mar 16, 2009 at 6:36 PM, tetsuo tetsuomeis...@googlemail.comwrote:


 thanks for your fast reply, but iam not looking for a tomcat based
 application. the differences within a container based and ejb3
 application is quite big, so the deployment of a tomcat solution, is
 not the solution we are looking for. for a web based site, the tomcat
 should be enough, for a good design and a distributed computing (3-4-5
 tier) the tomcat container is just a part of a jboss managed
 enviroment. look at
 http://docs.hp.com/en/5991-5569/img/Apache_Tomcat_Connection.png

 thanks
 tet
 


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



Re: gwt.1.5.3 on jboss.5.0.1 with ejb3 notation

2009-03-16 Thread tetsuo

thanks again and enough with the theoretical part of it. my initial
question was for a complete example from someone, who have done that
with success. maybe google or red hat have done that, as a test case /
scenario. the config is a bit different from jboss 4.x to jboss 5.x so
let me know, if u got a ootb.zip

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



How to align TabPanel on right

2009-03-16 Thread dialloma

Hello group,

I use GWT TabPanel in big entreprise Application. I would like to
align all tab items on the right. Please do you have idea about it ?

Thanks in advance
dialloma

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



Re: Anyway to clone a listbox?

2009-03-16 Thread flyingb...@gmail.com

oh ya colorfullist box is just a listbox where i have a background
color to the list. Just in case your wondering

On Mar 16, 9:30 am, flyingb...@gmail.com flyingb...@gmail.com
wrote:
 I also tried

         HTML listBoxHtml = new HTML(mycolorliststring.get
 (threadtype));
         Window.alert(listBoxHtml.getElement().getFirstChildElement
 ().getInnerHTML());
         return ColorfulListBox.wrap(listBoxHtml.getElement
 ().getFirstChildElement());

 Error: uncaught exception: java.lang.IllegalStateException: Should
 only call onAttach when the widget is detached from the browser's
 document

 get that error too.

 On Mar 16, 9:16 am, flyingb...@gmail.com flyingb...@gmail.com
 wrote:

  I just tried

          HTML listBoxHtml = new HTML(mycolorliststring.get
  (threadtype));
          return ColorfulListBox.wrap(listBoxHtml.getElement());

  but i get an error

  On Mar 16, 8:20 am, flyingb...@gmail.com flyingb...@gmail.com
  wrote:

   but that will make it just an html object no way to make it back to a
   listbox?

   On Mar 13, 2:18 pm, Velu kool.v...@gmail.com wrote:

Hopefully the solution below will help you.

Create your list box once and -

String listBoxHtmlString = yourListBox.toString();

Once you have the html string you can create as many number of HTML
objects out of that as needed.

HTML listBoxHtml = new HTML(listBoxHtmlString);
yourWidget.add(listBoxHtml, left, top);

However, I am not sure this is anymore efficient than creating as many
instances of the ListBox itself.

Try it and let us know.

Thanks
S. Velu

On Mar 13, 1:04 pm, flyingb...@gmail.com flyingb...@gmail.com
wrote:

 Just wondering is there any way to make clone of listbox where I would
 not have to readd all the values to a new listbox again.

 For example my listbox is filled with like 100 items.

 It will have to go though a loop to add them. I have more than one
 listbox so it would have to go though a loop to add them to the new
 listbox.

 So is there any where where you can create one listbox and than make
 new listbox use the old lsitbox name/values


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



embedding gwt generated js in wordpress

2009-03-16 Thread raza

Hello all,

This may be a newbie question, if so I apologize.

Im trying to embed javascript generated by GWT in a wordpress page,
but am getting exceptions. The javascript itself is just popping up an
alert box saying hello.

The exceptions I get are as follows:

Error: uncaught exception: Permission denied to get property
Window.__gwtstatsEvent
Error: uncaught exception: Permission denied to get property
Window.org_delphinus_noshery_Main

You can assume that the trivial problems like mistyped URLs etc have
been investigated. The javascript is being accessed, but apparently
getting the window is a problem. The same happens for anything more
complicated (like trying to put a button on the panel etc)


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



Re: best deploy for jnlp applet via GWT

2009-03-16 Thread Tony Strauss

When you talk about JNLP vs. applets, are you talking about a JNLP
*application* vs. an applet?  If you are talking about a JNLP
application, then as far as I know there is no way to communicate
directly between GWT and the JNLP application.  I had a similar
requirement, and I eventually had the GWT application and the JNLP
application talk to each other through the server.  A key point to
remember with JNLP applications is that they run completely
independently of the web browser and so cannot talk with code running
within the Javascript sandbox.

Is it acceptable if your application relies on recent versions of the
Java Plugin (Java 6 Update 10 and later)?  If so, you can have the
best of both worlds, a JNLP applet.  See:
http://blogs.sun.com/javaone2008/entry/applets_reloaded
for a brief description.  Basically, the JNLP applet is launched via
the APPLET tag and runs in the context of the web browser (just like a
traditional applet).  Although I have not tried this, it should be
able to communicate with Javascript.  I have not used it, but the GWT
AI project:
http://code.google.com/p/gwtai/
provides a GWT/applet integration layer.

One advantage of JNLP applets over traditional applets is that, as
with all JNLP applets and applications, the applet will be cached on
the user's computer (eliminating the download wait after the first
launch of the applet).  If applet download time is why you are
considering launching the applet when the GWT application starts
rather than when the user requires the applet's functionality, a JNLP
applet may be responsive enough so that you can launch it on-demand
(eliminating the need to communicate between Javascript and the JNLP
applet).

As you know, using the JNLP descriptor file, you can specify how much
memory your applet needs.  Alternatively, as of Java 6 Update 10, you
can specify how much memory your applet needs through the applet tag.
See:
https://jdk6.dev.java.net/plugin2/
https://jdk6.dev.java.net/plugin2/#JAVA_ARGUMENTS

Tony
--
Tony Strauss
Designing Patterns, LLC
http://www.designingpatterns.com
http://blogs.designingpatterns.com

On Mar 16, 3:42 am, Giuseppe Sacco eppes...@gmail.com wrote:
 Hi all,
 i am approaching GWT for the first time, trying to understand how to
 implement all functionalities required by my application. I currently
 need to access database, so I'll have to create some widget that load
 and store data via a servlet; this is not a problem. What I think
 might be a problem is scanning and sending all scanned pages to the
 server. In order to scan, I have an applet that I currently load via
 jnlp since it require a few extensions (JAI and JAI Image I/O). I
 could probably load the applet when the GWT application start, but
 then, I have to communicate with the applet when the user select to
 scan.

 I browsed all the archives of this forum and I found how to invoke
 applet methods from GWT code, but I failed to find a way to do the
 same thing when the applet is loaded via JNLP. Is there any way to
 communicate with applet ran via JNLP? Moreover I use JNLP instead of
 APPLET because I may specify how much RAM the jvm should use. (I need
 a lot of ram for storing buffered images.)

 Otherwise, I think I have to load the applet via APPLET tag, but I
 have no idea about how to deploy extensions and how to specify -Xmx
 using this tag.

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



Re: embedding gwt generated js in wordpress

2009-03-16 Thread Raza Ali
Sorry all, i found the error. The main.gwt.xml needs the following lines,
since I was linking externally.

inherits name=com.google.gwt.core.Core /
*add-linker name=xs / *


On Mon, Mar 16, 2009 at 5:53 PM, raza raza@gmail.com wrote:


 Hello all,

 This may be a newbie question, if so I apologize.

 Im trying to embed javascript generated by GWT in a wordpress page,
 but am getting exceptions. The javascript itself is just popping up an
 alert box saying hello.

 The exceptions I get are as follows:

 Error: uncaught exception: Permission denied to get property
 Window.__gwtstatsEvent
 Error: uncaught exception: Permission denied to get property
 Window.org_delphinus_noshery_Main

 You can assume that the trivial problems like mistyped URLs etc have
 been investigated. The javascript is being accessed, but apparently
 getting the window is a problem. The same happens for anything more
 complicated (like trying to put a button on the panel etc)


 


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



Re: gwt.1.5.3 on jboss.5.0.1 with ejb3 notation

2009-03-16 Thread rudolf michael
there you go
http://www.jboss.org/index.html?module=bbop=viewtopict=150822
hope that his might help you to figure it out.

regards,
ruds

On Mon, Mar 16, 2009 at 6:56 PM, tetsuo tetsuomeis...@googlemail.comwrote:


 thanks again and enough with the theoretical part of it. my initial
 question was for a complete example from someone, who have done that
 with success. maybe google or red hat have done that, as a test case /
 scenario. the config is a bit different from jboss 4.x to jboss 5.x so
 let me know, if u got a ootb.zip

 tet
 


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



Find target table-cell after onMouseDown

2009-03-16 Thread Michael

Hi there,

I have a Composite which wraps a FlexTable and to which I've added a
MouseListener. Without adding individual Widget subclasses to each
cell (they're currently just text), is there a way of finding out
which cell was clicked on?

Cheers

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



Re: best deploy for jnlp applet via GWT

2009-03-16 Thread Giuseppe Sacco

Hi Tony,

On 16 Mar, 19:32, Tony Strauss tony.stra...@designingpatterns.com
wrote:
 When you talk about JNLP vs. applets, are you talking about a JNLP
 *application* vs. an applet?  If you are talking about a JNLP
 application, then as far as I know there is no way to communicate
 directly between GWT and the JNLP application.  I had a similar
 requirement, and I eventually had the GWT application and the JNLP
 application talk to each other through the server.  A key point to
 remember with JNLP applications is that they run completely
 independently of the web browser and so cannot talk with code running
 within the Javascript sandbox.
[...]

Thanks for your reply. After writing my question I went looking for
general ways to communicate between applet and javascript (while
earlier I only looked in the GWT context) and found those pages about
java plugin2. I am studing this solution and I think I will try to
implement and test it.

About your question: I wish to run an applet via jnlp, I don't need a
complete application.

I'll be back on this thread whenever I complete my tests with java
plugin2.

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



como agregar imagen bmp en backround

2009-03-16 Thread Pacholi

necesito agregar imagen que se cargue una sola vez en pagina
principal, luego la navegar por las demas paginas que omita esta
imagen de fondo,.

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



Re: Need help with callback

2009-03-16 Thread dean.mikel

Thanks very much for the response.
What you need to do is instead of giving it errorHandler, pass it a
 Javascript function you create (on every call or cached in the page
 somewhere) which then calls your Java code using JSNI although

Ok, so I could use a closure anonymous function in place of the
callback arguments. Then inside the closure I would
would use JSNI to call my java dataHandler method? I'd have to process
the callback parameters inside the closure, for example to convert the
result set to array, because Java side won't understand SQLResultset
type, correct? Or is there a better way?



On Mar 16, 8:42 am, Vitali Lovich vlov...@gmail.com wrote:
 That's because GWT doesn't know you actually need the errorHandler name.
 It'll mangle it to improve performance when compiling (by minimizing the
 size of your javascript).

 What you need to do is instead of giving it errorHandler, pass it a
 Javascript function you create (on every call or cached in the page
 somewhere) which then calls your Java code using JSNI although, since it
 seems like you want to do the error handling in native Javascript (why?),
 you don't need the JSNI part.  Same goes for the dataHandler.

 On Mon, Mar 16, 2009 at 3:20 AM, dean.mikel dean.mi...@gmail.com wrote:

  I'm attempting to use html5 db from my gwt application. I'm able to
  open/create a database, and insert data in the table, but I cannot
  read data from table. I can't get the data handler callback to work.
  I am running this in Web mode (because the db won't be available in
  hosted mode). Safari script debugger shows an error stating
  dataHandler and errorHandler can't be found.

  I have something similar to this snippet of code:

  public void Read( JavaScriptObject db ){
     getData( db );
  }

  private native void getData( JavaScriptObject db )      /*-{
             db.transaction
             (
                 function ( transaction ) {
                     transaction.executeSql(SELECT * from people';,
                         [], dataHandler, errorHandler );
                 }
             );
         }-*/;

  public native void dataHandler( JavaScriptObject transaction,
  JavaScriptObject results )/*-{
            var string = Data contains: \n\n;
             for (var i=0; iresults.rows.length; i++) {
                 var row = results.rows.item(i);
                 string = string + row['name'] + '\n';
             }
             $wnd.alert(string);
         }-*/;

  public native static void errorHandler( JavaScriptObject transaction,
  JavaScriptObject results )/*-{
             $wnd.alert('DB Error: ' + error.message + ' (ErrorCode: ' +
  error.code + ')' );
         }-*/;

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



Re: Need help with callback

2009-03-16 Thread dean.mikel

Excellent, thank you. I'll hunt it down and go through it. The reason
I didn't start there I guess is because HTML5 strictly uses async
callbacks for result and error handlers, but Gears uses a more
traditional synchronous model. And its the async callbacks that have
me stumped on integrating with GWT java.

On Mar 16, 9:52 am, Thomas Broyer t.bro...@gmail.com wrote:

 Have a look athttp://code.google.com/p/gwt-google-apis/for code
 wrapping Gears DB (which has an API similar, if not identical, to
 HTML5)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Create a standalon jar with utilities

2009-03-16 Thread Davide Cerbo

Hi all!
In my projects I have some utilities class and I want to create a
standalone jar.
Someone can link me some working example or can answer me with some
info about this problem?
Thanks.
Davide

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



Re: Create a standalon jar with utilities

2009-03-16 Thread Davide Cerbo

Solved, thanks to this link:
http://www.ociweb.com/mark/programming/GWT.html#CustomWidgets
:D

2009/3/16 Davide Cerbo davidece...@gmail.com:
 Hi all!
 In my projects I have some utilities class and I want to create a
 standalone jar.
 Someone can link me some working example or can answer me with some
 info about this problem?
 Thanks.
 Davide




-- 
Davide Cerbo
---
http://www.pronetics.it
http://www.sourcesense.com
http://www.jesty.it
http://jugsalerno.wordpress.com
---

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



body bgcolor issue

2009-03-16 Thread tony.p..

Hello all,

I tried to change the background color of my gwt app, but couldn't.
I'm using this code:

html
  head
script type=text/javascript language=javascript
src=com.adc.IDD.nocache.js/script
  /head
  body bgcolor=#FF
div id=go align=center/div
  /body
/html

I tried different styles for the values for the bgcolor, eg: blue or
blue, etc..., but that did not change the color at all. If you know
how to set the bgcolor in the body please tell me how.

Thank you.
Tony

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



Generic Serialization

2009-03-16 Thread Tercio

Hi!

In my module I need to call a RPC service and this service need to
return an array of values with various types.

I tried to use ListObject and fill with Integer, Boolean, String and
so on, but Object is not serializable.

How to accomplish that?

Regards.,

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



NoClassDefFoundError

2009-03-16 Thread Luigi Iannone
Hi all,

I have been using GWT RPC for a couple of weeks and everything worked  
smoothly until I added a new private member to the server side  
implementation of the remote interface.
Such private member instantiates a class that is in a .jar which is in  
my eclipse classpath in my run configuration and in my build path.

Now when I launch it I get the following exception in the shell

[WARN] StandardWrapperValve[shell]: Servlet.service() for servlet  
shell threw exception
java.lang.NoClassDefFoundError: null
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at  
com 
.google 
.gwt 
.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServlet.java:936)
at  
com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java: 
277)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at  
org 
.apache 
.catalina 
.core 
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 
237)
at  
org 
.apache 
.catalina 
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at  
org 
.apache 
.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 
214)
at  
org 
.apache 
.catalina 
.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
520)
at  
org 
.apache 
.catalina 
.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at  
org 
.apache 
.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 
152)
at  
org 
.apache 
.catalina 
.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
520)
at  
org 
.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 
137)
at  
org 
.apache 
.catalina 
.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at  
org 
.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 
118)
at  
org 
.apache 
.catalina 
.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
520)
at  
org 
.apache 
.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at  
org 
.apache 
.catalina 
.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 
929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java: 
160)
at  
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 
799)
at org.apache.coyote.http11.Http11Protocol 
$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at  
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 
577)
at org.apache.tomcat.util.threads.ThreadPool 
$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:613)


If I remove the field that instantiates the class above I get no  
warnings nor exceptions.

Can you please tell me what is wrong with what I am trying to do?

Thanks,

Luigi




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



Re: Generic Serialization

2009-03-16 Thread gregor

Hi Tercio,

You can read about this issue in these posts:

http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/25d151960b48b5c4
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/85cfb087d061e3c6/d325d250c7c19564?lnk=gstq=gregor+generic+RPC+#d325d250c7c19564

The solution outlined by Scott in the the first one definitely works
(I tried it)

regards
gregor


On Mar 16, 10:08 pm, Tercio terciofi...@gmail.com wrote:
 Hi!

 In my module I need to call a RPC service and this service need to
 return an array of values with various types.

 I tried to use ListObject and fill with Integer, Boolean, String and
 so on, but Object is not serializable.

 How to accomplish that?

 Regards.,

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



Interesting issue for experts!

2009-03-16 Thread Anti

I just created hibernate POJOs for three new tables using weblogic
workshop, all these 3 classes have this:

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


That makes my build to fail (it wasn´t failing before this change):

 [java][ERROR] Errors in 'file:/C:/CAPWL/src/org/eagle/cap/
common/pojo/CapChecksheetItemsLu.java'
 [java]   [ERROR] Line 84: No source code is available for
type org.apache.commons.lang.builder.EqualsBuilder; did you forget to
inherit a required module?
 [java]   [ERROR] Line 90: No source code is available for
type org.apache.commons.lang.builder.HashCodeBuilder; did you forget
to inherit a required module?
 [java]   [ERROR] Line 96: No source code is available for
type org.apache.commons.lang.builder.ToStringBuilder; did you forget
to inherit a required module?


The section of build.xml where the error happens is:

target name=gwtbuildcap
java classname=com.google.gwt.dev.GWTCompiler dir=.
description=Generate static GWT files for the CAP module fork=true
failonerror=true maxmemory=512m
classpath
path refid=gwt.classpath /
/classpath
arg value=-out /
arg value=WebContent /
arg line=-style OBFUSCATE/
arg value=${gwt.entry.point.CapMain} /
/java
/target

So it seems that those imports (necessary for the equal method so I can
´t jus remove them) are spoiling the whole thing...comments and help
are highly appreciated.

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



Re: How to align TabPanel on right

2009-03-16 Thread gregor

Not sure, but TabBar has the styles:

# .gwt-TabBar .gwt-TabBarFirst { the left edge of the bar }
# .gwt-TabBar .gwt-TabBarRest { the right edge of the bar }

so if you give TabBarFirst 100% width and give TabBarRest maybe a
fixed width to give you a little indent from the right edge if you
wanted one, it might push the tabs over.

On Mar 16, 4:52 pm, dialloma malim...@gmail.com wrote:
 Hello group,

 I use GWT TabPanel in big entreprise Application. I would like to
 align all tab items on the right. Please do you have idea about it ?

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



Re: Interesting issue for experts!

2009-03-16 Thread Ian Petersen

On Mon, Mar 16, 2009 at 4:07 PM, Anti zer...@gmail.com wrote:
 I just created hibernate POJOs for three new tables using weblogic
 workshop, all these 3 classes have this:

 import org.apache.commons.lang.builder.EqualsBuilder;
 import org.apache.commons.lang.builder.HashCodeBuilder;
 import org.apache.commons.lang.builder.ToStringBuilder;


 That makes my build to fail (it wasn´t failing before this change):

     [java]    [ERROR] Errors in 'file:/C:/CAPWL/src/org/eagle/cap/
 common/pojo/CapChecksheetItemsLu.java'
     [java]       [ERROR] Line 84: No source code is available for
 type org.apache.commons.lang.builder.EqualsBuilder; did you forget to
 inherit a required module?
     [java]       [ERROR] Line 90: No source code is available for
 type org.apache.commons.lang.builder.HashCodeBuilder; did you forget
 to inherit a required module?
     [java]       [ERROR] Line 96: No source code is available for
 type org.apache.commons.lang.builder.ToStringBuilder; did you forget
 to inherit a required module?


 The section of build.xml where the error happens is:

        target name=gwtbuildcap
                java classname=com.google.gwt.dev.GWTCompiler dir=.
 description=Generate static GWT files for the CAP module fork=true
 failonerror=true maxmemory=512m
                        classpath
                                path refid=gwt.classpath /
                        /classpath
                        arg value=-out /
                        arg value=WebContent /
                        arg line=-style OBFUSCATE/
                        arg value=${gwt.entry.point.CapMain} /
                /java
        /target

 So it seems that those imports (necessary for the equal method so I can
 ´t jus remove them) are spoiling the whole thing...comments and help
 are highly appreciated.

You have two choices: port
org.apache.commons.lang.builder.EqualsBuilder,
org.apache.commons.lang.builder.HashCodeBuilder, and
org.apache.commons.lang.builder.ToStringBuilder to GWT or stop using
them.  I'd recommend the second choice (not using them).

Ian

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



Re: Need help with callback

2009-03-16 Thread Vitali Lovich
On Mon, Mar 16, 2009 at 5:12 PM, dean.mikel dean.mi...@gmail.com wrote:


 Thanks very much for the response.
 What you need to do is instead of giving it errorHandler, pass it a
  Javascript function you create (on every call or cached in the page
  somewhere) which then calls your Java code using JSNI although

 Ok, so I could use a closure anonymous function in place of the
 callback arguments. Then inside the closure I would
 would use JSNI to call my java dataHandler method? I'd have to process
 the callback parameters inside the closure, for example to convert the
 result set to array, because Java side won't understand SQLResultset
 type, correct? Or is there a better way?

Yup - that's the word I was looking for.  Closure.  Well, you see, it's kind
of pointless to use a closure to just wrap a call to dataHandler.  You could
just pass in dataHandler (using JSNI).  The cleaner approach (as far as I
know, and somebody feel free to correct me), would be to write an overlay
type for SQLResultSet (an extension class of JavascriptObject that uses JSNI
to retrieve values - a google search should give you a nice overview).

Then you pass in your dataHandler via JSNI, but make it a non-native method
that accepts your overlay.





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



Re: NoClassDefFoundError

2009-03-16 Thread Vitali Lovich
You'd have to provide more code.  It sounds like your trying to do the
following:

private MyClass foo = Class.forName(MyClass.class).newInstance();

in your RPC class.  It's quite possible that that throws an exception, which
means GWT can't initialize your servlet.

My recommendation would be to put that in your constructor, surrounded by
try/catch blocks.  Lemme know if that helps.  If it is throwing an
exception, then you'll have to figure out why it's not really on your class
path (I'm pretty sure for the server libraries, depending on how you're
launching, it has to be in your WEB-INF/lib directory).

On Mon, Mar 16, 2009 at 6:54 PM, Luigi Iannone iann...@cs.man.ac.uk wrote:

 Hi all,
 I have been using GWT RPC for a couple of weeks and everything worked
 smoothly until I added a new private member to the server side
 implementation of the remote interface.
 Such private member instantiates a class that is in a .jar which is in my
 eclipse classpath in my run configuration and in my build path.

 Now when I launch it I get the following exception in the shell

 [WARN] StandardWrapperValve[shell]: Servlet.service() for servlet shell
 threw exception
 java.lang.NoClassDefFoundError: null
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:164)
 at
 com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServlet.java:936)
 at
 com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:277)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
 at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 at java.lang.Thread.run(Thread.java:613)


 If I remove the field that instantiates the class above I get no warnings
 nor exceptions.

 Can you please tell me what is wrong with what I am trying to do?

 Thanks,

 Luigi




 


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



Re: Interesting issue for experts!

2009-03-16 Thread Vitali Lovich
This question keeps coming up - maybe it should go on the FAQ for GWT.  With
like giant flashing arrows pointing to what you have to keep in mind when
developing GWT.

GWT is a client-side library (with some syntactic sugar for communicating
with a server backend more easily).  Although you write Java, it's
javascript.  That should explain to you why GWT won't compile your code -
because those classes aren't on the classpath  they're not modules (and you
really can't include them because it's highly likely they use stuff
Javascript doesn't support).

Here's my recommendation.  Create a POJO wrapper you use on the server that
implements those methods.  When you communicate between the client  server,
you pass the raw POJO, but the server always wraps the POJO in a richer
class that has the more advanced functionality you need.

On Mon, Mar 16, 2009 at 7:21 PM, Ian Petersen ispet...@gmail.com wrote:


 On Mon, Mar 16, 2009 at 4:07 PM, Anti zer...@gmail.com wrote:
  I just created hibernate POJOs for three new tables using weblogic
  workshop, all these 3 classes have this:
 
  import org.apache.commons.lang.builder.EqualsBuilder;
  import org.apache.commons.lang.builder.HashCodeBuilder;
  import org.apache.commons.lang.builder.ToStringBuilder;
 
 
  That makes my build to fail (it wasn´t failing before this change):
 
  [java][ERROR] Errors in 'file:/C:/CAPWL/src/org/eagle/cap/
  common/pojo/CapChecksheetItemsLu.java'
  [java]   [ERROR] Line 84: No source code is available for
  type org.apache.commons.lang.builder.EqualsBuilder; did you forget to
  inherit a required module?
  [java]   [ERROR] Line 90: No source code is available for
  type org.apache.commons.lang.builder.HashCodeBuilder; did you forget
  to inherit a required module?
  [java]   [ERROR] Line 96: No source code is available for
  type org.apache.commons.lang.builder.ToStringBuilder; did you forget
  to inherit a required module?
 
 
  The section of build.xml where the error happens is:
 
 target name=gwtbuildcap
 java classname=com.google.gwt.dev.GWTCompiler dir=.
  description=Generate static GWT files for the CAP module fork=true
  failonerror=true maxmemory=512m
 classpath
 path refid=gwt.classpath /
 /classpath
 arg value=-out /
 arg value=WebContent /
 arg line=-style OBFUSCATE/
 arg value=${gwt.entry.point.CapMain} /
 /java
 /target
 
  So it seems that those imports (necessary for the equal method so I can
  ´t jus remove them) are spoiling the whole thing...comments and help
  are highly appreciated.

 You have two choices: port
 org.apache.commons.lang.builder.EqualsBuilder,
 org.apache.commons.lang.builder.HashCodeBuilder, and
 org.apache.commons.lang.builder.ToStringBuilder to GWT or stop using
 them.  I'd recommend the second choice (not using them).

 Ian

 


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



Re: Interesting issue for experts!

2009-03-16 Thread Ian Petersen

On Mon, Mar 16, 2009 at 7:29 PM, Joe Cole profilercorporat...@gmail.com wrote:
 Even better: make the error message in gwt be super-specific. That way
 people won't need to go to the FAQ.

 Error: The class X was not in one of the gwt-compilation folders
 (a,b,c). Since gwt only compiles code below these folders into
 javascript your class was removed from compilation. Your options are
 to: 1) provide a replacement class (see http://faq) , 2) rewrite the
 functionality you need to a reachable class or 3) move the class into
 one of the folders reachable by your modules.

That sounds like a good idea, but it seems like lots of people are
already not reading the existing error messages.  Adding more text is
only going to create more problems, I think.

Ian

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



Re: Find target table-cell after onMouseDown

2009-03-16 Thread Tony Strauss

Perhaps I'm not understanding the context of the question correctly,
but can you use a TableListener instead of a MouseListener?
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/TableListener.html

HTMLTable (the parent of Grid and FlexTable) has an addTableListener
method; I've definitely used this to receive mouse click events on
individual cells with a Grid wrapped in a Composite.

Tony
--
Tony Strauss
Designing Patterns, LLC
http://www.designingpatterns.com
http://blogs.designingpatterns.com

On Mar 16, 3:44 pm, Michael michael.guy...@gmail.com wrote:
 Hi there,

 I have a Composite which wraps a FlexTable and to which I've added a
 MouseListener. Without adding individual Widget subclasses to each
 cell (they're currently just text), is there a way of finding out
 which cell was clicked on?

 Cheers

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



[gwt-contrib] Adds deprecation links

2009-03-16 Thread rjrjr

Reviewers: jgw,

Description:
Addresses issue 3427, Need to improve @deprecated javadocs for new event
handler system

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

Affected files:
   user/src/com/google/gwt/user/client/ui/ChangeListener.java
   user/src/com/google/gwt/user/client/ui/ChangeListenerCollection.java
   user/src/com/google/gwt/user/client/ui/ClickListener.java
   user/src/com/google/gwt/user/client/ui/ComplexPanel.java
   user/src/com/google/gwt/user/client/ui/CustomButton.java

user/src/com/google/gwt/user/client/ui/DelegatingClickListenerCollection.java

user/src/com/google/gwt/user/client/ui/DelegatingFocusListenerCollection.java

user/src/com/google/gwt/user/client/ui/DelegatingKeyboardListenerCollection.java
   user/src/com/google/gwt/user/client/ui/DialogBox.java
   user/src/com/google/gwt/user/client/ui/DisclosureEvent.java
   user/src/com/google/gwt/user/client/ui/DisclosurePanel.java
   user/src/com/google/gwt/user/client/ui/FiresDisclosureEvents.java
   user/src/com/google/gwt/user/client/ui/FiresFormEvents.java
   user/src/com/google/gwt/user/client/ui/FiresSuggestionEvents.java
   user/src/com/google/gwt/user/client/ui/FocusListenerCollection.java
   user/src/com/google/gwt/user/client/ui/FocusPanel.java
   user/src/com/google/gwt/user/client/ui/FocusWidget.java
   user/src/com/google/gwt/user/client/ui/FormHandlerCollection.java
   user/src/com/google/gwt/user/client/ui/FormPanel.java
   user/src/com/google/gwt/user/client/ui/HTMLTable.java
   user/src/com/google/gwt/user/client/ui/Hyperlink.java
   user/src/com/google/gwt/user/client/ui/Image.java
   user/src/com/google/gwt/user/client/ui/KeyboardListenerCollection.java
   user/src/com/google/gwt/user/client/ui/Label.java
   user/src/com/google/gwt/user/client/ui/ListBox.java
   user/src/com/google/gwt/user/client/ui/ListenerWrapper.java
   user/src/com/google/gwt/user/client/ui/LoadListener.java
   user/src/com/google/gwt/user/client/ui/LoadListenerCollection.java
   user/src/com/google/gwt/user/client/ui/MenuBar.java
   user/src/com/google/gwt/user/client/ui/MouseListener.java
   user/src/com/google/gwt/user/client/ui/MouseListenerCollection.java
   user/src/com/google/gwt/user/client/ui/MouseWheelListener.java
   user/src/com/google/gwt/user/client/ui/MouseWheelListenerCollection.java
   user/src/com/google/gwt/user/client/ui/PopupListener.java
   user/src/com/google/gwt/user/client/ui/PopupListenerCollection.java
   user/src/com/google/gwt/user/client/ui/PopupPanel.java
   user/src/com/google/gwt/user/client/ui/PushButton.java
   user/src/com/google/gwt/user/client/ui/ScrollListenerCollection.java
   user/src/com/google/gwt/user/client/ui/ScrollPanel.java
   user/src/com/google/gwt/user/client/ui/SourcesChangeEvents.java
   user/src/com/google/gwt/user/client/ui/SourcesClickEvents.java
   user/src/com/google/gwt/user/client/ui/SourcesFocusEvents.java
   user/src/com/google/gwt/user/client/ui/SourcesKeyboardEvents.java
   user/src/com/google/gwt/user/client/ui/SourcesLoadEvents.java
   user/src/com/google/gwt/user/client/ui/SourcesMouseEvents.java
   user/src/com/google/gwt/user/client/ui/SourcesMouseWheelEvents.java
   user/src/com/google/gwt/user/client/ui/SourcesPopupEvents.java
   user/src/com/google/gwt/user/client/ui/SourcesScrollEvents.java
   user/src/com/google/gwt/user/client/ui/SourcesTabEvents.java
   user/src/com/google/gwt/user/client/ui/SourcesTableEvents.java
   user/src/com/google/gwt/user/client/ui/SourcesTreeEvents.java
   user/src/com/google/gwt/user/client/ui/SuggestBox.java
   user/src/com/google/gwt/user/client/ui/TabBar.java
   user/src/com/google/gwt/user/client/ui/TabListenerCollection.java
   user/src/com/google/gwt/user/client/ui/TabPanel.java
   user/src/com/google/gwt/user/client/ui/TableListenerCollection.java
   user/src/com/google/gwt/user/client/ui/TextBoxBase.java
   user/src/com/google/gwt/user/client/ui/ToggleButton.java
   user/src/com/google/gwt/user/client/ui/Tree.java
   user/src/com/google/gwt/user/client/ui/TreeItem.java
   user/src/com/google/gwt/user/client/ui/TreeListener.java
   user/src/com/google/gwt/user/client/ui/TreeListenerCollection.java



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



[gwt-contrib] [google-web-toolkit commit] r5017 - Fix a bug in currency list generation for runtime locales.

2009-03-16 Thread codesite-noreply

Author: j...@google.com
Date: Mon Mar 16 06:39:36 2009
New Revision: 5017

Modified:
trunk/user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java

Log:
Fix a bug in currency list generation for runtime locales.

Patch by: jat
Review by: andreasst


Modified:  
trunk/user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java
==
--- trunk/user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java
 
(original)
+++ trunk/user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java
 
Mon Mar 16 06:39:36 2009
@@ -298,12 +298,14 @@
writer.println(protected void loadCurrencyMap() {);
writer.println(  ensureInstance(););
writer.println(  instance.loadCurrencyMap(););
+  writer.println(  dataMap = instance.dataMap;);
writer.println(});
writer.println();
writer.println(@Override);
writer.println(protected void loadNamesMap() {);
writer.println(  ensureInstance(););
writer.println(  instance.loadNamesMap(););
+  writer.println(  namesMap = instance.namesMap;);
writer.println(});
writer.println();
writer.println(private void ensureInstance() {);

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



[gwt-contrib] code review requested -- add local host name/address to whitelist

2009-03-16 Thread John Tamplin
The attached patch, relative to trunk r5016, adds the name and address of
the local host machine to the whitelist automatically.  In addition, it
cleans up some cases which were incompletely validated and builds one regex
rather than requiring iteration.

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

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

Index: dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java
===
--- dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java	(revision 5016)
+++ dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java	(working copy)
@@ -17,6 +17,8 @@
 
 import com.google.gwt.core.ext.TreeLogger;
 
+import java.net.InetAddress;
+import java.net.UnknownHostException;
 import java.util.HashSet;
 import java.util.Iterator;
 import java.util.Set;
@@ -31,7 +33,7 @@
   /**
* The set of always allowed URLs, which are immune to blacklisting.
*/
-  private static final SetString alwaysValidHttpHosts = new HashSetString();
+  private static final Pattern alwaysValidHttpHosts;
 
   /**
* The set of blacklisted URLs.
@@ -48,19 +50,49 @@
   private static final SetString validHttpHosts = new HashSetString();
 
   static {
-alwaysValidHttpHosts.add(^https?://localhost);
-alwaysValidHttpHosts.add(^file:);
-alwaysValidHttpHosts.add(^about:);
-alwaysValidHttpHosts.add(^res:);
-alwaysValidHttpHosts.add(^javascript:);
-alwaysValidHttpHosts.add(^([a-zA-Z][:])[/]);
+SetString regexes = new HashSetString();
+// Regular URLs may or may not have a port, and must either end with
+// the host+port, or be followed by a slash (to avoid attacks like
+// localhost.evildomain.org).
+String portSuffix = (:\\d+)?(/.*)?;
+regexes.add(https?://localhost + portSuffix);
+regexes.add(https?://localhost[.]localdomain + portSuffix);
+regexes.add(https?://127[.]0[.]0[.]1 + portSuffix);
+String hostName;
+try {
+  hostName = InetAddress.getLocalHost().getHostName();
+  if (hostName != null) {
+hostName = hostName.replace(., [.]);
+regexes.add(https?:// + hostName + portSuffix);
+  }
+} catch (UnknownHostException e) {
+  // Ignore
+}
+String addr;
+try {
+  addr = InetAddress.getLocalHost().getHostAddress();
+  if (addr != null) {
+addr = addr.replace(., [.]);
+regexes.add(https?:// + addr + portSuffix);
+  }
+} catch (UnknownHostException e) {
+  // Ignore
+}
+regexes.add(file:.*);
+regexes.add(about:.*);
+regexes.add(res:.*);
+regexes.add(javascript:.*);
+regexes.add(([a-z][:])[/].*);
 // matches c:\ and c:/
-alwaysValidHttpHosts.add(^https?://localhost/);
-alwaysValidHttpHosts.add(^https?://localhost[.]localdomain/);
-alwaysValidHttpHosts.add(^https?://127[.]0[.]0[.]1/);
-alwaysValidHttpHosts.add(^https?://localhost$);
-alwaysValidHttpHosts.add(^https?://localhost[.]localdomain$);
-alwaysValidHttpHosts.add(^https?://127[.]0[.]0[.]1$);
+StringBuilder buf = new StringBuilder();
+String prefix = (;
+for (String regex : regexes) {
+  buf.append(prefix).append(regex);
+  prefix = |;
+}
+buf.append());
+alwaysValidHttpHosts = Pattern.compile(buf.toString(),
+Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE);
   }
 
   /**
@@ -90,9 +122,10 @@
* @return true if the host matches
*/
   public static String checkHost(String hostUnderConsideration, SetString hosts) {
+// TODO(jat): build a single regex instead of looping
 hostUnderConsideration = hostUnderConsideration.toLowerCase();
-for (IteratorString i = hosts.iterator(); i.hasNext();) {
-  String rule = i.next().toString().toLowerCase();
+for (String rule : hosts) {
+  rule = rule.toLowerCase();
   // match on lowercased regex
   if (hostUnderConsideration.matches(.* + rule + .*)) {
 return rule;
@@ -149,20 +182,18 @@
   }
 
   /**
-   * This method returns true if the host is always admissable, regardless of
+   * This method returns true if the host is always admissible, regardless of
* the blacklist.
* 
* @param url the URL to be verified
-   * @return returns true if the host is always admissable
+   * @return returns true if the host is always admissible
*/
   public static boolean isAlwaysWhitelisted(String url) {
-String whitelistRuleFound;
-whitelistRuleFound = checkHost(url, alwaysValidHttpHosts);
-return whitelistRuleFound != null;
+return alwaysValidHttpHosts.matcher(url).matches();
   }
 
   /**
-   * This method returns true if the host is forbidden.
+   * This method returns non-null if the host is forbidden.
* 
* @param url the URL to be verified
* @return returns the regex that 

[gwt-contrib] Re: Changed gwt.xml not picked up buy webserver

2009-03-16 Thread Scott Blum
Is this using old-style GWTShell, or the new HostedMode?

On Mon, Mar 16, 2009 at 2:30 AM, Vitali Lovich vlov...@gmail.com wrote:

 I'm just wondering if this is a bug or expected behaviour.  If I change the
 module descriptor that was used to launch the Jetty server, I am unable to
 refresh the app - the webserver complains about not being able to find the
 module.  Shouldn't it detect this  recompile as necessary?

 I think there might be a related bug where this failure to find the module
 doesn't disconnect the server's OOPHM connection (even though the browser
 made a new one because I hit refresh).

 


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



[gwt-contrib] Re: code review requested -- add local host name/address to whitelist

2009-03-16 Thread Scott Blum
85: Why the change from [a-zA-Z] to [a-z]?  FWIW, the tests should check the
validatity of C:\foo and c:\foo.

88: unless I'm missing something, this should read:
String prefix = ^(

Otherwise, you lose the property of checking only start of the URL.  Think 
http://evildomain.org/evil?http://localhost:88/;.  There should probably
also be a test case that this does not pass.


Also, have you verified that it's actually faster to use a single regex than
to check multiples?

On Mon, Mar 16, 2009 at 11:29 AM, John Tamplin j...@google.com wrote:

 The attached patch, relative to trunk r5016, adds the name and address of
 the local host machine to the whitelist automatically.  In addition, it
 cleans up some cases which were incompletely validated and builds one regex
 rather than requiring iteration.

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


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



[gwt-contrib] Re: code review requested -- add local host name/address to whitelist

2009-03-16 Thread John Tamplin
On Mon, Mar 16, 2009 at 11:54 AM, Scott Blum sco...@google.com wrote:

 85: Why the change from [a-zA-Z] to [a-z]?  FWIW, the tests should check
 the validatity of C:\foo and c:\foo.


The pattern was already being compared in a case-insensitive manner, so it
was pointless to also handle case here.  In fact, the previous formulation
did rule.toLowerCase(), so it was getting changed to [a-za-z].


 88: unless I'm missing something, this should read:
 String prefix = ^(

 Otherwise, you lose the property of checking only start of the URL.  Think
 http://evildomain.org/evil?http://localhost:88/;.  There should probably
 also be a test case that this does not pass.


From the documentation of Matcher.matches:

  * @return  tttrue/tt if, and only if, the entire region sequence
  *  matches this matcher's pattern


Ie, it already includes implicit ^$ around the pattern, which is why .* was
added in various places.

I added your suggested tests to verify it and they do pass.  I also added an
extra () around each individual regex to avoid surprises if someone adds a
regex in the future that needs it.


 Also, have you verified that it's actually faster to use a single regex
 than to check multiples?


I have not actually compared this particular implementation, but in my
experience it is always faster to build one DFA based on all the patterns
than to build multple ones and try and match each separately.  In addition,
the old formulation was compiling each pattern every time it was checked, so
I am completely confident this is much faster (not that the number of checks
is going to be significant anyway).

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

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



[gwt-contrib] Re: code review requested -- add local host name/address to whitelist

2009-03-16 Thread Scott Blum
LGTM then.

On Mon, Mar 16, 2009 at 12:14 PM, John Tamplin j...@google.com wrote:

 On Mon, Mar 16, 2009 at 11:54 AM, Scott Blum sco...@google.com wrote:

 85: Why the change from [a-zA-Z] to [a-z]?  FWIW, the tests should check
 the validatity of C:\foo and c:\foo.


 The pattern was already being compared in a case-insensitive manner, so it
 was pointless to also handle case here.  In fact, the previous formulation
 did rule.toLowerCase(), so it was getting changed to [a-za-z].


 88: unless I'm missing something, this should read:
 String prefix = ^(

 Otherwise, you lose the property of checking only start of the URL.  Think
 http://evildomain.org/evil?http://localhost:88/;.  There should probably
 also be a test case that this does not pass.


 From the documentation of Matcher.matches:

  * @return  tttrue/tt if, and only if, the entire region sequence
  *  matches this matcher's pattern


 Ie, it already includes implicit ^$ around the pattern, which is why .* was
 added in various places.

 I added your suggested tests to verify it and they do pass.  I also added
 an extra () around each individual regex to avoid surprises if someone adds
 a regex in the future that needs it.


 Also, have you verified that it's actually faster to use a single regex
 than to check multiples?


 I have not actually compared this particular implementation, but in my
 experience it is always faster to build one DFA based on all the patterns
 than to build multple ones and try and match each separately.  In addition,
 the old formulation was compiling each pattern every time it was checked, so
 I am completely confident this is much faster (not that the number of checks
 is going to be significant anyway).


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


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



[gwt-contrib] Re: code review requested -- add local host name/address to whitelist

2009-03-16 Thread John Tamplin
On Mon, Mar 16, 2009 at 2:03 PM, Scott Blum sco...@google.com wrote:

 LGTM then.


Thanks, committed at r5018.

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

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



[gwt-contrib] [google-web-toolkit commit] r5020 - Cherry pick of 5017, fix to Issue 3464: DateBox cannot be mocked

2009-03-16 Thread codesite-noreply

Author: rj...@google.com
Date: Mon Mar 16 11:38:53 2009
New Revision: 5020

Modified:
branches/snapshot-2009.03.03/branch-info.txt
 
branches/snapshot-2009.03.03/user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java

Log:
Cherry pick of 5017, fix to Issue 3464: DateBox cannot be mocked

Review by andreasst



Modified: branches/snapshot-2009.03.03/branch-info.txt
==
--- branches/snapshot-2009.03.03/branch-info.txt(original)
+++ branches/snapshot-2009.03.03/branch-info.txtMon Mar 16 11:38:53 2009
@@ -8,3 +8,4 @@
  Merges:

  /tr...@c4995 was merged (r4996) into this branch, for fix to Issue 3464:  
DateBox cannot be mocked
+/tr...@c5017 was merged (r) into this branch, Fix a bug in currency  
list generation for runtime locales.

Modified:  
branches/snapshot-2009.03.03/user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java
==
---  
branches/snapshot-2009.03.03/user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java
  
(original)
+++  
branches/snapshot-2009.03.03/user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java
  
Mon Mar 16 11:38:53 2009
@@ -298,12 +298,14 @@
writer.println(protected void loadCurrencyMap() {);
writer.println(  ensureInstance(););
writer.println(  instance.loadCurrencyMap(););
+  writer.println(  dataMap = instance.dataMap;);
writer.println(});
writer.println();
writer.println(@Override);
writer.println(protected void loadNamesMap() {);
writer.println(  ensureInstance(););
writer.println(  instance.loadNamesMap(););
+  writer.println(  namesMap = instance.namesMap;);
writer.println(});
writer.println();
writer.println(private void ensureInstance() {);

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



[gwt-contrib] [google-web-toolkit commit] r5018 - Add host name/address to automatically generated whitelist, improve handling

2009-03-16 Thread codesite-noreply

Author: j...@google.com
Date: Mon Mar 16 11:18:25 2009
New Revision: 5018

Modified:
trunk/dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java
trunk/dev/core/test/com/google/gwt/dev/GWTShellTest.java
trunk/dev/core/test/com/google/gwt/dev/HostedModeTest.java

Log:
Add host name/address to automatically generated whitelist, improve handling
of these regexes.

Patch by: jat
Review by: scottb


Modified:  
trunk/dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java
==
---  
trunk/dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java   
 
(original)
+++  
trunk/dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java   
 
Mon Mar 16 11:18:25 2009
@@ -17,6 +17,8 @@

  import com.google.gwt.core.ext.TreeLogger;

+import java.net.InetAddress;
+import java.net.UnknownHostException;
  import java.util.HashSet;
  import java.util.Iterator;
  import java.util.Set;
@@ -31,7 +33,7 @@
/**
 * The set of always allowed URLs, which are immune to blacklisting.
 */
-  private static final SetString alwaysValidHttpHosts = new  
HashSetString();
+  private static final Pattern alwaysValidHttpHosts;

/**
 * The set of blacklisted URLs.
@@ -48,19 +50,49 @@
private static final SetString validHttpHosts = new HashSetString();

static {
-alwaysValidHttpHosts.add(^https?://localhost);
-alwaysValidHttpHosts.add(^file:);
-alwaysValidHttpHosts.add(^about:);
-alwaysValidHttpHosts.add(^res:);
-alwaysValidHttpHosts.add(^javascript:);
-alwaysValidHttpHosts.add(^([a-zA-Z][:])[/]);
+SetString regexes = new HashSetString();
+// Regular URLs may or may not have a port, and must either end with
+// the host+port, or be followed by a slash (to avoid attacks like
+// localhost.evildomain.org).
+String portSuffix = (:\\d+)?(/.*)?;
+regexes.add(https?://localhost + portSuffix);
+regexes.add(https?://localhost[.]localdomain + portSuffix);
+regexes.add(https?://127[.]0[.]0[.]1 + portSuffix);
+String hostName;
+try {
+  hostName = InetAddress.getLocalHost().getHostName();
+  if (hostName != null) {
+hostName = hostName.replace(., [.]);
+regexes.add(https?:// + hostName + portSuffix);
+  }
+} catch (UnknownHostException e) {
+  // Ignore
+}
+String addr;
+try {
+  addr = InetAddress.getLocalHost().getHostAddress();
+  if (addr != null) {
+addr = addr.replace(., [.]);
+regexes.add(https?:// + addr + portSuffix);
+  }
+} catch (UnknownHostException e) {
+  // Ignore
+}
+regexes.add(file:.*);
+regexes.add(about:.*);
+regexes.add(res:.*);
+regexes.add(javascript:.*);
+regexes.add(([a-z][:])[/].*);
  // matches c:\ and c:/
-alwaysValidHttpHosts.add(^https?://localhost/);
-alwaysValidHttpHosts.add(^https?://localhost[.]localdomain/);
-alwaysValidHttpHosts.add(^https?://127[.]0[.]0[.]1/);
-alwaysValidHttpHosts.add(^https?://localhost$);
-alwaysValidHttpHosts.add(^https?://localhost[.]localdomain$);
-alwaysValidHttpHosts.add(^https?://127[.]0[.]0[.]1$);
+StringBuilder buf = new StringBuilder();
+String prefix = (;
+for (String regex : regexes) {
+  buf.append(prefix).append('(').append(regex).append(')');
+  prefix = |;
+}
+buf.append());
+alwaysValidHttpHosts = Pattern.compile(buf.toString(),
+Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE);
}

/**
@@ -90,9 +122,10 @@
 * @return true if the host matches
 */
public static String checkHost(String hostUnderConsideration,  
SetString hosts) {
+// TODO(jat): build a single regex instead of looping
  hostUnderConsideration = hostUnderConsideration.toLowerCase();
-for (IteratorString i = hosts.iterator(); i.hasNext();) {
-  String rule = i.next().toString().toLowerCase();
+for (String rule : hosts) {
+  rule = rule.toLowerCase();
// match on lowercased regex
if (hostUnderConsideration.matches(.* + rule + .*)) {
  return rule;
@@ -149,20 +182,18 @@
}

/**
-   * This method returns true if the host is always admissable, regardless  
of
+   * This method returns true if the host is always admissible, regardless  
of
 * the blacklist.
 *
 * @param url the URL to be verified
-   * @return returns true if the host is always admissable
+   * @return returns true if the host is always admissible
 */
public static boolean isAlwaysWhitelisted(String url) {
-String whitelistRuleFound;
-whitelistRuleFound = checkHost(url, alwaysValidHttpHosts);
-return whitelistRuleFound != null;
+return alwaysValidHttpHosts.matcher(url).matches();
}

/**
-   * This method returns true if the host is forbidden.
+   * This method returns non-null if the host is forbidden.
 *
 * @param url the URL 

[gwt-contrib] Re: Changed gwt.xml not picked up buy webserver

2009-03-16 Thread Vitali Lovich
HostedMode w/ OOPHM.  rev 5009 if that helps.

On Mon, Mar 16, 2009 at 11:41 AM, Scott Blum sco...@google.com wrote:

 Is this using old-style GWTShell, or the new HostedMode?

 On Mon, Mar 16, 2009 at 2:30 AM, Vitali Lovich vlov...@gmail.com wrote:

 I'm just wondering if this is a bug or expected behaviour.  If I change
 the module descriptor that was used to launch the Jetty server, I am unable
 to refresh the app - the webserver complains about not being able to find
 the module.  Shouldn't it detect this  recompile as necessary?

 I think there might be a related bug where this failure to find the module
 doesn't disconnect the server's OOPHM connection (even though the browser
 made a new one because I hit refresh).




 


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



[gwt-contrib] Re: Changed gwt.xml not picked up buy webserver

2009-03-16 Thread Scott Blum
OOPHM is still using GWTShell (I still owe John a review).  Can you give us
a little more detail about what you're doing?  What exact errors are you
seeing?

On Mon, Mar 16, 2009 at 3:53 PM, Vitali Lovich vlov...@gmail.com wrote:

 HostedMode w/ OOPHM.  rev 5009 if that helps.


 On Mon, Mar 16, 2009 at 11:41 AM, Scott Blum sco...@google.com wrote:

 Is this using old-style GWTShell, or the new HostedMode?

 On Mon, Mar 16, 2009 at 2:30 AM, Vitali Lovich vlov...@gmail.com wrote:

 I'm just wondering if this is a bug or expected behaviour.  If I change
 the module descriptor that was used to launch the Jetty server, I am unable
 to refresh the app - the webserver complains about not being able to find
 the module.  Shouldn't it detect this  recompile as necessary?

 I think there might be a related bug where this failure to find the
 module doesn't disconnect the server's OOPHM connection (even though the
 browser made a new one because I hit refresh).







 


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



[gwt-contrib] [google-web-toolkit commit] r5022 - Revert inadverdent commit from 5018.

2009-03-16 Thread codesite-noreply

Author: j...@google.com
Date: Mon Mar 16 13:33:47 2009
New Revision: 5022

Modified:
trunk/dev/core/test/com/google/gwt/dev/HostedModeTest.java

Log:
Revert inadverdent commit from 5018.

Patch by: jat
Review by: scottb (TBR)


Modified: trunk/dev/core/test/com/google/gwt/dev/HostedModeTest.java
==
--- trunk/dev/core/test/com/google/gwt/dev/HostedModeTest.java  (original)
+++ trunk/dev/core/test/com/google/gwt/dev/HostedModeTest.java  Mon Mar 16  
13:33:47 2009
@@ -32,8 +32,7 @@

public static class MySCL extends ServletContainerLauncher {
  @Override
-public ServletContainer start(TreeLogger logger, String bindAddr, int  
port,
-File appRootDir)
+public ServletContainer start(TreeLogger logger, int port, File  
appRootDir)
  throws BindException, Exception {
throw new UnsupportedOperationException();
  }

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



[gwt-contrib] Make DisclosurePanelImagesRTL public

2009-03-16 Thread rjrjr

Reviewers: jlabanca,

Description:
This makes DisclosurePanelImagesRTL into a public interface, to allow
apps to combine it into a larger ImageBundle to be passed to the
DisclosurePanel(ImageBundle) constructor.

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

Affected files:
   user/src/com/google/gwt/user/client/ui/DisclosurePanelImages.java
   user/src/com/google/gwt/user/client/ui/DisclosurePanelImagesRTL.java



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



[gwt-contrib] Make MenuBar#selectItem public

2009-03-16 Thread rjrjr

Reviewers: jlabanca,

Description:
This patch makes MenuBar#selectItem public, with an eye toward allowing
keyboard menu control.

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

Affected files:
   user/src/com/google/gwt/user/client/ui/MenuBar.java
   user/test/com/google/gwt/user/client/ui/MenuBarTest.java



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



[gwt-contrib] [google-web-toolkit commit] r5023 - Fixes issue 3474. If a method in an async RPC interface

2009-03-16 Thread codesite-noreply

Author: sp...@google.com
Date: Mon Mar 16 15:48:33 2009
New Revision: 5023

Added:
 
releases/1.6/user/src/com/google/gwt/user/client/rpc/impl/FailedRequest.java
(contents, props changed)
 
releases/1.6/user/src/com/google/gwt/user/client/rpc/impl/FailingRequestBuilder.java

(contents, props changed)
 
releases/1.6/user/test/com/google/gwt/user/client/rpc/FailedRequestTest.java
(contents, props changed)
 
releases/1.6/user/test/com/google/gwt/user/client/rpc/FailingRequestBuilderTest.java

(contents, props changed)
 
releases/1.6/user/test/com/google/gwt/user/client/rpc/MixedSerializable.java
(contents, props changed)
 
releases/1.6/user/test/com/google/gwt/user/client/rpc/MixedSerializableEchoService.java

(contents, props changed)
 
releases/1.6/user/test/com/google/gwt/user/client/rpc/MixedSerializableEchoServiceAsync.java

(contents, props changed)
 
releases/1.6/user/test/com/google/gwt/user/client/rpc/RunTimeSerializationErrorsTest.java

(contents, props changed)
 
releases/1.6/user/test/com/google/gwt/user/server/rpc/MixedSerializableEchoServiceImpl.java

(contents, props changed)
Modified:
releases/1.6/user/src/com/google/gwt/http/client/Request.java
releases/1.6/user/src/com/google/gwt/user/rebind/rpc/ProxyCreator.java
releases/1.6/user/test/com/google/gwt/user/RPCSuite.gwt.xml
releases/1.6/user/test/com/google/gwt/user/RPCSuite.java

Log:
Fixes issue 3474.  If a method in an async RPC interface
returns a Request or a RequestBuilder, previously ProxyCreator
would generate uncompiling code.  Now, such methods always
return a Request or RequestBuilder, albeit sometimes a dummy
stand-in object that always fails.

Review by: jat, scottb, bruce



Modified: releases/1.6/user/src/com/google/gwt/http/client/Request.java
==
--- releases/1.6/user/src/com/google/gwt/http/client/Request.java   
(original)
+++ releases/1.6/user/src/com/google/gwt/http/client/Request.java   Mon Mar 
 
16 15:48:33 2009
@@ -94,6 +94,16 @@
 * and set this field to null.
 */
private JavaScriptObject xmlHttpRequest;
+
+  /**
+   * Only used for building a
+   * {...@link com.google.gwt.user.client.rpc.impl.FailedRequest}.
+   */
+  protected Request() {
+timeoutMillis = 0;
+xmlHttpRequest = null;
+timer = null;
+  }

/**
 * Constructs an instance of the Request object.

Added:  
releases/1.6/user/src/com/google/gwt/user/client/rpc/impl/FailedRequest.java
==
--- (empty file)
+++  
releases/1.6/user/src/com/google/gwt/user/client/rpc/impl/FailedRequest.java
 
Mon Mar 16 15:48:33 2009
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2009 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under
+ * the License.
+ */
+package com.google.gwt.user.client.rpc.impl;
+
+import com.google.gwt.http.client.Request;
+
+/**
+ * A {...@link Request} that is already canceled at the moment it is created.
+ */
+public class FailedRequest extends Request {
+  public FailedRequest() {
+super();
+  }
+}

Added:  
releases/1.6/user/src/com/google/gwt/user/client/rpc/impl/FailingRequestBuilder.java
==
--- (empty file)
+++  
releases/1.6/user/src/com/google/gwt/user/client/rpc/impl/FailingRequestBuilder.java
 
Mon Mar 16 15:48:33 2009
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2009 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under
+ * the License.
+ */
+package com.google.gwt.user.client.rpc.impl;
+
+import com.google.gwt.http.client.Request;
+import com.google.gwt.http.client.RequestBuilder;
+import com.google.gwt.http.client.RequestCallback;
+import com.google.gwt.http.client.RequestException;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+/**
+ * A {...@link RequestBuilder} that always immediately 

[gwt-contrib] [google-web-toolkit commit] r5024 - Cherry-pick merge of r5023.

2009-03-16 Thread codesite-noreply

Author: sp...@google.com
Date: Mon Mar 16 16:27:28 2009
New Revision: 5024

Added:
trunk/user/src/com/google/gwt/user/client/rpc/impl/FailedRequest.java
   - copied unchanged from r5023,  
/releases/1.6/user/src/com/google/gwt/user/client/rpc/impl/FailedRequest.java
 
trunk/user/src/com/google/gwt/user/client/rpc/impl/FailingRequestBuilder.java
   - copied unchanged from r5023,  
/releases/1.6/user/src/com/google/gwt/user/client/rpc/impl/FailingRequestBuilder.java
trunk/user/test/com/google/gwt/user/client/rpc/FailedRequestTest.java
   - copied unchanged from r5023,  
/releases/1.6/user/test/com/google/gwt/user/client/rpc/FailedRequestTest.java
 
trunk/user/test/com/google/gwt/user/client/rpc/FailingRequestBuilderTest.java
   - copied, changed from r5023,  
/releases/1.6/user/test/com/google/gwt/user/client/rpc/FailingRequestBuilderTest.java
trunk/user/test/com/google/gwt/user/client/rpc/MixedSerializable.java
   - copied unchanged from r5023,  
/releases/1.6/user/test/com/google/gwt/user/client/rpc/MixedSerializable.java
 
trunk/user/test/com/google/gwt/user/client/rpc/MixedSerializableEchoService.java
   - copied unchanged from r5023,  
/releases/1.6/user/test/com/google/gwt/user/client/rpc/MixedSerializableEchoService.java
 
trunk/user/test/com/google/gwt/user/client/rpc/MixedSerializableEchoServiceAsync.java
   - copied unchanged from r5023,  
/releases/1.6/user/test/com/google/gwt/user/client/rpc/MixedSerializableEchoServiceAsync.java
 
trunk/user/test/com/google/gwt/user/client/rpc/RunTimeSerializationErrorsTest.java
   - copied unchanged from r5023,  
/releases/1.6/user/test/com/google/gwt/user/client/rpc/RunTimeSerializationErrorsTest.java
 
trunk/user/test/com/google/gwt/user/server/rpc/MixedSerializableEchoServiceImpl.java
   - copied unchanged from r5023,  
/releases/1.6/user/test/com/google/gwt/user/server/rpc/MixedSerializableEchoServiceImpl.java
Modified:
trunk/   (props changed)
trunk/dev/core/src/com/google/gwt/core/ext/ServletContainer.java
(props changed)
 
trunk/dev/core/src/com/google/gwt/core/ext/ServletContainerLauncher.java
(props changed)
 
trunk/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerDisableAggressiveOptimization.java

(props changed)
 
trunk/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableAssertions.java  
  
(props changed)
trunk/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerOutDir.java
(props changed)
 
trunk/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerWorkDirOptional.java   
 
(props changed)
 
trunk/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerWorkDirRequired.java   
 
(props changed)
trunk/distro-source/linux/src/webAppCreator   (props changed)
trunk/distro-source/mac/src/webAppCreator   (props changed)
trunk/distro-source/windows/src/webAppCreator.cmd   (props changed)
trunk/eclipse/samples/Hello/Hello-gwtc.launch   (props changed)
trunk/samples/dynatable/war/DynaTable.css   (props changed)
trunk/samples/dynatable/war/DynaTable.html   (props changed)
trunk/samples/hello/war/Hello.html   (props changed)
trunk/samples/i18n/war/I18N.css   (props changed)
trunk/samples/i18n/war/I18N.html   (props changed)
trunk/samples/json/war/JSON.css   (props changed)
trunk/samples/json/war/JSON.html   (props changed)
trunk/samples/mail/war/Mail.css   (props changed)
trunk/samples/mail/war/Mail.html   (props changed)
trunk/samples/mail/war/gradient.gif   (props changed)
trunk/samples/mail/war/leftCorner.gif   (props changed)
trunk/samples/mail/war/rightCorner.gif   (props changed)
trunk/samples/showcase/war/Showcase.html   (props changed)
trunk/samples/simplerpc/war/SimpleRPC.css   (props changed)
trunk/samples/simplerpc/war/SimpleRPC.html   (props changed)
trunk/samples/simplexml/war/SimpleXML.css   (props changed)
trunk/samples/simplexml/war/SimpleXML.html   (props changed)
 
trunk/user/src/com/google/gwt/event/dom/client/HandlesAllFocusEvents.java
(props changed)
 
trunk/user/src/com/google/gwt/event/dom/client/HandlesAllKeyEvents.java
(props changed)
 
trunk/user/src/com/google/gwt/event/dom/client/HandlesAllMouseEvents.java
(props changed)
trunk/user/src/com/google/gwt/event/dom/client/KeyCodes.java   (props  
changed)
trunk/user/src/com/google/gwt/event/dom/client/PrivateMap.java   (props  
changed)
 
trunk/user/src/com/google/gwt/event/logical/shared/HasValueChangeHandlers.java  
  
(props changed)
 
trunk/user/src/com/google/gwt/event/logical/shared/ValueChangeEvent.java
(props changed)
 
trunk/user/src/com/google/gwt/event/logical/shared/ValueChangeHandler.java
(props changed)
 
trunk/user/src/com/google/gwt/event/shared/DefaultHandlerRegistration.java
(props changed)
trunk/user/src/com/google/gwt/event/shared/GwtEvent.java   (props  
changed)

[gwt-contrib] [google-web-toolkit commit] r5025 - Recording cherry pick of r5023 to trunk.

2009-03-16 Thread codesite-noreply

Author: sp...@google.com
Date: Mon Mar 16 16:31:00 2009
New Revision: 5025

Modified:
releases/1.6/branch-info.txt

Log:
Recording cherry pick of r5023 to trunk.



Modified: releases/1.6/branch-info.txt
==
--- releases/1.6/branch-info.txt(original)
+++ releases/1.6/branch-info.txtMon Mar 16 16:31:00 2009
@@ -42,6 +42,8 @@
  /releases/1.6/@r4892:4911 was merged (r4919) into trunk, skipping c4892  
(backmerge from trunk)
  /releases/1.6/@c4963 was merged (r4970 into trunk (cherry pick)
  /releases/1.6/@r4911:4992 was merged (r4993) into trunk, skipping c4963  
(cherry picked above)
+/releases/1.6/@r5023 was merged (r5024) into trunk (cherry pick)

  The next merge into trunk will be:
-svn merge -r4992:  
https://google-web-toolkit.googlecode.com/svn/releases/1.6 .
+svn merge -r4992:5022  
https://google-web-toolkit.googlecode.com/svn/releases/1.6 .
+svn merge -r5023:  
https://google-web-toolkit.googlecode.com/svn/releases/1.6 .

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



[gwt-contrib] -XdisableCastChecking

2009-03-16 Thread Scott Blum
Hi Lex,
Could you review the attached patch which adds a new experimental flag to
disable runtime cast checks in web mode?  It reduces the initial fragment on
Showcase by about 4k.

Thanks,
Scott

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



XdisableCastChecking.patch
Description: Binary data


[gwt-contrib] Re: Changed gwt.xml not picked up buy webserver

2009-03-16 Thread Vitali Lovich
I dunno - I applied the patch for hosted mode that was posted a while back.
I'm pretty sure it's hosted mode - otherwise, my project wouldn't run
without me having to redo the 1.5 project structure.  Maybe I'm not
understanding what you mean by GWTShell.  The main class that is launched is
HostedMode.

So what I was trying to do was change the theme that was being used by my
module by updating the gwt.xml file.

Then I reloaded the web-page to get it to pick up the change, but instead I
got the error unable to find module

My set up is as follows:
MyModule.gwt.xml - contains my project description - rename-to set to
mymodule
MyModuleHosted.gwt.xml - contains project description w/ user-agent set  1
localization set so that compilation is faster (renamed to same name as
MyModule).

Load ModuleHosted.

Hit website to ensure that everything is working fine.
Change the theme (inherits
name='com.google.gwt.user.theme.standard.Standard'/ to some other valid
theme).
Hit Refresh
Message [ERROR] Unable to find 'mymodule.gwt.xml' on your classpath; could
be a typo, or maybe you forgot to include a classpath entry for source?

So it looks like it may be trying to lookup the wrong descriptor - instead
of trying to lookup the description of the original file it was loaded with,
it gets confused  tries to load the module name.

Thanks,

On Mon, Mar 16, 2009 at 4:34 PM, Scott Blum sco...@google.com wrote:

 OOPHM is still using GWTShell (I still owe John a review).  Can you give us
 a little more detail about what you're doing?  What exact errors are you
 seeing?


 On Mon, Mar 16, 2009 at 3:53 PM, Vitali Lovich vlov...@gmail.com wrote:

 HostedMode w/ OOPHM.  rev 5009 if that helps.


 On Mon, Mar 16, 2009 at 11:41 AM, Scott Blum sco...@google.com wrote:

 Is this using old-style GWTShell, or the new HostedMode?

 On Mon, Mar 16, 2009 at 2:30 AM, Vitali Lovich vlov...@gmail.comwrote:

 I'm just wondering if this is a bug or expected behaviour.  If I change
 the module descriptor that was used to launch the Jetty server, I am unable
 to refresh the app - the webserver complains about not being able to find
 the module.  Shouldn't it detect this  recompile as necessary?

 I think there might be a related bug where this failure to find the
 module doesn't disconnect the server's OOPHM connection (even though the
 browser made a new one because I hit refresh).










 


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



[gwt-contrib] Re: Changed gwt.xml not picked up buy webserver

2009-03-16 Thread Scott Blum
There's something I'm not understanding about your setup.  You say you're
using HostedMode and the 1.6 project structure, but then you also said you
were using OOPHM.  How is that possible?  OOPHM doesn't support the new
project structure.

On Mon, Mar 16, 2009 at 9:51 PM, Vitali Lovich vlov...@gmail.com wrote:

 I dunno - I applied the patch for hosted mode that was posted a while
 back.  I'm pretty sure it's hosted mode - otherwise, my project wouldn't run
 without me having to redo the 1.5 project structure.  Maybe I'm not
 understanding what you mean by GWTShell.  The main class that is launched is
 HostedMode.

 So what I was trying to do was change the theme that was being used by my
 module by updating the gwt.xml file.

 Then I reloaded the web-page to get it to pick up the change, but instead I
 got the error unable to find module

 My set up is as follows:
 MyModule.gwt.xml - contains my project description - rename-to set to
 mymodule
 MyModuleHosted.gwt.xml - contains project description w/ user-agent set 
 1 localization set so that compilation is faster (renamed to same name as
 MyModule).

 Load ModuleHosted.

 Hit website to ensure that everything is working fine.
 Change the theme (inherits
 name='com.google.gwt.user.theme.standard.Standard'/ to some other valid
 theme).
 Hit Refresh
 Message [ERROR] Unable to find 'mymodule.gwt.xml' on your classpath; could
 be a typo, or maybe you forgot to include a classpath entry for source?

 So it looks like it may be trying to lookup the wrong descriptor - instead
 of trying to lookup the description of the original file it was loaded with,
 it gets confused  tries to load the module name.

 Thanks,


 On Mon, Mar 16, 2009 at 4:34 PM, Scott Blum sco...@google.com wrote:

 OOPHM is still using GWTShell (I still owe John a review).  Can you give
 us a little more detail about what you're doing?  What exact errors are you
 seeing?


 On Mon, Mar 16, 2009 at 3:53 PM, Vitali Lovich vlov...@gmail.com wrote:

 HostedMode w/ OOPHM.  rev 5009 if that helps.


 On Mon, Mar 16, 2009 at 11:41 AM, Scott Blum sco...@google.com wrote:

 Is this using old-style GWTShell, or the new HostedMode?

 On Mon, Mar 16, 2009 at 2:30 AM, Vitali Lovich vlov...@gmail.comwrote:

 I'm just wondering if this is a bug or expected behaviour.  If I change
 the module descriptor that was used to launch the Jetty server, I am 
 unable
 to refresh the app - the webserver complains about not being able to find
 the module.  Shouldn't it detect this  recompile as necessary?

 I think there might be a related bug where this failure to find the
 module doesn't disconnect the server's OOPHM connection (even though the
 browser made a new one because I hit refresh).













 


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



[gwt-contrib] Re: Changed gwt.xml not picked up buy webserver

2009-03-16 Thread John Tamplin
On Mon, Mar 16, 2009 at 10:58 PM, Scott Blum sco...@google.com wrote:

 There's something I'm not understanding about your setup.  You say you're
 using HostedMode and the 1.6 project structure, but then you also said you
 were using OOPHM.  How is that possible?  OOPHM doesn't support the new
 project structure.


He said he was using the patch posted earlier, so I presume he means the one
you are reviewing.

That said, that has not been thoroughly vetted so it is possible there is an
issue there.  I have successfully refreshed a .gwt.xml change, but I don't
have exactly the same setup as you.  Can you increase the log level and see
if an earlier log message after refreshing gives any clues?

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

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



[gwt-contrib] Re: code review requested - add OOPHM support for HostedMode

2009-03-16 Thread Scott Blum
- The whole PlatformSpecific - CheckForUpdates stuff.. I think that looks
good, but can we do that first as a separate commit?
- The BrowserListener diff seems unrelated also unless I'm missing something

- HostedModeBase: why are the two old protected methods being added back in?

- OophmBrowserWidgetHostImpl should just subclass BrowserWidgetHostImpl,
right?  This would remove a lot of duplicate code I think.

- ArgHandlerStartupURLsExtra should be in GWTShell, not OophmHostedModeBase

On Wed, Mar 11, 2009 at 7:30 PM, John Tamplin j...@google.com wrote:

 This patch, relative to trunk r4993, adds support for the HostedMode target
 for OOPHM.  There is a lot of duplication still between OOPHM and non-OOPHM,
 but I didn't think it was worth the trouble of separating it out considering
 the expected lifespan of non-OOPHM.

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


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



[gwt-contrib] Re: code review requested - add OOPHM support for HostedMode

2009-03-16 Thread John Tamplin
On Mon, Mar 16, 2009 at 11:16 PM, Scott Blum sco...@google.com wrote:

 - The whole PlatformSpecific - CheckForUpdates stuff.. I think that looks
 good, but can we do that first as a separate commit?


Ok.


 - The BrowserListener diff seems unrelated also unless I'm missing
 something


Well, I ran into the problem while testing this and it seemed like a good
idea to fix it (the problem is avoiding a crash if the OOPHM socket was
already in use).  It can be separated out if you prefer.


 - HostedModeBase: why are the two old protected methods being added back
 in?


Hmm, looks like merge issues or getting overzealous moving stuff up from
OOPHM/GWTShell, along with the call to doShouldCheckForUpdates in
doStartup().  If we are moving the CheckForUpdates changes into a separate
commit, then this file would be unchanged for now.


 - OophmBrowserWidgetHostImpl should just subclass BrowserWidgetHostImpl,
 right?  This would remove a lot of duplicate code I think.


What code could it use?  I don't see any method which is the same as
HostedModeBase.BrowserWidgetHostImpl?


 - ArgHandlerStartupURLsExtra should be in GWTShell, not OophmHostedModeBase


Ok.

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

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



[gwt-contrib] Re: Changed gwt.xml not picked up buy webserver

2009-03-16 Thread Vitali Lovich
Yeah, sorry if I haven't made that clear.  I am using the patch that was
posted earlier that enables OOPHM for HostedMode.  I'll try increasing the
log level.

On Mon, Mar 16, 2009 at 11:01 PM, John Tamplin j...@google.com wrote:

 On Mon, Mar 16, 2009 at 10:58 PM, Scott Blum sco...@google.com wrote:

 There's something I'm not understanding about your setup.  You say you're
 using HostedMode and the 1.6 project structure, but then you also said you
 were using OOPHM.  How is that possible?  OOPHM doesn't support the new
 project structure.


 He said he was using the patch posted earlier, so I presume he means the
 one you are reviewing.

 That said, that has not been thoroughly vetted so it is possible there is
 an issue there.  I have successfully refreshed a .gwt.xml change, but I
 don't have exactly the same setup as you.  Can you increase the log level
 and see if an earlier log message after refreshing gives any clues?

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


 


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



[gwt-contrib] Re: code review requested - add OOPHM support for HostedMode

2009-03-16 Thread Vitali Lovich
I'm not 100% sure if this is related to the patch, but I'm seeing an issue
in the following situation:

Started a project in OOPHM HostedMode
Firefox 3.1 with plugin (version bumpbed to 3.1).
Put laptop to sleep
On wakeup, Firefox locks up.

Now some variables do change - the connection drops out temporarily while
the wireless is reconnecting to a different network (the laptop is moved to
a different location while it's sleeping).

Can anyone else confirm this issue?  Obviously it's not the ideal set-up
with FF3.1.

On Mon, Mar 16, 2009 at 11:42 PM, John Tamplin j...@google.com wrote:

 On Mon, Mar 16, 2009 at 11:16 PM, Scott Blum sco...@google.com wrote:

 - The whole PlatformSpecific - CheckForUpdates stuff.. I think that looks
 good, but can we do that first as a separate commit?


 Ok.


 - The BrowserListener diff seems unrelated also unless I'm missing
 something


 Well, I ran into the problem while testing this and it seemed like a good
 idea to fix it (the problem is avoiding a crash if the OOPHM socket was
 already in use).  It can be separated out if you prefer.


 - HostedModeBase: why are the two old protected methods being added back
 in?


 Hmm, looks like merge issues or getting overzealous moving stuff up from
 OOPHM/GWTShell, along with the call to doShouldCheckForUpdates in
 doStartup().  If we are moving the CheckForUpdates changes into a separate
 commit, then this file would be unchanged for now.


 - OophmBrowserWidgetHostImpl should just subclass BrowserWidgetHostImpl,
 right?  This would remove a lot of duplicate code I think.


 What code could it use?  I don't see any method which is the same as
 HostedModeBase.BrowserWidgetHostImpl?


 - ArgHandlerStartupURLsExtra should be in GWTShell, not
 OophmHostedModeBase


 Ok.

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

 


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



[gwt-contrib] Re: -XdisableCastChecking

2009-03-16 Thread Ray Cromwell
~3k reduction of Chronoscope Safari permutation. Repeatable 3% improvement
of Chronoscope Benchmark (api.timepedia.org/benchmark) on Safari 4 beta.
(1330ms - 1290ms).
-Ray


On Mon, Mar 16, 2009 at 5:22 PM, Scott Blum sco...@google.com wrote:

 Hi Lex,
 Could you review the attached patch which adds a new experimental flag to
 disable runtime cast checks in web mode?  It reduces the initial fragment on
 Showcase by about 4k.

 Thanks,
 Scott


 


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



[gwt-contrib] Re: code review requested - add OOPHM support for HostedMode

2009-03-16 Thread John Tamplin
On Mon, Mar 16, 2009 at 11:59 PM, Vitali Lovich vlov...@gmail.com wrote:

 I'm not 100% sure if this is related to the patch, but I'm seeing an issue
 in the following situation:


I doubt this has anything to do with the patch -- basically the issue is
that with the plugin, Firefox is dependent upon the link to the OOPHM server
since the plugin makes synchronous RPC calls from native code that block the
UI event loop until it gets a response (since the calls to Java methods from
JS and vice-versa have to be synchronous).  If that connection goes away, it
can hang the browser until the OS notices the connection has died.  If your
TCP connection goes to another machine, then the connection will be killed
by the other end due to keep-alive being set, but the process running on the
laptop won't notice for a while after it comes up -- but it should
eventually come back.

If both the OOPHM server and the browser are running on your laptop, I am
surprised that there would be any issues here (though frequently after
waking up everything has to be paged back in from disk so you can experience
sluggish behavior while that happens), but this is not something that has
been tested as far as I know.

This is probably a good time to mention that OOPHM isn't the default because
it has a lot of unpolished edges.  If you aren't willing to put up with them
or use workarounds (like closing the OOPHM session in your browser before
suspending if that is causing an issue), then perhaps you shouldn't be using
it until we get it more polished.

We do want to know about issues such as these, but it will probably be a
while longer before everything is the way we want it.

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

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



[gwt-contrib] Re: code review requested - add OOPHM support for HostedMode

2009-03-16 Thread Vitali Lovich
Oh I wasn't complaining.  It's not an issue at all since FF has session
restore.  Just wondering if it was a known issue  if I should file a bug.

On Tue, Mar 17, 2009 at 12:08 AM, John Tamplin j...@google.com wrote:

 On Mon, Mar 16, 2009 at 11:59 PM, Vitali Lovich vlov...@gmail.com wrote:

 I'm not 100% sure if this is related to the patch, but I'm seeing an issue
 in the following situation:


 I doubt this has anything to do with the patch -- basically the issue is
 that with the plugin, Firefox is dependent upon the link to the OOPHM server
 since the plugin makes synchronous RPC calls from native code that block the
 UI event loop until it gets a response (since the calls to Java methods from
 JS and vice-versa have to be synchronous).  If that connection goes away, it
 can hang the browser until the OS notices the connection has died.  If your
 TCP connection goes to another machine, then the connection will be killed
 by the other end due to keep-alive being set, but the process running on the
 laptop won't notice for a while after it comes up -- but it should
 eventually come back.

 If both the OOPHM server and the browser are running on your laptop, I am
 surprised that there would be any issues here (though frequently after
 waking up everything has to be paged back in from disk so you can experience
 sluggish behavior while that happens), but this is not something that has
 been tested as far as I know.

 This is probably a good time to mention that OOPHM isn't the default
 because it has a lot of unpolished edges.  If you aren't willing to put up
 with them or use workarounds (like closing the OOPHM session in your browser
 before suspending if that is causing an issue), then perhaps you shouldn't
 be using it until we get it more polished.

 We do want to know about issues such as these, but it will probably be a
 while longer before everything is the way we want it.


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

 


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



[gwt-contrib] Re: code review requested - add OOPHM support for HostedMode

2009-03-16 Thread John Tamplin
On Tue, Mar 17, 2009 at 12:24 AM, Vitali Lovich vlov...@gmail.com wrote:

 Oh I wasn't complaining.  It's not an issue at all since FF has session
 restore.  Just wondering if it was a known issue  if I should file a bug.


Sure, go ahead -- thanks.

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

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