Google Wave UI Components

2010-05-26 Thread brett.wooldridge
Some of the Google Wave UI components are very nice: table headers, scroll view scrollbars, search field, panes with drop-shadow effect, etc. Are these UI components available somewhere for general GWT use? Brett -- You received this message because you are subscribed to the Google Groups "Goo

Re: rpc vs RequestBuilder

2009-09-15 Thread brett.wooldridge
Not high data rates, but large arrays. He said he sends different length arrays containing a pojo that itself contains 10 strings of 10 chars average. In the error case, that is an array with 100,000 elements, which are themselves objects with 10 strings of 10 chars each. That's a 10meg "object

Re: Cookies and client state. Suggestions?

2009-08-19 Thread brett.wooldridge
On Aug 7, 11:52 pm, Jeff Chimene wrote: > Well, I'll take a stab at this so that this email doesn't disappear > into the void. I think these are good design questions. > > On Tue, Aug 4, 2009 at 10:55 PM, > > brett.wooldridge wrote: > > > What we would like t

Re: Installer for Deploying GWT Applications

2009-08-04 Thread brett.wooldridge
After looking at his site, it appears they (want to) sell a shrink- wrap server that the customer does indeed install (like a JBoss enterprise server-based product or some such. If you're looking for something that customers can "test drive", I suggest looking at something like VMWare Player and

Re: data interchange speed

2009-08-04 Thread brett.wooldridge
I'm pretty sure JSON is going to be faster because of the unmarshalling speed on the client. There is nothing to prevent mixing the models a bit. XML sent to the server (probably most efficient for Java to demarshal using stax), and JSON sent in response to the client. On the server, custom unm

Cookies and client state. Suggestions?

2009-08-04 Thread brett.wooldridge
I have a question about cookies and maintaining client-side state, and looking for suggestions about how to solve (what I perceive to be) an issue (for us). We allow the user to create a "sticky" login. You know, the one where they tick the checkbox that says something like "Stay logged in?" Thi

Re: oophm with the lastest eclipse plugin on Mac

2009-08-04 Thread brett.wooldridge
Yes, I was having this problem and posted the answer to my own question in the above mentioned link: "To answer my own question, and for other users having the same issue, this worked: I created a standard Java Application launch configuration, using com.google.gwt.dev.HostedMode as the Main clas

Re: inject hack value when call RPC like setScore(..)

2009-08-02 Thread brett.wooldridge
Probably if you obscure the score internally as octal, you don't need anything more (encryption, server-based score, etc.). If your game is a gambling game and money is at stake, you would need to redesign it with tighter security. If it's a "just for fun" game, simple obsfucation of the score a

Re: Quick fix for broken hosted mode with Snow Leopard 10A380 on x86_64

2009-08-02 Thread brett.wooldridge
Just as clarification, I use Java 6, 64-bit Eclipse Galileo, and OOPHM on OS X 10.5.7. On Aug 3, 3:27 pm, "brett.wooldridge" wrote: > Jesus Christ, you're considering hacking the Java6 binaries?  Before I > got anywhere near that I would go with the new "Out Of Proces

Re: Quick fix for broken hosted mode with Snow Leopard 10A380 on x86_64

2009-08-02 Thread brett.wooldridge
Jesus Christ, you're considering hacking the Java6 binaries? Before I got anywhere near that I would go with the new "Out Of Process Hosted Mode". See http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM That's a million times simpler (and less sketchy) than hacking your Java6 in OS X.

Re: Changing from Gwt 1.5.3 to 1.7

2009-08-02 Thread brett.wooldridge
I wouldn't suggest it this late in the game. Event handling changed between 1.5.3 and 1.7, not to mention a bunch of layout "fixes" that you've probably already worked around in various ways. If your release time is "very close" this kind of change can be hazardous to your delivery schedule. If

Re: Error message on 64 bit system

2009-08-02 Thread brett.wooldridge
Your only option right now (for 64-bit) is to use the new "Out Of Process Hosted Mode". I won't even go into setting this up, for me it was a pain (on Mac OS X), but you can read more about it here: http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM Note, it is not for the faint of hear

Re: inject hack value when call RPC like setScore(..)

2009-08-02 Thread brett.wooldridge
Using HTTPS only helps to prevent the forged packet attack. It does nothing to prevent a user from using firebug to change values on the client. With respect to Google and gmail or adsense, they are probably not in the same position as you. You are relying entirely on the client to report a val

Re: inject hack value when call RPC like setScore(..)

2009-08-02 Thread brett.wooldridge
The answer is, of course. The code is on the client, and even though obscured, is JavaScript. Using something like firebug or even editing the JavaScript in the browser cache the logic of the client can be altered. Like any effort/reward system, it's a question of how much it is worth to the us

Re: save form data in database

2009-07-28 Thread brett.wooldridge
in the run configurations, but by compiling the source I get > errors for "C3P0Registry". > > On Jul 28, 2:09 pm, "brett.wooldridge" > wrote: > > > > > I run MySQL with a C3P0 connection pool in front of it.  This is what > > I did [almost] verba

Re: Not able to use 2 different sessions of different users

2009-07-28 Thread brett.wooldridge
Option f) don't use session cookies (or servlet sessions). 1) Login to the server via RPC call. 2) Successful login RPC returns a session ID, put the session ID in a Java static or JS global variable. 3) Pass the "session ID" in all RPC calls where it matters. 4) Profit. Your server should be as

Re: Calling listbox.clear() is very slow in IE for large list boxes

2009-07-28 Thread brett.wooldridge
Given that the ListBox control is the native list box AFAIK, this would be a browser "bug"/performance issue. It is also discussed here: http://social.msdn.microsoft.com/Forums/en-US/jscript/thread/6fbd21c7-fb5e-4090-b9e2-0d73f76d4891 Basically, the clear is just doing "select.options.length =

Re: Long running Timer RPC issue

2009-07-28 Thread brett.wooldridge
I suspect you've touched upon a subtle bug involving the translation of Java anonymous inner-classes and JavaScript garbage collection. There is a subtle co-dependency between the anonymous Timer and the anonymous AsyncCallback inner-classes that may be preventing the garbage collector from collec

Re: save form data in database

2009-07-28 Thread brett.wooldridge
I run MySQL with a C3P0 connection pool in front of it. This is what I did [almost] verbatim. This is assuming you're running Jetty and servlets/RPC. 1. In your war/WEB-INF/lib put the c3p0 jar. Get C3P0 from here http://sourceforge.net/projects/c3p0. 2. In your war/WEB-INF/lib put the mysql-

Re: how do send the user name and password to the server?

2009-07-28 Thread brett.wooldridge
a. For a regular, non-financial application, I would use https to send the authentication data. If you are using PHP on the server-side, I would use JSON to perform the transfer. See the GWT JSON documentation. b. Whenever possible avoid page loads. That's one of the main features of AJAX. Ju

Re: Long running Timer RPC issue

2009-07-26 Thread brett.wooldridge
Pls post some pseudo-code of your timer and RPC call. -Brett On Jul 26, 10:39 pm, kingdomain wrote: > I have an app that involves long run times on a server (scientific > app).  I ported to GWT specifically to give better user feedback on > long jobs (e.g. progress bar, email results option, e

Re: gwt hijacked javamail?

2009-07-23 Thread brett.wooldridge
Penguins are black and white? wtf -brett On Jul 23, 7:17 am, jimbolaya wrote: > I want to send smtp from server side?  wtf > -jim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post t

Re: rendering problem

2009-07-23 Thread brett.wooldridge
Sounds like a mountain of data. Any way to page it, pre-crunch it, or cache it? I've seen developers send 10,000 data points to a client that are rendered into a 640px wide chart. "How about sending 640 data points?", was my rhetorical question. Without specifics of your app it's hard to tell.

Re: detecting images that fail to load using image.addLoadHandler

2009-07-16 Thread brett.wooldridge
has style overflow:hidden, and then upon receiving the load event move the image into the element where I want it. On Jul 16, 5:49 pm, "brett.wooldridge" wrote: > I don't think you need to force a unique URL.  Receiving an image from > the cache can be problematic on some bro

Re: detecting images that fail to load using image.addLoadHandler

2009-07-16 Thread brett.wooldridge
er, with you re-iterating that this was the solution, I tried > again, forced a unique URL to avoid the image being loaded from cache, > and success. > > On Jul 15, 12:04 am, "brett.wooldridge" > wrote: > > > > > Almost exactly the same w

Re: detecting images that fail to load using image.addLoadHandler

2009-07-15 Thread brett.wooldridge
Almost exactly the same way. If you are only interested in failure: public void foo() { image.addErrorHandler(new ErrorHander() { public void onError(ErrorEvent event) { ... } }); } Or if you are interested in both success and failure, your class can implement both in

Re: GWT 1.7.0

2009-07-14 Thread brett.wooldridge
Read the release notes. Very few issues were fixed in 1.7.0, just a few extremely critical issues. On Jul 15, 3:34 pm, Paulo Coutinho wrote: > I have compiled my app with new version, but the button size has the > same problem, on IE is bigger than other browsers. > > 2009/7/15 sideview1 : > >

Re: declarative way to build/layout UI

2009-07-14 Thread brett.wooldridge
ermingle layout with code in the same file, certainly UIBinder isn't the tool, but I would argue that's because doing so isn't best practice. On Jul 15, 12:27 pm, "brett.wooldridge" wrote: > If that's what you're after, I would suggest looking at Kiyaa.  It >

Re: declarative way to build/layout UI

2009-07-14 Thread brett.wooldridge
alization/laying out > GWT widgets? > > Thanks. > > On Jul 13, 8:50 am, "brett.wooldridge" > wrote: > > > > > I'm waiting for UIBinder as well, but this project seems full featured > > and was used on a large project: > > >http://code.

Re: How to get GWT site indexed?

2009-07-14 Thread brett.wooldridge
t; On 13 Juli, 02:55, "brett.wooldridge" > wrote: > > > > > will get your page indexed.  However, it has nothing (or > > little) to do with rankings.  The number of inbound links (to your > > page) and the rankings of those pages will have more effect on your >

Re: GWT Learner : Design issue question

2009-07-14 Thread brett.wooldridge
>From my reading, a straight port of your JSP logic to GWT wouldn't seem buy you very much. But certainly you can build a dynamic UI in GWT. One of the points of AJAX is to avoid page reloads, so here are some things you might consider: 1) For your wizard, keep all the state between steps on th

Re: How to center widgets within a panel

2009-07-14 Thread brett.wooldridge
Odds are that your VerticalPanel is not occupying the full height of the west component. In the future I recommend using Firebug in Firefox to, for example, examine the VerticalPanel. Try setting the height of the VerticalPanel to "100%" -- so that it vertically fills the west component. At tha

Re: UIBinder

2009-07-13 Thread brett.wooldridge
Trite answer. It would be a good answer if the UIBinder were actually in the incubator trunk, but it isn't. Again, does anybody know where the UIBinder code can be found? Brett On Jul 13, 10:03 pm, Paul Robinson wrote: > http://www.lmgtfy.com/?q=uibinder&l=1 > > > >

Re: Compile GWT into Flex/ActionScript?

2009-07-13 Thread brett.wooldridge
While certainly possible, I don't see the point. GWT was created in large part to: 1) Relieve developers of having to code for cross-browser differences 2) Provide a familiar OO development paradigm (Java) 3) Provide for the web the kind of rich IDE and debugging enjoyed by other languages (Java

Re: Save large file from GWT application to S3 storage

2009-07-13 Thread brett.wooldridge
Obviously, yes, it is possible. The Amazon S3 service has a REST API: http://docs.amazonwebservices.com/AmazonS3/2006-03-01/index.html?RESTAPI.html You can generate POST requests using the RequestBuilder class. On Jul 13, 7:58 am, Maksim Ustinov wrote: > I'm building application with GWT 1.6

Re: GWT and mysql

2009-07-13 Thread brett.wooldridge
Not to be a jerk, but you really have to do a little more homework than that. Have you downloaded GWT and created the hello world sample? Doing what you want is only a couple of hours from here. This isn't rocket science. If you are family with Java UI programming (Swing, AWT, or SWT), and serv

Re: declarative way to build/layout UI

2009-07-13 Thread brett.wooldridge
I'm waiting for UIBinder as well, but this project seems full featured and was used on a large project: http://code.google.com/p/kiyaa/ If the Google guys can't surface UIBinder soon, I may bite the bullet and use Kiyaa now and convert later. The markup looks fairly similar between them. Brett

UIBinder

2009-07-13 Thread brett.wooldridge
Where can I find the UIBinder code? Surely it must exist, nascent as it may be, and can put checked into the trunk. Now that I know it exist, it pains me to write another line of code creating a text field and inserting it into a panel! For the good of humanity, please check it in (or point me

Re: How to get GWT site indexed?

2009-07-12 Thread brett.wooldridge
will get your page indexed. However, it has nothing (or little) to do with rankings. The number of inbound links (to your page) and the rankings of those pages will have more effect on your ranking. On Jul 10, 1:40 am, Axel Kittenberger wrote: > Provide some content in a noscript tag. > > On

Re: GWT + system call

2009-07-12 Thread brett.wooldridge
I've never heard of, or to my recollection, never encountered this restriction. Even if some servlet containers do restrict it, I have a hard time believing that it is not configurable. On Jul 12, 8:25 am, Petein wrote: > if I deploy my gwt web app to jetty i wont be able to perform the > syst

Re: Problem getting rid of scrollbars.....

2009-07-12 Thread brett.wooldridge
Create an outer-div and set the CSS property 'overflow: hidden'. The will clip the outer content, rather than showing scrollbars. however, as noted by Ian, if your content is too big for the outer frame it's not going to look right -- you need to figure out your inner-panels. The overflow:hidden

Re: How to layer images

2009-07-07 Thread brett.wooldridge
no click is detected. I tried using a transparent > image with a high z index so it would always be in front, but no luck. > > Is there a better way to manage this than moving the click handler > between the main image and the check mark depending ov visibility? > > thanks ag

Re: GWT and IE7, content will not refresh every time a page is loaded

2009-07-07 Thread brett.wooldridge
I don't have the same problem, but can ask some questions and offer a suggestion. I assume you have a DIV in the page, and that your entry point code injects the GWT view into that DIV, correct? Where is your

Re: How to layer images

2009-07-07 Thread brett.wooldridge
Oh, and don't forget to set the z-index of the checkmark to be greater than the image it's over. Again, using either CSS (z-index) or programatically: checkImg.getElement().getStyle().setProperty("zIndex", "1000"); On Jul 8, 12:30 am, "brett.wooldridg

Re: How to layer images

2009-07-07 Thread brett.wooldridge
Put the images into an AbsolutePanel, set their positions accordingly using either CSS (top/left) or programatically (setWidgetPosition()). On Jul 7, 12:59 pm, zorro2b wrote: > Is there a way to layer images with GWT? For example I am displaying > an image and want to display a check mark over i

Re: How to remove the Horizontal scroll bar

2009-07-07 Thread brett.wooldridge
overflow-x: auto !important; doesn't work? You might be running into this problem: http://remysharp.com/2008/01/21/fixing-ie-overflow-problem/ -Brett On Jul 7, 2:21 pm, jk wrote: > Hi, > > In IE i am getting an unwanted horizontal scroll bar in the scroll > panel . If i use "overflow-x: hidde

Re: Question/Problem Very Large Data Object Maps over RPC

2009-07-07 Thread brett.wooldridge
I tend to agree. However, since it sounded like joshb already had a mountain of code, I was looking for the closest exit. :-) If you (joshb) do in fact have more code than you want to refactor ... MyObjectX flying all over the place ... you might consider the "bag of properties" pattern (or ant

Re: client statefull server stateless

2009-07-07 Thread brett.wooldridge
"state in > > the client" + cookies or RPC tokens will do. Also, the GWT compiler/ > > optimizer/minimizer makes it damn hard to even have a chance of > > understanding the generated JS, let alone hack it. > > > That said, if your site is public facing, you should take som

Re: client statefull server stateless

2009-07-06 Thread brett.wooldridge
n is not no make another facebook  :) is just a small erp. > > > that initially will run into a VPN but i would like to expose as a web > > app in the near future. > > > I uderstood the advandatges of keeping the server > > stateless ,security,failover since se

Re: client statefull server stateless

2009-07-06 Thread brett.wooldridge
Nice. And as noted by Dean, this is a financial/banking application. You have to go the extra mile and then some in that case. That said, most of the "rest of us" (including the likes of gmail, ebay, facebook) aren't overly concerned with user's messing with their cookies. -Brett On Jul 7, 8:3

Re: Question/Problem Very Large Data Object Maps over RPC

2009-07-06 Thread brett.wooldridge
 Each object inherits properties from the > main object, so I don't think an interface would do. > > On Jul 6, 12:20 am, "brett.wooldridge" > wrote: > > > > > Are these classes truly sub-classes, or are you using MyObject as a > > generic "Object&q

Re: Eclipse plugin for Eclipse 3.5 (Galileo)

2009-07-06 Thread brett.wooldridge
Ya, some of us have been waiting a long time to go to Java 6 on Mac OS X. Java 6 is only available (on Mac) as a 64-bit binary, so the old Carbon-based Eclipse wouldn't run on it (SWT native bindings and whotnot). Now, I'm running Galileo AND Ganymede (for GWT). But I'm all itchy to ditch Ganym

Re: client statefull server stateless

2009-07-06 Thread brett.wooldridge
The server can still know who the user is, if the user passes a security token back to the server. This token can either be in a cookie, or passed programatically though the RPC call. Typically it is generated when the user logs in. This is the same as when you set your gmail account to "stay l

Re: events of "none visible" widgets ?

2009-07-06 Thread brett.wooldridge
Right. Ed, Ian's point was my point. If it panel is not visible, there is way for the browser to generate events for it. Even mouse move events, etc. GWT does not put listeners aside, but they don't cause extra overhead and occupy a negligible amount of memory. Basically, you don't have to wor

Re: events of "none visible" widgets ?

2009-07-06 Thread brett.wooldridge
First, once removed, your listeners will not be fired. Second, I would suggesting looking at DeckPanel for your right-hand side panel. >From what it sounds like, if the user selects menu item "A" on the left, then a panel is displayed on the right. If they select "B", the "A" panel goes away, an

Re: changing the background of TreeItem seems to have to effect

2009-07-06 Thread brett.wooldridge
Doesn't look like it, but I would break-out Firebug (or Safari4) and inspect the DOM and computed style. Developing GWT without Firebug or Safari4 is like developing Java with Notepad. -Brett On Jul 5, 8:58 pm, Norman Maurer wrote: > Hi all, > > I'm trying to customize the color of the TreeIt

Re: show .txt in frame, without download

2009-07-06 Thread brett.wooldridge
Yes, possible. You need to set the content type header in the response from the JSP. In the case of PDF/XLS it is probably "application/octet-stream" or something similar. You need to set the header to "text/plain" or "text/html" depending. See here: http://www.w3.org/Protocols/rfc2616/rfc2616

Re: Add an image dinamically to the host page

2009-07-06 Thread brett.wooldridge
Setting the InnerHTML is a mistake. Try this: Image img = new Image(url); img.getElement().getStyle().setProperty("align", "right"); RootPanel.get().add(img); Or if you want to insert it into a specific "div" in the host page, replace the RootPanel call with: DOM.appendChild(DOM.getElementById

Re: Runtime.exec()

2009-07-06 Thread brett.wooldridge
You can't do it, dude. There is no way out of the JavaScript sandbox unless you write a native plugin that the user agrees to install. If that were not the case, what would prevent a website from (for example) using JavaScript to execute delete commands on all of your files? -Brett On Jul 5, 9

Re: client statefull server stateless

2009-07-06 Thread brett.wooldridge
It really depends on your application. If you have 100 simultaneous users, sure go ahead and use server sessions. If you are designing the next gmail, ebay, or facebook, then server-side conversional state is a HUGE scalability mistake. Ebay, for example, is [almost] completely stateless (on th

Re: Runtime.exec()

2009-07-05 Thread brett.wooldridge
You can't execute commands on the client-side. -Brett On Jul 5, 12:08 am, "giovaneoce...@hotmail.com" wrote: > Hi, i have a problem in my project. > I have to execute a dos command, a so i try the java code > Runtime.getRuntime().exec(cmd); > But when i run the application i get the following e

Re: Google plugin for Eclipse 3.5 Galileo

2009-07-05 Thread brett.wooldridge
I'll pile-on to this question. I didn't expect GWT to have a hard version dependency on Eclipse bundles. Odds are, the plugin would/will work fine with 3.5 were it allowed to install. It would have been better, IMHO, to use a version interval in the manifest rather than a specific version. For

Re: Question/Problem Very Large Data Object Maps over RPC

2009-07-05 Thread brett.wooldridge
Are these classes truly sub-classes, or are you using MyObject as a generic "Object" (in the Java Object class sense) that is serializable? Meaning, does MyObject have a bunch of state that is also shared by MyObject1..50? Or is MyObject pretty much empty with all of the state in the individual s