Using the Eclipse plugin to install a previous version of GWT

2010-07-26 Thread Greg Dougherty
Hi, I'm going to be using a tool in GWT that is built against GWT 1.7. Is it possible to use the Eclipse plugin to install a previous version of GWT? I uncheckd Show only the latest version, but stil the only thing I could see was GWT 2.0.4. TIA, Greg -- You received this message because

What changed in 2.0?

2010-07-26 Thread Greg Dougherty
It's really interesting looking at the GWT Docs. I can go here: http://code.google.com/webtoolkit/previousdocs.html and see the release notes for previous versions. I can go here: http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html and find out what's coming with 2.1 Where do I

Re: What changed in 2.0?

2010-07-26 Thread Greg Dougherty
://en.wikipedia.org/wiki/Google_Web_Toolkit#GWT_2.0 On Jul 26, 9:45 am, Greg Dougherty dougherty.greg...@mayo.edu wrote: It's really interesting looking at the GWT Docs.  I can go here: http://code.google.com/webtoolkit/previousdocs.html and see the release notes for previous versions.  I can

GWT 2.0 and SeaMonkey

2010-07-26 Thread Greg Dougherty
(For those who don't know, SeaMonkey is pretty much the direct inheritor of Mozilla.) I prefer SeaMonkey to FireFox. Is there a GWT Developer Plugin for SeaMonkey? (Yes, I know this only matters for 2.0+. But eventually I will be using it.) TIA, GReg -- You received this message because

Re: IE Bookmarks IFrame src issue.

2010-07-27 Thread Greg Dougherty
Can they do that ONLY for IE 6 8? Because it doesn't look like they want to stop caching, they want the bookmark to stop going to the old iFrame source. Greg On Jul 27, 11:04 am, Jeff Chimene jchim...@gmail.com wrote: On 07/27/2010 08:53 AM, Sony wrote: A truly idiotic bunch at Microsoft

Reading a local file

2010-08-11 Thread Greg Dougherty
My users want my app to be able to read data from a local file. So far as I can tell, the only way to do this is to have a FileUpload Widget in a form, send the contents of the file to the server, and then get the contents from the server (i.e. send the form with a unique ID attached, then make

Re: GWT security

2010-08-11 Thread Greg Dougherty
Hi Peter. Not to be rude, but who cares? Who cares if the user can see a screen that says Client Data, when the user can't actually download any of that client data? IOW, what's the point? If your sever is properly secured, then users who aren't allowed to see the client data won't be sent it,

Re: GWT security

2010-08-12 Thread Greg Dougherty
else) is a possibility where we could cooperate, what would you say? On 11. Aug, 23:31 h., Greg Dougherty dougherty.greg...@mayo.edu wrote: Hi Peter. Not to be rude, but who cares? Who cares if the user can see a screen that says Client Data, when the user can't actually download any

Re: GWT security

2010-08-12 Thread Greg Dougherty
. Do you thing this is not enought? Peter On 11. Aug, 23:31 h., Greg Dougherty dougherty.greg...@mayo.edu wrote: Hi Peter. Not to be rude, but who cares? Who cares if the user can see a screen that says Client Data, when the user can't actually download any

How do I set the border around elements in a DockLayoutPanel?

2010-08-12 Thread Greg Dougherty
The topic pretty much says it all. I know how to do this for a DockPanel. How do I do it for a DockLayoutPanel? Yes, I know, use uibinder. That doesn't work when you're building things grammatically, which is what I'm doing. BTW, why don't the Showcase application use ANY *LayoutPanels? I

Re: How do I set the border around elements in a DockLayoutPanel?

2010-08-12 Thread Greg Dougherty
: How did you do it with a DockPanel? Wouldn't you want to style the elements you've placed in the panel? So it shouldn't matter if it's a DockPanel or a DockLayoutPanel. On Aug 12, 12:09 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: The topic pretty much says it all.  I know how

Re: How do I set the border around elements in a DockLayoutPanel?

2010-08-13 Thread Greg Dougherty
Thanks, but it's not the panel I want to decorate, it's the elements within the panel (i.e. I want to put a box around Center). On Aug 13, 6:08 am, cokol eplisc...@googlemail.com wrote: wrap you panel into DecoratorPanel then you can use 9box round corners On 12 Aug., 20:50, Greg Dougherty

Re: GWT security

2010-08-16 Thread Greg Dougherty
handling, synchronize sessionID between client-server in a completly transparent way, ACL data level security, server side security based on spring security for securing the serivces and complex integration of this stuff into one consistent solution. Peter On 12. Aug, 17:41 h., Greg Dougherty

setFocus scrolling my app, even though everything fits on screen

2010-08-16 Thread Greg Dougherty
So I'm building the UI for my app. Everything is inside of a VerticalPanel, and fits nicely onto my screen. I decided to call setFocus at the end of onModuleLoad, to set the focus where it belongs (the first text field of the document). Unfortunately, doing that causes the screen to scroll up

Re: How do I set the border around elements in a DockLayoutPanel?

2010-08-18 Thread Greg Dougherty
I humbly disagree. You haven't added a feature to your product until people can actually USE it. On something like this, that means adding example code and samples showing how it should be used. One hopes that the people building the features have such code, as test cases if nothing else. I

GWT 2.0.4 app does not work with Java JDK 1.5

2010-08-20 Thread Greg Dougherty
I have a GWT app I was building using a 1.6 JDK. However, the place where I want to deploy it only has Tomcat 5, running jdk 1.5. So I changed my compiler settings to 1.5 compliance, and a 1.5 jdk, and rebuild. After I got rid of all my @Override annotations, it compiled. If I zip up my war

App does not display in IE 7

2010-08-20 Thread Greg Dougherty
I have a web app that displays just fine in the Mozilla browsers, but does not display at all in IE 7 (totally blank screen). I'm deploying this through Tomcat (see previous message about Development Mode not working with JDK 1.5), so I can't usefully follow it in the debugger (the issues are on

Re: Why not put FooService and FooServiceAsync in one file?

2010-08-20 Thread Greg Dougherty
Java requires that public classes and public interfaces be in their own files, with a file name that matches the class / interface name. So unless you want to put your client and server code in the same package, your idea's a non-starter. And, IIUC, you CAN'T put the client and server code in

Re: Why not put FooService and FooServiceAsync in one file?

2010-08-23 Thread Greg Dougherty
Stefan, You can put the *,shared package in both the client and the server. You can't put any java code that won't compile under GWT in both. And you should have no desire to put all your server code on the client, or all your client code also on the server. No? IOW, there's a REASON why you

Re: App does not display in IE 7

2010-08-23 Thread Greg Dougherty
On Aug 20, 7:21 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: I have a web app that displays just fine in the Mozilla browsers, but does not display at all in IE 7 (totally blank screen).  I'm deploying this through Tomcat (see previous message about Development Mode not working

Re: App does not display in IE 7

2010-08-23 Thread Greg Dougherty
would be very interested if you have found a solution or cause of it. My assumption is, that the ie7 rendering problems are related to my own CSS - are you also using custom CSS styles for the standard components? Kind regards, Lukasz On Aug 20, 7:21 pm, Greg Dougherty dougherty.greg

Re: Why not put FooService and FooServiceAsync in one file?

2010-08-23 Thread Greg Dougherty
Rodrigo, I started with 1.3 or 1.4, and both those files went into their own package (.client.rpc). That appears to no longer be the dominant paradigm, so perhaps having them separate is no longer necessary. However, a long-standing issue I've had with GWT is its inability to handling having

Re: GWT RPC with Tomcat Load balancing

2010-08-23 Thread Greg Dougherty
Take a look at RemoteServiceServlet. All RPC calls are packaged up as HTML POST calls. As long as those post calls get forwarded correctly, and the responses get returned correctly, IMHO you should be find. And if they're not getting forwarded correctly, a lot more than just GWT RPC is going to

Re: App does not display in IE 7

2010-08-23 Thread Greg Dougherty
components? Kind regards, Lukasz On Aug 20, 7:21 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: I have a web app that displays just fine in the Mozilla browsers, but does not display at all in IE 7 (totally blank screen).  I'm deploying this through Tomcat (see previous message about

Re: Getting intelligent behavior out of DateBox

2010-09-08 Thread Greg Dougherty
Thanks. I went about it differently. I now have a TextBox and a CustomButton. Clicking on the CustomButton brings up a DatePicker in a popup. And I give my formatters first crack at the Date. :-) private static final String kShortestFormat = MM/dd; private static final

Re: Getting intelligent behavior out of DateBox

2010-09-08 Thread Greg Dougherty
try { if (dateText.length() 0) { date = getDateTimeFormat().parseStrict(dateText); } } catch (Exception e) {

Re: Problem when server is ofline

2010-09-08 Thread Greg Dougherty
What OS are you running? Does it completely turn off TCP/IP when you don't have a net connection? IOW, set up Tomcat on your system, disconnect it from the net, adn see if you can still access the Tomcat web page via a web browser on your computer. If you can't see anything on Tomcat, the

Correct way to use code modules

2010-09-17 Thread Greg Dougherty
I have objects from an external package that I need to use both client side and server side. I added the package to my eclipse project, which took care of the server side, and I created a Module.gwt.xml file to export those classes to the client side. No problem. Except for one thing: Every

Re: Correct way to use code modules

2010-09-17 Thread Greg Dougherty
That would be the answer. Yes, it was (I had no idea that Property existed), no, it isn't any longer, and now GWT doesn't try to compile it as such. Thank you! Greg On Sep 17, 3:11 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: On Fri, Sep 17, 2010 at 10:01 PM, Greg Dougherty

Correctly implementing history

2010-09-22 Thread Greg Dougherty
So I swiped the code at http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html, and have somewhat implemented History. HTe problem is I haven't completely implemented it. If my app is running, going forward and backward in the history works just grand. I can even paste

Re: Correctly implementing history

2010-09-23 Thread Greg Dougherty
might simply be able to call History.fireCurrentHistoryState() right after you add your listener. On Sep 22, 4:47 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: So I swiped the code athttp://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHist..., and have somewhat

Re: Correctly implementing history

2010-09-23 Thread Greg Dougherty
.  There are multiple ways you can fix this, you can look at the value of the history token in the constructors, or you might simply be able to call History.fireCurrentHistoryState() right after you add your listener. On Sep 22, 4:47 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: So I swiped the code

Save Page As

2010-09-28 Thread Greg Dougherty
Is there any way to make a GWT App so that when the User selects Save Page As (or their browser's equivalent), it actually saves something useful? Such as, oh, the contents of the page? TIA, Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit

Re: API design rant!

2010-09-28 Thread Greg Dougherty
Well, look at the JavaDoc for extended by com.google.gwt.dom.client.Style.Unit (AKA Style.Unit). I don't think it's possible to write worse Documentation than that, other than perhaps writing something that is actively and consistently wrong. My general experience with reading the GWT JavaDoc is

Re: Save Page As

2010-10-01 Thread Greg Dougherty
that is of any use. However if you want to get a snapshot of the DOM as HTML there are plenty of plugins for FireFox - google for ViewPageSource etc. On Sep 29, 12:15 am, Greg Dougherty dougherty.greg...@mayo.edu wrote: Is there any way to make aGWTApp so that when the User selects Save

Building a .jar with IsSerializable

2010-10-04 Thread Greg Dougherty
So here's the problem, and the solution I came up with. My question is: Is this a valid solution, or is it going to bite my in the tush later? I'm building a jar file, using Eclipse, that includes some classes that implement IsSerializable. So when I tried to use the jar, I got a ClassNotDef

Re: Exception while dispatching incoming RPC call

2010-10-04 Thread Greg Dougherty
EntityManagerFactory emf; EntityManager em = null; try { emf = Persistence.createEntityManagerFactory(oo); em = emf.createEntityManager(); em.getTransaction().begin();

GWT HTML class won't follow file:/ links

2010-10-07 Thread Greg Dougherty
I am trying to make some file links (i.e. a href=file:///.The file/a).using the HTML Class (I've previously made working http: links using it, so I'm pretty sure I know how to use it correctly). The links show up on my page, but clicks do not work on them. Neither does right-clicking and

Re: GWT HTML class won't follow file:/ links

2010-10-08 Thread Greg Dougherty
you're using straight HTML and not using the Anchor class? On Oct 7, 9:05 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: I am trying to make somefilelinks (i.e. a href=file:///.The file/a).using the HTML Class (I've previously made working http: links using it, so I'm pretty sure I

Why doesn't my post show up in the Topic Summary view?

2010-10-08 Thread Greg Dougherty
I posted a message last night about following a file href (GWT HTML class won't follow file:/ links ). At 8:57 this morning (Central time) I got a reply. I discovered that reply by searching for file and sorting by date, because I could not find my post ANYWHERE in the Discussions list. Further

Re: GWT HTML class won't follow file:/ links

2010-10-08 Thread Greg Dougherty
using the absolute path of the file as a debugging measure). Is there a reason you're using straight HTML and not using the Anchor class? On Oct 7, 9:05 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: I am trying to make some file links (i.e. a href=file:///.The file/a).using

Re: GWT HTML class won't follow file:/ links

2010-10-11 Thread Greg Dougherty
Thanks. That would explain it. On Oct 8, 11:58 am, Thomas Broyer t.bro...@gmail.com wrote: On 8 oct, 15:57, jhulford jhulf...@gmail.com wrote: There's nothing that should be preventing it from working Well, except the browser itself! AFAIK, Firefox at least won't let you open file: links

Re: Good GWT development tools

2010-10-11 Thread Greg Dougherty
Reduce the number of compiled locales by adding this line to your *.gwt.xml file set-property name=locale value=en/ So now only english locale is compiled [ERROR] The value en was not previously defined. [ERROR] Line 23: Unexpected exception while processing element 'set- property' So, what

Creating an image file so I can send it to the client

2010-10-22 Thread Greg Dougherty
Hi all, So here's my challenge: I have code that gives me a java.awt.Image that is NOT a BufferedImage. The only Java code I can find for saving an image requires you to have a BufferedImage. I found some code that should make a BufferedImage from an Image: int type =

Re: Creating an image file so I can send it to the client

2010-10-25 Thread Greg Dougherty
/java.awt.image/Image2Buf.html More examples:http://www.google.com/search?sourceid=chromeie=UTF-8q=Image+to+Buff...  http://www.exampledepot.com/egs/java.awt.image/Image2Buf.html Thanks, John LaBanca jlaba...@google.com On Fri, Oct 22, 2010 at 5:20 PM, Greg Dougherty dougherty.greg

How do I send program generated Images to my users?

2010-10-25 Thread Greg Dougherty
Hi all, My servlet is creating images that I need to send to the client. My first thought was save the image to a file, then send the path to that image to the client, which can then call new Image (GWT.getModuleBaseURL () + imagePath); This worked just fine in the development environment. But

Re: How do I send program generated Images to my users?

2010-10-26 Thread Greg Dougherty
that helps - Daniel Kurka 2010/10/25 Greg Dougherty dougherty.greg...@mayo.edu Hi all, My servlet is creating images that I need to send to the client.  My first thought was save the image to a file, then send the path to that image to the client, which can then call new Image

Re: How do I send program generated Images to my users?

2010-10-26 Thread Greg Dougherty
Broyer t.bro...@gmail.com wrote: On 26 oct, 16:18, Greg Dougherty dougherty.greg...@mayo.edu wrote: - Generate the image with a servlet on the fly (return the appropriate mime type and the image) or (if the images are small) Great idea.  HOW DO I DO THAT? Sorry for the shouting

How do I check out the Samples into Eclipse

2010-11-03 Thread Greg Dougherty
How do I check out the samples in trunk into Eclipse in a useful manner? Note: Adding 10 different projects to my Eclipse workspace isn't useful. Neither is checking outa single project full of uncompiled code. The point of having it in Eclipse is that Eclipse has great tools for dealing with

Re: GWT RPC serialization between 2 servlets

2010-11-17 Thread Greg Dougherty
Use Java Serialization to send the the objects from one servlet to another. Make sure you have the Objects implement Serializable. :-) You can override doGet without damaging GWT RPC. One servlet does that, the other (the one driving the exchange) makes an HTTP call to it. They both use

Re: CellTable, Column, and ActionCell

2010-11-17 Thread Greg Dougherty
Hi John, I'm assuming that actually ActionCellRowObject actionCell = new ActionCellRowObject(Click for more info, handler); Right? Thanks! Greg On Nov 17, 7:14 am, John LaBanca jlaba...@google.com wrote: You can just add an ActionCell to an IdentityColumn.  The following should work: //

Re: GWT RPC serialization between 2 servlets

2010-11-17 Thread Greg Dougherty
/ XML (http) which you can easily get started with, of course SOAPis the king^^ but I guess would be kinda overkill here. On 17 Nov., 14:55, Greg Dougherty dougherty.greg...@mayo.edu wrote: Use Java Serialization to send the the objects from one servlet to another. Make sure you have

Re: GWT RPC serialization between 2 servlets

2010-11-17 Thread Greg Dougherty
for big payload On 17 Nov., 17:01, Greg Dougherty dougherty.greg...@mayo.edu wrote: AbstractRemoteServiceServlet (which all GWT Servlets inherit from) declares public final void doPost.  So regardless of what you SHOULD do, if you've got a GWT Servlet that you want to ALSO handle HTTP

Re: Explicit compiler check for empty constructor in implementations of IsSerializable

2010-11-17 Thread Greg Dougherty
Even if you do, is it buried among 100+ lines of errors? I'm a +1 on this. You haven't correctly implemented IsSerializable until you've added a 0 argument constructor. That makes the failure to do that the kind of bug that the compiler SHOULD be catching. And it's a REALLY frustrating bug to

FormPanel Example

2010-11-29 Thread Greg Dougherty
I have this vague memory that there was sample code showing how to use a FormPanel, with both client and server side code. Does such an example exist? I can't find it on SVN. Thanks, Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group.

Re: GWT + MySQL

2010-11-30 Thread Greg Dougherty
I've used MySQL in just about every GWT app I've written, so it's quite possible to use it. Including during development running Jetty. 1: All JDBC calls MUST come from the server. The client code can NOT see any jar files, ever. 2: You can NOT reference com.mysql.jdbc.Driver, or any other

Re: TabLayoutPanel does not listen to width

2010-11-30 Thread Greg Dougherty
So, how do we use the Closure widgets w/ a GWT app. Because if I wanted to be writing JavaScript, I wouldn't be using GWT. No? Greg On Nov 30, 6:25 am, Matt H matt2...@gmail.com wrote: Yes, the UI widgets are all terrible. Google Closure has much better widgets. On Nov 30, 10:10 am, Baloe

Re: GWTTestCase: Unable to access objects returned from a successful RPC call

2010-11-30 Thread Greg Dougherty
Stupid question time: Does it work outside of GWTTestCase? Also, have you tried wrapping option 1 with try ... catch (Throwable oops) { oops.stringStackTrace (); }? Greg On Nov 29, 5:08 pm, jtran jtweez...@gmail.com wrote: I've got a project I'm working on where I make an RPC call to the

FlowPanel vs. HorizontalPanel

2010-11-30 Thread Greg Dougherty
I have created a FlowPanel that contains 4 ListBoxes and a button. I wanted to put some space between the items, so I added empty HorizontalPanels (with padding: 3px;) as spacers in between each item. FlowPanel responded by placing each item (including each of the HorizontalPanels), on its own

Re: FlowPanel vs. HorizontalPanel

2010-11-30 Thread Greg Dougherty
on what fits. Since they're above a table that the user can grow or shrink, I don't want to manage this by hand. Greg On Nov 30, 12:06 pm, Brian Reilly br...@ireilly.com wrote: On Tue, Nov 30, 2010 at 12:41 PM, Greg Dougherty dougherty.greg...@mayo.edu wrote: I have created a FlowPanel

Re: FlowPanel vs. HorizontalPanel

2010-11-30 Thread Greg Dougherty
of binding them together involve Block Elements? (Or is there a way of sticking two Widgets together (other than a custom widget), that doesn't use a block element?) Greg On Nov 30, 12:06 pm, Brian Reilly br...@ireilly.com wrote: On Tue, Nov 30, 2010 at 12:41 PM, Greg Dougherty dougherty.greg

Re: Client File IO

2010-11-30 Thread Greg Dougherty
Are you sure the images will overload the server? Why? Here's a thought: create an image cache. You can do it on either the client or the server. The client will forget the images if you click away from it, and the images will only be viewable inside your client app, but other than that it

Changing ActionCell Title

2010-12-01 Thread Greg Dougherty
Is it possible to change teh title of an ActionCell based on the contents of the row it's in? It looks like the answer is no, but I figured I'd check here before I gave up. Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

Re: Changing ActionCell Title

2010-12-01 Thread Greg Dougherty
in the Button, but otherwise it looks just like ActionCell. Thanks, John LaBanca jlaba...@google.com On Wed, Dec 1, 2010 at 12:30 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Is it possible to change teh title of an ActionCell based on the contents of the row it's in? It looks like

Re: Changing ActionCell Title

2010-12-01 Thread Greg Dougherty
, John LaBanca jlaba...@google.com On Wed, Dec 1, 2010 at 2:29 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: What, then, do I have to implement so that the button will fire an action when it's clicked.  Does this require me to extend ButtonCell? Thanks, Greg On Dec 1, 12:48 pm

Re: Changing ActionCell Title

2010-12-01 Thread Greg Dougherty
, 2010 at 3:33 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Hi John, I'm pretty sure I'm not following you.  Here's my understanding: I currently have an ActionCell in an IdentityColumn.  You're saying I can replace the ActionCell with a ButtonCell. I need to have a class implement

Re: Changing ActionCell Title

2010-12-02 Thread Greg Dougherty
FieldUpdaterRowObject, String() {   public void update(int index, RowObject object, String value) {     Window.alert(You clicked + object.toString());   }}); myCellTable.addColumn(column); Thanks, John LaBanca jlaba...@google.com On Wed, Dec 1, 2010 at 3:33 PM, Greg Dougherty dougherty.greg

GWT JavaDoc failures KeyPress v. KeyDown

2010-12-03 Thread Greg Dougherty
This is my first entry in what will be a continuing series of pointing out GWT JavaDocs achieving Microsoftian levels of saying everything while explaining nothing. Why? Because if you're going to actually write documentation, it shouldn't be totally worthless. KeyPressHandler: Handler interface

Re: GWT JavaDoc failures KeyPress v. KeyDown

2010-12-03 Thread Greg Dougherty
the developer from much of it it cannot do so 100%. Jeff On Fri, Dec 3, 2010 at 1:47 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: This is my first entry in what will be a continuing series of pointing out GWT JavaDocs achieving Microsoftian levels of saying everything while

Getting a user Enter key

2010-12-03 Thread Greg Dougherty
Ok, the tutorial says that to get a user pressing an enter key in a TextBox you should write something like the following: http://code.google.com/webtoolkit/doc/latest/tutorial/manageevents.html public void onKeyPress (KeyPressEvent event) { charkeyPress =

Re: GWT JavaDoc failures KeyPress v. KeyDown

2010-12-03 Thread Greg Dougherty
the issue tracker. GWT is open source, so I hope you will contribute Javadocs as you find things that can be improved. /dmc On Fri, Dec 3, 2010 at 2:50 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Jeff, Thank you.  That' lets me know which one I want to use. If I knew

Re: Getting a user Enter key

2010-12-03 Thread Greg Dougherty
may have changed in 2.1, so it could be that the documentation is wrong, but only as of fairly recently. -Brian On Fri, Dec 3, 2010 at 3:21 PM, Greg Dougherty dougherty.greg...@mayo.edu wrote: Ok, the tutorial says that to get a user pressing an enter key in a TextBox you should

Re: GWT JavaDoc failures KeyPress v. KeyDown

2010-12-07 Thread Greg Dougherty
hit them first because they are the standards body. Jeff On Fri, Dec 3, 2010 at 2:50 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Jeff, Thank you.  That' lets me know which one I want to use. If I knew JavaScript and DOM, or, for that matter, even WANTED to know JavaScript

Re: GWT JavaDoc failures KeyPress v. KeyDown

2010-12-07 Thread Greg Dougherty
you go read the W3C docs (or come here and beg for information). The further point is that this is a bad assumption on their part, and that it would be good if they stopped writing docs that way. Greg On Dec 4, 6:11 am, Thomas Broyer t.bro...@gmail.com wrote: On 3 déc, 20:50, Greg Dougherty

Re: GWT JavaDoc failures KeyPress v. KeyDown

2010-12-07 Thread Greg Dougherty
day soon you will have what can only be described as an epiphany, that moment when it all gels and at that moment you will have a big smile on your face - a Kodak moment! Jeff On Tue, Dec 7, 2010 at 12:08 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: If I knew JavaScript and DOM

IE7 and ALIGN_JUSTIFY

2010-12-08 Thread Greg Dougherty
I'm working on a new app using GWT 2.1. If I create a HorizontalPanel, and set the horizontal alignment to ALIGN_JUSTIFY, then when I try to add anything to that panel, I get the following exception. This only happens in IE, and I have to actually try to added something to the panel (creating

Re: GWT + MySQL

2010-12-09 Thread Greg Dougherty
Here's the important part of your bug: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'com.mysql.jdbc.exceptions.jdbc4.CommunicationsException' was not included in the set of types which can be serialized by this SerializationPolicy or

Sort on Column in CellTable

2010-12-09 Thread Greg Dougherty
My users would like to be able to sort my CellTable by clicking on a Column title. Is there an existing GWT widget for putting a downward or upward pointing triangle in a CellTable Column title? For that matter, what do I have to do to get a mouse click IN a Column title? Thanks, Greg -- You

Re: Sort on Column in CellTable

2010-12-09 Thread Greg Dougherty
Thomas, Thanks. How do I get the Expenses sample to build in Eclipse? Are there directions somewhere? On Dec 9, 11:23 am, Thomas Broyer t.bro...@gmail.com wrote: Have a look at the Expenses sample, all the code you're looking for is available there. -- You received this message because you

Re: Sort on Column in CellTable

2010-12-10 Thread Greg Dougherty
Unfortunately, the project does not build. :-) On Dec 9, 2:53 pm, Thomas Broyer t.bro...@gmail.com wrote: I believe there's a README file that explains that, though I only looked at the code in the online SVN browser, and the online sample. -- You received this message because you are

Expenses sample does not build

2010-12-10 Thread Greg Dougherty
I downloaded releases/2.1/samples from SVN, and tried to build the Expenses project (importing an existing Maven project). I get ~80 compiler errors. For example: import com.google.gwt.cell.client.Cell.Context; The compiler can't find this. Given that it's not in the JavaDoc, I'm not surprised

Re: FlowPanel vs. HorizontalPanel

2010-12-10 Thread Greg Dougherty
block elements and float:left;, but that comes with its own complications (and you also don't get nice text alignment across blocks. -Brian On Tue, Nov 30, 2010 at 2:10 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Inserting block-level elements (div, p, etc.) cause exactly what you're

Re: Sort on Column in CellTable

2010-12-10 Thread Greg Dougherty
for the current ordering and a second click on the column header can reverse the ordering of the sort. Once the sort is done you then just refresh the DataProvider and the table will refresh to reflect the changes to the list. It is quite simple. Jeff On Thu, Dec 9, 2010 at 11:17 AM, Greg Dougherty

Re: Sort on Column in CellTable

2010-12-10 Thread Greg Dougherty
the changes to the list. It is quite simple. Jeff On Thu, Dec 9, 2010 at 11:17 AM, Greg Dougherty dougherty.greg...@mayo.edu wrote: My users would like to be able to sort my CellTable by clicking on a Column title.  Is there an existing GWT widget for putting a downward or upward pointing

Re: Expenses sample does not build

2010-12-10 Thread Greg Dougherty
, Greg Dougherty dougherty.greg...@mayo.edu wrote: I downloaded releases/2.1/samples from SVN, and tried to build the Expenses project (importing an existing Maven project).  I get ~80 compiler errors. For example: import com.google.gwt.cell.client.Cell.Context; The compiler can't find

Re: Sort on Column in CellTable

2010-12-13 Thread Greg Dougherty
and thick client where I have all the breathing room I need to perform data manipulation. Jeff On Fri, Dec 10, 2010 at 12:20 PM, Greg Dougherty dougherty.greg...@mayo.edu wrote: Hi Jeff, Thanks.  Of course I'm need this for an AsyncDataProvider (the data's on the server

Re: Sort on Column in CellTable

2010-12-13 Thread Greg Dougherty
is on page 1, then save the results, and fire off a request for page 3.) Reasonable? Workable? Thanks, Greg On Dec 13, 11:10 am, Jeff Schwartz jefftschwa...@gmail.com wrote: On Mon, Dec 13, 2010 at 11:08 AM, Greg Dougherty dougherty.greg...@mayo.edu wrote: Hi Jeff, As I'm dealing

Re: HTML Link Cell

2010-12-22 Thread Greg Dougherty
Hi John, Why SafeHtmlCell rather than AbstractCell? I did it in AbstractCell, and it works, but I'm certainly happy to hear how it could work better. Thanks for the pointer to SafeHtmlTemplates. I'll have to look in to them. Greg On Dec 22, 8:17 am, John LaBanca jlaba...@google.com wrote: I

EnterButton

2010-12-23 Thread Greg Dougherty
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

Where do KeyPress Events go?

2010-12-23 Thread Greg Dougherty
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

EnterButton

2011-01-03 Thread Greg Dougherty
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

Where do KeyPress Events go?

2011-01-03 Thread Greg Dougherty
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

Re: How to get a widget from another panel

2011-01-03 Thread Greg Dougherty
Well, assuming both panels are in the same web application, save the widget in a global variable, and access that when you want information. Greg On Jan 3, 8:49 am, Néstor Boscán nesto...@gmail.com wrote: Hi Thanks for the quick reply. I don't want to add the widget I want to get the value

Re: Where do KeyPress Events go?

2011-01-04 Thread Greg Dougherty
. 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

Re: EnterButton

2011-01-04 Thread Greg Dougherty
So why hasn't this kind of Widget made it into the GWT code base? Greg On Jan 3, 5:53 pm, A. Stevko andy.ste...@gmail.com wrote: I've used this pattern throughout my code base with no problem. On Mon, Jan 3, 2011 at 6:57 AM, Greg Dougherty dougherty.greg...@mayo.eduwrote: I have

Re: EnterButton

2011-01-04 Thread Greg Dougherty
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

Re: Where do KeyPress Events go?

2011-01-05 Thread Greg Dougherty
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

Re: EnterButton

2011-01-05 Thread Greg Dougherty
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

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

Re: Where do KeyPress Events go?

2011-01-05 Thread Greg Dougherty
? 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

  1   2   >