Re: How to draw horizontal line (equivalent HR tag) in GWT 2.3 ?
This works for me: panel.add(new HTML(hr /)); On Tuesday, June 3, 2014 2:32:50 PM UTC-4, cellepo wrote: I tried dominique calcinelli's suggestion but could not figure out how to get around this error: Node cannot be inserted at the specified point in the hierarchy So I eneded up just making an hr/ with HTML Widget instead, per this other related discussion: https://groups.google.com/forum/#!topic/Google-Web-Toolkit/NMjozOU4UXk On Friday, February 22, 2013 11:46:26 AM UTC-5, dominique calcinelli wrote: First create the HTML hr/ tag : InlineHTML hrTag = new InlineHTML().wrap(Document.get().createHRElement()); Then use it as follows : myPanel.add(hrTag); -- 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.
General Tips / Layout Guidance
Hi all. Please excuse me as GWT is a fairly new thing for me. However, I've been tasked with developing additional functionality to an existing portal my company has developed/is developing in GWT. The portal I am talking about will be a portlet based portal (ie. a bunch of smaller portlet type containers/windows within a main portal that may contain whatever content). The main portal layout may be fully built using GWT widgets, however, it may also be a mixture of widgets and standard html via htmlpanels (the point is, the exact design of the outer part of the portal is likely to be completed by a different team and is thus out of my control and not yet fully specified). I've been playing around with some example portlets that may plug into such a portal and am discovering that some of my custom built widgets or cell widgets (composites) work just fine when added to the RootPanel or RootLayoutPanel however sometimes the don't display/render correctly or at all when I add them to a mock up portal i created and i end up having to explicitly set the size of some of the containers holding them to get them to render correctly similar to what we've seen in some previous posts, generally it's all just a bit fiddly. Anyway... my question is does anyone have any tips or suggestions for moving forward with this type of project? I'm not looking for an answer to anything in particular it would just be nice to hear of any pointers up front before I get fully started on this. Thanks, and any suggestions would be greatly appreciated. Thanks again! -- 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.
Development Guidance
Hi all. My team and I have been tasked with developing some sub functionality for a portal my company is developing and we are being asked to do it in GWT. Basically, this portal will be a typical portal with portlets (sub-containers) containing specific functionality. Having been working with GWT for only a short time, I am discovering that it can be quite fiddly when trying to get layouts to render as expected, especially when a mixture of HTML and GWT Widgets are being used (e.g. using an HTMLPanel). I have managed to work around some of these issues by either using layout panels up to the RootPanel or by explicitly setting the sizes of particular containers, however, I was just curious if anyone had any tips or suggestions for taking this bit of work forward. Has anyone learned any lessons they would like to share? Just a side note, my team will most likely not be developing the outer part of the portal, thus I cannot guarantee if it will be widget or html based, we will be doing some of the portlets. Thanks, any comments/suggestions are welcome! -- 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.
RequestFactory - AutoBean has been frozen - Reloading and editing
I realize this topic has been discussed before but I am having trouble finding a solution to my problem. Basically I have an editor that needs to edit the same entity in the database multiple times. I can edit the entity the first time but subsequent edits create the AutoBean has been frozen exception. The whole idea of this code it to load an entity, save the entity, reload the entity, save the entity On the server I am just looking up the entity from the database and returning the result. Here is the relevant code: editor.addSaveHandler(new SaveHandler() { @Override public void onSave(final SaveEvent event) { save(); } }); edit(); public void edit() { driver = GWT.create(Driver.class); driver.initialize(factory, editor); context = factory.context(); context.getRegisteredCompany().with(driver.getPaths()) .fire(new RFReceiverRegisteredCompanyProxy(eventBus, driver) { @Override public void onSuccess(final RegisteredCompanyProxy company) { context = factory.context(); driver.edit(company, context); context.save(company); } }); } public void save() { RequestContext ctx = driver.flush(); if (!driver.hasErrors()) { ctx.fire(new RFReceiverVoid(eventBus, driver) { @Override public void onSuccess(final Void response) { edit(); } }); } } Is there something that I am doing wrong with this code? Thanks! Steve -- 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.
Re: Chrome 24 and GWT
We went down with the same bug this morning.. Hundreds of Chrome users (actually they all doctors.. so big eeegh) were affected. Deployed emergency fix with this workaround in QA- and so far happy to report it has fixed the problem. Thanks for the post!! Steve On Sunday, January 13, 2013 2:12:20 PM UTC-8, Craig Mitchell wrote: Thanks Andy! Your workaround works great! +1 for not happy with Google! GWT 2.4 is supposed to be the stable build! We've been deferring going to GWT 2.5 because we wanted the stability. Summary for workaround is to add the following to your .gwt.xml file: !-- TEMP FIX UNTIL GOING TO GWT 2.5 -- !-- Fallback implementation, based on a timer -- replace-with class=com.google.gwt.animation.client.AnimationSchedulerImplTimer when-type-is class=com.google.gwt.animation.client.AnimationScheduler/ any when-property-is name=user.agent value=ie6/ when-property-is name=user.agent value=ie8/ when-property-is name=user.agent value=ie9/ when-property-is name=user.agent value=safari/ when-property-is name=user.agent value=opera/ /any /replace-with !-- Implementation based on mozRequestAnimationFrame -- replace-with class=com.google.gwt.animation.client.AnimationSchedulerImplMozilla when-type-is class=com.google.gwt.animation.client.AnimationScheduler/ when-property-is name=user.agent value=gecko1_8/ /replace-with !-- * END * -- On Saturday, January 12, 2013 5:20:20 AM UTC+11, Andy wrote: I posted the workaround that we're using to the chromium issue thread: http://code.google.com/p/chromium/issues/detail?id=158910 We have 100s of customers with servers deployed behind firewalls so this is going to be ugly. -- 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/-/20NUCaYEXOgJ. To post 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.4.0+ RequestFactory EntityProxy Validation
Thank you. I will implement one of the strategies mentioned there. Jens jens.nehlme...@gmail.com wrote:Thats a known quirk. Take a look at: https://groups.google.com/d/topic/google-web-toolkit/d9gZMff7RlI/discussion -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cl6a6utMBkcJ. To post 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.4.0+ RequestFactory EntityProxy Validation
I have found out a few more details relating to this problem. I have an Editor that implements LeafValueEditorListPhoneProxy. When a user wants to add a new PhoneProxy to my editor I call context.create(). Sometimes the user cancels the process. When the user cancels the process the PhoneProxy created remains in the list of beans that are sent to the server for constraint validation. This always fails because the PhoneProxy has been cleared out by the cancel operation. It seems like there may be a bug here. The canceled ProxyPhone bean shows up in the list to be validated but when I override the ServiceLayerDecorator.validate method bypassing validation it is removed prior to the persist() method. Also, Is there a way for me to tell the context to discard the canceled PhoneProxy? Thanks! Steve On Monday, November 12, 2012 1:44:15 PM UTC-7, Steven Jardine wrote: When trying to save a complex EntityProxy I receive validation errors on empty entities that should not be there. When I inspect the entity to be sent to the server I see a total of 6 entities to be saved but when I inspect the IdToEntityMap that is used for validation I see a total of 9 entities to be validated. The 3 additional entities are just empty entities. If I disable validation through my ServiceLayerDecorator the empty entities do not show up on the server, just the entities I submitted. Here is the entities I see when validate is called: {1@1...@com.mjnservices.lms.core.shared.model.proxy.EmailProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@42538425, 2@1...@com.mjnservices.lms.core.shared.model.proxy.PhoneProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@33d2158c, 3@1...@com.mjnservices.lms.core.shared.model.proxy.AddressProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@58d48756, 5@0...@com.mjnservices.lms.core.shared.model.proxy.PhoneProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@69014ca9, 1@0...@com.mjnservices.lms.core.shared.model.proxy.EmailProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@5450211a, 1@0...@com.mjnservices.lms.core.shared.model.proxy.AddressProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@35ca01cb, 3@0...@com.mjnservices.lms.core.shared.model.proxy.PhoneProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@58ad5d34, 3@0...@com.mjnservices.lms.core.shared.model.proxy.ContactProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@78b8f5f5, 3@0...@com.mjnservices.lms.core.shared.model.proxy.RegisteredUserProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@f62b12d} The first 3 are the empty ones and the last 6 are the ones I submitted. Does anyone have any ideas why I would have additional entities present for validation? Thanks! Steve -- 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/-/mwOF13XSJIwJ. To post 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 2.4.0+ RequestFactory EntityProxy Validation
When trying to save a complex EntityProxy I receive validation errors on empty entities that should not be there. When I inspect the entity to be sent to the server I see a total of 6 entities to be saved but when I inspect the IdToEntityMap that is used for validation I see a total of 9 entities to be validated. The 3 additional entities are just empty entities. If I disable validation through my ServiceLayerDecorator the empty entities do not show up on the server, just the entities I submitted. Here is the entities I see when validate is called: {1@1...@com.mjnservices.lms.core.shared.model.proxy.EmailProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@42538425, 2@1...@com.mjnservices.lms.core.shared.model.proxy.PhoneProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@33d2158c, 3@1...@com.mjnservices.lms.core.shared.model.proxy.AddressProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@58d48756, 5@0...@com.mjnservices.lms.core.shared.model.proxy.PhoneProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@69014ca9, 1@0...@com.mjnservices.lms.core.shared.model.proxy.EmailProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@5450211a, 1@0...@com.mjnservices.lms.core.shared.model.proxy.AddressProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@35ca01cb, 3@0...@com.mjnservices.lms.core.shared.model.proxy.PhoneProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@58ad5d34, 3@0...@com.mjnservices.lms.core.shared.model.proxy.ContactProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@78b8f5f5, 3@0...@com.mjnservices.lms.core.shared.model.proxy.RegisteredUserProxy=com.google.web.bindery.autobean.vm.impl.ProxyAutoBean@f62b12d} The first 3 are the empty ones and the last 6 are the ones I submitted. Does anyone have any ideas why I would have additional entities present for validation? Thanks! Steve -- 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/-/_vXJUeX07JAJ. To post 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 a breadbcrumb for NooBS like me.
From: SampleClient.java /** * Create a remote service proxy to talk to the server-side Greeting service. */private final GreetingServiceAsync greetingService = GWT .create(GreetingService.class); From: GreetingServiceAsync.java /** * The async counterpart of codeGreetingService/code. */ public interface GreetingServiceAsync { void greetServer(String input, AsyncCallbackString callback) throws IllegalArgumentException; } When GreetingServiceAsync is an interface, from which we obtain an object. - Yet... What the hell is in that thing! Can I answer my own question? What the heck does GWT do? FROM: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/core/client/GWT.html com.google.gwt.core.client Class GWT java.lang.Object com.google.gwt.core.client.GWT public final class GWT extends java.lang.Object Supports core functionality that in some cases requires direct support from the compiler and runtime systems such as runtime type information and deferred binding. Ok, sounding pretty hardcore. Lets grok this deferred binding thing: http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsDeferred.html Crazy, -- You received this message because you are subscribed to the Google Groups Google 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 Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load
http://www.stevenjaycohen.com/#!1312808158 Just spreading the word! -- 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/-/KQGZT4x70OkJ. To post 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 Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load
You can also just download OmniWeb (which uses the Safari 5.0.5 core) and not have to hack anything: http://www.omnigroup.com/products/omniweb/ -- 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/-/ebrCLGKdhI4J. To post 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 Compile problem, JdtCompiler, please !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I keep getting the error below and am so desperate for a solution. I have tried everything reodering the class path, look for the jasper.jdtcompiler and nothing seems to work. I don't have tomcat installed on my computer so there should be no duplicate jars. I am really lost and I don't know what to do. If someone can give me the step by step process to solving this problem I will be so happy. Compiling module com.GAEJ.GAEJ [ERROR] Unexpected java.lang.NoSuchFieldError: warningThreshold at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java: 340) at com.google.gwt.dev.javac.JdtCompiler $CompilerImpl.init(JdtCompiler.java:174) at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java: 616) at com.google.gwt.dev.javac.CompilationStateBuilder $CompileMoreLater.compile(CompilationStateBuilder.java:193) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java: 390) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java: 275) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java: 325) at com.google.gwt.dev.Precompile.precompile(Precompile.java:512) at com.google.gwt.dev.Precompile.precompile(Precompile.java:495) at com.google.gwt.dev.Precompile.precompile(Precompile.java:407) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java: 81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) -- You received this message because you are subscribed to the Google Groups Google 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 Browser Plugin for Mac Chrome?
http://www.stevenjaycohen.com/journal/no-gwt-chrome-osx-googlefail Any word about when I will be able to use Mac Chrome for Development Mode? Speed Tracer is great, but not being able to use Dev Mode in Chrome really slows down development. Steven www.stevenjaycohen.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-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: GWT deploy question (SVN)
Thanks for your quick reply Jeff. Since most of our code is PHP, we have been deploying with SVN onto the servers by simply checking out over there. So, with GWT, we were putting the whole project folder into svn and deploying the war folder to the server (using svn co) and then copying the war folder for each client (cp -R war foobar). For PHP this means that each client is still connected to the svn repository to make changes a bit easier. I am starting to see that there is a better way with GWT/Java. I would greatly appreciate Eclipse auto-build and I am checking out your using-ant-with-eclipse link above. Steven On Jan 30, 10:46 am, Jeff Chimene jchim...@gmail.com wrote: This really has nothing to do with subclipse. Use ant. Do you test on a local server? If so, you can have eclipse automatically push files from your workspace to your local server (once you've completed debugging via development mode). You can also use ant to push files to your production server via sftp. If you're not familiar with Eclipse auto-build, I can find a link that nicely details the various Eclipse steps. Finally, why are you versioning the stuff in war? That's not really necessary in a versioned environment. On Sat, Jan 30, 2010 at 8:33 AM, Steven Jay Cohen steven.jay.co...@gmail.com wrote: Hey everyone, I am using GWT and eclipse with Subclipse for SVN access. Here is what I am currently doing to deploy my projects to my servers. I am sure that there is a simpler way to achieve this, so after much head scratching, I thought I would bring my question to you. I compile my GWT project in Eclipse. I drop to a terminal and zip up the war/projectName folder. I press F5 in Eclipse to refresh. I commit to SVN (the real war/projectName folder is set to svn:ignore). I check the new version out on my server and unzip the war/projectName folder. When I allow war/projectName to be part of the SVN, I get all sorts of errors after a few rebuilds of the project. I am guessing that since this is the build folder, GWT must be clobebring the .files from SVN. Am I right on that assumption? Recently, I moved from an in-house SVN tohttp://beanstalkapp.com/for my SVN hosting. Beanstalk offers an auto-deploy to my servers using SFTP. Which works fine on PHP projects, but still seems to require me to zip up the war/projectName folder and unzip it on the server. I am guessing that I am missing some subtlty of SVN. Should I be marking that war/projectName folder in some other way asside from svn:ignore? Thanks in advance for your help, Steven -- You received 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Working with JSNI $wnd
I'm afraid I lost you somewhere... Suppose I make a global var canvasname, what should I assign it to then? The problem is that this defineBridgeMethodSubmitDone() is static, while in the JS function I need to call a function on a specific object. The name of the object is cnv_fu1, so I think $wnd.cnv_fu1 would return me my object. I do have that name in the variable canvasname, but I can't work out how to get my object. If you were pointing at something else, feel free to explain, I don't understand fully right now. Regards, Steven On Sep 25, 11:48 am, rudolf michael roud...@gmail.com wrote: I guess that you have a scope problem. function(canvasname, filename) { } canvasname is not accessible from outside the method scope. In order to make it global, you need to define in in your html header. by addsing scriptvar canvasname;/script Then you access it from anywhere you like using $wnd from native GWT or by its name if you wanna hit it from normal js code. regards, ruds On Fri, Sep 25, 2009 at 12:41 PM, Steven De Groote stevendegro...@gmail.com wrote: Hi, I'm struggling a bit with JSNI and would like your help. I have defined the following: public static native void defineBridgeMethodSubmitDone() /*-{ $wnd.submitDone = function(canvasname, filename) { $wnd.alert(Upload done: + canvasname + - + filename); var cnv = $wnd.canvasname; $wnd.alert(Form object: + cnv); var myvar = c...@be.sofico.montelli.mmc.client.custom.widgets.upload.srafileupload ::submitDoneInternal (Ljava/lang/String;)(filename); $wnd.alert(Incoming: + file + Processed: + form); } }-*/; Here the canvasname is a string with value cnv_fu1 I have checked with firebug, and there exists a $wnd.cnv_fu1 in my application. However, I cannot work out how to access this object. var cnv = $wnd.canvasname; is not working as I think it doesn't take the value of canvasname, rather just the string canvasname. Does anyone know how to solve this itching issue? Thanks, Steven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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: Working with JSNI $wnd
Yep, thanks a lot Paul! Now the alert shows me: Form object: [Canvas ID:cnv_fu1] Looks good to me, until I try this: var myvar = c...@be.sofico.montelli.mmc.client.custom.widgets.upload.srafileupload::submitDoneInternal (Ljava/lang/String;)(filename); I do have this defined on SRAFileUpload though: public int submitDoneInternal(String filename) { SRALogUtil.debug(submitDoneInternal called on form + uploadTargetId); return 10; } The generated JS looks like this: function defineBridgeMethodSubmitDone(){ $wnd.submitDone = function(canvasname, filename){ $wnd.alert('Upload done: ' + canvasname + ' - ' + filename); var cnv = eval('$wnd.' + canvasname); $wnd.alert('Form object: ' + cnv); var myvar = cnv.submitDoneInternal(filename); $wnd.alert('Incoming: ' + filename + ' Processed: ' + canvasname + ' Result: ' + myvar); } ; } function submitDoneInternal(filename){ $clinit_907(); $debug(impl, 'submitDoneInternal called on form ' + this.uploadTargetId, null); return 10; } Surprisingly, I get JS error submitDoneInternal is not a function. Any ideas on this? On Sep 25, 1:08 pm, Paul Robinson ukcue...@gmail.com wrote: Does this work: var cnv = eval($wnd. + canvasname); Steven De Groote wrote: I'm afraid I lost you somewhere... Suppose I make a global var canvasname, what should I assign it to then? The problem is that this defineBridgeMethodSubmitDone() is static, while in the JS function I need to call a function on a specific object. The name of the object is cnv_fu1, so I think $wnd.cnv_fu1 would return me my object. I do have that name in the variable canvasname, but I can't work out how to get my object. If you were pointing at something else, feel free to explain, I don't understand fully right now. Regards, Steven On Sep 25, 11:48 am, rudolf michael roud...@gmail.com wrote: I guess that you have a scope problem. function(canvasname, filename) { } canvasname is not accessible from outside the method scope. In order to make it global, you need to define in in your html header. by addsing scriptvar canvasname;/script Then you access it from anywhere you like using $wnd from native GWT or by its name if you wanna hit it from normal js code. regards, ruds On Fri, Sep 25, 2009 at 12:41 PM, Steven De Groote stevendegro...@gmail.com wrote: Hi, I'm struggling a bit with JSNI and would like your help. I have defined the following: public static native void defineBridgeMethodSubmitDone() /*-{ $wnd.submitDone = function(canvasname, filename) { $wnd.alert(Upload done: + canvasname + - + filename); var cnv = $wnd.canvasname; $wnd.alert(Form object: + cnv); var myvar = c...@be.sofico.montelli.mmc.client.custom.widgets.upload.srafileupload ::submitDoneInternal (Ljava/lang/String;)(filename); $wnd.alert(Incoming: + file + Processed: + form); } }-*/; Here the canvasname is a string with value cnv_fu1 I have checked with firebug, and there exists a $wnd.cnv_fu1 in my application. However, I cannot work out how to access this object. var cnv = $wnd.canvasname; is not working as I think it doesn't take the value of canvasname, rather just the string canvasname. Does anyone know how to solve this itching issue? Thanks, Steven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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: Working with JSNI $wnd
@Thomas Broyer: Both solutions work for retrieving the cnv object, but I still can't call the submitDoneInternal() ... Any ideas welcome! Steven On Sep 25, 4:17 pm, Thomas Broyer t.bro...@gmail.com wrote: On 25 sep, 13:08, Paul Robinson ukcue...@gmail.com wrote: Does this work: var cnv = eval($wnd. + canvasname); argl! Please: var cnv = $wnd[canvasname]; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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 -~--~~~~--~~--~--~---
Refresh content of Dictionary object
Hi, is there some way to dynamically refresh/change the content of the Dictionary i18n object? I currently have a script src=lang.js/script that provides for the content of my dictionary. This works fine, but now the lang.js content has changed (through some actions). Unfortunately, the changes are not reflected in my Dictionary. I tried this too: Element e = DOM.getElementById(MSGS_JS_TAG_NAME); if(e != null) { DOM.removeChild(RootPanel.get().getElement(), e); } e = DOM.createElement(script); DOM.setElementProperty(e, language, JavaScript); DOM.setElementProperty(e, src, url); DOM.setElementProperty(e, id, MSGS_JS_TAG_NAME); DOM.appendChild(RootPanel.get().getElement(), e); But still the values I get from Dictionary are not the same as those in the JS, until I eventually refresh the page. Is there a way I can do this without refreshing? Thanks, Steven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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: Translate localised messages in GWT app
Actually not all users should be able to have their own language, some users with a specific role should be able to translate the application. If that is possible inline that is fine, but I was thinking more like having a seperate page where a user is presented with all language strings and fields where he can fill in the translated value. After some research I'm thinking maybe we should use the gwt dynamic translations (somewhat like you mention mars1412), but this implies that all language strings of the application should be transferred all at once and then will be stored as a javascript variable on the client. It's not such a disaster, but it would be nice to prevent having to load all language strings at once. OT: And as for static translation, I'm not too impressed with how that works anyway, it should have been much simpler. I'm happy to hear any suggestions/ideas. Steven On Sep 9, 10:22 am, mars1412 martin.trum...@24act.at wrote: sure it is, but I would not recommend it you could store the translations in a databasetable and on startup read all translations for the current language, tranfer them to the client and then have a client-side mapping from your multilang keys to the actual translation then you could simply write an edit view for your translation table and let your users edit the translations however - this is a lot of work and you'll lose all the benefits of static string translation why would you want each user to have her own translations? On Sep 8, 3:56 pm, Steven De Groote stevendegro...@gmail.com wrote: Hi, we're looking for a way to enable users to change translations of a currently running GWT application. We are currently using static string i18n, but this has the disadvantage that we need to compile each time again when there is a language correction. I have looked in the documentation, but I can't find a way to somehow change these translated messages from a GWT webpage. Is this possible in any way? Thanks, Steven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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 -~--~~~~--~~--~--~---
Translate localised messages in GWT app
Hi, we're looking for a way to enable users to change translations of a currently running GWT application. We are currently using static string i18n, but this has the disadvantage that we need to compile each time again when there is a language correction. I have looked in the documentation, but I can't find a way to somehow change these translated messages from a GWT webpage. Is this possible in any way? Thanks, Steven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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: Port to OpenBSD
I'm sorry. What are you trying to port? GWT is just a java library. Pick an IDE that runs on your system, identify the GWT libaries for your project, and you are done. There is nothing to port. On Aug 27, 11:29 am, obvvbooo obvvbooo obvvb...@googlemail.com wrote: Hi, Is there any chance that somebody in this group would like to port it to OpenBSD, or make it run on OpenBSD? Although I'd like to do this, but I'm too unfamiliar with this kinds of tasks: shell, native apis, compiles... If nobody would like to do this. Any suggestion on steps how to do this besides reading port document and googling results? All help is appreciated. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Does GWT work in Snow Leopard?
All macs, aside from XServes, will boot in 32-bit mode under Snow Leopard. And, all macs will ship with Java v1.4-1.6 All you need to do is set Eclipse to use Java 1.5 and the problem is gone. On Aug 28, 12:52 pm, Jim Douglas jdoug...@basis.com wrote: So what's the official word on GWT and Snow Leopard? The impression that I get from Issue #2507, and earlier threads here, is that it's a no-go; copying Java 5 from Leopard isn't a solution. http://code.google.com/p/google-web-toolkit/issues/detail?id=2507 http://groups.google.com/group/google-web-toolkit/browse_thread/threa... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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 -~--~~~~--~~--~--~---
Java To Java RPC
Hi, Is it possible to call the GWT RPC Server from an remote Java client, instead of from GWT client? -steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Google plugin for Eclipse 3.5 Galileo
Is there a URL where we can check on the status of the plugin? Is there a beta test for the plugin? That would be a lot more efficient than people randomly asking here in the forums. Steven On Jul 7, 10:02 am, Miguel Méndez mmen...@google.com wrote: We are working on the release as we speak. It should be out shortly (weeks). On Mon, Jul 6, 2009 at 3:53 PM, P.G.Taboada pgtabo...@googlemail.comwrote: Hi, just wondering - I am just waiting for the release to rollout gwt 1.6 and the new ide on my project - how long do you think it will take to release the update? brgds Papick G. Taboada -- Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Google plugin for Eclipse 3.5 Galileo
Thanks for the quick reply. Just found something interesting: http://download6.yoxos.com/archivecreator/download/eclipse-macosx-cocoa-x86-09040ae18b97dc909a0fdda1ed.tar.gz Seems that Yoxos is distributing an eclipse 3.5 build with the Google Eclipse Plugin installed, and its working. If you'd rather use their main URL and roll your own eclipse: http://ondemand.yoxos.com/geteclipse/start In some quick testing the Google Plugin seems to be working just fine for me in this 3.5. Am I missing something? Or have they messed with your plugin to get it to work? Steven On Jul 9, 10:34 am, Rajeev Dayal rda...@google.com wrote: No, unfortunately there is no URL to track the status of the plugin, and we're not planning on sending out a beta release of the plugin at this time. You do make a good point though - it would be a good idea to have a public release schedule to properly set expectations. We're definitely planning on doing this; we just want to get a few key releases out the door before establishing a set schedule. On Thu, Jul 9, 2009 at 10:00 AM, Steven Jay Cohen steven.jay.co...@gmail.com wrote: Is there a URL where we can check on the status of the plugin? Is there a beta test for the plugin? That would be a lot more efficient than people randomly asking here in the forums. Steven On Jul 7, 10:02 am, Miguel Méndez mmen...@google.com wrote: We are working on the release as we speak. It should be out shortly (weeks). On Mon, Jul 6, 2009 at 3:53 PM, P.G.Taboada pgtabo...@googlemail.com wrote: Hi, just wondering - I am just waiting for the release to rollout gwt 1.6 and the new ide on my project - how long do you think it will take to release the update? brgds Papick G. Taboada -- Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Google plugin for Eclipse 3.5 Galileo
Rajeev, That makes sense. And, again, thanks for getting back to me so fast. Do you know if there is any plan to synchronize Google Eclipse Plugin releases to the Eclipse Release Train? It would be amazing if in the future, the release of Eclipse 3.6 were to perfectly coincide with the release of the newest Plugin from you all at Google :) Staying with Eclipse 3.4 until your wondrous plugin is ready for Galileo, Steven On Jul 9, 12:09 pm, Rajeev Dayal rda...@google.com wrote: Hey Steven, Thanks for pointing this out! We tried out the distribution that you sent, and it seems that the plugin sort of works. The New Web Application Wizard and GWT Compile dialogs do not work. Neither does JSNI refactoring. This makes sense, as these are exactly the problems that we're trying to address in the Eclipse 3.5 version of the plugin. It was never the case that the entire plugin did not work; it was just that certain parts of it were not functional due to API differences. To summarize, it seems that Yoxos has bundled a version of the plugin with Eclipse 3.5, but has not done anything special to make it more compatible with Eclipse 3.5. By bundling the plugin, they've circumvented the platform dependency roadblock that users would hit when trying to install the plugin from our update site, but none of the underlying problems have been solved. Rajeev On Thu, Jul 9, 2009 at 11:35 AM, Steven Jay Cohen steven.jay.co...@gmail.com wrote: Thanks for the quick reply. Just found something interesting: http://download6.yoxos.com/archivecreator/download/eclipse-macosx-coc... Seems that Yoxos is distributing an eclipse 3.5 build with the Google Eclipse Plugin installed, and its working. If you'd rather use their main URL and roll your own eclipse: http://ondemand.yoxos.com/geteclipse/start In some quick testing the Google Plugin seems to be working just fine for me in this 3.5. Am I missing something? Or have they messed with your plugin to get it to work? Steven On Jul 9, 10:34 am, Rajeev Dayal rda...@google.com wrote: No, unfortunately there is no URL to track the status of the plugin, and we're not planning on sending out a beta release of the plugin at this time. You do make a good point though - it would be a good idea to have a public release schedule to properly set expectations. We're definitely planning on doing this; we just want to get a few key releases out the door before establishing a set schedule. On Thu, Jul 9, 2009 at 10:00 AM, Steven Jay Cohen steven.jay.co...@gmail.com wrote: Is there a URL where we can check on the status of the plugin? Is there a beta test for the plugin? That would be a lot more efficient than people randomly asking here in the forums. Steven On Jul 7, 10:02 am, Miguel Méndez mmen...@google.com wrote: We are working on the release as we speak. It should be out shortly (weeks). On Mon, Jul 6, 2009 at 3:53 PM, P.G.Taboada pgtabo...@googlemail.com wrote: Hi, just wondering - I am just waiting for the release to rollout gwt 1.6 and the new ide on my project - how long do you think it will take to release the update? brgds Papick G. Taboada -- Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Relative Position on a Page
I figured it out by using Document.get().getScrollTop(). I have a lot of API to learn. On Jun 29, 3:59 pm, Steven Day steven@gmail.com wrote: Hello all, I am relatively new to the gwt programming and I love it, however I am having a small problem in regards to getting the relative coordinates inside an absolute panel. I am trying to use Document.get ().getBodyOffsetTop() to compensate for a scrolling up and down a page. Here is a snippet of sample code inside an class that extends AbsolutePanel I am using for testing: public class PhalanxWebMapView extends AbsolutePanel { . . . public void onBrowserEvent(Event event) { Integer posX = event.getClientX() - this.getAbsoluteLeft() + Document.get().getBodyOffsetLeft(); Integer posY = event.getClientY() - this.getAbsoluteTop() + Document.get().getBodyOffsetTop(); Window.alert( Document.get().getBodyOffsetTop()); // Testing for the value super.onBrowserEvent(event); } } When I return the body offset I get a value of 0 no matter how far I scroll on the page. I've tested this on Firefox 3.5 and Epiphany so far. Am I using this correctly? Thank You, Steven Day --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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: Images won't load from full pathname in FireFox
Thanks, I'll proceed in the Servlet direction. On Jun 15, 7:46 pm, Dean S. Jones deansjo...@gmail.com wrote: You can't use a file:: URI to load an image ( that would attempt to load it from the machine the browser is on ), you can in theory load an image from bytes via RPC ( tho it's not worth the highly incredible ugliness of hackery to do that ) You can sorta write images to the filesystem and serve them, if you can somehow map the folder into your document root, but writing to your WebRoot in a J2EE container is a very bad idea. So, your pretty much left with a Servlet. On Jun 15, 5:57 pm, Steven sglic...@ticom-geo.com wrote: BTW, after an image query I'm getting the image's URI and was planning to load the image file directly into the brower. Alternatively I can load it into a servlet and use GWT RCP to move it into the browser. The image files are 100K and up. Would using the servlet like this be generally advisable over loading directly into the browser? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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 -~--~~~~--~~--~--~---
Images won't load from full pathname in FireFox
The example code below works for IE but not FireFox. (I'm using GWT 1.6.4). Is there a consistent, programatic way I can load image files with URI pathnames into FireFox and IE? (My application involves manipulating images). public void onModuleLoad() { Image image = new Image(file:///squirlSaber.jpg); RootPanel.get(imageView).add(image); } Kind Regards, Steven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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: Images won't load from full pathname in FireFox
On Jun 15, 1:02 pm, Rajneesh Aggarwal rajneesh.aggar...@gmail.com wrote: Why don't you try ImageBundle? Thanks for your quick reply. The end user dynamically queries for these images (they don't exist at startup time, so compile-time bundling won't work). Any other ideas would be greatly appreciated. Thanks, Steven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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: Images won't load from full pathname in FireFox
BTW, after an image query I'm getting the image's URI and was planning to load the image file directly into the brower. Alternatively I can load it into a servlet and use GWT RCP to move it into the browser. The image files are 100K and up. Would using the servlet like this be generally advisable over loading directly into the browser? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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 -~--~~~~--~~--~--~---
What Eclipse plugins work best with GWT?
I have PDT-minimal install (for php development), JDT-minimal install (for basic support of the Google plugin), and SVN (Subclipse/SVNKit). What other Eclipse plugins should I check out to get the most from GWT? Note: I'm not a fan of GWT Designer or Cypal. I am more wondering if there are Java plugins that help with GWT development, or something to enhance the GWT/PHP experience. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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 Theme Generator - HELP!!
I actually movd from NetBeans to Eclipse because Google's plugin was that much better than the one in NetBeans. I do miss a lot about NetBeans, but more and more of my workload is in GWT. So, that takes precedence over NetBeans' PHP and OpenLaszlo implementations. On May 7, 11:35 am, Alex Rudnick a...@google.com wrote: Hello, I haven't personally tried this, but it looks like there's a nice plugin for NetBeans that should help make sure your GWT classpaths get set up right.https://gwt4nb.dev.java.net/ Although, if you're not very tied to NetBeans, may we suggest that there's also a very nice plugin for Eclipse, here :)http://code.google.com/eclipse Hope this helps! On Thu, May 7, 2009 at 3:48 AM, Fanie fan...@bankserv.co.za wrote: My inherits doesn't seem to find the theme. I'm using Netbeans 6.5. Where exactly do I need to put the jar file and how should I inherit it? I'm very new at this and was thrown in at the deep end. -- Alex Rudnick swe, gwt, atl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: PHP programmer - is GWT for me?
My situation is quite similar to yours. I've decided to take all future PHP faceless and use GWT to build all client-facing pages. I can communicate with my PHP libraries by passing variables around. Having done some Object Oriented PHP code, picking up Java hasn't been that difficult. And, as I get better with GWT, I plan on upgrading existing client-facing PHP to GWT. I am looking into tools like extGWT, but haven't made any decisions yet on toolkits. Steven On May 12, 10:23 am, pappfer papp...@gmail.com wrote: Hi! I'm a web programmer. I mainly code in PHP with MySQL and also familiar with XHTML and CSS. I also have some Java and basic JavaScript knowledge. But I never used Ajax before. I was thinking that it might not worth to study how Ajax works cause it'd take lots of time and I thought using a Javascript library would probably be a better choice. I read a lot about them and I found Dojotoolkit to be the best for me. But then I read about GWT that it makes super-fast Javascript which would be great for me and I would also get more into Java. So it seemed perfect for me. I read the documentation and saw how to make a simple client application. But then as a web programmer the most important thing for me was to make use of client-server communication to put some Ajax power into my PHP applications. But I found this part quite difficult. I use Eclipse PDT and the GWT's Eclipse plugin. I realized that when creating a new web application and I'm copying my PHP files onto that application folder I can't use PDT's tool for PHP cause I can only see the project if I'm using Java perspective. Overall, my goal is to put some Ajax power in my PHP applications. For example I have a website about mobile phones and I store all phones and all the data in a MySQL database. I want them to be searchable without reloading the page. Or I want to click on a Next phone button to see the next phone in the database without reloading the page or a Compare phones button and want to compare two selected phones without reloading the page. My questions are: - Is GWT for me? Or I'd rather use Dojotoolkit or another Javascript library? - What's the best way to set up (organize) a PHP project and connect it with GWT? (I mean folder structure and everything) - What's the best to use for client-server communication: JSON, XML or something else? (if I want to do stuffs like at the above examples) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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 Eclipse Plugin
If you are willing to change Eclipse distros, you might try: http://ondemand.yoxos.com/geteclipse/start Good plugin management and it is compatible with GEP. All you need to make sure that you have installed is: Eclipse Java Developement Tools On May 12, 9:46 am, Rohit Vadera rohitvad...@gmail.com wrote: Following is my MyEclipse version.Error Message says it needs org.eclipse.something something of 3.4 MyEclipse Enterprise Workbench Version: 5.0.1 GA Build id: 20060810-5.0.1-GA (c) Copyright Genuitec, L.L.C. 2000, 2005. All rights reserved. Visithttp://www.myeclipseide.com/ This product includes software developed by the following Eclipse Foundationhttp://www.eclipse.org/ Apache Software Foundationhttp://www.apache.org/ On May 12, 5:59 pm, Miguel Méndez mmen...@google.com wrote: The plugin is compatible with Eclipse 3.4. These problem usually occur because of conflicting dependencies with other plugins. What error is the installation giving you? (What is the incompatibility?) On Tue, May 12, 2009 at 5:46 AM, Rohit Vadera rohitvad...@gmail.com wrote: Is it not compatible for MyEclipse installed above Eclipse 3.4? It gives me error of non compatibilty once i select the plugin to be installed. Thanks On May 12, 2:33 pm, Rohit Vadera rohitvad...@gmail.com wrote: i got it On May 12, 2:07 pm, Pints rohitvad...@gmail.com wrote: Can anyone please provide me the link from where i can download the new plugin for GWT launched recntly.- Hide quoted text - - Show quoted text - -- Miguel- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: color control in a textarea for chat application
Great suggestion! I have added a stylesheet file into the 'gwtOutput' folder of my web dynamic project, with the correct styles which you suggested: now it works fine. Thanks! Steve On Feb 5, 7:37 am, Damien Picard picard.dam...@gmail.com wrote: Sorry, the correct styles are : .gwt-HTML { font-family: Arial, sans-serif; font-size: 10px;} .gwt-HTML-blue{ color: blue; } (I've added text-color in order to test this declaration :p ) 2009/2/5 Damien Picard picard.dam...@gmail.com Hi ! I think you've got an error in your css declaration text-color. Currently, this declaration is not really compliant. You have to use color instead of. I've tried what you have done, and it works for me : Entry Point module : public class testApplication implements EntryPoint { private HTML html; private Button clickMeButton; public void onModuleLoad() { RootPanel rootPanel = RootPanel.get(); clickMeButton = new Button(); rootPanel.add(clickMeButton); clickMeButton.setText(Blue Text !); clickMeButton.addClickListener(new ClickListener() { public void onClick(Widget sender) { getHtml().addStyleDependentName(blue); } }); html = new HTML(Blue text ?); rootPanel.add(html, 9, 48); html.setSize(467px, 309px); html.setStyleName(gwt-HTML); } public HTML getHtml() { return html; } } As you can see, I've explicitly defined the styleName before setting the dependant Style Name. And in my application, I've defined an extended style sheet in the xml : stylesheet src=testApplication.css/ In this style sheet, i've defined the two styles : .gwt-HTML { font-family: Arial, sans-serif; font-size: 10px; } .gwt-HTML-blue{ text-color: blue; } And it works fine for me. Regards, Damien 2009/2/4 Steven cannata.stef...@gmail.com Hi all, I would like to create a non-editable color-controlled (or style- controlled) textArea for a GWT chat application. For instance I woud like to change the color (or the text-style) of the messages depending on the message sender. To do that, after reading previous posts on this group I created a HTML object, adding some very basic styles to the standard.css file. In fact my application inherits the standard theme, as I can read from the xml configuration file: inherits name=com.google.gwt.user.theme.standard.Standard/ So for instance I added the .gwt-HTML-blue {text-color: blue} to the standard.css file the and in my application i invoked the method: HTMLObject.addSyleDependentname(blue) BUT actually nothing happens: my message in the textArea is still black instead of blue. Why? I tried also to create a RichTextArea object and I tried to invoke the method RichTextAreaObject.getBasicFormatter().toggleBold(), in order to set my message as bold, BUT it doesn't work Thanks in advance, bye Steve- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Caching question - using GWT to create Google Gadgets
I noticed in the comiled code a lot of calls using: _IG_GetCachedUrl() that's excellent! and just the way I want it. However - that does then leave something to be desired when you are developing and making changes frequently. In those case it would be nice to have { refreshInterval: 0 } passed to the function. Ideally you would be able to set some sort of DEBUG_P = 1 flag in the file that control this behavior. Any suggestions? And if I may be so forward - if there isn't yet a straightforward solution - maybe this can be a request for future versions of the GWT On Feb 3, 1:48 pm, Steven steven.pul...@gmail.com wrote: thanks for the info! especially the note about -PRETTYoutput (I should have thought of that!) On Feb 3, 5:41 am, Eric Ayers zun...@google.com wrote: On Mon, Feb 2, 2009 at 9:40 PM, Steven steven.pul...@gmail.com wrote: I have a question regarding using the GWT to create gadgets for iGoogle. I have seenhttp://code.google.com/docreader/#p=gwt-google-apiss=gwt-google-apis... which details how you can now use the legacy gadgets API with GWT to create gadgets. I also noticed that the way the GWT seems to achieve cross browser compatibility is to create multiple javascript files and dynamically include the right ones. I am worried about the performance hit of hosting uncached files on my webserver. My question is this: does the GWT cache requests to these javascript files? No, GWT doesn't actually cache them. It routes the request for your compiled resources through a proxy which is supposed to cache them (for up to 1 hour, I believe) Historically my process has been to have the entiregadgetinline as type html and where necessary only include external resources after using a call to _IG_GetCachedUrl so that they are proxies by google. So to clarify, my question is: When GWT spans it's code across multiple files does it use _IG_GetCachedUrl to cache the request of external javascript - or if not does it at least do something to ensure that the javascript will not be requested (from my webserver) every time a user loads thegadget. Turn onprettymode when you compile, and then look at the generated .gadget.xml file (add -stylePRETTYto the command line) and you'll see that this is exactly the strategy used in the compiledgadget. just curious because on of the things I love about the wholegadget space is that it has let me develop interesting projects in a way that doesn't put much load on my puny server. There are things you need to watch out for. Make sure you load your .css files through a script take in your module definition (.gwt.xml). Also, images could be an issue, but you can translate the urls to images to go through the proxy with the same _IG_GetCachedUrl call manually, or you can use the new GadgetImage class (in the next public update, due out very shortly). thanks! -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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 -~--~~~~--~~--~--~---
color control in a textarea for chat application
Hi all, I would like to create a non-editable color-controlled (or style- controlled) textArea for a GWT chat application. For instance I woud like to change the color (or the text-style) of the messages depending on the message sender. To do that, after reading previous posts on this group I created a HTML object, adding some very basic styles to the standard.css file. In fact my application inherits the standard theme, as I can read from the xml configuration file: inherits name=com.google.gwt.user.theme.standard.Standard/ So for instance I added the .gwt-HTML-blue {text-color: blue} to the standard.css file the and in my application i invoked the method: HTMLObject.addSyleDependentname(blue) BUT actually nothing happens: my message in the textArea is still black instead of blue. Why? I tried also to create a RichTextArea object and I tried to invoke the method RichTextAreaObject.getBasicFormatter().toggleBold(), in order to set my message as bold, BUT it doesn't work Thanks in advance, bye Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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: Caching question - using GWT to create Google Gadgets
thanks for the info! especially the note about -PRETTY output (I should have thought of that!) On Feb 3, 5:41 am, Eric Ayers zun...@google.com wrote: On Mon, Feb 2, 2009 at 9:40 PM, Steven steven.pul...@gmail.com wrote: I have a question regarding using the GWT to create gadgets for iGoogle. I have seenhttp://code.google.com/docreader/#p=gwt-google-apiss=gwt-google-apis... which details how you can now use the legacy gadgets API with GWT to create gadgets. I also noticed that the way the GWT seems to achieve cross browser compatibility is to create multiple javascript files and dynamically include the right ones. I am worried about the performance hit of hosting uncached files on my webserver. My question is this: does the GWT cache requests to these javascript files? No, GWT doesn't actually cache them. It routes the request for your compiled resources through a proxy which is supposed to cache them (for up to 1 hour, I believe) Historically my process has been to have the entiregadgetinline as type html and where necessary only include external resources after using a call to _IG_GetCachedUrl so that they are proxies by google. So to clarify, my question is: When GWT spans it's code across multiple files does it use _IG_GetCachedUrl to cache the request of external javascript - or if not does it at least do something to ensure that the javascript will not be requested (from my webserver) every time a user loads thegadget. Turn on pretty mode when you compile, and then look at the generated .gadget.xml file (add -style PRETTY to the command line) and you'll see that this is exactly the strategy used in the compiledgadget. just curious because on of the things I love about the wholegadget space is that it has let me develop interesting projects in a way that doesn't put much load on my puny server. There are things you need to watch out for. Make sure you load your .css files through a script take in your module definition (.gwt.xml). Also, images could be an issue, but you can translate the urls to images to go through the proxy with the same _IG_GetCachedUrl call manually, or you can use the new GadgetImage class (in the next public update, due out very shortly). thanks! -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google 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 -~--~~~~--~~--~--~---
Caching question - using GWT to create Google Gadgets
I have a question regarding using the GWT to create gadgets for iGoogle. I have seen http://code.google.com/docreader/#p=gwt-google-apiss=gwt-google-apist=Gadgets which details how you can now use the legacy gadgets API with GWT to create gadgets. I also noticed that the way the GWT seems to achieve cross browser compatibility is to create multiple javascript files and dynamically include the right ones. I am worried about the performance hit of hosting uncached files on my webserver. My question is this: does the GWT cache requests to these javascript files? Historically my process has been to have the entire gadget inline as type html and where necessary only include external resources after using a call to _IG_GetCachedUrl so that they are proxies by google. So to clarify, my question is: When GWT spans it's code across multiple files does it use _IG_GetCachedUrl to cache the request of external javascript - or if not does it at least do something to ensure that the javascript will not be requested (from my webserver) every time a user loads the gadget. just curious because on of the things I love about the whole gadget space is that it has let me develop interesting projects in a way that doesn't put much load on my puny server. 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 -~--~~~~--~~--~--~---
chat GWT webapp on Android: why do I sometimes lose messages ??
Hallo everybody, I have just programmed a chat application to be applied to Android (SDK m5-rc15) and to as many browsers as possible. At present I am exploiting only the GWT (1.5.1) API, with the 'smack' library which allows connection to a xmpp server. (For now I'm using just Firefox as XMPP server and a Spark client). I have a big problem: my application works perfectly with many browsers (Chrome, IE, Mozilla, Opera), but it does not work so well on Android. In fact, on Android I cannot send and receive real-time messages: sometimes I lose message, sometimes the message I send from one side (for example from the Spark client) appears on the other side, that is on my application running on Android, only after sending a further message from my application itself. My question is : why does my application not work only with Android?? Do I have to change any configuration parameter on Android for that? Some further information about the webapp architecture: 1) In my application the application server opens a connection to a XMPP server, before opening a chat to any Spark client. 2) On my server-side I have 4 chat methods,which I invoke from the client by means of RPC calls. Since no flush is allowed by the http protocol, actually I am appending all received message to a inbox list (by means of a message listener in the chat method). The client receives this messages invoking the receive method on server-side. Here I attach the four chat methods: public boolean connect() { try { connection.connect(); connection.login(username,psw); } catch (XMPPException e) { e.printStackTrace(); return false; } return true; } public boolean chat(String participant){ participantName = participant.substring(0, participant.lastIndexOf('@')); this.chat1 = connection.getChatManager().createChat(participant, new MessageListener() { public void processMessage(Chat chat1, Message message) { msg = participantName + : + message.getBody(); System.out.println(Received message -- + msg); synchronized(messageList){ messageList.add(msg); messageList.notify(); } } }); return true; } public String send(String textIn) { try { chat1.sendMessage(textIn); } catch (XMPPException e) { e.printStackTrace(); } textOutMod = username + : + textIn; return textOutMod; } public String receive() { synchronized (messageList){ while (messageList.size() == 0){ try{ messageList.wait(); } catch (InterruptedException ignore){ } } textInMod = ; for (int j = 0; j messageList.size(); j++) { if (textInMod.length() 0) textInMod = textInMod + \n + messageList.elementAt(j); else textInMod = (String)messageList.elementAt(j); } messageList.clear(); } return textInMod; } thks in advance and sorry for bad English, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Two async calls at the same moment
Hi, I'm having a bit of trouble solving an issue I have with asynchronous server calls. Currently, I have a panel which retrieves some data from a webservice, and in onSuccess I build the datastore to show my data table. However, this should be changed that my table is only built after the completion of 2 different webservice calls (possibly even more). Any pointers how I could attack this problem would be greatly appreciated! Thank you, Steven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---