Re: What do you need to know? For C++ programmer
Smartgwt12p with get 2.8.2 Dňa pi 8. 3. 2019, 10:46 Puppy2Pet napísal(a): > Just wonder is there still anybody use GWT for web apps thesedays? > > > > Puppy2Pet > https://puppy2pet.com > > > > On Sunday, October 28, 2007 at 8:39:51 PM UTC-7, squishydonut wrote: >> >> I have a background in C++ programming, but only very basic knowledge >> of Java programming. Could someone list a # of things that one should >> know to start utilizing GWT for web apps? >> >> Java? JSP? JSF? >> >> -- > You received this message because you are subscribed to the Google Groups > "GWT Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-web-toolkit+unsubscr...@googlegroups.com. > To post to this group, send email to google-web-toolkit@googlegroups.com. > Visit this group at https://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAPKohkDSWHknz%3Dy1P%2B%2Bnz1Dsos%2BLxP1BvMNO%3D9mTG5D7pucm1Q%40mail.gmail.com.
Re: @FunctionalInterface VS @JsFunction
Yeah sure, there are many workarounds...which leads to bloat as shown. Then my request would be to by default have Runnable and Callable in gwt java emulation to be attributed by default with interop.JsFunction :-) Regards Jan On Monday, January 15, 2018 at 4:11:45 PM UTC+1, Thomas Broyer wrote: > > > > On Monday, January 15, 2018 at 4:03:11 PM UTC+1, Jan Blok wrote: >> >> Hi, >> >> Would it be possible for GWTc to handle java.lang.FunctionalInterface as >> if it was jsinterop.annotations.JsFunction ? >> > > No, if only because JsFunction has many constraints: > http://www.gwtproject.org/javadoc/latest/jsinterop/annotations/JsFunction.html > > >> The reason for asking is, I have this java code: >> >> public void transaction(Runnable runnable) { >> startTransaction(); >> try { >> runnable.run(); >> } >> finally { >> endTransaction(); >> } >> } >> >> when I expose this method via jsinterop I get a warning "not usable from >> javascript" >> >> I intent to use it from JS/TS as: myJavaLib.transaction(() => >> doSomethingInTransaction(...)); >> >> but this is not possible unless I supersource java.lang.Runnable and >> add @JsFunction >> > > You'd need to create an overload taking a JsFunction as input, and > exposing that one. > > @JsFunction @FunctionalInterface > interface TransactionCallback { > void run(); > } > > > @JsMethod > public void transaction(TransactionCallback callback) { > startTransaction(); > try { > callback.run(); > } finally { > endTransaction(); > } > } > > // Note: not a @JsMethod > public void transaction(Runnable runnable) { > transaction((TransactionCallback) runnable::run); > } > > > >> It seems to me that @FunctionalInterface and @JsFunction are very similar >> already... >> > > And this is why the javadoc for JsFunction recommends also annotating the > interface with FunctionalInterface. > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
@FunctionalInterface VS @JsFunction
Hi, Would it be possible for GWTc to handle java.lang.FunctionalInterface as if it was jsinterop.annotations.JsFunction ? The reason for asking is, I have this java code: public void transaction(Runnable runnable) { startTransaction(); try { runnable.run(); } finally { endTransaction(); } } when I expose this method via jsinterop I get a warning "not usable from javascript" I intent to use it from JS/TS as: myJavaLib.transaction(() => doSomethingInTransaction(...)); but this is not possible unless I supersource java.lang.Runnable and add @JsFunction It seems to me that @FunctionalInterface and @JsFunction are very similar already... Regards Jan -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Set css from GWT (dynamically) to element with multiple styles associated.
I have an instance of TabLayoutPanel where number of tabs would be set dynamically. Therefore to align tabs to fill whole width of the screen I need to 1) Override gwt-TabTayoutPanel default value width 16384px with auto !important (done); 2) Set width of gwt-TabTayoutPanel*Tab* to proper percentage value (e.g. 2 tabs = 50%. 3 tabs = 33%, 4 tabs = 25% and so on). I have a simple function for that which goes like this (simplified): Math.floor(getWidgetCount()/100 + %); (done) 3) Now here goes my question: how can i set the width of gwt-TabTayoutPanel *Tab* from Java? I bolded *Tabs* because when i use this.getStyleName(); i got in return gwt-TabLayoutPanel not gwt-TabLayoutPanel*Tab* . In sum, I can divide my question in two: -how to access TabLayoutPanel*Tab* css class from GWT?; -how to set said class width with my dynamically generated percentage number?; My additional thought: Is GSS can do this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Running MobileWebApp from GWT_2.7.0/samples
I tried running in SuperDevMode a MobileWebApp placed in Samples folder of GWT 2.7.0 package. I import it via Eclipse Maven plug-in, POM file is executed properly. Then I set Annotation Processing to Enable... and Automaticly. Finally, according to README-MAVEn.txt i execute Maven Update project in project Properties. According to Readme file,at this point I should see a Run in Development mode option, but the thing is,i don't. So in project properties i enable use WebTollkit,GAE and set WAR directory to src/main/webapp. This gives me Eclipse error: Description Resource Path Location Type The App Engine SDK '/home/user/.m2/repository/com/google/appengine/appengine-api-1.0-sdk/1.7.1/appengine-api-1.0-sdk-1.7.1.jar' on the project's build path is not valid (SDK location '/home/user/.m2/repository/com/google/appengine/appengine-api-1.0-sdk/1.7.1/appengine-api-1.0-sdk-1.7.1.jar' is not a directory) MobileWebApp Unknown Google App Engine Problem Changing AppEngine to default doesn't fix it. Is there any way to run this app in SuperDevMode within Eclipse? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: GWT compiler doesn't create symbol maps files
Hello, Just wanted to notify everybody that the com.google.gwt.junit.JUnit inheritance is also included when you use the default errai module for example. We had to get rid of it by using our own module definition for errai excluding that entry. cheers -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
[gwt-contrib] Possible compiler bug in 2.7 ignoring a set-property
Hey guys, I've found what I think is a bug in GWT2.7. We're trying to compile the attached file 'MyMegaModule.gwt.xml' The last inherit in this file is BaseBrowsers.gwt.xml - I've attached that too. In the BaseBrowsers.gwt.xml you can see that we only want gecko and safari compilations but when compiling we get an ie10 permutation too. There might be other inherits that are setting the user.agent property to something including the ie10 but because of our BaseBrowsers.gwt.xml being inherited as the last module we should only get gecko and safari, am I right? I've no idea how to fix this. Thx for any ideas! Cheers, Jan -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/ac5c7e23-fd85-46d6-883b-8f8600c496cb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. MyMegaModule.gwt.xml Description: XML document BaseBrowsers.gwt.xml Description: XML document
Is Elemental safe to use cross-browser for event capturing?
Hello, We'd like to use the Elemental library for event capturing. Something as simple as: import static elemental.client.Browser.getDocument; import elemental.events.Event;import elemental.events.EventListener; ... EventListener listener = new EventListener() { @Override public void handleEvent(Event event) {... }}; getDocument().addEventListener(Event.SUBMIT, listener, true); Given Elemental's close to the metal approach and disclaimers about not being entirely cross-browser, is this a good idea? Or should we look at other things to avoid subtle bugs? Many thanks! Jan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
[gwt-contrib] Re: 2.7.0 RC1 SDM not working when using java.util.List - Example attached
Ok thanks so far. Because the List.size() call is executed from GXT I don't have the possibility to change that call. I've rewritten my JsArrayListWrapper and it's not a JSO any more. So I'm good to go. Cheers, Jan Am Montag, 17. November 2014 20:22:29 UTC+1 schrieb John Stalcup: A fix for this is now committed. Which means this code snippet will now be rejected all the time. To accomplish the same thing you need to execute the .size() function dispatch (or really any function dispatch on a List instance since you've used the List interface on a JSO type) inside of a *Java* not inside of a JSNI function. This is relatively straight forward if you make a static Java function that takes a List instance and calls size() on it, and you can call this static Java function inside of your JSNI. On Wed Nov 12 2014 at 4:05:26 PM John Stalcup sta...@google.com javascript: wrote: It's more like, 50% of the time. Here's what's going on: It's currently illegal to call foo.blah() in JSNI if the variable foo is either a JSO type or interface that is implemented by some JSO type. The error you're seeing is JsniReferenceResolver enforcing this requirement, the weird part is that it should enforce it all the time but it's only enforcing it 50% of the time. The reason this is occurring is that depending on the order that JDT processes types we may or may not yet have collected the knowledge to know that the java.util.List interface is used on a JSO before JsniReferenceResolver performns its check. We need to move the correctness check to some later stage, late enough that is JSO checks will always be accurate. In the 50% of compiles that are succeeding for you right now you're actually vulnerable to runtime errors because it's outputting code that attempts to call the size() function on the prototype of the list parameter (and that will fail if the instance that is passed in happens to be a JsArrayListWrapper). On Wed Nov 12 2014 at 1:27:42 PM John Stalcup sta...@google.com javascript: wrote: I'm able to repro this both with -noincremental and -incremental, but only randomly (seems about 30% of the time). Still looking into it. On Wed Nov 12 2014 at 8:24:43 AM Thomas Broyer t.br...@gmail.com javascript: wrote: [+cc stalcup@] This might be because of incremental compilation: when JsArrayListWrapper is in another module, that module is precompiled, so the compiler knows about the type. When it's in the same module, because it's the module being compiled, it can be pruned (unused) and as consequence doesn't interfere with the JSNI checks. The workaround would be to call a static method passing the List as argument, and call the size() method in that static method, in Java-land, outside of JSNI. On Wednesday, November 12, 2014 1:39:55 PM UTC+1, Jan Thewes wrote: Hello guys, we're currently running in problems related to the SDM in GWT 2.7. We've attached two examples. JsListWrapperWorking is an example project where everything is working fine. It is CODE IDENTICAL to JsListWrapperNotWorking. In the latter one we've moved the source for the two classes JsArrayListWrapper and JsArrayWrapper to another module. No source code has been touched. When starting SDM for JsListWrapperWorking everything is working fine. When starting SDM for JsListWrapperNotWorking we get following exception: [ERROR] Errors in 'file:~/JsListWrapperNotWorking/src/ de/gad/list/client/JsListWrapperNotWorking.java' [ERROR] Line 19: Referencing interface method 'java.util.List.size()': implemented by 'de.gad.list.client.myListImpl.JsArrayListWrapper'; references to instance methods in overlay types are illegal; use a stronger type or a Java trampoline method If you need any further information I'll provide them as soon as possible! Cheers, Jan -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/21699301-33e5-4bed-a793-3ca461d681a9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[gwt-contrib] Logging not working anymore in GWT 2.7.0 RC
Hey guys, we've a problem with logging since testing GWT 2.7. We're using java.util.Logger() and with 2.7 any message trying to be logged with WARN or lower doesn't end up in the browser console. What I found out is that my Logger.info(String message) call is thrown away by the GWT compiler? Why does this happen? What do I have to do to get the old behavior? Cheers, Jan -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/52ec051f-318a-4f56-bc33-13dc4321a257%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Migrating to SDM-GWT 2.7.0 : SourceMaps don't load :-(
We're seeing another problem related to SourceMaps. In our case the browser executes a GET request to http://localhost:9997 /sourcemaps/systemTestModule/__HASH___sourcemap.json I don't know why the __HASH__ is not replaced...any ideas? Am Dienstag, 4. November 2014 12:18:56 UTC+1 schrieb Francois ANDRE: Hi all, I'm migrating from 2.5.1/Classical Dev Mode to 2.7.0-RC1/Super Dev Mode. I'm really exited about new features. But (yes, there is a but...) although I easily launch in SDM the basic project generated by Eclipse, It doesn't work with my real project: I launch it from Eclipse : everything seems to be good (the code server is correctly launched, then the main app). I paste the url in chrome: the first compilation automatically starts and seems to end successfully (on the Eclipse console the logs are ok) But the nothing more happens: the module don't really start. I've tried to check everywhere without founding out what's wrong. From Chrome developer tools, the only difference I've found from the execution of the simple project is that : - The http://127.0.0.1:9876/sourcemaps/myproject/x_sourcemap.json isn't called -As a consequence - I guess - on the source tab, I don't see the sourcemaps/myproject folder. However I thought I've activated sourcemaps in the module file : ... add-linker name=xsiframe / set-configuration-property name=devModeRedirectEnabled value=true / set-configuration-property name='xsiframe.failIfScriptTag' value='false' / set-property name=compiler.useSourceMaps value=true / ... If someone has faced this problem and has got the answer, I'd be really grateful. Thanks in advance François -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
[gwt-contrib] Re: GWT 2.7.0 beta1
Hello guys, we're in the process of trying out GWT 2.7 in our massive application. Currently we get an error during compile for one module. It worked with GWT 2.6.1. Any ideas on this one? I'm not sure but the problem might be that we can't create a JSO using new ..Jso(). But the big question is why did this work in GWT 2.6.1? [ERROR] Errors in 'de/gad/wap/pgu/messenger/ccs/genovoice/event/impl/JsoEventFactory.java' [ERROR] Line 38: Rebind result 'de.gad.wap.pgu.messenger.ccs.genovoice.event.call.DialEvent_JsoEvt' cannot be a JSO Cheers, Jan Am Samstag, 18. Oktober 2014 19:54:40 UTC+2 schrieb Daniel Kurka: Hi all, since we are adding major features to GWT, we decided to change our release process for GWT 2.7. I just published GWT 2.7.0-beta1 to maven central and our file storage http://goo.gl/pr7km3. We are doing this beta to get external feedback on incremental compilation and GSS. Incremental compilation is now default with GWT 2.7 and replaces, together with Super dev mode, the regular old dev mode. Inside of Google we are already using it for a while now and most of the issues should have already been dealt with, however we also want to make sure that external users that might have slightly different use cases will have a working 2.7.0 release. So please start testing with beta1 and give us lots of feedback on the contributor list https://groups.google.com/forum/#!forum/Google-Web-Toolkit-Contributors or on the issue tracker https://code.google.com/p/google-web-toolkit/issues/list. Please keep in mind that we did not do any release testing on beta1, so there might be issues that you do not expect from a release candidate. Our current plan is to wait until the end of next week for any feedback. If we do not find any serious external issues we will start the testing process for an actual release candidate. -Daniel -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/971ba071-e3e7-4cfb-978b-ef1fa14853a7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [gwt-contrib] Re: GWT 2.7.0 beta1
Ok thx. This is what I assumed. Will fix this and see how far we can go with 2.7. Am Dienstag, 21. Oktober 2014 12:51:45 UTC+2 schrieb Daniel Kurka: You can not create a JSO using new in Java. If this has worked with GWT 2.6.1 it is just a bug and should not have worked in the first place. -Daniel On Tue, Oct 21, 2014 at 12:46 PM, Jan Thewes jant...@gmail.com javascript: wrote: Hello guys, we're in the process of trying out GWT 2.7 in our massive application. Currently we get an error during compile for one module. It worked with GWT 2.6.1. Any ideas on this one? I'm not sure but the problem might be that we can't create a JSO using new ..Jso(). But the big question is why did this work in GWT 2.6.1? [ERROR] Errors in 'de/gad/wap/pgu/messenger/ccs/genovoice/event/impl/JsoEventFactory.java' [ERROR] Line 38: Rebind result 'de.gad.wap.pgu.messenger.ccs.genovoice.event.call.DialEvent_JsoEvt' cannot be a JSO Cheers, Jan Am Samstag, 18. Oktober 2014 19:54:40 UTC+2 schrieb Daniel Kurka: Hi all, since we are adding major features to GWT, we decided to change our release process for GWT 2.7. I just published GWT 2.7.0-beta1 to maven central and our file storage http://goo.gl/pr7km3. We are doing this beta to get external feedback on incremental compilation and GSS. Incremental compilation is now default with GWT 2.7 and replaces, together with Super dev mode, the regular old dev mode. Inside of Google we are already using it for a while now and most of the issues should have already been dealt with, however we also want to make sure that external users that might have slightly different use cases will have a working 2.7.0 release. So please start testing with beta1 and give us lots of feedback on the contributor list https://groups.google.com/forum/#!forum/Google-Web-Toolkit-Contributors or on the issue tracker https://code.google.com/p/google-web-toolkit/issues/list. Please keep in mind that we did not do any release testing on beta1, so there might be issues that you do not expect from a release candidate. Our current plan is to wait until the end of next week for any feedback. If we do not find any serious external issues we will start the testing process for an actual release candidate. -Daniel -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com javascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/971ba071-e3e7-4cfb-978b-ef1fa14853a7%40googlegroups.com https://groups.google.com/d/msgid/google-web-toolkit-contributors/971ba071-e3e7-4cfb-978b-ef1fa14853a7%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Google Germany GmbH *Dienerstr. 12* *80331 München* Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschäftsführer: Graham Law, Katherine Stephens -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/a45134df-be98-4ab8-9289-7a52c8248ad7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: SeedTable is taking 6% of my applications memory
Ok I'm not sure if my seedTable guess was correct. When looking at my window object I see the seedTable property. But what you can see in my original attached screenshot is not my seedTable. Can anyone help me and tell me what it is? It's a real large bunch of Strings which take 3MB of memory. That needs to be changed. Am Freitag, 22. August 2014 14:20:56 UTC+2 schrieb Jan Thewes: Hey guys, we have a really large web application which has been developed using GWT. When launching our application and creating a Heap Snapshot using Chrome's Developer Tools we can see a large amount of memory is consumed by some properties living right under the window object. After looking into it we found out that the seedTable is taking up 6% of the whole page's heap. Because of some serious memory problems in production we are not sure what these seedTable is really used for. Can someone please explain what the seedTable is for and if there's any possibility to disable it. Any help is appreciated. Cheers, Jan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: How to trigger a click in a Frame
We've used XDM to exchange messages between the two application. Am Sonntag, 24. August 2014 17:37:52 UTC+2 schrieb Fernando Castro: I have a third party application that i want to embedded in my GWT app, however, this application is a swf, with a menu for some intro animation. I want to trigger a click the menu when the swf load to open the part that i need. Does someone have a idea? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
[gwt-contrib] Re: GWT 2.7 requiring Java7 for development - Action needed
Ok so I'm the only one how thinks this might be a problem for us. We're using GWT in a real large company environment (core banking system) and to create a baseline we have to use our companies build server. These are currently running on Java6. I've already reached out to get an information when the Java compile level will be increased. This is just my opinion speaking for a real large company. Am Donnerstag, 11. September 2014 19:50:53 UTC+2 schrieb Daniel Kurka: Hi all, while bringing GSS support into GWT, I discovered that the closure styleheets compiler actually requires Java7. This means that we either have to do a back port of the compiler (I haven't looked at it seriously) or require Java7 for development with GWT (probably only if you are using CssResource). I really like your input on this and if I do not hear any strong objections, I will go ahead with using the Java7 version of closure stylesheets and thus we will require Java7 for GWT development. Note: This does not impact deployment of any GWT apps. You can still run a GWT app on a Java6 container, this will only affect developers on their machines. -Daniel -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/a054c77d-725e-4559-9a35-441c2b416387%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Request factory performance much worse than RPC
Resently I noticed some performance issues with my request factory application. I did some research and some debugging, but could not find any flaws in my application. Then I created a simple test application to compare the performance of GWT and request factory to be sure I have a very simple application and no other components that could have an influence on the performance. And this test application shows same result: Data retrieval via request factory seems to much slower than RPC. The retrieval of 100 very simple objects takes with RPC ~200ms, with request factory ~700ms (Locally the difference is even much bigger). I uploaded the code to github: https://github.com/jan10101/requstFactoryVSRPC And deployed the application to app engine so it can be testet: http://requestfactorytest.appspot.com/ I also experimented with several approaches to increase the performance like overriding ServiceLayerDecorator.isLive() but could not archieve ansignificant improvement. Is the performance of request factory a known issue? Am I the first one noticing this? Is there a way to improve the performance? Or du I just need to use RPC to get the best performance? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: XSRF protection using GWT example guide broken for Glassfish/ Jetty using JSESSIONID
GWT team appears to be vry reponsive... :\ I have the same problem and still can't find any solution... Does anyone know how to fix it? maybe I should be setting all cookies with / path and remove invalid cookies bu trying to overwrite it using the same name, also / path but setting date expires to current timestamp? So the path is what I'm considering changing. What you guys think? Thanks in advance for any kind of help. Jan W dniu piątek, 1 czerwca 2012 02:47:28 UTC-4 użytkownik Josh napisał: Hi, I recently re-engineered some custom XSRF/CSRF protection code in my open source GWT-based application to use the new recommended protection introduced in GWT 2.3 as described in https://developers.google.com/web-toolkit/doc/latest/DevGuideSecurityRpcXsrf. Since I develop and deploy mainly in Tomcat all seemed well. However some users of the project deploy to Glassfish and Jetty Java Servlet Containers, both of which immediately started having problems with all RPC calls getting blocked throwing a java.lang.IllegalArgumentException: Duplicate cookie! Cookie override attack? exception. Looking into why, I've determined the problem being JSESSIONID, the session cookie and what GWT recommends to base XSRF token from, is in both application and root path for the host for different reasons, causing the exception to be thrown when the application sees both cookies in scope: (tracked on http://code.google.com/p/webpasswordsafe/issues/detail?id=58) *What steps will reproduce the problem?* 1. Glassfish- visit admin console (http://host:4848/ creates JSESSIONID cookie for / , visit WPS (http://host:8080/WPS creates JSESSIONID cookie for /WPS 2. Although on different ports, cookie spec doesn't care and both instances of JSESSIONID cookie are in scope to WPS, the GWT Google code sees both when it calls getCookie() and throws an exception java.lang.IllegalArgumentException: Duplicate cookie! Cookie override attack? and doesn't allow any requests to work. 1. Jetty- visit one of their sample servlets (i.e. http://host:8080/dump/info creates JSESSIONID cookie for / , visit WPS (http://host:8080/WPS creates JSESSIONID cookie for /WPS 2. Although different contexts, Jetty servlet sets its at root path so both are in scope to WPS, blah blah blah same exception and reason as the Glassfish example above. There is no way to configure the GWT code to ignore the duplicate cookie check without modifying their code. It would be ideal if it just checked for and cared about the cookies defined in the /WPS application context and ignored the others or allowed a way to configure it to call com.google.gwt.user.server.Util.getCookie() passing true (allow duplicates) as the last parameter rather than hardcoding false. Admittedly this may not be possible in the former case, and not completely secure in the later case. But basing this all on the JSESSIONID in real world usage isn't working either. The workaround when I had this same issue when I was rolling out my own XSRF protection code previously to GWT 2.3 was to use a different unique cookie name that basically just duplicated the last JSESSIONID value and set that extra cookie when that session was first created. You'd think if this new way was Google's official documented and mandated way to protect against XSRF, even using JSESSIONID in their example, it would just work out of the box. But clearly not, unless their code was never tested with Jetty or Glassfish. Very surprising. Is there a preferred way to handle this from the GWT team that isn't documented, or is my kludge workaround the only way? Preferably a solution that works for all servlet containers, I know there are Tomcat-specific, Jetty-specific, etc settings to tweak default JSESSIONID behavior but those are not standard and even worse kludges. Thanks for your attention to this and any advice as far as best practices, ~Josh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: XSRF protection using GWT example guide broken for Glassfish/ Jetty using JSESSIONID
GWT team appears to be vry reponsive... :\ I have the same problem and still can't find any solution... Does anyone know how to fix it? maybe I should be setting all cookies with / path and remove invalid cookies by trying to overwrite them using the same name, also / path and setting date expires to current timestamp? So the path is what I'm considering changing. What do you guys think? Thanks in advance for any kind of help. Jan W dniu piątek, 1 czerwca 2012 02:47:28 UTC-4 użytkownik Josh napisał: Hi, I recently re-engineered some custom XSRF/CSRF protection code in my open source GWT-based application to use the new recommended protection introduced in GWT 2.3 as described in https://developers.google.com/web-toolkit/doc/latest/DevGuideSecurityRpcXsrf. Since I develop and deploy mainly in Tomcat all seemed well. However some users of the project deploy to Glassfish and Jetty Java Servlet Containers, both of which immediately started having problems with all RPC calls getting blocked throwing a java.lang.IllegalArgumentException: Duplicate cookie! Cookie override attack? exception. Looking into why, I've determined the problem being JSESSIONID, the session cookie and what GWT recommends to base XSRF token from, is in both application and root path for the host for different reasons, causing the exception to be thrown when the application sees both cookies in scope: (tracked on http://code.google.com/p/webpasswordsafe/issues/detail?id=58) *What steps will reproduce the problem?* 1. Glassfish- visit admin console (http://host:4848/ creates JSESSIONID cookie for / , visit WPS (http://host:8080/WPS creates JSESSIONID cookie for /WPS 2. Although on different ports, cookie spec doesn't care and both instances of JSESSIONID cookie are in scope to WPS, the GWT Google code sees both when it calls getCookie() and throws an exception java.lang.IllegalArgumentException: Duplicate cookie! Cookie override attack? and doesn't allow any requests to work. 1. Jetty- visit one of their sample servlets (i.e. http://host:8080/dump/info creates JSESSIONID cookie for / , visit WPS (http://host:8080/WPS creates JSESSIONID cookie for /WPS 2. Although different contexts, Jetty servlet sets its at root path so both are in scope to WPS, blah blah blah same exception and reason as the Glassfish example above. There is no way to configure the GWT code to ignore the duplicate cookie check without modifying their code. It would be ideal if it just checked for and cared about the cookies defined in the /WPS application context and ignored the others or allowed a way to configure it to call com.google.gwt.user.server.Util.getCookie() passing true (allow duplicates) as the last parameter rather than hardcoding false. Admittedly this may not be possible in the former case, and not completely secure in the later case. But basing this all on the JSESSIONID in real world usage isn't working either. The workaround when I had this same issue when I was rolling out my own XSRF protection code previously to GWT 2.3 was to use a different unique cookie name that basically just duplicated the last JSESSIONID value and set that extra cookie when that session was first created. You'd think if this new way was Google's official documented and mandated way to protect against XSRF, even using JSESSIONID in their example, it would just work out of the box. But clearly not, unless their code was never tested with Jetty or Glassfish. Very surprising. Is there a preferred way to handle this from the GWT team that isn't documented, or is my kludge workaround the only way? Preferably a solution that works for all servlet containers, I know there are Tomcat-specific, Jetty-specific, etc settings to tweak default JSESSIONID behavior but those are not standard and even worse kludges. Thanks for your attention to this and any advice as far as best practices, ~Josh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Compile Error after switching to 2.6 in first compile run
I understand your points BUT one thing. If I compile my modules alone I don't get any compile error. So compiling every single module works. It has to do something with the order and caches. I just can't nail it down. We're running a real real big GWT application here. I'm close to go back to 2.5.1 because the compiles fail too often but not always... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Compile Error after switching to 2.6 in first compile run
Well, the order has to do something with the failing compile. But this is new with GWT 2.6. Before our compilation always worked. And we don't have changed our code since the change to 2.6. Still need ideas what this can be. In my opinion this is a GWT internal bug. Am Dienstag, 11. Februar 2014 18:20:38 UTC+1 schrieb BGL: I would say that the order of compilation is not the one you expect. The error Line 23: No source code is available for type de.gad.gfw.web.navigator.menu.model.MenuElement; did you forget to inherit a required module? Errors in 'file:/Users/xgadjth/sandboxes/b21_gwt-03.03.00/render/source/de/gad/gfw/web/gui/render/dialog/print/PrintMenu.java' Line 8: The hierarchy of the type PrintMenu is inconsistent says that you do not have the class file in your compilation classpath. Then, for any reason, the jar or the class file (with its source) is found in the classpath and the compilation is working.Difficult to say without the build process. Compare the order when you compile module per module and full automated. There must be a difference. Or do you deploy resources when you compile one by one ? This would publish some jar somewhere that are theun used by the first project... 2014-02-11 17:09 GMT+01:00 Jan Thewes jant...@gmail.com javascript:: Ok any further information. We're trying to compile 5 modules at a time. That fails When compiling all the 5 modules alone. It works! We also have a merge-module. These combines 4 of our 5 modules. This merge module compiles without any error, too! So this is a real strange behavior... Am Dienstag, 11. Februar 2014 09:25:05 UTC+1 schrieb Jan Thewes: Hey guys, we have a very strange problem here. We've a real large application written in GWT using GXT. We wanted to switch to 2.6 because we need IE10 support. For that reason we patched the GXT 2.3.1 source so that it works with GWT 2.6. We now have the problem that the first compile fails. After the compile failed I start the compile again and it ends successful. I don't really know what the problem is. I added the compile log. There you can see that the compile fails with an error related to AutoHidePreventMenu (line 966) I added a detail log where you can see the error in more detail (compiled with output Debug). Any help is appreciated. If I can provide any further information feel free to ask! Cheers, Jan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. To post to this group, send email to google-we...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Compile Error after switching to 2.6 in first compile run
Ok any further information. We're trying to compile 5 modules at a time. That fails When compiling all the 5 modules alone. It works! We also have a merge-module. These combines 4 of our 5 modules. This merge module compiles without any error, too! So this is a real strange behavior... Am Dienstag, 11. Februar 2014 09:25:05 UTC+1 schrieb Jan Thewes: Hey guys, we have a very strange problem here. We've a real large application written in GWT using GXT. We wanted to switch to 2.6 because we need IE10 support. For that reason we patched the GXT 2.3.1 source so that it works with GWT 2.6. We now have the problem that the first compile fails. After the compile failed I start the compile again and it ends successful. I don't really know what the problem is. I added the compile log. There you can see that the compile fails with an error related to AutoHidePreventMenu (line 966) I added a detail log where you can see the error in more detail (compiled with output Debug). Any help is appreciated. If I can provide any further information feel free to ask! Cheers, Jan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Re-firing a failed/rejected server call in RequestFactory, is this possible?
Is there any progress on this issue? Issue https://code.google.com/p/google-web-toolkit/issues/detail?id=5794 is related and is not fixed either. RF's behaviour in this regard is inconsistent since an unimportant retrieval would fail on any ConstraintViolation in batched requests. It should definitely be possible to batch requests but the current API is not sufficient. A recommendation would be to pull batching out of the RequestContext interface and expose it in e.g. a RequestContextBatcher. A RequestContext is used for one request only and is reusable on failure or violation. Thus removing append(), fire(Receiver), etc. RequestContextBatcher is used for multiple requests. The specific behaviour in onFailure and onViolation should be discussed further. Transaction settings might make it necessary for all RequestContexts to be re-executed or to only re-execute the failed/violating requests. Therefore it must allow customization by the user. Am Dienstag, 6. September 2011 22:11:30 UTC+2 schrieb Thomas Broyer: RF invocations are batched in a single HTTP request, but there's no implied transaction. You're free to use a transaction-per-HTTP-request scheme, or a transaction-per-invocation one (or no transaction at all). So when an invocation fail, RF doesn't assume the whole batch can be sent again. BTW, batching things in a single HTTP request is a network optimization (less HTTP requests = better overall performance). You'd want to batch an important data update with an unimportant retrieval; and you wouldn't want a failing unimportant retrieval to make the important update fail as well. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Re-firing a failed/rejected server call in RequestFactory, is this possible?
The inconsistency with the current RequestFactory is that if in a batch request, a single sub-request has a constraint violation then onConstraintViolation is called for every sub-request and the whole batch request fails (onFailure is called). Whereas if in a sub-request an exception is raised on the server only for this single sub-request onFailure is called and the surrounding batch-request succeeds with onSuccess. Thus, the RequestContext cannot be reused since reuse is only called for constraint violations and failures. Hence, as described in the original post, after a server failure the proxy cannot be reused and the user-entered data is gone (in contrast to a constraint violation). Am Dienstag, 26. November 2013 15:04:04 UTC+1 schrieb Thomas Broyer: On Tuesday, November 26, 2013 1:56:35 PM UTC+1, Jan Marten wrote: Is there any progress on this issue? Issue https://code.google.com/p/google-web-toolkit/issues/detail?id=5794 is related and is not fixed either. RF's behaviour in this regard is inconsistent since an unimportant retrieval would fail on any ConstraintViolation in batched requests. It should definitely be possible to batch requests but the current API is not sufficient. A recommendation would be to pull batching out of the RequestContext interface and expose it in e.g. a RequestContextBatcher. A RequestContext is used for one request only and is reusable on failure or violation. Thus removing append(), fire(Receiver), etc. RequestContextBatcher is used for multiple requests. The specific behaviour in onFailure and onViolation should be discussed further. The current API has batching built-in: one RequestContext instance == one batch request. You're free to use batches that only contain a single invocation. Transaction settings might make it necessary for all RequestContexts to be re-executed or to only re-execute the failed/violating requests. Therefore it must allow customization by the user. RF assumptions are that: - for a given HTTP request, there's only one instance for each entity (an entity shouldn't have 2 instances in the same request handling; see https://code.google.com/p/google-web-toolkit/issues/detail?id=7341). That generally means using cache scoped at the request, which translates to using the session per request (aka open session in view) pattern. - there's one transaction for each service method, so that each one can fail independently of the others. If that's not what you want, then create a specific service method that does all your work that should be executed in a single transaction. This is not going to change (what might change is the restriction that one proxy can only be edited by a single RequestContext at a time, which is discussed in the issue you linked to) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Re-firing a failed/rejected server call in RequestFactory, is this possible?
Thank you for clarifying the behavior. Nevertheless, in my opinion there is a use-case where the data should be reusable after a server failure. SQL exceptions like a unique constraint violation could be checked before sending the request but there might be server failures like a non-reachable database which is unpredictable. When something like this happens one could prompt the user to retry after a few minutes. But since the request cannot be reused the user cannot resend it's entered data. Am Dienstag, 26. November 2013 16:25:06 UTC+1 schrieb Thomas Broyer: On Tuesday, November 26, 2013 4:10:08 PM UTC+1, Jan Marten wrote: The inconsistency with the current RequestFactory is that if in a batch request, a single sub-request has a constraint violation There's no inconsistency, because that's not how things work. 1. All objects (entities and value objects) are deserialized from the request (for entities, it involves first retrieving them from the data store) 2. Then they're all validated. If there's a constraint violation, things stop here and you'll have onConstraintViolations on the client-side, in each and every Receiver attached to the RequestContext (i.e. or one of its Requests/InstanceRequests) 3. Otherwise, invocations are processed, in the same order they were added to the RequestContext on client side. Each invocation either succeeds or fails, and the onSuccess or onFailure will be called accordingly on the client side for the corresponding Receiver. The exception raised might be a ConstraintViolationException, it doesn't change anything: onFailure (not onConstraintViolation) will be called for the appropriate Receiver (not all receivers) 4. Then all entities (including those returned by invocations) are checked for liveness, to tell the client which kind of EntityProxyChange event to fire (PERSIST/UPDATE/DELETE) 5. And finally the response is constructed, with serialized objects, etc. then onConstraintViolation is called for every sub-request and the whole batch request fails (onFailure is called). Whereas if in a sub-request an exception is raised on the server only for this single sub-request onFailure is called and the surrounding batch-request succeeds with onSuccess. Thus, the RequestContext cannot be reused since reuse is only called for constraint violations and failures. Hence, as described in the original post, after a server failure the proxy cannot be reused and the user-entered data is gone (in contrast to a constraint violation). Yes. Exceptions are meant to be exceptional, you should use a return value to convey errors. In other words, onFailure should never be called, unless something *unpredictable* happens. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT request factory - Fire request inside of success method of another request
You mean renaming the inner request method? I tried that - doesn't change anything. It is not only in prod mode. It's a GWT test case that I run locally. Am Montag, 15. Juli 2013 23:29:14 UTC+2 schrieb Thomas Broyer: It's always worth mentionning when you also posted to StackOverflow: http://stackoverflow.com/q/17577892/116472 Just an idea: did you try renaming your variables so you don't have shadowing? (if it happens only in prod mode, there could be a bug in the GWT compiler) On Monday, July 15, 2013 10:10:48 PM UTC+2, Jan wrote: I am trying to nest two request factory calls in each other. I retrieve a post object and in the success-method i use the same object again (just for testing purposes, I get the same behavior for other request like for example persisting). The problem is: Only the first request reaches the server. I don't get any error message. If I debug the code, everything works until the second request is fired. Nothing happens then. The method on the backend is not called, the frontend shows no error, even if I implement the onFailure-method for the receiver of the second request. public class RequestFactoryFindTest extends GWTTestCase{ /** * must refer to a valid module that sources this class. */ public String getModuleName() { return com.Test.MyTest; } public void test(){ final ClientFactory clientFactory = GWT.create(ClientFactoryImpl.class); final MyRequestFactory requestFactory = clientFactory.getRequestFactory(); final PostRequest request = requestFactory.postRequest(); request.findPost(1l).fire(new ReceiverPostProxy() { @Override public void onSuccess(PostProxy response) { final ClientFactory clientFactory = GWT.create(ClientFactoryImpl.class); final MyRequestFactory requestFactory = clientFactory.getRequestFactory(); final PostRequest request = requestFactory.postRequest(); System.out.println(outer success); request.findPost(1l).fire(new ReceiverPostProxy() { @Override public void onSuccess(PostProxy response) { System.out.println(inner success); } }); } }); }} Can someone explain this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
GWT request factory - Fire request inside of success method of another request
I am trying to nest two request factory calls in each other. I retrieve a post object and in the success-method i use the same object again (just for testing purposes, I get the same behavior for other request like for example persisting). The problem is: Only the first request reaches the server. I don't get any error message. If I debug the code, everything works until the second request is fired. Nothing happens then. The method on the backend is not called, the frontend shows no error, even if I implement the onFailure-method for the receiver of the second request. public class RequestFactoryFindTest extends GWTTestCase{ /** * must refer to a valid module that sources this class. */ public String getModuleName() { return com.Test.MyTest; } public void test(){ final ClientFactory clientFactory = GWT.create(ClientFactoryImpl.class); final MyRequestFactory requestFactory = clientFactory.getRequestFactory(); final PostRequest request = requestFactory.postRequest(); request.findPost(1l).fire(new ReceiverPostProxy() { @Override public void onSuccess(PostProxy response) { final ClientFactory clientFactory = GWT.create(ClientFactoryImpl.class); final MyRequestFactory requestFactory = clientFactory.getRequestFactory(); final PostRequest request = requestFactory.postRequest(); System.out.println(outer success); request.findPost(1l).fire(new ReceiverPostProxy() { @Override public void onSuccess(PostProxy response) { System.out.println(inner success); } }); } }); }} Can someone explain this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Using NumberFormat.setForcedLatinDigits
Hello, I was looking to use this method to force latin decimal symbols. Maybe I am doing something wrong but it is not yielding the expected result. The locale is set to 'en' in the module configuration file, when I evaluate LocaleInfo.getCurrentLocale().getLocaleName() on the client this yields the expected result. Making the call to NumberFormat.setForcedLatinDigits with value 'true' and formatting some numbers does not yield the expected result of comma as decimal separator and dot as grouping separator. Any tips would be greatly appreciated! thanks jan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
No symbolMaps created when using collapse-all-properties in module configuration
Hi, I was investigating why our symbolMaps where no longer created and finally came to the conclusion that it was caused by adding 'collapse-all-properties' to the module configuration files. This is on GWT 2.5.1. Is this intended behavior? We are using the setting because it greatly reduces the time for the gwt compile - is there any way to get the symbolMaps while using this property? thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: RequestFactory Could not parse payload: payload[0] = N
I ran into the same problem. With a bit of debugging I found out that I was trying to send NaN in one of my Float attributes to the GWT Client. Dňa streda, 6. februára 2013 23:07:19 UTC+1 Sydney napísal(-a): If you have a test case to reproduce that issue, you can provide it to that issue on google app engine: https://code.google.com/p/googleappengine/issues/detail?id=8471 On Friday, January 18, 2013 9:23:52 PM UTC+1, El Mentecato Mayor wrote: I should have thought of that, sorry. Unfortunately (fortunately for me), I don't see the error anymore. Lots of things changed in the mean time (source code and db schema) as this project is under heavy development. Yes, I could go back-trace using my repository and maybe make it fail again, but time is a scarce commodity, so I choose to continue development. I did notice one anomaly the day it happened, not sure it's related to the issue; I had a copy of a src directory under my WEB-INF folder, (I blame eclipse, but who knows, could have been user-error; me), which I deleted. I'll make sure to capture the payload if I see this again. On Wednesday, January 16, 2013 1:47:11 PM UTC-5, Thomas Broyer wrote: Would be great if any of you could log the request payload when this error happens. In the mean time, we might want to modify the RequestFactoryServlet to log the payload when there's an unrecoverable error, in addition to the exception. Could you please open an issue? (if there's none already) On Wednesday, January 16, 2013 7:08:44 PM UTC+1, El Mentecato Mayor wrote: Just saw this error myself as well, slightly different message: Unexpected error: java.lang.RuntimeException: Could not parse payload: payload[0] = I using GWT 2.5 and no GAE. Stacktrace is exactly the same though. Don't know why or what it means, just that I get it so far when a specific request is made. Has anybody found out what this means? On Monday, January 14, 2013 11:17:27 AM UTC-5, Nick Siderakis wrote: Hey Sydney, I've been seeing the same error message recently. Did you figure it out? On Saturday, July 28, 2012 3:46:00 PM UTC-4, Sydney wrote: After deploying my app on appengine, I get the following exception: com.google.web.bindery.requestfactory.server.RequestFactoryServlet doPost: Unexpected error java.lang.RuntimeException: Could not parse payload: payload[0] = N at com.google.web.bindery.autobean.vm.impl.JsonSplittable.create(JsonSplittable.java:70) at com.google.web.bindery.autobean.shared.impl.StringQuoter.create(StringQuoter.java:46) at com.google.web.bindery.autobean.shared.ValueCodex$Type$7.encode(ValueCodex.java:122) at com.google.web.bindery.autobean.shared.ValueCodex.encode(ValueCodex.java:315) at com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$ValueCoder.extractSplittable(AutoBeanCodexImpl.java:500) at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.setProperty(AbstractAutoBean.java:277) at com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.setProperty(ProxyAutoBean.java:253) at com.google.web.bindery.autobean.vm.impl.BeanPropertyContext.set(BeanPropertyContext.java:44) at com.google.web.bindery.requestfactory.server.Resolver$PropertyResolver.visitValueProperty(Resolver.java:154) at com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.traverseProperties(ProxyAutoBean.java:289) at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:166) at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:101) at com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:395) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:483) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:225) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:127) at com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) Any idea of what the exception means? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
GWT HtmlPanel Disable SafeHTML
Hi, is there a way to disable SafeHTML in the new GWT2.5 HTMLPanel? If I put text in the HTMLPanel, it replaces all my spaces with nbsp; which means it ignores all styles and also the text just runs out of the page if it's long. Have already posted on StackOverflow as well: http://stackoverflow.com/questions/14530012/gwt-htmlpanel-disable-safehtml -- 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. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
GWT - Crawlable (SEO)
Hi, i like to make my gwt-app searchable by google. I found this article, that describes how to do it: https://developers.google.com/webmasters/ajax-crawling/ But it does not really make sense to me: If i use a servlet filter to present a special view to the google bot: This can not really work on the client side. If i change the view with the activties and places pattern, this only affects the client side an there is no servlet involved - servlet filter does nothing. Does some one has an explanation, example or even better a tutorial for me? Thanks and best regards Jan -- 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/-/8zHXKHgWnL0J. 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 Crawlable (SEO)
Hi I like to make my GWT-App by the google bot. I found this article (https://developers.google.com/webmasters/ajax-crawling/). It states there should be a servlet filter, that serves a different view to the google bot. But how can this work? If i use for example the activities and places pattern, than the page changes are on the client-side only and there is no servlet involved - servlet filter does not work here. Can someone give me an explanation? Or is there another good tutorial tailored to gwt how to do this? Thanks and best regards Jan -- 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/-/xNsogezpy90J. 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 suggestbox.
Spent some time on it today and got it working, thanks Thomas!! public class PietSuggestOracle extends SuggestOracle { public static class PietSuggestion implements SuggestOracle.Suggestion { private String displayString = ; private String replacementString = ; public PietSuggestion(String displayString, String replacementString){ this.displayString = displayString; this.replacementString = replacementString; } @Override public String getDisplayString() { return this.displayString; } @Override public String getReplacementString() { return this.replacementString; } } @Override public void requestSuggestions(final Request request, final Callback callback) { LinkedListPietSuggestion suggestions = new LinkedListPietSuggestOracle.PietSuggestion(); PietSuggestion suggestion1 = new PietSuggestion(TEST1, TEST1); suggestions.add(suggestion1); PietSuggestion suggestion2 = new PietSuggestion(TEST2, TEST2); suggestions.add(suggestion2); PietSuggestion suggestion3 = new PietSuggestion(TEST3, TEST3); suggestions.add(suggestion3); Response response = new Response(suggestions); callback.onSuggestionsReady(request, response); } } On Thursday, 22 November 2012 10:53:47 UTC+2, Thomas Broyer wrote: On Thursday, November 22, 2012 6:03:57 AM UTC+1, Jan Vladimir Mostert wrote: Hi, sorry for re-opening a topic from 2009. In the above code, you said nameCallback = callBack, where is this nameCallback being used? I don't quite understand how to use the callback. I was just wondering if there's a full implementation / example available on how to extend the SuggestOracle using RPC. As a starting-point, have a look at https://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/widgetideas/client/RPCSuggestOracle.java -- 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/-/-JAYBToyawkJ. 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 suggestbox.
Hi, sorry for re-opening a topic from 2009. In the above code, you said nameCallback = callBack, where is this nameCallback being used? I don't quite understand how to use the callback. I was just wondering if there's a full implementation / example available on how to extend the SuggestOracle using RPC. public class MySuggestOracle extends SuggestOracle { @Override public void requestSuggestions(Request request, Callback callback) { } } // in my ManageSomePageView.java TextBox textBox = new TextBox(); horizontalPanel.add(new SuggestBox(new MySuggestOracle(), textBox)); Thanks Jan On Thursday, 29 October 2009 23:11:22 UTC+2, mdwarne wrote: I don't know if this helps, but I wrote a PersonSugggestOracle that extends SuggestOracle The method below calls the server. It doesn't call the server if there are not at least 2 characters typed. On the server side, I have a sql query that uses the characters to perform a 'like' comparison on the first name, or the lastname so it works similar to like a multiword suggest oracle. On the server, I return the Person Name as a small HTML string with b/b tags surround the characters that the user typed to emphasize the part of the first or last name that is matching. I also limit the response to 12 matching records on the server. @Override public void requestSuggestions(Request request, Callback callback) { nameCallback = callback; String q = request.getQuery(); if (q =2) { asyncRequest.personSuggest(q,submitterId,12,new PersonsReceived (request)); } } Mike. On Oct 29, 3:47 am, Isaac Truett itru...@gmail.com wrote: As Thomas said, you'll need to write a SuggestOracle that returns an empty list of suggestions for queries shorter than x characters. And I wanted to add: if you want to keep the functionality of the MultiWordSuggestOracle then you can have your oracle delegate to a MuliWordSuggestOracle instance for queries that are long enough. As I recall MultiWordSuggestOracle is not amenable to subclassing, and composition is a better strategy anyway. On Thu, Oct 29, 2009 at 5:27 AM, Thomas Broyer t.bro...@gmail.com wrote: On 28 oct, 21:46, kss kunjals...@gmail.com wrote: I am using the gwt suggestbox currently as a typeahead text box to display suggestions from MultiSuggestOracle. Now I need a way to enable the suggestbox to appear only after a fixed set of characters are entered in the text box. Is there a way to do this ? Any suggestions. Have your SuggestOracle return an empty response until the query is long enough ? -- 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/-/tCW1uIM1IFgJ. 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.
Start method from activationlink
Hi, I use gwt and try to send an email with an activationlink to an user who registered at my application. I can send the email, but I don't know how the link has to look like to call a specific method on the server which finally activates the user. I found something about RPC, but I think I can't use it to solve this problem. Does anyone have a suggestion how I can handle 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/-/Gap1nkdAffUJ. 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.
Eclipse GWT Plugin - Display Javascript object properties functionality not working
Hello, We recently discovered the 'Display Javascript object properties' setting in the preferences view of the GWT plugin in eclipse. We are on eclipse Juno (20120606-2254) and also have indigo installations. We can't seem to get this very nice feature to work on all our eclipses, only 1 guy has gotten it to work and he can't recall any special steps he had to take before he got it to work. We are just testing this on the hello world app which is automatically created when you create a new gwt project with the eclipse wizard - just to rule out any dependencies from our application we are building. The only thing we are seeing when we inspect a JS object is the 'hostedModeReference' object with its value and reference sub-fields. Are we missing something obvious - should we do something else besides enabling the setting in the Preferences - Google tab page? I hope we can get this working as this feature is a major time saver! many thanks in advace. -- 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/-/rRqEJERSdtMJ. 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: printing problem: when I print content of my iframe (I use gwt-print-it) all what is left on the right side of printable page is cut off and stays not printed at all
no, I don't want to print double-sided document. let me explain it: imagine you have empty page with just one big image inside 'body' element: body img src=... style=width: 3000px; height: 2200px; / /body lets say it looks like this: http://why.net.pl/tmp/0.png and you want to print WHOLE image. So you'd expect your printer to print something like this: http://why.net.pl/tmp/1_.png but instead of this I'm getting something like this printed: http://why.net.pl/tmp/2_.png so it's not whole image. of course my problem is not about image but very big HTML form that has fixed width and height. This form cannot be resized. Fields on this form cannot be positioned differently, they are positioned with absolute positioning and they have to stay in their places. So my question is: what do I have to do in order to print wide elements that won't fit in one page (when it comes to element's width)? as I previously mentioned I already use gwt-print-it. W dniu wtorek, 18 września 2012 16:36:45 UTC-4 użytkownik jchimene napisał: Are you using @media css? http://www.w3.org/TR/CSS2/page.html#page-selectors On Mon, Sep 17, 2012 at 12:29 PM, Jan Przybylo jan.pr...@gmail.comjavascript: wrote: I print big form that has fixed dimensions. If I'd use Letter parer size it should fit in 4 pages (2 pages wide and 2 pages high). I already started using PrintIt class (gwt-print-it) and it solves most basic problems for me. But when I try to print whole big form it only prints top left as the 1st page and top bottom as the 2nd page leaving the right side not printed. Does anyone know proper way of printing wide big pages? -- -- 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/-/O6LWSBf8EE0J. 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.
printing problem: when I print content of my iframe (I use gwt-print-it) all what is left on the right side of printable page is cut off and stays not printed at all
I print big form that has fixed dimensions. If I'd use Letter parer size it should fit in 4 pages (2 pages wide and 2 pages high). I already started using PrintIt class (gwt-print-it) and it solves most basic problems for me. But when I try to print whole big form it only prints top left as the 1st page and top bottom as the 2nd page leaving the right side not printed. Does anyone know proper way of printing wide big pages? -- 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/-/Nbf7cUYFL2cJ. 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: DevMode not working in Chrome after update
I installed the plugin and it looks good in the extension page but it still not work. I use Chrome 22 under OSX Lion. Is there an older version of Chrome required? -- 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/-/3jvGHSmci0IJ. 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 Dev Plugin for Google Chrome
I have the same problem. Now the plugin is installed but it is still not working. -- 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/-/Ln__M-zzjowJ. 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 2.5 RC1 Is Here!
It would be great if it worked. I installed it with the older Eclipse version Indigo (that was OK), but there is no way to get the web app running in Chrome. The GWT dev plugin does not work! He guys, are there any tests before publishing? -- 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/-/QOMtiI9IbEsJ. 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 Developer plugin does not work in Chrome 22 (under OSX Lion)
The plugin is installed and activated but still not work. If I try to open a gwt page in dev mode I get the request to install the dev mode plugin. How can I get this running (probably in an older version of Chrome) ? -- 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/-/6v2kZTkNlMUJ. 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.
Custom Widget - Create HTML Element
Hi, i like to create a Custom widget with javascript, but did not find a tutorial for this. I tried to create a simple div Elment for the start. But this does not work. Throws some errors. Can someone tell me some good tutorial on this or give me some tips to correct my code? package test.client; import com.google.gwt.user.client.ui.Widget; public class CustomWidget extends Widget{ public CustomWidget(){ super(); createElement(sdf); } public static native void createElement(String msg) /*-{ var newdiv = $doc.createElement('div'); newdiv.setAttribute('id','testid'); newdiv.innerHTML = 'Test Element'; $doc.appendChild(newdiv); }-*/; } Thanks very much jan -- 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.
Create local application?
Hi, is it possible to create a local application which does not need any server or anything, so i have just a simple javascript/html/file combination that i can give to someboy and it works? I tried to compile the gwt sample application and tried to just open the .html file in the war folder, but the button is not shown. Thank you very much! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT, Spring, Hibernate and JAXB in one Application
Hi everyone, I'm playing with the thought of starting a (small?) project to improve my programming skills regarding different frameworks. The idea is to create an application that let's you manage and evaluate your sports activities based on data from GPS sport watches (e.g. the this one https://buy.garmin.com/shop/shop.do?pID=90671ra=true) or smartphones. It should be able to handle different charts, tables, display (Google-)maps and do some calculations. I guess more ideas will arise during development. For details check SportTracks http://www.zonefivesoftware.com/sporttracks/. It does exactly what I want. Since I have only less than two years of programming experience in JavaSE, I am not sure if that goal is out of my league, yet but it feels feasable to me. I read several articles about different frameworks the last days and my idea right now is to use GWT for the frontend, Spring to implement the MVC architecture and Hibernate to persist the data in a MySQL database. The data comes as XMLs. For the beginning, I thought of uploading the XMLs manually as files through the frontend and process them on the server via JAXB. For later versions an implentation of different browser plugins to upload the data directly from the device (e.g. this one http://www8.garmin.com/products/communicator/) would be very nice to have. Using all these frameworks might be overdimensioned for my intentions but as I said: My goal is to improve my skills with some frameworks I never really worked with. (The application is supposed to be a nice side product ;-) ) Looking at the articles I read until now, I assume it should be theoretically possible to combine these technologies. Is this a good idea at all? Do you have a better one? Do you think it is a realistic goal to write such an application as a single person regarding my barely existing experience with any of the frameworks mentioned above? Do you have any valuable tips for me? Where to start? Is it necessary to draft some kind of design on paper before starting the actual coding? Or should I just start coding with a more or less existing design in my mind? Or will all this simply end in too much frustration? I am looking forward to any kind of feedback. Thank you all in advance! Regads, Jan -- 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 computer for compiling gwt
MacBook Pro 15 with 2.2GHz (i7 quad core), 8GB RAM and SSD flies through the compiles -- Jan Vladimir Mostert BEngSci MyCee Technologies On Sun, Aug 14, 2011 at 4:58 PM, Navindian navind...@gmail.com wrote: I am also looking for a new laptop with 8 gb ram.. My requirements: 1.GWT 2.3 2. Spring 3.0 3. JBoss 5.1 4. Eclipse 3.6 Which dell laptop bests suits this requirement. I am looking at the Dell Latitude series. I already hold latitude d630 and wish to go for a new laptop. On Sun, Aug 14, 2011 at 6:29 PM, Brendan Doherty bren...@propertysimplified.com wrote: I'm looking at upgrading my development computer, as my old Athlon 64 4200+ is getting too slow for me. For the cpu I'm considering the following two intel i7 processors. Does anyone have some advice on which way to go? Intel Core i7 980 3.33GHz Socket 1366 6-core (12 threads) Intel Core i7 2600K 3.4GHz Socket 1155 4-core (8 threads) Most of the information I can find is targeted for gamers (which is not me - unless you count angry birds on my android phone). Most of the gamers are choosing the 2600k as it's better value for gaming performance. I'm thinking that the 4 extra hyper-threads will help compile my permutations much faster. Your thoughts? -- 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/-/tWu9X04XZSMJ. 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. -- 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.
Problem deploying GWT on IIS and Tomcat
I've set up an environment where IIS runs on one server and the RPC endpoints and servlets run on another machine on Tomcat. The site is available entering http://appName I've enabled URL Rewriting in IIS so that every call to http://appName/appService is redirected to http://tomcatMachine/appName/{R:0} The service call are reaching the application on tomcat but the there i get an error which says that my Class won't be serialized because MD5.gwt.rpc can't be found. What am I doing wrong? Best Regards Jan -- 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 Eye Candy - good looking widgets
Looking good! A good place to find a close to complete list of possible icons would be the silk icon library. Most of the icons look crappy, a rework is definitely in order! Don't know if you've seen the Vaadin themes: http://demo.vaadin.com/sampler (also based on GWT), that kind of look and feel for vanilla GWT components would definitely make the GWT Eye Candy project a winner! I'm actually considering using Vaadin in one of my projects just for the eyecandy. -- Jan Vladimir Mostert BEngSci MyCee Technologies On Sat, May 21, 2011 at 6:30 PM, Gabriel guz...@gmail.com wrote: Hi, I started this project http://code.google.com/p/gwt-eye-candy/ which currently contains buttons inspired by the Closure library buttons, and hopefully will grow with more nice looking GWT widgets. I hope it is beneficial to the community. Gabriel -- 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. -- 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: Vaadin always causes out of memory exception
What is the exact error message? -- Jan Vladimir Mostert BEngSci MyCee Technologies On Fri, May 20, 2011 at 10:21 PM, Andigator andiga...@gmail.com wrote: I wanted to check out certain Vaadin Widgets after reading about it the GWT blog. However, I can't even add it to my inherits list on the xml without causing immediate out of memory errors. I moved my VM Xmx flag all the way up to 4 GB. Anyone else have this problem? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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 2.3 + PHP
I've personally implemented a GWT frontend on a PHP backend using JSON to pass data back and forth between the server. GWT makes provision for a large array of methods to connect to the backend, RPC is just the most convenient way of doing it. -- Jan Vladimir Mostert BEngSci MyCee Technologies On Sun, May 8, 2011 at 4:00 AM, Bruno Santos bruegosan...@gmail.com wrote: I wonder if it is possible to connect to the server in PHP, I saw that the website shows how to make GWT RPC and JSON using Java, but PHP speaks very little and I'm used to seeing examples to learn things, so if anyone has an example or tell me where I can find to integrate GWT with PHP would be grateful. PS: I found a tool called GWTPHP (http://code.google.com/p/gwtphp/) making integration using RPC, but from what I noticed the last update was in 2009, I wonder if anyone knows if the project will continue or whether the future Google will do something similar. -- 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. -- 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 in Action, 2nd Edition Early Access Addition is Available for Purchase
When will this book be in print? Part III looks promising! -- Jan Vladimir Mostert BEngSci MyCee Technologies On Sat, May 7, 2011 at 7:42 PM, wil.pannell wil.pann...@gmail.com wrote: Sorry...bad link...here's the correction: http://www.manning.com/tacy/ On May 7, 1:39 pm, wil.pannell wil.pann...@gmail.com wrote: http://www.manning.com/koenig2/ -- 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. -- 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 in Action, 2nd Edition Early Access Addition is Available for Purchase
Can we still vote for a chapter on RequestFactory? That would be a deal-breaker :-) -- Jan Vladimir Mostert BEngSci MyCee Technologies On Sun, May 8, 2011 at 5:03 PM, Christian Goudreau goudreau.christ...@gmail.com wrote: As clear... but wayy much more work :D On Sun, May 8, 2011 at 10:59 AM, Brian Reilly brian.irei...@gmail.comwrote: Agreed, though it's too bad that it doesn't appear to have a chapter about RequestFactory. I experimented with it recently and it's pretty neat, though the GWT documentation isn't nearly as clear as it is for GWT-RPC. -- Brian On Sun, May 8, 2011 at 5:27 AM, Jan Mostert j...@mycee.com wrote: When will this book be in print? Part III looks promising! -- Jan Vladimir Mostert BEngSci MyCee Technologies On Sat, May 7, 2011 at 7:42 PM, wil.pannell wil.pann...@gmail.com wrote: Sorry...bad link...here's the correction: http://www.manning.com/tacy/ On May 7, 1:39 pm, wil.pannell wil.pann...@gmail.com wrote: http://www.manning.com/koenig2/ -- 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. -- 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. -- 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. -- Christian Goudreau www.arcbees.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. -- 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 URLs with # don't work with IE7
What does your index.html page look like? There's some iFrame magic that needs to be done for history to work in IE This is what I use in one of my applications: iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe -- Jan Vladimir Mostert BEngSci MyCee Technologies On Wed, Apr 13, 2011 at 7:33 PM, Roy roy.cohe...@gmail.com wrote: Hello, There seem to be a know issue with IE which doesn't respond to URLs that have # sign in them. See for example: https://mootools.lighthouseapp.com/projects/2706/tickets/638-request-fails-when-url-has-hash-in-ie7 As we use # quite frequently in out GWT based application we are lacking support for IE7 users who want to browse the site. Is there any known workaround for GWT other then modifying the URL? -- 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. -- 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: Switching an image by using OnMouseOverHandler
Another vote for the pushbutton, just remember to clear its style, otherwise its default style will be underneath your images. Pushbutton supports mouse-over, mouse-down (in the constructor) and mouse-up (also in the constructor) -- Jan Vladimir Mostert BEngSci MyCee Technologies On Tue, Apr 5, 2011 at 8:55 AM, Alexandre Ardhuin alexandre.ardh...@gmail.com wrote: Hi, You can also use a com.google.gwt.user.client.ui.PushButton that have a constructor with 2 images as parameter. Alexandre. 2011/4/5 Zak Linder zakn...@gmail.com Hi Arilene- You need to set the original image with a MouseOutHandler as well. img_p1.addMouseOverHandler(new MouseOverHandler() { @Override public void onMouseOver(MouseOverEvent event) { img_p1.setImage(img, /icons/grafo.png); } }); img_p1.addMouseOutHandler(new MouseOutHandler() { @Override public void onMouseOut(MouseOutEvent event) { img_p1.setImage(img, /icons/grafo1.png); } }); Since you might want to do this often, it might make sense to make your own HoverHandler: public interface HoverHandler extends MouseOverHandler, MouseOutHandler {} -- 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. -- 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. -- 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 + MVP + Spring + Hibernate
ROO is just a console that generates a scaffold for you containing Spring-MVC code with a JPA (Hibernate) and then you can slap any UI on top of it, like GWT using the gwt setup command This page will take you through it step by step: http://www.springsource.org/roo/start Once you've done the tutorial, you'll have a scaffold in place on top of which you can work or which you can modify to your liking. -- Jan Vladimir Mostert BEngSci MyCee Technologies On Sun, Apr 3, 2011 at 6:00 PM, Zaur Guliyev mr.zau...@gmail.com wrote: Isn't there a step-by-step tutorial at least on GWT + Spring Roo ?! ... I've searched on Google but can'T find any resource..even only Spring Roo will suit...Do you have any suggestion? And one more question, do I have to start with Spring MVC first? Or are Spring Roo and Spring MVC different subjects ... and that would be better to start directly with Roo maybe? 2011/4/3 Ashton Thomas ash...@acrinta.com this repo has gwt mvp spring but uses mybatis so no Hibernate: https://github.com/ashtonthomas/beans On Apr 3, 1:27 am, Jan Mostert j...@mycee.com wrote: Spring Roo will integrate all that stuff for you. -- Jan Vladimir Mostert BEngSci MyCee Technologies On Sat, Apr 2, 2011 at 11:14 AM, Zaur Guliyev mr.zau...@gmail.com wrote: Hello, I'm newbie in GWT and as well as to Spring, Hibernate and MVP framework. Is there any tutorial or project example on which I can learn all this GWT integration stuff with above mentioned frameworks? Any help is appretiated... -- 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. -- 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. -- *Zaur Guliyev Ankara University Computer Engineering** Cell: +905072645995* -- 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. -- 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: Vertical Tab Bar
As far as I'm aware, there's only a horizontal tab panel, building a vertical one with a vertical panel and labels can easily be accomplished. -- Jan Vladimir Mostert BEngSci MyCee Technologies On Sat, Apr 2, 2011 at 2:36 AM, New GWT User rajendra.toshni...@gmail.comwrote: Hi I am new to GWT, Trying to get hands dirty on it.I am looking for a Vertical Tab Bar. I see GWT has Horizontal Tab Bar readily available, Is there anything like that for Vertical Tab Bar. 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. -- 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 2.3 / Whats New
Happy to see formal support for IE9, gone are the days when you have to spend ages to update all your applications every time a new browser / version tags along :-) On Sat, Apr 2, 2011 at 12:10 AM, Thomas Broyer t.bro...@gmail.com wrote: http://code.google.com/p/google-web-toolkit/issues/list?can=1q=milestone=2_3 is a good start. -- 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. -- 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 + MVP + Spring + Hibernate
Spring Roo will integrate all that stuff for you. -- Jan Vladimir Mostert BEngSci MyCee Technologies On Sat, Apr 2, 2011 at 11:14 AM, Zaur Guliyev mr.zau...@gmail.com wrote: Hello, I'm newbie in GWT and as well as to Spring, Hibernate and MVP framework. Is there any tutorial or project example on which I can learn all this GWT integration stuff with above mentioned frameworks? Any help is appretiated... -- 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. -- 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: wait cursor when calling RPC
Setting the cursor is not the best design pattern for RPC calls, what if you have 10 widgets all making RPC calls, will each of them try to set and unset the cursor? Also expect some quirkiness between browsers if you set the cursor via the DOM. This is probably a better solution, show and hide some animation over a component that is busy: http://www.ajaxload.info/ -- Jan Vladimir Mostert BEngSci MyCee Technologies On Sat, Apr 2, 2011 at 5:24 PM, jonty johnwildo...@gmail.com wrote: Hi, I'm in the middle of a project and would like to display the wait cursor when until RPC onSuccess is called. I've tried directly setting and removing the style name of my panel with .waitCursor { cursor: wait;}. But it seems very glitchey(I'm using Chrome). Then I tried DOM.setStyleAttribute(RootPanel.get().getElement(), cursor,wait); but this again maybe only works once! Any suggestions guys? -- 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. -- 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: Run external exe in gwt server-side
Compiled GWT code runs clientside, on the serverside (which can be anything from python, java, php, ...) you can run almost anything if you have the permissions to do so and if it's supported on that platform. -- Jan Vladimir Mostert BEngSci MyCee Technologies On Wed, Mar 9, 2011 at 1:32 PM, trudi1990 stefano.corrice...@gmail.comwrote: Hi, it's possible to run external exe or vbs file from server side code in gwt web application ? -- 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. -- 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 2.2 Canvas support for IE6 (GWTCanvasImplIE6)
GWT-graphics supports IE6 via VML and renders everything else via Vector Supported browsers The library has been tested to work with the following browsers: - Internet Explorer 6 and newer - Firefox 3.0 and newer - Safari 3.2 and newer - Opera 9.6 and newer - Google Chrome http://code.google.com/p/gwt-graphics/ -- Jan Vladimir Mostert BEngSci MyCee Technologies On Thu, Mar 3, 2011 at 1:58 AM, Craig Mitchell craig...@gmail.com wrote: +1. Partial support would be great as there are a lot of IE 6/7/8 users out there. http://www.w3schools.com/browsers/browsers_explorer.asp On Mar 3, 1:22 am, Kurtt Lin kurtt@gmail.com wrote: Even partially supporting is welcomed, and developers should have known about its IE6's poor performance, thus avoid rendering lots elements. Actually i want Canvas in IE 6/7/8 badly. T T On Wed, Mar 2, 2011 at 9:55 PM, Philip Rogers p...@google.com wrote: Because of the difficulty of supporting IE6 fully via VML (including text, etc.) and still having reasonable performance, there aren't plans to support it at this time. The new Canvas implementation in GWT should have complete support across FF3.5, Chrome, Safari, and IE9, but there isn't a fallback provided for the older browsers. On Mar 1, 10:31 pm, Craig Mitchell craig...@gmail.com wrote: Hi, Are there any plans for Canvas to support IE6? It was supported via GWTCanvasImplIE6 in the gwt-incubator.jar which would implement the Canvas functionality via VML. 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. -- 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. -- 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 make GWT pages search engine friendly?
hashbang and hijax Hashbang will only work on Google though. -- Jan Vladimir Mostert BEngSci MyCee Technologies On Fri, Feb 25, 2011 at 6:13 AM, Kurtt kurtt@gmail.com wrote: I want to add automatically hidden sub-menus in my page, and do this with GWT, thus they are actually embedded in the js files. How to make the links in the sub-menus visible to the search engine? -- 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. -- 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: isDeployed function
I also thought so. Then I introduced the following code into the service implementation: isProdMode = GWT.isProdMode(); System.err.println(isProdMode); Afterwards I deployed it to AppEngine and the result was: 2011-02-16 01:18:09.137 [...].stderr: false I suppose that the isProdMode() function is designed for client code since it is located inside com.google.gwt.core.client. However my question referred to the server side. Anyway, thanks for your help Jan -- 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: isDeployed function
Works like charm! Thank you very much! Jan -- 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 remove the vertical bar in the listbox
I was going to suggest adding some CSS to it: *overflow-y:hidden; *but that doesn't appear to work on my side. The one in the docs is created outside ui:binder and appears to be without the vertical scrollbar http://www.gwtapps.com/doc/html/com.google.gwt.user.client.ui.ListBox.html [image: ListBox.png] Also curious to see a ui:binder workaround for this. On Wed, Feb 16, 2011 at 9:28 PM, mars marsg...@gmail.com wrote: i have a list box in my application, but i don't want to show the vertical scroll bar on the right side, is there any way to remove it? here is my code: g:ListBox visibleItemCount='3' width=15em g:itemLast 7 Days/g:item g:itemLast Week/g:item g:itemLast Month/g:item /g:ListBox 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. -- 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: CssResource compilation problem
Maybe selectedTabCenter is out of scope here or doesn't have a value at compile time yet? -- Jan Vladimir Mostert BEngSci MyCee Technologies On Wed, Feb 16, 2011 at 10:54 PM, pete superp...@geekcity.de wrote: Hallo, I have a problem with some ClientBundle / CssResource I try to declare. In my ClientBundle I have @Source(images/SelectedTabCenter.png) ImageResource selectedTabCenter(); in my Css-file I have @def headerHeight value('selectedTabCenter.getHeight', 'px'); @sprite .tabSelectedBack { gwt-image: selectedTabCenter; } Now I get a compilation error: [ERROR] [xxx] - Generator 'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator' threw an exception while rebinding 'xxx.XXXBundle' If I set the @def headerHeight to a fixed value, like 100px, it compiles. Do I have a syntax error in here? I copied the code from another of my widgets that works without a problem and just adjusted the names, so by the pretty unclear exception I can't make out, what is wrong... Any help is highly appreciated :-) Greetings, Pete -- 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. -- 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: Diagramming Using GWT?
Have a look at the GWT graphics library, vector graphics would be the best way to go. http://code.google.com/p/gwt-graphics/ gwt-g2d is another alternative. -- Jan Vladimir Mostert BEngSci MyCee Technologies On Wed, Feb 16, 2011 at 9:06 PM, Dilkington lentels...@gmail.com wrote: I have just been checking out the GWT library and it really impressed me and would like some pointers in the best way to go about development when using this new technology. To learn about this toolkit I would like to create for my first application a simple tool that allows the user to press a button or use drag and drop to add an element to a canvas. Imagine a simple diagramming tool. Using GWT what is the best way to go about this. What could be used to create a canvas that allows images to be added to it and then moved around the inside of this canvas? I have looked at the Javascript Raphaél library that was ported to GWT, do you think that this would be a good place to start and also, does GWT have support for drag and drop? Thanks for all input. -- 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. -- 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.
isDeployed function
Hi, I have some code on the server side of my application which should only be executed locally in development mode. Therefore I would like to have an isDeployed()-function to control whether or not it should be executed. Does anybody know of such a function or is there even a way to remove such code parts like it is the case for assert? Thank you very much Jan -- 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 webapp into an IFRAME
One of my apps is running on facebook, facebook uses an iFrame to display the application (if you're not using FBML), so yes, it does work. On Wed, Feb 2, 2011 at 6:02 PM, aditya sanas 007aditya.b...@gmail.comwrote: hi, yeah ofcourse it will work i have implemented it in my projects but you might require to check browser compatibility for frame size and some minor changes but this works for sure. -- Aditya On Wed, Feb 2, 2011 at 9:20 PM, obesga obe...@gmail.com wrote: Hello I've done a GWT app which is running on it's own page; but I've a request to embed the page into a portal. As I need to get the job done ASAP; I'm thinking about embedding the GWT weapp into a iframe, as iframe src=app/myapp.html/iframe Would it work ? Can a GWT app detect when it's running on a top page or on a iframe ? 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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: How to setup multiple database connections: JPA, Hibernate, Spring, Lucene and GWT
Sounds interesting! What would be a typical use-case for multiple databases? -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Wed, Feb 2, 2011 at 7:09 PM, isolanet giulio.rogg...@gmail.com wrote: Hi to all community members! I'd like to share with you my OSS project that explain how to configure a GWT project with Spring and Hibernate in order to access to more than one DB at the same time. The home of the project is http://code.google.com/p/gwt-spring-jpa-lucene The introduction page is http://code.google.com/p/gwt-spring-...tenceUnitSetup The project is in alpha version. Updates will follow. Thanks! Giulio -- 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.comgoogle-web-toolkit%2bunsubscr...@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: GWT debuggin in Chrome - why is so slow?
@Edson, what operating system are you using out of curiosity? I take it the debug mode you're talking about is development mode? I've been using the development mode plugin in Chrome in both Gentoo Linux and Kubuntu since December 2010, before that I was having problems as well - maybe upgrade your Chrome? @Eric, do you still have that IE-buggy code? Would you mind testing this doctype for me: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Wed, Feb 2, 2011 at 5:12 PM, Edson Richter brvik...@gmail.com wrote: I've a development environment composed by NetBeans, Apache Tomcat 6.0.30 and GWT 2.0.4. In the client side, I've Google Chrome and Mozilla Firefox. I gave up on testing Internet Explorer due the amount of bugs (in IE, to be clear). Google Chrome is the fastest and stable browser I've been using so far, but for debug I can only use FireFox. In Chrome, if I don't get NPObject... bug, then I get repeated timeouts. My application is a business application that uses several custom gadgets, but I don't believe this is the problem, since Firefox works well (either to run or debug the application). Also, as I stated before, Chrome is that fastest (but I cant debug the application). Can anyone help me? Is there any Chrome configuration or restriction? Is the plugin working in Chrome for debug mode? I'll appreciate your help. Regards, Edson Richter. -- 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.comgoogle-web-toolkit%2bunsubscr...@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: GWT debuggin in Chrome - why is so slow?
Is that for all layout panels (the simple ones like horizontal and vertical panel included) or just specific ones that fall under the more comlex layout panels like DockLayout? On Wed, Feb 2, 2011 at 8:36 PM, Jeff Larsen larse...@gmail.com wrote: Transitional doctype won't work if you're using *LayoutPanels. -- 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.comgoogle-web-toolkit%2bunsubscr...@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: How to setup multiple database connections: JPA, Hibernate, Spring, Lucene and GWT
Thanks Jeff, will remember for when I need it :-) On Wed, Feb 2, 2011 at 8:23 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Sharding On Feb 2, 2011 1:04 PM, Jan Mostert j...@mycee.com wrote: Sounds interesting! What would be a typical use-case for multiple databases? -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Wed, Feb 2, 2011 at 7:09 PM, isolanet giulio.rogg...@gmail.com wrote: Hi to all community members! I'd like to share with you my OSS project that explain how to configure a GWT project with Spring and Hibernate in order to access to more than one DB at the same time. The home of the project is http://code.google.com/p/gwt-spring-jpa-lucene The introduction page is http://code.google.com/p/gwt-spring-...tenceUnitSetup The project is in alpha version. Updates will follow. Thanks! Giulio -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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: GWT debuggin in Chrome - why is so slow?
Thanks Jeff, this will save me plenty of headaches later this year when I deploy my app, the default generated by Spring Roo uses transitional even though the docs explicitly says that the doctype should be !DOCTYPE html Is this something that I need to log with GWT or with the Spring guys? The GWT 2.0 layout system is intended to work only in standards mode. This means that you should always place the following declaration at the top of your HTML pages: !DOCTYPE html What won't work in standards mode? As mentioned above, some of the existing GWT panels do not behave entirely as expected in standards mode. This stems primarily from differences between the way standards and quirks modes render tables. -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Wed, Feb 2, 2011 at 9:10 PM, Jeff Larsen larse...@gmail.com wrote: That goes for anything that has Layout in the name. see more info here. http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: GWT debuggin in Chrome - why is so slow?
A DockLayoutPanel is being used in the generated scaffold, which means that if it's breaking in IE when using transitional (as mentioned in the docs), the generated scaffold will not work properly in IE. On Wed, Feb 2, 2011 at 10:00 PM, Jeff Larsen larse...@gmail.com wrote: There isn't a requirement to use layout panels, and I haven't used the Roo stuff enough to know if they use layout panels in the autogenned stuff that gets created. Assuming they don't use layout panels, then transitional is a valid doctype (although still probably a bad idea). -- 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.comgoogle-web-toolkit%2bunsubscr...@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: Help, UIBinder and mixed mode HTML
Maybe post the code that you use to bind the component, problem is most likely there. -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Tue, Feb 1, 2011 at 10:20 AM, John Gentilin gent...@gmail.com wrote: I have a UIBinder file that specifies a HTMLPanel that contains a mix of plain HTML and GWT widgets. If I don't bind any of the variables, the Widget will load correctly and display. As soon as I bind a UI field in my code including the @UIField definition, @UiField TextBox userid; then initializing the Widget fails in a NPE. Thanks for any help in advance. John Gentilin This is the exception java.lang.NullPointerException: null at com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController_UIDefaultImpl.createAndBindUi(RegistrationController_UIDefaultImpl.java: 61) at com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController_UIDefaultImpl.createAndBindUi(RegistrationController_UIDefaultImpl.java: 1) at com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController.lt;initgt; (RegistrationController.java:37) at com.CloudTvApps.PicRollr.client.PicRollrEntryPoint.onModuleLoad(PicRollrEntryPoint.java: 32) 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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:680) UIBinder definition !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui ui:style /ui:style g:HTMLPanel div class=regform table cellpadding=2 cellspacing=0 border=0 tr td width=130 labelUser ID:/label /td td width=140 g:TextBox maxLength=15 visibleLength=15 ui:field=userid/ /td /tr tr td labelPassword:/label /td td g:PasswordTextBox maxLength=15 visibleLength=15 ui:field=password/ /td /tr tr td labelConfirm Password:/label /td td g:PasswordTextBox maxLength=15 visibleLength=15 ui:field=password2/ /td /tr tr td labelName:/label /td td g:TextBox maxLength=15 visibleLength=15 ui:field=name/ /td /tr tr td labelE-mail:/label /td td g:TextBox maxLength=15 visibleLength=15 ui:field=email/ /td /tr tr td colspan=2 g:CheckBox text= ui:field=agree/ labelI agree with the terms of service/label /td /tr tr td colspan=2 g:Button ui:field=registerRegister/g:Button
Re: How to Display a Loading message when transitioning between Activities and Places ?
I haven't done this myself, but I've seen it being done with the generated scaffold in Spring Roo. Generate a sample application using Spring Roo using the provided sample script and the output code should have a working example for you. Will have a look for you later tonight if you don't manage, should have some generated samples at home. -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Tue, Feb 1, 2011 at 9:46 AM, zixzigma zixzi...@gmail.com wrote: Thank You, I understand the mechanics of hiding/showing, what I am not clear is the timing of it, when dealing with Activities and Places. do we need to use onStop method of one activity and start method of another, to signal when one is stopped/started and use events for these two activities to communicate ? -- 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.comgoogle-web-toolkit%2bunsubscr...@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: Considering using Google Accounts for authentication. Good idea?
Spring Security should take care of most of those requirements since it already has openID support built in, but that will require authentication to happen outside your GWT application (I'm a bit paranoid exposing my javascript if people aren't authenticated) and if you really need the login to be in GWT, Vaadin does some serverside magic that will allow you to build a secure login form using GWT. On Tue, Feb 1, 2011 at 4:08 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Hi all, I hope you don't mind me cross posting this to both the gwt and app engine groups since I'd really like to get the opinions of users on both platforms. I'm in the middle of developing a gwt application on app engine. The application's security requirements are that non members, meaning those that haven't registered, are restricted to viewing only the application's public 'page'. What I developed for authentication is home grown using my own login form, client side cookies and a User entity with password and email address stored in the application's data store. While my home grown implementation works perfectly I am not comfortable with the security implications of cookies and passing raw passwords to the server to authenticate my users. I also can not use SSL at this time as financial constraints unfortunately prohibit any expenditures on this project. As I place my users' privacy and security above all else I am therefore looking to implement a better solution; one that would if possible eliminate my responsibility altogether of having to store cookies and passwords and transport them via HTTP when authenticating. One alternative that I am currently considering is using Google Accounts to authenticate my users along with my own User entity that would store the additional information users must provide when registering to use the services of my application. My User entity (not to be confused with the User object provided by the User API) would store the user's Google Account ID and would provide the ability to determine if a user is registered simply by querying for their Google Accounts ID in my datastore. It would eliminate having to store client side cookies and sending raw passwords to the server. So far it seems like a win-win proposition as it appears to satisfy all my use cases. For those who already use Google Accounts for user authentication are you happy with the service? How about the services' availability track record and does it provide the security you had hoped it would? For those using Google Accounts along with GWT have you found any specific issues related to using it with GWT (I am using RPC BTW) that you can relate? I am looking forward to reading your feedback and responses and thanks in advance. Jeff -- *Jeff Schwartz* -- 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.comgoogle-web-toolkit%2bunsubscr...@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: Image handling using ClientBundle
Your path is wrong, it should be relative to file where you import the image eg: main/java/com/myproject/client/scaffold/ui/widget/somecomponent.ui.xml ui:image field='field_tl' src=../../../style/images/Universal-frame_mod_tl.png / and the image is located in main/java/com/myproject/client/style/images/Universal-frame_mod_tl.png That @Source should probably have a path of ../ public/resources/cut_icon.gif Hope it helps :-) PS, is there a better way to do this, eg force an absolute path somehow? On Tue, Feb 1, 2011 at 6:43 AM, Digs digantbhav...@gmail.com wrote: Hi, I am trying to use ClientBundle in my project. My project structure is src/com/company/project/client - contains all java files src/com/company/project/public/resources - contains all image files. I have no problem if I place images in client folder and use @Source(cut_icon.gif) public ImageResource cutIconImage(); But I need to place images under src/com/company/project/public/ resources folder for my project. When I try @Source(src/com/company/project/public/resources/cut_icon.gif) public ImageResource cutIconImage(); I get error. Please help.. Thanks in advance. - digs -- 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.comgoogle-web-toolkit%2bunsubscr...@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: Considering using Google Accounts for authentication. Good idea?
A google account is already an open-id: http://openid.net/get-an-openid/ http://openid.net/get-an-openid/ -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Tue, Feb 1, 2011 at 5:46 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Thanks but I'd like to limit the discussion to Google Accounts. On Tue, Feb 1, 2011 at 10:19 AM, Jan Mostert j...@mycee.com wrote: Spring Security should take care of most of those requirements since it already has openID support built in, but that will require authentication to happen outside your GWT application (I'm a bit paranoid exposing my javascript if people aren't authenticated) and if you really need the login to be in GWT, Vaadin does some serverside magic that will allow you to build a secure login form using GWT. On Tue, Feb 1, 2011 at 4:08 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Hi all, I hope you don't mind me cross posting this to both the gwt and app engine groups since I'd really like to get the opinions of users on both platforms. I'm in the middle of developing a gwt application on app engine. The application's security requirements are that non members, meaning those that haven't registered, are restricted to viewing only the application's public 'page'. What I developed for authentication is home grown using my own login form, client side cookies and a User entity with password and email address stored in the application's data store. While my home grown implementation works perfectly I am not comfortable with the security implications of cookies and passing raw passwords to the server to authenticate my users. I also can not use SSL at this time as financial constraints unfortunately prohibit any expenditures on this project. As I place my users' privacy and security above all else I am therefore looking to implement a better solution; one that would if possible eliminate my responsibility altogether of having to store cookies and passwords and transport them via HTTP when authenticating. One alternative that I am currently considering is using Google Accounts to authenticate my users along with my own User entity that would store the additional information users must provide when registering to use the services of my application. My User entity (not to be confused with the User object provided by the User API) would store the user's Google Account ID and would provide the ability to determine if a user is registered simply by querying for their Google Accounts ID in my datastore. It would eliminate having to store client side cookies and sending raw passwords to the server. So far it seems like a win-win proposition as it appears to satisfy all my use cases. For those who already use Google Accounts for user authentication are you happy with the service? How about the services' availability track record and does it provide the security you had hoped it would? For those using Google Accounts along with GWT have you found any specific issues related to using it with GWT (I am using RPC BTW) that you can relate? I am looking forward to reading your feedback and responses and thanks in advance. Jeff -- *Jeff Schwartz* -- 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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.comgoogle-web-toolkit%2bunsubscr...@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: Spring ROO GWT with GIN injection on widgets created by ui:binder.
Hi Jeff, how and where do I need to retrieve the view from the presenter and does the binding happen automatically when I do that? Do you perhaps have a sample snippet of code that will make the binding happen? Those clickHandlers I'll clean up after I got this simple prototype working (this GIN / Guice magic is still very new to me), thanks :-) On Mon, Jan 31, 2011 at 5:35 PM, Jeff Larsen larse...@gmail.com wrote: You will need to retreive the view from the presenter in order for the handlers to be set via the bind method. An additional stylistic point: private ClickHandler myButtonClickHandler; private ClickHandler yourButtonClickHandler; You probably don't need these. you can use myButton.addClickHandler and yourButton.addClickHandler instead. -- 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.comgoogle-web-toolkit%2bunsubscr...@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: Spring ROO GWT with GIN injection on widgets created by ui:binder.
Hi Jeff, how and where do I need to retrieve the view from the presenter and does the binding happen automatically when I do that? Do you perhaps have a sample snippet of code that will make the binding happen? Those clickHandlers I'll clean up after I got this simple prototype working (this GIN / Guice magic is still very new to me), thanks :-) On Mon, Jan 31, 2011 at 5:35 PM, Jeff Larsen larse...@gmail.com wrote: You will need to retreive the view from the presenter in order for the handlers to be set via the bind method. An additional stylistic point: private ClickHandler myButtonClickHandler; private ClickHandler yourButtonClickHandler; You probably don't need these. you can use myButton.addClickHandler and yourButton.addClickHandler instead. -- 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.comgoogle-web-toolkit%2bunsubscr...@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: GWT + JSP = AdSense-Content?
I'm currently bootstrapping a GWT application with a JSPX page, the pages I want to have indexed are pure JSPX pages, the backend page is a JSPX page with GWT widgets being placed inside divs. It won't be much slower than a regular JSPX page, except for the GWT-javascript that needs to be loaded with each page load. On Mon, Jan 31, 2011 at 7:31 PM, Johannes Stein johannes.st...@googlemail.com wrote: Whats about the idea to load content and keywords for adSense seperately via JSP and to embed the GWT-Module into this JSP pages? So it will be possible to load content and keywords synchronously , so that Google-Bot has something to read. What do you think? Could this be an elegant solution? Or will it have huge effects to the performance? -- 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.comgoogle-web-toolkit%2bunsubscr...@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: GWT + JSP = AdSense-Content?
I haven't seen anyone doing a full-on system with html pages and GWT widgets, but it can be done, even though I personally think GWT was not designed for this. Maybe have a look at the hash-bang ( #! ) as an option, Google bots have a special way of indexing pages using hashbang (they send a special type of request to root page which you can then handle and send back different content specially crafted for the bot, don't know if adsense will work in the same way -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Mon, Jan 31, 2011 at 8:04 PM, Johannes Stein johannes.st...@googlemail.com wrote: So you think this could be a possibility to get pages understand by AdSense? We need content-related ads, thats why im asking for that. Another Solution could be stop developing with gwt an use JSF instead... Hm... On 31 Jan., 18:55, Jan Mostert jan.most...@gmail.com wrote: I'm currently bootstrapping a GWT application with a JSPX page, the pages I want to have indexed are pure JSPX pages, the backend page is a JSPX page with GWT widgets being placed inside divs. It won't be much slower than a regular JSPX page, except for the GWT-javascript that needs to be loaded with each page load. On Mon, Jan 31, 2011 at 7:31 PM, Johannes Stein johannes.st...@googlemail.com wrote: Whats about the idea to load content and keywords for adSense seperately via JSP and to embed the GWT-Module into this JSP pages? So it will be possible to load content and keywords synchronously , so that Google-Bot has something to read. What do you think? Could this be an elegant solution? Or will it have huge effects to the performance? -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@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.comgoogle-web-toolkit%2bunsubscr...@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: Spring ROO GWT with GIN injection on widgets created by ui:binder.
I'm not sure which MVP framework I'm using, I'm basically using whatever framework is being generated by Spring ROO after using the gwt setup command and since this is my first time using GWT since pre version 1.5, I'm pretty lost. That would probably work under normal gwt, but the component needs to be added via ui:binder, so can't do that fancy footwork of manually creating it and then adding it to RootPanel unless there is a way of doing it the ui:binder way? In ScaffoldDesktopShell.ui.xml I'm inserting the component via xml: [code] !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:s='urn:import:com.ig.client.scaffold.ui' xmlns:ig='urn:import:com.ig.client.scaffold.ui.widget' ui:style @def contentWidth 850px; /ui:style g:DockLayoutPanel unit='EM' ... *ig:RorView /* /g:DockLayoutPanel /ui:UiBinder [/code] The ScaffoldDesktopShell itself looks like this: [code] public class ScaffoldDesktopShell extends Composite { interface Binder extends UiBinderWidget, ScaffoldDesktopShell { } private static final Binder BINDER = GWT.create(Binder.class); @UiField SimplePanel details; @UiField DivElement error; @UiField LoginWidget loginWidget; @UiField SimplePanel master; @UiField NotificationMole mole; @UiField(provided = true) ValuePickerProxyListPlace placesBox = new ValuePickerProxyListPlace(new ApplicationListPlaceRenderer()); public ScaffoldDesktopShell() { initWidget(BINDER.createAndBindUi(this)); } public SimplePanel getDetailsPanel() { return details; } public LoginWidget getLoginWidget() { return loginWidget; } public SimplePanel getMasterPanel() { return master; } public NotificationMole getMole() { return mole; } public HasConstrainedValueProxyListPlace getPlacesBox() { return placesBox; } public void setError(String string) { error.setInnerText(string); } } [/code] PS, will attached code be displayed? -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Mon, Jan 31, 2011 at 8:10 PM, Jeff Larsen larse...@gmail.com wrote: What framework are you using to do your MVP stuff? this looks a lot like gwt-presenter or gwtp. Ignoring GIN for a second, because this is easier to illustrate without DI, add the method public Widget getView() { return display.asWidget(); } RorPresenter presenter = new RorPresenter(new RorView(), eventBus); presenter.bind(); RootPanel.get().add(presenter.getView()); This should get you your button clicks to give you your Window.alerts. -- 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.comgoogle-web-toolkit%2bunsubscr...@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: Spring ROO GWT with GIN injection on widgets created by ui:binder.
It feels like I'm working in circles, one module needs something from another module and that one needs stuff from another module etc etc etc Here's my updated code using the container method: *RorPresenter.java* * * public class RorPresenter { private RorView view; public void setView(RorView view){ this.view = view; } @Inject public RorPresenter(){ bind(); } public void doMyClickEvent(){ Window.alert(FIT); } public void doYourClickEvent(){ Window.alert(MEH); } public void bind(){} } *RorView.java* * * public class RorView { interface Binder extends UiBinderWidget, RorView {} private static Binder BINDER = GWT.create(Binder.class); private RorPresenter presenter; @Inject public RorView(RorPresenter presenter){ this.presenter = presenter; presenter.setView(this); presenter.bind(); } @UiHandler(myButton) void onMyButtonClick(ClickEvent event){ presenter.doMyClickEvent(); } @UiHandler(yourButton) void onYourButtonClick(ClickEvent event){ presenter.doYourClickEvent(); } } *RorContainer.java* * * public class RorViewContainer extends Composite { interface Binder extends UiBinderWidget, RorViewContainer {} private static Binder BINDER = GWT.create(Binder.class); @UiField(provided=true) RorView view; @Inject @UiConstructor public RorViewContainer(RorView view){ this.view = view; initWidget(BINDER.createAndBindUi(this)); } @UiFactory RorViewContainer makeRorViewContainer(){ return new RorViewContainer(this.view); } } And now I use *ig:RorViewContainer / *in the applicationscaffold's xml configu. It doesn't like the paramaters in the constructor and the @UiFactory doesn't fix it [ERROR] ig:RorViewContainer missing required attribute(s): view Element ig:RorViewContainer (:156) Jeff, can I mail you my maven project sample code, it'll be easier to show the problem if you have the whole context under eyes, been struggling to bind the view and the presenter for literally weeks now, just need one working example. Thanks J -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Mon, Jan 31, 2011 at 9:36 PM, Jeff Larsen larse...@gmail.com wrote: Sorry, I had forgotten you're using Roo. I don't have much experience with Roo/gwt but here is one way to get it done. This might not be the optimal way though since I haven't played around with the Roo/gwt framework for more than about an hour as I'm not able to use it in my current projects. Is the presenter generated for you by Roo or is that your own implementation? If it is your own, you could remove the Display from the constructor and add a setter for it instead. Here is what your uiBinder class could look like. The only catch here is everywhere you use this, you'll have to do a public class RorViewContainer extends Composite { .. uibinder boilerplate... UiField(provided=true) RorView view; @Inject public RorViewContainer(RorView view){ this.view = view; initWidget(uiBinder.createAndBindUi(this)); } private RorPresenter presenter; @Inject RorView(RorPresenter presenter){ this.presenter = presenter; presenter.setView(this); presenter.bind(); } @UiHandler(myButton) public void myButtonClick(ClickEvent event){ presenter.doMyClickEvent(); } @UiHandler(yourButton) public void yourButtonClick(ClickEvent event){ presenter.doYourClickEvent(); } -- 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.comgoogle-web-toolkit%2bunsubscr...@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: GWT intégration with Joomla 1.5
I think you'll need to do something like RootPanel.get('div-name').add(myWidget) -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Mon, Jan 31, 2011 at 11:12 PM, panda vladval...@yahoo.fr wrote: To be more precise, I would like to make my GWT application displaying on a div pre-defined in my Joomla component. How to tell GWt module to be part of a arbitrary div? Best regards, panda On 31 jan, 15:07, panda vladval...@yahoo.fr wrote: Hello all, I've created a GWT module implementing the UI and some behavior based on events that rea easily handled in GWT. My web site is using Joomla 1.5. I created a Joomla component for may new functionality and I would like to link the view of that component to my GWT module. I've tried to copy / paste the HTML host of GWT into my Joomla component's view and the result is that the UI is displayed below my site instead of the in the place I've reserved for. The content of the host (HTML file from GWT module) is well present in the correct place if I'm doing right click - Code source but the GWT UI is diaplyed below my site. How should I tell to my GWT mosule to load into a div that I may create with Joomla as place holder? Or, more generally, is a recommended way for integrating a GWT module in Joomla 1.5? Kind regards, panda -- 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.comgoogle-web-toolkit%2bunsubscr...@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: Export CellTable's selected rows into a csv file
I'm assuming you're using a JAVA backend hence the RPC? Which one are you using if I may ask? You'll need to set the mimeType in the header you're sending, saw a topic on Stack Overflow some time ago, have a look at this: http://stackoverflow.com/questions/2244892/setting-content-type-in-java-for-file-download -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Mon, Jan 31, 2011 at 5:22 PM, ido iof...@gmail.com wrote: Hi, I'm about to implement a new feature in my web application, in which csv file is generated out of a selection module of a CellTable. Use case: my client selects rows in a CellTable -- clicks on an Export button -- download csv file. As I see it, these should be the actions once Export button is clicked: 1. Collect all selected objects from the selection module. 2. Send list to my server using RPC command. 3. Generate csv file out of the list. 3. Send the file to the client. I've already implemented the first 3 actions , However, did not manage to find any solution for the 4th. Just don't have any idea how can my server send the file to the user. I've been looking over the net for any solution but couldn't find a thing. Will appreciate any answer, Thanks a lot, Ido -- 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.comgoogle-web-toolkit%2bunsubscr...@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: How to Display a Loading message when transitioning between Activities and Places ?
Simply take a div that says loading, when you start the transition, set its css style to be visible and when you're done with the transition hide it. On Tue, Feb 1, 2011 at 7:40 AM, zixzigma zixzi...@gmail.com wrote: it is a common practice to display a Loading message/icon when we have an operation that possibly would take some time to complete. for example when retrieving data from Datastore, etc. I was wondering how we can do the same for Activities/Places. in GWT MVP, when navigating from one place to another, an activity stops and another one gets started, however at times there is a slight delay in between. do you have any suggestions on how we can display a Loading message, when transitioning between Activity/Places ? 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.comgoogle-web-toolkit%2bunsubscr...@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 JPA: Does the table has to has a field called Version?
You do not need to do that, the RequestFactory comes with a concept of 'Locator's which help you to overcome this issue. Have a look here for the Locator documentation: linkhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/requestfactory/shared/Locator.java?r=9266 And have a search in the archives of this group, you can find some examples that should help you along. -- 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-tool...@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 JPA: Does the table has to has a field called Version?
This is an extract from a post that helped me a lot: If you can implement a single Locator class that works for all your entities, then go with it; and otherwise make one for each entity. For instance, if you have a base class for your entities that provides an ID and version, then you can easily cast any entity to that class to implement getId and getVersion, and you probably can implement getIdType by returning a fixed type. You can clazz.newInstance() in the create() or use PersistenceManager#newInstace with JDO. And you can easily find using the Class and ID with JPA using EntityManager#find(clazz,id), or with JDO using PersistenceManager#getObjectById(clazz,id). Basically, you could very well have only one Locator class per id type. Oh, and something to keep in mind: the Locator and *your services* instances (not the ServiceLocator instances though) are cached aggressively and reused for all subsequent requests, so make sure they are thread-safe ! (have a look at the ServiceLayerCache class to see all memoized methods) Original Posthttps://groups.google.com/d/topic/google-web-toolkit/hGVk6fwwO-A/discussion -- 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-tool...@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: Controlling the loaded object graph when using EntityProxy instances with latest RequestFactory feature
Hello David, There are about 15 of these complex data types, new ones are only added once in a blue moon which means that adding a value proxy when that happens is no big deal. I am fine with writing a proxy for all of our data types, no problem there. The 'issue' that I am trying to get around is the fact that my DTO object (MySessionDTO in the example above), which has a number of embedded objects (MyInteger, MyString - all of them have a value proxy: MyIntegerProxy, MyStringProxy) doesn't include its embedded objects automatically when the DTO is sent to the client. I need to explicitly state that they need to be sent to the client too by using this kind of statement: ' mySessReq.startSession(textToServer).with(userName).with('lastLogonDate').with('expirationDate') ...'. What I want to achieve is that I can simply use these kind of statements 'mySessReq.startSession(textToServer)' and have the embedded objects sent to the client (as if they were simple types like Integer, String ...). From my point of view, these 'complex data types' aren't really embedded objects, they are rather 'embedded properties' which make up the DTO object than an embedded object which represents a relation towards another domain object. Now, I did manage to get this working by also making my *MySessionProxy *(the proxy for the DTO object) extend ValueProxy instead of EntityProxy. I now have value proxy objects for both my DTO's and the complex data types. Is this still a valid approach or am I going to run into troubles further down the road? This approach means that I no longer have a containing entity which manages versioning and identity. Thanks a lot for your feedback on 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-tool...@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: Controlling the loaded object graph when using EntityProxy instances with latest RequestFactory feature
I can sure do that, I will be generating the proxy classes anyway which means that I can add the list of properties at that time. Very good suggestion, 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-tool...@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.
Controlling the loaded object graph when using EntityProxy instances with latest RequestFactory feature
Our application uses an object model with DTO's which contain objects (what we call complex data types) that make up the 'properties/fields/attributes' of a domain object. This means that we do not use Integer, String ... but have a customized MyInteger, MyString, MyDouble variants instead. These complex data types wrap the native object and add some additional properties too. To illustrate, this is a simplified version of one of our DTO objects: *public class MySessionDTO implements IMyDTO { * * private MyInteger id = null; private MyString userName = null; ... }* I created a proxy implementation for this DTO which looks like this: *...@proxyfor(value = MySessionDTO.class, locator = MyEntityLocator.class) public interface MySessionProxy extends EntityProxy { public MyIntegerProxy getId(); public MyStringProxy getUserName(); }* Using this set-up I can perfectly retrieve the values (in this sample the user name) which I require on the client side using the request factory feature as follows: *MySessionRequest mySessReq = requestFactory.mySessionRequest();* *RequestMySessionProxy startSessionReq = mySessReq.startSession(textToServer).with(userName);* *startSessionReq.fire(new ReceiverMySessionProxy() {* ** *}* This approach (using the .with method to retrieve all properties of our DTO objects) is fine from a functional point of view. The problem is that our DTO's have many of these properties and from time to time new properties are added to the objects. It is not feasible to go trough the code each time to implement these changes nor is it feasible to list all properties for each call to fetch the contents of our objects. I am wondering that there is some way which will allow me to indicate which (embedded) objects are retrieved when a certain DTO is being pulled to the client side. Having looked at other posts in this group I can only conclude that many other developers are facing this problem, which leads me to believe that our approach is not that exotic. I do agree that this is a no-issue for the more traditional approach where objects are only used inside other objects to represent real domain objects. *(I already posted a similar topic as my first post to this group but it never made it to the actual mail group, apologies if it was rejected for some reason which means that I am double posting this - if this is the case could you please notify 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-tool...@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: Controlling the loaded object graph when using EntityProxy instances with latest RequestFactory feature
Further digging in the source code brought me to the * com.google.gwt.requestfactory.server.Resolver* class where the decision is made to send or don't send a certain property. More specifically the '* resolveClientProxy*' method where the '*AutoBeanVisitor*' is used to iterate over all the object properties/attributes. This code extracts documents the conditions which will allow a property to be sent or not: */* * Send the property if the enclosing type is a ValueProxy, if the owner * requested the property, or if the property is a list of values. */ Class? elementType = ctx instanceof CollectionPropertyContext ? ((CollectionPropertyContext) ctx).getElementType() : null; boolean shouldSend = isOwnerValueProxy || matchesPropertyRef(propertyRefs, newPrefix) || elementType != null ValueCodex.canDecode(elementType); if (!shouldSend) { return false; }* This learns me that I can get this working by: 1. Modify my DTO to extend ValueProxy instead of EntityProxy 2. Add the property names in the 'using' clause of the invocation statement 3. Hack ValueCodex to also include my 'complex data type' objects 4. Get lucky and get access to some override mechanism in a future version which would allow me to hook some code up to influence the 'shouldSend' value based on the 'domainEntity' and 'newPrefix' values The additional questions which pop up in my mind are as follows (same order): 1. What are the consequences? Because value proxy lacks the version/id features as employed by entity proxy there must be some magic which is lost. Is it only increased bandwidth because the object needs to be sent back instead of only changes? 2. Not an option 3. This is probable frowned upon :-) 4. Maybe as questionable as the previous point? Thanks a lot for your thoughts on 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-tool...@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: Implementing a ServiceLayerDecorator
Indeed, I got the source bits from the unit test code :-) Thanks for the pointer and code sample, I will experiment with your suggestions. -- 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-tool...@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.
Implementing a ServiceLayerDecorator
I am experimenting with the RequestFactory and came to a point where I want to create my own ServiceLayerDecorator. I have read trough the available documentation and found that I need to hook my custom service layer decorator up by calling this method with an instance of my decorator: 'ServiceLayer.create()'. The code which I have implemented looks like this: ServiceLayer serviceLayer = ServiceLayer.create(new MyServiceLayerDecorator()); SimpleRequestProcessor processor = new SimpleRequestProcessor(serviceLayer); final EventBus eventBus = new SimpleEventBus(); MyRequestFactory f = RequestFactoryMagic.create(MyRequestFactory.class); f.initialize(eventBus, new InProcessRequestTransport(processor)); Now, I tried to run with this code implemented in the 'onModuleLoad' which is not working (it is referencing server classes and giving the expected 'source not found for class ABC' errors). I came up with the idea to implement the code there because my old request factory initialisation code was also located there. I am wondering where I need to invoke the 'ServiceLayer.create' related code in order to get this working. Thanks a lot for your help! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
EntityProxy with complex data types
Our application uses a concept of 'complex data types' to represent values/properties of an object. Simply put, we have a 'MyInteger' variant for 'Integer' values, a 'MyDouble' variant for 'Double' values (none of them actually extends these types, they are rather wrappers). Our data object thus contain a number of fields who are all typed as these 'MyInteger', 'MyDouble' types. I am trying to re-use our data model objects as entity proxies, which is working fine except that the values of these 'fields' are only returned when I use the '.with(propertyName)' method on my request context instance. That approach is not really workable for me as we have many of these fields on all of our data objects. I do understand that in many cases, the experienced behavior is actually what you want (=retrieve objects on demand). I have done some digging around in this group as well as on the internet in general, but was not able to find a solution for my problem. I was hoping that anyone from the GWT team has some input on how I can get around this behavior. 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-tool...@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: Assertion Error when adding an element to the root panel
oke, i tried it with the html panel and it seems to work.. thanks for your help.. On 10 Dez., 20:24, Thomas Broyer t.bro...@gmail.com wrote: It happens because you try to RootPanel.get(...) an element that's inside another RootPanel or another widget. Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=3511#c8 for instance. -- 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-tool...@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.