Encode URL in ISO-8859-1
Hello, I have a GWT app that must open a new window to display a PDF. The PDF is sent by a server that must receive GET URLs with parameters encoded in ISO-8859-1 for special caracters. My problem is that I don't know how to encode this URL in GWT client side. I've found URL.encode but it encodes in UTF-8 and the server does not understand it. I cannot change the server, it is in production with several other services using it... Does any one have an idea ? 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Catching Key event in popup
I've got a GWT app with a login step. user enter its login/pass then press enter or login button to perform login action. If login is invalid a popup signals an error. I want to be able to close the popup when user press ok button or when he hits Esc or Enter. I've added a onPreviewNativeEvent method to catch the event public void onPreviewNativeEvent (NativePreviewEvent event) { int keyCode = event.getNativeEvent().getKeyCode(); if ((KeyCodes.KEY_ENTER == keyCode) || (KeyCodes.KEY_ESCAPE == keyCode)){ btnOk.click(); } } It is working fine but the Enter Key is not totaly catched so once the popup is closed the Ok button (for login action) is also triggered so an other popup is open. I try to consume or cancel the event calling event.consume(); or event.cancel(); but I don't see any effect. 1th question what are the effect of - consume and cancel ? 2nd question how can I definitivelly cancel an event to be sure that no other component will handle it ? 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Detecting blocked RPC
In fact there where an error in the called URL we forget to add at the end of the URL the RPC servlet url-pattern. So In post we where just asking the index... Now this have been corrected, we have an answer which is 405 or 500 depending on how we construct the CURL or WGET request. So we still need to understand what is wrong. Too answer to you point, yes we are sure that we have a problem in our servlet because this one is blocked while tomcat can still serve index.html, images or other servlets. Actually we are not able to debug it because the are no logs in our log4j or in tomcat logs signalling that there is something wrong. More over we have this problem at a frequency than less 1 per month and only in production environnement so it is not easy to find the reason. Next time I will ty a kill -3 on the tomcat to look if there is some blocked threads. Actually we are just trying to detect it as soon as possible to be able to restart the application (if possible before a cusomer detects it). I totally agree that it is not clean and a definitive solution but in a first time we are trying to not create disappointment with our customers. -- 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Catching Key event in popup
I've got it ! Just need to call event.getNativeEvent().stopPropagation(); Well I still don't understand what are consume and cancel ! -- 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Catching Key event in popup
No in fact it doesn't works. More over Firefox and IE does not handle events in the same way so when the behaviour is ok in Firefox it doesn't work on IE and inversement. WebApp makes me going crasy ! -- 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Detecting blocked RPC
We've noticed on our application that sometime some RPC does not answer. When we load the index.html every this is correctly started, but when user try to login = send an RPC to check is user/pass he never receive an answer. Actually we didn't have a clue why we do not have answer and the only thing we found to solve it is to restart the tomcat... Yeah... Not really nice ! More over when this problem occurs we are notified because a customer complains about it. We would like to detect it more quickly. The idea would be to send periodicaly via a POST a request to check if we have an answer (invalid login for example). We try to send a POST using curl but we only get index.html as answer : ( How can we generate a compatible RPC POST request ? Is there something specifying how a request is built ? Is there any better solution to check that a RPC servlet is alive ? Thanks for reading ! -- 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT communicate with Tomcat
Client and server dialog using GWT RPC mecanisms, but once you are on your server you are in pure java so you can do what ever you want to dialog with an other server. HTTP request using any HTTPclient SOAP Sockets... -- 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Pbm with PushButton and Images
Hello all, I want to use PushButton with an image to define the look of the button. So my idea was to use the following code : Image img = _imgBundle.getImage(my_image.gif); PushButton button = new PushButton(img); panel.add(button); I don't understand why but in some buttons, the image is well displayed, but sometimes image is adjusted to bigger or smaller size and the result is not really nice. My 1th question is : Does any one know why the image is some time adjusted and how can I do to be sure my image will be displayed without any change. I've an other question on the same topic : If the button is inserted in a Grid, the button is adjusted to fit the cell causing to have a large button with a small image inside and a lot of blank space. How can I do to be sure that button's size will be the size of the image ? Thanks for reading. --~--~-~--~~~---~--~~ 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
FileUpload pbm
Hello, I need to upload a file to my server. Looking to GWT API the only way to do that seems to use FileUpload class associated with a FormPanel. My problem is that I already know the name of the file to upload and don't want to ask to my user to select it on the file system. My 1th idea was to call myFileUpload.setFileName(); but this method does not exist. Is there any other solution to upload a file ? Thx for reading. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Pbm with gwt-voices and FireFox
I'm trying to use GWT voices to play audio in a web app but I've got a problem with firefox. Each time I try to play a file with firefox, it ask me to install some additionnal plugins (Quick-time). I've installed it severals times but I've always got the same popup and I can't play any sound. This problem is available with the test page given under GWT-voice project : http://allen-sauer.com/com.allen_sauer.gwt.voices.demo.VoicesDemo/VoicesDemo.html Is there something to do to configure plugin correctly ? Does somebody succeeds in using gwt-voice with firefox ? Thx for reading. --~--~-~--~~~---~--~~ 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 javascript accessing Java fct.
Thx for your very fast answer. But't it does not resolve the problem, I've got the same error. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---