Servlet filter compression interfere with GWT RPC?

2009-01-25 Thread hazy1
Hello all, Assume the following: 1) A GWT application using RPC 2) A servlet filter that dynamically gzip's HttpServletResponses based on file size Given that GWT-RPC already will compress responses, will the response potentially be compressed twice? If so, will this have any impact? --~--~-

Re: Google Security and GWT

2009-01-25 Thread hazy1
Hi, I do what you describe (servlet filter). It works OK. Regards, Matt On Jan 25, 11:59 am, Miroslav Genov wrote: > Hello, > >  I have a question regarding the security that is using google with GWT. > Does anyone can give some small overview of the design or maybe an > article about the se

Re: Google Security and GWT

2009-01-25 Thread hazy1
know that it will work, but I'm not sure that this is at 100% > the right way and also a secure way.Thats why I was looking for opinions > and suggestions from other developers about this issue. > > Regards, >   Miroslav > > On Sun, 2009-01-25 at 10:00 -0800, hazy1 wrote: &

Re: How to Debug GWT code using eclipse Remote Debugging feature

2009-01-26 Thread hazy1
Once compiled into JavaScript you cannot use a Java remote debugger on your GWT project. You can debug using hosted mode, see the docs. On Jan 25, 1:30 pm, Ashish Soni wrote: > Hi All , > > I am new to GWT and have below problem , please help... > > I have a java web application which uses GWT

Re: How to log/audit/track GWT RPC calls?

2009-01-27 Thread hazy1
Here are some options: 1) Using a servlet filter mapped to the URL pattern of your GWT servlets 2) Log yourself inside of the GWT servlet Matt On Jan 27, 4:01 pm, ka1n wrote: > I'd like to track the usage of my GWT application.  Specifically, I'd > like to be able to log the service class an

Re: How to log/audit/track GWT RPC calls?

2009-01-30 Thread hazy1
let? > > - Paul > > On Jan 28, 5:34 am, doopa wrote: > > > On Jan 28, 5:34 am, hazy1 wrote: > > > > Here are some options: > > > > 1)  Using a servlet filter mapped to the URL pattern of your GWT > > > servlets > > > 2)  Log yourse

Re: No source code is available for type com.google.gwt.xml.client.XMLParser Erorr

2009-01-31 Thread hazy1
Add the xml module to your gwt.xml. On Jan 31, 11:03 am, taha wrote: > i wanna use XMLParser class in my project but i've faced below error > message > "No source code is available for type > com.google.gwt.xml.client.XMLParser; did you forget to inherit a > required module?" > > my code is > >

Re: Sequential workflow in an asynchronous GWT world

2009-03-04 Thread hazy1
Making an async call appear to be sequential is easy, just block or fade out or have a pop up progress bar until the async operation completes. On Mar 4, 10:15 pm, rlaferla wrote: > How is everyone managing to implement sequential workflows when GWT > only allows async calls? > > I have a series

Re: Dealing with session timeout and container managed security

2009-03-08 Thread hazy1
I handle this in the following way: Use a servlet filter to check the status of the authentication. Check the URL requested (this can be done using a specific kind of filter mapping and initialization parameter), if it is a GWT request then send back an encoded exception that the GWT client will

Re: GWT for Solaris

2009-04-05 Thread hazy1
Wow, you actually develop on Solaris? I think your kind will soon be extinct. You realize that GWT runs just fine on Solarisright? On Apr 5, 12:02 pm, Peter Ondruška wrote: > Hello, > > Are there any plans to provide GWT for Solaris? If not is it OK to > request this by creating bug a let

Re: GWT RPC filter

2009-04-17 Thread hazy1
Yes, use the GWT RPC classes to return failure or exception to the client in the servlet filter. On Apr 17, 4:49 am, dialloma wrote: > Hello group, > > I would like to implement the method or class that will be called > before each GWT-RPC. Is there any method in GWT to do that ? > > I was tryin

Re: GWT Upgradation error from 1.4 to 1.5/1.6

2009-04-22 Thread hazy1
Um, there is probably a new incubator release for 1.6. Might want to try it. On Apr 22, 11:40 am, Satya Bobba wrote: > Hi, > > I am upgrading my existing code from GWT 1.4 to GWT 1.6.we have used > the FastTree.java in our code. it is compiling fine with 1.4. > > I have kept the latest jar file

Re: How to compile code for UNIX

2009-05-04 Thread hazy1
Do you know what the output of the GWTCompiler is? It is Javascript and HTML. The bar to the IT industry is so low sometimes I wonder how any software works at all. Sorry to be mean, but seriously. How many seconds would it take to deploy your javascript/html/etc to a Unix web server and see f

Re: how to integrate an ejb jar within my gwt web application ?

2009-05-19 Thread hazy1
Uh, just make an .ear in the normal way and call your EJBs from your RPC servlets. Hopefully you used stateless session beans. On May 19, 6:43 am, adel2009 wrote: > Hi, > > I have an ear which contains an ejb jar file and a war file (the old > application). > I created a new war which contains

Re: Help with storing into session and accessing the session value in a Panel

2009-05-20 Thread hazy1
Send the role information to your GWT client side application. On May 20, 1:38 am, Chetan wrote: > Hi, > > I am new to GWT.We have a requirement to hide a button based on the > role of the user. > We are able to get the correct data from the database based on SOP > statements but invariably it i

Re: GWT Upgradation error from 1.4 to 1.5/1.6

2009-05-20 Thread hazy1
n i am not getting any > compilation errors in eclipse. > > But i am getting problem, while generating the script files by using > the shells(compile, shell bat files). > > On Apr 23, 12:16 am,hazy1 wrote: > > > Um, there is probably a new incubator release for 1.6.  Might wa

Re: GWT RPC Encryption

2009-05-29 Thread hazy1
If you are worried about replay attacks use a random token as part of each response/request pair. On May 29, 11:09 pm, Deep Blue wrote: > Hi, > > Thanks all for the comments / opinions. > I agreed with Daniel and Jason that we shouldn't send any extra info. > to client and protect from server si

Re: does anyone fancy testing the security on my test application?

2010-04-27 Thread hazy1
A lot of your problems are because you don't seem to have any idea how Java enterprise or web applications (of any kind) work with sessions - which is a totally separate issue from GWT. I suggest reading up on this prior to trying to use sophisticated frameworks like GWT/GAE. It is usually better

Re: FastTree in GWT 2.0.3

2010-05-30 Thread hazy1
Fast tree has always had a lot of bugs, we basically took some of the concepts from Fast Tree but wrote our own. On May 28, 5:03 am, jla wrote: > Hi, > > Are there any known problems about the GWT-Incubator fastTree and GWT > 2.0.3. I can't seem to be able to get it to work properly. Even when >

Re: GWT hostmode in weblogic

2010-06-03 Thread hazy1
Use -noserver On Jun 2, 10:29 pm, GWT_novice wrote: > i am very new to GWT. I want deploy GWT app in weblogic app server > instead of using in-built jetty. Can someone let me know how to do > that? I googled it but not much info regarding set up in weblogic. > Thanks in advance. -- You received

Fast Tree Migration Path

2009-06-17 Thread hazy1
Hi, We are using the Fast Tree widget in the 1.6 incubator with the 1.6.4 GWT release. The Fast Tree still uses the old event model so we get a lot of warnings. We have trees with potentially thousands of nodes (don't worry, it has a client side search option to find nodes), so Fast Tree is abs

Re: show/hide widget based on user's credentials

2009-06-23 Thread hazy1
This is correct, the RPC must also verify user permissions. The easiest way to do this is to keep the 'user validation/permission' code the same on the client and on the server. This can easily be accomplished in GWT since the client code is Java compiled to JavaScript. BTW, you should be doing

Re: Fast Tree Migration Path

2009-06-23 Thread hazy1
Thomas, Thank you! Matt On Jun 18, 5:37 am, Thomas Broyer wrote: > On 18 juin, 04:23,hazy1 wrote: > > > Hi, > > > We are using the Fast Tree widget in the 1.6 incubator with the 1.6.4 > > GWT release.  The Fast Tree still uses the old event model so we get a &

Re: Best pattern for client/server communication?

2009-07-03 Thread hazy1
I typically share as much as possible. If it has to be different then subclass for the server-side only stuff and don't compile the subclass on the client. On Jul 3, 2:34 am, Kwhit wrote: > I don't have a boilerplate pattern available as I'm still > experimenting myself. There seems to be two s

Re: New site created with GWT

2009-07-03 Thread hazy1
Wow, the text boxes are ginormous in FF 3.5. On Jun 30, 4:34 pm, Michael W wrote: > I am happy to announce that we launched beta version of holidayinn > website written with GWT this past weekend. > The new sitehttp://www.holidayinn.com/hotels/us/en/reservationwill > replace existing sitehttp://

Re: RootPanel.get("aaa") in Junit test throws NPE

2009-07-03 Thread hazy1
I have the same problem. No solution/work around that I know of. On Jun 26, 12:45 pm, Владимир Петрухин wrote: > I generate a simple project with maven gwt plugin: > > mvn archetype:generate \ >    -DarchetypeGroupId=org.codehaus.mojo \ >    -DarchetypeArtifactId=gwt-maven-plugin \ >    -Darche

Re: RootPanel.get("aaa") in Junit test throws NPE

2009-07-06 Thread hazy1
The work around I ended up using is to parameterize the RootPanel.get ("xxx") call with a public static member. In my JUnit test cases, I set this public static to null prior to calling onModuleLoad. On Jul 3, 10:58 pm, hazy1 wrote: > I have the same problem.  No solution/work

Re: FF 3.5 + GWT 1.5.3 + Large App (script/stack errors)

2009-07-08 Thread hazy1
Yes, we have run into browser limits but these were mostly solved by optimizing search algorithms and using lazy panel to separate rendering from the client side data model processing. On Jul 7, 11:14 am, JacoGr wrote: > Hi all, > > I'm not 100% sure how to address this, or who/where to log it,

Re: how to authenticate user in GWT RPC(include Async)

2009-07-08 Thread hazy1
GWT has easy ways to access the HttpSession through the request in the normal way: getThreadLocalRequest On Jul 8, 5:39 am, 任胜韦 wrote: > under jsp + servlet,  I usually set the username into session,then in the > servlet  writes code like: > request.getSession().getAttribute(username)  , I can e

Re: java.util.Date, TimeZone and RPC Serialization

2009-07-10 Thread hazy1
Why don't you just use Date.getTime() and Calendar.setTimeInMillis() on the serverside? On Jul 10, 3:11 pm, Monica wrote: > thakker, > > I have the same issue as well, we are live in production and found > this issue for users accessing from a different timezone , we pushed > in a temp fix local

Re: call more than one service

2009-07-10 Thread hazy1
'Better' depends on what you are trying to do. It is easy to know when a service finishes because the onSuccess/ Failure handler will execute at that time. You probably need to familiarize yourself with async programming. On Jul 10, 5:49 am, retha pasalli wrote: > Hi guys, > > I want to know i

Re: Help with storing into session and accessing the session value in a Panel

2009-07-10 Thread hazy1
ised to execute this RPC. It's not secure > to rely only on the button because it can be cracked easily. > > On May 21, 4:00 am,hazy1 wrote: > > > Send the role information to your GWT client side application. > > > On May 20, 1:38 am, Chetan wrote: > > > &g

Re: The future of GWTTestCase (and OOPHM)

2009-07-12 Thread hazy1
I hope that they make GWTTestCase work with the hosted mode and any OOPHM-enabled browser depending on configuration...lets hope we get it. On Jul 12, 10:12 pm, Daniel Wellman wrote: > With OOPHM coming in GWT 2.0, which will as I understand will no > longer require the Hosted Mode browser for r

Re: Pre-Compress GWT compiler output for web server

2009-07-22 Thread hazy1
It is dead simple to create a simple in-memory cache in your web application for gzipped data. Gzip the web page in memory the first time it is created and then use this for subsequent requests to that resource. On Jul 22, 7:06 am, martinhansen wrote: > Hello, > > I am evaluating some approache

Re: RegEx

2010-08-09 Thread hazy1
This sounds like a great idea. Matt On Aug 9, 6:10 am, Dunlord wrote: > For a Open Source project I'm working on I needed the > java.util.regex.Matcher (and so the java.util.regex.Pattern) classes, > in the client side. They are not in the GWT JRE emulation library, but > the source code for bot

Re: I'm a web developer - where do i fit in?

2009-10-22 Thread hazy1
There is no 'spreading thin'. All these languages, design patterns, idioms, hacks all start to look the same, regardless of language, after you get enough experience and then it is just picking the right tool for the job. On Oct 22, 11:05 pm, mattkime wrote: > I think its correct that I'd becom

Re: how large of your GWT compiled code? My one is 850K

2009-11-13 Thread hazy1
Our code size, uncompressed is several megabytes. We compress and cache it (both on the client and on the server - cache the zipped file in memory). It is not much trouble after doing this. On Nov 12, 6:48 pm, Edgenius wrote: > I am very excited for code split feature on Gwt 2.0 as the HTML cod

Re: Deploying GWT application on a web server

2010-11-24 Thread hazy1
Um..the RPC implementations are servlet class file in the war. Have you even tried it? On Nov 23, 11:43 am, Noor wrote: > But only the client sides files are compiled to javascript then what > happens to the server files, such as the a server file for handling > rpc services -- You received th