Re: Ship a GWT app as a desktop app with local server?

2010-12-04 Thread Brett Thomas
Servlet Container - cross platform). -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Dec 3, 10:09 pm, Brett Thomas brettptho...@gmail.com wrote: Hi all, sort of an off beat question: what's the best cross-platform library for a local web server

Ship a GWT app as a desktop app with local server?

2010-12-03 Thread Brett Thomas
Hi all, sort of an off beat question: what's the best cross-platform library for a local web server, that could effectively make a standard GWT app into a desktop app? Ideal would be super light weight, and just allow users to run the app offline, with local data. Language could be Java, C++ or

Re: Web Security General questions

2010-11-21 Thread Brett Thomas
Id love to hear answers too. I try to listen to a great podcast every week, Security Now - www.grc.com/securitynow On Nov 21, 2010 11:20 AM, Jeff Larsen larse...@gmail.com wrote: I realize that this isn't necessarily a GWT specific question, but I am curious as to what are some good resources

Re: What should I learn , Google Web Toolkit or Jquery ?

2010-11-19 Thread Brett Thomas
Well, have you programmed in java before? If not, learning GWT could be a nightmare... Are you planning to combine GWT/jQuery with a drupal/wordpress backend? If that's the case, I'd say definitely jQuery. GWT is best with single-page apps like GMail, where you switch between views without a page

Re: Building First Web App with GWT

2010-11-18 Thread Brett Thomas
Why do you want to use GWT? This sounds like more of a server-intensive app to me, so I'd start off with planning out the server with Rails or Django or something. On Wed, Nov 17, 2010 at 8:59 AM, B Woods bradleydeanwo...@gmail.com wrote: I was wondering if anyone could offer me help in finding

Re: Saving data on the server

2010-11-13 Thread Brett Thomas
The get and set functions are called getters and setters - they are part of the javabean specification: http://en.wikipedia.org/wiki/JavaBean I'm guessing the XML library you are using requires java objects to be defined as javabeans. I've seen a couple other libraries that do that too - not sure

Re: RequestBuilder POST + setHeader() = OPTIONS

2010-10-21 Thread Brett Thomas
POST values should be encoded in the request data string, not the headers. Not sure why there isn't an addPostValue method too. Here's some code I used recently: class CustomPOSTBuilder extends RequestBuilder { private String request = ; public CustomPOSTBuilder(String url,

Re: RequestBuilder POST + setHeader() = OPTIONS

2010-10-21 Thread Brett Thomas
Code I posted was for if you aren't using a GWT server On Thu, Oct 21, 2010 at 11:03 AM, marius.andreiana marius.andrei...@gmail.com wrote: On Oct 21, 4:59 pm, Márcio Menezes marcio@gmail.com wrote: Hi!. Why does everytime I try to send a POST through RequestBuilder class and if I

Re: RequestFactory + Rest/JSON?

2010-10-18 Thread Brett Thomas
Thanks for that writeup Steve, really helpful. The main reason I avoid that setup is because of the extra work it'd require to add XSRF protections. I use GWT-RPC to send data (adding an additional XSRF token), then have the servlet call the REST back end. What do you think - have you dealt with

Re: RequestFactory + Rest/JSON?

2010-10-18 Thread Brett Thomas
Looks like an awesome project, but again security is the issue for me. I don't think any truly RESTful back end can be secure with a GWT front end, because you need the back end to keep state to protect against XSRF. That's why I thought RequestFactory had so much potential, if it could handle the

Re: GWT post security on RPC

2010-10-13 Thread Brett Thomas
I would like to know if there is a way to inform GWT to encrypt RPC request automatically or if I must do it by myself. Mind explaining this a little more? Do you mean you want GWT to encrypt the object that is stored in memory, before it's sent over RPC? On Wed, Oct 13, 2010 at 9:49 AM,

Re: GWT post security on RPC

2010-10-13 Thread Brett Thomas
I don't think that'll do much. Per Stefan's Rule 1, anything the client stores can be read. If GWT encrypted stuff on the client, a hacker could find out how to envoke the de-enfrypt() method pretty quickly. Related security question: since all apps that use GWT-RPC store data in the same way,

Re: RequestFactory + Rest/JSON?

2010-10-13 Thread Brett Thomas
I looked in to this yesterday. Thomas Broyer posted a message on this group at one point that RequestFactory doesn't support a REST backend http://groups.google.com/group/google-web-toolkit/browse_thread/thread/f43a98bc56af0e91 I wonder if, since RequestFactory uses different interfaces on client

Re: GWT post security on RPC

2010-10-13 Thread Brett Thomas
I'm surprised by the responses here - seems that the overall theme is to shift blame to users: there is simply nothing you can do if the browser is compromised. Zip. Zero. It's the user's responsibility, not yours I really disagree. If you're going to deal with sensitive user data, I think

Example Multi-Tier Deployment apps

2010-10-07 Thread Brett Thomas
The GWT documentation identifies two classes of server architectures that support GWT-RPC: Simple Client-Server or Multi-Tier Deployment [1]. Pretty intuitive, but it seems to me that there aren't too many examples of the latter out there. Anybody know of any good examples of connecting GWT-RPC to

Re: API design rant!

2010-09-28 Thread Brett Thomas
Not to mention none of those three things have to do with API Design... On Tue, Sep 28, 2010 at 12:01 PM, Thomas Broyer t.bro...@gmail.com wrote: On Sep 28, 4:29 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: Well, look at the JavaDoc for extended by

How to tell when a text box loses focus

2010-09-21 Thread Brett Thomas
Hey, basic question here that I can't find the answer to. Is there any way to do something to a TextBox when it loses focus in GWT 2.0? The FocusListener interface, which has an onLostFocus method, was deprecated in favor of FocusHandler, which does not. Can't find anything comparable. Use case:

Re: Using the same object at the server and client

2010-09-17 Thread Brett Thomas
I think you need to move the stock class from the .server. package to .shared. so the client knows about it On Fri, Sep 17, 2010 at 7:09 AM, Janko janko.sla...@gmail.com wrote: PS: I get the did you forget to inherit a required module error.. -- You received this message because you are

Re: AJAX call doesn't ever seem to get made

2010-09-15 Thread Brett Thomas
the development server), do you? Thanks, Johannes On Sep 15, 1:03 pm, Brett Thomas brettptho...@gmail.com wrote: Are you sure the server method is never called? I ran in to a similar problem a couple days ago: the object could be serialized and transferred, but it couldn't be stored in app

Re: Date Range

2010-09-13 Thread Brett Thomas
Could you use two date pickers for start and end? After the start is selected, set the date of the end to the next day or something On Sep 13, 2010 6:40 AM, shahid shahidza...@gmail.com wrote: I am looking for a way to be able to select multiple dates and highlight them in the calendar/date

Re: compile output without obfuscate css

2010-09-13 Thread Brett Thomas
Yeah, you can use the -style flag to do this On Mon, Sep 13, 2010 at 9:29 PM, asianCoolz second.co...@gmail.com wrote: i know able to use @external on each css to prevent obfuscate of css. is there any compile flag i can set so that when compile all css will not be obfuscate? -- You

Re: GWT Newbie:: devmode (same origin policy) with PHP REST backend

2010-09-09 Thread Brett Thomas
Are you familiar with the -noserver option? Check it out http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s On Thu, Sep 9, 2010 at 11:00 AM, Ketan Shah ketan.s...@gmail.com wrote: Hi All, I am in process of

Re: GWT serialization

2010-08-25 Thread Brett Thomas
I just started with GWT so may be missing something - but why not just use the default GWT serialization by having the object implement IsSerializable. I've never done this, just remember reading about it. The source code from this tutorial looks helpful http://developerlife.com/tutorials/?p=131

Re: Wave Demise.........sad day for GWT

2010-08-04 Thread Brett Thomas
Even if Google stopped supporting it, don't you think that it'd be kept up by community contributors? At the current release rate, maybe that would be faster anyways. On Wed, Aug 4, 2010 at 9:14 PM, charlie charlie.f...@gmail.com wrote: I've read much lately that google is working hard to get a

Re: GWT app looks ugly in IE6

2010-07-22 Thread Brett Thomas
I think it looks classy to display a note for IE6 users that says something along the lines of unfortunately our website no longer supports IE6, click here to learn how to upgrade I think plenty of people have no idea what browser version they are using. They may know the difference between IE

Best way to style every other item?

2010-07-06 Thread Brett Thomas
Hey, I want to create a panel with a list of questions, with every other question shaded to make it more visible. Advice on the best way to do this in GWT? One option is the CSS :nth-item tag, but looks like that has incomplete support. When Drupal populates a list, it automatically adds a -even