Re: Problem with java.util.Date

2011-01-05 Thread bond
Yes,
if I comment the line date.setHours(13); it works!!!

Thanks!

On 3 Gen, 22:38, Y2i yur...@gmail.com wrote:
 You are using java.util.Date because if you used java.sql.Date your
 example would not compile.

 does your example work if you comment out the line below?
 // date.setHours(13);

 On Jan 3, 1:16 pm, bond daniele.re...@gmail.com wrote:

  Hi,
  I'm usign java.util.Date!!! So the dafult constructor is present.
  My IDE import java.util and not java.sql package.

  Any ideas?

  Thanks!

  On 30 Dic 2010, 22:49, Y2i yur...@gmail.com wrote:

   java.sql.Date does not have a default constructor, so the example
   won't compile; it must be something different.

   BTW, I copied the three lines above to my client code: there is no
   problem with compiling and running it using java.util.Date and GWT
   2.1.1.

   On Dec 30, 1:31 pm, Slava Lovkiy slava.lov...@gmail.com wrote:

Is this error happing in old code or newly created?
Check the package name in the import of the file, there is a chance
your IDE auto-imported class Date not from java.util but from java.sql
package.

On Dec 31, 2:17 am, bond daniele.re...@gmail.com wrote:

 Hi,
 with the last version of GWT (2.1.1); in the client when I'm using
 this code:
 Date date = new Date();
 date.setHours(13);
 date.setMinutes(00);

 throw this exception:

 java.lang.IllegalArgumentException: null
     at java.sql.Date.setHours(Unknown Source)

 I think that the problem is linked to the fact that now java.sql.Date
 is implemented in Gwt.
 How I can resolve the problem?

 Thanks very much

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



solving IE6 (SSL) 12030 bug

2011-01-05 Thread pepgrifell
hi,

Our application is running ok with IE7 and 8 but in IE6 we are getting
random 12030 errors (Connection: close).

In this URl they speak about this problem:
http://p2p.wrox.com/book-professional-ajax-isbn-978-0-471-8-6/50786-ie6-status-code-12030-a.html
http://www.perkiset.org/forum/ajax/xmlhttprequest_ie6_ssl_and_12030_error_what_is_the_solution-t442.0.html

I searched in GWT issues and I found one (isseu 3488):
http://code.google.com/p/google-web-toolkit/issues/list?can=1q=12030colspec=ID+Type+Status+Owner+Milestone+Summary+Starscells=tiles

In this page they say that instead of returning void in service async,
we need to return RequestBuilder object. Then we can add headers to
the request and call method send() of RequestBuilder.

I would like to know if you have found this problem and how did you
solve it. Which headers I have to add to fix the 12030 bug ?  This
will work in later IE versions (7,8...) ?

In this GWT post, they say that the solution is to downgrade from
HTTP1.1 to HTTP1.0 for IE6 browsers, although their solution is to do
the change in apache (we don't use apache. We use OC4J and Websphere)
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/1fbcf344b6733c1d/45854380a2dd7f17?lnk=gstq=12030#45854380a2dd7f17

Any help ?
Thanks,
pep.

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



Re: RequestFactory persist new object and return the id

2011-01-05 Thread poe
I didn' recognize that I've got a private reply on this. So here is
the solution...

if you define your persist method with

public Employee persist() {  }

and return the new persisted employee object you can modify your
requestFactory interface with

  InstanceRequestEmployeeProxy, EmployeeProxy persist();

instead of

  InstanceRequestEmployeeProxy, Void persist();

This way you retrieve the newly persisted object through the
requestfactory.



On 5 Jan., 08:37, Daghan dag...@gmail.com wrote:
 The documentation says you have to use stableID with is a new Interface they
 have defined on the client side
 They claim that the stableID on the proxy is the same before and after the
 object is persisted to the database

 Note: I am in the process of implementing this but I am not done yet

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



Re: RequestFactory find and remove

2011-01-05 Thread poe
Solved this by myself.

The remove method should be static. Thats all :-)

On 26 Nov. 2010, 15:57, poe stefan.poe...@googlemail.com wrote:
 Hi @ all,

 i've got a little problem using requestfactory.

 public void start(AcceptsOneWidget panel, EventBus eventBus) {
   ...
   ObjectRequest request =
 ((RequestFactory)requestFactory).objectRequest();
   RequestObjectProxy findRequest =
 request.findObject(place.getObjectId());

   findRequest.fire...

     public void onSuccess(ObjectProxy response) {
       currentObject = response;
     }

 }

 public void delete() {

   ObjectRequest request =
 ((RequestFactory)requestFactory).objectRequest();
   RequestVoid deleteRequest = request.remove().using(currentObject);

   deleteRequest.fire(...

 }

 I fetch the object in the start method from my activity. When delete
 is called and the remove method from the request is fired i get a
 JDOObjectNotFoundException because the findObject Method is called on
 the server after the remove method! My question is why or what am I
 doing wrong?

 Thanks for your help
 poe

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



Re: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)

2011-01-05 Thread jhulford
If you're not using Google App Engine (and I'm not sure why you would
be if you're using Mysql as your datastore), then remove it from your
project's setup.  The enhanced Security Manager settings that comes w/
using GAE is what's causing your error.

Right click on you project's icon, choose Google- App Engine
Settings..., then uncheck the Use Google App Engine box.

On Jan 5, 1:31 am, freemonhuul freemonh...@gmail.com wrote:
 Hi guys!

 I am trying to develop a GWT RPC method which accesses to MYSQL
 database to collect datum.

 But it throws the following exception:

 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract java.util.List
 com.sky.web.dealer.client.proxy.WebRemoteService.getProductDtoList()
 throws java.lang.IllegalStateException' threw an unexpected exception:
 java.lang.ExceptionInInitializerError
         at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 378)
         at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 581)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
 207)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
 243)
         at
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
 62)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
         at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
 58)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
 43)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
 122)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 388)
         at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
         at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 182)
         at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 765)
         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 418)
         at
 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
 70)
         at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
         at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:349)
         at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
         at org.mortbay.jetty.Server.handle(Server.java:326)
         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 542)
         at org.mortbay.jetty.HttpConnection
 $RequestHandler.content(HttpConnection.java:938)
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
         at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 409)
         at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:582)
 Caused by: java.lang.ExceptionInInitializerError
         at
 com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:
 266)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at com.sky.web.dealer.server.data.DAO.init(DAO.java:28)
         at
 com.sky.web.dealer.server.data.DataCollector.getProductDtoList(DataCollector.java:
 33)
         at
 com.sky.web.dealer.server.WebRemoteServiceImpl.getProductDtoList(WebRemoteServiceImpl.java:
 48)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at
 com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
 100)
         at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 562)
         ... 30 more
 Caused by: java.security.AccessControlException: access denied
 (java.lang.RuntimePermission 

Re: Smart GWT 2.4 Released

2011-01-05 Thread gcstang
Excellent, Thank you for the update!

On Jan 4, 8:22 am, Sanjiv Jivan sanjiv.ji...@gmail.com wrote:
 Hi,
 Smart GWT 2.4 has been released.

 Release Announcement 
 :http://www.jroller.com/sjivan/entry/smart_gwt_2_4_released
 Download :http://code.google.com/p/smartgwt/downloads/list
 Showcase Demo :http://www.smartclient.com/smartgwt/showcase/

 The key features of this release are :

 * GWT 2.1.1 compatible
 * Smart GWT QuickStart Guide
 * Offline support with seamless integration with the normal DataSource
 request / response cycle
 * User Defined data highlighting
 * Advanced Hover Components
 * New ultralight Simplicity theme that is virtually image free and easy to
 customize
 * IE Performance improvements
 * ListGrid autofit support
 * 24h cased Calendars
 * Several new Showcase samples

 Feedback welcome.

 Thanks,
 Sanjiv

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



Looking for GWT Mentor to guide me through first paid app

2011-01-05 Thread B Woods
I am designing a web application that I would like to store with App
Engine.  I am a senior computer science major in college and this will
be my first web application.  I am looking for people that has
successfully built paid web applications with GWT, that could guide me
through the design and development process. Not someone to do the work
obviously, just someone that I can talk to who can help to point me in
the right direction with things I should be thinking about and
techniques I might be interested in.  I am looking for a GWT expert
that could serve as an advisor for me in this project.  If this person
can help me bring this project to completion I would like to offer
them equity in the application for their help.

Any help would be greatly appreciated.  Please pass this on to others
using GWT that might not be a part of this group that would be
interested. Thanks in advance.

Bradley Woods

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



Re: Looking for GWT Mentor to guide me through first paid app

2011-01-05 Thread Christian Goudreau
Well, I have little to offer in term of time, but I'll gladly answer any
question you ask !

Add me on Gtalk.

Cheers,

On Wed, Jan 5, 2011 at 8:53 AM, B Woods bradleydeanwo...@gmail.com wrote:

 I am designing a web application that I would like to store with App
 Engine.  I am a senior computer science major in college and this will
 be my first web application.  I am looking for people that has
 successfully built paid web applications with GWT, that could guide me
 through the design and development process. Not someone to do the work
 obviously, just someone that I can talk to who can help to point me in
 the right direction with things I should be thinking about and
 techniques I might be interested in.  I am looking for a GWT expert
 that could serve as an advisor for me in this project.  If this person
 can help me bring this project to completion I would like to offer
 them equity in the application for their help.

 Any help would be greatly appreciated.  Please pass this on to others
 using GWT that might not be a part of this group that would be
 interested. Thanks in advance.

 Bradley Woods

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




-- 
Christian Goudreau
www.arcbees.com

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



Re: Where do KeyPress Events go?

2011-01-05 Thread jaybose
OK, what does the button do, at the moment?

Do you have your EnterButton's handler call submit() on the form?
If so, are you seeing any errors?


On Jan 4, 8:53 am, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 Yes, but it doesn't do the upload when I hit Enter.  Which is what I'm
 trying to figure out how to get it to do.

 Greg

 On Jan 4, 8:20 am, jaybose onyeje.b...@gmail.com wrote:

 http://gwt.google.com/samples/Showcase/Showcase.html#!CwFileUpload

  Look at the source of the ShowCase example above.
  The uploadButton it uses is not a SubmitButton either.

  Just make sure the handler of your EnterButton submits the form.

  On Jan 3, 8:57 am, Greg Dougherty dougherty.greg...@mayo.edu wrote:

   So, now that I have an EnterButton class, I'd like to use it. :-)  I
   have a form panel with a FileUpload.  I'd like to let the user select
   a file, then hit enter to fire the form submit button (which is an
   EnterButton, not a SubmitButton).

   Unfortunately, FileUpload does not have an addKeyPressHandler
   routine.  So, who gets any key events I generate while in the text
   field part of a FileUpload?  What is the call chain for events that
   aren't captured by the Widget where the event happens?

   Sorry if this is an FAQ, and in the docs.  I took a (quick) look, and
   couldn't find anything.  Please point me to the correct docs if it is
   in there.

   Thanks!

   Greg

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



Re: Looking for GWT Mentor to guide me through first paid app

2011-01-05 Thread B Woods
5-10 minutes here and there is all I need. I will add you, thanks.

On Jan 5, 8:59 am, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 Well, I have little to offer in term of time, but I'll gladly answer any
 question you ask !

 Add me on Gtalk.

 Cheers,









 On Wed, Jan 5, 2011 at 8:53 AM, B Woods bradleydeanwo...@gmail.com wrote:
  I am designing a web application that I would like to store with App
  Engine.  I am a senior computer science major in college and this will
  be my first web application.  I am looking for people that has
  successfully built paid web applications with GWT, that could guide me
  through the design and development process. Not someone to do the work
  obviously, just someone that I can talk to who can help to point me in
  the right direction with things I should be thinking about and
  techniques I might be interested in.  I am looking for a GWT expert
  that could serve as an advisor for me in this project.  If this person
  can help me bring this project to completion I would like to offer
  them equity in the application for their help.

  Any help would be greatly appreciated.  Please pass this on to others
  using GWT that might not be a part of this group that would be
  interested. Thanks in advance.

  Bradley Woods

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

 --
 Christian Goudreauwww.arcbees.com

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



GWT, AnnotatedTimeLine visualization and getOffsetWidth()

2011-01-05 Thread andrew_d_mackenzie
This subject seems to have been raised a number of times in various
forums, but I haven't seen a solution offered anywhere and my own
attempts to solve the problem have failed, so I post it here for
experts.

I have a UI created with GWT 2.1.1 and uibinder, for displaying an
annotated timeline visualization.
I am debugging it in FireFox 3.6.13 on Windows 7, but it also happens
in Chrome.

A simplified version of my uibinder file is:

g:VerticalPanel
g:HTML addStyleNames='instructions' ui:msg
description=timeline_instructionsbla/ui:msg /g:HTML
g:VerticalPanel ui:field=timelinePanel width=100% /
/g:VerticalPanel

(I have tried with other Panel types and same result)

In my Java code for this composite widget, AFTER the visualization
call back is called and the AnnotatedTimeLine visualization package is
available, and when I have data, I create the AnnotatedTimeLine and
add it to the panel:

timeline = new AnnotatedTimeLine( 100%, 250px );   // I want
timeline to fill width
 //  create Timeline Options, etc
timelinePanel.add( timeline );

When I then draw the timeline using:

timeline.draw( timeLineData, timeOptions );

This always causes an exception due to invalid width of the container.

15:30:10.397 [ERROR] [ta] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (Error): Container
width is zero. Expecting a valid width.

In various places I have tried querying the width of the panel (before
and after adding timeline) using timelinePanel.getOffsetWidth() and it
reports 0.

This exception causes the draw to fail.
A refresh of the browser will have it succeed on the second attempt.

Other posts talk about FireFox issues and how getOffsetWidth() returns
zero before everything is laid out

I have also tried Adding the AnnotatedTimeLine directly in my uibinder
file, specifying width and height, but it says no default constructor
is available.

I can't see how I can provide a default constructor using @UiFactory,
as I have to wait for the Visualization package to load

===
Is this a GWT Visualizations API bug? I'd be happy to report it...

Can anyone tell me how to create an AnnotatedTimeLine using GWT,
UIBinder, that spans 100% of the parent Widget/Panel, and that draws
on first attempt?





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



Re: Trying to split deserialization process after RPC call

2011-01-05 Thread Damien Picard
I've carried out this solution except that I haven't used GWT-RPC ; I have
used a RequestBuilder and a standard servlet to serve the JSON string.

To serialize my objects in JSON, I have defined an interface for my DTO :

interface ExtendedOption {
String getId();
...
}

its server-side version :

class ExtendedOptionImpl implements ExtendedOption{

private String id;

public String getId(){ return id; }
}

and its client-side version with a JSOT :

class ExtendedOptionJSOT extends JavaScriptObject implements ExtendedOption
{

public static native ExtendedOptionJSOT create(String
jsonExtendedOption) /*-{
eval(var obj =  + jsonExtendedOption);
return obj;
}-*/;

public native String getId() /*-{
return this.id;
}-*/;
}

To finish, I serialize ExtendedOptionImpl with flexjson on the server, and I
deserialize it with the create method client-side.

The performances are really better : I've not measured the gain, but this is
around 10x faster than GWT-RPC in my case.

Thank you for your help.

2010/12/21 A. Stevko andy.ste...@gmail.com

 Wow Damien - I like it. Thanks for the tips.

 On Tue, Dec 21, 2010 at 8:50 AM, Damien Picard picard.dam...@gmail.comwrote:

 Thank you for your advices.

 I think I will linearize the tree as a List by replacing the strong
 reference link between an Option and its childs to a String meaning the id
 (the id is an attribute) of the child options.

 Then, I will serialize the option list to a json String with flexjson and
 send it to the client over GWT-RPC.

 On the client, I think that the json String deserialization will be done
 quickly ; I've seen on StreamReader source code that the String
 deserialisation does not lead to a lot of compute time because the HTTP
 response is String itself. Then, I will deserialize this json String with
 the eval() method, and I will try to map it to my Option type with a
 JavaScript Overlay Types.

 And, if there is a need to split deserialization into multiple deferred
 command, I will split my json String into multiple json string before
 evaluating this with eval(), and do the eval() on each sub-sequence json
 string in a deferred command. Even if this split is not simple...

 What do you think about this solution ?


 2010/12/20 David Chandler drfibona...@google.com

 Following up on George's post, here's the DeRPC doc. You can find a
 little additional info by searching for DeRPC on the public issue
 tracker. DeRPC was created to help with large object graph
 serialization; however, DeRPC (NOT GWT-RPC) will likely be deprecated
 eventually in favor of RequestFactory.


 http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideDeRPC
 http://code.google.com/p/google-web-toolkit/issues/list

 /dmc

 On Sun, Dec 19, 2010 at 3:43 AM, Damien Picard picard.dam...@gmail.com
 wrote:
  Hi,
 
  In a few words, I've got a problem with big object deserialization
 after an
  RPC call.
  On Internet Explorer, the browser ask me to interrupt the script
 because the
  deserialization process is too long.
 
  In fact, my RPC service returns a deep recursive tree, and some other
 data,
  where the Item is called Option :
 
  The generated FieldSerializer looks like :
 
  public static void
  deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader
  streamReader, Option instance) throws
  com.google.gwt.user.client.rpc.SerializationException{
  //The childs of this Option node, defining the tree
  setChildren(instance, (java.util.List) streamReader.readObject());
  //Some other atomic data
  (...)
 
}
 
  In my mind, the invocation of setChildren() involves that the childs
 Options
  are deserialized too. And, because of my tree is too deep, this
  deserialization process leeds to have a Would you like to interrupt
 the
  script ? in IE6/7.
 
  I think I could resolve this problem by adding a deferred command in
 this
  process :
 
  public static void
  deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader
  streamReader, Option instance) throws
  com.google.gwt.user.client.rpc.SerializationException{
  //The childs of this Option node, defining the tree
  Command c = new Command(){
  public void execute(){
 setChildren(instance, (java.util.List)
  streamReader.readObject());
  }
  }
  DeferredCommand.addPause();
  DeferredCommand.addCommand(c);
  //Some other atomic data
  (...)
 
}
 
  But, to do that, I have to modify the generator of this serializer, and
 i've
  not found where I can do that. So my questions are :
 
  Is it a good idea ?
  How can I modify /implement my own serializer generator for this tree ?
 
  P.S. : Furthermore, I will have to deal with asynchronism because of my
  deserialize method will returns before my tree will be totaly
 deserialized ;
  but I will work on this in a second step.
 
  Thank you.
 
  --
  Damien Picard
  Axeiya 

Re: Where do KeyPress Events go?

2011-01-05 Thread Ian Bambury
Greg, is there a reason you can't just set the focus to the button?


On 5 January 2011 14:08, jaybose onyeje.b...@gmail.com wrote:

 OK, what does the button do, at the moment?

 Do you have your EnterButton's handler call submit() on the form?
 If so, are you seeing any errors?


 On Jan 4, 8:53 am, Greg Dougherty dougherty.greg...@mayo.edu wrote:
  Yes, but it doesn't do the upload when I hit Enter.  Which is what I'm
  trying to figure out how to get it to do.
 
  Greg
 
  On Jan 4, 8:20 am, jaybose onyeje.b...@gmail.com wrote:
 
  http://gwt.google.com/samples/Showcase/Showcase.html#!CwFileUpload
 
   Look at the source of the ShowCase example above.
   The uploadButton it uses is not a SubmitButton either.
 
   Just make sure the handler of your EnterButton submits the form.
 
   On Jan 3, 8:57 am, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 
So, now that I have an EnterButton class, I'd like to use it. :-)  I
have a form panel with a FileUpload.  I'd like to let the user select
a file, then hit enter to fire the form submit button (which is an
EnterButton, not a SubmitButton).
 
Unfortunately, FileUpload does not have an addKeyPressHandler
routine.  So, who gets any key events I generate while in the text
field part of a FileUpload?  What is the call chain for events that
aren't captured by the Widget where the event happens?
 
Sorry if this is an FAQ, and in the docs.  I took a (quick) look, and
couldn't find anything.  Please point me to the correct docs if it is
in there.
 
Thanks!
 
Greg

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



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



Re: Where do KeyPress Events go?

2011-01-05 Thread Greg Dougherty
Currently, I'm using a SubmitButton, and forcing the user to click on
the button to have anything happen.

I'd like for the user to be able to hit Enter, and have the button
fire (IOW, I want it to behave like a real application, rather than
like a web application).  Unfortunately, I can't find any way to catch
key events in that form.

I'm using Apache FileUpload, which essentially requires me to have the
file as the last item in the form (file size is in the hundreds of MB,
so I read it a line at a time and toss the line when I'm done with
it.  FileUpload only lets you keep a reader for one form element at a
time, so I can't get data for anything after the file).  This means
the average user is going to fill in that field last.  Which means
that if I want to support the Enter key, I need to be able to do it
after the user has selected a file using the FileUpload.  But
FileUpload doesn't generate Key events.

So, WHO gets those KeyPress Events?

Greg

On Jan 5, 8:08 am, jaybose onyeje.b...@gmail.com wrote:
 OK, what does the button do, at the moment?

 Do you have your EnterButton's handler call submit() on the form?
 If so, are you seeing any errors?

 On Jan 4, 8:53 am, Greg Dougherty dougherty.greg...@mayo.edu wrote:

  Yes, but it doesn't do the upload when I hit Enter.  Which is what I'm
  trying to figure out how to get it to do.

  Greg

  On Jan 4, 8:20 am, jaybose onyeje.b...@gmail.com wrote:

  http://gwt.google.com/samples/Showcase/Showcase.html#!CwFileUpload

   Look at the source of the ShowCase example above.
   The uploadButton it uses is not a SubmitButton either.

   Just make sure the handler of your EnterButton submits the form.

   On Jan 3, 8:57 am, Greg Dougherty dougherty.greg...@mayo.edu wrote:

So, now that I have an EnterButton class, I'd like to use it. :-)  I
have a form panel with a FileUpload.  I'd like to let the user select
a file, then hit enter to fire the form submit button (which is an
EnterButton, not a SubmitButton).

Unfortunately, FileUpload does not have an addKeyPressHandler
routine.  So, who gets any key events I generate while in the text
field part of a FileUpload?  What is the call chain for events that
aren't captured by the Widget where the event happens?

Sorry if this is an FAQ, and in the docs.  I took a (quick) look, and
couldn't find anything.  Please point me to the correct docs if it is
in there.

Thanks!

Greg

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



How to find text in a TextArea

2011-01-05 Thread Kidowell
Hi, in my application I put a text (String) in a TextArea(), I wanted
to add a search text input. To find text within the TextArea.  Similar
to the crtl + f  in a browser. How to do that?. Can you please help me
out.

I also wanted  to make it bold when found it. I cant figure out how to
do it in a TextArea here in GWT.

I need a hand. Thank you.

--
kido.

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



Re: is there a class that implements HasWidgets extends FocusWidget

2011-01-05 Thread Joe Hudson
Thanks for the help.  That makes sense to me.

On Jan 4, 2:10 pm, Gal Dolber gal.dol...@gmail.com wrote:
 You can also wrap a FlowPanel into a FocusPanel.



 On Tue, Jan 4, 2011 at 2:54 PM, Y2i yur...@gmail.com wrote:
  A Widget.addDomHandler() method may be what you are looking for.  You
  can register a handler for com.google.gwt.event.dom.client.ClickEvent.

  On Jan 4, 9:43 am, Joe Hudson joe...@gmail.com wrote:
   Hi,

   I'm trying to figure out the best way to have a class accept click
   events while still being able to add widgets to that class.  Is this
   possible?  Can anyone suggest the best way of doing this?  Thanks.

   Joe

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

 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

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

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



Re: Logging in shared code

2011-01-05 Thread nacho
I have a similar issue with translations in shared code.

Is there any way to know if the code is running on server side or
running in client side?

For example:

if (isRunningOnClient) {
   Window.alert(myConstants.hello());
} else if (isRunningOnServer) {
   System.out.println(myResources.getString(hello));
}

On 5 ene, 02:45, lalit lalit.bh...@gmail.com wrote:
 Hi,

 How can we do logging in the shared code? Some logging need to happen
 on server side and some logging will be happening on client side and
 there might be a possibility of same log active in both client and
 server side.

 thanks in advance,

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



Re: EnterButton

2011-01-05 Thread Greg Dougherty
Hi Jeff,

You've got things backwards for my concerns.  I want to fire off a
Submit event when the user hits Enter, I don't want to do something
special once the user has clicked on the button.

To do that, I need to figure out how to catch a KeyPress Event when
the last thing selected was a FileUpload (which doesn't have a
KeyPress Event Handler).  Any ideas?

As for using UIBinder:
1: I'm building the UI, and I'm a programmer. I LIKE building the UI
programmatically.
2: When I looked at it (July - August 2010), the documentation was
opaque, and singularly lacking in useful examples.  So avoiding
UIBuilder is faster than using it.
3: I build WebApps where the height and width of the UI is dependent
upon the data returned in response to user actions.  Which means that
the *LayoutPanels are a HUGE step backward in functionality for me.
To the extent that when I have to choose between upgrading GWT, and
losing the non-Layout Panels, I'll probably stop upgrading GWT.  (Yes,
I know that the change was a deliberate choice.  I just think it was a
horrible mistake.)

Greg

On Jan 4, 10:49 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
 Using UiBinder declare a SubmitButton 
 (http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...)
 within a qwt FormPannel. If you want to react to the user submitting the
 form then assign a field name to the submit button and attach an event
 handler to the submit button. The following is an example of how to setup
 the event handler code when using UiBinder:

 @UiHandler(yourButtonFieldName)
 void onSubmitBtnClicked(ClickEvent e) {
     doSomething();

 }

 On Tue, Jan 4, 2011 at 10:36 AM, Greg Dougherty
 dougherty.greg...@mayo.eduwrote:



  Hi Jeff,

  I don't see any place to attach a KeyPressHandler to a FormPanel.
  Were you thinking of something else?

  Greg

  On Jan 3, 6:27 pm, Jeff Schwartz jefftschwa...@gmail.com wrote:
   I haven't tried it but I think if you wrap your input widgets in a gwt
  form
   widget your button would respond appropriately.

   On Mon, Jan 3, 2011 at 9:57 AM, Greg Dougherty
   dougherty.greg...@mayo.eduwrote:

I have a couple of places where I want the user to be able to hit
enter, and have a button clicked.  So I created the class EnterButton,
which has all the default constructors, and the following bit of code:

       public void onKeyPress (KeyPressEvent event)
       {
               int     keyCode = event.getNativeEvent ().getKeyCode
();

               if (keyCode == KeyCodes.KEY_ENTER)
                       click ();
       }

Is there a reason why some such class isn't part of GWT already?  Is
there something in this code that will turn around and bite me in the
tush?

--
You received this message because you are subscribed to the Google
  Groups
Google Web Toolkit group.
To post to this group, send email to
  google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com

.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.

   --
   *Jeff Schwartz*

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

 --
 *Jeff Schwartz*

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



Re: How to write file with GWT?

2011-01-05 Thread nacho
Can't you deploy your app in a Tomcat?

If you do this, you don't have any restriction.

On 4 ene, 17:18, a...@mechnicality.com a...@mechnicality.com
wrote:
 Yes, but that doesn't actually 'write' the file does it?

 It just generates a String which contains the XML representation of the java 
 object. Its not
 persisted anywhere. You can generate a String representation of an object on 
 the client with a few
 StringBuilder calls if you want to.
 I believe that OPs problem is that he wants to save it somewhere.

 Alan

 On 1/4/2011 12:05 PM, A. Stevko wrote:

  I've used this code frag to write XML on app engine without any problems.
  ByteArrayOutputStream baos = new ByteArrayOutputStream( );
  XMLEncoder encoder = new XMLEncoder(baos);
  encoder.writeObject(myObject);
  encoder.close();
  return baos.toString();

  I believe I got the code from Example Depot at
 http://www.exampledepot.com/egs/java.beans/WriteXml.html
  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Alan Chaney
 CTO and Founder, Mechnicality, Inc.www.mechnicality.com

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



Re: Where do KeyPress Events go?

2011-01-05 Thread Ian Bambury
fu.addChangeHandler(new ChangeHandler()
{

@Override
public void onChange(ChangeEvent event)
{
button.setFocus(true);
}
});

would put the focus on the button - any good?

or there's always 'DOM.addEventPreview' - problem is, you probably want
enter to move your user from input area to input area.
firstname-lastname-fileuploadCV or something, rather than submit every time
the user presses enter.

Ian

On 5 January 2011 14:50, Greg Dougherty dougherty.greg...@mayo.edu wrote:

 Currently, I'm using a SubmitButton, and forcing the user to click on
 the button to have anything happen.

 I'd like for the user to be able to hit Enter, and have the button
 fire (IOW, I want it to behave like a real application, rather than
 like a web application).  Unfortunately, I can't find any way to catch
 key events in that form.

 I'm using Apache FileUpload, which essentially requires me to have the
 file as the last item in the form (file size is in the hundreds of MB,
 so I read it a line at a time and toss the line when I'm done with
 it.  FileUpload only lets you keep a reader for one form element at a
 time, so I can't get data for anything after the file).  This means
 the average user is going to fill in that field last.  Which means
 that if I want to support the Enter key, I need to be able to do it
 after the user has selected a file using the FileUpload.  But
 FileUpload doesn't generate Key events.

 So, WHO gets those KeyPress Events?

 Greg

 On Jan 5, 8:08 am, jaybose onyeje.b...@gmail.com wrote:
  OK, what does the button do, at the moment?
 
  Do you have your EnterButton's handler call submit() on the form?
  If so, are you seeing any errors?
 
  On Jan 4, 8:53 am, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 
   Yes, but it doesn't do the upload when I hit Enter.  Which is what I'm
   trying to figure out how to get it to do.
 
   Greg
 
   On Jan 4, 8:20 am, jaybose onyeje.b...@gmail.com wrote:
 
   http://gwt.google.com/samples/Showcase/Showcase.html#!CwFileUpload
 
Look at the source of the ShowCase example above.
The uploadButton it uses is not a SubmitButton either.
 
Just make sure the handler of your EnterButton submits the form.
 
On Jan 3, 8:57 am, Greg Dougherty dougherty.greg...@mayo.edu
 wrote:
 
 So, now that I have an EnterButton class, I'd like to use it. :-)
  I
 have a form panel with a FileUpload.  I'd like to let the user
 select
 a file, then hit enter to fire the form submit button (which is an
 EnterButton, not a SubmitButton).
 
 Unfortunately, FileUpload does not have an addKeyPressHandler
 routine.  So, who gets any key events I generate while in the text
 field part of a FileUpload?  What is the call chain for events that
 aren't captured by the Widget where the event happens?
 
 Sorry if this is an FAQ, and in the docs.  I took a (quick) look,
 and
 couldn't find anything.  Please point me to the correct docs if it
 is
 in there.
 
 Thanks!
 
 Greg

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



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



Re: Where do KeyPress Events go?

2011-01-05 Thread Ian Bambury
Or, if you want to be fed keyup events when the FU has focus (or anyt other
event you choose)


fu.sinkEvents(Event.ONKEYUP);
fu.addHandler(new KeyUpHandler()
{

@Override
public void onKeyUp(KeyUpEvent event)
{
Window.alert(Hi!);
}
}, KeyUpEvent.getType());


On 5 January 2011 15:20, Ian Bambury ianbamb...@gmail.com wrote:


 fu.addChangeHandler(new ChangeHandler()
 {

 @Override
 public void onChange(ChangeEvent event)
 {
 button.setFocus(true);
 }
 });

 would put the focus on the button - any good?

 or there's always 'DOM.addEventPreview' - problem is, you probably want
 enter to move your user from input area to input area.
 firstname-lastname-fileuploadCV or something, rather than submit every time
 the user presses enter.

 Ian

 On 5 January 2011 14:50, Greg Dougherty dougherty.greg...@mayo.eduwrote:

 Currently, I'm using a SubmitButton, and forcing the user to click on
 the button to have anything happen.

 I'd like for the user to be able to hit Enter, and have the button
 fire (IOW, I want it to behave like a real application, rather than
 like a web application).  Unfortunately, I can't find any way to catch
 key events in that form.

 I'm using Apache FileUpload, which essentially requires me to have the
 file as the last item in the form (file size is in the hundreds of MB,
 so I read it a line at a time and toss the line when I'm done with
 it.  FileUpload only lets you keep a reader for one form element at a
 time, so I can't get data for anything after the file).  This means
 the average user is going to fill in that field last.  Which means
 that if I want to support the Enter key, I need to be able to do it
 after the user has selected a file using the FileUpload.  But
 FileUpload doesn't generate Key events.

 So, WHO gets those KeyPress Events?

 Greg

 On Jan 5, 8:08 am, jaybose onyeje.b...@gmail.com wrote:
  OK, what does the button do, at the moment?
 
  Do you have your EnterButton's handler call submit() on the form?
  If so, are you seeing any errors?
 
  On Jan 4, 8:53 am, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 
   Yes, but it doesn't do the upload when I hit Enter.  Which is what I'm
   trying to figure out how to get it to do.
 
   Greg
 
   On Jan 4, 8:20 am, jaybose onyeje.b...@gmail.com wrote:
 
   http://gwt.google.com/samples/Showcase/Showcase.html#!CwFileUpload
 
Look at the source of the ShowCase example above.
The uploadButton it uses is not a SubmitButton either.
 
Just make sure the handler of your EnterButton submits the form.
 
On Jan 3, 8:57 am, Greg Dougherty dougherty.greg...@mayo.edu
 wrote:
 
 So, now that I have an EnterButton class, I'd like to use it. :-)
  I
 have a form panel with a FileUpload.  I'd like to let the user
 select
 a file, then hit enter to fire the form submit button (which is an
 EnterButton, not a SubmitButton).
 
 Unfortunately, FileUpload does not have an addKeyPressHandler
 routine.  So, who gets any key events I generate while in the text
 field part of a FileUpload?  What is the call chain for events
 that
 aren't captured by the Widget where the event happens?
 
 Sorry if this is an FAQ, and in the docs.  I took a (quick) look,
 and
 couldn't find anything.  Please point me to the correct docs if it
 is
 in there.
 
 Thanks!
 
 Greg

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




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



Re: Problem with java.util.Date

2011-01-05 Thread smida02
date.setHours has been deprecated since Java 1.1

On Jan 5, 2:42 am, bond daniele.re...@gmail.com wrote:
 Yes,
 if I comment the line date.setHours(13); it works!!!

 Thanks!

 On 3 Gen, 22:38, Y2i yur...@gmail.com wrote:







  You are using java.util.Date because if you used java.sql.Date your
  example would not compile.

  does your example work if you comment out the line below?
  // date.setHours(13);

  On Jan 3, 1:16 pm, bond daniele.re...@gmail.com wrote:

   Hi,
   I'm usign java.util.Date!!! So the dafult constructor is present.
   My IDE import java.util and not java.sql package.

   Any ideas?

   Thanks!

   On 30 Dic 2010, 22:49, Y2i yur...@gmail.com wrote:

java.sql.Date does not have a default constructor, so the example
won't compile; it must be something different.

BTW, I copied the three lines above to my client code: there is no
problem with compiling and running it using java.util.Date and GWT
2.1.1.

On Dec 30, 1:31 pm, Slava Lovkiy slava.lov...@gmail.com wrote:

 Is this error happing in old code or newly created?
 Check the package name in the import of the file, there is a chance
 your IDE auto-imported class Date not from java.util but from java.sql
 package.

 On Dec 31, 2:17 am, bond daniele.re...@gmail.com wrote:

  Hi,
  with the last version of GWT (2.1.1); in the client when I'm using
  this code:
  Date date = new Date();
  date.setHours(13);
  date.setMinutes(00);

  throw this exception:

  java.lang.IllegalArgumentException: null
      at java.sql.Date.setHours(Unknown Source)

  I think that the problem is linked to the fact that now 
  java.sql.Date
  is implemented in Gwt.
  How I can resolve the problem?

  Thanks very much

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



Re: Logging in shared code

2011-01-05 Thread Ben Imp
GWT.isClient().

http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/core/client/GWT.html

-Ben

On Jan 5, 9:02 am, nacho vela.igna...@gmail.com wrote:
 I have a similar issue with translations in shared code.

 Is there any way to know if the code is running on server side or
 running in client side?

 For example:

 if (isRunningOnClient) {
    Window.alert(myConstants.hello());} else if (isRunningOnServer) {

    System.out.println(myResources.getString(hello));

 }

 On 5 ene, 02:45, lalit lalit.bh...@gmail.com wrote:

  Hi,

  How can we do logging in the shared code? Some logging need to happen
  on server side and some logging will be happening on client side and
  there might be a possibility of same log active in both client and
  server side.

  thanks in advance,

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



Last Page too big in SimplePager

2011-01-05 Thread Micha Roon
I use the SimplePager to page my CellTable. I have setup an
AsyncDataProvider for the data but know beforehand how many rows there
will be

All the pages display fine, but the last. It is as big as the other.
If I have a PageSize of 10 with 15 elements, the last page shows
elements 6 through 15. I'd prefer to have only 11 through 15 shown.

The solution I came up with, is to add the following lines of code to
onRangeChanged in my AsyncDataProvider:

  int start = range.getStart();
  int maxRows = form.getFormDataCount().get(formDataState);

  if(start + range.getLength() == maxRows) {
 start = maxRows - (range.getLength() - (start %
range.getLength()));
 display.setVisibleRange(start, maxRows - start);
  }

And I call my data provider with the new start and size parameters

this does the trick but I'm sure there is a better solution

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



Re: Date/Time support on client side

2011-01-05 Thread smida02
I would recommend using GWT date picker. Its a very nice way for users
to choose dates

http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/datepicker/client/DatePicker.html

On Jan 4, 5:11 pm, Ben Imp benlee...@gmail.com wrote:
 Unfortunately, you are stuck with the old java.util.Date object.  GWT
 as of yet has nothing more to offer.

 There is the DateTimeFormat class, which will allow you to parse bits
 out of the date object, and possibly construct the date object if you
 mash your three combo boxes into a suitable string.  That might help
 you out a bit.

 I've also heard of people making server calls to do date
 manipulation.  Its not pretty, or efficient, but it would work.

 You are far from the only one to mention the lack of a good calendar
 object.  Feel better in knowing that others are suffering as well.

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

 -Ben

 On Jan 4, 9:41 am, Tom Rada tom.r...@gmail.com wrote:







  Hi,
  let me apologize in advance for my trivial post, but I really don't
  know any better place to ask the question:

  I want to have a widget consisting of three list boxes allowing people
  enter their date of birth.
  However, it seems GWT lacks any support for working with date/time on
  client side.

  There is the old java Date class that has all methods deprecated - and
  that's the only positive thing I can say about it, because getYear
  returns some stupid number to that you have to add 1900 to get actual
  year, getDay returns value representing day in week value, etc.

  So, it isn't that hard to fill the combos with values, but such simple
  task like setting the actual day as selected in respective list box is
  impossible for me.

  How would you solve my issue? - I don't want to use any date picker
  (like the one provided by GWT)

  With Regards,
  Tom

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



Re: How to find text in a TextArea

2011-01-05 Thread Matthew Hill
Use a contenteditable div (so that you can bold the keywords) with a string 
searching algorithm. 

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



Re: How to find text in a TextArea

2011-01-05 Thread Matthew Hill
http://blog.whatwg.org/the-road-to-html-5-contenteditable

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



Re: deploy new server version - how to inform clients?

2011-01-05 Thread Thomas Broyer
You seem to be having a caching problem: reloading the page should be made 
to revalidate the page (*.html and *.nocache.js) freshness to the server, so 
that the under construction (you're using a 503 Temporarily Unavailable, 
right?) page and then the new version are correctly loaded back from the 
server rather than the cache.
In other words, your *.html and *.nocache.js should be served with, at a 
minimum, Cache-Control: must-revalidate.

I guess you already have the IncompatibleRemoteServiceException and 
StatusCodeException right in you AsyncCallback-s.

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



Re: DatePicker now starting with Monday, used to be Sunday

2011-01-05 Thread Ben Imp
I experienced this as well.  I noticed it right after I upgraded to
GWT 2.1, so I assume that must have done it.  I've ignored it so far,
as no one in my organization seems to care, but I must admit, I am
curious as to the cause.

-Ben

On Jan 5, 9:51 am, Dan danpr...@gmail.com wrote:
 My DatePicker in my program used to start with Sunday, but since some
 time recently--I don't know when--it has been starting with Monday.

 I've done nothing in this area.

 What do I do to get it back to starting with Sunday?

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



Re: Problem with java.util.Date

2011-01-05 Thread bond
Yes, it's deprecated but is the only manner to set the hour on the
client with GWT.

Daniele

On 5 Gen, 16:34, smida02 daleesm...@gmail.com wrote:
 date.setHours has been deprecated since Java 1.1

 On Jan 5, 2:42 am, bond daniele.re...@gmail.com wrote:

  Yes,
  if I comment the line date.setHours(13); it works!!!

  Thanks!

  On 3 Gen, 22:38, Y2i yur...@gmail.com wrote:

   You are using java.util.Date because if you used java.sql.Date your
   example would not compile.

   does your example work if you comment out the line below?
   // date.setHours(13);

   On Jan 3, 1:16 pm, bond daniele.re...@gmail.com wrote:

Hi,
I'm usign java.util.Date!!! So the dafult constructor is present.
My IDE import java.util and not java.sql package.

Any ideas?

Thanks!

On 30 Dic 2010, 22:49, Y2i yur...@gmail.com wrote:

 java.sql.Date does not have a default constructor, so the example
 won't compile; it must be something different.

 BTW, I copied the three lines above to my client code: there is no
 problem with compiling and running it using java.util.Date and GWT
 2.1.1.

 On Dec 30, 1:31 pm, Slava Lovkiy slava.lov...@gmail.com wrote:

  Is this error happing in old code or newly created?
  Check the package name in the import of the file, there is a chance
  your IDE auto-imported class Date not from java.util but from 
  java.sql
  package.

  On Dec 31, 2:17 am, bond daniele.re...@gmail.com wrote:

   Hi,
   with the last version of GWT (2.1.1); in the client when I'm using
   this code:
   Date date = new Date();
   date.setHours(13);
   date.setMinutes(00);

   throw this exception:

   java.lang.IllegalArgumentException: null
       at java.sql.Date.setHours(Unknown Source)

   I think that the problem is linked to the fact that now 
   java.sql.Date
   is implemented in Gwt.
   How I can resolve the problem?

   Thanks very much

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



DatePicker now starting with Monday, used to be Sunday

2011-01-05 Thread Dan
My DatePicker in my program used to start with Sunday, but since some
time recently--I don't know when--it has been starting with Monday.

I've done nothing in this area.

What do I do to get it back to starting with Sunday?

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



Re: What does this message means - Error in Generated.....FieldSerializer.java

2011-01-05 Thread Rodrigo Romano
I dont think the problem is in my gwt.xml file.

As I said in the topic its compiles after all.

Look my Database.gwt.xml file located in the mypackage directoy.
module
  inherits name=com.googlecode.objectify.Objectify/
  inhheits name=com.google.gwt.user.User/
  source path=database/source
/moduel

And My module located in mypackage/gwt/modules/client directory.

module
   entry-point class=mypackage.gwt.modules.client.Etapa1 /
   inherits name=com.google.gwt.user.theme.starndard.Standard /
   inherits name-mypackage.Database 
   inherirts name=com.google.gwt.user.User /
/module


I dont know what this fieldSerializer has about with my module. It is
not my programing part. Look like is something in the gwt
configuration...

Help please.
Thank you in advance,
Rodrigo.





On 4 jan, 13:39, Paul Robinson ukcue...@gmail.com wrote:
 For every that GWT translates to javascript for use in the client, you must 
 tell GWT where the source code is so that it knows how to translate it.

 The error message is telling you that mypackage.database.MyClass is in a 
 directory (mypackage/database) that is not amongst the directories that you 
 have told GWT contain translatable source code. However, MyClass is being 
 used from client code, and so GWT wants to translate it.

 If you want MyClass to be used in the client, then your gwt.xml file needs to 
 specify that its directory (or a parent directory) contains source code.

 HTH
 Paul

 On 04/01/11 03:19, Rodrigo Romano wrote:



  Hi,

  I am trying to gwt compile my modules that are 100% POJO using
  objectify.
  And I getting this error message, but it compiles after that. What it
  means??

  [ERROR] Errors in 'generated://C34ED3C084298C31F07B52ABE9478A9C/
  mypackage/database/MyClass_FieldSerializer.java'
                  [ERROR] Line 20: No source code is available for type
  mypackage.database.MyClass; did you forget to inherit a required
  module?
                  See snapshot: C:\Users\ISAC_N~1\AppData\Local\Temp
  \mypackage.database.MyClass_FieldSerializer7886760315816490954.java
               [ERROR] Errors in 'generated://
  D53192D233C2B1A6E8A82A245F961E08/mypackage/gwt/modules/client/
  ISessionSuportService_Proxy.java'
                  [ERROR] Line 463: No source code is available for type
  mypackage.database.MyClass; did you forget to inherit a required
  module?
                  See snapshot: C:\Users\ISAC_N~1\AppData\Local\Temp
  \mypackage.gwt.modules.client.ISessionSuportService_Proxy522490916918797054­7.java
      Compiling 6 permutations
         Compiling permutation 0...
         Compiling permutation 1...
         Compiling permutation 2...
         Compiling permutation 3...
         Compiling permutation 4...
         Compiling permutation 5...
      Compile of permutations succeeded

  Help Please
  [],
  Thanks in advance.- Ocultar texto das mensagens anteriores -

 - Mostrar texto das mensagens anteriores -

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



Re: Defining ChangeHandler in a Hidden Widget

2011-01-05 Thread Thomas Broyer
1) use addDomHandler instead of addHandler
2) use ChangeEvent.getType() instead of a new GwtEvent.Type()

That being said, input type=hidden won't ever dispatch a change event 
(setting the value programmatically never dispatches an event on any of the 
input type=XXX types)
See, for example, 
http://stackoverflow.com/questions/1003053/does-html-hidden-control-have-any-events-like-onchange-or-something/1003155#1003155

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



Setting HTML on TextCell GWT 2.1.1

2011-01-05 Thread bond
Hi,
with GWT 2.1.1 I've a problem when I set some html text to a cell.
I know that now it used SafeHtml that escape charactes.

I've something like this:

addSortColumn(Html column, new TextCell(), new GetValueString,
String() {
public String getValue(String object) {
return 
SafeHtmlUtils.fromSafeConstant(strongThis is a test/
strong).asString();
}
}, new PropertyString(html, String.class));

but when I display the table I see strongThis is a test/strong
because the html tags are escaped!!!
With GWT 2.1 my code worked perfectly!!!

Thanks very much!

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



expenses and other maven apps: how to reflect changes to war folder instantly?

2011-01-05 Thread marius.andreiana
Hi,

When importing a maven project such as expenses from gwt, we'd like to
make changes to files in war folder (e.g. CSS) and then be able to see
them while in debug mode just by pressing Refresh in browser.

In order for this to work, one has now to go and change the default
war folder as follows:
* Right click on adminconsole-main (from Package Explorer) and select
Properties
* From the context menu pick Run/Debug Settings
* Select the app html file, click Edit...
* Go to Arguments tab
* In the Program arguments section add/update the -war argument

e.g. in expenses app, change from expenses/target/expenses-0.1.0.BUILD-
SNAPSHOT to expenses/src/main/webapp.

Could this value be *by default* same as war folder?(src/main/webapp
in this case)
The goal is for the project to work out of box, without the
customization above. I don't see how to overwrite this value from
pom.xml

Thanks

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



How can I know if my script is running inside an iframe or not?

2011-01-05 Thread nacho
I have a script that sometimes will run inside an iframe an sometimes
not. How can i know if the script if running inside an iframe?

Another doubt, if the script is running inside the iframe how can i
redirect the parent window?

If I do Window.Location.assign(/newUrl) obviusly the content of the
iframe is redirected but I need to redirect the parent window of the
iframe.

Thanks.

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



Re: Runtime errors after updating to 2.1.1

2011-01-05 Thread Thomas Broyer
The Google Plugin for Eclipse (GPE) integrates with M2Eclipse and should 
automatically pick up the correct GWT version (i.e. from your Maven 
repository, depending on what's on the POM).
I can't remember if you have to manually enable the GWT nature on the 
project or if the GPE does it automatically too when detecting a dependency 
on com.google.gwt:gwt-user in the POM.

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



Re: GWT with JPA located in a separate project

2011-01-05 Thread Thomas Broyer
Or, instead of packaging your core project to add the JAR as a dependency 
to the GWT project, you can have a project dependency in Eclipse; but then 
you have to add the core project's src/ folder to the classpath when 
launching the DevMode or the Compiler (for the GWT project); that is, by 
manually editing the launch configurations.

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



DockLayoutPanel and ClickHandler

2011-01-05 Thread Ryan Rathsam
Hi All,

I've been scouring the web for the past couple of days looking for
some way of implementing this and I have yet to find a way to do this.
My setup is as follows: I have a custom widget (Composite) that
utilizes a DockLayoutPanel for it's structure. I would like to capture
mouse clicks anywhere on this widget and do something with them
(Eventual thought is a context menu). I thought that perhaps if I
Implemented ClickHandler (as per Example Composite on the Building
User Interfaces page) I could go from there but I noticed that it
looks like the wiring is happening with the .addClickHandler which it
doesn't look like DockLayoutPanel supports. So my question is, is this
possible / has anybody had any experience with this? Any information
would be much appreciated.

Thanks,

Ryan

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



GWT and Struts

2011-01-05 Thread Srividhya Ramachandran
I have a GWT front end app or rather a page deployed with struts framework.
The page looks like:
%@ page language=java contentType=text/html; charset=UTF-8
pageEncoding=UTF-8%
iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1'
style=position:absolute;width:0;height:0;border:0/iframe

script type=text/javascript language=javascript
src=/zz/gwt/xyz.nocache.js/script
table align=center width=95%
  tr
td id=mainPanel/td
  /tr
/table


For the first time I am trying to launch this in devmode and get the
following exception:
GWT Failed to load module from user agent 'Mozilla/5.0 (Windows; U; Windows
NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13'

in the bottom of the stacktrace...
can somebody please help me understand what the problem is?
I am able to launch the page in NON-devmode.

thanks

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



How to delete the time spinner on CellView

2011-01-05 Thread Néstor Boscán
Hi

When I add a new CellView Widget without any rows I get a time spinner
inside the CellView. Is there a way to eliminate the time spinner.

Regards,

Néstor Boscán

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



How to change CSS on a Vertical MenuBar Window

2011-01-05 Thread Néstor Boscán
Hi

I've changed the CSS on MenuItems but I haven't been able to change the
Window of a Vertical MenuBar. Any examples on how to do this?

Regards,

Néstor Boscán

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



CellView and vertical scroll bar

2011-01-05 Thread Néstor Boscán
Hi

I've read that CellView does not support a vertical scroll bar but I also
read that the google incubator may have a version with this feature. Anyone
knows where I can find it?

Regards,

Néstor Boscán

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



PopupPanel space on parent Panel

2011-01-05 Thread Néstor Boscán
Hi

When I add a hidden PopupPanel on a parent Panel I can see the space on the
parent panel where the PopupPanel is. When I center and show the panel the
space disappears. I've tried to center the PopupPanel on the constructor but
with no luck. Any ideas?

Regards,

Néstor Boscán

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



Re: How to delete the time spinner on CellView

2011-01-05 Thread Ben Imp
I believe if you additionally set the row count to 0, it will stop the
spinner.

-Ben

On Jan 5, 10:56 am, Néstor Boscán nesto...@gmail.com wrote:
 Hi

 When I add a new CellView Widget without any rows I get a time spinner
 inside the CellView. Is there a way to eliminate the time spinner.

 Regards,

 Néstor Boscán

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



Re: DatePicker now starting with Monday, used to be Sunday

2011-01-05 Thread macagain
Yes, same here.  But what's even more puzzling is that if you run
showcase (as in compile it from the dist. samples directory), the
datepicker there starts on Sunday!

Been digging all over, but can't seem to figure out what/where the
setting is.

On Jan 5, 8:57 am, Ben Imp benlee...@gmail.com wrote:
 I experienced this as well.  I noticed it right after I upgraded to
 GWT 2.1, so I assume that must have done it.  I've ignored it so far,
 as no one in my organization seems to care, but I must admit, I am
 curious as to the cause.

 -Ben

 On Jan 5, 9:51 am, Dan danpr...@gmail.com wrote:



  My DatePicker in my program used to start with Sunday, but since some
  time recently--I don't know when--it has been starting with Monday.

  I've done nothing in this area.

  What do I do to get it back to starting with Sunday?

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



Re: DatePicker now starting with Monday, used to be Sunday

2011-01-05 Thread John LaBanca
Are you using the default locale?  I'm pretty sure that the start of week
info comes from the CDLR locale data, which we update periodically from some
open source resource.  Showcase uses the en locale, which starts on
Sunday.  If you switch the app to French, you'll see it starts on Monday (L
= Lundi = Monday in French).

You can try adding the following lines to your gwt.xml file as a workaround:
  extend-property name=locale values=en/
  set-property-fallback name=locale value=en/

@jat - Did the start of the week change for the default locale after some
recent CDLR update?

Thanks,
John LaBanca
jlaba...@google.com


On Wed, Jan 5, 2011 at 10:57 AM, Ben Imp benlee...@gmail.com wrote:

 I experienced this as well.  I noticed it right after I upgraded to
 GWT 2.1, so I assume that must have done it.  I've ignored it so far,
 as no one in my organization seems to care, but I must admit, I am
 curious as to the cause.

 -Ben

 On Jan 5, 9:51 am, Dan danpr...@gmail.com wrote:
  My DatePicker in my program used to start with Sunday, but since some
  time recently--I don't know when--it has been starting with Monday.
 
  I've done nothing in this area.
 
  What do I do to get it back to starting with Sunday?

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



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



Re: EnterButton

2011-01-05 Thread Thomas Broyer


On Wednesday, January 5, 2011 4:14:47 PM UTC+1, Greg Dougherty wrote:

 Hi Jeff, 

 You've got things backwards for my concerns.  I want to fire off a 
 Submit event when the user hits Enter, I don't want to do something 
 special once the user has clicked on the button.


I think Jeff got it right, but explained it badly: if you wrap you fields 
inside a form, then when hitting Enter, the *browser* will submit the form. 
So all you have to do is to listen to the SubmitEvent on the FormPanel (and 
not the ClickEvent on the SubmitButton, which I believe not all browsers do 
dispatch in this case).

To do that, I need to figure out how to catch a KeyPress Event when 
 the last thing selected was a FileUpload (which doesn't have a 
 KeyPress Event Handler).  Any ideas?


I just saw that Widget#addDomHandler is public, so this should work (for any 
widget provided the browser actually dispatches the event):
   fileUpload.addDomHandler(enterbutton, KeyPressevent.getType());


Now, let's go off topic:

As for using UIBinder: 
 1: I'm building the UI, and I'm a programmer. I LIKE building the UI 
 programmatically. 
 2: When I looked at it (July - August 2010), the documentation was 
 opaque, and singularly lacking in useful examples.  So avoiding 
 UIBuilder is faster than using it.


Probably because you:
 - don't use HTMLPanel enough (reminder: it helps for performance)
 - and haven't spent the necessary hour (half-hour?) to learn how to use it 
and understand how much time it can actually save you (mainly by making your 
UI code much more readable as to which widget contains what).
 

 3: I build WebApps where the height and width of the UI is dependent 
 upon the data returned in response to user actions.  Which means that 
 the *LayoutPanels are a HUGE step backward in functionality for me. 
 To the extent that when I have to choose between upgrading GWT, and 
 losing the non-Layout Panels, I'll probably stop upgrading GWT.  (Yes, 
 I know that the change was a deliberate choice.  I just think it was a 
 horrible mistake.)


I don't see the relationship between layout panels and UiBinder.
 

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



Re: Setting HTML on TextCell GWT 2.1.1

2011-01-05 Thread Thomas Broyer
That's what happens when you take advantage of bugs and then they fix them 
;-)

Use a SafeHtmlCell 
instead: 
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/cell/client/SafeHtmlCell.html

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



Re: DockLayoutPanel and ClickHandler

2011-01-05 Thread Thomas Broyer
Use addDomHandler within your Composite:
  this.addDomHandler(new ClickHandler() { ... }, ClickEvent.getType());

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



Re: PopupPanel space on parent Panel

2011-01-05 Thread Thomas Broyer
PopupPanel-s are not meant to be add()ed to other widgets.

When you call center() or show() on them, they actually add them to the 
RootPanel.get() (which as a side effect removes them from where they 
previously were, which explains why the blank disappears)

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



Re: SelectionCell is displaying empty combo box

2011-01-05 Thread Deepak Singh
Still no luck. I hope it could be a bug also.

On Tue, Jan 4, 2011 at 10:26 PM, Deepak Singh deepaksingh...@gmail.comwrote:

 Hi Ben,

 I make sure that i am adding string values to list as follows:
 final ListString picUps = new ArrayListString();
//  Adding values to picUps list
 picUps.add( -- );
 This is added to the list.

 On Mon, Jan 3, 2011 at 11:33 PM, Deepak Singh deepaksingh...@gmail.comwrote:

 Hi,

 I have a cellTable and am displaying combox in one of the columns.
 I use SelectionCell for the same but my problem is that the combobox is
 displayed in all rows but all are empty, they dont  show any values there.
 Code is as follows:

 final ListString picUps = new ArrayListString();
//  Adding values to picUps list


 SelectionCell picUpPointCell =
 new SelectionCell(picUps);
  ColumnIBusObjectRpc, String pickUpCol = new ColumnIBusObjectRpc,
 String(picUpPointCell) {
  @Override
 public String getValue(IBusObjectRpc object) {
 if(object instanceof TktvalaTripDTO) {
  return ((TktvalaTripDTO)object).getPickupPoint().get(0).getName();
 }else if(object instanceof TktgooseBusDTO) {
  return ((TktgooseBusDTO)object).getPickupPoints().get(0).getDesc();
  }
 return null;
 }
  };
  table.addColumn(pickUpCol, Pic ups);


 I make sure that the proper values are returned from getValue().

 Can somebody find out what i am doing wrong.


 Thanlks
 Deepak




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



Updating Cell Table at run time

2011-01-05 Thread Noor
I am getting problem to update cell table at runtime.

I am trying this:

 View.getTable().setRowData(0,NewMessages);

but does not work:

also trying

View.getTable().redraw();

with no success

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



Re: DatePicker now starting with Monday, used to be Sunday

2011-01-05 Thread John Tamplin
On Wed, Jan 5, 2011 at 12:14 PM, John LaBanca jlaba...@google.com wrote:

 Are you using the default locale?  I'm pretty sure that the start of week
 info comes from the CDLR locale data, which we update periodically from some
 open source resource.  Showcase uses the en locale, which starts on
 Sunday.  If you switch the app to French, you'll see it starts on Monday (L
 = Lundi = Monday in French).

 You can try adding the following lines to your gwt.xml file as a
 workaround:
   extend-property name=locale values=en/
   set-property-fallback name=locale value=en/

 @jat - Did the start of the week change for the default locale after some
 recent CDLR update?


Yes, more of the world's population uses Monday as the first day of the
week, so we use that for default.  Previously, most default values were
from en.

As you suggest, you really should always be running a GWT app in a real
locale if possible, rather than default -- it should truly be the last
resort if you have nothing better to match.

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

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



Re: Updating Cell Table at run time

2011-01-05 Thread Y2i
Did you setup table columns?
It might be also possible that your table is not visible (collapsed).
Try setting background color to red (using styles) to verify that if
it is visible.


On Jan 5, 9:56 am, Noor baken...@gmail.com wrote:
 I am getting problem to update cell table at runtime.

 I am trying this:

      View.getTable().setRowData(0,NewMessages);

 but does not work:

 also trying

 View.getTable().redraw();

 with no success

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



Development Mode not displaying properly

2011-01-05 Thread EMan
Has anyone run into this?  I am running my application through
Development Mode.  when I test my application in Chrome and IE, they
both look considerably different.  Also I am not receiving some events
in Chrome that I get in IE (click events).

Before I post code up, just curious, does this happen to others?
Isn't the whole point of GWT that it takes care of browser conversion,
and it acts/displays exactly the same in all browsers?

Thank.

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



Re: Date/Time support on client side

2011-01-05 Thread Thad
The GWT Incubator extends DatePicker with
com.google.gwt.gen2.picker.client.DateTimePicker

On Jan 5, 10:38 am, smida02 daleesm...@gmail.com wrote:
 I would recommend using GWT date picker. Its a very nice way for users
 to choose dates

 http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...

 On Jan 4, 5:11 pm, Ben Imp benlee...@gmail.com wrote:

  Unfortunately, you are stuck with the old java.util.Date object.  GWT
  as of yet has nothing more to offer.

  There is the DateTimeFormat class, which will allow you to parse bits
  out of the date object, and possibly construct the date object if you
  mash your three combo boxes into a suitable string.  That might help
  you out a bit.

  I've also heard of people making server calls to do date
  manipulation.  Its not pretty, or efficient, but it would work.

  You are far from the only one to mention the lack of a good calendar
  object.  Feel better in knowing that others are suffering as well.

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

  -Ben

  On Jan 4, 9:41 am, Tom Rada tom.r...@gmail.com wrote:

   Hi,
   let me apologize in advance for my trivial post, but I really don't
   know any better place to ask the question:

   I want to have a widget consisting of three list boxes allowing people
   enter their date of birth.
   However, it seems GWT lacks any support for working with date/time on
   client side.

   There is the old java Date class that has all methods deprecated - and
   that's the only positive thing I can say about it, because getYear
   returns some stupid number to that you have to add 1900 to get actual
   year, getDay returns value representing day in week value, etc.

   So, it isn't that hard to fill the combos with values, but such simple
   task like setting the actual day as selected in respective list box is
   impossible for me.

   How would you solve my issue? - I don't want to use any date picker
   (like the one provided by GWT)

   With Regards,
   Tom

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



htmlPanel

2011-01-05 Thread Ahmed Shoeib
hi all,

now i made my code form using html and Added it to HtmlPanel()
now i need to get this html response and handle it on my client.

can i make this step or not ?
and if not what is the best way to do this ??

thanks.

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



Re: Development Mode not displaying properly

2011-01-05 Thread Ben Imp
Unfortunately, some things are still different between browsers.  Your
CSS, for instance, GWT doesn't do anything with.  IE tends to render
things just a wee bit different in some cases, depending on your CSS,
so you are still stuck with testing across all of them.

I can't say I have ever missed click events, although at one point I
did get inconsistent key press events.  The issue still lives on:

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

So, yes, some of the browser inconsistencies are still passed down to
we lowly programmers to deal with.

-Ben

On Jan 5, 12:36 pm, EMan eric.nis...@gmail.com wrote:
 Has anyone run into this?  I am running my application through
 Development Mode.  when I test my application in Chrome and IE, they
 both look considerably different.  Also I am not receiving some events
 in Chrome that I get in IE (click events).

 Before I post code up, just curious, does this happen to others?
 Isn't the whole point of GWT that it takes care of browser conversion,
 and it acts/displays exactly the same in all browsers?

 Thank.

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



Re: gwt rpc

2011-01-05 Thread Y2i
AbstractRemoteServiceServlet and its sub-class RemoteServiceServlet
are the classes that implement gwt-rpc.   gwt-rpc is implemented using
doPost().  AbstractRemoteServiceServlet makes doPost() final and
delegates the work to RemoteServiceServlet.processPost() to  dispatch
remote service interface calls.

On Jan 4, 8:40 pm, pieceovcake bira...@gmail.com wrote:
 can gwt-rpc be implemented by extending HttpServlet

 or will it only work by extending RemoteServiceServlet ?

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



Problem with @sprite

2011-01-05 Thread Jeff Schwartz
I want to create an anchor element that has an image as its background and I
want to apply a css style selector to the Anchor widget that defines the
background image such as myAnchorWidget.setStyle(...). I am not able to get
it working and when I run the application it throws an error which I've
included below. Here's what I've done and maybe you can tell me where I've
gone wrong.

1) In the insurance.css file I've declared a sprite as follows:

@sprite .deleteAnchor{
gwt-image: btndelete16x12;
}

2) I added the image file, btndelete16x12.gif, to my lmv/com/client/members
package and I created a subclass of ClientBundle to include it as follows:

package lmv.com.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;

public interface LMVResources extends ClientBundle {

public static final LMVResources INSTANCE =
GWT.create(LMVResources.class);

@Source(lmv/com/client/members/btndelete16x12.gif)
ImageResource btndelete16x12();

}

3) In my Composite I've created the following:

interface InsurancePaymentStyle extends CssResource {
String deleteAnchor();
}

4) When I run the app I get the following error:

*13:30:42.263 [ERROR] [lmv] Unable to find ImageResource method
value(btndelete16x12()) in lmv.com.client.LMVResources : Could not find
no-arg method named btndelete16x12() in type lmv.com.client.LMVResources
*

Thanks in advance for helping me out with this.

-- 
*Jeff Schwartz*

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



Re: Updating Cell Table at run time

2011-01-05 Thread Noor

When i am updating the cell table, it remaining as it is though the
data in the list supplying it has changed thrugh CRUD

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



Re: Updating Cell Table at run time

2011-01-05 Thread Noor

When using the same technique, i am adding the cell table is being
updated but when removing, it not updating

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



Re: Problem with java.util.Date

2011-01-05 Thread Y2i
 Just copied and tested above code in 2.1.1 and works fine in
 development mode.

This is what I said earlier: the example also works for me in GWT
2.1.1...

 Looking at the exception, you are using the setHours() method in the
 sql Date object...

But if I replace java.util.Date with java.sql.Date the example would
not compile because java.sql.Date does not have a default
constructor...
http://download.oracle.com/javase/6/docs/api/java/sql/Date.html

A mystery...

Initially I thought it might be that setHours() was being passed an
Integer instead of an int and the Integer was null, but the call was
explicit setHours(13)...

What if you call date.setHours(12) or date.setHours(11)?

Also, check your project settings, may be your project is referring to
both GWT 2.1.1 and 2.0 at the same time, which may cause some side
effects.

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



Re: Updating Cell Table at run time

2011-01-05 Thread John LaBanca
setRowData(int, List) replaces the range of data.  So, if the list gets
shorted, it doesn't touch the items that appear after the end of the list.

You have to update the row count as well:
table.setRowData(0, NewMessages);
table.setRowCount(NewMessages.size(), true);

Or, you can use the new version of setRowData that does not take a start
index (since GWT 2.1.1):
table.setRowData(NewMessages);

Thanks,
John LaBanca
jlaba...@google.com


On Wed, Jan 5, 2011 at 2:11 PM, Noor baken...@gmail.com wrote:


 When using the same technique, i am adding the cell table is being
 updated but when removing, it not updating

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



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



Compiler options

2011-01-05 Thread rmuller
What is the difference between -optimize 0 and -draftCompile?
I do no see any difference in terms of compilation speed and js file
size.
In terms of compilation speed there is *very* little difference
between -optimize 0 and -optimize 9. So in what scenarios are these
relevant?

Regards,
Ronald

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



Re: Updating Cell Table at run time

2011-01-05 Thread Noor
@John LaBanca;
Thanks lot!!

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



Building for a single locale

2011-01-05 Thread Jim Douglas

This is driving me around the bend.  Our production configuration
builds for all browsers  several languages.

For development / testing purposes, I'm trying to define a restricted
configuration that just hard codes a single locale, like this:

?xml version=1.0 encoding=UTF-8?
module rename-to='gwtwebclient'
  inherits name='com.basis.bbj.web.gwt.GWTWebClient'/
  extend-property name=locale values=en_US /
  set-property name=locale value=en_US/
/module

That configuration seems to work fine in production mode, setting the
GWT client Locale to en_US.  But this line crashes and burns in
development mode:

m_i18n = GWT.create(I18N.class);

II18n is a bunch of constants:

package com.basis.bbj.web.gwt.client.i18n;

import com.google.gwt.i18n.client.Constants;

public interface I18N extends Constants
{
@DefaultStringValue(Click to reload application)
String clickToReloadApplication();
...
}

FWIW, I've read this several times, hoping to find some clue about
what I'm doing wrong:

http://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html

I can use some suggestions; maybe I'm just missing something really
stupid.

GWT dev mode reports the following less-than-enlightening error
messages:

00:01:14.521 [DEBUG] Rebinding com.basis.bbj.web.gwt.client.i18n.I18N

00:01:14.521 [DEBUG] Invoking
com.google.gwt.dev.javac.standardgeneratorcont...@203317c5

00:01:14.521 [ERROR] Error while executing the JavaScript provider for
property 'locale'
com.google.gwt.core.client.JavaScriptException: (TypeError): u[a] is
not a function  fileName: 
http://localhost:8080/gwtwebclient/gwtwebclient.nocache.js
lineNumber: 7  stack: F(locale)@http://localhost:8080/gwtwebclient/
gwtwebclient.nocache.js:7 (locale)@http://localhost:8080/
gwtwebclient/gwtwebclient.nocache.js:2 @:0 ([object GWTJavaObject],
147456001,[object XMLHttpRequest])@http://localhost:8080/gwtwebclient/
hosted.html?gwtwebclient:56 ([object Event])@http://localhost:8080:22
((function () {__gwt_makeJavaInvoke(1)(handler, 147456001, _this);}),
[object XMLHttpRequest],[object Object])@http://localhost:8080:34 @:0
(null,27,(function () {__gwt_makeJavaInvoke(1)(handler, 147456001,
_this);}),[object XMLHttpRequest],[object Object])@http://localhost:
8080/gwtwebclient/hosted.html?gwtwebclient:56 ([object Event])@http://
localhost:8080:57
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
195)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264)
at
com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:
189)
at
com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getSelectionProperty(ModuleSpacePropertyOracle.java:
127)
at
com.google.gwt.i18n.rebind.LocalizableGenerator.generate(LocalizableGenerator.java:
91)
at
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
418)
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
38)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:108)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:54)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
154)
at
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:
119)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:
531)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
414)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.basis.bbj.web.gwt.client.GWTWebClient
$InitializeCallback.onSuccess(GWTWebClient.java:460)
at com.basis.bbj.web.gwt.client.GWTWebClient
$InitializeCallback.onSuccess(GWTWebClient.java:1)
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
216)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:393)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at

Re: Building for a single locale

2011-01-05 Thread Jeff Chimene
On Wed, Jan 5, 2011 at 12:43 PM, Jim Douglas jdou...@basis.com wrote:


 This is driving me around the bend.  Our production configuration
 builds for all browsers  several languages.

 For development / testing purposes, I'm trying to define a restricted
 configuration that just hard codes a single locale, like this:

 ?xml version=1.0 encoding=UTF-8?
 module rename-to='gwtwebclient'
  inherits name='com.basis.bbj.web.gwt.GWTWebClient'/
  extend-property name=locale values=en_US /
  set-property name=locale value=en_US/
 /module

 That configuration seems to work fine in production mode, setting the
 GWT client Locale to en_US.  But this line crashes and burns in
 development mode:

m_i18n = GWT.create(I18N.class);

 II18n is a bunch of constants:

 package com.basis.bbj.web.gwt.client.i18n;

 import com.google.gwt.i18n.client.Constants;

 public interface I18N extends Constants
 {
@DefaultStringValue(Click to reload application)
String clickToReloadApplication();
 ...
 }

 FWIW, I've read this several times, hoping to find some clue about
 what I'm doing wrong:

 http://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html

 I can use some suggestions; maybe I'm just missing something really
 stupid.

 GWT dev mode reports the following less-than-enlightening error
 messages:

 00:01:14.521 [DEBUG] Rebinding com.basis.bbj.web.gwt.client.i18n.I18N

 00:01:14.521 [DEBUG] Invoking
 com.google.gwt.dev.javac.standardgeneratorcont...@203317c5

 00:01:14.521 [ERROR] Error while executing the JavaScript provider for
 property 'locale'
 com.google.gwt.core.client.JavaScriptException: (TypeError): u[a] is
 not a function  fileName:
 http://localhost:8080/gwtwebclient/gwtwebclient.nocache.js


Typically, this happens when you don't have a browser-specific module
available. Check your server log for 404 errors. Since you've stipulated
that you're compiling in a restricted configuration, I'd start there.
Also, clean up your server directory to remove obsolete files and redeploy.

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



Re: Building for a single locale

2011-01-05 Thread Jim Douglas
You lost me, Jeff.

The restriction involves inheriting the normal .gwt.xml file and
adding these lines to cause it to compile just a single locale (with a
goal of reducing the build time from 15 minutes to a couple of
minutes):

?xml version=1.0 encoding=UTF-8?
module rename-to='gwtwebclient'
  inherits name='com.basis.bbj.web.gwt.GWTWebClient'/
  extend-property name=locale values=en_US /
  set-property name=locale value=en_US/
/module

That builds with no problems, and I can run in production mode with
the project compiled this way.  When I run the same configuration in
dev mode, it apparently crashes and burns attempting to resolve the
client side locale.

On Jan 5, 11:56 am, Jeff Chimene jchim...@gmail.com wrote:
 On Wed, Jan 5, 2011 at 12:43 PM, Jim Douglas jdou...@basis.com wrote:

  This is driving me around the bend.  Our production configuration
  builds for all browsers  several languages.

  For development / testing purposes, I'm trying to define a restricted
  configuration that just hard codes a single locale, like this:

  ?xml version=1.0 encoding=UTF-8?
  module rename-to='gwtwebclient'
   inherits name='com.basis.bbj.web.gwt.GWTWebClient'/
   extend-property name=locale values=en_US /
   set-property name=locale value=en_US/
  /module

  That configuration seems to work fine in production mode, setting the
  GWT client Locale to en_US.  But this line crashes and burns in
  development mode:

     m_i18n = GWT.create(I18N.class);

  II18n is a bunch of constants:

  package com.basis.bbj.web.gwt.client.i18n;

  import com.google.gwt.i18n.client.Constants;

  public interface I18N extends Constants
  {
    �...@defaultstringvalue(Click to reload application)
     String clickToReloadApplication();
  ...
  }

  FWIW, I've read this several times, hoping to find some clue about
  what I'm doing wrong:

 http://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html

  I can use some suggestions; maybe I'm just missing something really
  stupid.

  GWT dev mode reports the following less-than-enlightening error
  messages:

  00:01:14.521 [DEBUG] Rebinding com.basis.bbj.web.gwt.client.i18n.I18N

  00:01:14.521 [DEBUG] Invoking
  com.google.gwt.dev.javac.standardgeneratorcont...@203317c5

  00:01:14.521 [ERROR] Error while executing the JavaScript provider for
  property 'locale'
  com.google.gwt.core.client.JavaScriptException: (TypeError): u[a] is
  not a function  fileName:
 http://localhost:8080/gwtwebclient/gwtwebclient.nocache.js

 Typically, this happens when you don't have a browser-specific module
 available. Check your server log for 404 errors. Since you've stipulated
 that you're compiling in a restricted configuration, I'd start there.
 Also, clean up your server directory to remove obsolete files and redeploy.

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



FormPanel.SubmitEvent cancel not working

2011-01-05 Thread Greg Dougherty
I have the following code in a GWT 2.1.0 project:

public void onSubmit (FormPanel.SubmitEvent event)
{
// This event is fired just before the form is submitted. We can take
// this opportunity to perform validation.
String filename = gDataFileUploader.getFilename ();
if (filename.length () == 0)
{
showAlert (Need a valid File Name in before we can upload a
file!);
event.cancel ();
}
}

Unfortunately, although it is called, the cancel () call doesn't stop
the submit from happening, and doesn't stop onSubmitComplete from
being called.  Is this a GWT bug or a browser bug?  (FireFox 3.6)

TIA,

Greg

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



Re: Where do KeyPress Events go?

2011-01-05 Thread Greg Dougherty
Thanks Ian!

Both solutions work, but I prefer the sinkEvents one, since it seems
more broadly applicable.

Thank you,

Greg

On Jan 5, 9:28 am, Ian Bambury ianbamb...@gmail.com wrote:
 Or, if you want to be fed keyup events when the FU has focus (or anyt other
 event you choose)

         fu.sinkEvents(Event.ONKEYUP);
         fu.addHandler(new KeyUpHandler()
         {

             @Override
             public void onKeyUp(KeyUpEvent event)
             {
                 Window.alert(Hi!);
             }
         }, KeyUpEvent.getType());

 On 5 January 2011 15:20, Ian Bambury ianbamb...@gmail.com wrote:



          fu.addChangeHandler(new ChangeHandler()
          {

              @Override
              public void onChange(ChangeEvent event)
              {
                  button.setFocus(true);
              }
          });

  would put the focus on the button - any good?

  or there's always 'DOM.addEventPreview' - problem is, you probably want
  enter to move your user from input area to input area.
  firstname-lastname-fileuploadCV or something, rather than submit every time
  the user presses enter.

  Ian

  On 5 January 2011 14:50, Greg Dougherty dougherty.greg...@mayo.eduwrote:

  Currently, I'm using a SubmitButton, and forcing the user to click on
  the button to have anything happen.

  I'd like for the user to be able to hit Enter, and have the button
  fire (IOW, I want it to behave like a real application, rather than
  like a web application).  Unfortunately, I can't find any way to catch
  key events in that form.

  I'm using Apache FileUpload, which essentially requires me to have the
  file as the last item in the form (file size is in the hundreds of MB,
  so I read it a line at a time and toss the line when I'm done with
  it.  FileUpload only lets you keep a reader for one form element at a
  time, so I can't get data for anything after the file).  This means
  the average user is going to fill in that field last.  Which means
  that if I want to support the Enter key, I need to be able to do it
  after the user has selected a file using the FileUpload.  But
  FileUpload doesn't generate Key events.

  So, WHO gets those KeyPress Events?

  Greg

  On Jan 5, 8:08 am, jaybose onyeje.b...@gmail.com wrote:
   OK, what does the button do, at the moment?

   Do you have your EnterButton's handler call submit() on the form?
   If so, are you seeing any errors?

   On Jan 4, 8:53 am, Greg Dougherty dougherty.greg...@mayo.edu wrote:

Yes, but it doesn't do the upload when I hit Enter.  Which is what I'm
trying to figure out how to get it to do.

Greg

On Jan 4, 8:20 am, jaybose onyeje.b...@gmail.com wrote:

http://gwt.google.com/samples/Showcase/Showcase.html#!CwFileUpload

 Look at the source of the ShowCase example above.
 The uploadButton it uses is not a SubmitButton either.

 Just make sure the handler of your EnterButton submits the form.

 On Jan 3, 8:57 am, Greg Dougherty dougherty.greg...@mayo.edu
  wrote:

  So, now that I have an EnterButton class, I'd like to use it. :-)
   I
  have a form panel with a FileUpload.  I'd like to let the user
  select
  a file, then hit enter to fire the form submit button (which is an
  EnterButton, not a SubmitButton).

  Unfortunately, FileUpload does not have an addKeyPressHandler
  routine.  So, who gets any key events I generate while in the text
  field part of a FileUpload?  What is the call chain for events
  that
  aren't captured by the Widget where the event happens?

  Sorry if this is an FAQ, and in the docs.  I took a (quick) look,
  and
  couldn't find anything.  Please point me to the correct docs if it
  is
  in there.

  Thanks!

  Greg

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

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



Re: FormPanel.SubmitEvent cancel not working

2011-01-05 Thread Jim Douglas
I'm doing pretty much exactly that with my FileUpload widget, and it
works ok here:

/*
 * User clicked the Chooser OK button.
 */
public void onSubmit(SubmitEvent p_event)
{
if (m_progressUpdateTimer != null)
{
// Upload is already in progress
p_event.cancel();
return;
}
 several more validation checks 
}


On Jan 5, 12:27 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 I have the following code in a GWT 2.1.0 project:

 public void onSubmit (FormPanel.SubmitEvent event)
 {
         // This event is fired just before the form is submitted. We can take
         // this opportunity to perform validation.
         String filename = gDataFileUploader.getFilename ();
         if (filename.length () == 0)
         {
                 showAlert (Need a valid File Name in before we can upload a
 file!);
                 event.cancel ();
         }

 }

 Unfortunately, although it is called, the cancel () call doesn't stop
 the submit from happening, and doesn't stop onSubmitComplete from
 being called.  Is this a GWT bug or a browser bug?  (FireFox 3.6)

 TIA,

 Greg

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



Re: gwt rpc

2011-01-05 Thread pieceovcake
what i'm getting at is

how do i make my gwt-rpc function call available to the rest of the world?

So that external users can execute Get() on the RemoteServiceServlet

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



GWT Simple Pager Help

2011-01-05 Thread Noor
Hi, I am stuck with the gwt cell pager which I want to attach to a
cell table. I am setting like this:

List ForumMessage AllMessages=populated from an rpc;
CellTable cellTable = new CellTable  ForumMessage();
simplePager = new SimplePager();
cellTable.addColumn(ColumnM);
cellTable.setRowData(0,AllMessages);
simplePager.setDisplay(cellTable);
simplePager.setPageSize(3);


ColumnM has correctly been defined

But when the cell table is being displayed, the first three rows are
correctly shown but when i press next, no rows are shown and the cell
table is as if loading. Now from that page, if I press back, again the
page is as if loading.

Now, another problem is that I can continually press next and the
numbers of pages keeps on adding even if there are only 8 rows

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



Re: Building for a single locale

2011-01-05 Thread Jim Douglas
Solved, although I'm not entirely sure I understand this...and the dev
mode error messages are still obscure.

But the problem turns out to have been caused by building the
restricted configuration, but continuing to specify the original
(full) configuration when I started GWT dev mode.  Running production
code in that environment continued to work fine, but when I switched
to dev mode, it fell over in a pile.

On Jan 5, 12:07 pm, Jim Douglas jdou...@basis.com wrote:
 You lost me, Jeff.

 The restriction involves inheriting the normal .gwt.xml file and
 adding these lines to cause it to compile just a single locale (with a
 goal of reducing the build time from 15 minutes to a couple of
 minutes):

 ?xml version=1.0 encoding=UTF-8?
 module rename-to='gwtwebclient'
   inherits name='com.basis.bbj.web.gwt.GWTWebClient'/
   extend-property name=locale values=en_US /
   set-property name=locale value=en_US/
 /module

 That builds with no problems, and I can run in production mode with
 the project compiled this way.  When I run the same configuration in
 dev mode, it apparently crashes and burns attempting to resolve the
 client side locale.

 On Jan 5, 11:56 am, Jeff Chimene jchim...@gmail.com wrote:



  On Wed, Jan 5, 2011 at 12:43 PM, Jim Douglas jdou...@basis.com wrote:

   This is driving me around the bend.  Our production configuration
   builds for all browsers  several languages.

   For development / testing purposes, I'm trying to define a restricted
   configuration that just hard codes a single locale, like this:

   ?xml version=1.0 encoding=UTF-8?
   module rename-to='gwtwebclient'
    inherits name='com.basis.bbj.web.gwt.GWTWebClient'/
    extend-property name=locale values=en_US /
    set-property name=locale value=en_US/
   /module

   That configuration seems to work fine in production mode, setting the
   GWT client Locale to en_US.  But this line crashes and burns in
   development mode:

      m_i18n = GWT.create(I18N.class);

   II18n is a bunch of constants:

   package com.basis.bbj.web.gwt.client.i18n;

   import com.google.gwt.i18n.client.Constants;

   public interface I18N extends Constants
   {
     �...@defaultstringvalue(Click to reload application)
      String clickToReloadApplication();
   ...
   }

   FWIW, I've read this several times, hoping to find some clue about
   what I'm doing wrong:

  http://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html

   I can use some suggestions; maybe I'm just missing something really
   stupid.

   GWT dev mode reports the following less-than-enlightening error
   messages:

   00:01:14.521 [DEBUG] Rebinding com.basis.bbj.web.gwt.client.i18n.I18N

   00:01:14.521 [DEBUG] Invoking
   com.google.gwt.dev.javac.standardgeneratorcont...@203317c5

   00:01:14.521 [ERROR] Error while executing the JavaScript provider for
   property 'locale'
   com.google.gwt.core.client.JavaScriptException: (TypeError): u[a] is
   not a function  fileName:
  http://localhost:8080/gwtwebclient/gwtwebclient.nocache.js

  Typically, this happens when you don't have a browser-specific module
  available. Check your server log for 404 errors. Since you've stipulated
  that you're compiling in a restricted configuration, I'd start there.
  Also, clean up your server directory to remove obsolete files and redeploy.

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



Re: EnterButton

2011-01-05 Thread Greg Dougherty
Hi Jeff,

My fields ARE wrapped in a FormPanel (which I assume is what you mean
by a form.  If not, please enlighten me), and hitting Enter after
selecting a file most certainly did NOT cause the Form to submit,
because if it did, I wouldn't need to spend time making a button to
accomplish that behavior.

Happily, Ian Bambury pointed me to sinkEvents and addHandler, which
let me do what I want to do.

As for the off topic:
1: I don't think I've EVER used HTMLPanel.  If my UI gets bogged down,
I'll keep it in mind, but my performance issues generally involve
waiting for the server to finish queries.  How many items do you need
on screen to get client performance to bog down?
2: I spent (wasted?) several hours (probably over a day, spread out
over a week) trying to make sense of UIBuilder.  The documentation
made no sense to me, and was totally lacking in worthwhile examples
that I could play with to try to figure things out.  (No, go look at
the rewritten Mail Application doesn't qualify as a worthwhile
example.  A small working application that I can fiddle with, modify,
and see what the changes do is what you need for a worthwhile
example.)
3: Much more readable to whom?  A UI Designer who doesn't read
code?  Great.  But I'm not one of those, and I'm not working with one
of those.  For me, I go to the method that creates the Panel, and can
quickly see what is where, and with who.  Since my Widgets tend to
have names like dataFileUploaderForm, I generally know what's in
them w/o having to look farther than the name, but if I do, a quick
search on the name of any widget in the panel takes me to the method
where it's put together.  What does UIBuilder offer that's better than
that?  (Serious question.  I'm a big fan of visual UI builders, but
I've never understood the benefits of a textual one.)

4: My (half-remembered) impression of UIBuilder was that it was
supposed to encourage you to move to the 2.0 LayoutPanels, rather
than the 1.x Panels.  No?

Greg

On Jan 5, 11:36 am, Thomas Broyer t.bro...@gmail.com wrote:
 On Wednesday, January 5, 2011 4:14:47 PM UTC+1, Greg Dougherty wrote:

  Hi Jeff,

  You've got things backwards for my concerns.  I want to fire off a
  Submit event when the user hits Enter, I don't want to do something
  special once the user has clicked on the button.

 I think Jeff got it right, but explained it badly: if you wrap you fields
 inside a form, then when hitting Enter, the *browser* will submit the form.
 So all you have to do is to listen to the SubmitEvent on the FormPanel (and
 not the ClickEvent on the SubmitButton, which I believe not all browsers do
 dispatch in this case).

 To do that, I need to figure out how to catch a KeyPress Event when

  the last thing selected was a FileUpload (which doesn't have a
  KeyPress Event Handler).  Any ideas?

 I just saw that Widget#addDomHandler is public, so this should work (for any
 widget provided the browser actually dispatches the event):
    fileUpload.addDomHandler(enterbutton, KeyPressevent.getType());

 Now, let's go off topic:

 As for using UIBinder:

  1: I'm building the UI, and I'm a programmer. I LIKE building the UI
  programmatically.
  2: When I looked at it (July - August 2010), the documentation was
  opaque, and singularly lacking in useful examples.  So avoiding
  UIBuilder is faster than using it.

 Probably because you:
  - don't use HTMLPanel enough (reminder: it helps for performance)
  - and haven't spent the necessary hour (half-hour?) to learn how to use it
 and understand how much time it can actually save you (mainly by making your
 UI code much more readable as to which widget contains what).

  3: I build WebApps where the height and width of the UI is dependent
  upon the data returned in response to user actions.  Which means that
  the *LayoutPanels are a HUGE step backward in functionality for me.
  To the extent that when I have to choose between upgrading GWT, and
  losing the non-Layout Panels, I'll probably stop upgrading GWT.  (Yes,
  I know that the change was a deliberate choice.  I just think it was a
  horrible mistake.)

 I don't see the relationship between layout panels and UiBinder.

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



Re: CellView and vertical scroll bar

2011-01-05 Thread Owen Powell
The incubator is here:

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

~Owen

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



Re: FormPanel.SubmitEvent cancel not working

2011-01-05 Thread Greg Dougherty
GWT 2.0 or 2.1?

On Jan 5, 2:41 pm, Jim Douglas jdou...@basis.com wrote:
 I'm doing pretty much exactly that with my FileUpload widget, and it
 works ok here:

     /*
      * User clicked the Chooser OK button.
      */
     public void onSubmit(SubmitEvent p_event)
     {
         if (m_progressUpdateTimer != null)
         {
             // Upload is already in progress
             p_event.cancel();
             return;
         }
          several more validation checks 
     }

 On Jan 5, 12:27 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote:

  I have the following code in a GWT 2.1.0 project:

  public void onSubmit (FormPanel.SubmitEvent event)
  {
          // This event is fired just before the form is submitted. We can 
  take
          // this opportunity to perform validation.
          String filename = gDataFileUploader.getFilename ();
          if (filename.length () == 0)
          {
                  showAlert (Need a valid File Name in before we can upload a
  file!);
                  event.cancel ();
          }

  }

  Unfortunately, although it is called, the cancel () call doesn't stop
  the submit from happening, and doesn't stop onSubmitComplete from
  being called.  Is this a GWT bug or a browser bug?  (FireFox 3.6)

  TIA,

  Greg

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



Re: GWT Simple Pager Help

2011-01-05 Thread Y2i
call cellTable.setRowCount(AllMessages.size(), true);

On Jan 5, 12:54 pm, Noor baken...@gmail.com wrote:
 Hi, I am stuck with the gwt cell pager which I want to attach to a
 cell table. I am setting like this:

 List ForumMessage AllMessages=populated from an rpc;
 CellTable cellTable = new CellTable  ForumMessage();
 simplePager = new SimplePager();
 cellTable.addColumn(ColumnM);
 cellTable.setRowData(0,AllMessages);
 simplePager.setDisplay(cellTable);
 simplePager.setPageSize(3);

 ColumnM has correctly been defined

 But when the cell table is being displayed, the first three rows are
 correctly shown but when i press next, no rows are shown and the cell
 table is as if loading. Now from that page, if I press back, again the
 page is as if loading.

 Now, another problem is that I can continually press next and the
 numbers of pages keeps on adding even if there are only 8 rows

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



[gwt-contrib] Enterprise CellTable Questionnaire

2011-01-05 Thread John LaBanca
https://spreadsheets.google.com/viewform?formkey=dEx3b0M4cHdSbG5Pd29KSjZxVnFnU3c6MQGWT
Contributors -

In the next couple of months, the GWT team will create add enterprise
features to the CellTable and will eventually replace PagingScrollTable
(from GWT incubator). If you currently use PagingScrollTable or CellTable,
or think you might use CellTable in the future, please fill out this
questionnaire so we can learn which features are most important.
https://spreadsheets.google.com/viewform?formkey=dEx3b0M4cHdSbG5Pd29KSjZxVnFnU3c6MQ

To the extent possible, we will add features one at a time, so good
prioritization will mean that the most important features are implemented
first.  If anything is missing from the survey, please respond to this email
with suggestions.

Thanks,
John LaBanca
jlaba...@google.com

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



Re: FormPanel.SubmitEvent cancel not working

2011-01-05 Thread Jim Douglas
Hmm, I would hope it wouldn't matter, but 2.0.3; we need to coordinate
several developers and build systems to move to 2.1.1, and everyone's
been away for Christmas  New Years.


On Jan 5, 1:15 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 GWT 2.0 or 2.1?

 On Jan 5, 2:41 pm, Jim Douglas jdou...@basis.com wrote:



  I'm doing pretty much exactly that with my FileUpload widget, and it
  works ok here:

      /*
       * User clicked the Chooser OK button.
       */
      public void onSubmit(SubmitEvent p_event)
      {
          if (m_progressUpdateTimer != null)
          {
              // Upload is already in progress
              p_event.cancel();
              return;
          }
           several more validation checks 
      }

  On Jan 5, 12:27 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote:

   I have the following code in a GWT 2.1.0 project:

   public void onSubmit (FormPanel.SubmitEvent event)
   {
           // This event is fired just before the form is submitted. We can 
   take
           // this opportunity to perform validation.
           String filename = gDataFileUploader.getFilename ();
           if (filename.length () == 0)
           {
                   showAlert (Need a valid File Name in before we can 
   upload a
   file!);
                   event.cancel ();
           }

   }

   Unfortunately, although it is called, the cancel () call doesn't stop
   the submit from happening, and doesn't stop onSubmitComplete from
   being called.  Is this a GWT bug or a browser bug?  (FireFox 3.6)

   TIA,

   Greg

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



Re: Problem with @sprite

2011-01-05 Thread Thomas Broyer
A CssResource is always created in the *context* of a ClientBundle, and the 
ImageResource-s are looked up in that ClientBundle. In the snippet you 
posted, there's no (apparent, as you didn't include the ClientBundle where 
InsurancePaymentStyle is used) relationship between LVMResources and 
InsurancePaymentStyle

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



Re: Problem with @sprite

2011-01-05 Thread Jeff Schwartz
Hi Thomas,

Thank you for your explanation. I am at a loss understanding how I create
the CssResource in the context of the ClientBundle. Can you elaborate on
that and maybe provide an example? Just to update the information I
previously provided, I've added

@Source(lmv/com/client/members/insurance.css)
Insurance insurance();

to LMVResources which extends ClientBundle.

Also, I didn't realize that in Eclipse if I select a resource file, right
click and use the menu option Google | Add to ClientBundle... that it
actually creates the interface extending ClientBundle for you. So, I've
modified the code in my Composite to use the generated file whose name is
Insurance.java and now it looks like

interface InsurancePaymentStyle extends Insurance{}

instead of what I had previously which was

interface InsurancePaymentStyle extends CssResource {
String deleteAnchor();
}

With the above changes in place I get this error

16:19:43.624 [ERROR] [lmv] Unable to find ImageResource method
value(btndelete16x12) in
lmv.com.client.members.InsurancePaymentDisplayView_InsurancePaymentDisplayViewUiBinderImpl_GenBundle
: Could not find no-arg method named btndelete16x12 in type
lmv.com.client.members.InsurancePaymentDisplayView_InsurancePaymentDisplayViewUiBinderImpl_GenBundle

Also, could it be that because the ClientBundle class, the resource and the
Composite reside in different packages is what is causing the problem?

Thanks in advance.

Jeff

On Wed, Jan 5, 2011 at 5:12 PM, Thomas Broyer t.bro...@gmail.com wrote:

 A CssResource is always created in the *context* of a ClientBundle, and
 the ImageResource-s are looked up in that ClientBundle. In the snippet you
 posted, there's no (apparent, as you didn't include the ClientBundle where
 InsurancePaymentStyle is used) relationship between LVMResources and
 InsurancePaymentStyle

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




-- 
*Jeff Schwartz*

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



Re: [gwt-contrib] Enterprise CellTable Questionnaire

2011-01-05 Thread Gal Dolber
so happy to hear that!

On Wed, Jan 5, 2011 at 6:55 PM, John LaBanca jlaba...@google.com wrote:


 https://spreadsheets.google.com/viewform?formkey=dEx3b0M4cHdSbG5Pd29KSjZxVnFnU3c6MQGWT
 Contributors -

 In the next couple of months, the GWT team will create add enterprise
 features to the CellTable and will eventually replace PagingScrollTable
 (from GWT incubator). If you currently use PagingScrollTable or CellTable,
 or think you might use CellTable in the future, please fill out this
 questionnaire so we can learn which features are most important.
 https://spreadsheets.google.com/viewform?formkey=dEx3b0M4cHdSbG5Pd29KSjZxVnFnU3c6MQ

 To the extent possible, we will add features one at a time, so good
 prioritization will mean that the most important features are implemented
 first.  If anything is missing from the survey, please respond to this email
 with suggestions.

 Thanks,
 John LaBanca
 jlaba...@google.com

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




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

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

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



Re: Enterprise CellTable Questionnaire

2011-01-05 Thread Y2i
John,

I'm curious about sorting implementation.

When a cell table is attached to an async data provider, range data is
requested from the provider in batches.  More likely the sorting will
occur in the database and only a small range will be returned to the
table.

In addition, a single data provider can serve multiple displays.

How are you going to support sorting in these situations?

Thanks in advance.
Yuri

On Jan 5, 3:50 pm, Gal Dolber gal.dol...@gmail.com wrote:
 so happy to hear that!









 On Wed, Jan 5, 2011 at 6:55 PM, John LaBanca jlaba...@google.com wrote:

 https://spreadsheets.google.com/viewform?formkey=dEx3b0M4cHdSbG5Pd29K...
  Contributors -

  In the next couple of months, the GWT team will create add enterprise
  features to the CellTable and will eventually replace PagingScrollTable
  (from GWT incubator). If you currently use PagingScrollTable or CellTable,
  or think you might use CellTable in the future, please fill out this
  questionnaire so we can learn which features are most important.
 https://spreadsheets.google.com/viewform?formkey=dEx3b0M4cHdSbG5Pd29K...

  To the extent possible, we will add features one at a time, so good
  prioritization will mean that the most important features are implemented
  first.  If anything is missing from the survey, please respond to this email
  with suggestions.

  Thanks,
  John LaBanca
  jlaba...@google.com

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

 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

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

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



Re: GWT with JPA located in a separate project

2011-01-05 Thread lineman78
Even if you did include source it probably would fail to compile due to the 
JPA annotations.  This is why the EntityProxy API was created in 2.1. I 
suggest that you use EntityProxy and RequestFactory in order to get your 
stuff to work.

http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html

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



Special thanks for Value Proxies

2011-01-05 Thread Y2i
Just can't thank GWT Team enough for the value proxies!

It is now possible to run complex JPQL queries involving aggregate
functions, construct n...@entity projections and path them through to
the client.  The projections can even refer to @Entities and it all
magically works!

Just one more thing for completeness - support for polymorphism, and
it will be perfect...
http://code.google.com/p/google-web-toolkit/issues/detail?id=5367

Thank you, thank you, thank you!

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



Re: Enterprise CellTable Questionnaire

2011-01-05 Thread zixzigma
in my opinion, one essential feature that is missing from the
questionnaire,
is Live Filtering on columns. I believe for enterprise grids, this
is very important.

expenses sample in trunk does this, but its a custom implementation,
not part of the CellTable API.

filtering can be local/remote:async.
maybe starting with a local live filter for earlier releases.

Thank you for considering adding features for enterprise class
celltable.

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



Unable to run GWT application in production mode - GWT Module may need to be (re) compiled

2011-01-05 Thread Shubhang Mani
I'm trying to deploy a GWT application to an external server in order to run 
it in production mode. When I try to access the application, I get an alert 
dialog with the message:
GWT Module 'name-of-module' may need to be (re)compiled

After dismissing the alert, I can see all the static content from my host 
page but nothing else. Server logs do not have any errors.

The application runs fine in development mode.

Some relevant details:
GWT 2.1.0
Eclipse 3.6 Helios
Apache Maven 3.0
Project was generated using the GWT maven plugin 2.1.0-1
Trying to deploy to apache tomcat 7.0.4

I've verified that GWT compile is being executed when I run maven.
I've also checked the war that was generated (using mvn package). It has the 
appropriate pieces (host page, static content, *nocache.js, *cache*,  server 
side service layer code).

I realize that this may not be a core web toolkit related issue but I hope 
someone can help or point me to the right forum in order to solve this 
issue.

Thanks
Shubhang

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



Re: PopupPanel space on parent Panel

2011-01-05 Thread Néstor Boscán
Thanks Thomas.

On Wed, Jan 5, 2011 at 1:23 PM, Thomas Broyer t.bro...@gmail.com wrote:

 PopupPanel-s are not meant to be add()ed to other widgets.

 When you call center() or show() on them, they actually add them to the
 RootPanel.get() (which as a side effect removes them from where they
 previously were, which explains why the blank disappears)

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


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



Re: CellView and vertical scroll bar

2011-01-05 Thread Néstor Boscán
Thanks Owen.

On Wed, Jan 5, 2011 at 4:34 PM, Owen Powell opow...@gmail.com wrote:

 The incubator is here:

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

 ~Owen

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


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



Re: How to delete the time spinner on CellView

2011-01-05 Thread Néstor Boscán
Yes that worked. Thanks a lot.

On Wed, Jan 5, 2011 at 12:32 PM, Ben Imp benlee...@gmail.com wrote:

 I believe if you additionally set the row count to 0, it will stop the
 spinner.

 -Ben

 On Jan 5, 10:56 am, Néstor Boscán nesto...@gmail.com wrote:
  Hi
 
  When I add a new CellView Widget without any rows I get a time spinner
  inside the CellView. Is there a way to eliminate the time spinner.
 
  Regards,
 
  Néstor Boscán

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



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



Re: Unable to run GWT application in production mode - GWT Module may need to be (re) compiled

2011-01-05 Thread Y2i
May be this post will help:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/8fc260a7865076e9/

It was solved by adding webAppDirectory to the GWT maven plugin.

On Jan 5, 8:50 pm, Shubhang Mani shubhang.m...@gmail.com wrote:
 I'm trying to deploy a GWT application to an external server in order to run
 it in production mode. When I try to access the application, I get an alert
 dialog with the message:
 GWT Module 'name-of-module' may need to be (re)compiled

 After dismissing the alert, I can see all the static content from my host
 page but nothing else. Server logs do not have any errors.

 The application runs fine in development mode.

 Some relevant details:
 GWT 2.1.0
 Eclipse 3.6 Helios
 Apache Maven 3.0
 Project was generated using the GWT maven plugin 2.1.0-1
 Trying to deploy to apache tomcat 7.0.4

 I've verified that GWT compile is being executed when I run maven.
 I've also checked the war that was generated (using mvn package). It has the
 appropriate pieces (host page, static content, *nocache.js, *cache*,  server
 side service layer code).

 I realize that this may not be a core web toolkit related issue but I hope
 someone can help or point me to the right forum in order to solve this
 issue.

 Thanks
 Shubhang

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



Re: PopupPanel space on parent Panel

2011-01-05 Thread Nirmal Patel
Hi Thomas,
This way the popup panel always appears at the application level (its glass 
panel covers the entire browser window).

Can we localize the popup to specific regions?? For example, only cover the 
Center of a DockLayoutPanel (leaving the top and left/right regions 
clickable and uncovered by glass)

In the past; I have done this by writing up own custom popups and adding 
them absolutely to parent panels. Is there a GWT inbuilt way?

Regards,
Nirmal

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



Re: Unable to run GWT application in production mode - GWT Module may need to be (re) compiled

2011-01-05 Thread Shubhang Mani
Wow ! Thanks. The link was incredibly useful as it contained a working POM 
which I could use as a reference.

I did have the webappDirectory specified but it was pointing (by default) to 
${project.build.directory}/${project.build.finalName}. 

I changed this to src/main/webapp instead and it is being referenced in the 
maven-war-plugin as well as the gwt-maven-plugin

I also added module information to the gwt-maven-plugin config section and 
the webXml detail to the maven-war-plugin config section.

I am able to successfully deploy and bring up the webapp on tomcat now !

-Shubhang

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



please Help me GWT Listbox

2011-01-05 Thread vijay gohel
i want aout put like

Group1
 Item1-1
 Item1-2
 Item1-3
 Item1-4
Group2
 Item2-1
 Item2-2
 Item2-3
 Item2-4
etc

for that  in HTML

there is option in Select Tag and Option in Select Tag is
optiongroup

i want that's output in get list box

thanks

Vijay


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



Remove gwt.codesvr=127.0.0.1:9997 from http://127.0.0.1:8888/MyApp.html?gwt.codesvr=127.0.0.1:9997

2011-01-05 Thread Noor
I am tired of trying to remove gwt.codesvr=127.0.0.1:9997 this from my
url, I have tried my such as removing argument from run and debug
configuration or compiling the application but with no success

Can someone help me

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



[gwt-contrib] Re: Update checkstyle rules to allow for copyright years up to 2029 (issue1253801)

2011-01-05 Thread pdr

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

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


[gwt-contrib] Re: Adds a unit test for the TypeOracleMediator that feeds byte code instead of source. (issue1254801)

2011-01-05 Thread zundel

This change adds a unit test for the TypeOracleMediator that feeds byte
code instead of source.

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

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


  1   2   >