Re: How AsyncCallback works? - RPC services

2011-02-26 Thread Sripathi Krishnan
Here's how it works : 1. Javascript code uses XmlHttpRequest API to start an AJAX call. 2. Browser intercepts XmlHttpRequest method invocation 3. Browser makes a http connection to the server in a *separate thread*. This way, the main user interface thread is not blocked. 4. When

Re: Create an Image from received bytes on client side - possible?

2011-02-15 Thread Sripathi Krishnan
Except of course in IE6 and IE7 which do not support data: URLs; but it wouldn't stop me if I were you (kill IE, kill IE, kill IE!) ;-) And IE8 only supports 32KB of base64 data for security reasons, so you do have to watch the size of the image. --Sri On 15 February 2011 15:38, Thomas

Re: Server Log

2011-01-13 Thread Sripathi Krishnan
The correct way is to override doUnexpectedFailure(Throwable e)http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/server/rpc/AbstractRemoteServiceServlet.html#doUnexpectedFailure(java.lang.Throwable)in your custom RPC Servlet. That way you won't have to change GWT's code.

Re: AdSense and GWT

2010-12-30 Thread Sripathi Krishnan
This answer on stackoverflow explains it nicely - http://stackoverflow.com/questions/435391/refresh-a-div-that-has-a-google-ad-inside-it#441425 http://stackoverflow.com/questions/435391/refresh-a-div-that-has-a-google-ad-inside-it#441425 --Sri On 31 December 2010 00:35, Deepak Singh

Re: HTML5 - GWT pre-fetching binary files.

2010-12-30 Thread Sripathi Krishnan
*re. 1 - Best way to transfer* IMHO - Base64 encoded data in either JSON or XML, with standard gzip compression applied. Optionally (but recommended), rename the files to MD5.cache.xml or something similar, and set strong http cache headers. If these files are only going to be used by a GWT

Re: Help with Custom GWT RPC

2010-12-29 Thread Sripathi Krishnan
*Also, in the discussion I saw about this, it was said that it was more secure to send the session ID in the RPC itself instead of getting it from the header/cookie. Why is this? Does GWT add something extra like a hash to make sure the RPC hasn't been tampered with?* * * *GWT doesn't do

Re: RPC Serialization Format

2010-12-21 Thread Sripathi Krishnan
Following blog posts should help you pen test your app. They aren't my posts - but I have found them useful. *a) RPC Format - * http://www.gdssecurity.com/l/b/2009/10/08/gwt-rpc-in-a-nutshell/ *b) How RPC can be fuzzed* - http://www.gdssecurity.com/l/b/2010/05/06/fuzzing-gwt-rpc-requests/ *c) How

Re: Is encryption over RCP possible?

2010-12-15 Thread Sripathi Krishnan
Explain me how Mallory can put in a fake/invalid/duplicate/whatever SSL certificate when Alice and Bob are communicating. 1. Mallory can create a fake certificate and present it to Alice; but when Alice verifies the cert with Trent (ie. Verisign) she will catch the MITM 2. Mallory can

Re: Is encryption over RCP possible?

2010-12-13 Thread Sripathi Krishnan
Hi, I am newbie to GWT and I am trying to find the best way to communicate a password from a GWT application's client-side to a server's-side service without using SSL. Of course, I am thinking about account creation and login issues. We don't want Eve and Malory to fiddle with the

Re: Is encryption over RCP possible?

2010-12-13 Thread Sripathi Krishnan
@UseTheFork We have had similar discussions on the web security mailing lists. Here is a relevant discussion threadhttp://www.webappsec.org/lists/websecurity/archive/2010-09/msg00079.html. Short summary is that SSL/TLS has its limitations, but thats the best you can do. There are ways to get

Re: How to prevent CSRF/XSRF when using RequestFactory

2010-12-01 Thread Sripathi Krishnan
RequestFactory (and GWT RPC as well) automatically adds a custom http header (X-GWT-Permutation) to each request. See DefaultRequestTransport.javahttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/requestfactory/client/DefaultRequestTransport.java#120. In

Re: How to prevent CSRF/XSRF when using RequestFactory

2010-12-01 Thread Sripathi Krishnan
for you. --Sri On 2 December 2010 00:27, PhilBeaudoin philippe.beaud...@gmail.com wrote: On Dec 1, 2:39 am, Sripathi Krishnan sripathi.krish...@gmail.com wrote: RequestFactory (and GWT RPC as well) automatically adds a custom http header (X-GWT-Permutation) to each request. See

Re: How to prevent CSRF/XSRF when using RequestFactory

2010-12-01 Thread Sripathi Krishnan
Thanks for these links and explanation, really useful! So, to summarize my understanding: - Requests issued by forms do not allow you to add custom headers - Javascript (XMLHttpRequest) cannot be used in an XSRF attack due to same-origin-policy - Therefore, if you exclude mechanisms based

Re: RequestFactory + Rest/JSON?

2010-10-18 Thread Sripathi Krishnan
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. You don't need to maintain state to prevent CSRF. If you set a custom http request header and check its value on the server side, it will prevent

Re: RequestFactory + Rest/JSON?

2010-10-18 Thread Sripathi Krishnan
2010 00:20, Sripathi Krishnan sripathi.krish...@gmail.comwrote: 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. You don't need to maintain state to prevent CSRF. If you set a custom http request

Re: GWT post security on RPC

2010-10-13 Thread Sripathi Krishnan
@JuDac, @Brent Thomas, The first step is to decide what you want to protect against. *If you want to protect against a valid, authenticated user -* - You can prevent him from calling services he is not authorized to call. - You *cannot* prevent him from reading any data that you send

Re: Vulnerabilities in GWT applications

2010-09-29 Thread Sripathi Krishnan
tried to write a java application to examine the javascript file. With your admission I'd try to port some functionality of degwt into my java application. Best regards Basdl On 28 Sep., 21:29, Sripathi Krishnan sripathi.krish...@gmail.com wrote: Lets look at the vulnerabilities one

Re: Vulnerabilities in GWT applications

2010-09-29 Thread Sripathi Krishnan
a tool for the analysis in java. I'm thankful for every information I could get. You helped me a lot. Basdl On 29 Sep., 13:04, Sripathi Krishnan sripathi.krish...@gmail.com wrote: If you have access to code, there are existing static analysis tools that will go through the java code

Re: Vulnerabilities in GWT applications

2010-09-29 Thread Sripathi Krishnan
on untrusted data as Sripathi Krishnan said. You'd probably have better luck searching all occurrences of HasHTML.setHTML and/or Element.setInnerHTML and/or Window.Location and manually checking, than trying to write a robot to find holes for you. With the knowledge of possible GWT-RPCs I can try

Re: Vulnerabilities in GWT applications

2010-09-28 Thread Sripathi Krishnan
Lets look at the vulnerabilities one at a time. *Cross Site Scripting (XSS)* With GWT, the attack vectors for XSS are restricted to the following - 1. Host html/jsp page that has reflected XSS 2. Custom Javascript libraries 3. JSNI code that you have written within GWT 4. Places

Re: Unchecked exceptions from server to client

2010-09-16 Thread Sripathi Krishnan
Does anyone have a reason for why I should not report this a bug in the issue tracker ? Its a feature, not a defect. You have to *explicitly* declare any methods you want to send to the client. Without this declaration, GWT would have had to create javascript code for every RuntimeException

Re: Unchecked exceptions from server to client

2010-09-16 Thread Sripathi Krishnan
? How does that sound ? On Thu, Sep 16, 2010 at 8:21 AM, Sripathi Krishnan sripathi.krish...@gmail.com wrote: Does anyone have a reason for why I should not report this a bug in the issue tracker ? Its a feature, not a defect. You have to explicitly declare any methods you want

Re: Runtime.exec on sever side

2010-08-27 Thread Sripathi Krishnan
Or, more likely, you have enabled Google App Engine. Disable GAE, its a preference under eclipse. GAE doesn't allow you to run system commands --Sri 2010/8/27 André Moraes andr...@gmail.com maybe the webserver that is hosting your file don't have permission to run external programs. Or the

Re: Runtime.exec on sever side

2010-08-27 Thread Sripathi Krishnan
un check the the use Google App Engine box the debugging mode wont work. Is there a way to tell the GAE that there are some commands which it can execute (via a java.policy config file or something). Thanks again for your help. Cheers Andrew On Fri, Aug 27, 2010 at 11:03 AM, Sripathi

Re: Runtime.exec on sever side

2010-08-27 Thread Sripathi Krishnan
Hey Andrew, As I mentioned earlier, you have to remove GAE jars from your classpath - they conflict with jetty. The NoSuchMethod error indicates its a classpath issue. If its easier, you could just create a new project and disable GAE from the onset, and it would work as expected. --Sri On 28

Re: Where can I put a File to be read/write from RPC Servlet ?

2010-08-01 Thread Sripathi Krishnan
Do you have google app engine enabled? It is a setting in Eclipse. Google App Engine doesn't allow you to read from the file system - and perhaps that may be your issue. --Sri 2010/7/28 Jose Luis Estrella Campaña jlecamp...@gmail.com Katharina, Hi, and... No, I have not solved it.

Re: Writing a JS library in GWT?

2010-07-27 Thread Sripathi Krishnan
That's why, when writing a function in GWT, I expect it to compile out to something that doesn't exceed the size of handwritten JS for the same purposes. Compiling Java to Javascript has some overheads which you cannot get rid off easily. These overheads are not much if you are building a

Re: remove old javascript file

2010-07-08 Thread Sripathi Krishnan
. On Jun 17, 10:02 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: No, you can't do that. But if you set appropriate cache headers, there is never a need to delete old files. --Sri On 18 June 2010 06:10, bhomass bhom...@gmail.com wrote: is there any way

Re: Running a .exe file from server side code

2010-07-02 Thread Sripathi Krishnan
Disable Google App Engine in eclipse, delete all GAE jar files from your classpath and then retry. GAE does not allow you to write or execute files. --Sri On 2 July 2010 07:58, Rajesh rajesh...@gmail.com wrote: Hi, I am trying to call a .exe file using server side code.However I keep getting

Re: Soliciting approaches for GWT and XSS-prevention

2010-06-28 Thread Sripathi Krishnan
With GWT, you are isolated to the following attack vectors - 1. Using native eval() 2. Using setInnerHTML() methods 3. Using non-gwt javascript code/thirdparty js libraries 4. XSS on the host html/jsp page Check-list to prevent XSS for GWT applications - - Don't EVER use eval()

Re: remove old javascript file

2010-06-26 Thread Sripathi Krishnan
a limited cache lifetime or to not cache at all? I do normally want the javascript files to be cached for performance purposes. On Jun 17, 10:02 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: No, you can't do that. But if you set appropriate cache headers, there is never a need

Re: NoClassDefFoundError in service after clicking a button

2010-06-25 Thread Sripathi Krishnan
Disable Google App Engine in your eclipse settings, and remove all GAE jars from your classpath. GAE doesn't allow you to open socket connections, which is exactly what hibernate is trying to do before it fails. --Sri On 26 June 2010 01:15, Ruben ruben...@gmail.com wrote: Hi, I am running

Re: UIBinder Benefits?

2010-06-24 Thread Sripathi Krishnan
Lets try to discuss the statement XML is declarative, and therefore not debuggable. UIBinder uses XML, and therefore, is not debuggable. Totally agree on the first part of the statement - XML is a mess if you put logic into it. But, here is the key point - you cannot put logic in *.ui.xml even if

Re: Socket Permissions on GAE

2010-06-23 Thread Sripathi Krishnan
You can't open sockets if you are using GAE, and there is no way around it. But GWT is completely independent of GAE. If you disable GAE, you can use sockets on your server side. --Sri On 22 June 2010 08:25, Big_Ali ali.fatol...@gmail.com wrote: Hi, I'm kinda new to GWT but I've been using

Re: Why appear OPTIONS instead of POST in my RPC calls?

2010-06-22 Thread Sripathi Krishnan
Probably because you are trying to make cross-domain requests (a different port, domain or protocol) See this post - http://groups.google.com/group/google-web-toolkit/browse_thread/thread/a080757856163097 http://groups.google.com/group/google-web-toolkit/browse_thread/thread/a080757856163097

Re: UIBinder Benefits?

2010-06-21 Thread Sripathi Krishnan
I think I disagree with you on almost all points. I have been using UIBinder much before GWT2.0 was officially released, and I think to use GWT straight-from-trunk to leverage UIBinder was the best architectural decision we made. a further language. No way to debug it Its the language of the

Re: HTTP_REFERER and GWT

2010-06-21 Thread Sripathi Krishnan
I haven't tried - but if you use the XS linker, you should get the proper referer. The XS linker doesn't use iframes, so the referer should be what you expect. --Sri On 21 June 2010 22:52, Peter peterlovi...@gmail.com wrote: When I step outside of GWT application using

Re: Exceptions after unchecking Use Google AppEngine - SOLVED

2010-06-20 Thread Sripathi Krishnan
The (probably satisfactory) approach is to remove the GAE jars from the classpath. When you uncheck GAE, it doesn't remove the jars from the classpath. There is some kind of version mismatch in one of the jetty classes (as shown by NoClassDefFoundError), so when you remove GAE jars, things work

Re: Calling RSS service in GWT from the server side

2010-06-20 Thread Sripathi Krishnan
Most likely, you have enabled Google App Engine. GAE doesn't allow you to open socket connections, which is why apache httpclient did not work. It does allow URLConnection, which is why your second approach worked. --Sri On 21 June 2010 08:15, AgitoM karel.m...@gmail.com wrote: As promised,

Re: Does a private variable in Java stays private when compiled to javascript?

2010-06-18 Thread Sripathi Krishnan
I think you missed Thomas' post. You *CAN* keep your variables private, its just you have to use a different linker. Its just a minor change to your gwt.xml, and with that your entire script will be private. -Sri On 18 June 2010 20:04, Shedokan shedok...@gmail.com wrote: So i'll guess I'll

Re: remove old javascript file

2010-06-17 Thread Sripathi Krishnan
No, you can't do that. But if you set appropriate cache headers, there is never a need to delete old files. --Sri On 18 June 2010 06:10, bhomass bhom...@gmail.com wrote: is there any way to programmatically get user browser to delete all its cached javascript files in order to push down new

Re: Build file Corresponding to GWT Compilation From Eclipse

2010-06-16 Thread Sripathi Krishnan
GWTC is a Java program that reads java files and compiles it into Javascript. The main class of this java program is com.google.gwt.dev.Compiler and you can invoke this program in various ways. ANT and Eclipse are just two possible (and most typical) ways of invoking the GWT compiler. If you want

Re: parsing library for the client side

2010-06-16 Thread Sripathi Krishnan
Hi Laurent, You actually have an interesting idea, something I have been thinking about for a different context for sometime. I haven't used ANTLR before, I prefer JAVACC. When I analysed javacc generated code, most of it was plain java that GWT could easily convert to Javascript. The only

Re: GWT-RPC via JSONP?

2010-06-16 Thread Sripathi Krishnan
No, it won't. 1. GWT RPC exclusively uses POST. JSONP uses a script tag, which is essentially a GET request. You can't make a POST request using a script tag. 2. RPC adds custom http headers to the request (X-GWT-Permutation, or something like that). You cannot setup custom http

Re: GWT-RPC via JSONP?

2010-06-16 Thread Sripathi Krishnan
would basically use JSONP as a tunnel. [The defense against CSRF would have to be done using a separate technique, but let's forget about that for a moment.] Chris On Jun 16, 9:42 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: No, it won't. 1. GWT RPC exclusively uses POST

Re: GWT-RPC via JSONP?

2010-06-16 Thread Sripathi Krishnan
together with all important frameworks I plan to use in the future (will e.g. gwt-log)... Thanks a lot for your answer! Chris On Jun 16, 10:53 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: Just did some digging in, and I *think* it is possible with some restrictions

Re: Renaming nocache.js

2010-06-10 Thread Sripathi Krishnan
Haven't tried, but should not matter. On 6/10/10, Aditya 007aditya.b...@gmail.com wrote: Hi, Does renaming nocache.js affects deployment? Cheers, Aditya -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group,

Re: GWT 2.0 and JDK 1.4

2010-06-09 Thread Sripathi Krishnan
Do we need any GWT related libraries at Runtime? Or is just Java script? GWT has a mandatory client component and an optional server component. The client component is just javascript at runtime. So, you just need to ensure developers have JDK 1.5 at compile time. At runtime, it just doesn't

Re: Google first page - Change background image - in GWT?

2010-06-09 Thread Sripathi Krishnan
Don't think it is GWT. Although the code is obfuscated, it doesn't have any of GWTs tell-tale signs. @Rudolf - anything specific in the source that makes you think it is GWT? --Sri On 9 June 2010 15:26, rudolf michael roud...@gmail.com wrote: yes, i can confirm this after looking at the

Re: calling rest service from GWT

2010-06-09 Thread Sripathi Krishnan
You have two options - 1. Use a proxy server to proxy requests from your server to the external domain. The new url will then be something like http://myserver.com/extserver/CallProgram. Then use regular RequestBuilder to make the calls. Apache's mod_proxy can do this job easily,

Re: seamless rpc during upgrades

2010-06-08 Thread Sripathi Krishnan
*IMHO, once you have deployed new code, you want to tell the users to refresh the browsers as soon as possible. Trying to get old clients working with new code can work at times; but since there is no guarantee I prefer to fail-fast.* * * *re. Old Client, New Server* I prefer to take a different

Re: How to manage with browser cache

2010-06-07 Thread Sripathi Krishnan
In addition to whatever Chris already mentioned, you should also catch IncompatibleServiceException when you make RPC calls, and ask the user to reload/refresh the page. --Sri On 7 June 2010 14:44, Chris Lercher cl_for_mail...@gmx.net wrote: Maybe it should be said, that don't cache doesn't

Re: problem with RequestBuilder

2010-06-07 Thread Sripathi Krishnan
It seems you are making a cross-domain request. In general, you cannot use RequestBuilder to make cross domain calls. --Sri On 7 June 2010 23:39, Alex monsterno...@gmail.com wrote: im getting empty string from response.getText() and response.getStatusText() give OK must the response from

Re: Unable to start App Engine

2010-06-05 Thread Sripathi Krishnan
java.lang.NoSuchMethodError: org.mortbay.thread.Timeout This usual indicates problems with the classpath. Do you have multiple versions of Jetty in your classpath by any chance? To identify duplicate classes in eclipse, hit Ctrl+Shift+T to bring the 'Open Type' dialog. Search for the class

Re: Touchscreen laptops - access touch events?

2010-06-05 Thread Sripathi Krishnan
On iPhone/iPad, mobile safari raises touch eventshttp://developer.apple.com/safari/library/documentation/appleapplications/reference/SafariJSRef/index.html#//apple_ref/doc/uid/TP40001482. You can write javascript code to listen to these events. Since these events are browser specific, GWT doesn't

Re: Getting Http Header info using FormPanel

2010-06-04 Thread Sripathi Krishnan
Is there any way I could get the http response header information here? No. Browsers don't allow access to response headers unless you are using XmlHttpRequest, or you are using a plugin such as Flash. If you want to get back some data, return it as part of the response body. --Sri On 4

Re: Hibernate problems after deploying to google appspot

2010-06-03 Thread Sripathi Krishnan
You CANNOT connect to databases when using google app engine. GAE has several restrictions, you should go their documentation and post follow up questions on the GAE user forum. --Sri On 1 June 2010 05:16, Emma Cole emma.cole.positive.vo...@gmail.com wrote: Hi all, I have an application

Re: SafeHTML open sourced?

2010-06-03 Thread Sripathi Krishnan
Thanks for the link, Thomas. I thought Safe HTML would take unsafe html, strip out any malicious code and return safe html that can be inserted into the DOM. Turns out they are just escaping HTML the way OWASP

Re: GWT-RPC vs HTTP Call - which is better??

2010-06-02 Thread Sripathi Krishnan
In general, you should use GWT RPC; it is pretty good for most use cases. You can always optimize later if needed. *Comparing various methods* GWT RPC is also a HTTP call. The only difference is in the (de)serialization mechanisms employed by each method. There really isn't a single good

Re: How modular is GWT?

2010-06-02 Thread Sripathi Krishnan
You have two options - 1. Keep all applications in the same module, and then use code-splitting to ensure only necessary code gets downloaded 2. Maintain separate modules for each app, plus a common module that every app reuses. Both have advantages and disadvantages, and you should

Re: File download from a GWT Service: java.lang.RuntimeException: Unable to report failure

2010-06-02 Thread Sripathi Krishnan
public class MyServiceImpl extends RemoteServiceServlet implements MyService The above line is wrong. It should NOT extend RemoteServiceServlet. Just extend the regular HttpServlet and it should work. --Sri On 3 June 2010 00:59, J-Pro jpro@gmail.com wrote: Hello, dear GWT gurus!

Re: SerializerBase.check(String,int) throws useless exception?

2010-06-02 Thread Sripathi Krishnan
Confirm that all classes participating in RPC - 1. implement Serializable 2. have a zero-argument constructor Most of the times I forget zero-argument constructor, and that's when I get errors similar to what you have pasted. --Sri On 31 May 2010 20:23, svincent shawn.vinc...@gmail.com

Re: Error during File IO in ServiceImpl class

2010-06-02 Thread Sripathi Krishnan
This isn't a GWT problem, its a GAE problem, and you are more likely to get an answer on that forum. But from what I know ... .. you can read files that are present in the war file, but you still cannot read it as a File. Instead, you should read it from the classpath, like this

Re: How do you connect to External RPC Service? In other words, can you expose RPC services to outside world by sharing only client/shared pieces?

2010-06-02 Thread Sripathi Krishnan
Its not a GWT limitation, its a browser restriction - Same Origin Policy. There are ways to workaround the limitation. In your case, you can setup a proxy server to forward the requests from one domain to another. Apache mod_proxy can help you with this. For example, suppose you have

Re: GWT 2.0

2010-06-02 Thread Sripathi Krishnan
java.lang.Class.getCanonicalName()Ljava/lang/String; Can you double check your JDK Version? Do you have multiple versions of JRE libraries in your classpath? --Sri On 1 June 2010 15:24, Kapil Kulkarni kapilkulkarnip...@gmail.com wrote: Hi, I am new to GWT and in learning mode. I working

Re: GWT Design Problem

2010-06-01 Thread Sripathi Krishnan
There is a big difference between a website and a webapp, and deciding which is more suitable for use case is more important than choosing the technology. *Website* is old-school. There are multiple pages, and moving from one page to another is done via hyperlinks. Websites aren't interactive,

Re: Feedback on Large scale app development MVP article

2010-06-01 Thread Sripathi Krishnan
There are a few things that you should keep in mind before you try to understand the MVP pattern 1. You don't have reflection or observer/observable pattern on the client side. 2. Views depend on DOM and GWT UI Libraries, and are difficult to mock/emulate in a pure java test case

Re: Exporting Grid data to MS-Excel

2010-05-30 Thread Sripathi Krishnan
He means 3 *lac http://en.wikipedia.org/wiki/Lakh* rows, which is 300,000 thousand rows. This isn't really a GWT discussion - but 65536 rows is the maximum excel can support. You can however create multiple sheets and get around that. --Sri On 30 May 2010 06:45, mP miroslav.poko...@gmail.com

Re: real gwt serialization

2010-05-29 Thread Sripathi Krishnan
@Kozura - No, not a constant. A constant is hard-coded data. Instead, you need the ability to dynamically generate data, serialize it and store it in the host jsp. Take a look at this blog post - http://www.techhui.com/profiles/blogs/simpler-and-speedier-gwt-with and a follow-up by folks at

Re: GWT RPC calls from java

2010-05-28 Thread Sripathi Krishnan
services to support both with the same codebase, you can reuse your services from a wide range of clients (Mobile apps / Swing / GWT etc) --Sri On 28 May 2010 21:07, Sripathi Krishnan sripathi.krish...@gmail.com wrote: See http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services

Re: Triggering download in GWT via RPC

2010-05-27 Thread Sripathi Krishnan
The point I do not get about this is why the browser does not react to the content disposition by downloading the file and instead passing the response back to the ajax-world... snip ... I read a lot about that doing what i would like to do is not possible but no one really said why.

Re: Activation of Minimised firefox browser

2010-05-27 Thread Sripathi Krishnan
I don't think it is possible to minimize or maximize a browser through javascript. --Sri On 26 May 2010 09:54, Subbu siva.subraman...@gmail.com wrote: Hi, If the browser is minimised, I am looking for an solution which should activate and show the firefox browser by an event from the

Re: compile gwt into seperate core and app module

2010-05-26 Thread Sripathi Krishnan
As i mentioned on SO, you should expose your api via a shared java jar file. That gives you reuse of code, and overheads on gwt are avoided. As long as app1 and app 2 are completely different, the above approach works find. But if they are two pages on the same website, you are using gwt

Re: Override annotation preventing compilation

2010-05-25 Thread Sripathi Krishnan
I think it is the javac compiler failing, not GWTC. Also, I'd guess you are using JDK 1.5. In JDK 1.5, @Override annotation cannot be applied to methods that implement an interface; they can only be applied to a method that overrides a method from a class. In your case, the clone method is

Re: Using preemptive basic authentication with GWT-RPC.

2010-05-25 Thread Sripathi Krishnan
Although it can be accomplished, please don't. *How it can be done?* 1. RPC async interface implements ServiceDefTarget. Using this interface, you can set a custom RpcRequestBuilder 2. In your custom RpcRequestBuilder, override the doCreate() call super.doCreate() and get an instance

Re: Button vs FocusPanel. Which one is faster in CPU-intense GUIs?

2010-05-25 Thread Sripathi Krishnan
I'd certainly use Buttons. Performance wise, calling innerHTML is a lot faster than doing DOM manipulations. If you are using GWT widgets for every button, it is going to slow down the site. Usability wise - use a button when you mean a button. It makes your website more accessible and

Re: Using preemptive basic authentication with GWT-RPC.

2010-05-25 Thread Sripathi Krishnan
. The authentication could be done against the same auth module (i.e. LDAP) but the GWT-RPC session would be a different session from the proxy/backend-server session. So, how does the proxy servlet 'link' the 2 sessions? sorry if that sounds dumb, I'm not sure how to phrase it. On May 25, 3:28 pm, Sripathi

Re: I'm trying out an example I found in a GWT book. In side the .html file, whenever I tried to name a div the same name as the class, nothing will be displayed on the screen.

2010-05-24 Thread Sripathi Krishnan
GWT creates a hidden iframe with an id equal to whatever your module is renamed to. In your case, you had a div with id=Hangman, and GWT inserted an iframe with *the exact same id*. This caused the problem you were facing. Renaming the div got rid of the duplicate id, and that's why the

Re: History mechanism

2010-05-23 Thread Sripathi Krishnan
Not sure about the 2 KB thing, its browser specific. AFAIK, newer browsers allow more than 2K in the url. But in general, there is always a limit to the state that can be stored on the client side. After a certain point, you'd have to store opaque tokens that can only be understood by the server.

Re: gwt 2.1 M1 and css -moz-border-radius

2010-05-22 Thread Sripathi Krishnan
Thomas, Isn't this the issue youhttp://code.google.com/p/google-web-toolkit/issues/detail?id=3946are speaking about? I have been following that issue, and I thought they fixed it by modifying the flute source code. I'm still stuck on older version of GWT, so haven't really tried this myself. Does

Re: Where is com.google.gwt.core.client.prefetch.Prefetcher?

2010-05-21 Thread Sripathi Krishnan
Its there on the trunk of GWT, don't know about the 2.0.3 branch. See http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/google/gwt/core/client/prefetch/ --Sri On 21 May 2010 18:53, Andrew Hughes ahhug...@gmail.com wrote: Hi All, I've having a look at the source for the GWT

Re: Performance issue with large object model

2010-05-20 Thread Sripathi Krishnan
I'd recommend using DTO's. Whether you use Dozer or not is secondary. The motivations for this approach are in this thread - http://groups.google.com/group/google-web-toolkit/msg/f9290388bbf5a5f8. In general, you want to keep your UI Model (i.e. DTO) separate from your Domain Model (hibernate

Re: Problems w/ Switching Off App Engine

2010-05-20 Thread Sripathi Krishnan
Remove all google app engine jars from the project classpath and try again. --Sri On 20 May 2010 22:55, Nick Jost lordkak...@gmail.com wrote: I'd been using App Engine since that is the default setting. However, I need to turn that off because I need access to local file storage on the

Re: RequestBuilder.POST to PHP works in IE, FireFox, but not Chrome Response Status = 0

2010-05-20 Thread Sripathi Krishnan
Are you posting to a different port on the same host? AFAIK, IE allows you to post to the same port, but other browsers consider it a violation of same origin policy. --Sri On 20 May 2010 20:32, Mike Apolis michaelgb@gmail.com wrote: When sending the code below, everything works great in

Re: return type image from server

2010-05-18 Thread Sripathi Krishnan
I don't think it is possible to create an image using base64 encoded data. Even if it were possible, you don't want to do it for a lot of reasons, namely a) RPC uses POST, which is not easily cacheable b) Its a waste of bandwidh. RPC and base64 both have their overheads c) You have to deal with

Re: Synchronous Calls with RPC??

2010-05-17 Thread Sripathi Krishnan
I'm not sure about adding this feature but maybe a better documentation about the bad idea of using sync request. http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideGettingUsedToAsyncCalls

Re: Classname table in generated JS

2010-05-17 Thread Sripathi Krishnan
Could somebody please explain to me why this is needed? AFAIK, this wasn't always the case. Issue 370http://code.google.com/p/google-web-toolkit/issues/detail?id=370 has some information on why this was introduced. The class name are required so that you can use the getClass() method on an

Re: is it technically possible to use other languages with gwt?

2010-05-17 Thread Sripathi Krishnan
On the server side, you are free to use any language you want. Several people have been successful in using PHP as a backend server. On the client side, only Java is supported. Since GWT is a java sourcecode - javascript compiler, it is NOT possible to use other jvm languages. There has been some

Re: Classname table in generated JS

2010-05-17 Thread Sripathi Krishnan
, Sripathi Krishnan sripathi.krish...@gmail.com wrote: Could somebody please explain to me why this is needed? AFAIK, this wasn't always the case. Issue 370http://code.google.com/p/google-web-toolkit/issues/detail?id=370 has some information on why this was introduced. The class name

Re: GWT.isClient() always return true

2010-05-16 Thread Sripathi Krishnan
When deployed to tomcat as javascript, it will always return true. --Sri On 16 May 2010 20:38, fonghuangyee fonghuang...@gmail.com wrote: Returns true when running inside the normal GWT environment, either in hosted mode or web mode. Returns false if this code is running in a plain JVM.

Re: GWT execution flow

2010-05-16 Thread Sripathi Krishnan
successfully use App engine to load GWT. On May 7, 6:47 pm, Chris Conroy con...@google.com wrote: On Thu, May 6, 2010 at 11:05 PM, Sripathi Krishnan sripathikrish...@gmail.com wrote: Technically, in the very first request, the server already knows user browsers' type

Lightweight Metrics in Firebug Console -- a bookmarklet

2010-05-14 Thread Sripathi Krishnan
I created a utilityhttp://blog.530geeks.com/2010/05/view-gwt-metrics-in-firebug.htmlto see GWTs lightweight metrics in the firebug console window; thought this group may find it useful. gwtmetrics http://code.google.com/p/degwt/wiki/gwtmetrics is just a js file that can be injected into any page

Re: java.lang.NoClassDefFoundError, it probably well known but I cannot found the solution....

2010-05-12 Thread Sripathi Krishnan
? My application opening a file, basically it is just a better looking webserver. However, it doesn't look like inheritance from servlet security restriction... Is there more document mention why GAE do that? On May 12, 2:14 am, Sripathi Krishnan sripathi.krish...@gmail.com wrote: I am

Re: RCPService or RemoteService

2010-05-12 Thread Sripathi Krishnan
See http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideDeRPC They won't be removed, but not many people have used it so far. If it works for you, stick with it. If you do find a bug later (rare, I'd say), its trivial to change to the older interfaces. --Sri

Re: Development mode - changes not being picked up

2010-05-12 Thread Sripathi Krishnan
When you hit your website, do you pass the gwt.codesvr=127.0.0.1:9997parameter in the URL? If you don't pass that parameter, the browser will execute the compiled JS code, which isn't what you want. --Sri On 9 May 2010 11:48, Willis jameswillisweak...@gmail.com wrote: Hi All, I've just

Re: Running GWT with -noserver and weblogic. Can anyone help?

2010-05-12 Thread Sripathi Krishnan
Your startup url should have the url parameter gwt.codesvr=127.0.0.1:9997. Thats the magic parameter that kicks in the GWT browser plugin which in turn evaluates java byte code. --Sri On 12 May 2010 01:43, arkady arkad...@gmail.com wrote: Hey folks, I have a weblogic server running with my

Re: UiBinder template files, Eclipse and Maven

2010-05-12 Thread Sripathi Krishnan
Could they be in a separate resources directory as long as they're included in the classpath and their packages match their corresponding UiBinder interfaces? Yes, it should work. Add your resources folder to source path in eclipse (instead of classpath as you currently have it). --Sri

Re: GWT 2.0 integration with Spring Security 3.0

2010-05-12 Thread Sripathi Krishnan
The problem is that /#login and #securepage are the same page as far as Spring is concerned. The part of the url after the # is not sent to the server, and so Spring never really sees it. I'd recommend creating the login page outside of GWT, as a simple html page. Then, protect your GWT page

Re: Can we check uploaded file Size at client side in GWT by Reading the header info of the file

2010-05-11 Thread Sripathi Krishnan
You can't, and you don't want to. You can't, because javascript doesn't provide any way to read the contents of a file that is stored locally. You can't read the http header info when the browser submits a multi-part post request. There just isn't a way to do it (unless you are willing to write

Re: Can we check uploaded file Size at client side in GWT by Reading the header info of the file

2010-05-11 Thread Sripathi Krishnan
frank.har...@gmail.com wrote: Because it is a much better user experience to show an error message right away rather than letting the user wait for a long time and then telling him the upload has failed. On Tue, May 11, 2010 at 13:52, Sripathi Krishnan sripathi.krish...@gmail.com wrote

  1   2   3   4   >