Re: Compiling from command line - Annotation errors
You have to javac your classes and give both the *.class and *.java to the GWT compiler. This is why it works in Eclipse: because Eclipse automatically compiles your source files, and the output folder is added to the classpath of the GWT Compiler. See http://code.google.com/p/google-web-toolkit/issues/detail?id=7602 On Tuesday, October 9, 2012 3:57:34 AM UTC+2, Jy wrote: Hello, I'm trying to automate the process of deploying new gwt code by automating the compile process. I've google around a ton and can't seem to find any solutions. It's funny because it compiles no problem in Eclipse, but trying to compile on the command line has been a pain. The errors I keep getting are essentially like so: Compiling module com.proximate.proximate Resolving com.proximate.client.AppPlaceHistoryMapper Found type 'com.proximate.client.AppPlaceHistoryMapper' [ERROR] Annotation error: cannot resolve com.proximate.client.place.Home$Tokenizer java.lang.ClassNotFoundException: com.proximate.client.place.Home$Tokenizer at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:750) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:689) at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOracleMediator.java:498) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java:648) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java:663) at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMediator.java:809) at com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMediator.java:439) at com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(TypeOracleMediatorFromSource.java:52) at com.google.gwt.dev.javac.CompilationState.assimilateUnits(CompilationState.java:164) at com.google.gwt.dev.javac.CompilationState.init(CompilationState.java:82) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:450) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:370) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:360) at com.google.gwt.dev.Precompile.precompile(Precompile.java:252) at com.google.gwt.dev.Precompile.precompile(Precompile.java:233) at com.google.gwt.dev.Precompile.precompile(Precompile.java:145) at com.google.gwt.dev.Compiler.run(Compiler.java:232) at com.google.gwt.dev.Compiler.run(Compiler.java:198) at com.google.gwt.dev.Compiler$1.run(Compiler.java:170) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82) at com.google.gwt.dev.Compiler.main(Compiler.java:177) [ERROR] Annotation error: expected class java.lang.Class, got null [ERROR] Annotation error: cannot resolve com.proximate.client.place.Marketplace$Tokenizer Please help someone! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/agzFbfTj_g4J. 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: RequestFactory in a offline Szenario?
Best thanx. Szenario 1, would mean that you have to deal with two different sets of data structures online = entityproxies and offline something else. or you have to develop your own layer above request factory which to avoid was the rational behind using requestfactory. Szenario 2 seems like a interesting approach, but i must confess i not knowlegable enough of the internals of Requestfactory to really be able to see what that means. Also for adressing the issue with the potential confict resolution this is probably not the right layer So probably you need something above RequestfFactory, which deals with a higher level batching and offline / online awareness etc... Am Montag, 8. Oktober 2012 19:04:10 UTC+2 schrieb Jens: I think I would store data changes locally and when the device is back online I would send everything to the server and let the server synchronize it with its server database. The server can send conflicts back to the client and then let the user choose which version of the conflicted data should be used. So I would not store the specific requests, but only the data (along with some meta data like timestamp, isDeleted, etc.). So its pretty much: if(online) { // requestfactory } else { // use local data cache } I am not sure if its possible to implement a custom RequestTransport for RequestFactory, e.g. OfflineRequestTransport, that parses the RF payload and executes/applies all the invocations/operations locally using a local data cache. If it would be possible you could switch to an OfflineRequestTransport as soon as you are offline and you dont need that if(online) block everywhere in your code. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/HhBDMGHWLNgJ. 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: Mapping EntityProxies to Domain Interfaces
I solved this with a InterfaceResolvingServiceLayerDecorator basically a copy of the ResloverServiceLayer with one line different: In the method resloveClientType the line: Class? toSearch = domainClass; ist substituted with: Class? toSearch = InterfaceUtils.getEntityInterfaceIfExits(domainClass); where InterfaceUtils is application specific. Not quite sure of the approach seems lots of code copied for one little change ... ;-/ ? Am Freitag, 5. Oktober 2012 11:22:34 UTC+2 schrieb Christoph Henrici: By default it seems to me that EntityProxies can't be mapped with @ProxyFor to Domain Interfaces, since the Deobfuscator.getClientProxies via ResolverServiceLayer by the Implementing Class name.. ResolverServiceLayer dies with The domain type %s cannot be sent to the client. Generally i think it would be a good idea to be able to map Proxies to Domain Interfaces, or am i missing something? Is there a way of achieving this? Christoph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/nSM4ikzr5EIJ. 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: Mapping EntityProxies to Domain Interfaces
There are two issues in gwt, related with this http://code.google.com/p/google-web-toolkit/issues/detail?id=5762 http://code.google.com/p/google-web-toolkit/issues/detail?id=7509 I submitted a patch a couple of months ago which should fix your issue http://gwt-code-reviews.appspot.com/1764804/ It should be nice if you could test the fix with your projects and give feedback. - Manolo On Tue, Oct 9, 2012 at 9:09 AM, Christoph Henrici chhenr...@gmail.comwrote: I solved this with a InterfaceResolvingServiceLayerDecorator basically a copy of the ResloverServiceLayer with one line different: In the method resloveClientType the line: Class? toSearch = domainClass; ist substituted with: Class? toSearch = InterfaceUtils.getEntityInterfaceIfExits(domainClass); where InterfaceUtils is application specific. Not quite sure of the approach seems lots of code copied for one little change ... ;-/ ? Am Freitag, 5. Oktober 2012 11:22:34 UTC+2 schrieb Christoph Henrici: By default it seems to me that EntityProxies can't be mapped with @ProxyFor to Domain Interfaces, since the Deobfuscator.getClientProxies via ResolverServiceLayer by the Implementing Class name.. ResolverServiceLayer dies with The domain type %s cannot be sent to the client. Generally i think it would be a good idea to be able to map Proxies to Domain Interfaces, or am i missing something? Is there a way of achieving this? Christoph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/nSM4ikzr5EIJ. 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. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing Screencast on how to setup Gin for IOC
Thanks for sharing! Did not know about the gwtcasts website, very valuable information there! Sábado, 6 de Outubro de 2012 6:58:44 UTC+1, gpike escreveu: Hi everyone just wanted to let you know I released a screencast on using Gin in your GWT application to control the lifecycle of your objects. Gin extends the features of Guice for use in your client code. It can be beneficial in writing more componentized code, that is easier to test and or mock. Check it out and the source code is available on GitHub. http://www.gwtcasts.com/2012/10/05/gin-as-an-inversion-of-control-container-in-gwt/ Thanks, Gordon Pike easygwt.com gwtcasts.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/meUR2byo620J. 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.
SuperDevMode and validation-api
I am trying to switch to SuperDevMode in one project and I run into an issue with missing source code. It's a normal maven2 project configured with m2e in eclipse. It compiles fine when I compile it manually however when I start the codeserver for SuperDevMode I get following error (not using maven but creating a run configuration in eclipse): [ERROR] Line 113: No source code is available for type javax.validation.ConstraintViolationT; did you forget to inherit a required module? I have the validation-api 1.0.0.GA sources as a maven2 dependency. The run configuration for the codeserver looks like following: -src src/main/java/ -src target/generated-sources/annotations/ MyModule The classpath contains the maven2 dependencies and the project. Am I missing something here? thanks in advance P.S: I had a similar issue with a custom maven dependency. SuperDevMode couldn't find the libraries Module xml (I had the library linked using eclipse m2e's workspace resolutions). It only started to work after I installed the SNAPSHOT version of the library into the local maven repository. Not sure if these issues are related -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hNYplu7E0RUJ. 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: SuperDevMode and validation-api
I was only able to fix this by manually adding the validation-api-1.0.0.GA-sources.jar to the user entries of the classpath of my run configuration for superdevmode. On Tue, Oct 9, 2012 at 11:29 AM, Ümit Seren uemit.se...@gmail.com wrote: I am trying to switch to SuperDevMode in one project and I run into an issue with missing source code. It's a normal maven2 project configured with m2e in eclipse. It compiles fine when I compile it manually however when I start the codeserver for SuperDevMode I get following error (not using maven but creating a run configuration in eclipse): [ERROR] Line 113: No source code is available for type javax.validation.ConstraintViolationT; did you forget to inherit a required module? I have the validation-api 1.0.0.GA sources as a maven2 dependency. The run configuration for the codeserver looks like following: -src src/main/java/ -src target/generated-sources/annotations/ MyModule The classpath contains the maven2 dependencies and the project. Am I missing something here? thanks in advance P.S: I had a similar issue with a custom maven dependency. SuperDevMode couldn't find the libraries Module xml (I had the library linked using eclipse m2e's workspace resolutions). It only started to work after I installed the SNAPSHOT version of the library into the local maven repository. Not sure if these issues are related -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hNYplu7E0RUJ. 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. -- You received this message because you are subscribed to the Google Groups Google 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: Are you happy with GWT?
A couple warnings. Ihttp://www.thehubsa.co.za/forum/index.php?app=hubmarketdo=view_itemitem_id=40056'd suggest starting off slowly, rather than dumping the whole team onto GWT on day 1. There are a ton of gotchas or WTF's that the good GWT devs likely don't remember. Adding an intermediate layer can frustrate you if you're used to bare-metal web dev, so you'll definitely get some pushback at some point. Also, since Java's now considered a bit of an older language compared to the dynamic stuff the cool kids are using, that can affect resourcing. Are the cool kids happy to write Java for their front-end work? Are they happy that it'll have a positive effect on their career and not paint them into a corner? Personally, I love it. It can drive me nuts at times, but it gives me too many benefits to ignore. Once you learn the intricacies, it's very powerful. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/R436N4yJOKQJ. 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: Are you happy with GWT?
there are a few wtfs, yes - but they only come once. once you know them, they are no problem. Am 09.10.2012 12:05, schrieb Richard: A couple warnings. I http://www.thehubsa.co.za/forum/index.php?app=hubmarketdo=view_itemitem_id=40056'd suggest starting off slowly, rather than dumping the whole team onto GWT on day 1. There are a ton of gotchas or WTF's that the good GWT devs likely don't remember. Adding an intermediate layer can frustrate you if you're used to bare-metal web dev, so you'll definitely get some pushback at some point. Also, since Java's now considered a bit of an older language compared to the dynamic stuff the cool kids are using, that can affect resourcing. Are the cool kids happy to write Java for their front-end work? Are they happy that it'll have a positive effect on their career and not paint them into a corner? Personally, I love it. It can drive me nuts at times, but it gives me too many benefits to ignore. Once you learn the intricacies, it's very powerful. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/R436N4yJOKQJ. 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. -- -- You received this message because you are subscribed to the Google Groups Google 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: RequestFactory in a offline Szenario?
On Tuesday, October 9, 2012 9:03:35 AM UTC+2, Christoph Henrici wrote: Best thanx. Szenario 1, would mean that you have to deal with two different sets of data structures online = entityproxies and offline something else. or you have to develop your own layer above request factory which to avoid was the rational behind using requestfactory. Szenario 2 seems like a interesting approach, but i must confess i not knowlegable enough of the internals of Requestfactory to really be able to see what that means. Have a look at http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/web/bindery/requestfactory/shared/ProxySerializer.html but beware that there are issues with it (known and probably unknown too). Also for adressing the issue with the potential confict resolution this is probably not the right layer So probably you need something above RequestfFactory, which deals with a higher level batching and offline / online awareness etc... Synchronization (and conflict resolution) is hard. In the end, it's probably easier to either use the last write wins (possibly at the property level rather than object level; that would make it more of less equivalent to OT) or to simply store duplicates and then provide a mean to reconcile/merge data. It seems to be more or less what Google does for the contacts for instance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/QSyF8AbQwpUJ. 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: SuperDevMode and validation-api
On Tuesday, October 9, 2012 11:39:35 AM UTC+2, Ümit Seren wrote: I was only able to fix this by manually adding the validation-api-1.0.0.GA-sources.jar to the user entries of the classpath of my run configuration for superdevmode. This is maybe because sources jars have the addedToClasspath bit to false, which Eclipse respects, but not the gwt-maven-plugin (it takes all dependencies in the maven scope independently of their type or classifier). http://grepcode.com/file/repo1.maven.org/maven2/org.apache.maven/maven-core/3.0.4/META-INF/plexus/artifact-handlers.xml -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dgD0slxX4Y0J. 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: SuperDevMode and validation-api
Thanks Thomas for the info, that makes sense The reason I am not using mvn gwt:run-codeserver is that I have some custom libraries which I add as dependency to my main project using eclipse m2e's workspace resolution and I haven't been able to run mvn commands from eclipse respecting the workspace resolution ( I get missing dependency errors). Of course I could install the SNAPSHOTS of my custom libraries into the local maven repository but most of the time I am too lazy. On Tue, Oct 9, 2012 at 1:10 PM, Thomas Broyer t.bro...@gmail.com wrote: On Tuesday, October 9, 2012 11:39:35 AM UTC+2, Ümit Seren wrote: I was only able to fix this by manually adding the validation-api-1.0.0.GA-sources.jar to the user entries of the classpath of my run configuration for superdevmode. This is maybe because sources jars have the addedToClasspath bit to false, which Eclipse respects, but not the gwt-maven-plugin (it takes all dependencies in the maven scope independently of their type or classifier). http://grepcode.com/file/repo1.maven.org/maven2/org.apache.maven/maven-core/3.0.4/META-INF/plexus/artifact-handlers.xml -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dgD0slxX4Y0J. 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. -- You received this message because you are subscribed to the Google Groups Google 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: SuperDevMode and validation-api
On Tuesday, October 9, 2012 1:21:06 PM UTC+2, Ümit Seren wrote: Thanks Thomas for the info, that makes sense The reason I am not using mvn gwt:run-codeserver is that I have some custom libraries which I add as dependency to my main project using eclipse m2e's workspace resolution and I haven't been able to run mvn commands from eclipse respecting the workspace resolution ( I get missing dependency errors). Yes, this is a known issue (true for all gwt-maven-plugin goals): https://jira.codehaus.org/browse/MGWT-332 And FWIW, I also run DevMode and SuperDevMode from within Eclipse (for the exact same reason, and also because it makes debugging with DevMode so much easier!) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-ZLEsCfGbw4J. 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: Are you happy with GWT?
Some examples of pushback when trying to introduce GWT into a legacy j2ee application 1) We don't have time for a re-write 2) this is a website not an application 3) servlet template engines are sufficient for most UX and the rest can be done in javascript 4) SEO requirements 5) I18n stuff needs to be in our familiar message.properties 6) UI designers don't want to live in hosted mode It's my observation that most J2EE developers who fight against GWT change their minds when they are asked to write jquery or native javascript. You'll however have to provide them with a easy way to inject gwt components into their servlet templates. Some things to consider: 1) consider consuming a smaller portion of a servlet template rather than the whole page 1a) design your MVP end to support a servlet template containing multiple sections earmarked for gwt (as independent widgets or working in unison) 2) add comments to the serlvet template file to reveal the entry point or presenter that will be boostrapped when the page loads 3) use http page requests instead of Place management when jumping around to new locations ( a single entry point with MVP and code splitting works very well with this model) 4) Use UIB templates!!! 5) demonstrate the ability to Junit test presenter logic ( mockito , jukito ..) - in contrast to the 10s of thousands of lines of .js code that go unwatched David On Tue, Oct 9, 2012 at 6:05 AM, Richard richard.wat...@gmail.com wrote: A couple warnings. Ihttp://www.thehubsa.co.za/forum/index.php?app=hubmarketdo=view_itemitem_id=40056'd suggest starting off slowly, rather than dumping the whole team onto GWT on day 1. There are a ton of gotchas or WTF's that the good GWT devs likely don't remember. Adding an intermediate layer can frustrate you if you're used to bare-metal web dev, so you'll definitely get some pushback at some point. Also, since Java's now considered a bit of an older language compared to the dynamic stuff the cool kids are using, that can affect resourcing. Are the cool kids happy to write Java for their front-end work? Are they happy that it'll have a positive effect on their career and not paint them into a corner? Personally, I love it. It can drive me nuts at times, but it gives me too many benefits to ignore. Once you learn the intricacies, it's very powerful. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/R436N4yJOKQJ. 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. -- You received this message because you are subscribed to the Google Groups Google 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.
TextArea vs RichTextArea
I am trying to create an area and initially I used the RichTextArea in order to use functions like toggleBold, toggleItalic and toggleUnderline. After a few days I noticed that in comparison with the TextArea, there are no getCursorPos and getSelectedText methods which are very essential in order to handle my editor. Do you know if there is any way to combine these functionalities or how can I use getCursorPos and getSelectedTextin in RichTextArea? Thank you very much.* * -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3kE8RNqa4doJ. 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 Properties file configuration
One way to do this is to add your server's .properties values to the page in the form of a javascript map script type=text/javascript language=javascript prefetchedJSP[prop1] = ${prop1}; prefetchedJSP[prop2] = ${prop2}; /script and then access those values in gwt with a com.google.gwt.i18n.client.Dictionary dictionary.getDictionary(prefetchedJSP); On Monday, October 8, 2012 3:33:50 AM UTC-4, Jayesh Patel wrote: I am new to GWT, and facing one problem. How we have .properties file for initial configuration at startup. I want to create one in GWT App. Also, GWT has client and server package. I want to setup the configuration at client package because all configuration belongs to client side. My actual need, I have one textArea which takes up only fixed number of characters and length is defined in my properties file like below. So I have to read a properties file for validation. my.properties smsConstraintEnabled=true smsConstraintCharLimit=160 I found few link but all are talking about properties file regarding Locale, I don't have any need on Locale side but need simple key-value configuration. I want this file to be loaded at startup or at Entry point itself and then I can use it at any client package classes for my validation. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/kDLLPT3FvDQJ. 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: Are you happy with GWT?
That's a very interesting situation. Actually, this is a decision between full-ajax site and js-enhanced site, and for that question it doesn't even really matter which JS framework is used. Server-side templating has always been a somewhat crazy idea (a hack, if you want - but then again, AJAX is a hack, too). It's surprising, that GWT can handle even this scenario well, and although it can't show its full set of advantages then, it's still a great choice. It's possible with GWT to eliminate server-side templating, if you want, because GWT makes it so easy to move the UI logic to the client. There are simply things that should live on the server side and things that should live on the client side. With traditional web development techniques, this decision was biased - now you can make a balanced decision. On Tuesday, October 9, 2012 2:10:16 PM UTC+2, David wrote: Some examples of pushback when trying to introduce GWT into a legacy j2ee application -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Jz9n8x8JjQwJ. 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: Mapping EntityProxies to Domain Interfaces
Great! Sorry i don't know that much about patches which one should i download ... and can i run them against jars? i have'nt the source code dist of gwt, i working with eclipse. If it's not to much work, you could give me a couple instructions and i ll test ? ;-)) Am Dienstag, 9. Oktober 2012 09:55:52 UTC+2 schrieb Manuel Carrasco: There are two issues in gwt, related with this http://code.google.com/p/google-web-toolkit/issues/detail?id=5762 http://code.google.com/p/google-web-toolkit/issues/detail?id=7509 I submitted a patch a couple of months ago which should fix your issue http://gwt-code-reviews.appspot.com/1764804/ It should be nice if you could test the fix with your projects and give feedback. - Manolo On Tue, Oct 9, 2012 at 9:09 AM, Christoph Henrici chhe...@gmail.comjavascript: wrote: I solved this with a InterfaceResolvingServiceLayerDecorator basically a copy of the ResloverServiceLayer with one line different: In the method resloveClientType the line: Class? toSearch = domainClass; ist substituted with: Class? toSearch = InterfaceUtils.getEntityInterfaceIfExits(domainClass); where InterfaceUtils is application specific. Not quite sure of the approach seems lots of code copied for one little change ... ;-/ ? Am Freitag, 5. Oktober 2012 11:22:34 UTC+2 schrieb Christoph Henrici: By default it seems to me that EntityProxies can't be mapped with @ProxyFor to Domain Interfaces, since the Deobfuscator.getClientProxies via ResolverServiceLayer by the Implementing Class name.. ResolverServiceLayer dies with The domain type %s cannot be sent to the client. Generally i think it would be a good idea to be able to map Proxies to Domain Interfaces, or am i missing something? Is there a way of achieving this? Christoph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/nSM4ikzr5EIJ. To post to this group, send email to google-we...@googlegroups.comjavascript: . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/tmtPzP2N9W8J. 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: Are you happy with GWT?
When servlet engines first came on the scene , developers were writing stringified content directly to the HttpResponse. There were also some popular widget frameworks at the time. Server side templating was introduced to let web designers into the fray. I wouldn't consider it a hack. Eliminating them completely has always been a tough sell. Luckily GWT does not require this . On Tue, Oct 9, 2012 at 10:22 AM, Chris Lercher cl_for_mail...@gmx.netwrote: That's a very interesting situation. Actually, this is a decision between full-ajax site and js-enhanced site, and for that question it doesn't even really matter which JS framework is used. Server-side templating has always been a somewhat crazy idea (a hack, if you want - but then again, AJAX is a hack, too). It's surprising, that GWT can handle even this scenario well, and although it can't show its full set of advantages then, it's still a great choice. It's possible with GWT to eliminate server-side templating, if you want, because GWT makes it so easy to move the UI logic to the client. There are simply things that should live on the server side and things that should live on the client side. With traditional web development techniques, this decision was biased - now you can make a balanced decision. On Tuesday, October 9, 2012 2:10:16 PM UTC+2, David wrote: Some examples of pushback when trying to introduce GWT into a legacy j2ee application -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Jz9n8x8JjQwJ. 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. -- You received this message because you are subscribed to the Google Groups Google 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: RequestFactory in a offline Szenario?
Am Dienstag, 9. Oktober 2012 12:59:19 UTC+2 schrieb Thomas Broyer: On Tuesday, October 9, 2012 9:03:35 AM UTC+2, Christoph Henrici wrote: Best thanx. Szenario 1, would mean that you have to deal with two different sets of data structures online = entityproxies and offline something else. or you have to develop your own layer above request factory which to avoid was the rational behind using requestfactory. Szenario 2 seems like a interesting approach, but i must confess i not knowlegable enough of the internals of Requestfactory to really be able to see what that means. Have a look at http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/web/bindery/requestfactory/shared/ProxySerializer.htmlbut beware that there are issues with it (known and probably unknown too). Great pointer, thanx! Also for adressing the issue with the potential confict resolution this is probably not the right layer So probably you need something above RequestfFactory, which deals with a higher level batching and offline / online awareness etc... Synchronization (and conflict resolution) is hard. In the end, it's probably easier to either use the last write wins (possibly at the property level rather than object level; that would make it more of less equivalent to OT) or to simply store duplicates and then provide a mean to reconcile/merge data. It seems to be more or less what Google does for the contacts for instance. Very true the approach with secondary unconsolidated data structures, which are consolidate in a second step might a sound approach -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/pAFI2YlLHMgJ. 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: Request Factory Server Generated Entity Attribut Values
Best thanx. So it's basically i can - if i understand correctly - return the changed Attributes in for example a ValueProxy with a Reciever.onSuccesd Paramrter or usethe PropertyChangeEvent mechansim... where one would requery the Entity from the server, since the PropertyChangeEvent itself does'nt carried the changes? Am Montag, 8. Oktober 2012 16:38:11 UTC+2 schrieb Thomas Broyer: On Monday, October 8, 2012 4:20:46 PM UTC+2, Christoph Henrici wrote: Probably very trivial, but i have searched the Group and havn't found anything. How are Server generated Values propagated back to the EntityProxies, specially also the Id values of newly created and inserted Objects. Can anybody help? Have a look at http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryMovingParts Also, the domain object is stored as a tag on the proxy AutoBean, and there's a map of domain objects to proxies for the reverse mapping. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/A6l8kOveOIQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to include 3rd party libraries in a reusable gwt library/widget?
GWT Lovers, I'm trying to get my feet wet with GWT to see if migrating will work out. I usually try the more difficult parts first to make sure I can finish the project. The most difficult part of my project(s) is referencing 3rd party JS libs. In this example I'm trying to use PubNub as much of our platform uses it. What I'd like to do is create a reusable object that can be used in other GWT projects in need of PubNub. I've got a simple little test running successfully (ie, I've got the basics of JNSI working), but my question is - where do I put the reference to the 3rd party script in order to create the library/module properly? Right now I just put the reference to the external scripts in the html page in the project, but I'm pretty sure this is incorrect from a reusability perspective, as this lib would be used in other projects, each of which would have their own base html page. I tried putting the reference in the gwt.xml file, but this seems to lose the references (ie my test project no longer works as it did when the scripts were in the html page) Do you have any tips on how to include 3rd party libraries in a reusable gwt library/widget? Thank you all, Charlie -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/yNTgKgOokFIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
changing the style of a menu bar
Hi, I would like to adopt the menubar style from the GWT Showcase example and I copied the CSS code into my css. But it does not have any effect. My hostpage includes the CSS: link type=text/css rel=stylesheet href=bcs.css And the CSS contains the menubar styles (see below). The menu is created by code with some helper methods (see below). The CSS has no effect, even if I change some colors or something like that. Where is the problem? Magnus - bcs.css (part): .gwt-MenuBar { cursor: default; } .gwt-MenuBar .gwt-MenuItem { cursor: default; font-family: Arial Unicode MS, Arial, sans-serif; } .gwt-MenuBar .gwt-MenuItem-selected { background: #E3E8F3; } .gwt-MenuBar-horizontal { background: #e3e8f3 url(images/hborder.png) repeat-x 0px -2003px; border: 1px solid #e0e0e0; } .gwt-MenuBar-horizontal .gwt-MenuItem { padding: 5px 10px; vertical-align: bottom; color: #000; font-weight: bold; } .gwt-MenuBar-horizontal .gwt-MenuItemSeparator { width: 1px; padding: 0px; margin: 0px; border: 0px; border-left: 1px solid #ccc; background: white; } .gwt-MenuBar-horizontal .gwt-MenuItemSeparator .menuSeparatorInner { width: 1px; height: 1px; background: white; } .gwt-MenuBar-vertical { margin-top: 0px; margin-left: 0px; background: white; } .gwt-MenuBar-vertical table { border-collapse: collapse; } .gwt-MenuBar-vertical .gwt-MenuItem { padding: 2px 40px 2px 1px; } .gwt-MenuBar-vertical .gwt-MenuItemSeparator { padding: 2px 0px; } .gwt-MenuBar-vertical .gwt-MenuItemSeparator .menuSeparatorInner { height: 1px; padding: 0px; border: 0px; border-top: 1px solid #ccc; overflow: hidden; } .gwt-MenuBar-vertical .subMenuIcon { padding-right: 4px; } .gwt-MenuBar-vertical .subMenuIcon-selected { background: #E3E8F3; } .gwt-MenuBarPopup { margin: 0px 0px 0px 3px; } .gwt-MenuBarPopup .menuPopupTopCenter { background: url(images/hborder.png) 0px -12px repeat-x; } .gwt-MenuBarPopup .menuPopupBottomCenter { background: url(images/hborder.png) 0px -13px repeat-x; -background: url(images/hborder_ie6.png) 0px -13px repeat-x; } .gwt-MenuBarPopup .menuPopupMiddleLeft { background: url(images/vborder.png) -12px 0px repeat-y; -background: url(images/vborder_ie6.png) -12px 0px repeat-y; } .gwt-MenuBarPopup .menuPopupMiddleRight { background: url(images/vborder.png) -13px 0px repeat-y; -background: url(images/vborder_ie6.png) -13px 0px repeat-y; } .gwt-MenuBarPopup .menuPopupTopLeftInner { width: 5px; height: 5px; zoom: 1; } .gwt-MenuBarPopup .menuPopupTopRightInner { width: 8px; height: 5px; zoom: 1; } .gwt-MenuBarPopup .menuPopupBottomLeftInner { width: 5px; height: 8px; zoom: 1; } .gwt-MenuBarPopup .menuPopupBottomRightInner { width: 8px; height: 8px; zoom: 1; } .gwt-MenuBarPopup .menuPopupTopLeft { background: url(images/corner.png) no-repeat 0px -36px; -background: url(images/corner_ie6.png) no-repeat 0px -36px; } .gwt-MenuBarPopup .menuPopupTopRight { background: url(images/corner.png) no-repeat -5px -36px; -background: url(images/corner_ie6.png) no-repeat -5px -36px; } .gwt-MenuBarPopup .menuPopupBottomLeft { background: url(images/corner.png) no-repeat 0px -41px; -background: url(images/corner_ie6.png) no-repeat 0px -41px; } .gwt-MenuBarPopup .menuPopupBottomRight { background: url(images/corner.png) no-repeat -5px -41px; -background: url(images/corner_ie6.png) no-repeat -5px -41px; } htmlbody .gwt-MenuBarPopup { } * html .gwt-MenuBarPopup .menuPopupTopLeftInner { width: 5px; height: 5px; overflow: hidden; } * html .gwt-MenuBarPopup .menuPopupTopRightInner { width: 8px; height: 5px; overflow: hidden; } * html .gwt-MenuBarPopup .menuPopupBottomLeftInner { width: 5px; height: 8px; overflow: hidden; } * html .gwt-MenuBarPopup .menuPopupBottomRightInner { width: 8px; height: 8px; overflow: hidden; } -- private boolean createMenu () { mnb.clearItems(); mnb_cur = mnb; //Constants con = itn.con; Vocabulary voc = itn.lgo.voc; Phrasing phr = itn.lgo.phr; MenuBar m; addMenu (voc.account); addItem (voc.login ,Command.ACC_LOGIN ,Role.FOREIGNER); addItem (voc.logout ,Command.ACC_LOGOUT ,Role.USER); addSep (); addItem (voc.identity,Command.ACC_IDENTITY ,Role.ADMIN); //Role.USER); addItem (voc.profile ,Command.ACC_PROFILE ,Role.USER); addItem (voc.registration,Command.ACC_REGISTER ,Role.FOREIGNER); addSep (); addItem (voc.changePassword ,Command.ACC_PASSWORD,Role.USER); endMenu (); addMenu (voc.games); addItem (voc.portal ,Command.GAME_PORTAL ,Role.USER); addSep (); addItem (phr.createInvitation,Command.GAME_INVITE ,Role.USER); addSep (); addItem (phr.createGame ,Command.GAME_CREATE ,Role.ADMIN); addItem (phr.listGames
How to include 3rd party Javascript libraries in a reusable gwt library/widget?
GWT Lovers, I'm trying to get my feet wet with GWT to see if migrating will work out. I usually try the more difficult parts first to make sure I can finish the project. The most difficult part of my project(s) is referencing 3rd party JS libs. In this example I'm trying to use PubNub as much of our platform uses it. What I'd like to do is create a reusable object that can be used in other GWT projects in need of PubNub. I've got a simple little test running successfully (ie, I've got the basics of JNSI working), but my question is - where do I put the reference to the 3rd party script in order to create the library/module properly? Right now I just put the reference to the external scripts in the html page in the project, but I'm pretty sure this is incorrect from a reusability perspective, as this lib would be used in other projects, each of which would have their own base html page. I tried putting the reference in the gwt.xml file, but this seems to lose the references (ie my test project no longer works as it did when the scripts were in the html page) Do you have any tips on how to include 3rd party libraries in a reusable gwt library/widget? Thank you all, Charlie -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/KpxczqJ57J0J. 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-Textarea Problem
Hello, I am currently working on a module in which I want that logs should be fetched from the server and should get displayed on client in a Textarea(GUI) continuously.How can I append the new data at the end of already present information in textarea and is there any function for getting the info continuously from the server because the function is returning a single String? Plz do reply as soon as possible.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: How to include 3rd party Javascript libraries in a reusable gwt library/widget?
Boy it's hard to find documentation in GWT out of the basics, but I found this which helps QUITE A BIT! This needs to be easier to find: https://developers.google.com/web-toolkit/doc/1.6/DevGuideOrganizingProjects#DevGuideModuleXml On Tuesday, October 9, 2012 11:13:08 AM UTC-4, Charlie Youakim wrote: GWT Lovers, I'm trying to get my feet wet with GWT to see if migrating will work out. I usually try the more difficult parts first to make sure I can finish the project. The most difficult part of my project(s) is referencing 3rd party JS libs. In this example I'm trying to use PubNub as much of our platform uses it. What I'd like to do is create a reusable object that can be used in other GWT projects in need of PubNub. I've got a simple little test running successfully (ie, I've got the basics of JNSI working), but my question is - where do I put the reference to the 3rd party script in order to create the library/module properly? Right now I just put the reference to the external scripts in the html page in the project, but I'm pretty sure this is incorrect from a reusability perspective, as this lib would be used in other projects, each of which would have their own base html page. I tried putting the reference in the gwt.xml file, but this seems to lose the references (ie my test project no longer works as it did when the scripts were in the html page) Do you have any tips on how to include 3rd party libraries in a reusable gwt library/widget? Thank you all, Charlie -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/v4-1ujl0oH0J. 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.
Use Elemental to optionally generate HTML on the server?
I have a large GWT app which unfortunately is slow in some old browsers I need to support (IE7). A major part of the slowness is my architecture - I am using GWT-RPC to download model objects from the server and then building a large HTML table in the browser using GWT Widgets. The table is not fancy - just text, links, and images - but it can get pretty big. I'm considering fixing this by building some of my HTML on the server and then downloading it over GWT-RPC as a string, and injecting it in to the DOM using setInnerHtml(). I will still have to do some manipulation later in the browser though (my UI refreshes periodically in the background). What I would really like would be to write my code in such a way that I could decide at runtime if it was best to build the table on the server or in the browser. Elemental looks like a promising way to do this - it would not be hard to generate a server-side implementation of the Elemental HTML interfaces that built up an HTML string, and then send that string over the wire to be injected in the browser. My application logic would only interact with the Elemental interfaces, so I could decide at runtime which implementation to use. Does this sound reasonable or am I barking up the wrong tree here? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/pvkfPkKiSY0J. 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: Upgraded to GWT 2, tests now time out
Hi did you find and answer? I'm facing the same issue. I'm with version 2.4 and using ant (client requirements). The problem might be at build.xml? I don't know how to exclude org.apache.ant. Does anybody have a solution? Thx! Francesc El dimecres 6 de gener de 2010 16:00:40 UTC, Jon Vaughan va escriure: Hi, I recently upgraded to GWT 2 from 1.5.x. My tests, for some reason, are now failing when I run them from Ant: run-gwt-tests: [junit] WARNING: multiple versions of ant detected in path for junit [junit] jar:file:/C:/Program%20Files/eclipse/plugins/ org.apache.ant_1.7.1.v20090120-1145/lib/ant.jar!/org/apache/tools/ant/ Project.class [junit] and jar:file:/C:/_code/bionicbooks/lib/build-Windows/ gwt-dev-2.0.0.jar!/org/apache/tools/ant/Project.class [junit] Running com.monksvaughan.accounts.test.ui.JUnitDropDownControls [junit] - 1 client(s) haven't responded back to JUnitShell since the start of the test. [junit] Actual time elapsed: 60.035 seconds. [junit] ) BUILD FAILED When I run the same test using the GWT eclipse plugin, it works without a problem. My Junit task is very simple: target name=run-gwt-tests mkdir dir=${build}/testresults / junit printsummary=yes haltonfailure=yes fork=true classpath refid=test.class.path / formatter type=xml/ batchtest todir=${build}/testresults fileset dir=${test} include name=**/ui/JUnit*.java/ /fileset /batchtest jvmarg value=-Xmx512m / /junit /target So presumably this is a classpath problem. The testing doc (http:// code.google.com/webtoolkit/doc/latest/DevGuideTesting.html) says it should include: Your project's src directory Your project's bin directory The gwt-user.jar library The gwt-dev.jar library The junit.jar library Which my test.class.path includes (I have double checked with -v) Anybody have any ideas or seen something similar? It's not the 2 Ant versions is it? I am currently using Junit 3.8.1 rather than JUnit 4, but presumably that isn't the issue either. Thoughts gratefully received. Jon -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/sAkby4gN8bUJ. 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: Are you happy with GWT?
On Tuesday, October 9, 2012 4:38:47 PM UTC+2, David wrote: When servlet engines first came on the scene , developers were writing stringified content directly to the HttpResponse. Absolutely, from that point of view (and I remember cgi scripts), template engines are a big enhancement to what existed before! But imagine telling developers from a different field, who have never looked into web development before, that there's - one approach that is based on sending the complete same htmlhead.../headbodydiv.../div/body over and over again, after using a template to replace just a small part of it. - and there's a second approach that just gets the necessary data from the server, and then updates the view (making use of the specific client's features) Which one would they choose? I believe it might be a hard time arguing in favor of the first approach. Eliminating them completely has always been a tough sell. The only significant technical argument against full-ajax is probably the SEO argument. Then again, it's not hard to make it work with Google Searchhttps://developers.google.com/webmasters/ajax-crawling/docs/getting-started. And other search engines, while maybe not treating it perfectly yet, will eventually have to improve their strategy, too. (Note: In Germany, this is not much of an issue, as Google Search has a market share of 95%http://www.chip.de/news/Suchmaschinen-Statistik-Google-als-Alleinherrscher_54987735.html here) Eliminating them completely has always been a tough sell. Luckily GWT does not require this . I agree. The decision is separate from GWT/other JS framework. And GWT doesn't restrict what you can do in web development. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/MAdGydemJkcJ. 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: Use Elemental to optionally generate HTML on the server?
I'd give CellTable/DataGrid a try, if your model is suitable for it and your cells aren't so 'fancy'. You can use async requests, paging and lightweight widgets (cell widgets); should be more than enough to speed up fetching/rendering time. There is also the ElementBuilder API that makes easy to create DOM elements from chaining calls in a builder fashion. Checkout some examples in http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/javadoc/com/google/gwt/examples/dom/builder/ . One interesting point is that you can use such builders also on server-side (the server-side actual implementation uses string manipulation instead of DOM operations) and send back the generated string to the client (never tried though) http://gwt-code-reviews.appspot.com/1455802/ Also AFAICT Elemental does not work well (or at all) with IE prior to 9. On Tuesday, October 9, 2012 4:08:56 PM UTC+2, Roy wrote: I have a large GWT app which unfortunately is slow in some old browsers I need to support (IE7). A major part of the slowness is my architecture - I am using GWT-RPC to download model objects from the server and then building a large HTML table in the browser using GWT Widgets. The table is not fancy - just text, links, and images - but it can get pretty big. I'm considering fixing this by building some of my HTML on the server and then downloading it over GWT-RPC as a string, and injecting it in to the DOM using setInnerHtml(). I will still have to do some manipulation later in the browser though (my UI refreshes periodically in the background). What I would really like would be to write my code in such a way that I could decide at runtime if it was best to build the table on the server or in the browser. Elemental looks like a promising way to do this - it would not be hard to generate a server-side implementation of the Elemental HTML interfaces that built up an HTML string, and then send that string over the wire to be injected in the browser. My application logic would only interact with the Elemental interfaces, so I could decide at runtime which implementation to use. Does this sound reasonable or am I barking up the wrong tree here? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0wEbiM1POFQJ. 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: Mapping EntityProxies to Domain Interfaces
On Tue, Oct 9, 2012 at 4:38 PM, Christoph Henrici chhenr...@gmail.comwrote: Great! Sorry i don't know that much about patches which one should i download ... and can i run them against jars? i have'nt the source code dist of gwt, i working with eclipse. If it's not to much work, you could give me a couple instructions and i ll test ? ;-)) - Download the original ReflectiveServiceLayer.java [1] from the gwt repository - Save it in your project in the folder: [your_src_folder]/com/google/web/bindery/requestfactory/server/ - Download the patch I sent for this file [2] from the review site - patch your file, if you are running unix $ cd [your_src_folder] $ patch -p2 [path_to_the_downloaded_diff_file] - if you don't have the patch command, you can use eclipse or make the modifications in [3] by hand - compile and run your project, it should use the patched class (because it is firt in your classpath) instead of the original one [1] http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/google/web/bindery/requestfactory/server/ReflectiveServiceLayer.java [2] http://gwt-code-reviews.appspot.com/download/issue1764804_15003_7004.diff [3] http://gwt-code-reviews.appspot.com/1764804/diff2/9009:15003/user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java -- You received this message because you are subscribed to the Google Groups Google 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 include 3rd party Javascript libraries in a reusable gwt library/widget?
That's quite an old version. When you see a link like that, you should replace 1.6 with latest to jump to the current version, like this: https://developers.google.com/web-toolkit/doc/latest/DevGuideOrganizingProjects#DevGuideModuleXml For an external javascript file, you can add the file to the public directory of a GWT module and write code to insert the script tag into the DOM. In GWT, we have ScriptInjector [1] to do this, but that's just a wrapper - you could do it yourself. You will need to construct the URL of the javascript file to load. The GWT.getModuleBaseForStaticFiles() method [2] is useful for this. - Brian [1] http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/core/client/ScriptInjector.html [2] http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/core/client/GWT.html#getModuleBaseForStaticFiles() On Tuesday, October 9, 2012 8:53:13 AM UTC-7, Charlie Youakim wrote: Boy it's hard to find documentation in GWT out of the basics, but I found this which helps QUITE A BIT! This needs to be easier to find: https://developers.google.com/web-toolkit/doc/1.6/DevGuideOrganizingProjects#DevGuideModuleXml On Tuesday, October 9, 2012 11:13:08 AM UTC-4, Charlie Youakim wrote: GWT Lovers, I'm trying to get my feet wet with GWT to see if migrating will work out. I usually try the more difficult parts first to make sure I can finish the project. The most difficult part of my project(s) is referencing 3rd party JS libs. In this example I'm trying to use PubNub as much of our platform uses it. What I'd like to do is create a reusable object that can be used in other GWT projects in need of PubNub. I've got a simple little test running successfully (ie, I've got the basics of JNSI working), but my question is - where do I put the reference to the 3rd party script in order to create the library/module properly? Right now I just put the reference to the external scripts in the html page in the project, but I'm pretty sure this is incorrect from a reusability perspective, as this lib would be used in other projects, each of which would have their own base html page. I tried putting the reference in the gwt.xml file, but this seems to lose the references (ie my test project no longer works as it did when the scripts were in the html page) Do you have any tips on how to include 3rd party libraries in a reusable gwt library/widget? Thank you all, Charlie -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/UDfZLURrIlIJ. 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 Deployment Error
I am developing a GWT app and running into a strange deployment error. The app runs hosted inside the jetty server in eclipse. The app runs in debug in the jetty server in eclipse. The app runs in Tomcat, when being externally debugged by Eclipse. However, the app will not run at all in Tomcat without a debugger attached. It sits at the default page and throws a javascript error: java.lang.UnsupportedOperationException: get not implemented in JS I see no errors in the Tomcat logs, even with the log level turned up. I have replicated the issue across several environments, so it is definitely some failure of my code, Tomcat, GWT, or just the interaction of the three. The archives seem to have a lot of works in jetty but not in Tomcat, and I have tried most of the solutions with no success. Has anyone run into an issue like this? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/h3nXX0WHSVgJ. 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-Textarea Problem
textArea.setText(textArea.getText() + newText); should let you append the data. To get data continuously you'll either need to poll the server, which will be expensive if you have many clients, or use something like long-polling to push data from the server to each client as it's generated. That'll be more work, but it's probably the right way to do it. Maybe poll for now, and then add comet when you have time. http://code.google.com/p/gwt-comet/ for one implementation of the client side. On Tuesday, October 9, 2012 5:20:42 PM UTC+2, tnagarnaik wrote: Hello, I am currently working on a module in which I want that logs should be fetched from the server and should get displayed on client in a Textarea(GUI) continuously.How can I append the new data at the end of already present information in textarea and is there any function for getting the info continuously from the server because the function is returning a single String? Plz do reply as soon as possible.Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/JgObz6iD3AYJ. 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 Visual Paradigm ORM Probleme
-- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/QsB7aDlQ4GoJ. 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.
Firefox 16 GWT Plugin
With Firefox 16 now out, the GWT plugin is incompatible again. But it looks like Google is already working on it: http://gwt-code-reviews.appspot.com/1851804/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2scJFLQkDEUJ. 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: Are you happy with GWT?
Wow, I am impressed how much attention such a simple and non-technical question got. But then again, I am about to give my own opinion so why am I surprised :) Of course I am not happy with gwt itself, that would mean I am content with it the way it is, whereas there are so many improvements I can imagine ;) ( by the way, if you haven't already done so, please take time to participate in the gwt survey http://bit.ly/GWT2012) Having said that, I really do believe that choosing gwt was smart, because it has the potential to redefine what we believe a web application to be. I am pretty sure soon no one will be able to distinguish between web, mobile ,application and website. And Google will once again, just like for the web in the good ol' times, have a helping hand in this;) Realistically speaking, developing a gwt app RIGHT NOW is just about as messy as tinkering with js/HTML/CSS directly, where you trade having to deal with browser-specific bs for having to deal with gwt-specific quirks. This is of course my own opinion ,but it might be noteworthy, that I came as a Java Application developer to gwt and most of CSS /js issues still feel like black magic to me. But those are rather issues with my lack of knowledge ( scattered ,incomplete, outdated,contradictory or simply wrong documentation seems to be norm in web dev) than with gwt itself. Thanks for asking this question, if it isn't already it should be part of gwt survey ;) Oliver -- You received this message because you are subscribed to the Google Groups Google 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: Immediate validation of editor field
Thomas, Thank you, as always, for your thoughtful reply. I wonder how you get any real work done with your dedication to this forum. I suspect you get a bit less sleep than me. The flush technique works fine. I even managed to craft a little editor visitor that passes a flush command to editors that want it (those that implement HasFlushCommand) so that they can request a driver flush (on a value change) without knowing anything about the driver. With that, I can have generic UiBinder-compatible validating editors that are capable of displaying immediate errors, like: e:ValueBoxEditorDecorator ui:field=priorityEditor e:valuebox v:ValidatingIntegerBox ui:field=priorityValidator / !-- so that the app can set properties (min, max, immediate or whatever) -- /e:valuebox /e:ValueBoxEditorDecorator I don't think it strays too much from the spirit of the editor framework. Thanks again. On Monday, October 8, 2012 9:33:33 AM UTC-5, Thomas Broyer wrote: On Monday, October 8, 2012 3:56:57 PM UTC+2, RickL wrote: There is a workaround, but it is not very elegant. You can do a driver.flush() in a change handler for the field you want to validate on-the-fly which, of course, re-validates (i.e. calls getValue()) on all fields. That seems to me a bit like swatting a fly with a sledgehammer. It would seem better to have, perhaps, another recordError method signature like: void recordError(String message, Object value, Object userData, boolean immediate); When immediate is true, the driver would immediately post the error to the nearest super-Editor that implements the HasEditorErrors interface, rather than waiting for a driver flush(). Thoughts? Don't try to abuse the Editor framework for use-cases it's not meant to fulfill. What you actually want is some widget that validate the field as soon as possible and displays the error if any, *and* integrate with the Editor framework so that any detected error will also be reported to the EditorDelegate. Either that or flush() at each change. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/LiYLAskwY7MJ. 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.
Saving results from GWT-RPC call on client
I was wondering if there's anyway to save the returned results from an RPC call to an HTML5 enabled browser. Basically the only way I have found would be to convert the results into strings and use LocalStorage to save them to the browser. I guess my question then would be how can IsSerializable java objects be converted to a string and back. Any help would be appreciated. Jean -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/qCqjkoRTY-gJ. 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.