Re: Client did not send nnn bytes as expected
We will try Wireshark. BTW, the inherent linux sniffer, tcpdump, is pretty advanced and we used its filtering feature to pin point this packet reduction. However, the disruption seems to occur somewhere lower level in the server OS, or more likely before the server machine altogether - some network equipment or client side code / browser. Thanks again for your help. Amit On Dec 2, 12:05 pm, Lothar Kimmeringer [EMAIL PROTECTED] wrote: Amit Kasher schrieb: I have been trying tcpdump sniffer in the server side, and discovered that the server always receives 80% of the byte content (I described it here:http://tinyurl.com/5rqfp5). This is very interesting, but unfortunately led me nowhere. I just read the first post (shame on me ;-) but I still think that Wireshark might help here. When the problem occurs, you can simply reduce the view of the packets to the one session by simply applying a filter on it. That way it should be possible to see what was happening _before_ the packets got reduced. I don't manage to reproduce it, for over a year now, so I can't run a sniffer in the client. Also, this is a high capacity internet application, not intranet, therefore contacting the users even just for a question is rather difficult, let alone installing a sniffer in the client side. The sniffer on the client-side would be a next step to be considered. In the first place I think that it should be enough to have one on the server-side (listening only to HTTP-traffic). 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 -~--~~~~--~~--~--~---
JAXB generated classes under GWT
Hi all, This is my first post to this group and I am not native English speaker, so please sorry for my possible mistakes.. I am trying to use JAXB generated classes on server and client side. I've added source for generated classes and annotations used by jaxb to the GWT source tree. And my compilation failed on XmlGregorialCalendar type. I've made XJC to bind all dates in XML schemas to java.util.Date The next compilation fail is on @XmlJavaTypeAdapter(Adapter1.class). It says that it can't find source for Adapter1.class... but I can not include it to the source tree, because of it will lead to compilation errors on java.util.Calendar and javax.xml.bind.DatatypeConverter. So, does any body managed to use JAXB generated classes with GWT? Is there a way to make GWT ignore @XmlJavaTypeAdapter? Thanks in advance for your replies. --~--~-~--~~~---~--~~ 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: LiveGrid problem
Thank you angushirose for your answer. I've solved the problem by doing what you told me. so, whenever I get this error, I figure out that there is a problem in accessing the javaScript Files. Thank you so much. Regards. On 25 nov, 09:01, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I think you have to update your gwt.xml file AND the entry page e.g. MyApp.html with references to the javascript for the BufferedReaders etc. I've pasted mine below: From gwt.xml: script src=js/adapter/yui/yui-utilities.js/script script src=js/adapter/yui/ext-yui-adapter.js/script script src=js/adapter/ext/ext-base.js/script script src=js/ext-all.js/script script src=js/livegrid/BufferedJsonReader.js/script script src=js/livegrid/BufferedGridDragZone.js/script script src=js/livegrid/BufferedGridToolbar.js/script script src=js/livegrid/BufferedGridView.js/script script src=js/livegrid/BufferedRowSelectionModel.js/script script src=js/livegrid/BufferedStore.js/script From .html script type=text/javascript src=js/adapter/yui/yui-utilities.js/ script script type=text/javascript src=js/adapter/yui/ext- yui-adapter.js/script script type=text/javascript src=js/ext-all.js/ script script type=text/javascript src=js/livegrid/ BufferedJsonReader.js/script script type=text/javascript src=js/livegrid/ BufferedGridDragZone.js/script script type=text/javascript src=js/livegrid/ BufferedGridToolbar.js/script script type=text/javascript src=js/livegrid/ BufferedGridView.js/script script type=text/javascript src=js/livegrid/ BufferedRowSelectionModel.js/script script type=text/javascript src=js/livegrid/ BufferedStore.js/script script type=text/javascript src=js/adapter/ext/ext- base.js/script I hope that helps. Angus On Nov 23, 1:37 pm, elninio [EMAIL PROTECTED] wrote: Hi everybody, I can't get the LiveGrid sample working. I've made the server side servlet and its configurations and I copied the code of the getViewPanel() method to my onModuleLoad() method. I get this error: com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext.ux.data.BufferedJsonReader' a la valeur Null ou n'est pas un objet. number: -2146823281 description: '$wnd.Ext.ux.data.BufferedJsonReader' a la valeur Null ou n'est pas un objet. at com.gwtextux.client.data.BufferedJsonReader.create(Native Method) at com.gwtext.client.data.Reader.getJsObj(Reader.java:56) at com.gwtext.client.data.Store.setReader(Store.java:1057) at com.gwtext.client.data.Store.init(Store.java:107) at com.gwtextux.client.data.BufferedStore.init(BufferedStore.java: 31) at com.client.Testing.onModuleLoad(Testing.java:53) I found in the forum that someone was having the same probleme and he solved it by installing ext. But I don't know how to do it. I only copied the ressources, adapter and ext-all.js to my project. And I didn't found any jar in the ext 2.0.2 package that I am using Please, Can anyone tell me how could I install ext? Or how to fix this error? Thanks for being Patient. Regards. --~--~-~--~~~---~--~~ 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 design async widget
Hi Relaxo, The simplest way is to make your RPC call from addBtn.onClick() using an anonymous Callback where this callback's onSuccess(..) method adds the new Group ListGroup groups and changes the view as required. There may be reasons why this would not meet your requirements, but it is not possible to say from your example, i.e. on the face of it you do not need the controller interface. There isn't a single right way to do asynchronous RPC - it is possible to over-engineer it and equally it's possible to under-engineer it. If in fact your situation is more complicated than the example (leading to a motivation for using this controller interface), probably best to give some idea of the overall problem to get further advice and options (of which there are several). regards gregor On Dec 2, 8:15 am, raxelo [EMAIL PROTECTED] wrote: First of all sorry for my english. I want to write simple GUI widget that will help me to add and delete some business groops like this. public class GroupWidget extends Composite implements ClickListener { private Controller controller; private ListGroup groups; public GroupWidget(ListGroup groups, Controller controller) { this.controller = controller; //build widget skeleton //init structures } public void onClick(Widget sender) { if(sender == addBtn) { //creating group object using entered date such as name, picture etc... this.controller.add(group); } } static interface Controller { Group add(Group group); void delete(Group group); } } but, i can't understand how it must work with async requests Application that will use this widget will use async requests, so methods in controller must have void as a return type, but how can i notify widget that group is created ? Should i add such methods to widget onAdd(Group newlyCreatedGroup) and onDelete() , that controller implementor have to call after receiving a response or maybe there is some approach or pattern. Thanks a lot --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
viewport resize listener
Hi All, Anybody know how to implement a viewport resize listener? Basically I have a glass panel (light box effect). I want to notify this glass panel whenever my RootPanel size gets changed so that I can resize my glass panel to fillup the area. Regards, Litty Preeth --~--~-~--~~~---~--~~ 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 a signed java applet in hosted mode of gwt??
ah a quick one.. not going to happen, :). I'm running a signed applet myself and believe when i saynot going to happen(unless, someone posts after this...with No...it is possible all you have to do is hack the crap out of eclipse and modify some lines in the GWT compiler while doing a double tuck, reverse somersault with a half twist.then maybe) HTH, ; ) On Dec 2, 12:22 pm, ship [EMAIL PROTECTED] wrote: hi, In my application, i want to run a signed java applet in hosted mode, this signed java applet is running succesfully in browser mode but when i run it on hosted mode it gives errors. Currently i am using gwt-1.4.62. Pl try to resolve this problem --~--~-~--~~~---~--~~ 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: Interesting question:how can I get the rownumber of a cell that contain a button when I click this ?
Clap your hands if you think we need more info!!! On Dec 2, 3:24 am, Alex Luya [EMAIL PROTECTED] wrote: 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: Who can read chinese?
http://babelfish.yahoo.com/ On Nov 28, 3:29 pm, Adam T [EMAIL PROTECTED] wrote: http://translate.google.com/translate_t# Above link might help //A On 28 Nov, 05:16, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I need help , i hava some API of YI language , but all words is china words , who can help me?ASAP , 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: Aspect-Oriented Programming for GWT, GWTENT-0.5 now available for downloa
Hi everyone, I see that GWTENT-ACEGI is being forgotten. I can't find any thread on it. Actually I'm trying to use acegi in my GWT App, but I got errors like: No source code is available for type com.gwtent.acegi.client.UserLoginRpcAsync; did you forget to inherit a required module? No source code is available for type com.gwtent.acegi.client.UserLoginRpc; did you forget to inherit a required module? THanks in advance. Regards. On 24 nov, 11:15, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Ping, Thank you. the implement is using plain java and generators. AspectJ expression request AspectJ jars, but this just request in Compile time. James On 11月24日, 下午9时51分, Ping [EMAIL PROTECTED] wrote: Hi James, Great Work! I'll try it as soon as I can. Some questions: you implemented it using plain java and generators, or are you using some javascript to the mix? On Nov 24, 8:26 am, Ananda [EMAIL PROTECTED] wrote: Thanks James, Is there a way to implement without using third party jar files? I am using GWT 1.5.3 version..is it possible to implement the same in GWT alone? Ananda -Original Message- From: Google-Web-Toolkit@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] com Sent: Monday, November 24, 2008 1:38 PM To: Google Web Toolkit Subject: Re: Is they a way to create minimise buttons? Hi, Ananda May you asked at wrong place? If you don't mind import thirdparty project, you can have a look gwt-ext or mywidget project, it's very easy to implement your require. James On 11月24日, 下午6时42分, Ananda [EMAIL PROTECTED] wrote: Hi Every one Greeting to everyone.. I want to create a popup like a screens in windows. More precisely I am require to create a popup having close , minimize, maximize buttons. Is there any way to create these? Can any give me a hint so that I can work on that? Regards Ananda --~--~-~--~~~---~--~~ 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 overcome this warning (upgrading issue)?
Hey, I want to upgrade my GWT application from GWT 1.4.6 to GWT 1.5.3 What I'm facing is this warning: [WARN] 'mydomain.UsersList' is not a generic type; only generic types can be parameterized com.google.gwt.core.ext.typeinfo.BadTypeArgsException: 'mydomain.UsersList' is not a generic type; only generic types can be parameterized Here is my code: //In the RPC interface /** * * @gwt.typeArgs mydomain.Users */ public UsersList loadUsers(int start); public class UsersList implements IsSerializable { private ListUsers users; Would you please tell me how to overcome 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: How to design async widget
Hi, Gregor! Thanks forreply. I understand that i can't simply use rpc call right in widget event handler, but i want to separate this transport/business layer from widget. My widget simply shows list of items of some class(Group) and provide control elements to manupulate them: edit, delete, add etc. I am simply interested in a approach. maybe there is some standart way advices For now - i provide two methods for widget client - void add(Group) void onAdd/onSuccessAdd(Group) maybe there is some more cultural way ? =) On 2 дек, 13:37, gregor [EMAIL PROTECTED] wrote: Hi Relaxo, The simplest way is to make your RPC call from addBtn.onClick() using an anonymous Callback where this callback's onSuccess(..) method adds the new Group ListGroup groups and changes the view as required. There may be reasons why this would not meet your requirements, but it is not possible to say from your example, i.e. on the face of it you do not need the controller interface. There isn't a single right way to do asynchronous RPC - it is possible to over-engineer it and equally it's possible to under-engineer it. If in fact your situation is more complicated than the example (leading to a motivation for using this controller interface), probably best to give some idea of the overall problem to get further advice and options (of which there are several). regards gregor On Dec 2, 8:15 am, raxelo [EMAIL PROTECTED] wrote: First of all sorry for my english. I want to write simple GUIwidgetthat will help me to add and delete some business groops like this. public class GroupWidget extends Composite implements ClickListener { private Controller controller; private ListGroup groups; public GroupWidget(ListGroup groups, Controller controller) { this.controller = controller; //buildwidgetskeleton //init structures } public void onClick(Widgetsender) { if(sender == addBtn) { //creating group object using entered date such as name, picture etc... this.controller.add(group); } } static interface Controller { Group add(Group group); void delete(Group group); } } but, i can't understand how it must work with async requests Application that will use thiswidgetwill use async requests, so methods in controller must have void as a return type, but how can i notifywidgetthat group is created ? Should i add such methods towidget onAdd(Group newlyCreatedGroup) and onDelete() , that controller implementor have to call after receiving a response or maybe there is some approach or pattern. Thanks a lot --~--~-~--~~~---~--~~ 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 configure GWT in existing application
Hi, Want to replace existing presentaion layer alone by GWT. Current application stores session value in servlet for processing in JSP. The same way , How a GWT tool will be used to diplay those values stored in session(servlet)? 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 -~--~~~~--~~--~--~---
Re: JDBC/MySQL Driver error
Hi there Do you load an external JAR using Eclipse? If so try copying the JAR into your lib directory add add it to your buildpath there so that it is within your project. This is what I have done with the PostgreSQL project and had no problems? Eggsy On Dec 1, 10:30 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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: Client did not send nnn bytes as expected
Amit Kasher schrieb: Does anyone has any new insights about this issue? We've been investigating for over a year(!), and we seem to not be the only ones... http://tinyurl.com/5rqfp5 I have no insights but what about firing up Wireshark and protocolling the packets that are exchanged between client and server. At the moment the problem occurs you should be able to come up with the protocol of that specific HTTP- session. Maybe that helps to track down where the problem is. 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 -~--~~~~--~~--~--~---
No Sample application found for displaying server side values
Hi, I am unable to find any sample which explains displaying of back- end values in GWT tools(tree,list etc). Could anyone help me how to display database value which is stored in session in servlet after calling delegate to DAO. From Servlet usually redirects to JSP where stored value is displayed. Anticipating valuable reply. 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 -~--~~~~--~~--~--~---
Re: Queries in designing web application using gwt, spring hibernate
Hi there Yeah hibernate4GWT should serve to do this. Try searching the forums for that it has been discussed a lot and is open sourced. Eggsy On Dec 1, 1:13 pm, huage [EMAIL PROTECTED] wrote: 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 -~--~~~~--~~--~--~---
Is GWT is good alternative for replacing presentaion layer alone?
Hi, In order to add GWT component into existing web page (JSP) need the following import script type=text/javascript language=javascript src=com.example.foo.Foo.nocache.js/script Also it need to copy lots of files like com.example.foo.Foo.nocache.js ( Converted Java to JS, which is ok) 2B33C4B83AD91930A72E45D14175220D.cache.html 2DF0A6AF4E29204E9AECB33685D38187.cache.html etc.. - Here my clarification is, suppose if you want to plug in struts into existing application we will be doing descriptor changes and copule of files for storing action mappings. Is above kind of mechanism is not there in GWT? 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 -~--~~~~--~~--~--~---
How to add Tree listener for single, double right click mouse events?
I see that GWT's Tree control only provides single click notification. How can I add support for double right click events? I see that I need to add sink events such as Event.ONDBLCLICK and I see that I get notified via the onBrowseEvent() method. The question is, how can I convert the event object passed into onBrowseEvent() into a TreeItem object? It seems what is passed back is a lower level DOM object and what is needed is the TreeItem this represents. How can I convert Event object type? -Dave --~--~-~--~~~---~--~~ 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?
I understand, my company also didn't want to work with GPL (although I wanted to) :-p So they purchased the ~300$ commercial license for me. On 1 déc, 20:57, TedM [EMAIL PROTECTED] wrote: 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 -~--~~~~--~~--~--~---
Re: Client did not send nnn bytes as expected
Amit Kasher schrieb: I have been trying tcpdump sniffer in the server side, and discovered that the server always receives 80% of the byte content (I described it here: http://tinyurl.com/5rqfp5). This is very interesting, but unfortunately led me nowhere. I just read the first post (shame on me ;-) but I still think that Wireshark might help here. When the problem occurs, you can simply reduce the view of the packets to the one session by simply applying a filter on it. That way it should be possible to see what was happening _before_ the packets got reduced. I don't manage to reproduce it, for over a year now, so I can't run a sniffer in the client. Also, this is a high capacity internet application, not intranet, therefore contacting the users even just for a question is rather difficult, let alone installing a sniffer in the client side. The sniffer on the client-side would be a next step to be considered. In the first place I think that it should be enough to have one on the server-side (listening only to HTTP-traffic). 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.
Reiner, Thanks for the reply. Call me naive/ignorant/stupid/whatever but what are the security risks associated with using ;jsessionid? The reason i ask is because GWT cookie support in safari 4 appears completely broken. (It's actually not GWT's fault. in safari 4, the js statement document.cookie = doesn't seem to work). --~--~-~--~~~---~--~~ 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
sim123 schrieb: 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. Do you call getProducts inside an overwritten doPost-method or an implemented doGet-method()? When doing this, the part of the code of the RemoteServiceServlet, that is setting the member returned by getThreadLocalRequest is not executed, so you get null, if you try to call it that way. If I'm wrong, some small source how your code looks like where you have the problem might help, otherwise only guessing is possible. 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 -~--~~~~--~~--~--~---
Server Push with GWTEventService
Quote from the annoucement : The first public version is v0.9. All features for version v1.0 are contained and I hope many developers are interested and will use and test the framework in their applications, so that v1.0 can be reached soon. GWTEventService is an event-based client-server communication framework. The client side offers a high-level API with opportunities to register listeners to the remote server like to a GUI component. GWTEventService can be used to resolve old-style polling calls in GWT applications with a clean and extensible architecture. It looks nice, easy to use and well documented : http://code.google.com/p/gwteventservice/ Did someone try 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: SecureRemoteService and Servlet. The battle against XSRF.
Yes, you could definitely do that to merely access your session but that doesn't do anything to help prevent XSRF. Here's a great article all about this which includes what I mentioned earlier about sending the identifier as a header. http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications The article is a little dated since you can now get at the Request or RequestBuilder objects for the GWT-RPC requests and set the headers. This page explains how to get at the Async's underlying Request and RequestBuilder objects http://vinaytech.wordpress.com/2008/09/28/google-web-toolkit-and-client-server-communications/. On Dec 1, 5:26 pm, jossey [EMAIL PROTECTED] wrote: 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
hibernate4gwt
Hi, i'm creating my first gwt application. I would display in my page an interrogation to my database. I've download hibernate4gwt library and i've included it in my project. I created HelloGWT.gwt.xml in mypackage folder with this code: [code]?xml version=1.0 encoding=UTF-8 standalone=no?module !-- Inherit the core Web Toolkit stuff. -- inherits name=com.google.gwt.user.User/ inherits name='net.sf.hibernate4gwt.Hibernate4Gwt15'/ !-- Specify the app entry point class. -- entry-point class=mypackage.client.HelloGWT/ inherits name=com.google.gwt.user.theme.standard.Standard/ !-- inherits name=com.google.gwt.user.theme.chrome.Chrome/ -- !-- inherits name=com.google.gwt.user.theme.dark.Dark/ -- stylesheet src=css/format.css/ source path=domain/ source path=client/ /module[/code] I created the subfolder domain and client in mypackage and i wrote helloGWT: [code]package mypackage.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.Widget; import java.util.List; public class HelloGWT implements EntryPoint { public void onModuleLoad() { // TODO Auto-generated method stub Label label = new Label(Hello GWT !!!); label.setStyleName(label); Button button = new Button(Say something); button.addClickListener(new ClickListener() { public void onClick(Widget sender) { Window.alert(Hello, again); } }); RootPanel.get().add(label); RootPanel.get().add(button); MyServiceAsync ws = (MyServiceAsync) GWT.create(MyService.class); List a=ws.getStudents(null); } }[/code] MyService [code]package mypackage.client; import java.util.ArrayList; import java.util.List; import net.sf.hibernate4gwt.core.HibernateBeanManager; import net.sf.hibernate4gwt.gwt.HibernateRemoteService; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; import com.google.gwt.user.client.rpc.RemoteService; import mypackage.domain.Giocatore; public class MyService extends HibernateRemoteService{ public List getStudents() { Session session=null; SessionFactory sessionFactory = new Configuration().configure ().buildSessionFactory(); HibernateBeanManager.getInstance().setSessionFactory (sessionFactory); session = sessionFactory.openSession(); List gwtStudents = new ArrayList(); ListGiocatore players = session.createCriteria (Giocatore.class).list(); return players; } }[/code] and Eclipse automatic generates MyServiceAsync i put Giocatore.class Giocatore.hbm.xml and hibernate.cfg.xml in domain folder server folder is empty. When i try ti run my application i read a lot of error all about inherit method, like this: [ERROR] Line 16: No source code is available for type net.sf.hibernate4gwt.gwt.HibernateRemoteService; did you forget to inherit a required module? 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: Portlet Layout - Similar to iGoogle
Check demo #3, #5 and #7 of gwt-dnd demo. demo link: http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/DragDropDemo.html#WindowExample You will require the draggable and resizable Iframe from demo7. And place those widgets in a layout similar to that of demo 5. Here is the project link: http://code.google.com/p/gwt-dnd/ Hope that helps. Rakesh Wagh On Nov 28, 4:58 am, StrongSteve [EMAIL PROTECTED] wrote: Hi Everybody! I have a very basic question and you hope you can provide me an answer! ;) So basically I have an existing web-application consisting of several JSP/HTML pages that provide different simple tasks. What I want to do now, is change the user interface in a way, that it looks like the main screen of iGoogle. So that I have a wide area with different widgets, that can be dragged around, hidden, ... Within each widget I want to display one of my existing Java Server Pages. Is this possible with GWT? Or do I need additional libraries to support this behaviour. Can you please point me out the major steps that would be necessary to reach this goal? Thanks in Advance for both your time and your knowledge! Greetings Stefan --~--~-~--~~~---~--~~ 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 binding of java objects with GWT tools
Hi, Could any one tell me where I can find information ralting to binding of GWT components and Java Objects 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 -~--~~~~--~~--~--~---
GWT progressbar rendering problem
Hi! I have a GWT module, a progressbar. WEBMODE: When the module is loaded (client side) it calls (RPC) the servlet, asks about the stae of process (wich flow is made visible by the pBar).Everything is correct.. but My problem is: the display text of the pbar is wrong. I mean characters are correct but they are rendered many lines and the words keep going whith the line of the pbar. Could somebody suggest sg? thx bestwick --~--~-~--~~~---~--~~ 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 run a signed java applet in hosted mode of gwt??
hi, In my application, i want to run a signed java applet in hosted mode, this signed java applet is running succesfully in browser mode but when i run it on hosted mode it gives errors. Currently i am using gwt-1.4.62. Pl try to resolve this problem --~--~-~--~~~---~--~~ 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
... maybe it's not .js file loaded when you create the dictionary. ( I thougth As in my test the behaviour works well, I thougth that when you do the getJsFile() method, the file was loaded into the browser ( even if the browser and the execution of js scripts must wait to the complete load of the file ) But on production deployment sometimes I got the same exception; which I relsolved like this public DictionaryOnDemand(String url,final String dname){ getJsFile(url); DeferredCommand.addCommand(new Command(){ public void execute() { dictionary = Dictionary.getDictionary(dname); } }); } private native void getJsFile(String url) /*- { var fileref = $doc.createElement('script'); fileref.setAttribute(type,text/javascript); fileref.setAttribute(src, url); $doc.getElementsByTagName(head)[0].appendChild(fileref) } -*/; See if this help you Oskar On 1 dic, 15:27, bennyb [EMAIL PROTECTED] wrote: 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 -~--~~~~--~~--~--~---
How to design async widget
First of all sorry for my english. I want to write simple GUI widget that will help me to add and delete some business groops like this. public class GroupWidget extends Composite implements ClickListener { private Controller controller; private ListGroup groups; public GroupWidget(ListGroup groups, Controller controller) { this.controller = controller; //build widget skeleton //init structures } public void onClick(Widget sender) { if(sender == addBtn) { //creating group object using entered date such as name, picture etc... this.controller.add(group); } } static interface Controller { Group add(Group group); void delete(Group group); } } but, i can't understand how it must work with async requests Application that will use this widget will use async requests, so methods in controller must have void as a return type, but how can i notify widget that group is created ? Should i add such methods to widget onAdd(Group newlyCreatedGroup) and onDelete() , that controller implementor have to call after receiving a response or maybe there is some approach or pattern. Thanks a lot --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Direct call a RemoteServiceServlet
Hello, I have my application already done and running (servlet, jsp, spring, ...). I would like to add gwt in the front end because of its nice components (tree and grid for instance). I've done the differents tutorials with gwt alone and all is working fine. Now I want to go further : integrate gwt into my application :-) The scenario: I would like to display a gwt tree thanks to a link (href) from one of the web page of my application. What I tried: I put a simple link (href) calling directly my class which extends RemoteServiceServlet. public class myRemoteServiceServlet extends RemoteServiceServlet {...} and in the page : a href=/myContext/myRemoteServiceServlet? param1Name=param1Valueparam2Name=param2Value At a first try, it complains about missing GET methods. As a consequence, I declare doGet and doPost which only call super.doGet and super.doPost. But after doing this, it now complains about : 16:07:48 [ERROR] - ApplicationContext.log(678) | Exception while dispatching incoming RPC call javax.servlet.ServletException: Content-Length must be specified at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8 (RPCServletUtils.java:131) at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent (RemoteServiceServlet.java:335) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:77) Now my questions : 1) is it possible to call directly a subclass of RemoteServiceServlet ? 2) does my process is good. If not, how should I process (to display a gwt gadget from a link) ? Thanks in advanced for your help, Hieu. --~--~-~--~~~---~--~~ 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: Client did not send nnn bytes as expected
Amit Kasher schrieb: However, the disruption seems to occur somewhere lower level in the server OS, or more likely before the server machine altogether - some network equipment or client side code / browser. I doubt that there is a bug in the lower levels of an OS that lead to the truncation of TCP-packets only when they come from a GWT- application being executed inside an Internet Explorer. With the sniffed packets I was hoping to see a pattern (if the application is calling function x, y and z the effect starts to be observed, etc.) With that you might be able to reproduce the effect on a local machine allowing you to initiate further actions like installing a sniffer on that box to see if the packets are sent truncated or why the IE is getting a hickup. 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 -~--~~~~--~~--~--~---
How to add Tree listener for single, double right click mouse events?
I see that GWT's Tree control only provides single click notification. How can I add support for double right click events? I see that I need to add sink events such as Event.ONDBLCLICK and I see that I get notified via the onBrowseEvent() method. The question is, how can I convert the event object passed into onBrowseEvent() into a TreeItem object? It seems what is passed back is a lower level DOM object and what is needed is the TreeItem this represents. How can I convert Event object type? -Dave --~--~-~--~~~---~--~~ 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: Interesting question:how can I get the rownumber of a cell that contain a button when I click this ?
Are you quizzing us or asking for help? I would go with alex.d 's solution. Other method(which I personally hate) is to write a for loop in the onClick event of the button that will read the widget in each r,c and match it with the sender or button instance itself. Rakesh Wagh On Dec 1, 7:24 pm, Alex Luya [EMAIL PROTECTED] wrote: 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: Client did not send nnn bytes as expected
Thanks. I have been trying tcpdump sniffer in the server side, and discovered that the server always receives 80% of the byte content (I described it here: http://tinyurl.com/5rqfp5). This is very interesting, but unfortunately led me nowhere. I don't manage to reproduce it, for over a year now, so I can't run a sniffer in the client. Also, this is a high capacity internet application, not intranet, therefore contacting the users even just for a question is rather difficult, let alone installing a sniffer in the client side. Amit On Dec 2, 11:40 am, Lothar Kimmeringer [EMAIL PROTECTED] wrote: Amit Kasher schrieb: Does anyone has any new insights about this issue? We've been investigating for over a year(!), and we seem to not be the only ones... http://tinyurl.com/5rqfp5 I have no insights but what about firing up Wireshark and protocolling the packets that are exchanged between client and server. At the moment the problem occurs you should be able to come up with the protocol of that specific HTTP- session. Maybe that helps to track down where the problem is. 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 -~--~~~~--~~--~--~---
Client did not send nnn bytes as expected
Hi, Does anyone has any new insights about this issue? We've been investigating for over a year(!), and we seem to not be the only ones... http://tinyurl.com/5rqfp5 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 -~--~~~~--~~--~--~---
fundamental design question on font size
What am I doing wrong? I am building widgets for use throughout the organization, and when I try to generalize everything, it always seems like I always need access to the font metrics so I can adjust positions of widgets based on the user's font size. I have read the posts about font metrics, but I am not asking how to do this as much as I am asking: if getting the font metrics is hard to do, what should I change in my approach to design so that I don't need them? Apparently, gwt itself must be getting along without this if an easy way to get it isn't built in, so there must be something wrong in my approach that always leads me to the place where I think I need to know the 'm' size of the current font. --~--~-~--~~~---~--~~ 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 a signed java applet in hosted mode of gwt??
The previous poster is right, the shell can not handle embedded things like Flash or Applets. There are some restrictions in the SWT component used to run the browser inside of the shell. A bug report has been associated with this issue, you may want to keep an eye on it for future updates: http://code.google.com/p/google-web-toolkit/issues/detail?id=283 Regards, Adrian -- http://code.google.com/p/gwtai/ On 2 Dez., 11:22, ship [EMAIL PROTECTED] wrote: hi, In my application, i want to run a signed java applet in hosted mode, this signed java applet is running succesfully in browser mode but when i run it on hosted mode it gives errors. Currently i am using gwt-1.4.62. Pl try to resolve this problem --~--~-~--~~~---~--~~ 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: Client did not send nnn bytes as expected
Hi, A few questions: o Are all packets sent to the server the same size? o What is that size? o Have you checked for other types of congestion? o Is this entirely TCP/IP? Have you checked maxrss? o Have you enabled logging on intermediate nodes to see if there are congestion issues? o Is this related to a specific time of day (although it probably happens between 10:00 and 14:00...) o Do you have a world-wide net? If so, does the problem travel across time zones? Cheers, jec On Dec 2, 2:13 am, Amit Kasher [EMAIL PROTECTED] wrote: Hi, Does anyone has any new insights about this issue? We've been investigating for over a year(!), and we seem to not be the only ones... http://tinyurl.com/5rqfp5 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: Integrating draw2d with Gwt
There are many JavaScript libraries out there that have been wrapped into third party GWT libraries. Alas the draw2d is not one of them, as far as I know... Although you can do this yourself using GWT's JavaScript Native Interface functionality. Have a look at the documentation for more information: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideInterop Regards, Adrian -- http://traceurl.com On 2 Dez., 08:25, Sridhar Gande [EMAIL PROTECTED] wrote: 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 -~--~~~~--~~--~--~---
Re: fundamental design question on font size
Hi, GWT can only do so much w/r/t/ these kinds of design issues. Do you use fixed font metrics (pt, px) or do you use %? The latter will handle different font sizes, but it does require that you avoid complex screen layouts. Getting font metrics isn't hard, but if you want to get fancy you have to be quite aware of widget layout. It may also be that GWT is wrong tool to use, and you need more control over the display (i.e. Flash) On Dec 2, 6:17 am, mryilauer [EMAIL PROTECTED] wrote: What am I doing wrong? I am building widgets for use throughout the organization, and when I try to generalize everything, it always seems like I always need access to the font metrics so I can adjust positions of widgets based on the user's font size. I have read the posts about font metrics, but I am not asking how to do this as much as I am asking: if getting the font metrics is hard to do, what should I change in my approach to design so that I don't need them? Apparently, gwt itself must be getting along without this if an easy way to get it isn't built in, so there must be something wrong in my approach that always leads me to the place where I think I need to know the 'm' size of the current font. --~--~-~--~~~---~--~~ 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: hibernate4gwt
The hibernate4gwt.jar is missing from classpath. Regards Bruno On 2 déc, 10:43, Dessorry [EMAIL PROTECTED] wrote: Hi, i'm creating my first gwt application. I would display in my page an interrogation to my database. I've download hibernate4gwt library and i've included it in my project. I created HelloGWT.gwt.xml in mypackage folder with this code: [code]?xml version=1.0 encoding=UTF-8 standalone=no?module !-- Inherit the core Web Toolkit stuff. -- inherits name=com.google.gwt.user.User/ inherits name='net.sf.hibernate4gwt.Hibernate4Gwt15'/ !-- Specify the app entry point class. -- entry-point class=mypackage.client.HelloGWT/ inherits name=com.google.gwt.user.theme.standard.Standard/ !-- inherits name=com.google.gwt.user.theme.chrome.Chrome/ -- !-- inherits name=com.google.gwt.user.theme.dark.Dark/ -- stylesheet src=css/format.css/ source path=domain/ source path=client/ /module[/code] I created the subfolder domain and client in mypackage and i wrote helloGWT: [code]package mypackage.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.Widget; import java.util.List; public class HelloGWT implements EntryPoint { public void onModuleLoad() { // TODO Auto-generated method stub Label label = new Label(Hello GWT !!!); label.setStyleName(label); Button button = new Button(Say something); button.addClickListener(new ClickListener() { public void onClick(Widget sender) { Window.alert(Hello, again); } }); RootPanel.get().add(label); RootPanel.get().add(button); MyServiceAsync ws = (MyServiceAsync) GWT.create(MyService.class); List a=ws.getStudents(null); } }[/code] MyService [code]package mypackage.client; import java.util.ArrayList; import java.util.List; import net.sf.hibernate4gwt.core.HibernateBeanManager; import net.sf.hibernate4gwt.gwt.HibernateRemoteService; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; import com.google.gwt.user.client.rpc.RemoteService; import mypackage.domain.Giocatore; public class MyService extends HibernateRemoteService{ public List getStudents() { Session session=null; SessionFactory sessionFactory = new Configuration().configure ().buildSessionFactory(); HibernateBeanManager.getInstance().setSessionFactory (sessionFactory); session = sessionFactory.openSession(); List gwtStudents = new ArrayList(); ListGiocatore players = session.createCriteria (Giocatore.class).list(); return players; }}[/code] and Eclipse automatic generates MyServiceAsync i put Giocatore.class Giocatore.hbm.xml and hibernate.cfg.xml in domain folder server folder is empty. When i try ti run my application i read a lot of error all about inherit method, like this: [ERROR] Line 16: No source code is available for type net.sf.hibernate4gwt.gwt.HibernateRemoteService; did you forget to inherit a required module? 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: Client did not send nnn bytes as expected
Hi, Thanks for your reply. Answers are inline. On Dec 2, 5:50 pm, jchimene [EMAIL PROTECTED] wrote: Hi, A few questions: o Are all packets sent to the server the same size? No, they are not. o What is that size? This depends on the service call - somewhere between 150 and 2000 bytes. I will mention again that by using a sniffer (tcpdump), it seems that EVERY time this issue occurs, the actual packets the server receives are ALWAYS EXACTLY 80% of what it should have received. This, again, was very encouraging to find as a clue, but unfortunately led me nowhere. o Have you checked for other types of congestion? Congestion? Unfortunately, I don't have any control over the client's environment since this is an internet application and I can't reproduce it. o Is this entirely TCP/IP? Have you checked maxrss? maxrss? I'm not sure I understood the relevance... TCP/IP is obviously used, it is the underlying protocol of HTTP... o Have you enabled logging on intermediate nodes to see if there are congestion issues? I wish I could... I don't have any control over any node before the server. It is a CentOS VPS hosted internet application. I will state that this occurred in several hosting providers, in several countries and geographical locations. o Is this related to a specific time of day (although it probably happens between 10:00 and 14:00...) I didn't find any correlation between the time of day and the occurrence of this. Obviously, this is normalized to the usage load, as you implied. o Do you have a world-wide net? If so, does the problem travel across time zones? My users are not from around the world, but as I stated - this issue occurred when using hosting providers around the world. Cheers, jec On Dec 2, 2:13 am, Amit Kasher [EMAIL PROTECTED] wrote: Hi, Does anyone has any new insights about this issue? We've been investigating for over a year(!), and we seem to not be the only ones... http://tinyurl.com/5rqfp5 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 -~--~~~~--~~--~--~---
Acrobat JAVASCRIPT generated by GWT
Hi Team, is there a way to generate a JAVASCRIPT Application (like a gadget) that is executed in a PDF? ( http://www.adobe.com/devnet/acrobat/javascript.html ) Thx for input Timo --~--~-~--~~~---~--~~ 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 clear the panel and new panel
Hi All, I have a probelm with borderlayout panel, panel is divided into three parts header,left and center parts,When I click button in center ,center have to replace with some other content . Please let me know how to achieve this. Regards, Rajasekhar --~--~-~--~~~---~--~~ 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?
I do not know how the testannotation in http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/gwtent/client/test/ReflectionTestCase.java work. Can you explain? I get error in hosted mode when i try to run... public class Application implements EntryPoint { public void testReflection(){ ClassType classType2 = TypeOracle.Instance.getClassType(TestReflection.class); //Class Annotations System.out.println(classType2.getAnnotation(Entity.class).getValue(name).equals(TestReflection)); .. On Tue, Dec 2, 2008 at 10:24 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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: MySettings PROPERTYFILE TYPE=STRINGMyConstants_C1.properties/PROPERTYFILE /MySettings 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: make my site visible to others
Can I use Google Sites to host my gwt webpages? Thx, Goo. On Nov 28, 8:33 pm, Patrick Ratelband [EMAIL PROTECTED] wrote: What do you mean with this question? It is a web page, this means that if you put it somewhere where other people can download it, they can see it. If you do not use fancy client-server connection things but only work client side, a free website hoster should do the trick. Look on your fav search engine to find a free webhoster and see their manual on how to upload files. Patrick On Nov 27, 11:41 pm, mskart [EMAIL PROTECTED] wrote: Hello everyone! Can anyone answer my question: How can i make the web page that i created with GWT visible to others??? 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 -~--~~~~--~~--~--~---
JSON Mashups
Hello guys, Currently I'm trying to use JSON mashups in my application, but I'm falling on an issue with the binding and validation of the data objects. In another web project I was used simple POJO objects and the binding was implemented in this way: public void setFirstName(String firstName) { String old = this.firstName; this.firstName = firstName; changes.firePropertyChange(firstName, old, firstName); } And here is the question, how can I do this with JavaScriptObjects when my method stubs are looking like: public final native String getName() /*-{ return this.name; }-*/; public final native void setName(String name) /*-{ this.name = name; }-*/; Probably I have to use some JSNI magic :). Does anyone have an idea how to do this ?. Or some better solution for binding and validation of such an objects. Thanks in advance Regards, Miroslav --~--~-~--~~~---~--~~ 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: JSON Mashups
How about doing your setName like this: public void setFirstName(String firstName) { String old = getFirstName(); setFirstNameImpl(firstName); changes.firePropertyChange(firstName, old, firstName); } private final native void setFirstNameImpl(String fn)/*-{ this.firstName = fn; }-*/; ? Yes, it take an extra method to jump into the JSNI, but the compiler will erase that indirection anyway when it builds the JavaScript. Your only penalty is the slightly longer code to write for each bound property method. On Tue, Dec 2, 2008 at 09:45, Miroslav Genov [EMAIL PROTECTED] wrote: Hello guys, Currently I'm trying to use JSON mashups in my application, but I'm falling on an issue with the binding and validation of the data objects. In another web project I was used simple POJO objects and the binding was implemented in this way: public void setFirstName(String firstName) { String old = this.firstName; this.firstName = firstName; changes.firePropertyChange(firstName, old, firstName); } And here is the question, how can I do this with JavaScriptObjects when my method stubs are looking like: public final native String getName() /*-{ return this.name; }-*/; public final native void setName(String name) /*-{ this.name = name; }-*/; Probably I have to use some JSNI magic :). Does anyone have an idea how to do this ?. Or some better solution for binding and validation of such an objects. Thanks in advance Regards, Miroslav --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Couple of questions regarding getModuleBaseURL()
How can I determine what GWT.getModuleBaseURL() will return on the server? I want to build a URL, on the server, and send it to the client. I would prefer this URL to be complete and not rely on the client making this method call. Is this possible? Also is it possible to know what file system path getModuleBaseURL() refers to? I need to copy some dynamically created images to a folder under the HTTP root folder. How can I know where the root folder is? -Dave --~--~-~--~~~---~--~~ 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: JSON Mashups
This is a good solution. I like it. Thanks for the support. Regards, Miroslav Shawn Pearce wrote: How about doing your setName like this: public void setFirstName(String firstName) { String old = getFirstName(); setFirstNameImpl(firstName); changes.firePropertyChange(firstName, old, firstName); } private final native void setFirstNameImpl(String fn)/*-{ this.firstName = fn; }-*/; ? Yes, it take an extra method to jump into the JSNI, but the compiler will erase that indirection anyway when it builds the JavaScript. Your only penalty is the slightly longer code to write for each bound property method. On Tue, Dec 2, 2008 at 09:45, Miroslav Genov [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello guys, Currently I'm trying to use JSON mashups in my application, but I'm falling on an issue with the binding and validation of the data objects. In another web project I was used simple POJO objects and the binding was implemented in this way: public void setFirstName(String firstName) { String old = this.firstName; this.firstName = firstName; changes.firePropertyChange(firstName, old, firstName); } And here is the question, how can I do this with JavaScriptObjects when my method stubs are looking like: public final native String getName() /*-{ return this.name http://this.name; }-*/; public final native void setName(String name) /*-{ this.name http://this.name = name; }-*/; Probably I have to use some JSNI magic :). Does anyone have an idea how to do this ?. Or some better solution for binding and validation of such an objects. Thanks in advance Regards, Miroslav --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Stack overflow at line: 0
In debugging my app in hosted mode I see an error with the title of Windows Internet Explorer and having an error of Stack overflow at line: 0. What does this mean? Why Windows Internet Explorer? -Dave --~--~-~--~~~---~--~~ 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 design async widget
Hi Rexalo, My 2c. What you seem to asking is if there is a standard right way to do Model-View-Controller with GWT and/or what is the best way to, as you put, separate this transport/business layer from widget.. IMO the answer is that there isn't a standard one, rather several options or approaches. But I would search the group for MVC to get a flavour of how many different opinions there are about this. Check this discussion, for example, which is top of the list: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/6588acb2e9afe9d9/23f6dda583eaa44f?lnk=gstq=MVC#23f6dda583eaa44f IMO the difficulty is that both Controller and Model are slippery concepts in an AJAX web application, whereas View is a straight forward concept - it's a widget of some kind. Some reasons are: 1) The real Controller in an AJAX application is the browser - anything involving a change to the DOM ultimately runs through its event queue (and it also handles request dispatches and fields the responses as well), therefore it is natural for Widget (i.e. view) classes to interact with the browser event queue directly, and this is what GWT does. Because GWT widgets catch, process and sink events routinely anyway it is difficult (but not impossible) to separate them from a separate Controller in a clean or meaningful way. 2) What might we mean when we refer to a Model maintained client- side in a GWT application? Is it the real domain model for the application, some sub-set of it, or maybe a snapshot of some some sub- set of it? If you think about it, the real domain model resides on the server and ultimately whatever sub-set of this is transported to the GWT client must at some point be reconciled with the real server model (i.e. the one actually persisted to backing store) always bearing in mind that another client might have changed the real model independently in the meantime. Both these issues can introduce significant complexity. This is not to say that there are not sometimes good reasons to introduce Controllers and Models client side. An example might be a chat application that uses blocking requests (i.e. comet style) to pick up new messages. But it does imply that doing so introduces layers of complexity to a GWT application that may be unnecessary. For these reasons I don't think it is automatically the case that i want to separate this transport/business layer from widget is a necessarily a good design/engineering decision in a GWT app. What works simplest usually works best. However, sometimes it is and there are several approaches to doing it - it depends on what you are actually trying to achieve, not on a matter of (MVC) principle. regards gregor On Dec 2, 1:01 pm, raxelo [EMAIL PROTECTED] wrote: Hi, Gregor! Thanks forreply. I understand that i can't simply use rpc call right in widget event handler, but i want to separate this transport/business layer from widget. My widget simply shows list of items of some class(Group) and provide control elements to manupulate them: edit, delete, add etc. I am simply interested in a approach. maybe there is some standart way advices For now - i provide two methods for widget client - void add(Group) void onAdd/onSuccessAdd(Group) maybe there is some more cultural way ? =) On 2 дек, 13:37, gregor [EMAIL PROTECTED] wrote: Hi Relaxo, The simplest way is to make your RPC call from addBtn.onClick() using an anonymous Callback where this callback's onSuccess(..) method adds the new Group ListGroup groups and changes the view as required. There may be reasons why this would not meet your requirements, but it is not possible to say from your example, i.e. on the face of it you do not need the controller interface. There isn't a single right way to do asynchronous RPC - it is possible to over-engineer it and equally it's possible to under-engineer it. If in fact your situation is more complicated than the example (leading to a motivation for using this controller interface), probably best to give some idea of the overall problem to get further advice and options (of which there are several). regards gregor On Dec 2, 8:15 am, raxelo [EMAIL PROTECTED] wrote: First of all sorry for my english. I want to write simple GUIwidgetthat will help me to add and delete some business groops like this. public class GroupWidget extends Composite implements ClickListener { private Controller controller; private ListGroup groups; public GroupWidget(ListGroup groups, Controller controller) { this.controller = controller; //buildwidgetskeleton //init structures } public void onClick(Widgetsender) { if(sender == addBtn) { //creating group object using entered date such as name, picture etc...
Re: Easiest way to open a new window with some text in it?
nope..apperently I cant use a form panel to post data to a new window :-/ I'm happy to use any combination of php and gwt, but I cant seem to find a neat way to get a string (of decent length) into a new window. I could save to cookie or something, but that seems a very messy method to use :-/ On Nov 21, 8:10 pm, darkflame [EMAIL PROTECTED] wrote: Just thinking outloud here...it could be done with a form right? Just hidden somewhere. dosnt seem very neat though. On Nov 21, 1:50 pm, darkflame [EMAIL PROTECTED] wrote: Thats still using the string by the URL though/get method, which limits the charecfters to about 100 :-/ Is it possible to do the same thing but not have the data in the url, so it could be picked up by the php'spostvariable instead? (which you can do with RequestBuilder by using new RequestBuilder (RequestBuilder.POST) but that dosnt open a newwindow.) On Nov 21, 8:13 am, Danny Schimke [EMAIL PROTECTED] wrote: You could try to use JSNI to open a newwindowas you've already done: It should look something like this: native JavaScriptObject openWindow(String param) /*-{ $wnd.open('scripts/display.php' + '?text=' + messageslist.getText(), '_blank', null); return true;}-*/; I hpe it's what you searched for... Danny 2008/11/20 darkflame [EMAIL PROTECTED] Any ideas? The text is dynamic, so I thought at first I'd just use; Window.open(scripts/display.php+?text=+messageslist.getText(), _blank, null); Where display.php simply gets the text variable in the url and echo's it back. However, this has a very short limit on the text that can be displayed. Is it possible to do a simerla function with RequestBuilder? SoPost can be used correctly? I have no idea if its possible to use RequestBuilder to open a php in a newwindow, so if it isn't I would welcome workarounds if its not. Cheers, --~--~-~--~~~---~--~~ 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: Stack overflow at line: 0
See this thread: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/e45c50aac66e5c49/9e7f222c0516cf7b?lnk=gstq=stack+overflow On Dec 2, 1:28 pm, dhoffer [EMAIL PROTECTED] wrote: In debugging my app in hosted mode I see an error with the title of Windows Internet Explorer and having an error of Stack overflow at line: 0. What does this mean? Why Windows Internet Explorer? -Dave --~--~-~--~~~---~--~~ 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: Stack overflow at line: 0
Looks like there is no known fix yet. Can I switch to Firefox in hosted mode? I don't know why it is using Windows Internet Explorer, is that something that I can specify? -Dave On Tue, Dec 2, 2008 at 11:56 AM, markmccall [EMAIL PROTECTED] wrote: See this thread: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/e45c50aac66e5c49/9e7f222c0516cf7b?lnk=gstq=stack+overflow On Dec 2, 1:28 pm, dhoffer [EMAIL PROTECTED] wrote: In debugging my app in hosted mode I see an error with the title of Windows Internet Explorer and having an error of Stack overflow at line: 0. What does this mean? Why Windows Internet Explorer? -Dave --~--~-~--~~~---~--~~ 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?
Hi, Essington. but rpc isn't working... I'm having an exception: com.google.gwt.user.client.rpc.StatusCodeException On 1 dez, 15:55, Jason Essington [EMAIL PROTECTED] wrote: 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 onhttp://apl/ The dinamic is a war file on JBoss and can be acessed onhttp://apl/ Apl So... I acesshttp://apl/index.htmlthat has an GWT interface, and use a RPC (the remote service module is called Ctrl) So... Ctrl is provided by JBoss, onhttp://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'thttp://apl/Ctrl . The right ishttp://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 -~--~~~~--~~--~--~---
Implement a Calender to the Navigation on the left side
hello everybody, I start to programming with GWT Designer yesterday... My Question is, if anybody knows how i can implement a small calender to the left panel! I didnt do it before in java or something else... Is there a easy way ??? Thank you very much!!! --~--~-~--~~~---~--~~ 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 configure GWT in existing application
Hi Arul, What are you attempting? If you want to replace your entire existing Struts/JSP based UI with GWT in one iteration but retain existing server-side services, then perhaps the easiest way is to replace your Action classes with GWT RPC servlet methods and just copy most of your Action.perform(..) code to these GWT RemoteServiceServlet methods (minus the JSP redirect and bean binding bits, plus preparing the beans for return to GWT client). Your application UI would then load and run from a single HTML file (which is optimal for GWT) and you can throw the old Struts stuff away. If on the other hand you want to (or must) either a) embed a bit of GWT sparkle into individual existing JSPs or b) incrementally replace JSPs over time, then the situation is more complicated. You need to explain your constraints and what you need to do. regards gregor On Dec 2, 1:56 pm, Arul [EMAIL PROTECTED] wrote: Hi, Want to replace existing presentaion layer alone by GWT. Current application stores session value in servlet for processing in JSP. The same way , How a GWT tool will be used to diplay those values stored in session(servlet)? 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 -~--~~~~--~~--~--~---
Problem updating image URL
I have a custom button that has a couple of images as well as text. My code is like this: public class SplitButton extends Button { private IGWTImageBundle gwtImageBundle; private final DockPanel dockPanel = new DockPanel(); private MenuBar menuBar; private final Image image = new Image(); private final Label textLabel = new Label(); private PopupPanel popupPanel; public SplitButton(IGWTImageBundle gwtImageBundle) { this(null, null, gwtImageBundle); } public SplitButton(String imageURL, String text, IGWTImageBundle gwtImageBundle) { super(); this.gwtImageBundle = gwtImageBundle; if (imageURL != null) { setImage(imageURL); } if (text != null) { setText(text); } initDockPanel(); } private void initDockPanel() { dockPanel.add(image, DockPanel.WEST); dockPanel.add(textLabel, DockPanel.CENTER); dockPanel.add(gwtImageBundle.smallDownArrowIcon().createImage (), DockPanel.EAST); setHTML(); } @Override public void setText(String text) { textLabel.setText(text); setHTML(); } public void setImage(String imageURL) { image.setUrl(imageURL); setHTML(); } private void setHTML() { SimplePanel sp = new SimplePanel(); sp.add(dockPanel); String test = DOM.getInnerHTML(sp.getElement()); this.setHTML(test); } } The problem is calls to setImage(String imageURL) do not get updated in the UI. That is, although the URL set is valid the image is not shown in the button. The static image is shown in the UI however. What am I doing wrong to set the image? -Dave --~--~-~--~~~---~--~~ 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: Your opinion sought: Jetty or Tomcat?
I've been mulling this over the past couple of weeks, and now I want to retract my initial objection about Jetty :) Mainly because, as Arthur and others pointed out, it's expected to speed up unit tests (which would be a huge win). And you don't need -noserver for most of the unit tests you might want to run - the default settings should be sufficient. Therefore this is one area where even the -noserver crowd can benefit from a faster embedded server. On Tue, Nov 25, 2008 at 11:51 PM, AB [EMAIL PROTECTED] wrote: I am using -noserver so it doesnt matter and even if I wasnt, i could live with either. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Help with Remote Services
Hi, I wanted to learn how to use Remote Services in GWT? Any link to the tutorials? I am using Eclipse 3.3 with JDK 1.6 u10. -- Mohamed Sanaulla Sun CA, NITK Surathkal Editor, Let Me Know http://sanaulla.wordpress.com/ --~--~-~--~~~---~--~~ 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: JDBC/MySQL Driver error
Thanks for your reply. My project structure does not have a lib directory. I have the mysql- connector-java-5.1.7-bin.jar in the project directory and it is already installed in my buildpath. Is this what you meant? Does anyone else have any ideas? Regards, Jack On Dec 2, 9:33 am, eggsy84 [EMAIL PROTECTED] wrote: Hi there Do you load an external JAR using Eclipse? If so try copying the JAR into your lib directory add add it to your buildpath there so that it is within your project. This is what I have done with the PostgreSQL project and had no problems? Eggsy On Dec 1, 10:30 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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 -~--~~~~--~~--~--~---
dao and GWT
Hi to everyone ..how I can see a code example of an implementation of GWT with DAO pattern? many thanks to all :D --~--~-~--~~~---~--~~ 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: Client did not send nnn bytes as expected
On Dec 2, 9:11 am, Amit Kasher [EMAIL PROTECTED] wrote: Hi, Thanks for your reply. Answers are inline. On Dec 2, 5:50 pm, jchimene [EMAIL PROTECTED] wrote: Hi, A few questions: o Are all packets sent to the server the same size? No, they are not. o What is that size? This depends on the service call - somewhere between 150 and 2000 bytes. I will mention again that by using a sniffer (tcpdump), it seems that EVERY time this issue occurs, the actual packets the server receives are ALWAYS EXACTLY 80% of what it should have received. This, again, was very encouraging to find as a clue, but unfortunately led me nowhere. At this point, I'd write a ping script and start generating packets of a certain size. Hammer the server to see if you can reproduce on demand. If you can reproduce w/ ping, it's not a browser/server issue. o Have you checked for other types of congestion? Congestion? Unfortunately, I don't have any control over the client's environment since this is an internet application and I can't reproduce it. I don't mean the client congestion, I mean congestion en route, i.e. the cloud between the client and the server. Your later answers seem to eliminate The Cloud. o Is this entirely TCP/IP? Have you checked maxrss? maxrss? I'm not sure I understood the relevance... TCP/IP is obviously used, it is the underlying protocol of HTTP... My bad. I meant MTU. But that doesn't sound like it's relevant. o Have you enabled logging on intermediate nodes to see if there are congestion issues? I wish I could... I don't have any control over any node before the server. It is a CentOS VPS hosted internet application. I will state that this occurred in several hosting providers, in several countries and geographical locations. So it's sounding more and more like the app. If it's several hosting providers in several locations, that's pretty much A Clue. o Is this related to a specific time of day (although it probably happens between 10:00 and 14:00...) I didn't find any correlation between the time of day and the occurrence of this. Obviously, this is normalized to the usage load, as you implied. o Do you have a world-wide net? If so, does the problem travel across time zones? My users are not from around the world, but as I stated - this issue occurred when using hosting providers around the world. OK, so we're down to the app. I'd try constructing a reproducer using ping with specific packet sizes. Record the output stats and run them through a formatting routine that will make it easier to check for problems. The goal here is to check end-to-end transmission w/o using application layer code. If this transmission failure happens every day, you should see something happen within 24 hours. If nothing untoward happens, it's (probably) the app. In that case, I'd grab a copy of Perl (or whatever you want) to write a client-side app that faithfully simulates your app's transmission profile. Point it at one of your servers and stress test that server/client circuit. Send PCs to several locations if you have to, but get something in the field that can reproduce this independently of your app and over which you have complete control. If that's not realistic, you'll need a lab environment, i.e. a machine that isn't a developer box, can be wiped clean and conveniently set to a known state. Bueno Suerte, jec On Dec 2, 2:13 am, Amit Kasher [EMAIL PROTECTED] wrote: Hi, Does anyone has any new insights about this issue? We've been investigating for over a year(!), and we seem to not be the only ones... http://tinyurl.com/5rqfp5 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: Client did not send nnn bytes as expected
Hi Amit, One other thing: I'm getting the impression that you also have a custom server. If it's an identical configuration across all server instances, than you also have to prove that it's not the server. Again, I'd code a simple HTTP server in Perl (because there's no problem so intractable that it can't be made worse with a Perl application) and use it to test against your application. Cheers, jec On Dec 2, 9:11 am, Amit Kasher [EMAIL PROTECTED] wrote: Hi, Thanks for your reply. Answers are inline. On Dec 2, 5:50 pm, jchimene [EMAIL PROTECTED] wrote: Hi, A few questions: o Are all packets sent to the server the same size? No, they are not. o What is that size? This depends on the service call - somewhere between 150 and 2000 bytes. I will mention again that by using a sniffer (tcpdump), it seems that EVERY time this issue occurs, the actual packets the server receives are ALWAYS EXACTLY 80% of what it should have received. This, again, was very encouraging to find as a clue, but unfortunately led me nowhere. o Have you checked for other types of congestion? Congestion? Unfortunately, I don't have any control over the client's environment since this is an internet application and I can't reproduce it. o Is this entirely TCP/IP? Have you checked maxrss? maxrss? I'm not sure I understood the relevance... TCP/IP is obviously used, it is the underlying protocol of HTTP... o Have you enabled logging on intermediate nodes to see if there are congestion issues? I wish I could... I don't have any control over any node before the server. It is a CentOS VPS hosted internet application. I will state that this occurred in several hosting providers, in several countries and geographical locations. o Is this related to a specific time of day (although it probably happens between 10:00 and 14:00...) I didn't find any correlation between the time of day and the occurrence of this. Obviously, this is normalized to the usage load, as you implied. o Do you have a world-wide net? If so, does the problem travel across time zones? My users are not from around the world, but as I stated - this issue occurred when using hosting providers around the world. Cheers, jec On Dec 2, 2:13 am, Amit Kasher [EMAIL PROTECTED] wrote: Hi, Does anyone has any new insights about this issue? We've been investigating for over a year(!), and we seem to not be the only ones... http://tinyurl.com/5rqfp5 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 -~--~~~~--~~--~--~---
Eclipse issues
Hi I have some issues with Eclipse. 1. I downloaded GWT; I played around with it in Eclipse; I decided to move the GWT directory to another location on my disk and did that; Now Eclipse shouts for missing references: The archive: old GWT location/gwt-linux-1.5.3/gwt-dev-linux.jar which is referenced by the classpash, does not exist. 2. When I workaround this by moving back the GWT directory, I get this: ** Unable to find a usable Mozilla install ** You may specify one in mozilla-hosted-browser.conf, see comments in the file for details. --~--~-~--~~~---~--~~ 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: Deferred binding based on annotation
Hi Ronald, It currently isn't possible to trigger a generator based on an annotation, but that is soon to change (see Issue #1206 linked below). The current way you could implement the functionality you're looking for would be to use a marker interface and an assignable-based generator to generate the given class. You can read about this on the GWT Developer Guide at the link below: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideDeferredBindingGenerators Issue #1206: http://code.google.com/p/google-web-toolkit/issues/detail?id=1206 Hope that helps, -Sumit Chandel On Thu, Nov 27, 2008 at 2:04 PM, rmuller [EMAIL PROTECTED] wrote: Hallo, Is it possible to trigger deferred binding based on an annotation, so: generate-with class=example.rebind.FooGenerator when-*annotated* class=example.client.Baz / /generate-with So you can use it like this: Foo foo = GWT.create(class annotated by Baz) Regards, Ronald --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Problem with JSON response, in --Get JSON via HTTP-- example
Hi, I'm doing the Get JSON via HTTP example, and I have a problem I'm using XAMPP, to test the WEB MODE, and Firefox with firebug extension. When I receive the JSON Object from the PHP, the Firebug show me this: [{symbol:AMD,price:1.08718204481,change:0.00708920080279}] But, the web page said that Couldn't retrieve JSON I don't know what to do. : ( help... and 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?
What's the error message? Have you append inherits name=com.gwtent.GwtEnt/ to your Moudle.gwt.xml? On Dec 3, 3:47 am, Au Lai Seong [EMAIL PROTECTED] wrote: I do not know how the testannotation inhttp://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/... work. Can you explain? I get error in hosted mode when i try to run... public class Application implements EntryPoint { public void testReflection(){ ClassType classType2 = TypeOracle.Instance.getClassType(TestReflection.class); //Class Annotations System.out.println(classType2.getAnnotation(Entity.class).getValue(name).equals(TestReflection)); .. On Tue, Dec 2, 2008 at 10:24 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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: MySettings PROPERTYFILE TYPE=STRINGMyConstants_C1.properties/PROPERTYFILE /MySettings 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: Your opinion sought: Jetty or Tomcat?
Not Ken Shabby: Imagine here your -exact- reply, except swap 'tomcat' (note: it's not an acronym, you don't need to capitalize it. Jetty isn't either) with 'jetty' and vice versa. In other words, your argument is only relevant for you. It makes for an excellent reason to switch for those running the end result on jetty. On Nov 26, 3:55 am, Not Ken Shabby [EMAIL PROTECTED] wrote: I will be using TOMCAT as the target server for the foreseeable future. My concern with switching to JETTY within the development environment is that bugs / issues with the interaction of GWT and TOMCAT may not be seen / address as quickly as they might otherwise be. There may also be some psychological / political effect --- oh, GWT is something that works with Jetty, it used to work with Tomcat but they changed it On Oct 20, 10:46 am, John [EMAIL PROTECTED] wrote: Manuel Carrasco wrote:The most annoying issue with GWT is performance in development mode. I mean, compiling, startng hosted mode and running GWT Unit tests. So any action that improves these is welcome. So my vote if for jetty +1 --~--~-~--~~~---~--~~ 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.
quentin: URLs aren't designed to be protected. At all. Cookies aren't exactly locked away in Fort Knox on your harddrive, but browsers at least have the good sense to understand that they shouldn't send arbitrary pieces in the cookiefile to arbitrary servers. Not so for URLs. To wit: 1) 'aggregator' websites such as Digg, Reddit, stumbleupon, and even just del.ico.us or just mailing a link around because you want to show 'something cool' to a friend, always grab the entire URL and spill this out to the world at large. This is obviously really really bad. One 'fix' is to make these sessions time out fast, but this annoys users, and having your account accessible by anyone following a story on an aggregator for 'just half an hour' is still pretty bad. 2) Referral. When browsing to another domain, your browser will add a Referrer: header which contains the URL that the user came from. This is handy for analysis flow on your own site, and to figure out where people are coming from when visiting your site. If you run a website and you're using google analytics or some other traffic analyser, you may have noticed a '% of traffic from google' indicator. This thing works by checking how many incoming requests have a Referrer: (www\.)? google\.com.* - this referrer system does not discriminate and will happily toss over the ENTIRE URL, which would include your session. I could -easily- make a webserver that'll check if it looks like there's a session ID in a URL, then report it and the website via chat to me, so I can quickly see if I can log in as this person. 3) Bookmarks. web-based bookmarking was covered in #1, but even a local bookmark is relatively bad, because in general bookmarks are far easier to leak to another person than your cookiefile. sharing bookmarks is actively encouraged by many browsers. No user except a real geek would cut his URL down to eliminate the session ID from it (and even more pathetic, if this geek does do that, using the bookmark is near useless because he'll have to log in again. d'oh). 4) It's a giant sore thumb that both says: Geez, I'm ugly, and: OMG, I have absolutely zip squat idea about web security, so whatever info you give to me, consider it yelled from the rooftops. Boy, my webmaster is a thick headed clot. Most other security leaks aren't nearly as visible, which isn't much comfort, but it does count for a little that this one is so obvious. Just look at the address bar. NB: Yes, yes, the official java servlet spec, even the very latest version, officially declares that URL rewriting is amongst the strategies. Sun evidently considers background compatibility with dangerous code more important than security, which, to say it mildly, / annoys/ me just a tad. On Dec 2, 2:21 pm, quentin [EMAIL PROTECTED] wrote: Reiner, Thanks for the reply. Call me naive/ignorant/stupid/whatever but what are the security risks associated with using ;jsessionid? The reason i ask is because GWT cookie support in safari 4 appears completely broken. (It's actually not GWT's fault. in safari 4, the js statement document.cookie = doesn't seem to work). --~--~-~--~~~---~--~~ 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?
Actually i am running your code gwtent-sample and other also but none of the testcase work. I want to see how you make the annotation work in runtime. On Wed, Dec 3, 2008 at 8:37 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: What's the error message? Have you append inherits name=com.gwtent.GwtEnt/ to your Moudle.gwt.xml? On Dec 3, 3:47 am, Au Lai Seong [EMAIL PROTECTED] wrote: I do not know how the testannotation inhttp://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/... work. Can you explain? I get error in hosted mode when i try to run... public class Application implements EntryPoint { public void testReflection(){ ClassType classType2 = TypeOracle.Instance.getClassType(TestReflection.class); //Class Annotations System.out.println(classType2.getAnnotation(Entity.class).getValue(name).equals(TestReflection)); .. On Tue, Dec 2, 2008 at 10:24 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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: MySettings PROPERTYFILE TYPE=STRINGMyConstants_C1.properties/PROPERTYFILE /MySettings 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 -~--~~~~--~~--~--~---
ListBox + FlexTable + How to maintain value in ListBox
Hey all, - I've got a ListBox added to a cell in a FlexTable. - The FlexTable has a TableListener, and when the cell contain the ListBox is clicked, an RPC call is made that returns a collection of data used to populate the ListBox. - The ListBox has a ChangeListener, so that when the value is updated another ListBox in an adjacent cell is populated. The problem here is that after populating the first ListBox, when I select a value from it, the value immediately resets to the first value in the box. Any ideas what might be going on? Thanks Suri --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Shell Error: The development shell servlet received a request for 'null' in module...
When I run in hosted mode I see this message in the log: [TRACE] The development shell servlet received a request for 'null' in module 'ipt.tas.collab.ui.gwt.CollaborationGWT.gwt.xml' [WARN] Resource not found: null; (could a file be missing from the public path or a servlet tag misconfigured in module ipt.tas.collab.ui.gwt.CollaborationGWT.gwt.xml ?) What might be the cause of this? --~--~-~--~~~---~--~~ 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: ListBox + FlexTable + How to maintain value in ListBox
Basically when the second time you click the list box, the onCellClicked of tablelistener is also getting executed, which re- initializes the listbox. So may be you should first check if the listbox is already initialized and then only proceed for the RPC call to get the listbox items n re-construct the listbox. -Litty Preeth On Dec 3, 8:14 am, Suri [EMAIL PROTECTED] wrote: Hey all, - I've got a ListBox added to a cell in a FlexTable. - The FlexTable has a TableListener, and when the cell contain the ListBox is clicked, an RPC call is made that returns a collection of data used to populate the ListBox. - The ListBox has a ChangeListener, so that when the value is updated another ListBox in an adjacent cell is populated. The problem here is that after populating the first ListBox, when I select a value from it, the value immediately resets to the first value in the box. Any ideas what might be going on? Thanks Suri --~--~-~--~~~---~--~~ 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: viewport resize listener
Hi friends, Anybody has any ideas on this? Thanks and Regards, Litty Preeth On Dec 2, 4:42 pm, Litty Preeth [EMAIL PROTECTED] wrote: Hi All, Anybody know how to implement a viewport resize listener? Basically I have a glass panel (light box effect). I want to notify this glass panel whenever my RootPanel size gets changed so that I can resize my glass panel to fillup the area. Regards, Litty Preeth --~--~-~--~~~---~--~~ 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: JDBC/MySQL Driver error
Modify your eclipse launch script to add one more line for the jar you desire to include. Also add the jar file name in the cmd files that launch and compile your project. On Dec 2, 11:58 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks for your reply. My project structure does not have a lib directory. I have the mysql- connector-java-5.1.7-bin.jar in the project directory and it is already installed in my buildpath. Is this what you meant? Does anyone else have any ideas? Regards, Jack On Dec 2, 9:33 am, eggsy84 [EMAIL PROTECTED] wrote: Hi there Do you load an external JAR using Eclipse? If so try copying the JAR into your lib directory add add it to your buildpath there so that it is within your project. This is what I have done with the PostgreSQL project and had no problems? Eggsy On Dec 1, 10:30 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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 -~--~~~~--~~--~--~---
servlet mapping, captcha and image...
I have a kaptcha which i have to define in my web.xml as servlet-mapping servlet-nameKaptcha/servlet-name url-pattern/kaptcha.jpg/url-pattern /servlet-mapping In hosted mode where the module is inherited ( no explicit web.xml definition ), code like Image img = new Image(/kaptcha.jpg); works fine. But when i deploy my app, the code will not work, but code below works... Image img = new Image(kaptcha.jpg); I dont want to change code just for the app server build alone. Can anybody help why this would happen ? Something to do with how the url pattern is formed in hosted mode...any ideas ? Thx -- pady --~--~-~--~~~---~--~~ 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 updating image URL
Might it have something to do with the word final when declaring image? On Dec 2, 9:23 pm, dhoffer [EMAIL PROTECTED] wrote: I have a custom button that has a couple of images as well as text. My code is like this: public class SplitButton extends Button { private IGWTImageBundle gwtImageBundle; private final DockPanel dockPanel = new DockPanel(); private MenuBar menuBar; private final Image image = new Image(); private final Label textLabel = new Label(); private PopupPanel popupPanel; public SplitButton(IGWTImageBundle gwtImageBundle) { this(null, null, gwtImageBundle); } public SplitButton(String imageURL, String text, IGWTImageBundle gwtImageBundle) { super(); this.gwtImageBundle = gwtImageBundle; if (imageURL != null) { setImage(imageURL); } if (text != null) { setText(text); } initDockPanel(); } private void initDockPanel() { dockPanel.add(image, DockPanel.WEST); dockPanel.add(textLabel, DockPanel.CENTER); dockPanel.add(gwtImageBundle.smallDownArrowIcon().createImage (), DockPanel.EAST); setHTML(); } @Override public void setText(String text) { textLabel.setText(text); setHTML(); } public void setImage(String imageURL) { image.setUrl(imageURL); setHTML(); } private void setHTML() { SimplePanel sp = new SimplePanel(); sp.add(dockPanel); String test = DOM.getInnerHTML(sp.getElement()); this.setHTML(test); } } The problem is calls to setImage(String imageURL) do not get updated in the UI. That is, although the URL set is valid the image is not shown in the button. The static image is shown in the UI however. What am I doing wrong to set the image? -Dave --~--~-~--~~~---~--~~ 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: Implement a Calender to the Navigation on the left side
http://psthapar.googlepages.com/simpledatepicker On Dec 2, 7:10 pm, King [EMAIL PROTECTED] wrote: hello everybody, I start to programming with GWT Designer yesterday... My Question is, if anybody knows how i can implement a small calender to the left panel! I didnt do it before in java or something else... Is there a easy way ??? Thank you very much!!! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Change Browser Address Dynamically
Hi everybody, Is there a provision to change the browser address dynamically. For e.g if my current browser address is http://www.mysite.com/home When i click a hyperlink lets say about us then the browser address should change to http://www.mysite.com/aboutus regards, cherian --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
WHY USE a NON-JAVA BACKEND if client side is in GWT(JAVA)
Hi All I know the answer of the question is based on our requirements and depends on the project that you are doing. but why do u have to a non-java backend at all for say medium sized application if the server side is not something like a google app engine which provides special services in addition to just a hosting enviroment which is accesible through a non-java language(python). yours --~--~-~--~~~---~--~~ 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: XML to UI Forms
Thanks for your note, Charlie. Is there something I can draw on the fly. I was looking for some generic tool which can build a UI from the xml which can be provided dynamically. Eg: a drag and drop node can be added automatically from a remote xml. This xml will have definition of properties (UI) for user's input when the node is dragged. Is it available in any tools (not necessarily gwt)? Thanks. On Nov 29, 5:53 pm, Charlie Collins [EMAIL PROTECTED] wrote: I don't think this is exactly what you are asking, but the GWT declarative UI track is aiming to make UI building a bit easier by making it, well, declarative. You might find some more ideas, or clarification, at least regardingXMLto UI widgets, in those threads. http://code.google.com/p/google-web-toolkit-incubator/wiki/DeclarativeUihttp://code.google.com/p/google-web-toolkit-incubator/wiki/UiBinder On Nov 28, 2:15 pm, Startworld67 [EMAIL PROTECTED] wrote: Hi, Maybe, I am too lazy but is there a way for gwt to convert whats in XML(formatted according to gwt requirements) which can parse and construct the form and allow the users to edit and once done, saves to thexmlagain for future processing. I am trying to avoid learning GWT specific UI elements and gain control from some wrappers which load fromxmland save toxml. Something close would behttp://extjs.com/examples/grid/editable.htmlhttp://extjs.com/examples... but they should be read fromxmland built upon. Sure, I can write the wrappers but I was checking if someone has done this before. A UI-xmlframework? 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: Change Browser Address Dynamically
Not really. With ajax your URL typically doesn't change. But with HistoryListener you can implement smth. like: http://www.mysite.com/mycompany/myproj.html#HOME http://www.mysite.com/mycompany/myproj.html#ABOUTUS For more info - read help on HistoryListener. On 3 Dez., 07:35, Ryan [EMAIL PROTECTED] wrote: Hi everybody, Is there a provision to change the browser address dynamically. For e.g if my current browser address ishttp://www.mysite.com/home When i click a hyperlink lets say about us then the browser address should change tohttp://www.mysite.com/aboutus regards, cherian --~--~-~--~~~---~--~~ 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: viewport resize listener
Basically you have to listen to browser change size events (not sure how reliable this is in all supported browsers) and forward new size to your widgets. Ext GWT (and probably GWT Ext) for example, already has ViewPort implementation. On 3 Dez., 05:11, Litty Preeth [EMAIL PROTECTED] wrote: Hi friends, Anybody has any ideas on this? Thanks and Regards, Litty Preeth On Dec 2, 4:42 pm, Litty Preeth [EMAIL PROTECTED] wrote: Hi All, Anybody know how to implement a viewport resize listener? Basically I have a glass panel (light box effect). I want to notify this glass panel whenever my RootPanel size gets changed so that I can resize my glass panel to fillup the area. Regards, Litty Preeth --~--~-~--~~~---~--~~ 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: Easiest way to open a new window with some text in it?
In good old javascript time i've done this like: var popup = $wnd.open('scripts/display.php', '_blank', null); popup.getElementById('idShowText')... // Hier get a div or smth. and show/insert your text On 2 Dez., 19:48, darkflame [EMAIL PROTECTED] wrote: nope..apperently I cant use a form panel to post data to a new window :-/ I'm happy to use any combination of php and gwt, but I cant seem to find a neat way to get a string (of decent length) into a new window. I could save to cookie or something, but that seems a very messy method to use :-/ On Nov 21, 8:10 pm, darkflame [EMAIL PROTECTED] wrote: Just thinking outloud here...it could be done with a form right? Just hidden somewhere. dosnt seem very neat though. On Nov 21, 1:50 pm, darkflame [EMAIL PROTECTED] wrote: Thats still using the string by the URL though/get method, which limits the charecfters to about 100 :-/ Is it possible to do the same thing but not have the data in the url, so it could be picked up by the php'spostvariable instead? (which you can do with RequestBuilder by using new RequestBuilder (RequestBuilder.POST) but that dosnt open a newwindow.) On Nov 21, 8:13 am, Danny Schimke [EMAIL PROTECTED] wrote: You could try to use JSNI to open a newwindowas you've already done: It should look something like this: native JavaScriptObject openWindow(String param) /*-{ $wnd.open('scripts/display.php' + '?text=' + messageslist.getText(), '_blank', null); return true;}-*/; I hpe it's what you searched for... Danny 2008/11/20 darkflame [EMAIL PROTECTED] Any ideas? The text is dynamic, so I thought at first I'd just use; Window.open(scripts/display.php+?text=+messageslist.getText(), _blank, null); Where display.php simply gets the text variable in the url and echo's it back. However, this has a very short limit on the text that can be displayed. Is it possible to do a simerla function with RequestBuilder? SoPost can be used correctly? I have no idea if its possible to use RequestBuilder to open a php in a newwindow, so if it isn't I would welcome workarounds if its not. Cheers, --~--~-~--~~~---~--~~ 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: Portlet Layout - Similar to iGoogle
Thanks a lot! Exactly what I was searching for. Will give it a try! Greetings Stefan On 2 Dez., 15:53, rakesh wagh [EMAIL PROTECTED] wrote: Check demo #3, #5 and #7 of gwt-dnd demo. demo link:http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag... You will require the draggable and resizable Iframe from demo7. And place those widgets in a layout similar to that of demo 5. Here is the project link:http://code.google.com/p/gwt-dnd/ Hope that helps. Rakesh Wagh On Nov 28, 4:58 am,StrongSteve[EMAIL PROTECTED] wrote: Hi Everybody! I have a very basic question and you hope you can provide me an answer! ;) So basically I have an existing web-application consisting of several JSP/HTML pages that provide different simple tasks. What I want to do now, is change the user interface in a way, that it looks like the main screen of iGoogle. So that I have a wide area with different widgets, that can be dragged around, hidden, ... Within each widget I want to display one of my existing Java Server Pages. Is this possible with GWT? Or do I need additional libraries to support this behaviour. Can you please point me out the major steps that would be necessary to reach this goal? Thanks in Advance for both your time and your knowledge! Greetings Stefan --~--~-~--~~~---~--~~ 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-contrib] Re: TabPanel feature request
Thanks for the great comments! It turns out that this bug is already reported (and 5 stars as well) in the issue database. jlaba is the owner of the bug and priority is medium Here is the bug report: http://code.google.com/p/google-web-toolkit/issues/detail?id=1902 David On Nov 27, 8:51 am, stuckagain [EMAIL PROTECTED] wrote: People, I recently read about lazy loading panelshttp://googlewebtoolkit.blogspot.com/2008/11/profiling-gwt-applicatio... I am actually asking for offering lazy attaching tabpanels as a default implementation. In most cases you only get a performance problem when you attach the Widgets to the DOM tree, creating the UI without attaching is done in milliseconds. In case of a TabPabel it can sometimes be very cumbersome to use lazy loading for the different tabs. Loading it lazily is easy, but gathering information from multiple tabs to post to the server must take into account that maybe the widgets are null... that makes the code much more complicated than it should be. By deferring attaching to the DOM tree until first shown, all this is not needed. Creating the widgets is most of the time very fast, it is only when they get attached that the Browser shokes. When I was experimenting with tables in IE6 for example, I could build up a table of 250 rows in memory in a few milliseconds, but as soon as I attached the table, I lost 8 seconds that the Browser was not responsive. So,... anybody cares about the subject ? Can I create a functional request in the issues database or do I have to shut up and move over to the other GWT group ? David On Nov 24, 11:46 am, stuckagain [EMAIL PROTECTED] wrote: Hi, I'm having a problem with theTabPanelbehaviour. I've created a widget that uses absolute positioning internally to get a certain effect. The DIV that surrounds it is sized correctly in the onLoad method, based on the size of the absolutely positioned element. All this works fine except in the case where this widget is used in aTabPanel. If the widget is not put in the visible tab at the moment of attachement, then the size calucation fails because I always get 0 as a response. The widget is attached but not visible ... that makes sense. I would like to suggest an alternative approach in thetabpanel, to postpone calling onLoad until the tab is actually shown the first time. The obvious workaround for the moment is ofcourse to add the tab panel lazily to make sure that the onLoad is only triggered when the tab is made visible but this is a generaly reusable component and I do not control the use of the component. I avoided the problem by showing the widget with display:none on the RootPanel, the same trick as used in the popup panel, because that was easier to hide from the calling code... but the calculation can fail due to different CSS rules being applied when attached to another parent DOM element. David- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Client did not send nnn bytes as expected - sorry for crossposting
Hi, Does anyone has any new insights about this issue? We've been investigating for over a year(!), and we seem to not be the only ones... http://tinyurl.com/5rqfp5 Thanks. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: How absolute should the setValue's contract be?
This seems like the right philosophy to me, and your point about date pickers having an optional range is a very persuasive one, so I'm sold on the best guess with the widget being able to throw IllegalArgumentException as well. On Mon, Dec 1, 2008 at 11:09 PM, John LaBanca [EMAIL PROTECTED] wrote: I think we shouldn't be too strict on user implementations of HasValue, but GWT widgets should be standardized. I agree with jat's comment that its okay to mutate the input from setValue(), and I agree with Isaac's comment that there are some times when the input is just not valid and it makes sense to throw an exception. My original inclination was that getValue() should return exactly what was set in setValue(), but I've changed my mind. In a traditional Java object, that would certainly be a good criteria. But UI widgets are interactive by nature. If I setValue() now, the end user can certainly interact with the widget such that getValue() returns a different result later. Sure we could say that a synchronous call to getValue() after setValue() should return the same value, but why bother when it isn't generally true? The side effect of this (this being we don't have tight correlation between getValue() and setValue()) is that we have some leeway in mutating the input of setValue(). For example, setValue(null) on a TextBox can clear the text, even though getValue() will return an empty string. Sure a TextBox doesn't technically have a null value, but I don't think anyone is really going to get confused if setValue() clears the text. 99% of the time, it will be obvious what setValue(null) does. Some widgets can mutate setValue() significantly. For example, an IntegerOnlyTextBox might convert all Strings to an intValue() and then back to a String. So far, we can now use HasValue widgets without any knowledge of the actual Widget. However, I think its acceptable for a widget to throw an exception if the value is completely invalid and can't be reasonably mutated (props to Isaac). It would be nice if GWT widgets accepted the entire range of values in all cases, but even that may be a stretch. For example, if we add a date range to DatePicker, it would be truly incorrect to set a date outside of that range (we could pick the closest much, but just go with the example). So, the user needs to have some knowledge of the underlying widget if she uses a widget that has some restrictions, but she only needs enough intel to know that the values coming from the magical source of values are compatible with the widget. If your magical source of values is trying to set invalid values and the Widget throws an exception, its probably a good thing. In the DatePicker example, you'd either need to fix the value, or expand the range. But, at least for GWT widgets, exceptions would be few and far between. Thanks, John LaBanca [EMAIL PROTECTED] On Mon, Dec 1, 2008 at 7:47 PM, Isaac Truett [EMAIL PROTECTED] wrote: I share Ray's suspicion that this won't actually be much of a problem. A checked exception is clearly (I hope) the wrong way to go. Checked exceptions have their place, but they are a major pain in several anatomical locations when declared in situations where the vast majority of the time they cannot occur. On the other hand, unchecked exceptions for inputs that are unacceptable are quite normal (ArrayIndexOutOfBoundsException comes to mind). Nulls even have their own exclusive exception for unacceptability. Throwing exceptions like those can be left up to the individual HasValue implementation and developers will be accustomed to seeing and handling them. I think Ian's idea of a read-only interface is interesting, but not really on topic. Perhaps it deserves its own thread? On Mon, Dec 1, 2008 at 5:50 PM, Emily Crutcher [EMAIL PROTECTED] wrote: As many of you know, we have started down the path of making our form widgets implement HasValue. A question that has come up is: Should widgets be able to chose what values the widget accepts (i.e. setValue(null) for a text box or a bounded integer range for a select box) without throwing runtime exceptions? So, for instance, assuming we allow setValue(null) in some cases and not others: HasValueDate dateBox = new DateBox(); HasValueString hasValue2 = new TextBox(); // This clears the date box. hasValue1.setValue(null); // This throws an illegal argument exception. hasValue2.setValue(null); The HasValue interface becomes a lot more difficult to implement if we insist that all non-null values are supported, it becomes slightly harder to use if we do not. So, which contract should we enforce? Proposal 1) setValue() gives no guarantee about whether a specific value is valid. Users must know the underlying widget is in order to safely use the HasValue interface. Proposal 2) setValue() will accept all non-null values of a specific
[gwt-contrib] Re: gen2 tables: Create TableDefinition based on annotations
This is very cool! Thanks, John LaBanca [EMAIL PROTECTED] On Fri, Nov 28, 2008 at 2:54 PM, dflorey [EMAIL PROTECTED] wrote: Uuups, only working in hosted mode :-( On 27 Nov., 13:07, dflorey [EMAIL PROTECTED] wrote: Hi, I've used that Generator stuff in gwt for the first time and I've to admit that it is really cool! I've been using it to simplify the creation of model based gen2- tables. Instead of defining the TableDefinition programmatically you now have the alternative to do it with annotations in your domain class. Example: public static class Ancestor extends AbstractTreeTableItem implements RowValue { private String firstName, lastName; private double iq; private Date dateOfBirth; public Ancestor(String firstName, String lastName, int iq, Date dateOfBirth) { this.firstName = firstName; this.lastName = lastName; this.iq = iq; this.dateOfBirth = dateOfBirth; } @ColumnDefinition(column = 0, header = First name, filterable = false) public String getFirstName() { return firstName; } @ColumnDefinition(column = 1, header = Last name) public String getLastName() { return lastName; } @ColumnDefinition(column = 2, header = IQ, numberFormat = NumberColumnFormat.SCIENTIFIC_FORMAT) public double getIq() { return iq; } @ColumnDefinition(column = 3, header = Date of birth, dateTimeFormat = DateColumnFormat.SHORT_DATE_FORMAT) public Date getDateOfBirth() { return dateOfBirth; } @Override public String getDisplayName() { return firstName + + lastName; } @Override public String getId() { return firstName + lastName + dateOfBirth; } } Note that you have to implement the RowValue marker interface. Now you are ready to create your TableDefinition like this: TableDefinitionAncestor tableDefinition = GWT.create (Ancestor.class); Very cool! Thanks for this brilliant toolkit!! --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: TabPanel feature request
Thanks for the great comments! I didn't see any comments... oh, sarcasm =) Since the TabPanel (really the DeckPanel) currently attaches widgets to the DOM immediately, we might have backward compatibility issues if we attach them lazily. We could make lazy attachment an optional setting though. An alternative that should work for your use case is to use the fact that DeckPanel calls setVisible(true) when a widget is shown (which the LazyPanel exploits to render lazily). You could create your widget in the constructor, but don't attach the inner components to the outermost component until setVisible(true) is called the first time. Then you'd have your widget DOM structure available for manipulation, but you don't pay the render time in the browser. Thanks, John LaBanca [EMAIL PROTECTED] On Tue, Dec 2, 2008 at 3:04 AM, stuckagain [EMAIL PROTECTED] wrote: Thanks for the great comments! It turns out that this bug is already reported (and 5 stars as well) in the issue database. jlaba is the owner of the bug and priority is medium Here is the bug report: http://code.google.com/p/google-web-toolkit/issues/detail?id=1902 David On Nov 27, 8:51 am, stuckagain [EMAIL PROTECTED] wrote: People, I recently read about lazy loading panels http://googlewebtoolkit.blogspot.com/2008/11/profiling-gwt-applicatio... I am actually asking for offering lazy attaching tabpanels as a default implementation. In most cases you only get a performance problem when you attach the Widgets to the DOM tree, creating the UI without attaching is done in milliseconds. In case of a TabPabel it can sometimes be very cumbersome to use lazy loading for the different tabs. Loading it lazily is easy, but gathering information from multiple tabs to post to the server must take into account that maybe the widgets are null... that makes the code much more complicated than it should be. By deferring attaching to the DOM tree until first shown, all this is not needed. Creating the widgets is most of the time very fast, it is only when they get attached that the Browser shokes. When I was experimenting with tables in IE6 for example, I could build up a table of 250 rows in memory in a few milliseconds, but as soon as I attached the table, I lost 8 seconds that the Browser was not responsive. So,... anybody cares about the subject ? Can I create a functional request in the issues database or do I have to shut up and move over to the other GWT group ? David On Nov 24, 11:46 am, stuckagain [EMAIL PROTECTED] wrote: Hi, I'm having a problem with theTabPanelbehaviour. I've created a widget that uses absolute positioning internally to get a certain effect. The DIV that surrounds it is sized correctly in the onLoad method, based on the size of the absolutely positioned element. All this works fine except in the case where this widget is used in aTabPanel. If the widget is not put in the visible tab at the moment of attachement, then the size calucation fails because I always get 0 as a response. The widget is attached but not visible ... that makes sense. I would like to suggest an alternative approach in thetabpanel, to postpone calling onLoad until the tab is actually shown the first time. The obvious workaround for the moment is ofcourse to add the tab panel lazily to make sure that the onLoad is only triggered when the tab is made visible but this is a generaly reusable component and I do not control the use of the component. I avoided the problem by showing the widget with display:none on the RootPanel, the same trick as used in the popup panel, because that was easier to hide from the calling code... but the calculation can fail due to different CSS rules being applied when attached to another parent DOM element. David- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: How absolute should the setValue's contract be?
1. TextBoxBase should accept setValue(null), and return from getValue(); Correct, and in general getValue() and setValue() do not need to be equal. 2. It is reasonable for widgets that can't sensibly be cleared to throw IllegalArgumentException on setValue(null) I don't think we need to call out null specifically in javadoc, but your point is correct. It is reasonable for widgets to throw an IllegalArgumentException if the value cannot be sensibly set, null or not. GWT widgets (and all implementors) should probably strive to accept null as a valid value because its a very common use case. 3. HasValue's javadoc should be tweaked accordingly Yes, but if we didn't change the javadoc, that could be fun too. Thanks, John LaBanca [EMAIL PROTECTED] On Tue, Dec 2, 2008 at 11:23 AM, Ray Ryan [EMAIL PROTECTED] wrote: Trying to recap, I believe the concrete proposals I just heard are: 1. TextBoxBase should accept setValue(null), and return from getValue(); 2. It is reasonable for widgets that can't sensibly be cleared to throw IllegalArgumentException on setValue(null) 3. HasValue's javadoc should be tweaked accordingly Yes? rjrjr On Tue, Dec 2, 2008 at 6:12 AM, Emily Crutcher [EMAIL PROTECTED] wrote: This seems like the right philosophy to me, and your point about date pickers having an optional range is a very persuasive one, so I'm sold on the best guess with the widget being able to throw IllegalArgumentException as well. On Mon, Dec 1, 2008 at 11:09 PM, John LaBanca [EMAIL PROTECTED]wrote: I think we shouldn't be too strict on user implementations of HasValue, but GWT widgets should be standardized. I agree with jat's comment that its okay to mutate the input from setValue(), and I agree with Isaac's comment that there are some times when the input is just not valid and it makes sense to throw an exception. My original inclination was that getValue() should return exactly what was set in setValue(), but I've changed my mind. In a traditional Java object, that would certainly be a good criteria. But UI widgets are interactive by nature. If I setValue() now, the end user can certainly interact with the widget such that getValue() returns a different result later. Sure we could say that a synchronous call to getValue() after setValue() should return the same value, but why bother when it isn't generally true? The side effect of this (this being we don't have tight correlation between getValue() and setValue()) is that we have some leeway in mutating the input of setValue(). For example, setValue(null) on a TextBox can clear the text, even though getValue() will return an empty string. Sure a TextBox doesn't technically have a null value, but I don't think anyone is really going to get confused if setValue() clears the text. 99% of the time, it will be obvious what setValue(null) does. Some widgets can mutate setValue() significantly. For example, an IntegerOnlyTextBox might convert all Strings to an intValue() and then back to a String. So far, we can now use HasValue widgets without any knowledge of the actual Widget. However, I think its acceptable for a widget to throw an exception if the value is completely invalid and can't be reasonably mutated (props to Isaac). It would be nice if GWT widgets accepted the entire range of values in all cases, but even that may be a stretch. For example, if we add a date range to DatePicker, it would be truly incorrect to set a date outside of that range (we could pick the closest much, but just go with the example). So, the user needs to have some knowledge of the underlying widget if she uses a widget that has some restrictions, but she only needs enough intel to know that the values coming from the magical source of values are compatible with the widget. If your magical source of values is trying to set invalid values and the Widget throws an exception, its probably a good thing. In the DatePicker example, you'd either need to fix the value, or expand the range. But, at least for GWT widgets, exceptions would be few and far between. Thanks, John LaBanca [EMAIL PROTECTED] On Mon, Dec 1, 2008 at 7:47 PM, Isaac Truett [EMAIL PROTECTED] wrote: I share Ray's suspicion that this won't actually be much of a problem. A checked exception is clearly (I hope) the wrong way to go. Checked exceptions have their place, but they are a major pain in several anatomical locations when declared in situations where the vast majority of the time they cannot occur. On the other hand, unchecked exceptions for inputs that are unacceptable are quite normal (ArrayIndexOutOfBoundsException comes to mind). Nulls even have their own exclusive exception for unacceptability. Throwing exceptions like those can be left up to the individual HasValue implementation and developers will be accustomed to seeing and handling them. I think Ian's idea of a read-only interface is interesting, but
[gwt-contrib] Re: RR: How absolute should the setValue's contract be?
Yep. On Tue, Dec 2, 2008 at 11:23 AM, Ray Ryan [EMAIL PROTECTED] wrote: Trying to recap, I believe the concrete proposals I just heard are: 1. TextBoxBase should accept setValue(null), and return from getValue(); 2. It is reasonable for widgets that can't sensibly be cleared to throw IllegalArgumentException on setValue(null) 3. HasValue's javadoc should be tweaked accordingly Yes? rjrjr On Tue, Dec 2, 2008 at 6:12 AM, Emily Crutcher [EMAIL PROTECTED] wrote: This seems like the right philosophy to me, and your point about date pickers having an optional range is a very persuasive one, so I'm sold on the best guess with the widget being able to throw IllegalArgumentException as well. On Mon, Dec 1, 2008 at 11:09 PM, John LaBanca [EMAIL PROTECTED]wrote: I think we shouldn't be too strict on user implementations of HasValue, but GWT widgets should be standardized. I agree with jat's comment that its okay to mutate the input from setValue(), and I agree with Isaac's comment that there are some times when the input is just not valid and it makes sense to throw an exception. My original inclination was that getValue() should return exactly what was set in setValue(), but I've changed my mind. In a traditional Java object, that would certainly be a good criteria. But UI widgets are interactive by nature. If I setValue() now, the end user can certainly interact with the widget such that getValue() returns a different result later. Sure we could say that a synchronous call to getValue() after setValue() should return the same value, but why bother when it isn't generally true? The side effect of this (this being we don't have tight correlation between getValue() and setValue()) is that we have some leeway in mutating the input of setValue(). For example, setValue(null) on a TextBox can clear the text, even though getValue() will return an empty string. Sure a TextBox doesn't technically have a null value, but I don't think anyone is really going to get confused if setValue() clears the text. 99% of the time, it will be obvious what setValue(null) does. Some widgets can mutate setValue() significantly. For example, an IntegerOnlyTextBox might convert all Strings to an intValue() and then back to a String. So far, we can now use HasValue widgets without any knowledge of the actual Widget. However, I think its acceptable for a widget to throw an exception if the value is completely invalid and can't be reasonably mutated (props to Isaac). It would be nice if GWT widgets accepted the entire range of values in all cases, but even that may be a stretch. For example, if we add a date range to DatePicker, it would be truly incorrect to set a date outside of that range (we could pick the closest much, but just go with the example). So, the user needs to have some knowledge of the underlying widget if she uses a widget that has some restrictions, but she only needs enough intel to know that the values coming from the magical source of values are compatible with the widget. If your magical source of values is trying to set invalid values and the Widget throws an exception, its probably a good thing. In the DatePicker example, you'd either need to fix the value, or expand the range. But, at least for GWT widgets, exceptions would be few and far between. Thanks, John LaBanca [EMAIL PROTECTED] On Mon, Dec 1, 2008 at 7:47 PM, Isaac Truett [EMAIL PROTECTED] wrote: I share Ray's suspicion that this won't actually be much of a problem. A checked exception is clearly (I hope) the wrong way to go. Checked exceptions have their place, but they are a major pain in several anatomical locations when declared in situations where the vast majority of the time they cannot occur. On the other hand, unchecked exceptions for inputs that are unacceptable are quite normal (ArrayIndexOutOfBoundsException comes to mind). Nulls even have their own exclusive exception for unacceptability. Throwing exceptions like those can be left up to the individual HasValue implementation and developers will be accustomed to seeing and handling them. I think Ian's idea of a read-only interface is interesting, but not really on topic. Perhaps it deserves its own thread? On Mon, Dec 1, 2008 at 5:50 PM, Emily Crutcher [EMAIL PROTECTED] wrote: As many of you know, we have started down the path of making our form widgets implement HasValue. A question that has come up is: Should widgets be able to chose what values the widget accepts (i.e. setValue(null) for a text box or a bounded integer range for a select box) without throwing runtime exceptions? So, for instance, assuming we allow setValue(null) in some cases and not others: HasValueDate dateBox = new DateBox(); HasValueString hasValue2 = new TextBox(); // This clears the date box. hasValue1.setValue(null); // This throws an illegal argument exception.
[gwt-contrib] incubator code review
Code review request: http://code.google.com/p/google-web-toolkit-incubator/source/detail?r=1250 Copying gen2-DropDownPanel over the widgetideas-DropDownPanel rather then patching the widgetideas version, as this way we only maintain one version of DropDownPanel, which is going to be depricated as soon as the first 1.6 milestone is released. -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: incubator code review
Is this a good idea? I think we should just deprecate the widgetideas version now in favor of the gen2 version. I didn't attempt to copy ScrollTable changes back to the widgetideas version, it would be a nightmare. IMHO, development on widgetideas code should be closed once a gen2 replacement is available. Thanks, John LaBanca [EMAIL PROTECTED] On Tue, Dec 2, 2008 at 11:48 AM, Emily Crutcher [EMAIL PROTECTED] wrote: Code review request: http://code.google.com/p/google-web-toolkit-incubator/source/detail?r=1250 Copying gen2-DropDownPanel over the widgetideas-DropDownPanel rather then patching the widgetideas version, as this way we only maintain one version of DropDownPanel, which is going to be depricated as soon as the first 1.6 milestone is released. -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: incubator code review
Is that going to turn into a revolving door of new packages as each generation of widgets requires it's own namespace? It seems to me that the gen2 package idea was a mistake of convenience and maybe should have been a branch (or branches) that got merged back into trunk once it stabilized. On Tue, Dec 2, 2008 at 11:57 AM, John LaBanca [EMAIL PROTECTED] wrote: Is this a good idea? I think we should just deprecate the widgetideas version now in favor of the gen2 version. I didn't attempt to copy ScrollTable changes back to the widgetideas version, it would be a nightmare. IMHO, development on widgetideas code should be closed once a gen2 replacement is available. Thanks, John LaBanca [EMAIL PROTECTED] On Tue, Dec 2, 2008 at 11:48 AM, Emily Crutcher [EMAIL PROTECTED] wrote: Code review request: http://code.google.com/p/google-web-toolkit-incubator/source/detail?r=1250 Copying gen2-DropDownPanel over the widgetideas-DropDownPanel rather then patching the widgetideas version, as this way we only maintain one version of DropDownPanel, which is going to be depricated as soon as the first 1.6 milestone is released. -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4222 - in releases/1.6/user/src/com/google/gwt: junit/tools user/tools
Author: [EMAIL PROTECTED] Date: Tue Dec 2 09:12:50 2008 New Revision: 4222 Modified: releases/1.6/user/src/com/google/gwt/junit/tools/JUnit-hosted.launchsrc releases/1.6/user/src/com/google/gwt/junit/tools/JUnit-web.launchsrc releases/1.6/user/src/com/google/gwt/user/tools/App.launchsrc releases/1.6/user/src/com/google/gwt/user/tools/ApplicationCreator.java releases/1.6/user/src/com/google/gwt/user/tools/project.ant.xmlsrc Log: This patch fixes issue 1816 and a similar bug with applicationCreator on Mac. Patch by: amitmanjhi Review by: jat (TBR) Modified: releases/1.6/user/src/com/google/gwt/junit/tools/JUnit-hosted.launchsrc == --- releases/1.6/user/src/com/google/gwt/junit/tools/JUnit-hosted.launchsrc (original) +++ releases/1.6/user/src/com/google/gwt/junit/tools/JUnit-hosted.launchsrc Tue Dec 2 09:12:50 2008 @@ -13,6 +13,6 @@ @eclipseExtraLaunchPaths /listAttribute stringAttribute key=org.eclipse.jdt.launching.PROJECT_ATTR value=@projectName/ -stringAttribute key=org.eclipse.jdt.launching.VM_ARGUMENTS value=-Dgwt.args=quot;-out www-testquot; -Xmx256M/ +stringAttribute key=org.eclipse.jdt.launching.VM_ARGUMENTS value=-Dgwt.args=quot;-out www-testquot; -Xmx256M @vmargs/ booleanAttribute key=org.eclipse.debug.core.appendEnvironmentVariables value=true/ /launchConfiguration Modified: releases/1.6/user/src/com/google/gwt/junit/tools/JUnit-web.launchsrc == --- releases/1.6/user/src/com/google/gwt/junit/tools/JUnit-web.launchsrc (original) +++ releases/1.6/user/src/com/google/gwt/junit/tools/JUnit-web.launchsrc Tue Dec 2 09:12:50 2008 @@ -13,6 +13,6 @@ @eclipseExtraLaunchPaths /listAttribute stringAttribute key=org.eclipse.jdt.launching.PROJECT_ATTR value=@projectName/ -stringAttribute key=org.eclipse.jdt.launching.VM_ARGUMENTS value=-Dgwt.args=quot;-web -out www-testquot; -Xmx256M/ +stringAttribute key=org.eclipse.jdt.launching.VM_ARGUMENTS value=-Dgwt.args=quot;-web -out www-testquot; -Xmx256M @vmargs/ booleanAttribute key=org.eclipse.debug.core.appendEnvironmentVariables value=true/ /launchConfiguration Modified: releases/1.6/user/src/com/google/gwt/user/tools/App.launchsrc == --- releases/1.6/user/src/com/google/gwt/user/tools/App.launchsrc (original) +++ releases/1.6/user/src/com/google/gwt/user/tools/App.launchsrc Tue Dec 2 09:12:50 2008 @@ -9,7 +9,7 @@ listEntry value=lt;?xml version=quot;1.0quot; encoding=quot;UTF-8quot;?gt;#13;#10;lt;runtimeClasspathEntry externalArchive=quot;@gwtDevPathquot; path=quot;3quot; type=quot;2quot;/gt;#13;#10;/ @eclipseExtraLaunchPaths /listAttribute -stringAttribute key=org.eclipse.jdt.launching.VM_ARGUMENTS value=@vmargs -Xmx256M/ +stringAttribute key=org.eclipse.jdt.launching.VM_ARGUMENTS value=@eclipseVmargs -Xmx256M/ stringAttribute key=org.eclipse.jdt.launching.PROGRAM_ARGUMENTS value=-out war -startupUrl @startupUrl @moduleName/ stringAttribute key=org.eclipse.jdt.launching.PROJECT_ATTR value=@projectName/ Modified: releases/1.6/user/src/com/google/gwt/user/tools/ApplicationCreator.java == --- releases/1.6/user/src/com/google/gwt/user/tools/ApplicationCreator.java (original) +++ releases/1.6/user/src/com/google/gwt/user/tools/ApplicationCreator.java Tue Dec 2 09:12:50 2008 @@ -309,6 +309,7 @@ replacements.put(@startupUrl, startupUrl); replacements.put(@vmargs, isMacOsX ? jvmarg value=\-XstartOnFirstThread\/ : ); +replacements.put(@eclipseVmargs, isMacOsX ? -XstartOnFirstThread : ); replacements.put(@eclipseExtraLaunchPaths, CreatorUtilities.createEclipseExtraLaunchPaths(extraClassPaths)); replacements.put(@extraModuleInherits, Modified: releases/1.6/user/src/com/google/gwt/user/tools/project.ant.xmlsrc == --- releases/1.6/user/src/com/google/gwt/user/tools/project.ant.xmlsrc (original) +++ releases/1.6/user/src/com/google/gwt/user/tools/project.ant.xmlsrc Tue Dec 2 09:12:50 2008 @@ -50,6 +50,7 @@ pathelement path=${java.class.path}// pathelement path=@gwtUserPath/ /classpath + jvmarg value=-Xmx256M/ @vmargs arg value=-out/ arg file=${outdir}/ @@ -63,13 +64,13 @@ target name=shell depends=javac description=Run the deployed app in GWT hosted mode java failonerror=true fork=true classname=@shellClass - jvmarg value=-Xmx256M/ classpath pathelement location=src/ pathelement location=@gwtDevPath/ pathelement path=${java.class.path}//