Re: Wiping application memory on the broser after user logout or window/tab close
You can't trigger browser's garbage collector. On Oct 7, 7:23 am, francescoNemesi nem...@yahoo.com wrote: Hi, my application has a logout button. When the user logs out the application invalidates and cleans up the HttpSession on the server side. I would like to do the same on the client, i.e. I would like to clean up all (or as much as possible) the memory used by the application on the client side. Is this possible? Any ideas or best practice on how to do this? Any help is greatly appreciated. Thanks Kind Regards, Francesco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Suggestions for non-java programmer
http://examples.roughian.com/#Home usually a good noobie starting point, ;). On Oct 6, 7:17 pm, Christopher Merry ch...@diggindata.com wrote: I have looked through the docs, including the Getting Started Guide and Tutorials. Those resources are very useful; however, I have limited experience with Java. I'm looking for suggestions on how to quickly get up to speed on the GWT for someone without a Java foundation. In particular, if there are any books that others would recommend, I would appreciate it. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: onModuleLoad not called
Yep, I think the GWT general conventions asks one to put the gwt.xml to the module root directory, and all java under 'client' or 'server', although it is not compulsory. I'm playing around with different renaming schemes, and building modules with those 'non-working' names from scratch. So far I have not yet managed to make a module named TableTree to work. Is there a way to catch errors, in case onModuleLoad simply wont be run? This is the confusing bit, no errors. Anni On Oct 6, 9:02 pm, Chris Ramsdale cramsd...@google.com wrote: Anni, Just to double check, I created a new GWT 1.7.1 project named TableTree with the same GWT.log() code within onModuleLoad(). Upon running, it did in fact log to the browser debug window. The one difference that I did notice was that my TableTree.gwt.xml file actually resides within * gwt.trees.tableTree.client* whereas you mentioned yours resides in * gwt.trees.tableTree*, Thanks, Chris Ramsdale On Tue, Oct 6, 2009 at 10:14 AM, Anni anni.ahonenbish...@gmail.com wrote: I'm using 1.7.1. on Linux, and ant to compile and run hosted mode. I had exactly the same problem with the simplest possible Entry Point module setup; onModuleLoad calls GWT.log(called, null). My module was named TableTree and was located in gwt.trees.tableTree.client.TableTree, with the gwt.xml file being in the gwt.trees.tableTree, following the GWT module conventions. I named my module in the gwt.xml using the 'rename-to' attribute to 'tableTree'. I couldn't get the onModuleLoad to launch in hosted or web mode, no matter what. Things worked perfectly fine in three other, way more complicated modules with exactly the same naming conventions, but for some reason this one refused to work. I could not possibly strip it down any further without losing my only way of knowing, whether the onModuleLoad was called or not. Then I changed its name from TableTree to UserTableTree. Suddenly it became alive. Go figure. Are there possible name collisions or something similar hidden in GWT that might be causing this? Similarly sampleTree.client.SampleTree was a no-no, whilst aTree.client.ATree works like a charm. What gives? I ensure you, only change made was renaming the modules. If you want to see my stub-code, working vs non-working, I can put it here, but I'm 100% certain, I did not change a single thing in the actual module configurations to make it suddenly work, apart from the changes to module and class names. At any given time, there were no errors from GWT. Anni On Oct 1, 3:10 pm, Ian Bambury ianbamb...@gmail.com wrote: Well, you did something wrong, then :-) Start again. Make one change. Try it. Make one change. Try it. Make one change. Try it. . . . Ian http://examples.roughian.com 2009/10/1 Viliam Durina viliam.dur...@gmail.com I created a project using GWT Eclipse plugin and then did some renaming and reorganization, but after that the onModuleLoad of my EntryPoint is not called. No error or warning is produced. In the war directory I have base.html file. It contains the line: script type=text/javascript language=javascript src=base/ base.nocache.js/script In the src directory there is a file clientspecific/base.gwt.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.7.1// EN http://google-web-toolkit.googlecode.com/svn/tags/1.7.1/distro- source/core/src/gwt-module.dtd module rename-to='base' !-- Inherit the core Web Toolkit stuff. -- inherits name='com.google.gwt.user.User'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines. -- 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'/ -- !-- Other module inherits -- inherits name='ktechnology.client.clientspecific.gwt.KTFGwtClient'/ !-- Specify the app entry point class. -- entry-point class='clientspecific.client.BaseTemplate'/ /module But the entry-point class is not loaded. If I put any random text as the class, no error is produced. If I put random text to inherits name, error is reported, but in entry point not. In web mode both errors are reported, but even in case of correct class, it does not work. I use GWT 1.7.1. Thanks for any help. Viliam --~--~-~--~~~---~--~~ 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
Re: Suggestions for non-java programmer
I have a good understanding of PHP, and I I have been working with Flex for the past several months. I am comfortable with OO principles, but I find the vast number of Java classes intimidating. On Oct 6, 2:05 pm, Daniel Jue teamp...@gmail.com wrote: What non-Java programming experience do you have? If you are coming from a language like PHP, C# or VB, that would determine where you need to start. On Tue, Oct 6, 2009 at 1:17 PM, Christopher Merry ch...@diggindata.com wrote: I have looked through the docs, including the Getting Started Guide and Tutorials. Those resources are very useful; however, I have limited experience with Java. I'm looking for suggestions on how to quickly get up to speed on the GWT for someone without a Java foundation. In particular, if there are any books that others would recommend, I would appreciate it. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Suggestions for non-java programmer
Thanks, I'll give that a try On Oct 7, 12:21 am, monk3y darkside...@hotmail.com wrote: http://examples.roughian.com/#Home usually a good noobie starting point, ;). On Oct 6, 7:17 pm, Christopher Merry ch...@diggindata.com wrote: I have looked through the docs, including the Getting Started Guide and Tutorials. Those resources are very useful; however, I have limited experience with Java. I'm looking for suggestions on how to quickly get up to speed on the GWT for someone without a Java foundation. In particular, if there are any books that others would recommend, I would appreciate it. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Sending long parameter via cross-site JSON
Here I am with the code. 1) Client side GWT code: /** * Saving long content of e-mail. If it shorter than NewMessgeContentPanel.CHARS_COUNT_IN_FRAGMENT, no results will be generated. * @param communicationEventId - ID needed for operations in DB * @param messageText - long content text * @param subject - content name, for this case content name = subject of e-mail */ private void saveEmailContent(String communicationEventId, String messageText, String subject){ if(messageText.length() = NewMessgeContentPanel.CHARS_COUNT_IN_FRAGMENT){ //get array of Strings from messageText //loop throught this array calling json service. Pass to service index and messageText int charAmount = NewMessgeContentPanel.CHARS_COUNT_IN_FRAGMENT; String [] arr = this.splitLongText(messageText, charAmount); //this protects from emty textPart input if(arr[arr.length-1].compareTo() == 0){ arr = this.splitLongText(messageText, charAmount+1); } for(int i = 0; i arr.length; i++){ String url = JSON_URL_CONTENT + partyLoginId=+Mail.getPrimaryDataUpload ().getPartyDetales().getUserLoginId()+ communicationEventId=+communicationEventId+ sequenceNum=+i+ allMessageLenght=+messageText.length()+ fragmetsCount=+arr.length+ mimeTypeId=+Utils.HTML_MIME_TYPE+ subjectMessage=+subject+ textPart=+arr[i]; //call cross-site JSON AccessRemoteJsonService rs = AccessRemoteJsonService.getInstance(this); rs.callJsonService( URL.encode(url)); } } } 2) Server side code (Ofbiz framework is used): /** * Save e-mail long content fragment * @param dctx - OfBiz DispatchContext * @param context - gather input from context * @return */ public static Map saveEmailContentViaJson(DispatchContext dctx, Map context) { Map results = new HashMap(); String callback = (String) context.get(callback); Locale locale = (Locale) context.get(locale); String partyLoginId = (String) context.get(partyLoginId); String communicationEventId = (String) context.get (communicationEventId); String textPart = (String) context.get(textPart); Integer sequenceNum = (Integer) context.get(sequenceNum); Integer allMessageLenght = (Integer) context.get (allMessageLenght); String mimeTypeId = (String) context.get(mimeTypeId); String subjectMessage = (String) context.get (subjectMessage); Integer fragmetsCount = (Integer) context.get (fragmetsCount); GenericDelegator delegator = dctx.getDelegator(); try { if(subjectMessage == null){ subjectMessage= ; }else{ subjectMessage = URLDecoder.decode(subjectMessage, UTF-8); } textPart = URLDecoder.decode(textPart, UTF-8); //save the begining of message into CommunicationEvent : this couses a dedlock !!! //if(sequenceNum == 0){ //GenericValue communicationEvent = delegator.findByPrimaryKey(CommunicationEvent, UtilMisc.toMap (communicationEventId, communicationEventId)); //communicationEvent.put(content, textPart); //communicationEvent.put(contentMimeTypeId, mimeTypeId); //delegator.store(communicationEvent); //} //saving began from the start, so clear old fragments if(sequenceNum == 0){ deleteEmailTextContent(communicationEventId, delegator); } //save very long text as fragments, if it consists of more that 1 fragment if(fragmetsCount 1){ //attach fragment itself Map dataResourceData = new HashMap(); dataResourceData.put(dataResourceId, delegator.getNextSeqId(DataResource)); dataResourceData.put(dataCategoryId, BUSINESS); dataResourceData.put(dataSourceId, LEAD_DIRECTMAIL); dataResourceData.put(statusId, CTNT_IN_PROGRESS); String subj = subjectMessage; if(subj.length() 100){ subj = subjectMessage.substring(0, 97)+...; } dataResourceData.put(dataResourceName, subj); dataResourceData.put(localeString, locale.toString ()); subj = subjectMessage; if(subj.length() 255){ subj = subjectMessage.substring(0, 252)+...; } dataResourceData.put(objectInfo, subj); dataResourceData.put(relatedDetailId, null); dataResourceData.put(isPublic,
Re: How can I reference files under war/ in a RemoteServiceServlet?
is this what you're looking for? http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String) On Oct 6, 3:19 am, Andreas Kahl andreas_k...@gmx.net wrote: Hello everyone, I wrote a RemoteServiceServlet fetching XML from a remote Service, XSLT-transforming it to XHTML and deliver it back to the Client. The XSLT-Stylesheet is saved under ProjectDir/war/xslt/filename.xsl. In Hosted Mode it can easily be read with a path/filename xslt/ filename.xsl. But that does not work if I deploy the webapp on a Tomcat-Servlet- Container. Is there a way of coding 'getTheActualDeployPathOnMySystem()+/xslt/ filename.xsl'? Thanks for your advice --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: using ExtJS (not GXT) with GWT
Only if you release your application in binary form. You are always free to use/modify a GPL'd library privately and not release anything (see http://www.gnu.org/licenses/gpl-faq.html#GPLRequireSourcePostedPublic) On Oct 6, 8:10 pm, Martin Kraus martin.krau...@gmail.com wrote: if you use a GPL library, you must release your application source code. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: using ExtJS (not GXT) with GWT
Are you referring to gwt-ext ? http://code.google.com/p/gwt-ext/ I can't find any extjs-gwt. On Oct 6, 5:23 pm, charlie charlie.f...@gmail.com wrote: Have you seen the unofficial extjs-gwt ? I would go that route. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Suggestions for non-java programmer
The number of Java classes you actually in everyday programming is very small, even more so if you use GWT because you are limited by GWT's JRE emulation library, which only emulates a subset of the full JRE class library. You might want to check the complete list of emulated classes there: http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html On Oct 7, 9:35 am, Christopher Merry ch...@diggindata.com wrote: I have a good understanding of PHP, and I I have been working with Flex for the past several months. I am comfortable with OO principles, but I find the vast number of Java classes intimidating. On Oct 6, 2:05 pm, Daniel Jue teamp...@gmail.com wrote: What non-Java programming experience do you have? If you are coming from a language like PHP, C# or VB, that would determine where you need to start. On Tue, Oct 6, 2009 at 1:17 PM, Christopher Merry ch...@diggindata.com wrote: I have looked through the docs, including the Getting Started Guide and Tutorials. Those resources are very useful; however, I have limited experience with Java. I'm looking for suggestions on how to quickly get up to speed on the GWT for someone without a Java foundation. In particular, if there are any books that others would recommend, I would appreciate it. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
HistoryHandler GWT 1.7.1 doubleclick
Hello Newsgroup, I try to keep my database in the right state using the HistoryHandler or the deprecated HistoryListener. It's kind of undo/redo-function. My problem is, if you press the back or forward-button very quickly (doubleclick), it seems that the HistoryHandler does not get all the events, so my database gets out of sync. Is there any help? Best regards, Vokke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 2.0 Milestone 1
why is the link showing it as deprecated. GWT 2.0 Milestone 1 (for all platforms) http://code.google.com/p/google-web-toolkit/downloads/detail?name=gwt-2.0.0-ms1.zipcan=1q=2.. Deprecatedhttp://code.google.com/p/google-web-toolkit/downloads/list?q=label:Deprecated On Wed, Oct 7, 2009 at 10:21 AM, Power Bottom larse...@gmail.com wrote: I just created an app with the M1 release and noticed that if you send a Persistent Object up to the server save it, detach it and send it back down, you don't get an error (This was admittedly a simple object). Is this a new change in 2.0? If so, awesome and thanks. My only question is why haven't I heard this was coming into 2.0 earlier? Thanks, Jeff On Oct 6, 8:25 pm, Dominik Steiner dominik.j.stei...@googlemail.com wrote: Thanks Chris for the link, as described in the link just copying gwt-dev.jar and renaming it to gwt-dev-mac.jar tricks the eclipse plugin and let's you easily start the OOPHM mode. Dominik Domink, The post below may provide you with some information regarding this issue: http://groups.google.com/group/google-web-toolkit/browse_thread/threa. .. - Chris On Tue, Oct 6, 2009 at 8:32 PM, Dominik Steiner dominik.j.stei...@googlemail.com wrote: Congratulations! That was way faster than I expected, thanks for getting this release out that early. One remark: seems like the eclipse plugin is not accepting the current release with the message after selecting the gwt-dev-ms1 folder that gwt-dev-mac.jar (in my case) is missing. So I guess that a new eclipse plugin version will have to handle that accordingly. Domink On 6 Okt., 12:49, Rakesh rake...@gmail.com wrote: great release ... especially the declarative ui, download on demand and multiple browsers piece!!! good going gwt team... you rock!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 2.0 Milestone 1
because it's only a milestone and not a full release. Parvez Shah wrote: why is the link showing it as deprecated. GWT 2.0 Milestone 1 (for all platforms) http://code.google.com/p/google-web-toolkit/downloads/detail?name=gwt-2.0.0-ms1.zipcan=1q=2.. Deprecated http://code.google.com/p/google-web-toolkit/downloads/list?q=label:Deprecated On Wed, Oct 7, 2009 at 10:21 AM, Power Bottom larse...@gmail.com mailto:larse...@gmail.com wrote: I just created an app with the M1 release and noticed that if you send a Persistent Object up to the server save it, detach it and send it back down, you don't get an error (This was admittedly a simple object). Is this a new change in 2.0? If so, awesome and thanks. My only question is why haven't I heard this was coming into 2.0 earlier? Thanks, Jeff On Oct 6, 8:25 pm, Dominik Steiner dominik.j.stei...@googlemail.com mailto:dominik.j.stei...@googlemail.com wrote: Thanks Chris for the link, as described in the link just copying gwt-dev.jar and renaming it to gwt-dev-mac.jar tricks the eclipse plugin and let's you easily start the OOPHM mode. Dominik Domink, The post below may provide you with some information regarding this issue: http://groups.google.com/group/google-web-toolkit/browse_thread/threa... - Chris On Tue, Oct 6, 2009 at 8:32 PM, Dominik Steiner dominik.j.stei...@googlemail.com mailto:dominik.j.stei...@googlemail.com wrote: Congratulations! That was way faster than I expected, thanks for getting this release out that early. One remark: seems like the eclipse plugin is not accepting the current release with the message after selecting the gwt-dev-ms1 folder that gwt-dev-mac.jar (in my case) is missing. So I guess that a new eclipse plugin version will have to handle that accordingly. Domink On 6 Okt., 12:49, Rakesh rake...@gmail.com mailto:rake...@gmail.com wrote: great release ... especially the declarative ui, download on demand and multiple browsers piece!!! good going gwt team... you rock!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
changing DOM element properties after onModuleLoad
Hi All, I am trying to reset certain attributes of some of the elements on specific mouse/keyboard events; yes ofcourse, these events occur after onModuleLoad. For example, I am trying to do a DOM.getElementById(tabPanelContainer).setAttribute(selectedTab, cr) on a particular mouse click event. But it looks like the value doesnot get reset when I do that. My bigger objective is to achieve deferred binding by modifying the attributes of the DOM elements and have the gwt.xml file return the right scripts depending on the attributes. Is this achieveable. The current behavior is that the class corresponding to the older value of the attribute value gets bound. Regards, Balaji --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Wiping application memory on the broser after user logout or window/tab close
Thanks, I knew that... I ìm looking for workarounds. Thanks again On Oct 7, 9:07 am, alex.d alex.dukhov...@googlemail.com wrote: You can't trigger browser's garbage collector. On Oct 7, 7:23 am, francescoNemesi nem...@yahoo.com wrote: Hi, my application has a logout button. When the user logs out the application invalidates and cleans up the HttpSession on the server side. I would like to do the same on the client, i.e. I would like to clean up all (or as much as possible) the memory used by the application on the client side. Is this possible? Any ideas or best practice on how to do this? Any help is greatly appreciated. Thanks Kind Regards, Francesco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: changing DOM element properties after onModuleLoad
Hi Folks, More findings. The DOM variable attribute here is getting reset properly. The problem infact boils down to deferred binding. The class when gets bound corresponds to the variable which was bound earlier viz. before I did a reset. So I think the problem is again to do with deferred binding. Regards, Balaji On Wed, Oct 7, 2009 at 4:42 PM, Sampath Kumar sampat...@gmail.com wrote: Hi All, I am trying to reset certain attributes of some of the elements on specific mouse/keyboard events; yes ofcourse, these events occur after onModuleLoad. For example, I am trying to do a DOM.getElementById(tabPanelContainer).setAttribute(selectedTab, cr) on a particular mouse click event. But it looks like the value doesnot get reset when I do that. My bigger objective is to achieve deferred binding by modifying the attributes of the DOM elements and have the gwt.xml file return the right scripts depending on the attributes. Is this achieveable. The current behavior is that the class corresponding to the older value of the attribute value gets bound. Regards, Balaji --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
gwtcompiler mac os 10.5
Hi, I am on eclipse on Mac OS 10.5. Deferred binding works absolutely fine in hosted mode. I am able to compile the code and all those 18* combinations of java scripts are generated. When I try to access the url from firefox or safari on Mac OS, nothing comes up. No scripts, no widgets; nor can I see any script errors. I can only see the contents of my module.html. Is there an issue with the gwtcompiler on Mac. Regards, Balaji --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Wiping application memory on the broser after user logout or window/tab close
as said earlier there's no way to trigger the browser's garbage collector but you could help him and set to null some references... unregister any handlers you have... and so on :) this should point to the garbage collector that it should free that memory hope it helped you On Oct 7, 8:32 am, francescoNemesi nem...@yahoo.com wrote: Thanks, I knew that... I ìm looking for workarounds. Thanks again On Oct 7, 9:07 am, alex.d alex.dukhov...@googlemail.com wrote: You can't trigger browser's garbage collector. On Oct 7, 7:23 am, francescoNemesi nem...@yahoo.com wrote: Hi, my application has a logout button. When the user logs out the application invalidates and cleans up the HttpSession on the server side. I would like to do the same on the client, i.e. I would like to clean up all (or as much as possible) the memory used by the application on the client side. Is this possible? Any ideas or best practice on how to do this? Any help is greatly appreciated. Thanks Kind Regards, Francesco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
User selectable themes
I need to implement user selectable themes for my gwt app. Any one know of a best practices way to do 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: RichTextArea+MSWORDJunkData
I had the same problem. I found some .Net code that people were using in a related situation, and adapted it to this. It would be better if it did case-insensitive regex matching, but this seems to work at the moment. public static String deWordify(String in) { String out = in; out = out.replaceAll(!--(\\w|\\W)+?--,); out = out.replaceAll(title(\\w|\\W)+?/title,); out = out.replaceAll(\\s?class=\\w+,); out = out.replaceAll(\\s+style='[^']+',); out = out.replaceAll((meta|link|/?o:|/?style|/?div|/?st\\d|/? head|/?html|body|/?body|!\\[)[^]*?,); out = out.replaceAll((/?SPAN|/?FONT|/?A)[^]*?,); out = out.replaceAll(([^]+)+nbsp;(/\\w+)+,); out = out.replaceAll(\\s+v:\\w+=\[^\]+\,); out = out.replaceAll((\n\r){2,},); return out; } John. On Sep 18, 12:19 am, javalover madhu4technol...@gmail.com wrote: Hi All, In theRichTextAreawhen i copied and paste data from MSword document it is generating some msword junk data .Could you please give me suggestion is there any method or any solution for 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Launch Window in onModuleLoad()
Hi all. I've three month working with GWT and it's amazing. But I have a problem with a thing, and I hope someone could help me: I've a proyect and everything goes fine. I've a menu whit items and all this ones launch a modal window for user's works. The problem is that i want to launch one of this windows when program starts, and i don't know how to do it, because this window could be automatically launch at app starts... Plz help me about it...and thanks for all this help... PD: excuse for my english...It' the worst... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Different behavior when GWT is behind a proxy
All, I'm trying to solve this issue, which I've also posted to SO: http://stackoverflow.com/questions/1517290/problem-with-gwt-behind-a-reverse-proxy-either-nginx-or-apache The problem is not a serialization issue, but a difference in behavior when GWT is sitting behind a proxy. Is it possible that it's using the Referer header somehow and getting confused about its context? Don --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: rpc serialization problem
Hi, I was experimenting with it a bit as well and it seems to me that even the most simple Entity bean cannot be passed through RPC call. I had a simple class: @Entity public class Tournament implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private int tournamentId; @Temporal(value = TemporalType.DATE) private Date date; ... and I wasnt able either to pass it from the server to the client or the other way. Once I removed all the JPA annotation (no other change!), everything went fine. So I think despite the fact that the class above is de facto compliant with GWT requirements for via-RPC- sendable classes (see the docs - serializable, fields serializable, etc.), it's the JPA annotations and its processing by DataNucleus that create the problem. That there's some kind of problem can also be seen in the tutorial for GWT and appengine: instead of much more natural approach (from certain point of view) of creating the Stock entity in client code and sending it through RPC, addStock is called only with String argument and Stock Entity is constructed on server. Same with getStock: stock list is fetched from datastore and then parsed and getStock() passes array of Strings back to client, although it would be nice and convenient to have Stock entity on client and populate the table by calling getters. The solution is to use either DTO pattern or a 3rd party library called Gilead (that does basically the same boring work of cloning entity, passing it to the client and when it comes back, merging it with the original) LZ On Oct 6, 11:06 pm, Sudeep S sudee...@gmail.com wrote: Hey Benjamin, Since u are using Generics ensure that all the classes Service, ServiceAync and ServiceImpl use the same signature i.e ListSubCatagory . btw which version of gwt are u using. Also, you can the temp dir where u can find a rpc.log file with the list of all objects that are serialized. On Wed, Oct 7, 2009 at 2:20 AM, Benjamin bsaut...@gmail.com wrote: I'm struggeling with this now - did you guys solve it? I have a simple client class that will be a parent in a simple parent-child relationship. If i add an ArrayList property to the parent class (i don't even have to decorate it as persistant) i get EVERE: [1254861190636000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'org.datanucleus.sco.backed.List' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized. i've tried java.util.list and java.util.arraylist with same result - defiitly not a 'org.datanucleus.sco.backed.List' what's odd is that the RPC call runs in a way and the object is persisted but without the list field. Anyway - this seems like something that can't be passed in an RPC call but i don't see why @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Catagory extends BaseTreeModel implements Serializable { public Catagory() {} private static final long serialVersionUID = 1L; �...@primarykey �...@persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) �...@extension(vendorName=datanucleus, key=gae.encoded-pk, value=true) private String key; @Persistent(mappedBy = catagory) private ListSubCatagory subcatagories; } On Sep 22, 5:43 am, Angel gonzalezm.an...@gmail.com wrote: i have the same problem On 5 ago, 04:52, mike m...@introspect.com wrote: I have a simple one-to-many betwen two entities. The parent entity uses List to contain the child entities. I am able to persist these entities in the datastore without problems. However, when reading a root entity at the server, I get: rpc.SerializationException: Type 'org.datanucleus.sco.backed.List' was not included in the set of types which can be serialized... The entities are successfully read from the datastore, but something in Datanucleus doesn't build the List correctly. Has anyone found a workaround for this serialization problem. Thanks GWT 1.7 GAE 1.2.2- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
hosted mode debugging with -noserver in eclipse
Hi ... I'm trying to get hosted mode debugging running using Jboss as the server instead of tomcat and I can't get it working ... I've followed the instructions here ... http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s But when I try to run the google web tool kit development shell with eclipse I'm getting [ERROR] Unable to find 'main.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? I've specified Main as my entry point module in the gwt tab of the launch configuration. Yes I did notice the case difference in the name, the module definition was changed to main with module rename-to=main and the url was context-root/main/ main.html ... I've tried renamining the gwt.xml to main.gwt.xml but that had no effect. The root src dir with the gwt.xml is on the classpath (in the classpath tab). I've tried explcitly setting the directory with the Main.gwt.xml into the classpath which does indeed let eclipse/gwt find the xml file but then I get lots of errors along the lines of The declared package com.company.product.web.client.uicomponent.menu does not match the expected package client.uicomponent.menu I'm stumped ... could it be the rename-to=main thats confusing it ? anyone with any ideas ? I'm able to run some sample projects in the embedded server no problem so I can only think that its something to do with running in -noserver option but I'm lost. I'm using Google App Engine for Java 1.2.5 SDK Bundle for Eclipse 3.5 with GWT 1.7 Everything compiles with Maven and runs ok on JBoss ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Starting a project
Hello anjan, using GWT results in the well known security risks of JavaScript. You can find a good overview here: http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications Hope that helps, Andreas On 6 Okt., 14:20, anjan rockan...@gmail.com wrote: Hi, I am trying to develop a Library Management System. It will have a lot of forms to interact with the server and displays the results. I have been researching on both GWT and Spring and from the study so far, my understanding is that using GWT only in the project can have security issues. I have following questions: 1. Is it a good idea to use only GWT for both client side and server side processing? Or, is it better to use Spring for the server side processsing. 2. If you suggest using Spring as well, how would you suggest I use it? what tasks should the GWT handle and what tasks should Spring handle? Moreover, what library do you suggest for the integration, for example GWT-widget library or using no libraries for the integration at all? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
GWT 1.7 Hosted mode Wont create GWT widgets
Hello, I am having a problem that started just out of the blue. my project has been working fine for months however today all of a sudden it stopped running in hosted mode. I can still compile the project and when run on my tomcat it worked fine. I have determined that it is not contained to simply the project i was working on all previous and new proejects fail to start. only basic HTML code is shown in the hosted browser and it wont process the java code in the entry point. If i set a break point within the onModuleLoad method it is never triggered. I am using eclispe 3.4 with GWT 1.7, also tried 1.6.4 and 1.7.1 with no effect. using the Google plugin Thanks Patrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: using ExtJS (not GXT) with GWT
Other issues are whether or not what you're doing constitutes a derivative work: http://en.wikipedia.org/wiki/Derivative_work Of course, if you do need to make some changes, why don't you bounce those ideas off of me and maybe the fit in the framework. Thanks, Dave 2009/10/7 Olivier Gérardin ogerar...@yahoo.com: Only if you release your application in binary form. You are always free to use/modify a GPL'd library privately and not release anything (see http://www.gnu.org/licenses/gpl-faq.html#GPLRequireSourcePostedPublic) On Oct 6, 8:10 pm, Martin Kraus martin.krau...@gmail.com wrote: if you use a GPL library, you must release your application source code. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
PushButton with css sliding doors
I'm looking to do something like this: http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html Just curious if anyone has an example of using the sliding doors technique for spanning wide text for button images, and also using on/ off images. PushButton has style names for on/off etc...but so far I haven't been able to get the span thing to work. Regards, Davis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Performance issue in IE browser.
pal, you could try using IE8 and the profiler it is shipping with to determine which methods are being called (compiling your code first with -pretty) and which one take more time than others. In our project we thus found out that IE was behaving bad on equals() and equalsIgnoreCase() methods which we replaced then by using hashmaps. HTH Dominik On Oct 6, 3:15 pm, Chris Ramsdale cramsd...@google.com wrote: Pal, In regards to speed and load times, there is generally no silver bullet and each browser is wildly different. That said the the browser's Javascript interpreters and rendering engines generally have the greatest impact on application performance. In your case, determining exactly what is causing your app to load 3x times slower on IE is difficult given that FF and IE have completely different JS interpreters (different names depending on what version you are running) and rendering engines (Trident on IE and Gecko on FF). If you would be able to provide the code that is being executed on startup, or some related design doc we may be better positioned to provide some guidance. Thanks, Chris Ramsdale On Tue, Oct 6, 2009 at 6:03 AM, pal venugopal.pok...@gmail.com wrote: We have developed a stand alone web based application using GWT and performance of this application (Page Load time) in Mozilla firefox browser is 3 times better than the IE browser. Any help in improving performance of this application in IE browser would be great help to us. Thanks, Pal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: OOPHM GWT 2.0 Milestone 1 on Mac
Hi Christian, I moved to the ms1 yesterday but had been playing around with OOPHM with a version that i built from the trunk before and also got into problems when FF 3.5 came out and broke the OOPHM mode that i was using. Now yesterday with the ms1 release and the plugin already installed i tried to connect to the url that the OOPHM gave me but it always told me that there was no plugin available. I first tried to deactivate the plugin and reinstall it, but with no luck. So what I did was to remove the plugin from FF 3.5 first and then reinstall it from the link that the no plugin available page gave me. After that the OOPHM is now working fine. HTH Dominik On Oct 6, 1:02 pm, Christian Goudreau goudreau.christ...@gmail.com wrote: Hi, I'm always getting an error while trying to run in OOPHM. First they ask me to copy and URL to a browser with the plugin, after doing that, they always ask me to re-compile. I have the plugin and using Firefox 3.5. Anyone know how to get it work properly ? Thanks Christian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT PHP HTML 5 interaction
on our project our GWT frontend (running on tomcat) was talking with the php backend (on another server) via hessian protocol and it was working good. HTH Dominik On Oct 6, 11:26 am, Takalov Rustem takalov.rus...@gmail.com wrote: Hey Guys, I have been researching on GWT and PHP integration a while. The reason is - I need a simple, flexible client - side AJAX based Framework to develop and integrate web - based application into existing PHP application running @ Rackspace (Linux, PHP, MySQL). Is anyway to integrate GWT api's into PHP code or I need to call PHP scripts from GWT? Do I have to run Tomcat server, Apache at the same server? How they would interact between each other? I think the solution connected with JSON, Jetty, hosted server mode, but I am not sure. Here is php script: ?php echo html/html; // I need AJAX Editor to Save/Load Editable Text Box to load it unto MySQL DB. echo scriptAJAXEditor();/script; ? How will it interact with HTML 5 manifest? Let me know if any questions. Thanks, Guys R --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Maven + GWT 1.7.1
Well, it's been a week, and still no jar. Is this really that hard to fix? On Sep 30, 3:47 pm, javier jasand...@gmail.com wrote: It seems that the 1.7.1 release has been published to theMaven central repo. Unfortunately, the jar gwt-dev-1.7.1-mac.jar was left out, so if you're on aMacyour build will break. Hope this jar gets published soon... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Google Plugin for Eclipse: Use Eclipse Classpath and Libraries
Hallo Rajeev, Thank you for your answer. I am affraid that I would prefer the exact opposite - for me deployment and developent are quite different, and the Hosted Mode is part of the development environment. The deployment is done seperately by a maven build and has no dependencies on the development environment exept fo the generation of the eclipse project configuration by maven. If the hosted mode is started from within Eclipse, I would have assumed that it uses the run classpath provided by eclipse as this is would link the dependend projects by default. I have a typical JEE Application using GWT. We have seperate Ecplise Projects for each layer (as it is common in JEE), so the Client including GWT depends on the service project (filtering Hibernate sets for GWT), the service on the server side businesslayer and the business layer on the model (also including some GWT). We now linked the projects using external source folders in the client project, it works now, but we still need copies of the external libaries and linking the source folders is not a very good solution. Linking the other projects via JARs, as it is done in Deplyoment, is not really a viable solution for development - changes are only reflected after a build, which is very slow and creates an extra status with all issues included. May I ask why you consider it right to reflect deployment rather than development environoment in Hosted Mode? I guess things are very different depending on environment, and having the development enviroment as close to deploment as possible is sure a good thing, but to do this only for the Hosted Mode does create a gap between the Hosted Mode and the remaining development process. kind regards, Florian On 5 Okt., 18:35, Rajeev Dayal rda...@google.com wrote: Hi, In Hosted Mode, we're trying to mirror the deployment environment as closely as we can. As such, we want to throw an error if you're missing libraries in your war/WEB-INF/lib folder, as this would be an error condition when you actually deploy. If this doesn't answer your question, let me know, as I may be misunderstanding what you're asking for. Thanks, Rajeev On Fri, Oct 2, 2009 at 10:00 AM, arnoldhau arnold@gmail.com wrote: Hi, Is there a chance to avoid having a copy of all libraries in the war directory for the GWT hosted mode? In Ecplise, I would assume that any pluin just uses the classpath as provided with the run configuration, but the hosted mode seems to ignore this. While this is just wrong and anyoing for external llibraries (but doable), it generates a lot of confusion with inter- project dependencies and versions. kind regards, Florian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: hosted mode debugging with -noserver in eclipse
Just to follow up on this ... this seems to be the eclipse plugin, I've managed to get host mode running from the command line and it works. The weird thing is, it DOES work with a small war project that I built, deployed on jboss and ran the hosted mode -noserver option from eclipse via the plugin. Our more complicated maven built war (part of a larger ear) doesn't and it seems to classpath issue but I don't know how to debug the eclipse plugin. I've added the command line startup command into my eclipse run so I can debug but it would be better if the plugin worked :( I did notice that the usage for plugin was different from commandline options so there could well be a bug here (i.e. theres a possiblity I'm not going mad). GWTShell vs HostedMode ?? Unknown argument: -blah Google Web Toolkit 1.7.0 GWTShell [-noserver] [-port port-number | auto] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logLevel level] [- gen dir] [-style style] [-ea] [-out dir] [url] where -noserver Prevents the embedded web server from running -port Specifies the TCP port for the embedded web server (defaults to ) -whitelist Allows the user to browse URLs that match the specified regexes (comma or space separated) -blacklist Prevents the user browsing URLs that match the specified regexes (comma or space separated) -logLevel The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL -genThe directory into which generated files will be written for review -style Script output style: OBF[USCATED], PRETTY, or DETAILED (defaults to OBF) -ea Debugging: causes the compiled output to check assert statements. -outThe directory to write output files into (defaults to current) and url Automatically launches the specified URL versus java -cp gwt-dev-your platform here.jar com.google.gwt.dev.HostedMode Missing required argument 'module[s]' Google Web Toolkit 1.7.0 HostedMode [-noserver] [-port port-number | auto] [-whitelist whitelist-string ] [-blacklist blacklist-string] [-logLevel level] [-gen dir] [-style style] [-ea ] [-server servletContainerLauncher] [-startupUrl url] [-war dir] [- extra dir] [ -workDir dir] [-localWorkers count] module[s] where -noserver Prevents the embedded web server from running -port Specifies the TCP port for the embedded web server (defaults to ) -whitelist Allows the user to browse URLs that match the specified regexes (comma or space separated) -blacklist Prevents the user browsing URLs that match the specified regexes (comma or space separated) -logLevel The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL -gen The directory into which generated files will be written for review -style Script output style: OBF[USCATED], PRETTY, or DETAILED (defaults to OBF) -eaDebugging: causes the compiled output to check assert statements. -serverSpecifies a different embedded web server to run (must implement ServletContainerLauncher) -startupUrlAutomatically launches the specified URL -war The war directory to write output files into (defaults to war) -extra The directory into which extra, non-deployed files will be written -workDir The compiler work directory (must be writeable; defaults to a system temp dir) -localWorkers Specifies the number of local workers to use when compiling permutations and module[s] Specifies the name(s) of the module(s) to host On Oct 7, 11:02 am, mike_mac michael.mac...@gmail.com wrote: Hi ... I'm trying to get hosted mode debugging running using Jboss as the server instead of tomcat and I can't get it working ... I've followed the instructions here ...http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h... But when I try to run the google web tool kit development shell with eclipse I'm getting [ERROR] Unable to find 'main.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? I've specified Main as my entry point module in the gwt tab of the launch configuration. Yes I did notice the case difference in the name, the module definition was changed to main with module rename-to=main and the url was context-root/main/ main.html ... I've tried renamining the gwt.xml to main.gwt.xml but that had no effect. The root src dir with the gwt.xml is on the classpath (in the classpath tab). I've tried explcitly setting the directory with the Main.gwt.xml into the classpath which does indeed let eclipse/gwt find the xml file but then I get lots of errors along the lines of The declared package com.company.product.web.client.uicomponent.menu does not match the expected package client.uicomponent.menu I'm stumped ... could it be the rename-to=main thats confusing it ? anyone with any ideas ? I'm able to run some sample projects in the
Re: Announcing GWT 2.0 Milestone 1
Their should be a unprecated term :P On Oct 7, 1:07 pm, Paul Robinson ukcue...@gmail.com wrote: because it's only a milestone and not a full release. Parvez Shah wrote: why is the link showing it as deprecated. GWT 2.0 Milestone 1 (for all platforms) http://code.google.com/p/google-web-toolkit/downloads/detail?name=gwt. Deprecated http://code.google.com/p/google-web-toolkit/downloads/list?q=label:De... On Wed, Oct 7, 2009 at 10:21 AM, Power Bottom larse...@gmail.com mailto:larse...@gmail.com wrote: I just created an app with the M1 release and noticed that if you send a Persistent Object up to the server save it, detach it and send it back down, you don't get an error (This was admittedly a simple object). Is this a new change in 2.0? If so, awesome and thanks. My only question is why haven't I heard this was coming into 2.0 earlier? Thanks, Jeff On Oct 6, 8:25 pm, Dominik Steiner dominik.j.stei...@googlemail.com mailto:dominik.j.stei...@googlemail.com wrote: Thanks Chris for the link, as described in the link just copying gwt-dev.jar and renaming it to gwt-dev-mac.jar tricks the eclipse plugin and let's you easily start the OOPHM mode. Dominik Domink, The post below may provide you with some information regarding this issue: http://groups.google.com/group/google-web-toolkit/browse_thread/threa... - Chris On Tue, Oct 6, 2009 at 8:32 PM, Dominik Steiner dominik.j.stei...@googlemail.com mailto:dominik.j.stei...@googlemail.com wrote: Congratulations! That was way faster than I expected, thanks for getting this release out that early. One remark: seems like the eclipse plugin is not accepting the current release with the message after selecting the gwt-dev-ms1 folder that gwt-dev-mac.jar (in my case) is missing. So I guess that a new eclipse plugin version will have to handle that accordingly. Domink On 6 Okt., 12:49, Rakesh rake...@gmail.com mailto:rake...@gmail.com wrote: great release ... especially the declarative ui, download on demand and multiple browsers piece!!! good going gwt team... you rock!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 2.0 Milestone 1
May we presume that the Snow Leopard issue is now history? Thanks, Joe On Mon, Oct 5, 2009 at 4:43 PM, Amit Manjhi amitman...@google.com wrote: Hi everyone, We are excited to release the first milestone build for GWT 2.0 today. This milestone provides early access (read: known to still be unfinished and buggy) to the various bits of core functionality that will be coming in GWT 2.0. Please download the bits from: http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=2.0+Milestone+1 Things that are changing with GWT 2.0 that might otherwise be confusing without explanation * Terminology changes: We're going to start using the term development mode rather than the old term hosted mode. The term hosted mode was sometimes confusing to people, so we'll be using the more descriptive term from now on. For similar reasons, we'll be using the term production mode rather than web mode when referring to compiled script. * Changes to the distribution: Note that there's only one download, and it's no longer platform-specific. You download the same zip file for every development platform. This is made possible by the new plugin approach used to implement development mode (see below). The distribution file does not include the browser plugins themselves; those are downloaded separately the first time you use development mode in a browser that doesn't have the plugin installed. Functionality that will be coming in GWT 2.0 * In-Browser Development Mode: Prior to 2.0, GWT hosted mode provided a special-purpose hosted browser to debug your GWT code. In 2.0, the web page being debugged is viewed within a regular-old browser. Development mode is supported through the use of a native-code plugin for each browser. In other words, you can use development mode directly from Safari, Firefox, IE, and Chrome. * Code Splitting: Developer-guided code splitting allows you to chunk your GWT code into multiple fragments for faster startup. Imagine having to download a whole movie before being able to watch it. Well, that's what you have to do with most Ajax apps these days -- download the whole thing before using it. With code splitting, you can arrange to load just the minimum script needed to get the application running and the user interacting, while the rest of the app is downloaded as needed. * Declarative User Interface: GWT's UiBinder now allows you to create user interfaces mostly declaratively. Previously, widgets had to be created and assembled programmatically, requiring lots of code. Now, you can use XML to declare your UI, making the code more readable, easier to maintain, and faster to develop. The Mail sample has been updated to use the new declarative UI. * Bundling of resources (ClientBundle): GWT has shipped with ImageBundles since GWT v1.4, giving developers automatic spriting of images. ClientBundle generalizes this technique, bringing the power of combining and optimizing resources into one download to things like text files, CSS, and XML. This means fewer network round trips, which in turn can decrease application latency -- especially on mobile applications. * Using HtmlUnit for running GWT tests: GWT 2.0 no longer uses SWT or the old mozilla code (on linux) to run GWT tests. Instead, it uses HtmlUnit as the built-in browser. HtmlUnit is 100% Java. This means there is a single GWT distribution for linux, mac, and windows, and debugging GWT Tests in development mode can be done entirely in a Java debugger. Known issues * If you are planning to run the webAppCreator, i18nCreator, or the junitCreator scripts on Mac or Linux, please set their executable bits by doing a 'chmod +x *Creator' * Our HtmlUnit integration is still not complete. Additionally, HtmlUnit does not do layout. So tests can fail either because they exercise layout or they hit bugs due to incomplete integration. If you want such tests to be ignored on HtmlUnit, please annotate the test methods with @DoNotRunWith({Platform.Htmlunit}) * The Google Eclipse Plugin will only allow you to add GWT release directories that include a file with a name like gwt-dev-windows.jar. You can fool it by sym linking or copying gwt-dev.jar to the appropriate name. Breaking changes * The way arguments are passed to the GWT testing infrastructure has been revamped. There is now a consistent syntax to support arbitrary runstyles, including user-written with no changes to GWT. Though this does not affect common launch configs, some of the less common ones will need to be updated. For example, '-selenium FF3' has become '-runStyle selenium:FF3' As always, remember that GWT milestone builds like this are use-at- your-own-risk and we don't recommend it for production use. Please report any bugs you encounter to the GWT issue tracker (http:// code.google.com/p/google-web-toolkit/issues/list) after doing a quick search to see if your issue has already been reported.
Re: Need to use GWT to make a program similar to Google Calendar, How would you do it?
@Chris, The first link you gave was actually the link that I originally linked. I'd love to see Ray Ryan's talk on Model View Presenter design though. Also, that DND library is pretty awesome though! That is definitely useful! Thank you for that! @Paul, That calendar is much better made than the one I found... Thank you for that. I think I might end up just trying to edit that rather than re-create the wheel. Or at least try to understand how he did it, and maybe get a better idea for how to make mine. Thank you! On Oct 6, 11:23 am, Paul Robinson ukcue...@gmail.com wrote: You might like to take a look here as well: http://code.google.com/p/ftr-gwt-library/ Chris Ramsdale wrote: This sounds like a great project and the Calendar example http://google.latest.gwt-web-calendar.appspot.com/ that you are working from has some nice layout and UI elements. There are several routes that you can take in terms of design, each with their own set of pros and cons. GWT is quite flexible, and even if you choose to implement this solution with a single large table (that I assume represents the main calendar grid) you can easily flip to a model where the table contains child elements that are themselves responsible for handling various events. You won't pigeon hole yourself. I've included some useful GWT related info below that should help you get started on design as well as drag and drop (DND) implementation. Ray Ryan's talk regarding Model View Presenter design: http://google.latest.gwt-web-calendar.appspot.com/ Fred Sauer's GWT compatible DND library: http://code.google.com/p/gwt-dnd/ Hope this helps, Chris Ramsdale On Tue, Oct 6, 2009 at 10:14 AM, spierce7 spier...@gmail.com mailto:spier...@gmail.com wrote: Anyone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.7 Hosted mode Wont create GWT widgets
Well I've just opened another thread with what sounds like a similar (but different) problem ... http://groups.google.com/group/google-web-toolkit/browse_thread/thread/34b7bbcf6057a23d Try running the app in hosted mode from the command line ... if it works you can simply launch it from inside eclipse as a java app. I know it doesn't solve your problem but it may at least allow you to keep developing. On Oct 7, 1:10 pm, Patrick Corbett patrickcorbett@googlemail.com wrote: Hello, I am having a problem that started just out of the blue. my project has been working fine for months however today all of a sudden it stopped running in hosted mode. I can still compile the project and when run on my tomcat it worked fine. I have determined that it is not contained to simply the project i was working on all previous and new proejects fail to start. only basic HTML code is shown in the hosted browser and it wont process the java code in the entry point. If i set a break point within the onModuleLoad method it is never triggered. I am using eclispe 3.4 with GWT 1.7, also tried 1.6.4 and 1.7.1 with no effect. using the Google plugin Thanks Patrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Adding request parameters to all async calls to servlets
Hi fellows... I am faced with this difficult situation: I have a GWT application built in the RPC style for async calls (1 Async interface, 1 RemoteService interface and 1 RemoteServiceServlet implementation) and now there is a requirement of sending some request parameters to each async call and I would like to perform this in a way the developer does not need to know about it (i.e. pass an object in every async call). I know if I were using RequestBuilder this would be a piece of cake, but I am not and it would require a *considerable* effort to change it. I was wondering if it's possible to extend the GWT.create to add a custom implementation that carries the parameters from the browser URL to all servlet calls... do you have any idea? thanks, Henrique PS.: I've also searched on GINGUICE but I couldn't figure out how I would do it without having to bind every manually (but I hope I am wrong). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
HELP NEEDED getting GWT working with EJB3 and JPA
Hello I'm trying to get gwt application to work with EJB3 and JPA via a servlet it works fine but when i use a factory with a servicelocator within my public class ProxyServiceImpl extends RemoteServiceServlet implements ProxyService, ServiceTemplateInterface { //@EJB EJBBWBean ejbSession; /** * */ EJBBWServiceLocal ejbSession =null; BusinessDelegator businessDelegator = null; private static final long serialVersionUID = -5280597539333461188L; public ProxyServiceImpl(){ System.out.println(EJB3ProxyServlet); businessDelegator = BusinessDelegatorFactory.getBusinessDelegator(); try{ ejbSession = businessDelegator.getLocalEJBBWService(); }catch(Exception e){ System.err.println(Error occured + e.toString()); e.printStackTrace(); } } public boolean isAuthorizedPerson(String userId){ boolean isAuthorized = false; if ( DEBUG )System.out.println(HomeServiceServlet.isAuthorizedPerson ( + userId + ); if(toine.equals(userId)){ isAuthorized = true; } return isAuthorized; } public String getUserName(){ return toine eetgerink; } @Override public boolean isAuthorized(String userId) { // TODO Auto-generated method stub return false; } @Override public ListCategory getCategorys() { // Thanks business delegate! ;-) return ejbSession.getCategorys(); } @Override public ListSubcategory getSubCategorys(String catName) { // TODO Auto-generated method stub return null; } @Override public Users getUserByUserNameandPassword(String userName, String password){ return null; //return ejbSession.getUserByUserNamePassword(userName, password); } @Override public String getTest(){ if( ejbSession == null) { try{ ejbSession = businessDelegator.getLocalEJBBWService(); }catch(Exception e){ System.err.println(Error occured + e.toString()); e.printStackTrace(); } }else{ System.out.println( getting session +ejbSession.getClass().getName ()); } return ejbSession.getTest(); } } with factory ... package nl.betterwell.bwgxt01.server.services; import java.util.Hashtable; import java.util.Properties; import java.util.logging.Logger; import javax.naming.Context; import nl.betterwell.server.services.ServiceLocator; import nl.betterwell.server.services.ServiceLocatorOPENEJB; import nl.betterwell.server.services.ServiceLocatorWebSphere; public class BusinessDelegatorFactory { private static final Logger log = Logger.getLogger (BusinessDelegatorFactory.class.getName()); private static ServiceLocator serviceLocator = ServiceLocatorWebSphere.getInstance(); // return an instance of Business Delegator with serviceLocator constructor-injected public static BusinessDelegator getBusinessDelegator() { return new BusinessDelegator(serviceLocator); } /* */ } package nl.betterwell.bwgxt01.server.services; /** * Business Delegator * * @author toine eetgerink */ import java.util.logging.Logger; import nl.betterwell.server.services.ServiceLocator; import nl.betterwell.server.services.ServiceLocator.ServiceLocatorContext; import nl.betterwell.service.EJBBWServiceLocal; import nl.betterwell.service.EJBBWServiceRemote; public class BusinessDelegator { private static final String EJBBWSERVICEREMOTE = nl.betterwell.service.EJBBWServiceRemote; private static final String EJBBWSERVICELOCAL = nl.betterwell.service.EJBBWServiceLocal; private static Logger log = Logger.getLogger (BusinessDelegator.class.getName()); private ServiceLocator sl = null; public BusinessDelegator(ServiceLocator serviceLocator) { this.sl = serviceLocator; } public EJBBWServiceLocal getLocalEJBBWService() { //return null; return sl.lookupResource(EJBBWSERVICELOCAL, ServiceLocatorContext.LOCAL); } public EJBBWServiceRemote getRemoteEJBBWService() { //return null; return sl.lookupResource(EJBBWSERVICEREMOTE, ServiceLocatorContext.REMOTE); } } package nl.betterwell.server.services; import java.util.Collections;
Re: Maven + GWT 1.7.1
Hi all, I'm working with GWT+osx since january 2009. I've used a lot of trick, fix, bricks... for work on osx machine, Please fix this. Cheers Mida On Oct 7, 5:32 pm, Caleb caleb.har...@gmail.com wrote: Well, it's been a week, and still no jar. Is this really that hard to fix? On Sep 30, 3:47 pm, javier jasand...@gmail.com wrote: It seems that the 1.7.1 release has been published to theMaven central repo. Unfortunately, the jar gwt-dev-1.7.1-mac.jar was left out, so if you're on aMacyour build will break. Hope this jar gets published soon... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Element.getStyle() getProperty from css external file
Hello, I have a webpage with external css file, I must parse this page and read css property for any tag. I use Element.getStyle().getProperty, but this not read the css property from external file, but only inline style. how can I do? best regards Ivan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: using ExtJS (not GXT) with GWT
We should probably take this to another forum, but I'd like to see the ability to specify number of columns, which column each field goes into etc. Also support for the DualListField, I've been toying with the code, do you want to take this to the google code forums ? On Wed, Oct 7, 2009 at 9:21 AM, David Durham david.durham...@gmail.comwrote: Other issues are whether or not what you're doing constitutes a derivative work: http://en.wikipedia.org/wiki/Derivative_work Of course, if you do need to make some changes, why don't you bounce those ideas off of me and maybe the fit in the framework. Thanks, Dave 2009/10/7 Olivier Gérardin ogerar...@yahoo.com: Only if you release your application in binary form. You are always free to use/modify a GPL'd library privately and not release anything (see http://www.gnu.org/licenses/gpl-faq.html#GPLRequireSourcePostedPublic) On Oct 6, 8:10 pm, Martin Kraus martin.krau...@gmail.com wrote: if you use a GPL library, you must release your application source code. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Deploying GWT RPC servlet as a separate WAR
Hi there! I was wondering if there is in any way possible to package and deploy GWT-RPC servlet as a stand-alone WAR application, without client side JS resources? Basically what I want to do is have a client-side JS resurces deployable separately from the servlet, so the servlet application wouldn't be redeployed every time I compile and deploy generated JS. Any suggestions? Best regards, Uros --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: using ExtJS (not GXT) with GWT
On Wed, Oct 7, 2009 at 12:22 PM, charlie charlie.f...@gmail.com wrote: We should probably take this to another forum, but I'd like to see the ability to specify number of columns, which column each field goes into etc. Also support for the DualListField, I've been toying with the code, do you want to take this to the google code forums ? just added a forum http://groups.google.com/group/gxtforms --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
How to open and edit a library in Eclipse?
Hey, I've been wondering the best way to do this for a while. Now it's something I need to do. I need to be able to get at the source code, and specifically edit this: http://code.google.com/p/ftr-gwt-library/ What is the best way to go about editing it with eclipse? Ideally I'd like to have the whole thing be it's own project, but either way I'd love some help doing this. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Embedding GWT into Eclipse/OSGi and accessing other Plugins/Bundles
Hello Jason, Sounds like a neat idea, kudos to getting the Hello World to work! I'm curious how it's set up--I assume the Eclipse view showing the GWT app a browser-backed view? Yes, that was actually fairly easy. Here is the central code from the ViewPart: public void createPartControl(Composite parent) { browser = new Browser(parent, SWT.FLAT); int port = JettyRunner.getServerPort(); String url = http://localhost:; + port + /document; browser.setUrl(url); } JettyRunner resides in another plugin for launching Jetty. The call to getServerPort() triggers the loading of that plugin. So if the view isn't shown, Jetty isn't started. JettyRunner then looks for a free port, that's why I have to query for it. Are the plugins you depend on separate projects in your workspace? If so, you can add them as linked source folders to your main GWT+Plugin project. If not, it'll be a bit more tricky. You'll need the source of those plugins, and then you may be able to add that as source directories. I don't think it is that easy, unfortunately. I wrote some plugins that reside in the workspace, but these in turn rely on others that do not. For instance, I am using EMF to create and manage the value- objects. These in turn rely on EMF-classes (e.g. EList, etc.) that reside in the EMF-plugins. I could do what you suggested - but that would be messy. Ideally, I would like to take advantage of Eclipse to resolve all dependencies, but I fear that this will be quite difficult. In fact, I did some work with PDE-building, and it was not pretty. But I am afraid that this is exactly what's required: A PDE environment for compiling GWT. :-( And even if I manage that, I would loose the ability to debug - unless I build a PDE environment for running in hosted mode in addition to that! Anyway, thank you for your response. Any other ideas...? Best, - Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Embedding GWT into Eclipse/OSGi and accessing other Plugins/Bundles
On Wed, Oct 7, 2009 at 2:34 PM, jastram jast...@gmail.com wrote: Hello Jason, Sounds like a neat idea, kudos to getting the Hello World to work! I'm curious how it's set up--I assume the Eclipse view showing the GWT app a browser-backed view? Yes, that was actually fairly easy. Here is the central code from the ViewPart: public void createPartControl(Composite parent) { browser = new Browser(parent, SWT.FLAT); int port = JettyRunner.getServerPort(); String url = http://localhost:; + port + /document; browser.setUrl(url); } JettyRunner resides in another plugin for launching Jetty. The call to getServerPort() triggers the loading of that plugin. So if the view isn't shown, Jetty isn't started. JettyRunner then looks for a free port, that's why I have to query for it. Are the plugins you depend on separate projects in your workspace? If so, you can add them as linked source folders to your main GWT+Plugin project. If not, it'll be a bit more tricky. You'll need the source of those plugins, and then you may be able to add that as source directories. I don't think it is that easy, unfortunately. I wrote some plugins that reside in the workspace, but these in turn rely on others that do not. For instance, I am using EMF to create and manage the value- objects. These in turn rely on EMF-classes (e.g. EList, etc.) that reside in the EMF-plugins. I could do what you suggested - but that would be messy. Ideally, I would like to take advantage of Eclipse to resolve all dependencies, but I fear that this will be quite difficult. In fact, I did some work with PDE-building, and it was not pretty. But I am afraid that this is exactly what's required: A PDE environment for compiling GWT. :-( And even if I manage that, I would loose the ability to debug - unless I build a PDE environment for running in hosted mode in addition to that! Anyway, thank you for your response. Any other ideas...? Gotcha, thanks for the explanation. I worry that even if we can resolve all the dependencies, you'll probably run into one of your dependencies relying on some classes that GWT does not provide (for example, some of java.io). I can't think of an easy way to avoid this except make your GWT code not rely on Eclipse-provided plugins (only the server-side stuff depending on Eclipse-provided plugins.) jason Best, - Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Google Webmasters: A proposal for making AJAX crawlable
This is interesting as this topic has been discussed many times in the past: http://googlewebmastercentral.blogspot.com/2009/10/proposal-for-making-ajax-crawlable.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: OOPHM GWT 2.0 Milestone 1 on Mac
Thanks, but It wasn't saying that for me. It's saying that I need to re-compile my module and even when I do it, I still get that message ! I tryed you trick, but even when the plugin isnt even there, I get the message to re-compile.. Thanks anyway, Christian On Wed, Oct 7, 2009 at 11:24 AM, Dominik Steiner dominik.j.stei...@googlemail.com wrote: Hi Christian, I moved to the ms1 yesterday but had been playing around with OOPHM with a version that i built from the trunk before and also got into problems when FF 3.5 came out and broke the OOPHM mode that i was using. Now yesterday with the ms1 release and the plugin already installed i tried to connect to the url that the OOPHM gave me but it always told me that there was no plugin available. I first tried to deactivate the plugin and reinstall it, but with no luck. So what I did was to remove the plugin from FF 3.5 first and then reinstall it from the link that the no plugin available page gave me. After that the OOPHM is now working fine. HTH Dominik On Oct 6, 1:02 pm, Christian Goudreau goudreau.christ...@gmail.com wrote: Hi, I'm always getting an error while trying to run in OOPHM. First they ask me to copy and URL to a browser with the plugin, after doing that, they always ask me to re-compile. I have the plugin and using Firefox 3.5. Anyone know how to get it work properly ? Thanks Christian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Listening for browser window close or unload events
Maybe Window.addWindowClosingHandler or Window.addCloseHandler On Oct 7, 11:35 am, francescoNemesi nem...@yahoo.com wrote: Hi, is there a way to listen to a browser window or unload event? I want to force a logout (to clean up session memory on the server as well as much as I can on the client) if the user forgets to logout explicitly before closing the browser or navigating to another page. Thanks, F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Embedding GWT into Eclipse/OSGi and accessing other Plugins/Bundles
Gotcha, thanks for the explanation. I worry that even if we can resolve all the dependencies, you'll probably run into one of your dependencies relying on some classes that GWT does not provide (for example, some of java.io). I can't think of an easy way to avoid this except make your GWT code not rely on Eclipse-provided plugins (only the server-side stuff depending on Eclipse-provided plugins.) ... and that in turn means that I can forget using EMF, which is a deal-breaker. What a pity, I really liked the idea of the OSGi/ Eclipse plugin-architecture on the back end, while having a powerful web-gui-toolkit. Well, back to the drawing board. :-/ Cheers, - Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
DOM.previewEvent does not call UncaughtExceptionHandler.onUncaughtException(e)
I've noticed that the method DOM.previewEvent does not call UncaughtExceptionHandler.onUncaughtException(e) if an exception is thrown. Is this intentional? As a result, exceptions don't get reported to me. Specifically, I don't see exceptions that occur in GXT's DND code. I was thinking of opening a bug for 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: onModuleLoad not called
Anni, Are you using Eclipse to build/alter your projects and components? - Chris On Wed, Oct 7, 2009 at 3:33 AM, Anni anni.ahonenbish...@gmail.com wrote: Yep, I think the GWT general conventions asks one to put the gwt.xml to the module root directory, and all java under 'client' or 'server', although it is not compulsory. I'm playing around with different renaming schemes, and building modules with those 'non-working' names from scratch. So far I have not yet managed to make a module named TableTree to work. Is there a way to catch errors, in case onModuleLoad simply wont be run? This is the confusing bit, no errors. Anni On Oct 6, 9:02 pm, Chris Ramsdale cramsd...@google.com wrote: Anni, Just to double check, I created a new GWT 1.7.1 project named TableTree with the same GWT.log() code within onModuleLoad(). Upon running, it did in fact log to the browser debug window. The one difference that I did notice was that my TableTree.gwt.xml file actually resides within * gwt.trees.tableTree.client* whereas you mentioned yours resides in * gwt.trees.tableTree*, Thanks, Chris Ramsdale On Tue, Oct 6, 2009 at 10:14 AM, Anni anni.ahonenbish...@gmail.com wrote: I'm using 1.7.1. on Linux, and ant to compile and run hosted mode. I had exactly the same problem with the simplest possible Entry Point module setup; onModuleLoad calls GWT.log(called, null). My module was named TableTree and was located in gwt.trees.tableTree.client.TableTree, with the gwt.xml file being in the gwt.trees.tableTree, following the GWT module conventions. I named my module in the gwt.xml using the 'rename-to' attribute to 'tableTree'. I couldn't get the onModuleLoad to launch in hosted or web mode, no matter what. Things worked perfectly fine in three other, way more complicated modules with exactly the same naming conventions, but for some reason this one refused to work. I could not possibly strip it down any further without losing my only way of knowing, whether the onModuleLoad was called or not. Then I changed its name from TableTree to UserTableTree. Suddenly it became alive. Go figure. Are there possible name collisions or something similar hidden in GWT that might be causing this? Similarly sampleTree.client.SampleTree was a no-no, whilst aTree.client.ATree works like a charm. What gives? I ensure you, only change made was renaming the modules. If you want to see my stub-code, working vs non-working, I can put it here, but I'm 100% certain, I did not change a single thing in the actual module configurations to make it suddenly work, apart from the changes to module and class names. At any given time, there were no errors from GWT. Anni On Oct 1, 3:10 pm, Ian Bambury ianbamb...@gmail.com wrote: Well, you did something wrong, then :-) Start again. Make one change. Try it. Make one change. Try it. Make one change. Try it. . . . Ian http://examples.roughian.com 2009/10/1 Viliam Durina viliam.dur...@gmail.com I created a project using GWT Eclipse plugin and then did some renaming and reorganization, but after that the onModuleLoad of my EntryPoint is not called. No error or warning is produced. In the war directory I have base.html file. It contains the line: script type=text/javascript language=javascript src=base/ base.nocache.js/script In the src directory there is a file clientspecific/base.gwt.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.7.1// EN http://google-web-toolkit.googlecode.com/svn/tags/1.7.1/distro- source/core/src/gwt-module.dtd module rename-to='base' !-- Inherit the core Web Toolkit stuff. -- inherits name='com.google.gwt.user.User'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines. -- 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'/ -- !-- Other module inherits -- inherits name='ktechnology.client.clientspecific.gwt.KTFGwtClient'/ !-- Specify the app entry point class. -- entry-point class='clientspecific.client.BaseTemplate'/ /module But the entry-point class is not loaded. If I put any random text as the class, no error is produced. If I put random text to inherits name, error is reported, but in entry point not. In web mode both errors are reported, but even in case of correct class, it does not work. I use GWT 1.7.1. Thanks for any help. Viliam
Re: Extension / Widget project officially supported by Google
Rico, There have been many developers using GWT compatible libraries with success and you can find related information in their posts within the GWT Group forum. If these libraries have widgets that you would like to use for your project, it might be a good idea to read through the posts to understand any pros and cons related to the library itself. If you still have questions after reading those resources, feel free to come back here and ask. It's also worth noting that the GWT Gallery http://gwtgallery.appspot.comalso has information related to other GWT compatible libraries and the GWT Showcase example http://gwt.google.com/samples/Showcase/Showcase.html is an extensive list of things you can do with GWT right out of the box. Thanks, Chris On Thu, Oct 1, 2009 at 5:00 AM, Rico ericcey...@gmail.com wrote: Hello to all, Just a quick introduction. I am a (french ... so sorry for the mistakes...) newbie in GWT, very impressed by this technology and its promises (developping an Ajax WebSite without knowing in details javascript etc.) . We are planning to use for the refunding of our extranet, a very big project for our smallcap (40 people). We have been through the widgets natively available in GWT but we are missing some important ones (such as Complex grid, sortable grid etc.). So we decided to consider plugg-ins or library to extend the features of GWT.That is where the topic is becoming complex... We started with GXT and discovered that there was licensing issues with EXT-JS. Then we moved to SmartGWT which is quite sexy but, what about the support in the long term? Is there an extension that is officially supported by Google? Is there anything in the roadmap of Google re. an official widget library? Even if we we have to pay for? Thank you in advance for your answers. Eric Ceyral www.oceansystem.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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.7.1 with tomcat 5.5
Muhannad (and Bobby), I am trying to better understand the potential issue here. You mention that you are attempting to run your application in hosted within Tomcat. Typically applications are run within the embedded Jetty server when running in hosted mode. Would you mind elaborating on the following so we can get a better idea of the issue you are experiencing? 1. Are you trying to run in hosted mode or are you experiencing issues when you deploy to Tomcat? 2. How are you initiating hosted mode? Are you calling ant hosted? 3. What do your classpath and program arguments look like? Thanks,Chris On Tue, Oct 6, 2009 at 12:52 PM, Bobby Berry bvberry1...@gmail.com wrote: Have you found a solution to this issue? We are having a similar problem with GWT not showing in Firefox 3. Thanks Bobby Berry On Sep 30, 1:06 am, muhannad nasser muhannadna...@gmail.com wrote: hi i am trying to run the sample GWT project in hosted mode using tomcat my workspace for eclipse 3.5 is the webapp for the tomcat and by default the WEB-INF is inside the war folder the tree webapp | projectName | src | war | WEB-INF | classes | lib my tomcat is running at port 9090 but when i try to run it on firefox using this url: http://localhost:9090/projectName it does not show anything. put when i run it using host mode from the eclipse it works fine can anyone help me please thanks -- ~~~With Regards~~~ Muhannad Dar-Nasser ~~Computer Systems Engineering~~ ~~My Blog:http://mhand7.blogspot.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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Image/Absolute panel...how to make the clickhandlers fire on the abs, ignoreing the image?
Thomas W, While I am able to reproduce the stuck behavior that you describe above, I would like to put together a smaller code sample to further pinpoint what is going on under the hood. From a high level it appears that at the heart of the issue is a FocusPanel that contains one or more AbsolutePanels. That said, I have a couple of more specific questions: 1. In regards to the last link that you posted ( http://www.lostagain.nl//Panelstreamer Demo/panelstreamer.html), could you be more clear on which widgets make up the UI? 2. What are you using to wrap the background/space image? 3. Is the square in the middle of the page the a FocusPanel or some other widget? 4. What CSS or event handlers do you have hooked up to these widgets? Also, what overall goal are you trying to achieve? Maybe there is a different way to approach the problem. Thanks, Chris On Tue, Oct 6, 2009 at 3:00 PM, ThomasWrobel darkfl...@gmail.com wrote: Scratch that, I tried using -moz-user-select:none; and it stops being selected in Firefox (looks neater), but it still gets stuck to the mouse I just think that mouse up isnt being fired on the underlaying abs panel when the user releases the mouse after a drag. On Oct 6, 8:51 pm, ThomasWrobel darkfl...@gmail.com wrote: Good idea but no effect. At least, I think its got no effect, still getting the stuck mouse problem. The code I added was; contents.getElement().setAttribute(draggable, false); contents.getElement().getStyle().setProperty(webkitUserDrag, none); contents.getElement().setPropertyBoolean(draggable, false); (I tried none rather then false, but I think its supposed to be false, I also tried just the last and just the first line) Heres the result; http://www.lostagain.nl//Panelstreamer%20Demo/panelstreamer.html#File... (try moving it about like you would googlemaps) I think the problem is its being selected all the time. In Opera it works fine, and I note nothing is selected. On Oct 6, 6:30 pm, Thomas Broyer t.bro...@gmail.com wrote: On 6 oct, 14:34, ThomasWrobel darkfl...@gmail.com wrote: reg Basically is it possible for an image widget to be transparent as regards to click events, passing them to the panel under it? Sorry to bump this, but I haven't been able to find a solution myself apart from very crude work-arounds. It seems like something fundamental I should know how to do too...if it exists. So a confirmation/denial from someone would be nice :) AFAICT, when you start dragging the image it... starts dragging the image... AFAICT, you should be able to bypass this behavior setting the 'draggable' attribute (from the upcoming HTML5) to false, and for WebKit (or at least, Safari) which exhibit a similar behavior, set the CSS style property -webkit-user-drag to none --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT PHP HTML 5 interaction
Thank you, Dominik for your prompt reply. It is sounds great to me. I have a feeling I could provide connection through the hessian web service to PHP application to get some of the services from the PHP/Apache application. Also I have researched in the web and found the Hessian PHP Client/Server application. Dominik, how the hessian protocol is basically operate the data from the PHP/Apache and GWT/Tomcat. More details appreciated. Regards, R On Wed, Oct 7, 2009 at 11:27 AM, Dominik Steiner dominik.j.stei...@googlemail.com wrote: on our project our GWT frontend (running on tomcat) was talking with the php backend (on another server) via hessian protocol and it was working good. HTH Dominik On Oct 6, 11:26 am, Takalov Rustem takalov.rus...@gmail.com wrote: Hey Guys, I have been researching on GWT and PHP integration a while. The reason is - I need a simple, flexible client - side AJAX based Framework to develop and integrate web - based application into existing PHP application running @ Rackspace (Linux, PHP, MySQL). Is anyway to integrate GWT api's into PHP code or I need to call PHP scripts from GWT? Do I have to run Tomcat server, Apache at the same server? How they would interact between each other? I think the solution connected with JSON, Jetty, hosted server mode, but I am not sure. Here is php script: ?php echo html/html; // I need AJAX Editor to Save/Load Editable Text Box to load it unto MySQL DB. echo scriptAJAXEditor();/script; ? How will it interact with HTML 5 manifest? Let me know if any questions. Thanks, Guys R -- Regards, Rustem T --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Using enum and serializationexception during rpc...
gwt 1.7, jdk 6. I have a java enum in an object which I send to the client. This works fine in hosted mode. When I deployed the war in tomcat, i get the type was not included in the set of types which can be serialized exception. My enum is defined as... public interface AttributeConstantsIfc extends ConstantsIfc { public static enum Attribute { ATTRIBUTE1, ATTRIBUTE2, ATTRIBUTE3, ATTRIBUTE4, START_TIME(1), END_TIME(1); private final int type; Attribute() { this.type = 2; } Attribute(int type) { this.type = type; } ... ... } } Thanks gd --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Need a Google Web Toolkit instructor
Hi All, I am looking for a GWT Google Web Toolkit instructor to teach a few classes. Prefer someone in the SF Bay Area, but am open to other ideas. Please email me if you know anyone: Rooz (at) Marakana (dot) com thanks rooz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Uploading to a Web Server
I’m having trouble running a sample GWT app on a web server. If I run it as a Web Application in Eclipse, using the Google toolkit in “hosted” mode (http://localhost:8080/MyApplication.html) it works fine. Also, when I deploy it to Google Apps, it works fine. However, when I run it on a prod web server I get the following error message: “Server Replies: An error occurred while attempting to contact the server. Please check your network connection and try again.” I only copied the “war” directory and sub directories (which contains html, js, and css) to the web server. Should this work or do I need to convert the “war” directory to a .war file and deploy to the web/ app server? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 2.0 Milestone 1
I set GWT 2.0 as the SDK for my project and it changed to the new Development Swing UI In-browser mode instead of the old hosted mode. I placed the given URL in both FF3.5 and IE8 and neither auto installed the required plugin. Since my app is already compiled it renders fine but I cannot debug. I tried manually installing the correct plugins from http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM yet the server is either only serving the compiled files or something is wrong with the plugin because I cannot debug; breakpoints are not hit. Does anyone know what I am doing wrong? On Oct 7, 11:37 am, Joseph Arceneaux joe.arcene...@gmail.com wrote: May we presume that the Snow Leopard issue is now history? Thanks, Joe On Mon, Oct 5, 2009 at 4:43 PM, Amit Manjhi amitman...@google.com wrote: Hi everyone, We are excited to release the first milestone build for GWT 2.0 today. This milestone provides early access (read: known to still be unfinished and buggy) to the various bits of core functionality that will be coming in GWT 2.0. Please download the bits from: http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=2 Things that are changing with GWT 2.0 that might otherwise be confusing without explanation * Terminology changes: We're going to start using the term development mode rather than the old term hosted mode. The term hosted mode was sometimes confusing to people, so we'll be using the more descriptive term from now on. For similar reasons, we'll be using the term production mode rather than web mode when referring to compiled script. * Changes to the distribution: Note that there's only one download, and it's no longer platform-specific. You download the same zip file for every development platform. This is made possible by the new plugin approach used to implement development mode (see below). The distribution file does not include the browser plugins themselves; those are downloaded separately the first time you use development mode in a browser that doesn't have the plugin installed. Functionality that will be coming in GWT 2.0 * In-Browser Development Mode: Prior to 2.0, GWT hosted mode provided a special-purpose hosted browser to debug your GWT code. In 2.0, the web page being debugged is viewed within a regular-old browser. Development mode is supported through the use of a native-code plugin for each browser. In other words, you can use development mode directly from Safari, Firefox, IE, and Chrome. * Code Splitting: Developer-guided code splitting allows you to chunk your GWT code into multiple fragments for faster startup. Imagine having to download a whole movie before being able to watch it. Well, that's what you have to do with most Ajax apps these days -- download the whole thing before using it. With code splitting, you can arrange to load just the minimum script needed to get the application running and the user interacting, while the rest of the app is downloaded as needed. * Declarative User Interface: GWT's UiBinder now allows you to create user interfaces mostly declaratively. Previously, widgets had to be created and assembled programmatically, requiring lots of code. Now, you can use XML to declare your UI, making the code more readable, easier to maintain, and faster to develop. The Mail sample has been updated to use the new declarative UI. * Bundling of resources (ClientBundle): GWT has shipped with ImageBundles since GWT v1.4, giving developers automatic spriting of images. ClientBundle generalizes this technique, bringing the power of combining and optimizing resources into one download to things like text files, CSS, and XML. This means fewer network round trips, which in turn can decrease application latency -- especially on mobile applications. * Using HtmlUnit for running GWT tests: GWT 2.0 no longer uses SWT or the old mozilla code (on linux) to run GWT tests. Instead, it uses HtmlUnit as the built-in browser. HtmlUnit is 100% Java. This means there is a single GWT distribution for linux, mac, and windows, and debugging GWT Tests in development mode can be done entirely in a Java debugger. Known issues * If you are planning to run the webAppCreator, i18nCreator, or the junitCreator scripts on Mac or Linux, please set their executable bits by doing a 'chmod +x *Creator' * Our HtmlUnit integration is still not complete. Additionally, HtmlUnit does not do layout. So tests can fail either because they exercise layout or they hit bugs due to incomplete integration. If you want such tests to be ignored on HtmlUnit, please annotate the test methods with @DoNotRunWith({Platform.Htmlunit}) * The Google Eclipse Plugin will only allow you to add GWT release directories that include a file with a name like gwt-dev-windows.jar. You can fool it by sym linking or copying gwt-dev.jar to the appropriate name.
Re: GWT 1.7.1 with tomcat 5.5
Did you try http://server:port/webapp/GwtApp.html Thx ps --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 2.0 Milestone 1
There does not appear to be a nice URL I can point Eclipse 3.5 at in order to install GWT 2.0 in the usual fashion. Nor, apparently, any instructions about an alternate procedure. It appears unclear on just where / how to merge the contents of the zip file into an existing Eclipse integration; does anyone have a pointer to documentation for this? Thanks, Joe On Mon, Oct 5, 2009 at 4:43 PM, Amit Manjhi amitman...@google.com wrote: Hi everyone, We are excited to release the first milestone build for GWT 2.0 today. This milestone provides early access (read: known to still be unfinished and buggy) to the various bits of core functionality that will be coming in GWT 2.0. Please download the bits from: http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=2.0+Milestone+1 Things that are changing with GWT 2.0 that might otherwise be confusing without explanation * Terminology changes: We're going to start using the term development mode rather than the old term hosted mode. The term hosted mode was sometimes confusing to people, so we'll be using the more descriptive term from now on. For similar reasons, we'll be using the term production mode rather than web mode when referring to compiled script. * Changes to the distribution: Note that there's only one download, and it's no longer platform-specific. You download the same zip file for every development platform. This is made possible by the new plugin approach used to implement development mode (see below). The distribution file does not include the browser plugins themselves; those are downloaded separately the first time you use development mode in a browser that doesn't have the plugin installed. Functionality that will be coming in GWT 2.0 * In-Browser Development Mode: Prior to 2.0, GWT hosted mode provided a special-purpose hosted browser to debug your GWT code. In 2.0, the web page being debugged is viewed within a regular-old browser. Development mode is supported through the use of a native-code plugin for each browser. In other words, you can use development mode directly from Safari, Firefox, IE, and Chrome. * Code Splitting: Developer-guided code splitting allows you to chunk your GWT code into multiple fragments for faster startup. Imagine having to download a whole movie before being able to watch it. Well, that's what you have to do with most Ajax apps these days -- download the whole thing before using it. With code splitting, you can arrange to load just the minimum script needed to get the application running and the user interacting, while the rest of the app is downloaded as needed. * Declarative User Interface: GWT's UiBinder now allows you to create user interfaces mostly declaratively. Previously, widgets had to be created and assembled programmatically, requiring lots of code. Now, you can use XML to declare your UI, making the code more readable, easier to maintain, and faster to develop. The Mail sample has been updated to use the new declarative UI. * Bundling of resources (ClientBundle): GWT has shipped with ImageBundles since GWT v1.4, giving developers automatic spriting of images. ClientBundle generalizes this technique, bringing the power of combining and optimizing resources into one download to things like text files, CSS, and XML. This means fewer network round trips, which in turn can decrease application latency -- especially on mobile applications. * Using HtmlUnit for running GWT tests: GWT 2.0 no longer uses SWT or the old mozilla code (on linux) to run GWT tests. Instead, it uses HtmlUnit as the built-in browser. HtmlUnit is 100% Java. This means there is a single GWT distribution for linux, mac, and windows, and debugging GWT Tests in development mode can be done entirely in a Java debugger. Known issues * If you are planning to run the webAppCreator, i18nCreator, or the junitCreator scripts on Mac or Linux, please set their executable bits by doing a 'chmod +x *Creator' * Our HtmlUnit integration is still not complete. Additionally, HtmlUnit does not do layout. So tests can fail either because they exercise layout or they hit bugs due to incomplete integration. If you want such tests to be ignored on HtmlUnit, please annotate the test methods with @DoNotRunWith({Platform.Htmlunit}) * The Google Eclipse Plugin will only allow you to add GWT release directories that include a file with a name like gwt-dev-windows.jar. You can fool it by sym linking or copying gwt-dev.jar to the appropriate name. Breaking changes * The way arguments are passed to the GWT testing infrastructure has been revamped. There is now a consistent syntax to support arbitrary runstyles, including user-written with no changes to GWT. Though this does not affect common launch configs, some of the less common ones will need to be updated. For example, '-selenium FF3' has become '-runStyle selenium:FF3' As always, remember that GWT
Re: Announcing GWT 2.0 Milestone 1
Hi Jospeh, did you consider to install the Google Plugin for eclipse? You will even then run into problems, but reading through this post http://groups.google.com/group/google-web-toolkit/browse_thread/thread/527518f17e7a484e/28e2bbd2786143f3 you should be up and running pretty soon. HTH Dominik On 7 Okt., 20:00, Joseph Arceneaux joe.arcene...@gmail.com wrote: There does not appear to be a nice URL I can point Eclipse 3.5 at in order to install GWT 2.0 in the usual fashion. Nor, apparently, any instructions about an alternate procedure. It appears unclear on just where / how to merge the contents of the zip file into an existing Eclipse integration; does anyone have a pointer to documentation for this? Thanks, Joe On Mon, Oct 5, 2009 at 4:43 PM, Amit Manjhi amitman...@google.com wrote: Hi everyone, We are excited to release the first milestone build for GWT 2.0 today. This milestone provides early access (read: known to still be unfinished and buggy) to the various bits of core functionality that will be coming in GWT 2.0. Please download the bits from: http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=2 Things that are changing with GWT 2.0 that might otherwise be confusing without explanation * Terminology changes: We're going to start using the term development mode rather than the old term hosted mode. The term hosted mode was sometimes confusing to people, so we'll be using the more descriptive term from now on. For similar reasons, we'll be using the term production mode rather than web mode when referring to compiled script. * Changes to the distribution: Note that there's only one download, and it's no longer platform-specific. You download the same zip file for every development platform. This is made possible by the new plugin approach used to implement development mode (see below). The distribution file does not include the browser plugins themselves; those are downloaded separately the first time you use development mode in a browser that doesn't have the plugin installed. Functionality that will be coming in GWT 2.0 * In-Browser Development Mode: Prior to 2.0, GWT hosted mode provided a special-purpose hosted browser to debug your GWT code. In 2.0, the web page being debugged is viewed within a regular-old browser. Development mode is supported through the use of a native-code plugin for each browser. In other words, you can use development mode directly from Safari, Firefox, IE, and Chrome. * Code Splitting: Developer-guided code splitting allows you to chunk your GWT code into multiple fragments for faster startup. Imagine having to download a whole movie before being able to watch it. Well, that's what you have to do with most Ajax apps these days -- download the whole thing before using it. With code splitting, you can arrange to load just the minimum script needed to get the application running and the user interacting, while the rest of the app is downloaded as needed. * Declarative User Interface: GWT's UiBinder now allows you to create user interfaces mostly declaratively. Previously, widgets had to be created and assembled programmatically, requiring lots of code. Now, you can use XML to declare your UI, making the code more readable, easier to maintain, and faster to develop. The Mail sample has been updated to use the new declarative UI. * Bundling of resources (ClientBundle): GWT has shipped with ImageBundles since GWT v1.4, giving developers automatic spriting of images. ClientBundle generalizes this technique, bringing the power of combining and optimizing resources into one download to things like text files, CSS, and XML. This means fewer network round trips, which in turn can decrease application latency -- especially on mobile applications. * Using HtmlUnit for running GWT tests: GWT 2.0 no longer uses SWT or the old mozilla code (on linux) to run GWT tests. Instead, it uses HtmlUnit as the built-in browser. HtmlUnit is 100% Java. This means there is a single GWT distribution for linux, mac, and windows, and debugging GWT Tests in development mode can be done entirely in a Java debugger. Known issues * If you are planning to run the webAppCreator, i18nCreator, or the junitCreator scripts on Mac or Linux, please set their executable bits by doing a 'chmod +x *Creator' * Our HtmlUnit integration is still not complete. Additionally, HtmlUnit does not do layout. So tests can fail either because they exercise layout or they hit bugs due to incomplete integration. If you want such tests to be ignored on HtmlUnit, please annotate the test methods with @DoNotRunWith({Platform.Htmlunit}) * The Google Eclipse Plugin will only allow you to add GWT release directories that include a file with a name like gwt-dev-windows.jar. You can fool it by sym linking or copying gwt-dev.jar to the appropriate name.
.cache and .rpc files...ship with war ?
These files seem to be generated in hosted mode only when rpc calls are made etc. Should these be shipped when deployed in another app server ( like tomcat ) ? gd --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: .cache and .rpc files...ship with war ?
Ignore my previous post. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT PHP HTML 5 interaction
Hi, to be honest I'm no php guy, so I'm not sure about the implementation details of the hessian control on php side. on gwt side you simply implement an interface, for example like this public interface HelpHessianService { public ListString getHelpTopics(String search); } and you then instantiate this interface via a helper method import com.caucho.hessian.client.HessianProxyFactory; String hostUrl = getHostUrl(request); String url = hostUrl + /index.php? main_page=gwt_handlerhessian=true; HessianProxyFactory factory = new HessianProxyFactory(); HelpHessianService helpHessianService = factory.create(HelpHessianService.class, url); and then you can just call helpHessianService.getHelpTopics(search); HTH Dominik Thank you, Dominik for your prompt reply. It is sounds great to me. I have a feeling I could provide connection through the hessian web service to PHP application to get some of the services from the PHP/Apache application. Also I have researched in the web and found the Hessian PHP Client/ Server application. Dominik, how the hessian protocol is basically operate the data from the PHP/Apache and GWT/Tomcat. More details appreciated. Regards, R On Wed, Oct 7, 2009 at 11:27 AM, Dominik Steiner dominik.j.stei...@googlemail.com wrote: on our project our GWT frontend (running on tomcat) was talking with the php backend (on another server) via hessian protocol and it was working good. HTH Dominik On Oct 6, 11:26 am, Takalov Rustem takalov.rus...@gmail.com wrote: Hey Guys, I have been researching on GWT and PHP integration a while. The reason is - I need a simple, flexible client - side AJAX based Framework to develop and integrate web - based application into existing PHP application running @ Rackspace (Linux, PHP, MySQL). Is anyway to integrate GWT api's into PHP code or I need to call PHP scripts from GWT? Do I have to run Tomcat server, Apache at the same server? How they would interact between each other? I think the solution connected with JSON, Jetty, hosted server mode, but I am not sure. Here is php script: ?php echo html/html; // I need AJAX Editor to Save/Load Editable Text Box to load it unto MySQL DB. echo scriptAJAXEditor();/script; ? How will it interact with HTML 5 manifest? Let me know if any questions. Thanks, Guys R -- Regards, Rustem T --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
History with MenuBar
can anyone tell me how to create history with menubar? i've seen sample in showcase, that's not menubar, but treeitem which support onselectionhandler. in menubar, only support anclosedhander hmm.. please help me.. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: DOM over RPC
Makes sense .. Appreciate the help !! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
[gwt-contrib] Comment on UiBinder in google-web-toolkit
Comment by dygger: Could someone tell if UiBinder supports DialogBox? - I tried it but got compilation errors in generated UiBinderImpl class... Moreover, it passes all dialog's content (including GWT widgets as a string in setHTML method: f_DialogBox1.setHTML(gwt:VerticalPanel horizontalAlignment='rigth'[...]/gwt:VerticalPanel); For more information: http://code.google.com/p/google-web-toolkit/wiki/UiBinder --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Add a CssResource interface generator
On Wed, Oct 7, 2009 at 12:22 AM, rj...@google.com wrote: Bob, is this going in? When it does, should I retool UiBinder to use it for ui:style? It didn't occur to me until now that you would have to have code like this in UiBinder to generate the synthetic interfaces. Would it be easier to extract that into this tool? If not, what's the relevant class in the UiBinder code to update so that there's only one css-to-interface creator? Either way, do you have time to review the two patches? -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Comment on UiBinder in google-web-toolkit
Comment by j...@google.com: While it doesn't make a great deal of sense to put a DialogBox in a .ui.xml file, because it's intended to be displayed via its own show() method, we should be giving a better (and earlier) error than this. Note that you *can* still create a dialog box's contents using UiBinder. For more information: http://code.google.com/p/google-web-toolkit/wiki/UiBinder --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Can't build trunk
Ok, that makes sense, and sounds like my fault. I'll have a look at it later today.Thanks for catching this. On Tue, Oct 6, 2009 at 1:31 PM, bond raul.pel...@mail.ee wrote: I have same problem with Mail sample. Could it be because of my locale - decimal symbol is comma? Generated BinderImpl also shows it: f_DockLayoutPanel1.addNorth(topPanel, 5,00); f_SplitLayoutPanel2.addWest(shortcuts, 192,00); f_SplitLayoutPanel2.addNorth(mailList, 200,00); On 6 Oct, 18:32, Freeland Abbott fabb...@google.com wrote: On Tue, Oct 6, 2009 at 2:35 AM, tfga thiago...@gmail.com wrote: Thank you for you very detailed message, Freeland. Regarding [4] (LONG compiler errors in Browser): I only get those when I run ant from Eclipse. When I run it from the It would make (some) sense for Eclipse to put its own jars onto your classpath, so I think that's your version skew problem there, yes. command line, I get a different set of errors (see message 3). What about these? Well, at root I'm going to give you a similar answer: we don't get those errors, so it seems something is screwy in your setup; try going over your classpath with a fine-toothed comb. (For what it's worth, I just tried again on XP at revision 6301, no issues for me.) If your only errors are in the samples, the dist-dev target may help you (by skipping the problem). That's not a feel-good solution, though, since it should work and does here. It looks like Joel's r6192 (Sep 22) changed the add...(...) signatures and supported uiBinder for Mail sample. As Eric alludes, the Mail_BinderImpl class is generated, and if I'm reading the sense of the error right, you're getting new calls from that generated code against an old definition for the DockPanelLayout class... so where's that old class coming from? (I don't think the default build files save generated output at all persistently, so Eric's suggestion to hunt down the *_BinderImpl files will, I think, not help much---I don't think they're persistent, and even if they are, I *think* the message says they're more right, i.e. post-6192, and it's the DockPanelLayout class that's stale.) If you were still building using Eclipse, I'd ask whether you were using the Google Plugin for Eclipse and if so whether it was using a (different) GWT runtime when building your GWT project itself; that'd get you two sets of classes (one from the source, modern; one from the runtime, probably a stale release)... instead, I'm going to ask whether you have a CLASSPATH environment variable set, and perhaps including old/released GWT jars. But the end result is still going to be look at your ant -v classpath very, very carefully, no longer for conflicting Eclipse stuff in this case but for conflicting GWT stuff. And you might want to make sure you don't have local mods on DockPanelLayout, though that should be an idiot check since you've said it's a clean checkout. Still, I've been a dumber idiot than that on occasion I was using the ant that came with Eclipse; I tried using the official, stand-alone one from apache and got the same result. On Oct 5, 12:29 am, Freeland Abbott fabb...@google.com wrote: Going back to some of your original questions: 1. The default behavior is to build cross-platform. If you only care about the platform you're on, there's a *-one family of targets, and to leave things like samples and tools behind, a *-dev family. Try ant dist-dev to make a one-platform distribution without samples or tools, although you might find you actually *want* especially the tools. But most of us don't iterate on them as often, which is why they're left out from those rules. Or, use dist-one if you do want them. 2. As a hack to your svn issue, if you just pre-define the ant properties it's supposed to set from svn info and svnversion, the SvnInfoTask will skip over the work (and thus skip not finding svn). That'd look something like: - ant -dgwt.svnrev=tr...@5678 dist-one 3. There's no reason cygwin shouldn't work for you, but you don't need it either. There's a perfectly good native Windows svn at http://www.collab.net/downloads/subversion/. If you're already using cygwin, e.g. for git, of course, then as noted it *should* have worked fine... we need[*] a svnversion and svn executable on the command line, but we don't care which port or environment. 4. Your LONG compiler errors in Browser are screwy; as Eric says, we don't see them... and we're desparately trying to retire our swt dependency anyway. But at a guess, I suspect you've got different Eclipse jars on your classpath than you should, especially if you're building from some Eclipse. I haven't done an
[gwt-contrib] Re: Can't build trunk
Just added an issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=4111 On Wed, Oct 7, 2009 at 9:30 AM, Joel Webber j...@google.com wrote: Ok, that makes sense, and sounds like my fault. I'll have a look at it later today.Thanks for catching this. On Tue, Oct 6, 2009 at 1:31 PM, bond raul.pel...@mail.ee wrote: I have same problem with Mail sample. Could it be because of my locale - decimal symbol is comma? Generated BinderImpl also shows it: f_DockLayoutPanel1.addNorth(topPanel, 5,00); f_SplitLayoutPanel2.addWest(shortcuts, 192,00); f_SplitLayoutPanel2.addNorth(mailList, 200,00); On 6 Oct, 18:32, Freeland Abbott fabb...@google.com wrote: On Tue, Oct 6, 2009 at 2:35 AM, tfga thiago...@gmail.com wrote: Thank you for you very detailed message, Freeland. Regarding [4] (LONG compiler errors in Browser): I only get those when I run ant from Eclipse. When I run it from the It would make (some) sense for Eclipse to put its own jars onto your classpath, so I think that's your version skew problem there, yes. command line, I get a different set of errors (see message 3). What about these? Well, at root I'm going to give you a similar answer: we don't get those errors, so it seems something is screwy in your setup; try going over your classpath with a fine-toothed comb. (For what it's worth, I just tried again on XP at revision 6301, no issues for me.) If your only errors are in the samples, the dist-dev target may help you (by skipping the problem). That's not a feel-good solution, though, since it should work and does here. It looks like Joel's r6192 (Sep 22) changed the add...(...) signatures and supported uiBinder for Mail sample. As Eric alludes, the Mail_BinderImpl class is generated, and if I'm reading the sense of the error right, you're getting new calls from that generated code against an old definition for the DockPanelLayout class... so where's that old class coming from? (I don't think the default build files save generated output at all persistently, so Eric's suggestion to hunt down the *_BinderImpl files will, I think, not help much---I don't think they're persistent, and even if they are, I *think* the message says they're more right, i.e. post-6192, and it's the DockPanelLayout class that's stale.) If you were still building using Eclipse, I'd ask whether you were using the Google Plugin for Eclipse and if so whether it was using a (different) GWT runtime when building your GWT project itself; that'd get you two sets of classes (one from the source, modern; one from the runtime, probably a stale release)... instead, I'm going to ask whether you have a CLASSPATH environment variable set, and perhaps including old/released GWT jars. But the end result is still going to be look at your ant -v classpath very, very carefully, no longer for conflicting Eclipse stuff in this case but for conflicting GWT stuff. And you might want to make sure you don't have local mods on DockPanelLayout, though that should be an idiot check since you've said it's a clean checkout. Still, I've been a dumber idiot than that on occasion I was using the ant that came with Eclipse; I tried using the official, stand-alone one from apache and got the same result. On Oct 5, 12:29 am, Freeland Abbott fabb...@google.com wrote: Going back to some of your original questions: 1. The default behavior is to build cross-platform. If you only care about the platform you're on, there's a *-one family of targets, and to leave things like samples and tools behind, a *-dev family. Try ant dist-dev to make a one-platform distribution without samples or tools, although you might find you actually *want* especially the tools. But most of us don't iterate on them as often, which is why they're left out from those rules. Or, use dist-one if you do want them. 2. As a hack to your svn issue, if you just pre-define the ant properties it's supposed to set from svn info and svnversion, the SvnInfoTask will skip over the work (and thus skip not finding svn). That'd look something like: - ant -dgwt.svnrev=tr...@5678 dist-one 3. There's no reason cygwin shouldn't work for you, but you don't need it either. There's a perfectly good native Windows svn at http://www.collab.net/downloads/subversion/. If you're already using cygwin, e.g. for git, of course, then as noted it *should* have worked fine... we need[*] a svnversion and svn executable on the command line, but we don't care which port or environment. 4. Your LONG compiler errors in Browser are screwy; as Eric says, we don't see them... and we're desparately trying to retire our swt dependency anyway. But at a guess, I
[gwt-contrib] Re: Add a CssResource interface generator
I can review today. The redundant code is in com.google.gwt.uibinder.rebind.CssResourceWriter. Perhaps I'm wrong to be dismissive of Keith's concerns--we're aiming at different audiences. He's' generating source that people will work with directly, I'm generating source that will only be accessed via attribute settings in a ui.xml file. @Keith, what do you do when you see save_button--do you convert it and provide an annotation to point back to the .css name? If we do wind up with shared code (not convinced we should in light of the above), perhaps it needs two styles. For that matter, given the existence of ui:style, is the need for this utility still clear? Not saying it isn't, just unclear on its expected use. rjrjr On Wed, Oct 7, 2009 at 6:23 AM, BobV b...@google.com wrote: On Wed, Oct 7, 2009 at 12:22 AM, rj...@google.com wrote: Bob, is this going in? When it does, should I retool UiBinder to use it for ui:style? It didn't occur to me until now that you would have to have code like this in UiBinder to generate the synthetic interfaces. Would it be easier to extract that into this tool? If not, what's the relevant class in the UiBinder code to update so that there's only one css-to-interface creator? Either way, do you have time to review the two patches? -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Add a CssResource interface generator
For that matter, given the existence of ui:style, is the need for this utility still clear? Not saying it isn't, just unclear on its expected use. The purpose of this tool is to give developers an easy upgrade to @Strict mode, which is mostly just the grunt work of creating the Java interface. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6310 committed - Patch to enable upgrade to latest HtmlUnit snapshots. Created a tempor...
Revision: 6310 Author: amitman...@google.com Date: Tue Oct 6 19:22:44 2009 Log: Patch to enable upgrade to latest HtmlUnit snapshots. Created a temporary dir where various HtmlUnit snapshots could be tried without polluting GWT_TOOLS. IMPORTANT: 1. To test bug-fixes for Gwt 2.0 MS1, this commit needs to be reverted. 2. The do-not-commit-to-trunk dir should not be merged into trunk. Patch by: amitmanjhi http://code.google.com/p/google-web-toolkit/source/detail?r=6310 Added: /branches/farewellSwt/tools/do-not-commit-to-trunk /branches/farewellSwt/tools/do-not-commit-to-trunk/README /branches/farewellSwt/tools/do-not-commit-to-trunk/htmlunit-core-js-sources.jar /branches/farewellSwt/tools/do-not-commit-to-trunk/htmlunit-core-js.jar /branches/farewellSwt/tools/do-not-commit-to-trunk/htmlunit-sources.jar /branches/farewellSwt/tools/do-not-commit-to-trunk/htmlunit.jar /branches/farewellSwt/tools/do-not-commit-to-trunk/nekohtml-1.9.13.jar Modified: /branches/farewellSwt/dev/build.xml /branches/farewellSwt/eclipse/dev/.classpath /branches/farewellSwt/eclipse/user/.classpath === --- /dev/null +++ /branches/farewellSwt/tools/do-not-commit-to-trunk/README Tue Oct 6 19:22:44 2009 @@ -0,0 +1,34 @@ +The purpose of this temporary directory is to hold the HtmlUnit jars while +we upgrade to HtmlUnit-2.7 and beyond, and revisit all the Gwt tests that are +currently ignored on HtmlUnit. + +The htmlunit jar names are to be removed of all identifying information because +we don't want multiple copies. + +For updating HtmlUnit, here is the algorithm to use (vetted by HtmlUnit +committers): + +* Check the main Cl page (http://build.canoo.com/htmlunit/). Find the last +build that was successful. Find the svn revision (click on the XML Log File +tab, and scroll down to the last revision XML tag. search for revision). +Download the htmlunit.jar, htmlunit-sources.jar and htmlunit-core-js.jar (and +other dependencies if they have changed) from the artifacts page. Note that +SNAPSHOT artifacts only get generated if all unit tests pass. So the artifacts +correspond to the last successful build. + +* Download the htmlunit-core-js-sources.jar from +http://htmlunit.sourceforge.net/m2-repo-snapshots/net/sourceforge/htmlunit/htmlunit-core-js/2.7-SNAPSHOT/ +(verify that the core-js.jar are the same as in the previous step). + + +Files in this dir + htmlunit.jar + htmlunit-sources.jar + htmlunit-core-js.jar + htmlunit-core-js-sources.jar + +HtmlUnit's dependencies (not already in GWT_TOOLS/lib): + nekohtml-1.9.13.jar + +svn revision: 5053 + === --- /dev/null +++ /branches/farewellSwt/tools/do-not-commit-to-trunk/htmlunit-core-js-sources.jar Tue Oct 6 19:22:44 2009 Binary file, no diff available. === --- /dev/null +++ /branches/farewellSwt/tools/do-not-commit-to-trunk/htmlunit-core-js.jar Tue Oct 6 19:22:44 2009 Binary file, no diff available. === --- /dev/null +++ /branches/farewellSwt/tools/do-not-commit-to-trunk/htmlunit-sources.jar Tue Oct 6 19:22:44 2009 Binary file, no diff available. === --- /dev/null +++ /branches/farewellSwt/tools/do-not-commit-to-trunk/htmlunit.jar Tue Oct 6 19:22:44 2009 Binary file, no diff available. === --- /dev/null +++ /branches/farewellSwt/tools/do-not-commit-to-trunk/nekohtml-1.9.13.jar Tue Oct 6 19:22:44 2009 Binary file, no diff available. === --- /branches/farewellSwt/dev/build.xml Wed Sep 30 21:43:14 2009 +++ /branches/farewellSwt/dev/build.xml Tue Oct 6 19:22:44 2009 @@ -7,6 +7,7 @@ property name=alldeps.jar location=${project.build}/alldeps.jar / property name=gwt.junit.testcase.dev.core.includes value=**/com/google/**/*Test.class / property name=gwt.junit.testcase.dev.core.excludes value= / + property name=htmlunit.libs.temp location=${gwt.root}/tools/do-not-commit-to-trunk / target name=clean description=Cleans this project's intermediate and output files delete dir=${project.build} failonerror=false / @@ -74,9 +75,6 @@ include name=apache/commons/commons-io-1.4.jar / include name=apache/commons/commons-lang-2.4.jar / include name=cssparser/cssparser-0.9.5.jar / - include name=htmlunit/htmlunit-2.5.jar / - include name=htmlunit/htmlunit-core-js-2.5.jar / - include name=nekohtml/nekohtml-1.9.12.jar / include name=xalan/xalan-2.7.1.jar / include name=xerces/xerces-2_9_1/serializer.jar / include name=xerces/xerces-2_9_1/xercesImpl-NoMetaInf.jar / @@ -86,6 +84,11 @@ include name=sun/swingworker/swing-worker-1.1.jar / /fileset fileset file=build.xml/ +fileset dir=${htmlunit.libs.temp} +
[gwt-contrib] [google-web-toolkit] r6311 committed - Creating a snapshot branch.
Revision: 6311 Author: sp...@google.com Date: Wed Oct 7 07:58:15 2009 Log: Creating a snapshot branch. http://code.google.com/p/google-web-toolkit/source/detail?r=6311 Added: /branches/snapshot-2009.10.06-r6307 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6312 committed - adding a branch-info.txt
Revision: 6312 Author: sp...@google.com Date: Wed Oct 7 08:02:09 2009 Log: adding a branch-info.txt http://code.google.com/p/google-web-toolkit/source/detail?r=6312 Added: /branches/snapshot-2009.10.06-r6307/branch-info.txt === --- /dev/null +++ /branches/snapshot-2009.10.06-r6307/branch-info.txt Wed Oct 7 08:02:09 2009 @@ -0,0 +1,10 @@ +branch-info.txt for the 2009.10.06 snapshot branch. +Tracks interactions between this branch and other branches. +See: http://code.google.com/p/google-web-toolkit/wiki/ManagingMerges + +Copies: +This branch was created as a straight copy from /trunk/@6307 + + +Merges: +(none) --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Invalid version number 2.0 passed to external.gwtOnLoad()
Here is some more information. I ran into this problem while testing the plugin against GWT 1.7, trunk, and 2.0 MS1. It looks like whenever we generate the hosted.html we use the timestamp of that file as it was inside of the gwt-dev-PLAT.jar. It would seem to me that we want to touch that file every time it is copied/generated. On Mon, Sep 21, 2009 at 3:47 PM, John Tamplin j...@google.com wrote: On Mon, Sep 21, 2009 at 3:38 PM, Ray Ryan rj...@google.com wrote: Time to put it up on rietveld again? Or is there already an url? Same one is still there - http://gwt-code-reviews.appspot.com/56807/show -- John A. Tamplin Software Engineer (GWT), Google -- Miguel --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Add a CssResource interface generator
Perhaps I'm wrong to be dismissive of Keith's concerns--we're aiming at different audiences. He's' generating source that people will work with directly, I'm generating source that will only be accessed via attribute settings in a ui.xml file. @Keith, what do you do when you see save_button--do you convert it and provide an annotation to point back to the .css name? Exactly. The CSS class save_button would turn into: @ClassName(save_button) String saveButton(); I'm not sure how common it is to use underscores in CSS files... I did in my sample projects, and my GWT code ended up looking like it had a bunch of Ruby calls in it (which by convention uses underscores rather than camel-casing for method names). So I decided it was worthwhile (at least in my case) to try to make the CssResource methods look more like regular Java identifiers. Keith --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Add a CssResource interface generator
Do you have similar handling of dashes? On Wed, Oct 7, 2009 at 8:39 AM, Keith Platfoot kplatf...@google.com wrote: Perhaps I'm wrong to be dismissive of Keith's concerns--we're aiming at different audiences. He's' generating source that people will work with directly, I'm generating source that will only be accessed via attribute settings in a ui.xml file. @Keith, what do you do when you see save_button--do you convert it and provide an annotation to point back to the .css name? Exactly. The CSS class save_button would turn into: @ClassName(save_button) String saveButton(); I'm not sure how common it is to use underscores in CSS files... I did in my sample projects, and my GWT code ended up looking like it had a bunch of Ruby calls in it (which by convention uses underscores rather than camel-casing for method names). So I decided it was worthwhile (at least in my case) to try to make the CssResource methods look more like regular Java identifiers. Keith --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Invalid version number 2.0 passed to external.gwtOnLoad()
Had the same problem on Mac. I fixed it by removing Safari cache from / Library/Caches. On Sep 18, 3:37 pm, Marko Vuksanovic markovuksano...@gmail.com wrote: I had the same problem.. After struggling for 2 days I figured out that the embedded jetty loads the hosted.html file form cache (C: \Documents and Settings\YOUR_USERNAME\Local Settings\Temporary Internet Files\Content.IE5 - on windows xp) - after manually deleting that cache everything started working normally. Hope this saves somebody else at least 2 days :) On Aug 12, 5:52 pm, Ray Ryan rj...@google.com wrote: We could make the error message a bit more helpful. If I'm following the conversation correctly I think I've bumped into this due to browser caching. Suggesting that possibility in the error message, or offering a link to force a reload in a browser busting way (e.g. adding a query param wtih a date stamp value) could save folks a lot of time. On Tue, Aug 11, 2009 at 9:33 PM, Fred Sauer fre...@google.com wrote: On Tue, Aug 11, 2009 at 5:47 PM, John Tamplin j...@google.com wrote: On Tue, Aug 11, 2009 at 8:22 PM, Fred Sauer fre...@google.com wrote: I'm not sure I understand the issue. If you have different versions of hosted.html and GWT, things are likely to not work and that is why that check was added in 1.6. I don't see how you could have the incorrect contents of hosted.html but the correct version, unless you update/rollback parts of GWT separately, in which case you are already likely to break things if you don't know what you are doing. Yep, that's exactly the scenario :). Knowing that you have to watch out for this stuff is one thing. Being bit by it every now and again and going down a rabbit hole, is (mildly) annoying. Not a huge deal as this affect contributors only, but could be a good sanity check to save time down the road. There are so many ways you can screw things up by mixing different versions of parts of GWT, I don't see how this is any different. For example, if you rollback an old TypeOracleMediator but don't roll back related TypeOracle changes, things are going to break horribly. I think trying to add code inside GWT to detect such situations is counterproductive and unlikely to be effective anyway. You had me at There are so many ways you can screw things up Thanks Fred I would hope that anyone knows building a version of GWT that is not at a consistent revision across the board means they better know exactly what they are doing or they will get weird breakages. -- John A. Tamplin Software Engineer (GWT), Google -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Invalid version number 2.0 passed to external.gwtOnLoad()
I get this error when I switch from the GWT compiled from Trunk back to 1.7.1 or any previous versions. I only know two ways to solve it: 1) Open up war\projectname\hosted.html and edit line 16 from var $hostedHtmlVersion=2.0; to var $hostedHtmlVersion=1.6; (which I think is a terrible hack because I don't know what other differences there could be in that file or for that matter the entire project that isn't being correctly changed back to the previous version...) 2) Create a whole new project from scratch that is using GWT 1.7.1 and copy all my files from the broken project into this new one and scrap the broken one. This just seems dumb. So why can't I switch between GWT Trunk and the stable version seamlessly? It has nothing to do with browser caching because the actual hosted.html file in the project has the value 2.0 instead of 1.6. I did try clearing the browser cache though. Any help would be very much appreciated. On Oct 7, 10:29 am, Miguel Méndez mmen...@google.com wrote: Here is some more information. I ran into this problem while testing the plugin against GWT 1.7, trunk, and 2.0 MS1. It looks like whenever we generate the hosted.html we use the timestamp of that file as it was inside of the gwt-dev-PLAT.jar. It would seem to me that we want to touch that file every time it is copied/generated. On Mon, Sep 21, 2009 at 3:47 PM, John Tamplin j...@google.com wrote: On Mon, Sep 21, 2009 at 3:38 PM, Ray Ryan rj...@google.com wrote: Time to put it up on rietveld again? Or is there already an url? Same one is still there -http://gwt-code-reviews.appspot.com/56807/show -- John A. Tamplin Software Engineer (GWT), Google -- Miguel --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Invalid version number 2.0 passed to external.gwtOnLoad()
I entered the issue 4112http://code.google.com/p/google-web-toolkit/issues/detail?id=4112, to track this problem. 2009/10/7 Miguel Méndez mmen...@google.com Here is some more information. I ran into this problem while testing the plugin against GWT 1.7, trunk, and 2.0 MS1. It looks like whenever we generate the hosted.html we use the timestamp of that file as it was inside of the gwt-dev-PLAT.jar. It would seem to me that we want to touch that file every time it is copied/generated. On Mon, Sep 21, 2009 at 3:47 PM, John Tamplin j...@google.com wrote: On Mon, Sep 21, 2009 at 3:38 PM, Ray Ryan rj...@google.com wrote: Time to put it up on rietveld again? Or is there already an url? Same one is still there - http://gwt-code-reviews.appspot.com/56807/show -- John A. Tamplin Software Engineer (GWT), Google -- Miguel -- Miguel --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Invalid version number 2.0 passed to external.gwtOnLoad()
This is definitely a bug and you should be able to switch between the two versions. As a work around try the following: 1) Delete the current war/MODULE/hosted.html file 2) Re-run hosted mode and see the failure and stop hosted mode (this causes a new hosted.html file with the right version to be generated). 3) Touch the newly generated war/MODULE/hosted.html file. 4) Relaunch hosted mode (this should succeed) On Wed, Oct 7, 2009 at 1:15 PM, Sky myonceinalifet...@gmail.com wrote: I get this error when I switch from the GWT compiled from Trunk back to 1.7.1 or any previous versions. I only know two ways to solve it: 1) Open up war\projectname\hosted.html and edit line 16 from var $hostedHtmlVersion=2.0; to var $hostedHtmlVersion=1.6; (which I think is a terrible hack because I don't know what other differences there could be in that file or for that matter the entire project that isn't being correctly changed back to the previous version...) 2) Create a whole new project from scratch that is using GWT 1.7.1 and copy all my files from the broken project into this new one and scrap the broken one. This just seems dumb. So why can't I switch between GWT Trunk and the stable version seamlessly? It has nothing to do with browser caching because the actual hosted.html file in the project has the value 2.0 instead of 1.6. I did try clearing the browser cache though. Any help would be very much appreciated. On Oct 7, 10:29 am, Miguel Méndez mmen...@google.com wrote: Here is some more information. I ran into this problem while testing the plugin against GWT 1.7, trunk, and 2.0 MS1. It looks like whenever we generate the hosted.html we use the timestamp of that file as it was inside of the gwt-dev-PLAT.jar. It would seem to me that we want to touch that file every time it is copied/generated. On Mon, Sep 21, 2009 at 3:47 PM, John Tamplin j...@google.com wrote: On Mon, Sep 21, 2009 at 3:38 PM, Ray Ryan rj...@google.com wrote: Time to put it up on rietveld again? Or is there already an url? Same one is still there - http://gwt-code-reviews.appspot.com/56807/show -- John A. Tamplin Software Engineer (GWT), Google -- Miguel -- Miguel --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Comment on UsingOOPHM in google-web-toolkit
Comment by myonceinalifetime: I have already made 2 comments on my issue (check so I don't have to repeat some stuff). I still cannot get oophm to debug. I have tried using the compiled version of GWT from trunk (retrieved from SVN only yesterday Oct 6th) as well as the latest plugin for Firefox 3.0 and IE. My project compiles and starts up the server fine... it says it is waiting for a browser to connect to the given URL. Going to that URL in FF or IE does run the web app perfectly but no breakpoints are hit. It is acting the exact same as when I use regular GWT 1.7.1 with the regular GWT hosted mode and I go to the same url (http://localhost:8080/myproject.html) within an external browser such as FF or IE... doing this runs the web app fine but does not invoke breakpoints. The only way breakpoints are invoked is within gwt hosted mode internal browser. It is acting as it would if I did not even have a plugin installed in the browser. Dbgview gives absolutely no output whatsoever when launching browsers or running GWT or anything. I have all the capture options on. Can anyone help me figure out what I am doing wrong? For more information: http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Comment on UsingOOPHM in google-web-toolkit
Comment by tamplinjohn: If it is behaving the same in GWT 1.7.1, it has nothing to do with OOPHM. I would suggest posting on the GWT mailing list for assistance. For more information: http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Add a CssResource interface generator
LGTM I'm not sure if it's worth the bother of trying to share this with UiBinder land. The interesting stuff is all shared already, via GenerateCssAst. (Maybe that'll be less true when we get around to addressing http://code.google.com/p/google-web-toolkit/issues/detail?id=4052, but I'm not ready to deal with that yet.) Questions, none of which gate committing 1) Do you need a plan to share this with Keith, or is he in the same boat I am: GenerateCssAst is share enough? 2) Either way, seems like you and Keith should be consistent on generated names. Perhaps if you had a java api that accepted an object in charge of name strategy, which Keith could also use in his code if he doesn't want your full generator? Could pave the way to dealing with 4052, too. 3) How are people going to find this? Seems like you want to mention it in the JavaDoc for CssResource at the very least. 4) Should you make the this was generated message a bit scarier? If you expect people to re-run this, we should scare them away from editing the java. And if they're not going to re-run it, they can take away the scarey bits. http://gwt-code-reviews.appspot.com/72808/diff/1/2 File user/src/com/google/gwt/resources/css/InterfaceGenerator.java (right): http://gwt-code-reviews.appspot.com/72808/diff/1/2#newcode220 Line 220: new URL[] {inputFile.toURL()}); Worth changing the sig of GenerateCssAst.exec to (TreeLogger, URL... urls)? http://gwt-code-reviews.appspot.com/72808 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6315 committed - Tagging the source to release 1.7.1
Revision: 6315 Author: rj...@google.com Date: Wed Oct 7 12:41:48 2009 Log: Tagging the source to release 1.7.1 http://code.google.com/p/google-web-toolkit/source/detail?r=6315 Added: /tags/1.7.1 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Fix for issue 4111 (UiBinder emitting comma as decimal separator on non-US locales).
Reviewers: Ray Ryan, Please review this at http://gwt-code-reviews.appspot.com/77802 Affected files: M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java Index: user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java diff --git a/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java b/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java index 4b3c54a8f811faa794aaae98922c6423860a9d9c..9726c2bd46cece7eab19ecad1153c9cc4d294783 100644 --- a/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java +++ b/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java @@ -51,6 +51,7 @@ import java.util.Collection; import java.util.HashMap; import java.util.LinkedList; import java.util.List; +import java.util.Locale; import java.util.Map; import javax.xml.parsers.DocumentBuilder; @@ -298,7 +299,7 @@ public class UiBinderWriter { * style of {...@link String#format} */ public void addInitStatement(String format, Object... params) { -initStatements.add(String.format(format, params)); +initStatements.add(formatCode(format, params)); } /** @@ -306,7 +307,7 @@ public class UiBinderWriter { * of {...@link String#format} */ public void addStatement(String format, Object... args) { -statements.add(String.format(format, args)); +statements.add(formatCode(format, args)); } /** @@ -687,7 +688,7 @@ public class UiBinderWriter { */ public void setFieldInitializerAsConstructor(String fieldName, JClassType type, String... args) { -setFieldInitializer(fieldName, String.format(new %s(%s), +setFieldInitializer(fieldName, formatCode(new %s(%s), type.getQualifiedSourceName(), asCommaSeparatedList(args))); } @@ -858,6 +859,15 @@ public class UiBinderWriter { } /** + * Use this method to format code. It forces the use of the en-US locale, + * so that things like decimal format don't get mangled. + */ + private String formatCode(String format, Object... params) { +String r = String.format(Locale.US, format, params); +return r; + } + + /** * Inspects this element for a gwt:field attribute. If one is found, the * attribute is consumed and its value returned. * @@ -1197,7 +1207,7 @@ public class UiBinderWriter { // (would that be a user error or a runtime error? Not sure) if (fieldWriter != null) { fieldManager.lookup(fieldName).setInitializerMaybe( - String.format(owner.%1$s, fieldName)); + formatCode(owner.%1$s, fieldName)); } } } @@ -1301,5 +1311,4 @@ public class UiBinderWriter { writeStaticMessagesInstance(w); writeStaticBundleInstances(w); } - } --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6316 committed - Adds UiBinderUtilTest....
Revision: 6316 Author: rj...@google.com Date: Wed Oct 7 13:03:24 2009 Log: Adds UiBinderUtilTest. Created this while failing to reproduce a bug. Might as well hold on to it. Reviewed by: jgw http://code.google.com/p/google-web-toolkit/source/detail?r=6316 Added: /trunk/user/test/com/google/gwt/uibinder/client/UiBinderUtilTest.java Modified: /trunk/user/test/com/google/gwt/uibinder/UiBinderGwtSuite.java === --- /dev/null +++ /trunk/user/test/com/google/gwt/uibinder/client/UiBinderUtilTest.java Wed Oct 7 13:03:24 2009 @@ -0,0 +1,159 @@ +/* + * Copyright 2009 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.uibinder.client; + +import com.google.gwt.dom.client.DivElement; +import com.google.gwt.dom.client.Document; +import com.google.gwt.dom.client.Element; +import com.google.gwt.dom.client.Style.Display; +import com.google.gwt.dom.client.Style.Visibility; +import com.google.gwt.junit.client.GWTTestCase; +import com.google.gwt.user.client.DOM; +import com.google.gwt.user.client.Random; +import com.google.gwt.user.client.ui.RootPanel; + +/** + * Tests {...@link UiBinderUtil} + */ +public class UiBinderUtilTest extends GWTTestCase { + + @Override + public String getModuleName() { +return com.google.gwt.uibinder.UiBinderTestModule; + } + + public void testAttachToDomAndGetChildUnattached() { +go(); + } + + public void testAttachToDomAndGetChildUnderUnattached() { +DivElement div = Document.get().createDivElement(); +try { + go(div); +} finally { + detach(div); +} + } + + public void testAttachToDomAndGetChildUnderHidden() { +DivElement div = Document.get().createDivElement(); +try { + RootPanel.getBodyElement().appendChild(div); + div.getStyle().setVisibility(Visibility.HIDDEN); + go(div); +} finally { + detach(div); +} + } + + public void testAttachToDomAndGetChildUnderDisplayNone() { +DivElement div = Document.get().createDivElement(); +try { + RootPanel.getBodyElement().appendChild(div); + div.getStyle().setDisplay(Display.NONE); + go(div); +} finally { + detach(div); +} + } + + public void testAttachToDomAndGetChildUnderAttachedThenUnattached() { +DivElement div = Document.get().createDivElement(); +detach(div); +try { + RootPanel.getBodyElement().appendChild(div); + go(div); +} finally { + detach(div); +} + } + + /** + * Make sure this test's clean up method actually works. + */ + public void testDetach() { +DivElement div = Document.get().createDivElement(); +RootPanel.getBodyElement().appendChild(div); +detach(div); +assertNull(div.getParentNode()); + } + + private void assertStartsWith(String string, String prefix) { +assertTrue('' + string + \ should start with \ + prefix + \, +string.startsWith(prefix)); + } + + private void findAndAssertTextBeforeFirstChild(Element div, String id, + String firstText) { +UiBinderUtil.TempAttachment t = UiBinderUtil.attachToDom(div); +Element child = Document.get().getElementById(id); +t.detach(); +assertStartsWith(child.getInnerHTML(), firstText + ); + } + + private void detach(Element div) { +if (div != null) { + Element parent = div.getParentElement(); + if (parent != null) { +parent.removeChild(div); + } +} + } + + private void go() { +go(null); + } + + private void go(Element underHere) { +Element div = null; +try { + String ableId = DOM.createUniqueId(); + String bakerId = DOM.createUniqueId(); + String charlieId = DOM.createUniqueId(); + String deltaId = DOM.createUniqueId(); + + String ableText = able + Random.nextInt(); + String bakerText = baker + Random.nextInt(); + String charlieText = charlie + Random.nextInt(); + String deltaText = delta + Random.nextInt(); + + StringBuilder b = new StringBuilder(); + b.append(div); + b.append(span id=').append(ableId).append(').append(ableText); + b.append(span id=').append(bakerId).append(').append(bakerText); + b.append(span id=').append(charlieId).append(').append(charlieText); + b.append(span id=').append(deltaId).append(').append(deltaText); + b.append(/span).append(/span).append(/span).append(/span); + b.append(/div); + + div =
[gwt-contrib] Re: Adds UiBinderUtilTest
Committed r6316 http://gwt-code-reviews.appspot.com/77801 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Fix for issue 4111 (UiBinder emitting comma as decimal separator on non-US locales).
LGTM And here I was hoping it wasn't me. Thanks! http://gwt-code-reviews.appspot.com/77802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Fix for issue 4111 (UiBinder emitting comma as decimal separator on non-US locales).
FWIW, I'm pretty sure I wrote that code myself a long time ago... On Wed, Oct 7, 2009 at 4:05 PM, rj...@google.com wrote: LGTM And here I was hoping it wasn't me. Thanks! http://gwt-code-reviews.appspot.com/77802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Fix for issue 4111 (UiBinder emitting comma as decimal separator on non-US locales).
On 2009/10/07 20:05:36, Ray Ryan wrote: LGTM And here I was hoping it wasn't me. Thanks! Committed at r6317. http://gwt-code-reviews.appspot.com/77802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6317 committed - Fix for issue 4111 (comma-decimal-separator bug)....
Revision: 6317 Author: j...@google.com Date: Wed Oct 7 13:08:06 2009 Log: Fix for issue 4111 (comma-decimal-separator bug). Review: http://gwt-code-reviews.appspot.com/77802 http://code.google.com/p/google-web-toolkit/source/detail?r=6317 Modified: /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java === --- /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java Tue Oct 6 14:43:09 2009 +++ /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java Wed Oct 7 13:08:06 2009 @@ -51,6 +51,7 @@ import java.util.HashMap; import java.util.LinkedList; import java.util.List; +import java.util.Locale; import java.util.Map; import javax.xml.parsers.DocumentBuilder; @@ -298,7 +299,7 @@ * style of {...@link String#format} */ public void addInitStatement(String format, Object... params) { -initStatements.add(String.format(format, params)); +initStatements.add(formatCode(format, params)); } /** @@ -306,7 +307,7 @@ * of {...@link String#format} */ public void addStatement(String format, Object... args) { -statements.add(String.format(format, args)); +statements.add(formatCode(format, args)); } /** @@ -687,7 +688,7 @@ */ public void setFieldInitializerAsConstructor(String fieldName, JClassType type, String... args) { -setFieldInitializer(fieldName, String.format(new %s(%s), +setFieldInitializer(fieldName, formatCode(new %s(%s), type.getQualifiedSourceName(), asCommaSeparatedList(args))); } @@ -856,6 +857,15 @@ return elementClass; } + + /** + * Use this method to format code. It forces the use of the en-US locale, + * so that things like decimal format don't get mangled. + */ + private String formatCode(String format, Object... params) { +String r = String.format(Locale.US, format, params); +return r; + } /** * Inspects this element for a gwt:field attribute. If one is found, the @@ -1197,7 +1207,7 @@ // (would that be a user error or a runtime error? Not sure) if (fieldWriter != null) { fieldManager.lookup(fieldName).setInitializerMaybe( - String.format(owner.%1$s, fieldName)); + formatCode(owner.%1$s, fieldName)); } } } @@ -1301,5 +1311,4 @@ writeStaticMessagesInstance(w); writeStaticBundleInstances(w); } - -} +} --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Add a CssResource interface generator
If any work is going to be done in consideration to 4052, it's probably worth keeping http://code.google.com/p/google-web-toolkit/issues/detail?id=4053 in mind, as they're likely related. - Amir On Wed, Oct 7, 2009 at 11:49 AM, rj...@google.com wrote: LGTM I'm not sure if it's worth the bother of trying to share this with UiBinder land. The interesting stuff is all shared already, via GenerateCssAst. (Maybe that'll be less true when we get around to addressing http://code.google.com/p/google-web-toolkit/issues/detail?id=4052, but I'm not ready to deal with that yet.) Questions, none of which gate committing 1) Do you need a plan to share this with Keith, or is he in the same boat I am: GenerateCssAst is share enough? 2) Either way, seems like you and Keith should be consistent on generated names. Perhaps if you had a java api that accepted an object in charge of name strategy, which Keith could also use in his code if he doesn't want your full generator? Could pave the way to dealing with 4052, too. 3) How are people going to find this? Seems like you want to mention it in the JavaDoc for CssResource at the very least. 4) Should you make the this was generated message a bit scarier? If you expect people to re-run this, we should scare them away from editing the java. And if they're not going to re-run it, they can take away the scarey bits. http://gwt-code-reviews.appspot.com/72808/diff/1/2 File user/src/com/google/gwt/resources/css/InterfaceGenerator.java (right): http://gwt-code-reviews.appspot.com/72808/diff/1/2#newcode220 Line 220: new URL[] {inputFile.toURL()}); Worth changing the sig of GenerateCssAst.exec to (TreeLogger, URL... urls)? http://gwt-code-reviews.appspot.com/72808 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Comment on UsingOOPHM in google-web-toolkit
Comment by myonceinalifetime: In my previous posts I said that when I put gwt-dev-oophm.jar to the top of classpath the swing UI changes from doing hosted mode to the new mode where it depends on a plugin in the browser to connect the javascript to the java code. So no, its not running the same as in GWT 1.7.1 but my experience in the browser is the same, because the plugin appears to not be doing its job. From my perspective it definitely looks like OOPHM is not even happening. So how can it be an issue with regular GWT? For more information: http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---