Re: Support for X.509 certificates
Thanks for both replies, I'll take a look at how I should configure these certificates support under JBoss AS. Thanks very much. -- Miguel Blog: http://lonifasiko.blogspot.com On 28 nov, 15:14, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote: > Lonifasiko schrieb: > > > Maybe I'm asking a stupid question, but support for X.509 certificates > > concerns to GWT or to the application server I'm using, JBoss in my > > case? > > It concerns the application-server and the browser the GWT-application > is being executed (e.g. if we are talking about certificate-based > client-authentication when doing HTTPS-communication). > > Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SecureRemoteService and Servlet. The battle against XSRF.
Hey everyone, thanks for the big replies. There is a lot of info in there, but I still have some questions. I understand that Mallory will always be a problem and that Eve might be one, however, defeating them is not part of what I want to do. The only thing I want to guard against are XSRF attacks. I understand that to prevent these I must put some identifier (let's use sessionID) and store it in a cookie to survive browser reload and I must pass it inside my GWT RPC request and not rely on the cookie in the header. So far so good, this is exactly what I am implementing right now. Gregor suggested that I create an interface that would extend the RemoteService, this is along the lines of what I was thinking as it would make the whole XSRF system transparent to the programmer, I have also understood from the later posts between you and Reinier that the visibility of the actual sessionID on the wire is not a problem here, so is there any substantial objection to use this approach? Shawn suggested I use his implementation with JSON, however, I have read the readme and the fact that exceptions are not thrown over the line is too big of a drawback for me as I use these in the app already. Reiner, you really seem to know your stuff, thank you for your clarifying posts and your enjoyable cynical take on the world. I think I understand what you are saying. Last question, would using SSL (which will be implemented on the server within a week or two) also prevent XSRF? From what I have read, I cannot draw a conclusion one way or the other. With thanks, Patrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT with non-Java backend
I use GWT with Google App Engine backend with RequestBuilder. 2008/12/1, ajay jetti <[EMAIL PROTECTED]>: > This should help i think > > http://angel.hurtado.googlepages.com/tutorialgwt2 > > yours > > Ajay > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Remember user information
The only way to remember user information in the browser between reloads is to use cookies. However, be VERY carefull about what you store there as these are sent over the wire with every request aswell as headers. There is one other way, and that is to allow the browser to store them. To do this, you have to put the username and pass textboxes into a div that will load normally in the HTML. This allow the browser to recognize them and store the info in it's own way. When you need someone to log in, you simply set it to visible, and when you don't need it you can make it invisible with one call. See this article for more info : http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ Hope this helps, Patrick On Dec 1, 7:07 am, ramesh_mantra <[EMAIL PROTECTED]> wrote: > Hai all, > > I am new to the GWT. My requirement like this. > > I want to remember login information of the user,so that i can show > username and password onload to the user. > how can i implement this functionality in GWT. > > Thank u --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to run signed applet in hosted mode and other inside
ad 1) http://code.google.com/p/google-web-toolkit/issues/detail?id=283 On Nov 28, 10:20 am, avd <[EMAIL PROTECTED]> wrote: > hello sir, > I have two problem in gwt: > 1..How to run signed applet in hosted mode.i put all class files of > applets in public folder and change the html file that exist in public > folder by putting these lines and i also make a javascript > file in that i wrote a function that function called the java function > that lives in applet class files,when i run applet through html file > by simple clicking in www folder then it works fine but when i run > through hosted mode it gives error:"cannot load class sun/plugin/ > JavaRunTime".the bridge was installed at > but the class is not there modify the registry key to reflect the new > bridge location.something like this... > how can i resolved this problem?? > > 2..Actually my project has some programs that stored images three > folders named redim, scaled, and temp that stroed the images after > features calculation,when i run it in hosted mode it works fine but > when i create a war file through eclipse and deploy it at tomcat in > webapps,then i find that in project folder there is no such folder i.e > redin, scaled and temp and my program does not work properly. > so please suggest me where i make these three folder in webapps. > > please give me solution i am highly thankful to you... > > with regards > avdhesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Pass an applicationSessionId in each rpc request
isn't this very insecure (passing the sessionId via URL)? AFAIK: the URL is always readable (even if you use SSL) and thus it would be very easy to intrude the users session On Nov 29, 3:52 am, Joe Cole <[EMAIL PROTECTED]> wrote: > You could just change the request urls: > > target.setServiceEntryPoint(GWT.getModuleBaseURL() + "/" + service > +";sessionid="+sessionId); > > I haven't tried it, but assume it would work. You would have to pull > out the appropriate information on the server side. > Joe > > On Nov 28, 5:35 am, seb2nim <[EMAIL PROTECTED]> wrote: > > > Hi everyone. > > > I was playing with cookie and session and i found i cant open two > > different tabs on firefox with twice the same app... so i think i'm > > doing something wrong : I was thinking there would be two different > > httpSessions but apparently not. > > > the problem is i actually keep some user information in httpsession... > > So two apps shares the same information wich is, really bad. > > > I decided to generate a unique 'application level session id' at login > > so that i can manage multiple in one httpsession. > > > Drawback is that once passed to client-side code, i need to pass it on > > every rpc call... and i'm a lazy guy... I dont want to refactor each > > method signature... > > > As RPC mecanism is now improved in GWT1.5 : > > "The first is that asynchronous interface methods can now return the > > underlying HTTP request object (http.client.Request) so you can access > > and tweak it as necessary for your application needs before sending it > > off through RPC. Asynchronous interface methods can now also return > > void or http.client.RequestBuilder objects." > > > I think i can tweak my calls to append the appSessId in header or > > something like that. Did anyone already do this? > > > Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is Run Time Annotation Possible?
You can have a look the Wiki page : http://code.google.com/p/gwt-ent/wiki/UseReflection need include GWT-ENT module into your project. then include "Reflection" flag interface into your class ClassType classType = TypeOracle.Instance.getClassType (YourClass.class); done :) On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote: > Do you want to configure anything in order to make class the following > code work? > Test.class.getAnnotation(Id.class); > > On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > Sorry, what do you mean? My English is not so good, but If you got any > > question, please welcome to ask me :D > > James > > > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote: > >> How do you make the com.gwtent.client.test.annotations.Id to be > >> understandable by GWT? > > >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED] > > >> <[EMAIL PROTECTED]> wrote: > > >> > Hi, zujee, > > >> > I have a reflection implement for GWT client code, and it support > >> > get Annotation's value at runtime. > > >> > http://code.google.com/p/gwt-ent/ > >> > The test case: > >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/... > > >> > Hope that helps :) > >> > James > > >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote: > >> >> Hi experts, > >> >> I have an interface which extends ImmutableResourceBundle > > >> >> and inside that > >> >> @Resource("com/MyPath/MyConstants.properties") > >> >> public abstract TextResource properties(); > > >> >> and its working fine. > >> >> but I need to change the filename after reading the XML file . > >> >> eg: > >> >> > >> >> MyConstants_C1.properties > >> >> > > >> >> from that I need to set the reosuece path as > >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is > >> >> that possible? > > >> >> thanks and regards > >> >> Zujee --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SecureRemoteService and Servlet. The battle against XSRF.
Your plan to use an interface extending RemoteService to be consistent in how you read the sessionID out of the request body and not the cookie sounds excellent. SSL does not protect against XSRF by itself. However, it does turn moot the general issue of having session IDs hit the line. The long talks about attempting to hide the sessionID by hiding the cookie and using some whacky crypto scheme are experimental craziness without SSL, and if you're already using SSL, utterly pointless. In other words, SSL + your XSRF protection plan = security sweetness. I run my website that way. (tipit.to) You could hack in some sort of exception-over-JSON protocol, where you build a custom class in between the HttpServlet and YourOwnServlets class inheritance, which makes it easier to output JSON (for example by allowing you to output a hashmap), as well as wrapping the actual doGet()/doPost() calls (by overriding service()) in try/catch, and having a standard way of conveying the exception to the client. e.g: { "error": true, "errorType": "java.io.FileNotFoundException", "errorMessage": "/foo/bar" } Going JSON with your API isn't really "better" than using GWT-RPC unless you have very specific needs (such as: I'll be accessing my servlets from something other than GWT as well), so only do this if you really really need it. One last security note on tossing exceptions across the line automatically: That can be a security leak, in the sense that you tend not to think about the exception when considering the type of data that a servlet will send out onto the internet. It's rare that useful info leaks out that way, but it does happen, and often it helps a cracker determine fruitful attacks. Unless you run a very security- sensitive app, I would accept the risk, but think about what info might be available in an exception, and if its really bad, do something about it. Example: You need to read the password to the database off of disk, because you use some horribly outdated database layer. The filename contains the name of the db server and db name. This is info a cracker didn't have before, but if that file doesn't exist or can't be read, now he does, because FileNotFoundException, IIRC, has as message the filename. So, the cracker sees /dbPasswords/localhost_1234_myServerDB or some such. More info than he had. If he's found a different app on your site that can be coerced into returning any given file anywhere on the system, but not directory listings, he now has his puzzle complete and knows the location of your db and the password. Again - don't abandon the idea of swapping exceptions across the wire, just try to be aware that it happens and that exceptions thrown by your servlet is essentially public info. NB: Bedankt :) On Dec 1, 9:58 am, Patrick Ratelband <[EMAIL PROTECTED]> wrote: > Hey everyone, > > thanks for the big replies. There is a lot of info in there, but I > still have some questions. > > I understand that Mallory will always be a problem and that Eve might > be one, however, defeating them is not part of what I want to do. The > only thing I want to guard against are XSRF attacks. I understand that > to prevent these I must put some identifier (let's use sessionID) and > store it in a cookie to survive browser reload and I must pass it > inside my GWT RPC request and not rely on the cookie in the header. > > So far so good, this is exactly what I am implementing right now. > > Gregor suggested that I create an interface that would extend the > RemoteService, this is along the lines of what I was thinking as it > would make the whole XSRF system transparent to the programmer, I have > also understood from the later posts between you and Reinier that the > visibility of the actual sessionID on the wire is not a problem here, > so is there any substantial objection to use this approach? > > Shawn suggested I use his implementation with JSON, however, I have > read the readme and the fact that exceptions are not thrown over the > line is too big of a drawback for me as I use these in the app > already. > > Reiner, you really seem to know your stuff, thank you for your > clarifying posts and your enjoyable cynical take on the world. I think > I understand what you are saying. > > Last question, would using SSL (which will be implemented on the > server within a week or two) also prevent XSRF? From what I have read, > I cannot draw a conclusion one way or the other. > > With thanks, Patrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT with non-Java backend
Yes, tons of people have used GWT on the front and something that isn't java on the back-end. You can transfer data using JSON, XML (but, really, don't. XML is stupid as a wire protocol), or whatever binary format you think is useful. The only caveat (and this applies to using GWT-RPC as well), is that GWT apps can only receive data 'whole'. You can not stream. So, if you were thinking of pumping 50 megabytes worth of data down to the client, you need to split it up into pieces and have the GWT client app request and process each piece one at a time. The general idea of processing 50 MB worth of stuff in a javascript app also doesn't sound like a good idea in general, as javascript isn't really fast enough to do it unless you're on WebKit+SquirrelFish, Google Chrome+V8, or Firefox 3.1 beta + tracemonkey. (Those are all beta or small market share browsers with amazing javascript interpreters). On Dec 1, 10:01 am, "Peter Ondruška" <[EMAIL PROTECTED]> wrote: > I use GWT with Google App Engine backend with RequestBuilder. > > 2008/12/1, ajay jetti <[EMAIL PROTECTED]>: > > > This should help i think > > >http://angel.hurtado.googlepages.com/tutorialgwt2 > > > yours > > > Ajay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Form: Upload/Download Data
Hi @all, is there an easy way to upload or download some data from a users computer to a form? I want to do something like the following: - I build a form (many TextFields, ComboBoxes, ...) - There should be a possibility to save the data temporarly to an xml- file (in the users computer) - Afterwards the user should have the possibility to open the xml-file and it loads the saved data to the form. I have 2 questions: - Is this possible with Google Web Toolkit? - Is this possible without sending the data to the server and then to download the xml-file? Many thanks! Regards, Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: @EJB annotation during junit testing doesn't work
Hello Thanks for your reply The thing is when I run hosted mode everything works fine. Hosted mode runs gwt embedded instance of tomcat, so does GWTTestCase. This is why I believed it was connected with GWT. Anyway, in this situation, how can I run tests in the container? On Nov 30, 12:37 am, medgey <[EMAIL PROTECTED]> wrote: > If you are running outside of a container then you will need to > instantiate your EJBs yourself ('new"). This is unrelated to GWT. > > On Nov 27, 7:53 am, jolero <[EMAIL PROTECTED]> wrote: > > > Hello everybody. > > > While developing junit tests in GWT app I have stucked on a problem > > that I cannot solve for couple of days now. > > In normal runtime I can normally call RPC services that use JPA > > (Toplink and Glassfish Appserver) for data access purposes, but during > > Junit tests (My tests extends GWTTestCase and use delayTestFinish and > > finishTest for asynchronous calls as described in GWT documentation) > > RPC methods that use injected objects are failing with > > NullPointerException. In other words @EJB annotatnion doesn't work, > > Beans are not injected and references to them are nulls. > > > Have anybody had that issue? Does anybody know a solution? Thx in > > advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SecureRemoteService and Servlet. The battle against XSRF.
Hey Reinier, I am happy to hear that you agree with my approach so far (and even use it yourself). Since I will only use GWT to communicate with the app on the server I see no reason to adopt JSON, so were almost there. Problem here is that I still need somewhere to add that sessionID into the request from the client to the server. I have to admit that my basic Java knowledge now seems to fail somehow here. I have attempted to use the method suggested by Gregor earlier in this thread, however, I can't figure it out. >From what I can figure out about the code from Gregor one would subclass (or subinterface I guess) the interface of the RemoteService into the SecureRemoteService for instance. However, I do not understand how to proceed from there. I think I modified the example enough to show how far my knowledge goes right now, but there are some issues with my idea: First the code example: --- Code, I hope this formats reasonably in the post. --- public interface SecureRemoteService extends RemoteService { /** * Utility/Convenience class. * Use SecureRemoteService.Async.getInstance() to access static instance of IpsvRmapServiceAsync */ public static class Async { private static Async ourInstance = null; public static synchronized Async getInstance() { if (ourInstance == null) { ourInstance = (Async) GWT.create(SecureRemoteService.class); } return ourInstance; } public void setServiceEntryPoint(String entryPoint) { // This is where the magic happens. ((ServiceDefTarget) ourInstance).setServiceEntryPoint (GWT.getModuleBaseURL() + entryPoint + "?sessionID=" + getSessionID ()); } private String getSessionID() { // Do stuff to get sessionID return "SessionID"; } } } --- End of code --- >From what I can see, this should work if the interface extends the SecureRemoteService instead of the normal one. However, to properly create an instance of this class, the programmer now has to do something different from the normal procedure. Instead of calling the normal GWT.create(someService.class) and casting it to the Async version, he has to call on GWT.create(someService.Async.class). This means he has to modify all of his proxy creation statements as well. Is there any way to get around this? Thanks, Patrick PS: Graag gedaan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Image - setting image via css
Hi Thomas, Tks a lot for your reply. It worked nicelly. Regards, Michel. On Nov 28, 4:49 pm, Thomas Broyer <[EMAIL PROTECTED]> wrote: > On 28 nov, 12:48, Michel <[EMAIL PROTECTED]> wrote: > > > Hello there. > > > When we use the Image class, we can set the image via the setUrl > > command. > > > Fine. > > > But now I wanted to set the image which is defined in a css class > > > Is it possible to use Image for this? > > It might not be the best choice but yes: just setUrl > (GWT.getModuleBaseURL() + "clear.cache.gif") and addStyleName. > And in your CSS, set your image as a background-image (and set the > width and height too!) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Disable TreeItem from clicking
Hi, How can I disable a TreeItem from clicking??? I've populated a Tree with TreeItems. I want to disable certain TreeItems from generating onTreeItemSelected events and even I want to display those disabled TreeItems in different style (grayed-out). I'm using GWT 1.4.62... Thanks in Advance !!! Regards ArunDhaJ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Slow compiler - can I generate minimal set of files for hosted mode only (esp. serialization policy files)?
If you're looking to speed up compilation, you should try this first: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_CompileOnePermutation -- Arthur Kalmenson On Thu, Nov 27, 2008 at 8:02 AM, Christian Mallwitz <[EMAIL PROTECTED]> wrote: > > In order to improve my development efficiency I was thinking if I can > get away from having to generate the JavaScript files when running the > GWT compiler at all at development time. > > My build scripts build both the server and client just fine and > everything works nicely. Because my app is fairly complex I run the > GWT shell with -noserver (after deploying all the necessary things on > the server). > > Now most of the time I don't actually every need the client-side > JavaScript because after redeploying my app I go straight to hosted > mode. Is there a way to make the GWT compiler only generate the files > needed to support hosted mode? > > I messed around a bit and I get away with copying my public folder > into the right place and adding (from a previous build) the saved > module JavaScript file, hosted.html and history.html. The problem > though are the serialization policy files on the server. They are just > a list of class names but I would have to know exactly what the > compiler is putting into them in order to generate the right MD5 > checksum for the file name. The files may actually change all the time > if I do changes to the server side so I wouldn't get away with using > old ones. > > If I ever really need the JavaScript files at dev time I can always > press the Compile button in GWTShell. > > Any ideas? > > My ideas: > > 1) Use custom field serializers so I don't need the policy files? > > 2) Maybe a dummy generator to prevent the compiler from generating any > JavaScript. How would I go about this? > > What do you think? > > Thanks > Christian > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SecureRemoteService and Servlet. The battle against XSRF.
Hi Patrick, I think you probably want to call the static async instance according to usual RPC protocol, i.e. in this case SecureRemoteServiceAsync, otherwise you might get confused as to what's going on > > --- Code, I hope this formats reasonably in the post. --- > public interface SecureRemoteService extends RemoteService { > > /** > * Utility/Convenience class. > * Use SecureRemoteService.Async.getInstance() to access static > instance of IpsvRmapServiceAsync > */ > public static class SecureRemoteServiceAsync { > private static Async ourInstance = null; > > public static synchronized SecureRemoteServiceAsync > getInstance() { > if (ourInstance == null) { > ourInstance = (SecureRemoteServiceAsync) > GWT.create(SecureRemoteService.class); > } > return ourInstance; > } > > public void setServiceEntryPoint(String entryPoint) { > // This is where the magic happens. > ((ServiceDefTarget) ourInstance).setServiceEntryPoint > (GWT.getModuleBaseURL() + entryPoint + "?sessionID=" + getSessionID > ()); > } > > private String getSessionID() { > // Do stuff to get sessionID > return "SessionID"; > } > }} > > --- End of code --- Then you use it like so in code: SecureRemoteServiceAsync async = SecureRemoteServiceAsync.App.getInstance(); // the URL will now have the SessionID param async.someMethod(param, new secureRemoteServiceCallback()); Note that this does not work across the board, you have to do this once for each RPC service separately (i.e. once per RPC service interface declared), but if you extend RemoteServiceServlet and override the processCall() method to grab and check sesionID parameter, then use this extended RemoteServiceServlet this for all your RPC services, they will all validate the sessionID. I guess it's a matter of taste and situation, but I think I prefer the second method (the Command pattern variation) becasue a) if you want to change the way you handle this session thing, you just do it the Payload base class and the extended RemoteServiceServlet.processCall (), you do not have to change all your RPC Async interfaces and b) this Payload pattern is useful for a lot of other reasons in handling objects over the wire. I think it deals with the XSRF issue too (but I'm sure Reinier will nail me to wall again if wrong!) regards gregor > > From what I can see, this should work if the interface extends the > SecureRemoteService instead of the normal one. However, to properly > create an instance of this class, the programmer now has to do > something different from the normal procedure. Instead of calling the > normal GWT.create(someService.class) and casting it to the Async > version, he has to call on GWT.create(someService.Async.class). This > means he has to modify all of his proxy creation statements as well. > > Is there any way to get around this? > > Thanks, Patrick > > PS: Graag gedaan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT-ext or ext-GWT?
That's fine, but you also need to consider future maintenance of your application. If your application is going to have any substantial life time and going to have to be extended and maintained, you're going to have a pretty hard time with gwt ext or ext gwt. However, I know the mentality of "quick, get it out the door, I don't care that there aren't any test cases" is still very prevalent. If that's the type of work environment one is in, they have little choice. -- Arthur Kalmenson On Thu, Nov 27, 2008 at 9:57 AM, Niklas Derouche <[EMAIL PROTECTED]> wrote: > > > On Thu, Nov 27, 2008 at 2:52 PM, Arthur Kalmenson <[EMAIL PROTECTED]> > wrote: >> >> I disagree, you don't need any exotic graphic needs to use GWT. If you >> want a good, functional and quick web application, you use GWT. If you >> want a hard to maintain, buggy and poorly (if at all) tested, slow as >> a snail but a nice shiny turd of a web application, you use Ext GWT. > > So let me see if I understod you correctly; you don't like Ext GWT? > Seriously, > not liking stuff is fine. It's more than fine as far as I am concerned. I > wish you > all the best in your future endeavours and sometime down the line when you > have > spent more than a year or two in the workplace post your degree you may find > that you start making choices based on pragmatic weighing of pros and cons > and where your design ideals may take the backseat to cost and > time-to-market > factors. Your mileage will vary. > n. > -- > > I've had a wonderful time but > this wasn't it. >Groucho Marx > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Need to richer widget set in GWT
Ted, you need to subscribe to the mailing list through the Google Group interface first. -- Arthur Kalmenson On Thu, Nov 27, 2008 at 10:34 AM, TedM <[EMAIL PROTECTED]> wrote: > > How do I got started? I would like to help. > > I tried e-mailing [EMAIL PROTECTED] to > look for a sponsor but the e-mail didn't work. > > How do I find a sponsor? > > > On Nov 26, 7:22 pm, gregor <[EMAIL PROTECTED]> wrote: >> > I want to the incubator to see what was in the works and to be honest >> > I was a little disappointed. >> >> > I'm thinking about asking if I can help. >> >> Patches always welcome, I guess: >> >> http://code.google.com/p/google-web-toolkit-incubator/wiki/PagingScro... >> >> On Nov 26, 3:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> >> >> > wrote: >> >> > > Not native to the GWT library, but check >> > > outhttp://www.jroller.com/sjivan/entry/smartgwt_1_0_released >> >> > > Smart GWT has a lot of nice things, similar to GWT-EXT. >> >> > > Is your main issue with GWT-EXT that it is not open source/free? Just >> > > wondering >> >> > > Later, >> >> > > Shaffer >> >> > > On Nov 26, 12:47 pm, TedM <[EMAIL PROTECTED]> wrote: >> >> > > > I've been working with GWT for over a year now and working with GWT- >> > > > EXT for about 6 months and I went to the Google I/O conference. >> >> > > > I was wondering if there was an effort to build up GWT widget set to >> > > > the level of polish of GWT-EXT? >> >> > > > The widgets that matter most to me are: >> > > > 1. Sortable table/grid >> > > > 2. Grouping table/grid >> > > > 3. Paging table/grid >> > > > 4. Dragable pop dialog (Having action buttons at the top right of the >> > > > dialog) >> > > > 5. Tab Panel (GWT is missing the mouse over and table scrolling) >> > > > 6. Calendar date field (With date picker) >> > > > 7. ComboBox (Image support, z-indexable) >> >> > > > In addition, I think it would be very helpful if GWT had some basic >> > > > CSS templates like EXT's default, gray, and vista templates. >> >> > > > Please let me know if the GWT team is planning on building these >> > > > features. >> >> > > > If not, let me know if anyone is interested. Because I'll build them >> > > > and post them somewhere. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Dictionary on demand
I am still getting the errors: [ERROR] Uncaught exception escaped java.util.MissingResourceException: 'example' is not a JavaScript object and cannot be used as a Dictionary at com.google.gwt.i18n.client.Dictionary.resourceErrorBadType (Dictionary.java:100) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SecureRemoteService and Servlet. The battle against XSRF.
Another thing you can do in order to always send your session identifier as part of your request is use the RequestBuilder and add the identifier as a request header. RequestBuilder requestBuilder = new RequestBuilder("POST", "/ myServletUrl"); RequestBuilder.setHeader("X-Session-Id", mySessionIdFromCookie); On Dec 1, 8:31 am, gregor <[EMAIL PROTECTED]> wrote: > Hi Patrick, > > I think you probably want to call the static async instance according > to usual RPC protocol, i.e. in this case SecureRemoteServiceAsync, > otherwise you might get confused as to what's going on > > > > > > > --- Code, I hope this formats reasonably in the post. --- > > public interface SecureRemoteService extends RemoteService { > > > /** > > * Utility/Convenience class. > > * Use SecureRemoteService.Async.getInstance() to access static > > instance of IpsvRmapServiceAsync > > */ > > public static class SecureRemoteServiceAsync { > > private static Async ourInstance = null; > > > public static synchronized SecureRemoteServiceAsync > > getInstance() { > > if (ourInstance == null) { > > ourInstance = (SecureRemoteServiceAsync) > > GWT.create(SecureRemoteService.class); > > } > > return ourInstance; > > } > > > public void setServiceEntryPoint(String entryPoint) { > > // This is where the magic happens. > > ((ServiceDefTarget) > > ourInstance).setServiceEntryPoint > > (GWT.getModuleBaseURL() + entryPoint + "?sessionID=" + getSessionID > > ()); > > } > > > private String getSessionID() { > > // Do stuff to get sessionID > > return "SessionID"; > > } > > }} > > > --- End of code --- > > Then you use it like so in code: > > SecureRemoteServiceAsync async > = SecureRemoteServiceAsync.App.getInstance(); // > the URL will now have the SessionID param > async.someMethod(param, new secureRemoteServiceCallback()); > > Note that this does not work across the board, you have to do this > once for each RPC service separately (i.e. once per RPC service > interface declared), but if you extend RemoteServiceServlet and > override the processCall() method to grab and check sesionID > parameter, then use this extended RemoteServiceServlet this for all > your RPC services, they will all validate the sessionID. > > I guess it's a matter of taste and situation, but I think I prefer the > second method (the Command pattern variation) becasue a) if you want > to change the way you handle this session thing, you just do it the > Payload base class and the extended RemoteServiceServlet.processCall > (), you do not have to change all your RPC Async interfaces and b) > this Payload pattern is useful for a lot of other reasons in handling > objects over the wire. I think it deals with the XSRF issue too (but > I'm sure Reinier will nail me to wall again if wrong!) > > regards > gregor > > > > > From what I can see, this should work if the interface extends the > > SecureRemoteService instead of the normal one. However, to properly > > create an instance of this class, the programmer now has to do > > something different from the normal procedure. Instead of calling the > > normal GWT.create(someService.class) and casting it to the Async > > version, he has to call on GWT.create(someService.Async.class). This > > means he has to modify all of his proxy creation statements as well. > > > Is there any way to get around this? > > > Thanks, Patrick > > > PS: Graag gedaan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT with non-Java backend
Joshua Partogi skrev: > Dear all, > > Has anyone worked GWT with non-Java backend (like PHP or Rails) and > send it with AJAX Http request? Does it work good? I am wondering > whether this is a good approach. I would appreciate any experience > shared here. I've developed a GWT RPC gateway to Python on the server. It is tightly integrated with the Twisted networking framework: http://code.google.com/p/twisted-gwt/ ~jr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Generating JARs of client code?
I would go with the latter solution. All GWT compiler does is take your client side code and spits it out in JS code. *shrug* :) On Nov 29, 1:01 pm, LooneyLynn <[EMAIL PROTECTED]> wrote: > Hello, > > I created the usual eclipse project layout with the applicationCreator > and so... Now I want to generate a JAR file representing my client- > side GWT code including the RPC interface I defined. > > My intention is to use this JAR file in another JAVA project to > implement the RPC interface, so that the GWT client is able to > communicate with this separate server side project. Is this possible > or am I missing something? > > The problem is that my server-side is written in C#. My plan is using > GrassHopper to implement this JAVA interface in C# (this would be > technically no prob). Also I have access to the whole server side GWT > java package with C#. > But Grasshopper needs this JAR file to import the java classes into > C# > > So how can I get GWT to generate this JAR file from my client code? Or > should I just put all CLASS-files in a zip and rename it to JAR? > > regards > chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Timer In Gwt
Classic Reneir Reply This Was Well worth The Read, :). On Nov 29, 1:35 pm, Reinier Zwitserloot <[EMAIL PROTECTED]> wrote: > Not A Problem - Just Add The Timer Behaviour To Your Custom Subclass > Of Label. For Example, You Could Add A SetVisible Method To This Label > Subclass That Also Includes a Milliseconds Parameter (The Time To > Display The Message). All Your Method Does Is Call Super.SetVisible > (X), And Then Start The Timer. The Timer Code You Pasted Looks Fine, > So You Can Just Use That. If You Are Concerned That Thirty Timers Are > Too Much To Handle, I Wouldn't Worry Too Much. However, If Practical > Testing Really Reveals That Is A Problem, You Can Do This. I'd Still > Go The Route Of A Custom Class, though. Basically, Create A Mapping Of > Event Times (The Time In Milliseconds When The Message Should > Disappear) And Store This In A TreeMap. Then, Set Up A Single Timer > That Waits Until The First Time In The Mapping Is 'Up'. The Code Sort > Of Writes Itself From There. If A New Timer Is Added, You Should Check > If It's Up Sooner Than The First Thing In The Map, And If So, Cancel > And Restart The Timer With The New Shorter Time. > > NB: It Is More Common In The English Language To Capitalize The Word > "I" And The First Letter In Every Sentence. Your Style Of Capitalizing > At Random Is Not So Much Of A Standard. I Admit, It Looks Hilarious > Though. Ta! > > On Nov 29, 7:48 am, jagadesh <[EMAIL PROTECTED]> wrote: > > > Hi Guys, > > > I am Working On A Screen Where i Need to Display some Error Message > > and Some Success Messages.What i did is i created my own widget of > > some Label type . when ever i need to show a message i would set the > > text to label and display it on the top of the screen much like gmail. > > > the issue i added a timer for the label so that it disappears > > automatically after some time. > > > i have written the code like this, > > > Timer t = new Timer() { > > public void run() { > > header.setErrorMessage("Error > > Message"); > > header.setVisible(true); > > setWidget(0, 1, header); > > } > > }; > > t.schedule(500); > > > header is my label type of element. i was displaying some 30 types of > > different message. so my timer code has increased a lot . can any one > > suggest me how to use a single timer class for all. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Masked Input
Hi all.. I saw GWTTiger, but this doesn't work with complex masks, then I found jQuery Mask and Money plugins. These two have a fine-grained mask sintax. http://digitalbush.com/projects/masked-input-plugin/ http://inovaideia.com.br/maskInputMoney/ See what I did: public abstract class Presenter extends Composite { private String name; public Presenter(String name) { this.name = name; initWidget(getWidget()); } public String getName() { return name; } public void maskCurrency() { DeferredCommand.addCommand(new Command() { public void execute() { jQueryMaskCurrency(getWidget().getElement().getId(), SiteManager.getNumberConstants().monetarySeparator(), SiteManager.getNumberConstants().monetaryGroupingSeparator()); } }); } private native void jQueryMaskCurrency(String id, String decimal, String thousands)/*-{ $wnd.jQuery(function($) { $wnd.jQuery("#" + id).maskMoney ({"decimal":decimal,"thousands":thousands,showSymbol:false}); }); }-*/; public void mask(final String mask) { DeferredCommand.addCommand(new Command() { public void execute() { jQueryMask(getWidget().getElement().getId(), mask); } }); } private native void jQueryMask(String id, String mask)/*-{ $wnd.jQuery(function($) { $wnd.jQuery("#" + id).mask(mask); }); }-*/; protected abstract Widget getWidget(); public abstract void setEnable(boolean enabled); public abstract String getValue(); public abstract void setValue(String value); } On 30 nov, 17:22, "yunhui song" <[EMAIL PROTECTED]> wrote: > If you use gwt-ext, you can use Ext.mask or Ext.unmask. I have a open source > project which use that. > http://code.google.com/p/ppl-kit > > you can get the working code there. > > Sammi > > On Sun, Nov 30, 2008 at 2:29 AM, Riyaz Mansoor <[EMAIL PROTECTED]>wrote: > > > > > I'm interested in this as well. > > > On Nov 29, 12:15 am, jsantaelena <[EMAIL PROTECTED]> wrote: > > > Hi > > > > Someone knows libe withmaskedwidgets? > > > > Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Timer In Gwt
Random Capitalisation is actually Quite Common and used when you Want to appear Deep and Meaningful but Really are Not. It is a Stage Beyond putting little Hearts over your 'i's and has the Side Effect of making the Question Mark (???) and Exclamation Mark key stick! Ian http://examples.roughian.com Disclaimer: Present company Excepted, any Inference you Make from My Comments is entirely Your Own fantasy, but feel free to Take It Personally and Be Offended if it makes you Feel Better!!! 2008/12/1 mon3y <[EMAIL PROTECTED]> > > Classic Reneir Reply > This Was Well worth The Read, :). > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT-ext or ext-GWT?
On 1 déc, 14:41, "Arthur Kalmenson" <[EMAIL PROTECTED]> wrote: > "quick, get it out the door, I don't care that there > aren't any test cases" Actually, if you look into their SVN repository, you'll see that there are (only) a few test cases in GWT-Ext. In fact, GWT-Ext is wrapping ExtJS and only contains a thin GWT layer, maybe it explains why there are a few test cases. However, I agree that a good code coverage is a sign of quality. On the other side, there are A LOT of test cases in Ext GWT. > -- > Arthur Kalmenson > > On Thu, Nov 27, 2008 at 9:57 AM, Niklas Derouche <[EMAIL PROTECTED]> wrote: > > > On Thu, Nov 27, 2008 at 2:52 PM, Arthur Kalmenson <[EMAIL PROTECTED]> > > wrote: > > >> I disagree, you don't need any exotic graphic needs to use GWT. If you > >> want a good, functional and quick web application, you use GWT. If you > >> want a hard to maintain, buggy and poorly (if at all) tested, slow as > >> a snail but a nice shiny turd of a web application, you use Ext GWT. > > > So let me see if I understod you correctly; you don't like Ext GWT? > > Seriously, > > not liking stuff is fine. It's more than fine as far as I am concerned. I > > wish you > > all the best in your future endeavours and sometime down the line when you > > have > > spent more than a year or two in the workplace post your degree you may find > > that you start making choices based on pragmatic weighing of pros and cons > > and where your design ideals may take the backseat to cost and > > time-to-market > > factors. Your mileage will vary. > > n. > > -- > > > > I've had a wonderful time but > > this wasn't it. > > Groucho Marx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Statement that GWT can be used to drive the UI of entire webapp is incomplete
The correct statement is that if you want to build the UI of a webapp that cannot be indexed by search engines only THEN you can use GWT to drive the entire UI. Otherwise stick to jsp, html, javascript and code it by HAND. Basically, I was in a state of rapture being able to write the kind of UI that's possible using GWT without having to bother about javascript and html. Then I realize that the thing cannot be read by search engines because they like to browse it as "text". They see what a browser like Lynx will see. Well, Lynx will see jack on my website so it means all search engines see that. So that's what I have created as far as everybody else on the internet is concerned. Ian Bambury's website at http://examples.roughian.com comes to the rescue. I can pick ideas from there and salvage my months effort. What I have to do now is create a parallel structure to my website - parallel webpages and parallel navigation. I have to use Firefox web developer extension to inspect the pages/elements I created and write code to create them BACK AGAIN by HAND so that they can be read by "Lynx". Awesome! And while doing this I expose myself to the nonsense of dealing with exposing the same content to search engines and users otherwise I get penalized for misrepresentation. Double awesome! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: setting Label widgets in each cell of 1000row x 17col grid is too slow..
I'm going to try the BulkTableRenderer today. I want to be able to catch button right click events on the row and don't see text being able to catch those and therefore made labels for each cell. I did exchange Label for setText to verify speed change but building the grid was still slow . Thanks for all the suggestions, any more? =) Jim On Nov 28, 3:55 am, Thomas Broyer <[EMAIL PROTECTED]> wrote: > On 26 nov, 19:41, "JimColton" <[EMAIL PROTECTED]> wrote: > > > ..taking about 25 seconds on a 1.7ghz laptop with firefox. > > > It that length of time expected or may there be something wrong with two > > nested loops for row, col and setWidget on the grid? > > I would first try a BulkTableRenderer; if you can't (I can't see any > reason why, but...) then use an IncrementalCommand. > > Can't you also use setText instead of setLabel? If you can avoid > instanciate 17000 Label objects, it'll probably run faster too ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SecureRemoteService and Servlet. The battle against XSRF.
Someone seems to disapprove of Reinier's views here and appears to have awarded a "poor" rating to each of his contributions to this thread. This is presumably calculated to deter the community from taking what he says seriously. For my part, especially in the light of the many other contributions he has made to this group on the subject of security, I would comment Reinier has almost certainly forgotten more than I have ever known about web security. Now one thing I could do is add an excellent rating here to each of his posts to balance things up, but that's just playing silly buggers, isn't it. Teenage/crank YouTube stuff. So whoever you are, why don't you state your case openly? I'd guess Reinier himself doesn't give two hoots about this (and probably wouldn't admit it if he did) but I do not think the community is best served by this sort of shenanigans. For the little I myself know about web and network security, Reinier's posts chime right in with it. If you think he's wrong, off the wall or something, then explain - oh, and at something even half approaching the detail. On Dec 1, 2:31 pm, jhulford <[EMAIL PROTECTED]> wrote: > Another thing you can do in order to always send your session > identifier as part of your request is use the RequestBuilder and add > the identifier as a request header. > > RequestBuilder requestBuilder = new RequestBuilder("POST", "/ > myServletUrl"); > RequestBuilder.setHeader("X-Session-Id", mySessionIdFromCookie); > > On Dec 1, 8:31 am, gregor <[EMAIL PROTECTED]> wrote: > > > Hi Patrick, > > > I think you probably want to call the static async instance according > > to usual RPC protocol, i.e. in this case SecureRemoteServiceAsync, > > otherwise you might get confused as to what's going on > > > > --- Code, I hope this formats reasonably in the post. --- > > > public interface SecureRemoteService extends RemoteService { > > > > /** > > > * Utility/Convenience class. > > > * Use SecureRemoteService.Async.getInstance() to access static > > > instance of IpsvRmapServiceAsync > > > */ > > > public static class SecureRemoteServiceAsync { > > > private static Async ourInstance = null; > > > > public static synchronized SecureRemoteServiceAsync > > > getInstance() { > > > if (ourInstance == null) { > > > ourInstance = (SecureRemoteServiceAsync) > > > GWT.create(SecureRemoteService.class); > > > } > > > return ourInstance; > > > } > > > > public void setServiceEntryPoint(String entryPoint) { > > > // This is where the magic happens. > > > ((ServiceDefTarget) > > > ourInstance).setServiceEntryPoint > > > (GWT.getModuleBaseURL() + entryPoint + "?sessionID=" + getSessionID > > > ()); > > > } > > > > private String getSessionID() { > > > // Do stuff to get sessionID > > > return "SessionID"; > > > } > > > }} > > > > --- End of code --- > > > Then you use it like so in code: > > > SecureRemoteServiceAsync async > > = SecureRemoteServiceAsync.App.getInstance(); // > > the URL will now have the SessionID param > > async.someMethod(param, new secureRemoteServiceCallback()); > > > Note that this does not work across the board, you have to do this > > once for each RPC service separately (i.e. once per RPC service > > interface declared), but if you extend RemoteServiceServlet and > > override the processCall() method to grab and check sesionID > > parameter, then use this extended RemoteServiceServlet this for all > > your RPC services, they will all validate the sessionID. > > > I guess it's a matter of taste and situation, but I think I prefer the > > second method (the Command pattern variation) becasue a) if you want > > to change the way you handle this session thing, you just do it the > > Payload base class and the extended RemoteServiceServlet.processCall > > (), you do not have to change all your RPC Async interfaces and b) > > this Payload pattern is useful for a lot of other reasons in handling > > objects over the wire. I think it deals with the XSRF issue too (but > > I'm sure Reinier will nail me to wall again if wrong!) > > > regards > > gregor > > > > From what I can see, this should work if the interface extends the > > > SecureRemoteService instead of the normal one. However, to properly > > > create an instance of this class, the programmer now has to do > > > something different from the normal procedure. Instead of calling the > > > normal GWT.create(someService.class) and casting it to the Async > > > version, he has to call on GWT.create(someService.Async.class). This > > > means he has to modify all of his proxy creation statements as well. > > > > Is there any
Re: Queries in designing web application using gwt, spring & hibernate
Is there a way to integrate hibernate with gwt without using custom DTOs? On 25 nov, 14:50, eggsy84 <[EMAIL PROTECTED]> wrote: > Hi Amol > > I have wrote a quick tutorial on integrating the 3 technologies > > It doesn't address Hibernate4GWT or Security but it does highlight the > integration of the three technologies and one way it can be achieved: > > Part One > -http://eggsylife.blogspot.com/2007/10/well-this-tutorial-aims-at-help... > Part Two > -http://eggsylife.blogspot.com/2007/11/hibernate-spring-google-web-too... > Part Three > -http://eggsylife.blogspot.com/2008/02/hibernate-spring-google-web-too... > Part Four > -http://eggsylife.blogspot.com/2008/09/hibernate-spring-google-web-too... > > Eggsy > > On Nov 25, 6:44 am, Amol <[EMAIL PROTECTED]> wrote: > > > Hi > > I am designing a web application using GWT, spring &hibernate. I have > > some queries. > > > 1. What is the best way to submit form data? Should I use gwt form > > submit or collect parameters and invoke service method by passing in > > all form field values? > > > 2. How should I handle security aspect, for example validating each > > request and make sure only authorized user invoke services? > > > 3. How does session work with GWT? Is there any sample web > > application developed using gwt, spring andhibernatethat can guide > > me? > > > Any help will be highly appreciated > > Regards > > amol --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Configuring GWT in WepSphere Application Server
Hi, I am new to GWT, Planning to repalce a good presentaion layer alone without changing any other layer into an existing web app which is developed in JSP?servlet combination. It is confusing the GWT setup into any other server, Not sure what file is required. Requesting anyone who reply steps configuring a simple GWT example in WepSphere application. Thanks Arul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Popup center problem
Hi all, I have a little problem with the PopupPanel. There is my class : public class PopupImage implements ClickListener, PopupListener { private static PopupImage singleton = null; private PopupPanel popup = null; private PopupPanel glass = null; private Image image = null; private PopupImage() { image = new Image(); image.addStyleName("popup-image"); image.addClickListener(this); glass = new PopupPanel(false, false); glass.setStylePrimaryName("popup-glass"); popup = new PopupPanel(true, false); popup.setWidget(image); popup.addPopupListener(this); popup.setAnimationEnabled(true); } public void show(String imageURL) { image.setUrl(imageURL); glass.show(); popup.center(); } public void onClick(Widget widget) { popup.hide(); glass.hide(); } public void onPopupClosed(PopupPanel popup, boolean autoClosed) { if (autoClosed) { glass.hide(); } } public static PopupImage getInstance() { if (singleton == null) { singleton = new PopupImage(); } return singleton; } } As you can see the only way to use this class is to call : PopupImage.getInstance().show("anImageURL"); So when I use it, on the first call neither the animation nor the center method works. Indeed the image appear directly and not on the center. But when I recall the show method then all works correctly only if I use the same url, e.g the same image size's. I thought the problem was that my popup doesn't know the size of the image before showing it, and I tried to fiw this by many ways but I failed each time :'-( . Someone have an idea ? Thx. Regards, Rimimi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How to upload xml file with out writting servlet in the server side (using RPC call)
Hi ,I am very new to the GWT, I want to upload xml file using GWt in client side and pass that file name to the server side and server side API should able to read it. I don't want use servlets in the serverside only RPC i need to use.. Please help me . Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
newt functions
i want to open a pop up window using php. i have read that for this purpose we require to install the newt extensions . i have done all these things . plz help me out in understanding the concept of newt with a simple example. a simple example also works as im a webprogrammer i can easily understand . i am getting short of the example of the newt function plz help me out. thank you, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Load Testing GWT Applications
Thank you for the advise... I gave up ..i'm not trying to figure out a workaround for webload anymore because of time limitations.. although I think it is doable I prefer working on webload ;it is more like a commercial tool anyhow.. I have installed grinder and kicking off... thanks again On Nov 30, 8:54 pm, gregor <[EMAIL PROTECTED]> wrote: > I remember investigating this a bit a year ago (obviously the big > problem is the RPC calls) and at the time it looked to me that JMeter > was difficult to set up for GWT apps and didn't necessarily give > meaningful results even if you could get it to work (unfortunately I > can't remember why). However I made a note at the time that people > seemed to be having a lot more success with Grinder. > > You've probably found this post yourself already, but in case you > haven't this post suggests that you definitely can get grinder to do > the job: > > http://www.jroller.com/galina/entry/google_web_toolkit_performance_test > > regards > gregor > > On Nov 30, 10:36 am, mhm <[EMAIL PROTECTED]> wrote: > > > I'm currently selecting a load Testing Tool from several candidates: > > JMETER, GRINDER, and Webload open source. > > I actually prefered using webload but faced some problems in > > customizing my data because of RPC calls..I'm still working on a work > > around. > > > Please I need advice on which tool to use... I have searched > > extensively for a recomendation and for a tool that supports GWT, but > > did not find anything... should I keep trying with webload or forget > > it > > > I would appreciate help on this... > > > thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Statement that GWT can be used to drive the UI of entire webapp is incomplete
I'm not sure where you are going with this, but I will state that GWT's "issue" about not being indexed by search engines is hardly unique to GWT. All Ajax apps that reside on the web and dynamically produce their UI components, and shove that content into a single (or minimal) amount of pages have this issue. Site map xml and other SEO techniques are needed on any Ajax app...GWT or otherwise. On Dec 1, 9:36 am, Pradeep <[EMAIL PROTECTED]> wrote: > The correct statement is that if you want to build the UI of a webapp > that cannot be indexed by search engines only THEN you can use GWT to > drive the entire UI. Otherwise stick to jsp, html, javascript and code > it by HAND. > > Basically, I was in a state of rapture being able to write the kind of > UI that's possible using GWT without having to bother about javascript > and html. Then I realize that the thing cannot be read by search > engines because they like to browse it as "text". They see what a > browser like Lynx will see. Well, Lynx will see jack on my website so > it means all search engines see that. So that's what I have created as > far as everybody else on the internet is concerned. > > Ian Bambury's website athttp://examples.roughian.comcomes to the > rescue. I can pick ideas from there and salvage my months effort. > > What I have to do now is create a parallel structure to my website - > parallel webpages and parallel navigation. I have to use Firefox web > developer extension to inspect the pages/elements I created and write > code to create them BACK AGAIN by HAND so that they can be read by > "Lynx". > > Awesome! > > And while doing this I expose myself to the nonsense of dealing with > exposing the same content to search engines and users otherwise I get > penalized for misrepresentation. > > Double awesome! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to upload xml file with out writting servlet in the server side (using RPC call)
I believe the only way you're going to easily upload a file to a webserver is using servlets. You "could" move the XML content up to the server via an RPC call, and then on the server writing a new file to the server filesystem and stuffing the content into this new file. The problem that I can see is that if you want to have the user just point to a file on their local machine, you will have to do some serious magic to get that dragged into the web browser space. Again, fileupload and using servlets would be way easier in my opinion Why are you opposed to servlets, if I may be so bold to ask? Later, Shaffer On Dec 1, 4:04 am, Learner <[EMAIL PROTECTED]> wrote: > Hi ,I am very new to the GWT, I want to upload xml file using GWt in > client side and pass that file name to the server side and server side > API should able to read it. > I don't want use servlets in the serverside only RPC i need to use.. > Please help me . > Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Popup center problem
you need to set the size of your popup before you show/center it. glass.setSize("300","300"); On Mon, Dec 1, 2008 at 11:54 AM, Rimimi <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have a little problem with the PopupPanel. There is my class : > > public class PopupImage implements ClickListener, PopupListener { > >private static PopupImage singleton = null; >private PopupPanel popup = null; >private PopupPanel glass = null; >private Image image = null; > >private PopupImage() { >image = new Image(); >image.addStyleName("popup-image"); >image.addClickListener(this); >glass = new PopupPanel(false, false); >glass.setStylePrimaryName("popup-glass"); >popup = new PopupPanel(true, false); >popup.setWidget(image); >popup.addPopupListener(this); >popup.setAnimationEnabled(true); >} > >public void show(String imageURL) { >image.setUrl(imageURL); >glass.show(); >popup.center(); >} > >public void onClick(Widget widget) { >popup.hide(); >glass.hide(); >} > >public void onPopupClosed(PopupPanel popup, boolean autoClosed) { >if (autoClosed) { >glass.hide(); >} >} > >public static PopupImage getInstance() { >if (singleton == null) { >singleton = new PopupImage(); >} >return singleton; >} > } > > As you can see the only way to use this class is to call : > PopupImage.getInstance().show("anImageURL"); > > So when I use it, on the first call neither the animation nor the > center method works. Indeed the image appear directly and not on the > center. > But when I recall the show method then all works correctly only if I > use the same url, e.g the same image size's. > > I thought the problem was that my popup doesn't know the size of the > image before showing it, and I tried to fiw this by many ways but I > failed each time :'-( . > > Someone have an idea ? > > Thx. > > Regards, > Rimimi > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How do I separate static files?
But gregor.. The problem is with my GWT configuration... Look... I've already configurated IIS and JBoss. They are working together. So.. I've splited the Applicatoin in static and dinamic. The static is on IIS (www folder), and can be acessed on http://apl/ The dinamic is a war file on JBoss and can be acessed on http://apl/Apl So... I acess http://apl/index.html that has an GWT interface, and use a RPC (the remote service module is called "Ctrl") So... Ctrl is provided by JBoss, on http://apl/Apl/Ctrl But, when I try to execute RPC, It returns an 404 error, on exception com.google.gwt.user.client.rpc.StatusCodeException. I belive I need to do something to say that the url isn't http://apl/Ctrl. The right is http://apl/Apl/Ctrl. I think this config is on GWT application. But I don't know what I have to do. On 27 nov, 19:34, gregor <[EMAIL PROTECTED]> wrote: > Hi thitoh, > > this is off topic for this group, but it possible to do. Google > "deploy JBoss IIS" for information, e.g. > > http://www.itshastra.com/know_bank/IIS_Jboss.pdf > > Also check the JBoss forums. This link might be useful: > > http://www.jboss.org/community/docs/DOC-12526 > > regards > gregor > > On Nov 27, 6:01 pm, thitoh <[EMAIL PROTECTED]> wrote: > > > Hi... I have a Dinamic Web Project using GWT with Cypal Studio. > > I generate a .war file and deploy on JBoss. > > But now I configured my machine with 2 servers: IIS and JBoss. > > I want to put static files on IIS and the others in JBoss. > > How do I do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How do I separate static files?
The simplest thing to do would be to put your module files in your war, that way the module and your service implementation are in the same context, and you can do GWT.getModuleBaseURL()+"Ctrl"; to build your url. by placing your gwt files in IIS (using the paths you supplied) you'd have to do GWT.getModuleBaseURL()+"Apl/Ctrl"; -jason On Dec 1, 2008, at 11:43 AM, thitoh wrote: > > But gregor.. The problem is with my GWT configuration... > Look... > I've already configurated IIS and JBoss. They are working together. > So.. I've splited the Applicatoin in static and dinamic. > The static is on IIS (www folder), and can be acessed on http://apl/ > The dinamic is a war file on JBoss and can be acessed on http://apl/ > Apl > So... I acess http://apl/index.html that has an GWT interface, and use > a RPC (the remote service module is called "Ctrl") > So... Ctrl is provided by JBoss, on http://apl/Apl/Ctrl > But, when I try to execute RPC, It returns an 404 error, on exception > com.google.gwt.user.client.rpc.StatusCodeException. > I belive I need to do something to say that the url isn't http://apl/Ctrl > . > The right is http://apl/Apl/Ctrl. > I think this config is on GWT application. But I don't know what I > have to do. > > > > On 27 nov, 19:34, gregor <[EMAIL PROTECTED]> wrote: >> Hi thitoh, >> >> this is off topic for this group, but it possible to do. Google >> "deploy JBoss IIS" for information, e.g. >> >> http://www.itshastra.com/know_bank/IIS_Jboss.pdf >> >> Also check the JBoss forums. This link might be useful: >> >> http://www.jboss.org/community/docs/DOC-12526 >> >> regards >> gregor >> >> On Nov 27, 6:01 pm, thitoh <[EMAIL PROTECTED]> wrote: >> >>> Hi... I have a Dinamic Web Project using GWT with Cypal Studio. >>> I generate a .war file and deploy on JBoss. >>> But now I configured my machine with 2 servers: IIS and JBoss. >>> I want to put static files on IIS and the others in JBoss. >>> How do I do it? > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
removing attributes from FlexTables
Hi, I am running gwt-1.5.3 under linux and java-1.6.something. I have just gone through the following exercise. I created a FlexTable, added content and then was messing with the styling for the table. I decided that the default "styl" for FlexTables was not helping me so I wanted to remove it. The default styling includes "cellpadding", "cellspacing", and a ''style="width:100%; height: 100%;"'' string. I tried: Flextable body = new FlexTable(); body.setText(0, 0, ""); body.setStyleName("body"); body.getElement().removeAttribute("style"); body.getElement().removeAttribute("cellpadding"); body.getElement().removeAttribute("cellspacing"); but nothing changed. I found a thread on a slightly different topic here that used something like: DOM.removeElementAttribute(body.getElement(), "style"); DOM.removeElementAttribute(body.getElement(), "cellpadding"); DOM.removeElementAttribute(body.getElement(), "cellspacing"); This has worked. I don't know what the difference really is but FYI in case it is useful. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Scrollbar disappear in FireFox 2.0.0.18 and Chrome
I've put a grid inside a scrollPanel and the ScrollPanel in the RootPanel. The grid has a fixed size (3100px). The scrollpanel is 100% width. In hosted mode, everything's fine. Once compiled, it's ok in IE but the scrollbar disappeares in FireFox and Chrome. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT-ext or ext-GWT?
Yeah but EXT-GWT is a no go for my company because of the license On Dec 1, 11:10 am, "Miles T." <[EMAIL PROTECTED]> wrote: > On 1 déc, 14:41, "Arthur Kalmenson" <[EMAIL PROTECTED]> wrote: > > > "quick, get it out the door, I don't care that there > > aren't any test cases" > > Actually, if you look into their SVN repository, you'll see that there > are (only) a few test cases in GWT-Ext. In fact, GWT-Ext is wrapping > ExtJS and only contains a thin GWT layer, maybe it explains why there > are a few test cases. However, I agree that a good code coverage is a > sign of quality. > On the other side, there are A LOT of test cases in Ext GWT. > > > -- > > Arthur Kalmenson > > > On Thu, Nov 27, 2008 at 9:57 AM, Niklas Derouche <[EMAIL PROTECTED]> wrote: > > > > On Thu, Nov 27, 2008 at 2:52 PM, Arthur Kalmenson <[EMAIL PROTECTED]> > > > wrote: > > > >> I disagree, you don't need any exotic graphic needs to use GWT. If you > > >> want a good, functional and quick web application, you use GWT. If you > > >> want a hard to maintain, buggy and poorly (if at all) tested, slow as > > >> a snail but a nice shiny turd of a web application, you use Ext GWT. > > > > So let me see if I understod you correctly; you don't like Ext GWT? > > > Seriously, > > > not liking stuff is fine. It's more than fine as far as I am concerned. I > > > wish you > > > all the best in your future endeavours and sometime down the line when you > > > have > > > spent more than a year or two in the workplace post your degree you may > > > find > > > that you start making choices based on pragmatic weighing of pros and cons > > > and where your design ideals may take the backseat to cost and > > > time-to-market > > > factors. Your mileage will vary. > > > n. > > > -- > > > > > > I've had a wonderful time but > > > this wasn't it. > > > Groucho Marx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Lazy Loading (Tier 2 GWT Roadmap) - Status update
I'm sorta directing this to the GWT developers but... all input is welcome. The GWT Roadmap identifies "lazy loading" as a Tier 2 priority ("more complex but important"). As of today, it is the only tier to item that is not already "done" or at least "in progress". This is something my project could really use. Is there any kinda estimate that can be made as to when and if this might be started and/ or available? Lazy loading has been mentioned here and there in other topics, but I'm asking in the context of the roadmap item. Our project demonstrates a fairly common scenario where lazy-loading might be used. We have an application composed of many small-to-middle- sized modules.At the moment, we have little choice but to load all modules which is (now) somewhat large. Thanks Dave Blickstein Spiral Universe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Expecting version 4 from server, got 3. )
Hi all, Im a newbie, yes i know, kinda hard to be one, its been a while... :) I work with gwtphp for my server side, and when invoking a remote service from gwt to the php server all works like magic, but when the response goes back to the caller (my gwt app) i get the error : com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Expecting version 4 from server, got 3. ) gwt - 1.5.2 gwtphp - latest release. When using the same gwt & gwtphp on the helloworld application it works fine (the dentist legend). Thank god for you guys/gals --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: setting Label widgets in each cell of 1000row x 17col grid is too slow..
I was using firefox version 2.2, version 3.0 is about 10 times faster and so it might be fast enough now .. have yet to test it with IE. On Nov 28, 3:55 am, Thomas Broyer <[EMAIL PROTECTED]> wrote: > On 26 nov, 19:41, "JimColton" <[EMAIL PROTECTED]> wrote: > > > ..taking about 25 seconds on a 1.7ghz laptop with firefox. > > > It that length of time expected or may there be something wrong with two > > nested loops for row, col and setWidget on the grid? > > I would first try a BulkTableRenderer; if you can't (I can't see any > reason why, but...) then use an IncrementalCommand. > > Can't you also use setText instead of setLabel? If you can avoid > instanciate 17000 Label objects, it'll probably run faster too ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Lazy Loading (Tier 2 GWT Roadmap) - Status update
It's in progress under the name "runAsync" which you can search for on the GWT Contributor forum. - Isaac On Mon, Dec 1, 2008 at 2:55 PM, DaBlick <[EMAIL PROTECTED]> wrote: > > I'm sorta directing this to the GWT developers but... all input is > welcome. > > The GWT Roadmap identifies "lazy loading" as a Tier 2 priority ("more > complex but important"). As of today, it is the only tier to item > that is not already "done" or at least "in progress". > > This is something my project could really use. Is there any kinda > estimate that can be made as to when and if this might be started and/ > or available? > > Lazy loading has been mentioned here and there in other topics, but > I'm asking in the context of the roadmap item. > > Our project demonstrates a fairly common scenario where lazy-loading > might be used. We have an application composed of many small-to-middle- > sized modules.At the moment, we have little choice but to load all > modules which is (now) somewhat large. > > Thanks > > Dave Blickstein > Spiral Universe > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SecureRemoteService and Servlet. The battle against XSRF.
Reinier, Why do you advocate rewriting your web stack's session management when you could just as easily let it continue to use the cookie as long as you validate that it matches the sessionid passed up via the parameter list? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT with non-Java backend
I'm using .NET on the server (i miss Java, haven't had choice). Jayrock as JSON-RPC. And a custom implementation of JSON-RPC for GWT using RequestBuilder of course. http://jayrock.berlios.de/ On 1 dic, 15:43, Johan Rydberg <[EMAIL PROTECTED]> wrote: > Joshua Partogi skrev: > > > Dear all, > > > Has anyone worked GWT with non-Java backend (like PHP or Rails) and > > send it with AJAX Http request? Does it work good? I am wondering > > whether this is a good approach. I would appreciate any experience > > shared here. > > I've developed a GWT RPC gateway to Python on the server. It is > tightly integrated with the Twisted networking framework: > > http://code.google.com/p/twisted-gwt/ > > ~jr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Lazy Loading (Tier 2 GWT Roadmap) - Status update
...and runAsync() is already in the trunk if you are comfortable building from there (http://code.google.com/webtoolkit/ makinggwtbetter.html#workingoncode). I use it in a similar situation to what you describe and see good results. My usage so far is along the following lines: GWT.runAsync(new RunAsyncCallback() { public void onFailure(Throwable caught) {} public void onSuccess() { cssEffectTester.init(); } }); where the code associated with cssEffectTester.init() becomes a new download. I'm sure better/other patterns will come out as time progresses. There's another approach here: http://groups.google.se/group/Google-Web-Toolkit-Contributors/browse_thread/thread/eb9c8cf046cbaaf2/389ca559536c71bf?hl=sv&lnk=gst&q=runAsync#389ca559536c71bf //Adam On 1 Dec, 20:55, DaBlick <[EMAIL PROTECTED]> wrote: > I'm sorta directing this to the GWT developers but... all input is > welcome. > > The GWT Roadmap identifies "lazy loading" as a Tier 2 priority ("more > complex but important"). As of today, it is the only tier to item > that is not already "done" or at least "in progress". > > This is something my project could really use. Is there any kinda > estimate that can be made as to when and if this might be started and/ > or available? > > Lazy loading has been mentioned here and there in other topics, but > I'm asking in the context of the roadmap item. > > Our project demonstrates a fairly common scenario where lazy-loading > might be used. We have an application composed of many small-to-middle- > sized modules. At the moment, we have little choice but to load all > modules which is (now) somewhat large. > > Thanks > > Dave Blickstein > Spiral Universe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Statement that GWT can be used to drive the UI of entire webapp is incomplete
The thing is this - there are individual URLs and there are backend calls. You can browse to those URLs but you can't do a GET on them. Entire content is delivered in those backend calls in JSON which gets displayed by the web page. That's the content that should be indexed. Search engines won't make this association between URL and the backend calls, they want text. So for their benefit I have to dump those contents into an html page and thereby open a whole new pandora's box. That's the page they will oblige me by indexing and by directing users to. Then I do a redirect and send the users to a sensible web page. This is broken. I should never have attempted this. All this treachery about redirect/forward was what I wanted to get away from. But I couldn't. I didn't want to end up coding html and javascript by hand but now I have to. All over. From start to finish. This is not about optimization, this is about feasibility. I do not want a search engine optimized website. I do not want a good ranking. I want the poorest ranking. I just want the thing to get *indexed*. But I am going to have to write html and javascript by *hand* to do that. On Dec 1, 9:57 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm not sure where you are going with this, but I will state that > GWT's "issue" about not being indexed by search engines is hardly > unique to GWT. All Ajax apps that reside on the web and dynamically > produce their UI components, and shove that content into a single (or > minimal) amount of pages have this issue. Site map xml and other SEO > techniques are needed on any Ajax app...GWT or otherwise. > > On Dec 1, 9:36 am, Pradeep <[EMAIL PROTECTED]> wrote: > > > The correct statement is that if you want to build the UI of a webapp > > that cannot be indexed by search engines only THEN you can use GWT to > > drive the entire UI. Otherwise stick to jsp, html, javascript and code > > it by HAND. > > > Basically, I was in a state of rapture being able to write the kind of > > UI that's possible using GWT without having to bother about javascript > > and html. Then I realize that the thing cannot be read by search > > engines because they like to browse it as "text". They see what a > > browser like Lynx will see. Well, Lynx will see jack on my website so > > it means all search engines see that. So that's what I have created as > > far as everybody else on the internet is concerned. > > > Ian Bambury's website athttp://examples.roughian.comcomesto the > > rescue. I can pick ideas from there and salvage my months effort. > > > What I have to do now is create a parallel structure to my website - > > parallel webpages and parallel navigation. I have to use Firefox web > > developer extension to inspect the pages/elements I created and write > > code to create them BACK AGAIN by HAND so that they can be read by > > "Lynx". > > > Awesome! > > > And while doing this I expose myself to the nonsense of dealing with > > exposing the same content to search engines and users otherwise I get > > penalized for misrepresentation. > > > Double awesome! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
History and Frames
Hi, I have a simple test page: top widget is just an image, bottom widget is a Frame. I have a History listener setup which simply does "Window.alert (token)" whenever the history changes. If I add a link to the top of the page and click on it, then I get the window alert so I know that the history listener is setup and working. However, if I fill the frame widget with a web page, then in that page click on a link, I don't get any history alerts. The api docs for Frame state: "Note that if you are using History, any browser history items generated by the Frame will interleave with your application's history." To me that means that I should be getting history events in my listener for links that are clicked on in a Frame widget, but I don't get them. I am using GWT 1.5.3 on linux. Does anybody have any tips / tricks/ docs to correct this? Thanks for your time... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SecureRemoteService and Servlet. The battle against XSRF.
Hmm.. I ve a stupid question now.. Can't we use RemoteServiceServlet.getThreadLocalRequest().getSession() to get the current session? I found 'using the session' working in GWT 1.5. On Dec 1, 9:31 am, jhulford <[EMAIL PROTECTED]> wrote: > Another thing you can do in order to always send your session > identifier as part of your request is use the RequestBuilder and add > the identifier as a request header. > > RequestBuilder requestBuilder = new RequestBuilder("POST", "/ > myServletUrl"); > RequestBuilder.setHeader("X-Session-Id", mySessionIdFromCookie); > > On Dec 1, 8:31 am, gregor <[EMAIL PROTECTED]> wrote: > > > Hi Patrick, > > > I think you probably want to call the static async instance according > > to usual RPC protocol, i.e. in this case SecureRemoteServiceAsync, > > otherwise you might get confused as to what's going on > > > > --- Code, I hope this formats reasonably in the post. --- > > > public interface SecureRemoteService extends RemoteService { > > > > /** > > > * Utility/Convenience class. > > > * Use SecureRemoteService.Async.getInstance() to access static > > > instance of IpsvRmapServiceAsync > > > */ > > > public static class SecureRemoteServiceAsync { > > > private static Async ourInstance = null; > > > > public static synchronized SecureRemoteServiceAsync > > > getInstance() { > > > if (ourInstance == null) { > > > ourInstance = (SecureRemoteServiceAsync) > > > GWT.create(SecureRemoteService.class); > > > } > > > return ourInstance; > > > } > > > > public void setServiceEntryPoint(String entryPoint) { > > > // This is where the magic happens. > > > ((ServiceDefTarget) > > > ourInstance).setServiceEntryPoint > > > (GWT.getModuleBaseURL() + entryPoint + "?sessionID=" + getSessionID > > > ()); > > > } > > > > private String getSessionID() { > > > // Do stuff to get sessionID > > > return "SessionID"; > > > } > > > }} > > > > --- End of code --- > > > Then you use it like so in code: > > > SecureRemoteServiceAsync async > > = SecureRemoteServiceAsync.App.getInstance(); // > > the URL will now have the SessionID param > > async.someMethod(param, new secureRemoteServiceCallback()); > > > Note that this does not work across the board, you have to do this > > once for each RPC service separately (i.e. once per RPC service > > interface declared), but if you extend RemoteServiceServlet and > > override the processCall() method to grab and check sesionID > > parameter, then use this extended RemoteServiceServlet this for all > > your RPC services, they will all validate the sessionID. > > > I guess it's a matter of taste and situation, but I think I prefer the > > second method (the Command pattern variation) becasue a) if you want > > to change the way you handle this session thing, you just do it the > > Payload base class and the extended RemoteServiceServlet.processCall > > (), you do not have to change all your RPC Async interfaces and b) > > this Payload pattern is useful for a lot of other reasons in handling > > objects over the wire. I think it deals with the XSRF issue too (but > > I'm sure Reinier will nail me to wall again if wrong!) > > > regards > > gregor > > > > From what I can see, this should work if the interface extends the > > > SecureRemoteService instead of the normal one. However, to properly > > > create an instance of this class, the programmer now has to do > > > something different from the normal procedure. Instead of calling the > > > normal GWT.create(someService.class) and casting it to the Async > > > version, he has to call on GWT.create(someService.Async.class). This > > > means he has to modify all of his proxy creation statements as well. > > > > Is there any way to get around this? > > > > Thanks, Patrick > > > > PS: Graag gedaan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
JDBC/MySQL Driver error
Hi, I am receiving the following error when i run GWT in hosted mode: SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ catering SQLState: 08001 VendorError: 0 I connect to my database fine when I run in eclipse so I am guessing I am missing some sort of JAR or XML file in TomCat. Please can someone point out where I am going wrong. I will be grateful for any advice! Regards, Jack --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Debug problem
Hi Scooter, This is most likely an issue related to the recent NetBeans upgrade you just performed. I recommend checking out the NetBeans user mailing lists to see if anyone else has experienced anything similar. NetBeans mailing list: http://www.netbeans.org/community/lists/top.html#top Hope that helps, -Sumit Chandel On Sat, Nov 29, 2008 at 5:29 AM, Scooter <[EMAIL PROTECTED]> wrote: > > I debug using netbeans and recently updated to 6.5 and tested GWT > support for debug etc. Everything worked as expected. > > Today for some reason when I go and debug by right clicking debug on > the project in netbeans the normal process begins and the GWT shell > and browser startup. Then the operating system prompts me to open or > save the html file. When I select open it is loaded in the default web > browser. The GWT browser URL is empty and if I type in the expected > URL into the GWT broswer and hit GO I get the same popup. > > It could be netbeans 6.5 related but it was working after the upgrade > and when I ran in 6.1 I get the same behavior as in 6.5 but they are > both sharing the same project directory. > > Has anyone else seen this problem? > > Any suggestions? > > Thanks > > Scooter > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Statement that GWT can be used to drive the UI of entire webapp is incomplete
But again I repeat: your beef is with AJAX as a whole. GWT doesn't make the issue you've described better or worse. It is endemic of all AJAX based technologies. That's my only point on the topic. On Dec 1, 2:24 pm, Pradeep <[EMAIL PROTECTED]> wrote: > The thing is this - there are individual URLs and there are backend > calls. You can browse to those URLs but you can't do a GET on them. > Entire content is delivered in those backend calls in JSON which gets > displayed by the web page. That's the content that should be indexed. > Search engines won't make this association between URL and the backend > calls, they want text. So for their benefit I have to dump those > contents into an html page and thereby open a whole new pandora's box. > That's the page they will oblige me by indexing and by directing users > to. Then I do a redirect and send the users to a sensible web page. > > This is broken. I should never have attempted this. > > All this treachery about redirect/forward was what I wanted to get > away from. But I couldn't. > > I didn't want to end up coding html and javascript by hand but now I > have to. All over. From start to finish. > > This is not about optimization, this is about feasibility. I do not > want a search engine optimized website. I do not want a good ranking. > I want the poorest ranking. I just want the thing to get *indexed*. > But I am going to have to write html and javascript by *hand* to do > that. > > On Dec 1, 9:57 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > I'm not sure where you are going with this, but I will state that > > GWT's "issue" about not being indexed by search engines is hardly > > unique to GWT. All Ajax apps that reside on the web and dynamically > > produce their UI components, and shove that content into a single (or > > minimal) amount of pages have this issue. Site map xml and other SEO > > techniques are needed on any Ajax app...GWT or otherwise. > > > On Dec 1, 9:36 am, Pradeep <[EMAIL PROTECTED]> wrote: > > > > The correct statement is that if you want to build the UI of a webapp > > > that cannot be indexed by search engines only THEN you can use GWT to > > > drive the entire UI. Otherwise stick to jsp, html, javascript and code > > > it by HAND. > > > > Basically, I was in a state of rapture being able to write the kind of > > > UI that's possible using GWT without having to bother about javascript > > > and html. Then I realize that the thing cannot be read by search > > > engines because they like to browse it as "text". They see what a > > > browser like Lynx will see. Well, Lynx will see jack on my website so > > > it means all search engines see that. So that's what I have created as > > > far as everybody else on the internet is concerned. > > > > Ian Bambury's website athttp://examples.roughian.comcomestothe > > > rescue. I can pick ideas from there and salvage my months effort. > > > > What I have to do now is create a parallel structure to my website - > > > parallel webpages and parallel navigation. I have to use Firefox web > > > developer extension to inspect the pages/elements I created and write > > > code to create them BACK AGAIN by HAND so that they can be read by > > > "Lynx". > > > > Awesome! > > > > And while doing this I expose myself to the nonsense of dealing with > > > exposing the same content to search engines and users otherwise I get > > > penalized for misrepresentation. > > > > Double awesome! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: For what this files?
Hi rov.ciso, I'm not very familiar with GWT-Ext, but I imagine the generated output consists of the CSS file containing the styles applied in your application and the JavaScript files necessary to realize the application itself. Similar to the standard GWT application bootstrap model, you probably need to include an emitted .nocache.js file generated in the js directory in your host HTML page to load up your GWT application. It's possible that the bootstrap procedure and load up convention differ in GWT-Ext, in which case I recommend posting up about the problem on the GWT-Ext forums (link below). GWT-Ext forums: http://groups.google.com/group/gwt-ext Hope that helps, -Sumit Chandel On Sat, Nov 29, 2008 at 2:03 PM, rov.ciso <[EMAIL PROTECTED]> wrote: > > I compile my GWT application with gwt-ext. After that gwt create some > files: > GwtExt.css > js Directory > But I don't use this files in my HTML file. For what this file? > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem with the import java.security.*;
Hi Phani, I can confirm that the java.security package is not supported in GWT. Keep in mind that GWT is for Ajax application development on the client-side, so all code gets cross-compiled from Java to obfuscated and optimized JavaScript that can run in the browser. Therefore, you are bound by the same browser limitations as any other Ajax framework, hence java.security functionality not being available on the client. What you could do to solve the unique number generation problem in the code snippet above is have it run on the server and pass back the number to the client through a GWT RPC call or a RequestBuilder callback. For more information on either technique, check out the GWT docs linked below. GWT Developer Guide: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=google-web-toolkit-doc-1-5 Hope that helps, -Sumit Chandel On Sat, Nov 29, 2008 at 3:35 PM, medgey <[EMAIL PROTECTED]> wrote: > > If you are trying to use the java.security package on the client it is > unlikely that GWT supports them. > > On Nov 28, 6:08 am, Phani <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > In my application i have to implement a unique number generation i.e > > UUID using SecureRandom class of java.security package. Please refer > > the below code. > > try { > > // Create a secure random number generator > > SecureRandom sr = SecureRandom.getInstance("SHA1PRNG"); > > // Get 1024 random bits > > byte[] bytes = new byte[1024/8]; > > sr.nextBytes(bytes); > > > > // Create two secure number generators with the same seed > > int seedByteCount = 10; > > byte[] seed = sr.generateSeed(seedByteCount); > > sr = SecureRandom.getInstance("SHA1PRNG"); > > sr.setSeed(seed); > > SecureRandom sr2 = SecureRandom.getInstance("SHA1PRNG"); > > sr2.setSeed(seed); > > } catch (NoSuchAlgorithmException e) { > > } > > But i'm facing a problem stating that java.security cannot be resolved > > to a type. Please help me.Whether GWT doesn't support java.security > > package? > > Thanks in Advance, > > Phani. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT DateTimeFormat Bug?
I am using the com.google.gwt.i18n.client.DateTimeFormat.parse method to parse data from thmy RSS feed. I am having a problem because we want all of our RSS feed dates to be in GMT-00:00 and it is throwing an error when my current time zone(GMT-07:00) is on Dec 01 and the dateTime it is parsing is on Dec 02. An example of the code is as follows: DateTimeFormat dtf = DateTimeFormat.getFormat("EEE, dd MMM HH:mm:ss "); pubDate = dtf.parse(node.getFirstChild().getNodeValue().replace("GMT", "GMT-00:00").replace("Z", "GMT-00:00")); java.lang.IllegalArgumentException: Tue, 02 Dec 2008 06:24:49 GMT-00:00 at com.google.gwt.i18n.client.DateTimeFormat.parse (DateTimeFormat.java:1120) at com.google.gwt.i18n.client.DateTimeFormat.parse (DateTimeFormat.java:601) Which should parse to Mon, 01 Dec 2008 11:24:49 GMT-07:00 Also, can anyone tell me why GMT, Z or UTC are not in the time zone abbreviations? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Compilation Problem
Hi Sandile, Are you running into compiler problems as a result of a recent upgrade to GWT 1.5.3? If not, can you try compiling the sample applications in the GWT distribution to see if those work? I'm not able to reproduce the problem here, so we'll have to narrow it down to what's happening on your end. It could either be a forgotten step while upgrading to 1.5.3 or incorrect code that isn't behaving like you expected. Cheers, -Sumit Chandel On Thu, Nov 27, 2008 at 3:16 PM, Sandile <[EMAIL PROTECTED]> wrote: > > I get an error every time that I try to compile my code: > > [ERROR] Errors in 'jar:file:/C:/dev/gwt-windows-1.5.3/gwt- > windows-1.5.3/gwt-dev-windows.jar!/com/google/gwt/dev/jjs/intrinsic/ > com/google/gwt/lang/Stats.java' > > [ERROR] Missing message: compilation_internalError in: > org.eclipse.jdt.internal.compiler.messages > java.lang.NullPointerException > >at com.google.gwt.dev.javac.JdtCompiler > $CompilationUnitAdapter.getContents(JdtCompiler.java:65) > >at > org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java: > 9236) > >at > org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java: > 9208) > >at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse > (Parser.java:7864) > >at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile > (Compiler.java:587) > >at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile > (Compiler.java:357) > >at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: > 371) > >at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile > (AbstractCompiler.java:84) > >at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile > (AbstractCompiler.java:180) > >at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access$400 > (AbstractCompiler.java:70) > >at com.google.gwt.dev.jdt.AbstractCompiler.compile > (AbstractCompiler.java:493) > >at > > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations > (WebModeCompilerFrontEnd.java:73) > >at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler. > (JavaToJavaScriptCompiler.java:277) > >at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:353) > >at com.google.gwt.dev.GWTShell.compile(GWTShell.java:639) > >at com.google.gwt.dev.GWTShell$BrowserWidgetHostImpl.compile > (GWTShell.java:220) > > [ERROR] java.lang.NullPointerException > java.lang.NullPointerException: null >at com.google.gwt.dev.javac.JdtCompiler > $CompilationUnitAdapter.getContents(JdtCompiler.java:65) >at > org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java: > 9236) >at > org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java: > 9208) >at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse > (Parser.java:7864) >at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile > (Compiler.java:587) >at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile > (Compiler.java:357) >at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: > 371) >at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile > (AbstractCompiler.java:84) >at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile > (AbstractCompiler.java:180) >at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access$400 > (AbstractCompiler.java:70) >at com.google.gwt.dev.jdt.AbstractCompiler.compile > (AbstractCompiler.java:493) >at > > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations > (WebModeCompilerFrontEnd.java:73) >at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler. > (JavaToJavaScriptCompiler.java:277) >at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:353) >at com.google.gwt.dev.GWTShell.compile(GWTShell.java:639) >at com.google.gwt.dev.GWTShell$BrowserWidgetHostImpl.compile > (GWTShell.java:220) >at com.google.gwt.dev.GWTShell$BrowserWidgetHostImpl.compile > (GWTShell.java:227) >at com.google.gwt.dev.shell.BrowserWidget$Toolbar.widgetSelected > (BrowserWidget.java:132) >at org.eclipse.swt.widgets.TypedListener.handleEvent > (TypedListener.java:90) >at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) >at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) >at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: > 3348) >at > org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) >at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) >at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) >at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) > > Somebody please explain and/or help! > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups
Re: Compilation Problem
Hi Rahul, When editing your sources in Eclipse, do you first refresh the hosted mode browser before hitting Compile / Browse, or go straight to Compile / Browse? If you are skipping the refresh step, it's possible that that's what responsible for the NullPointerException you're encountering. In fact, I've reproduced a similar error on my side by doing just that. However, it does seem like the right thing that should take place would be the hosted mode console warning the user that they didn't refresh, or better still have hosted mode perform an implicit refresh when necessary. We should create an issue report to track this problem. Feel free to create a new report on the Issue Tracker (link below): http://code.google.com/p/google-web-toolkit/issues/list Hope that helps, -Sumit Chandel On Sat, Nov 29, 2008 at 6:14 PM, rahul <[EMAIL PROTECTED]> wrote: > > I am seeing the same issue with 1.5.3. > > I am seeing a NullPointerException when I edit my app sources in > Eclipse and use the Compile/Browse option in the Hosted browser. > > Rahul > > > On Nov 28, 12:16 pm, Sandile <[EMAIL PROTECTED]> wrote: > > I get an error every time that I try to compile my code: > > > > [ERROR] Errors in 'jar:file:/C:/dev/gwt-windows-1.5.3/gwt- > > windows-1.5.3/gwt-dev-windows.jar!/com/google/gwt/dev/jjs/intrinsic/ > > com/google/gwt/lang/Stats.java' > > > > [ERROR] Missing message: compilation_internalError in: > > org.eclipse.jdt.internal.compiler.messages > > java.lang.NullPointerException > > > > at com.google.gwt.dev.javac.JdtCompiler > > $CompilationUnitAdapter.getContents(JdtCompiler.java:65) > > > > at > org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java: > > 9236) > > > > at > org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java: > > 9208) > > > > at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse > > (Parser.java:7864) > > > > at > org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile > > (Compiler.java:587) > > > > at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile > > (Compiler.java:357) > > > > at > org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: > > 371) > > > > at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile > > (AbstractCompiler.java:84) > > > > at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile > > (AbstractCompiler.java:180) > > > > at > com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access$400 > > (AbstractCompiler.java:70) > > > > at com.google.gwt.dev.jdt.AbstractCompiler.compile > > (AbstractCompiler.java:493) > > > > at > > > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio > ns > > (WebModeCompilerFrontEnd.java:73) > > > > at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler. > > (JavaToJavaScriptCompiler.java:277) > > > > at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:353) > > > > at com.google.gwt.dev.GWTShell.compile(GWTShell.java:639) > > > > at com.google.gwt.dev.GWTShell$BrowserWidgetHostImpl.compile > > (GWTShell.java:220) > > > > [ERROR] java.lang.NullPointerException > > java.lang.NullPointerException: null > > at com.google.gwt.dev.javac.JdtCompiler > > $CompilationUnitAdapter.getContents(JdtCompiler.java:65) > > at > org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java: > > 9236) > > at > org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java: > > 9208) > > at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse > > (Parser.java:7864) > > at > org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile > > (Compiler.java:587) > > at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile > > (Compiler.java:357) > > at > org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: > > 371) > > at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile > > (AbstractCompiler.java:84) > > at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile > > (AbstractCompiler.java:180) > > at > com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access$400 > > (AbstractCompiler.java:70) > > at com.google.gwt.dev.jdt.AbstractCompiler.compile > > (AbstractCompiler.java:493) > > at > > > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio > ns > > (WebModeCompilerFrontEnd.java:73) > > at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler. > > (JavaToJavaScriptCompiler.java:277) > > at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:353) > > at com.google.gwt.dev.GWTShell.compile(GWTShell.java:639) > > at com.google.gwt.dev.GWTShell$BrowserWidgetHostImpl.compile > > (GWTShell.java:220) > > at com.google.gwt.dev.GWTShell$BrowserWidgetHostImpl.compile > > (GWTShell.java:227) > > at com.google.gwt.dev.shell.Brows
Re: TextArea cannot be resolved to a type
Hi Moe, In addition to Reinier's suggestions, you could also try using JSONP or a mashup service depending on how much control you have over the servers hosting the external URLs that you are requesting from. You can read more about the technique on Dan Morrill's article on the subject (link below), which I've personally been meaning to update. If you have access to the external server that you want to interoperate with, you could potentially create a mashup service that your main application could use through the JSONP technique. "Using GWT for JSON Mashups": http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=Article_UsingGWTForJSONMashups Hope that helps, -Sumit Chandel On Sat, Nov 29, 2008 at 4:33 PM, Reinier Zwitserloot <[EMAIL PROTECTED]>wrote: > > Do it on the server. > > If that is no option, write desktop software (something you install > and that doesn't run in a browser at all). You can also use web based > platforms that allow signing / trusting, such as applets, but be aware > that users will need to hand the keys to the kingdom to your app, and > in general, the vomitous stream of text filled with red, screamy > words, and dangerous looking symbols in the popup that shows up when > you ask for this trust makes users have a mild heart infarction, and > blame you for it. > > > On Nov 29, 9:06 pm, moe374 <[EMAIL PROTECTED]> wrote: > > Thank you for your response. I did actually find the getText() and > > setText() methods before writting this, I was just a little unsure as > > to how to implement them. the URL feature is an essential element of > > the program I am trying to write. Since I can't do this with GWT and I > > can't do this using an applet either (applets can only connect to the > > same server as well i believe), I think I have hit a dead end. What > > other options do I have? What do you recommend I use to create this > > type of web application? > > Thanks for your help. > > > > On Nov 29, 11:40 am, Reinier Zwitserloot <[EMAIL PROTECTED]> wrote: > > > > > Go through the GWT Getting started guide. You've screwed up your > > > installation somehow, or you're not using the right command line. It's > > > not a matter of code, it's just that some tool in the chain can't find > > > the TextArea class code. > > > > > For the rest - really, this is a forum, not a university. Just go > > > through the getting started guide and learn GWT. You should also have > > > a look at the javadoc for all GWT classes. For example, the TextArea > > > javadoc has a getText() method, and a setText() method. > > > > > You can not use URL in GWT. The GWT Documentation (Notice a pattern?) > > > has a nice listing of which classes are supported. java.net.* is not > > > in it. This isn't because the GWT team is lazy, it's simply because > > > javascript simply can't do this, so there's no way the GWT compiler > > > can compile that code for you. > > > > > If the URL you want to read in is from the same server that served the > > > webpage (the EXACT same server. Same protocol, same exact server name, > > > same port), then you can use RequestBuilder (A GWT class. Look it up > > > in the .. (drum roll please!) documentation!) which is > > > capable of downloading the contents. On the web, you can pretty much > > > only ever download everything in one go, there are no streams, just > > > complete data. If you need to process a couple megabytes on the > > > client... you're out of luck, then. Maybe your server can download the > > > big data in chunks and pass it to the client in a flurry of requests > > > instead. > > > > > On Nov 29, 7:50 am, moe374 <[EMAIL PROTECTED]> wrote: > > > > > > Hello. I have just begun learning java (about 2 months ago) and am > now > > > > trying to develop a couple applications for the web using java and > the > > > > GWT. I am having some difficulty and hoping someone can help me out. > > > > My first problem I am having is I am getting this error message > > > > "TextArea cannot be resolved to a type" when I am trying to create a > > > > text area. I get the error message twice, and for the same line in my > > > > code which is > > > > > > TextArea ta = new TextArea(); > > > > > > Is there a line (or multiple lines) of code I have to implement > before > > > > I can implement the TextArea object? > > > > > > Also, I need to allow the user to paste some information into this > > > > text box and allow me to store that information in a variable, and > > > > then do something with the information, and then output some > > > > information to the user (even in the same text box is fine). Can some > > > > one please help me get started on this? > > > > > > Finally, I was wondering if the GWT supports reading the HTML file of > > > > a URL, which would normally be done by something like this: > > > > > > URL results = new URL("http://www.some-url.com";); > > > > > > BufferedReader in2 = new BufferedReader( > > > >
Re: FileUpload and Chrome
Hi Michel, It seems like this is a problem specific to Google Chrome (see Issue #1269 or search for others like it on the Chromium Issue Tracker). One way to make sure is to test out your FileUpload widget in Safari to make sure this isn't a more fundamental problem (unlikely). Issue #1269: http://code.google.com/p/chromium/issues/detail?id=1269 I would recommend starring the issue to keep an eye out for updates and fixes. Hope that helps, -Sumit Chandel On Sat, Nov 29, 2008 at 11:58 PM, Michel <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a panel with a FileUpload widget. It works fine in hosted mode, > Internet Explorer and Mozilla, but not in Chrome. In Chrome, it looks > slightly different, and the upload fails at the server end. In the > others, the upload works just fine. > > > In the other browsers (ie not Chrome), the panel shows a box, in which > the filename appears after I have selected it from the filesystem. > Next to that there is a button, labelled 'BROWSE'. Under that is the > submit button. > > In Chrome, there is a label, which says 'Choose File' and next to > that, it says 'No file chosen'. So there isn't the usual box. > Underneath that is again the submit button. I can choose a file in > Chrome in the usual way (by pressing Choose File), but then if I > submit it, the upload fails on the server end, with the following > error: > > > org.apache.commons.fileupload.FileUploadException: Processing of > multipart/form- > data request failed. Connection reset >at org.apache.commons.fileupload.FileUploadBase.parseRequest > (FileUploadB > ase.java:384) >at > org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest( > ServletFileUpload.java:116) >at ac.otago.flags.server.FileUploadServlet.doPost > (FileUploadServlet.java > :74) >at javax.servlet.http.HttpServlet.service(HttpServlet.java: > 710) >at javax.servlet.http.HttpServlet.service(HttpServlet.java: > 803) >at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > icationFilterChain.java:290) >at org.apache.catalina.core.ApplicationFilterChain.doFilter > (ApplicationF > ilterChain.java:206) > > > My DoPost method in the upload servlet looks like this (as far as it > gets) > > protected void doPost(HttpServletRequest request, >HttpServletResponse response) throws > ServletException, IOException > { > >try { >ServletRequestContext ctx = new > ServletRequestContext(request); > >if (ServletFileUpload.isMultipartContent(ctx) == > false) { >sendResponse(response, new FormResponse( > > HttpServletResponse.SC_INTERNAL_SERVER_ERROR, >"The servlet can only handle > multipart requests." >+ " This is > probably a software bug.")); >return; >} > >// Create a new file upload handler >ServletFileUpload upload = new ServletFileUpload( >new DiskFileItemFactory()); > >// Parse the request >List items = upload.parseRequest(request); > > > And this final line throws the exception. (It's line 74) > > > I have posted this question on apache commons forum, but go no > response. > > > Why would this happen in Chrome, or how can I proceed to solve this > problem? > > > Thank you for your help, > > > Michel > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
getThreadLocalRequest() is returning Null request
Hello All, I have one servlet for login, which sets the session id in cookies, then I have different services to be called after user is logged in. I have one service which gets user preferences another service which gets all the products which a user would like to buy etc. When I try to validate the session against first service (getUserPrefrences) by this String sessionId = this.getThreadLocalRequest().getSession().getId(); I get a sessionId do the validation on it and everything works fine, when I try calling another service (getProducts) getThreadLocalRequest () returns null request and I get a null pointer exception. Can someone please help me with this. Thanks for all the help and support. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Interesting question:how can I get the rownumber of a cell that contain a button when I click this ?
Remember: no pre-condition,no external variable that defined the location of this button. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: javascript error getBoxObjectFor ?
Hi Ed, I haven't seen too many posts about Selenium testing going wrong in GWT, but from the issue report linked in the thread you mentioned above it seems that developers who are writing Selenium tests and using GWT RPC would have experienced the issue described therein. According to the issue, however, the workaround was to use the -style PRETTY or DETAILED flag when running the compiler, but it seems like that isn't working in your case. In fact, it seems that the issue you're experiencing has a different root cause all together (please correct me if I'm wrong). In the output you pasted above, the line: "function BBc(a)" leads me to believe that this is obfuscated code that is breaking when running the Selenium tests. When you mentioned that using -style PRETTY didn't work, do you mean that the error message still contained the garbled "function BBc(a)" or that it was just the same error again? If it is the latter, the output should be more humanly readable and I should be able to infer a bit more about where this code is being called. As it is, I'm not sure I have enough info to pass along to figure out what's going on. Please let me know if you were able to get -PRETTY output and an error message with meaningful function and variable names. Hope that helps, -Sumit Chandel In your case, however, it seems like the issue has a different root cause (please correct me if I'm wrong). On Fri, Nov 28, 2008 at 10:22 AM, Ed <[EMAIL PROTECTED]> wrote: > > He Summit, > > Browser: FF 2 (latest update). > I was trying this the last few days, but get the exact same error as > in this issue, so pretty mode isn't an option yet till 1.6 comes out: > > http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/5d6a9c448a82b916/af62e5877237b107?lnk=raot > > Can you give me some details why and when this method is called ? (I > noticed it in the gwt source code, but it's a bit unclear when/how > it's used). > Is this a common error as far as you know ? > > -- Ed > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is Run Time Annotation Possible?
Is it it only support your annotation ? ->com.gwtent.client.test.annotations. On Mon, Dec 1, 2008 at 6:22 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > You can have a look the Wiki page : > http://code.google.com/p/gwt-ent/wiki/UseReflection > need include GWT-ENT module into your project. > then include "Reflection" flag interface into your class > ClassType classType = TypeOracle.Instance.getClassType > (YourClass.class); > > done :) > > On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote: >> Do you want to configure anything in order to make class the following >> code work? >> Test.class.getAnnotation(Id.class); >> >> On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED] >> >> <[EMAIL PROTECTED]> wrote: >> >> > Sorry, what do you mean? My English is not so good, but If you got any >> > question, please welcome to ask me :D >> > James >> >> > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote: >> >> How do you make the com.gwtent.client.test.annotations.Id to be >> >> understandable by GWT? >> >> >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED] >> >> >> <[EMAIL PROTECTED]> wrote: >> >> >> > Hi, zujee, >> >> >> > I have a reflection implement for GWT client code, and it support >> >> > get Annotation's value at runtime. >> >> >> > http://code.google.com/p/gwt-ent/ >> >> > The test case: >> >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/... >> >> >> > Hope that helps :) >> >> > James >> >> >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote: >> >> >> Hi experts, >> >> >> I have an interface which extends ImmutableResourceBundle >> >> >> >> and inside that >> >> >> @Resource("com/MyPath/MyConstants.properties") >> >> >> public abstract TextResource properties(); >> >> >> >> and its working fine. >> >> >> but I need to change the filename after reading the XML file . >> >> >> eg: >> >> >> >> >> >> MyConstants_C1.properties >> >> >> >> >> >> >> from that I need to set the reosuece path as >> >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is >> >> >> that possible? >> >> >> >> thanks and regards >> >> >> Zujee > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is Run Time Annotation Possible?
No, any annotations On Dec 2, 1:00 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote: > Is it it only support your annotation ? ->com.gwtent.client.test.annotations. > > On Mon, Dec 1, 2008 at 6:22 PM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > You can have a look the Wiki page > > :http://code.google.com/p/gwt-ent/wiki/UseReflection > > need include GWT-ENT module into your project. > > then include "Reflection" flag interface into your class > > ClassType classType = TypeOracle.Instance.getClassType > > (YourClass.class); > > > done :) > > > On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote: > >> Do you want to configure anything in order to make class the following > >> code work? > >> Test.class.getAnnotation(Id.class); > > >> On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED] > > >> <[EMAIL PROTECTED]> wrote: > > >> > Sorry, what do you mean? My English is not so good, but If you got any > >> > question, please welcome to ask me :D > >> > James > > >> > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote: > >> >> How do you make the com.gwtent.client.test.annotations.Id to be > >> >> understandable by GWT? > > >> >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED] > > >> >> <[EMAIL PROTECTED]> wrote: > > >> >> > Hi, zujee, > > >> >> > I have a reflection implement for GWT client code, and it support > >> >> > get Annotation's value at runtime. > > >> >> > http://code.google.com/p/gwt-ent/ > >> >> > The test case: > >> >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/... > > >> >> > Hope that helps :) > >> >> > James > > >> >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote: > >> >> >> Hi experts, > >> >> >> I have an interface which extends ImmutableResourceBundle > > >> >> >> and inside that > >> >> >> @Resource("com/MyPath/MyConstants.properties") > >> >> >> public abstract TextResource properties(); > > >> >> >> and its working fine. > >> >> >> but I need to change the filename after reading the XML file . > >> >> >> eg: > >> >> >> > >> >> >> MyConstants_C1.properties > >> >> >> > > >> >> >> from that I need to set the reosuece path as > >> >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is > >> >> >> that possible? > > >> >> >> thanks and regards > >> >> >> Zujee --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: getThreadLocalRequest() is returning Null request
what RPC servlet class you derive? directly use com.google.gwt.user.server.rpc.RemoteServiceServlet or others 3rd party rpc servlet like HibernateRemoteService(from Hibernate4GWT) or gwt-sl ? if you using RemoteServiceServlet, it should get result. On Dec 2, 9:05 am, sim123 <[EMAIL PROTECTED]> wrote: > Hello All, > > I have one servlet for login, which sets the session id in cookies, > then I have different services to be called after user is logged in. I > have one service which gets user preferences another service which > gets all the products which a user would like to buy etc. When I try > to validate the session against first service (getUserPrefrences) by > this > > String sessionId = this.getThreadLocalRequest().getSession().getId(); > > I get a sessionId do the validation on it and everything works fine, > when I try calling another service (getProducts) getThreadLocalRequest > () returns null request and I get a null pointer exception. Can > someone please help me with this. > > Thanks for all the help and support. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
IncompatibleRemoteServiceException : This application is out of date, please click the refresh button on your browser. ( Could not locate requested method
I implemented an RPC similar to ones i ve implemented before, but when I try to call it i get the following below. Could this be a bug please? [WARN] StandardContext[]An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Could not locate requested method 'getLoginDetails()' in interface 'com.scan_associates.policy.client.PolicyService' ) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:293) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:163) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) ... My implementation code is as follows: public class PolicyServiceImpl extends RemoteServiceServlet implements PolicyService { public LoginDetailsTransferObject getLoginDetails() { LoginDetailsTransferObject loginDetailsTO = new LoginDetailsTransferObject(); try { LoginDetails loginDetails = new LoginDetailsData().get(); loginDetailsTO.setLoginDetails(loginDetails); } catch (SQLException e) { e.printStackTrace(); } return loginDetailsTO; } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Integrating draw2d with Gwt
Hello Iam new to Gwt and draw2d Apis. I want to integrate draw2d api which gives us 2d graphic widgets and enables us to build our own applications. It was developed on javascript. My Question is how can I integrate Gwt with draw2d so that I can use all the features of draw2d in my Gwt application. Please reply me as soon as possible, as I struck at this point. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---