Re: JAXB in model classes also used by GWT RPC
Hi, I had the same problem a while ago and asked exactly the same question. Why don't jaxb annotations work? I remember reading somewhere that if things won't break if gwt cannot find annotation source files, but I'm not sure if I really read this or not. Well, I didn't get an answer to that question, but I did get a suggestion for how to make things work for me. I took the jaxb source code and put the annotation files to my project so gwt can compile them. Pauli On 22 joulu, 22:59, Eric wrote: > I have about 20 "model" classes that I use with GWT RPC and also > persist into a database using JPA. This is all working fine. On the > server side I need to do some XML processing and would like to use > some JAXB annotations on these model classes. However it complains > with: > > 15:26:47.005 [ERROR] [gwtui] Line 18: The import javax.xml.bind cannot > be resolved > > Is there any way of getting this to work? Why does it like my JPA > annotations just fine but reject the JAXB ones? > > How have other people structured their projects that use GWT, > databases and webservices? > > Thanks, > Eric -- You received 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.
GWT Bindings for Google Map Utilities
If you use the gwt-maps library to add map capabilities to your GWT apps then you might also be interested in the gwt-maps-utility library, it extends the gwt-maps library with some useful map utilities: http://code.google.com/p/gwt-maps-utility/ Samples are available as well: http://gwt-maps-utility.appspot.com/samples/v1.0/HelloMapsUtility.html Bobby -- You received 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.
NumberFormat not understanding its own output?
I can't get the NumberFormat working, it seems like it can't parse its own output. I have copied following from the watch-panel in Eclipse: /* * NumberFormat decimalFormat = com.google.gwt.i18n.client.NumberFormat.getDecimalFormat(); */ "decimalFormat.format(1234.5)"= "1 234,5" "decimalFormat.parse("1 234,5")" => java.lang.NumberFormatException!? "decimalFormat.parse("1.234,5")" => java.lang.NumberFormatException "decimalFormat.parse("1,234.5")" => java.lang.NumberFormatException "decimalFormat.parse("1 234.5")" => java.lang.NumberFormatException "decimalFormat.parse("1234,5")"= 1234.5 "decimalFormat.getPattern()"= "#,##0.###" NumberConstants of my locale: /* * NumberConstants numberConstants = GWT.create (NumberConstantsImpl.class); * (NumberConstantsImpl_cs) */ "numberConstants.decimalSeparator()"= "," "numberConstants.groupingSeparator()"= " " "numberConstants.monetarySeparator()"= "," "numberConstants.monetaryGroupingSeparator()"= " " I assume following does not matter but just in case... ...this is how my machine's OS formats numbers: Number: 123,456,789.00 Currency: 123 456 789,00 Kč ...this is how the server's OS formats numbers: Number: 123 456 789,00 Currency: 123 456 789,00 Kč Am I missing something? Best regards J. Záruba -- You received 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.
yuiiipmlM0" pdpl'm="?m
llp Sent from my iPhone -- You received 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: Question on Code Generation inconjunction with JS-Libraries to optimize size
Tom, > I thought about using the GWT Code Generation to get informed whenever > wrapper classes are used but as far as I understood this code > generation only jumps in when I use GWT.create() but this means my > Library users need to use GWT.create(AWrapper.class) instead of "new > AWrapper()" which is not very natural. If I understand your issue correctly, I think you could make it work by having your AWrapper constructor call GWT.create(AWrapperImpl.class) and delegate all of AWrapper's methods to the AWrapperImpl. That brings generators into the mix without creating a burdensome API. Make sense? - Isaac On Tue, Dec 22, 2009 at 3:17 PM, Tom wrote: > Hi, > > I've been banging my head against something people here might probably > be able to help me. I've written a wrapper for a extensive JavaScript > Library which itself has a toolchain to optimize JS-Script code by > analyzing the used JS-API. > > As a small example say the js-library has: > * a.js > * b.js > * c.js > > And my wrappers look like this: > ---8<--- > AWrapper { > // ... > } > > BWrapper { > // ... > } > > CWrapper { > // ... > } > ---8<--- > > Now my problem is that if I want to use it with GWT I need to findout > which Wrapper-Classes the GWT application uses, spit out informations > I can feed into the external toolchain to create an optimized JS- > Library-Version. > > I thought about using the GWT Code Generation to get informed whenever > wrapper classes are used but as far as I understood this code > generation only jumps in when I use GWT.create() but this means my > Library users need to use GWT.create(AWrapper.class) instead of "new > AWrapper()" which is not very natural. > > My ideal thing would be to have annotate my Java-Wrappers with > something like this: > > ---8<--- > @JSResource("a.js") > AWrapper { > // ... > } > > @JSResource("b.js") > BWrapper { > // ... > } > > @JSResource("c.js") > CWrapper { > // ... > } > ---8<--- > > And somehow plug myself into the GWT-Compiler toolchain and get > informed when ever such a class is visited similar to what would > happen when I use GWT.create(). Does anybody have an idea or a > document, example source I can read though myself? > > -- > > You received 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. > > > -- You received 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.
javax/naming/NamingException
Hi, regarding your post at http://code.google.com/p/googleappengine/issues/detail?id=1240 , is there any requirement to modify PersistenceAnnotationBeanPostProcessor for spring3.0 rc3 ? or only need to modify if using spring 2.5? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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.
change style to Menubar
Hi, I would like to change style to a menu, I change the style for MenuBar & MenuItem, but when I can't change style to the popup... I would like to remove the shadow and the border... In my css i wrote: .gwt-MenuBar .gwt-MenuItem { background-color: green;} .gwt-MenuBar .menuPopupTopLeft { background-color: red;} .gwt-MenuBar .menuPopupBottomLeft { background-color: red;} .gwt-MenuBar .menuPopupBottomLeftInner {background-color: red;} .gwt-MenuBar .menuPopupBottomCenter { background-color: red;} .gwt-MenuBar .menuPopupBottomCenterInner { background-color: red;} .gwt-MenuBar .menuPopupBottomRight {background-color: red;} .gwt-MenuBar .menuPopupBottomRightInner { background-color: red;} .gwt-MenuBar .menuPopupTopLeft { background-color: red;} .gwt-MenuBar .menuPopupTopLeftInner { background-color: red;} .gwt-MenuBar .menuPopupTopCenter { background-color: red;} .gwt-MenuBar .menuPopupTopCenterInner { background-color: red;} .gwt-MenuBar .menuPopupTopRight { background-color: red;} .gwt-MenuBar .menuPopupTopRightInner { background-color: red;} .gwt-MenuBar .menuPopupMiddleLeft { background-color: red;} .gwt-MenuBar .menuPopupMiddleLeftInner { background-color: red;} .gwt-MenuBar .menuPopupMiddleCenter { background-color: red;} .gwt-MenuBar .menuPopupMiddleCenterInner { background-color: red;} .gwt-MenuBar .menuPopupMiddleRight { background-color: red;} .gwt-MenuBar .menuPopupMiddleRightInner { background-color: red;} And I can see the item green but the popup is still white with shadow... How can I do? Thanks Ale -- You received 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: CssResource problem with specific webkit CSS instructions
Yep, for now you need to escape the first hyphen. See comment #2 and #7 on this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=3595 This should maybe be more prominent in current documentation as it's been coming up a lot. On Dec 22, 5:42 pm, fvisticot wrote: > I'im using CssResource. > When i try to add a specific webkit instruction (-webkit- > transform:translateX(0)), the compiler returns the following error: > 00:37:18.859 [WARN] [mobilegwtnative] Line 2 column 59: encountered > "-". Was expecting one of: "}" ";" > > Is there a workarround ? > > Any idea to solve my pb ? -- You received 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.
Code Licensing
This might not be the best forum for this question, but it specifically involves GWT code and should be simple, so I'll give it a shot. I'm in the process of taking classes from some Google-written GWT modules (both java and jsni code), mangling them, and writing code on top of the result. Obviously this is fine because of the original license, but as I post my code online (still under the Apache 2.0 License), I'm wondering what other people in a similar situation have done with the notice on the top of source files. Specifically, for those files that qualify as "Derivative works" but contain significant code copyrighted by Google, how have people best fulfilled their obligations to "2. You must cause any modified files to carry prominent notices stating that You changed the files; and 3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and 4. ...You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License." http://www.apache.org/licenses/LICENSE-2.0.html 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.
CssResource problem with specific webkit CSS instructions
I'im using CssResource. When i try to add a specific webkit instruction (-webkit- transform:translateX(0)), the compiler returns the following error: 00:37:18.859 [WARN] [mobilegwtnative] Line 2 column 59: encountered "-". Was expecting one of: "}" ";" Is there a workarround ? Any idea to solve my pb ? -- You received 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: Unable to run DevMode
The jar is untouched. I also have configured the startupUrl in my eclipse plug-in Program Arguments. I can debug, however it only works after the second time I put the address in the browser's address bar. The first time I get that exception. On Dec 22, 11:40 am, Rajeev Dayal wrote: > On Mon, Dec 21, 2009 at 11:57 PM, Sam E. wrote: > > I am having the same issue right now. > > > 00:00:00.684 [WARN] Error processing classpath URL 'file:/Users/ > > ssaammee/.m2/repository/com/sun/jdmk/jmxtools/1.2.1/ > > jmxtools-1.2.1.jar' > > java.util.zip.ZipException: error in opening zip file at > > java.util.zip.ZipFile.open(Native Method) at > > java.util.zip.ZipFile.(ZipFile.java:114) at > > java.util.jar.JarFile.(JarFile.java:133) at > > java.util.jar.JarFile.(JarFile.java:97) at > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl > > (ResourceOracleImpl.java:175) at > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries > > (ResourceOracleImpl.java:223) at > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries > > (ResourceOracleImpl.java:249) at > > com.google.gwt.dev.resource.impl.ResourceOracleImpl. > > (ResourceOracleImpl.java:293) at > > com.google.gwt.dev.resource.impl.ResourceOracleImpl. > > (ResourceOracleImpl.java:283) at > > com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449) at > > com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule > > (ModuleDefLoader.java:287) at > > com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath > > (ModuleDefLoader.java:141) at > > com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867) at > > com.google.gwt.dev.DevMode.loadModule(DevMode.java:425) at > > com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340) at > > com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953) at > > com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690) at > > com.google.gwt.dev.DevMode.main(DevMode.java:251) > > > On Dec 21, 4:55 pm, Raziel wrote: > > > Hi, I just upgraded my application from 1.7.0 to 2.0, and while > > > everything is working fine in production mode, when I try to run > > > Development mode I get the following error: > > > > Loading modules > > > com.appiancorp.gwt.appbuilder.ApplicationBuilderDev > > > Public resources found in... > > > [WARN] Error processing classpath URL 'file:/C:/Documents > > > %20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jdmk/jmxtools/ > > > 1.2.1/jmxtools-1.2.1.jar' > > > java.util.zip.ZipException: error in opening zip file > > > at java.util.zip.ZipFile.open(Native Method) > > > at java.util.zip.ZipFile.(ZipFile.java:114) > > > at java.util.jar.JarFile.(JarFile.java:133) > > > at java.util.jar.JarFile.(JarFile.java:97) > > > at > > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl > > > (ResourceOracleImpl.java:175) > > > at > > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries > > > (ResourceOracleImpl.java:223) > > > at > > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries > > > (ResourceOracleImpl.java:249) > > > at com.google.gwt.dev.resource.impl.ResourceOracleImpl. > > > (ResourceOracleImpl.java:293) > > > at com.google.gwt.dev.resource.impl.ResourceOracleImpl. > > > (ResourceOracleImpl.java:283) > > > at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449) > > > at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule > > > (ModuleDefLoader.java:287) > > > at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath > > > (ModuleDefLoader.java:141) > > > at > > com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867) > > > at com.google.gwt.dev.DevMode.loadModule(DevMode.java:425) > > > at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340) > > > at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953) > > > at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690) > > > at com.google.gwt.dev.DevMode.main(DevMode.java:251) > > > [WARN] Error processing classpath URL 'file:/C:/Documents > > > %20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jmx/jmxri/ > > > 1.2.1/jmxri-1.2.1.jar' > > > java.util.zip.ZipException: error in opening zip file > > > at java.util.zip.ZipFile.open(Native Method) > > > at java.util.zip.ZipFile.(ZipFile.java:114) > > > at java.util.jar.JarFile.(JarFile.java:133) > > > at java.util.jar.JarFile.(JarFile.java:97) > > > at > > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl > > > (ResourceOracleImpl.java:175) > > > at > > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries > > > (ResourceOracleImpl.java:223) > > > at > > > com.google.gwt.dev.resource.impl.ResourceOr
Re: GWT 2.0 - com.google.gwt.user.client.rpc.IsSerializable is mandatory again?
Hi all! I tested this behavior the last days, and remarked that this generated rpc file contains entries (as row) with all types that could be use during rpc call, all with "false" after it. It's not possible to set it back to true, since the gwt.rpc file is generated at any running. Is there a possibiliy to take control on the generation of this file. For example with compiler variables. Rodrigue Lagoue -- You received 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.
UIBinder and image resources
Starting point: http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Using_an_external_resource My goal here is simply to bind an image, and update it later on if necessary. I implemented the following code as a first step, but I keep getting "Found widget in an HTML context". I'm unsure as to what that means; does the container need to be initialized somehow? Any pointers appreciated. Code: public class Sandbox implements EntryPoint { public void onModuleLoad() { BinderUiTest test = new BinderUiTest(); Document.get().getBody().appendChild(test.getElement()); } } public class BinderUiTest extends UIObject { interface MyUiBinder extends UiBinder {} private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class); @UiField(provided = true) final Resources resources = Resources.INSTANCE; public BinderUiTest() { setElement(uiBinder.createAndBindUi(this)); } } public interface Resources extends ClientBundle { Resources INSTANCE = GWT.create(Resources.class); @Source("logo.png") ImageResource logo(); } -- You received 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: how to resize a DockLayoutPanel pane using gwt 2.0 and uibinder
I'm having the same problem... On Dec 11, 2:07 pm, "morte...@gmail.com" wrote: > I just tried this (in 2.0GA), and I get errors in the generated code: > > ui.xml looks something like this: > > > > > > ... > > it complains about a type mismatch, when looking at the generated code > it is obvious why but not how to fix it: > > public Widget createAndBindUi(final Trinity owner) { > > bam.trinity.client.Trinity_BinderImpl_GenBundle > clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay = > (bam.trinity.client.Trinity_BinderImpl_GenBundle) GWT.create > (bam.trinity.client.Trinity_BinderImpl_GenBundle.class); > bam.trinity.client.Trinity_BinderImpl_GenCss_style style = > clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay.style > (); > bam.trinity.client.ui.ContentPanel bottomPanel = > (bam.trinity.client.ui.ContentPanel) GWT.create > (bam.trinity.client.ui.ContentPanel.class); > com.google.gwt.user.client.ui.HTML left = > (com.google.gwt.user.client.ui.HTML) GWT.create > (com.google.gwt.user.client.ui.HTML.class); > com.google.gwt.user.client.ui.HTML right = > (com.google.gwt.user.client.ui.HTML) GWT.create > (com.google.gwt.user.client.ui.HTML.class); > com.google.gwt.dom.client.SpanElement headerspan = null; > java.lang.String domId0 = com.google.gwt.dom.client.Document.get > ().createUniqueId(); > com.google.gwt.user.client.ui.HTML f_HTML1 = > (com.google.gwt.user.client.ui.HTML) GWT.create > (com.google.gwt.user.client.ui.HTML.class); > bam.trinity.client.ui.ContentPanel content = > (bam.trinity.client.ui.ContentPanel) GWT.create > (bam.trinity.client.ui.ContentPanel.class); > bam.trinity.client.ui.ResizableDockLayoutPanel rootPanel = new > com.google.gwt.user.client.ui.DockLayoutPanel > (com.google.gwt.dom.client.Style.Unit.PX); > > On the last line here, the ResizableDockLayoutPanel is for some reason > set to "new DockLayoutPanel" and not ResizableDockLayoutPanel.. > > Maybe I did something dumb, but I can't really find it :) > > On Nov 7, 3:08 am, jd wrote: > > > > > Here is a subclass I made to expose some functionality that might help > > you > > > class ResizableDockLayoutPanel extendsDockLayoutPanel > > { > > public ResizableDockLayoutPanel(Unit unit) > > { > > super(unit); > > } > > > public double getWidgetSize(Widget widget) > > { > > return ((LayoutData) widget.getLayoutData()).size; > > } > > > public void setWidgetSize(Widget widget, double size) > > { > > ((LayoutData) widget.getLayoutData()).size = size; > > } > > > @Override > > public void insert(Widget widget, Direction direction, > > double size, > > Widget before) > > { > > super.insert(widget, direction, size, before); > > } > > } > > > On Nov 6, 8:00 pm, gkb wrote: > > > > Hello all. > > > > I have a question concerning how to access/modify the size of a > > >DockLayoutPanel'swidget outside of the *.ui.xml file in the java > > > code. > > > > For instance, say I have aDockLayoutPanelwith a West widget and a > > > Center widget as follows: > > > {{{ > > > > > > > > > > > > > > > > > > > > > > > > }}} > > > > Is it possible to dynamically change the width of the westWidget > > > somewhere in the associated java code, or can it only by modified in > > > the *.ui.xml file. > > > > The problem is, I would like to be able to hide/show the westWidget > > > and have the centerWidget fill the remaining space dynamically when > > > the app is running, > > > but changing the width of westWidget in the java code has no effect on > > > the width of the West Pane of theDockLayoutPanelthat was hard-coded > > > in, there is a disconnect between them. > > > > Any help would be greatly appreciated. > > > > Sincerely, > > > > George. -- You received 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.
MVP Architecture source code?
Don´t know if it´s been there for some time now, but I noticed that a section named "MVP Architecture" has been added to the GWT Tutorial section. It looks a lot like the best practice example that Ray Ryan used in hos GWT Best practice session on Google I/O 2009. It there any chance of the community seeing the entire source code of this example? -- You received 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.
JAXB in model classes also used by GWT RPC
I have about 20 "model" classes that I use with GWT RPC and also persist into a database using JPA. This is all working fine. On the server side I need to do some XML processing and would like to use some JAXB annotations on these model classes. However it complains with: 15:26:47.005 [ERROR] [gwtui] Line 18: The import javax.xml.bind cannot be resolved Is there any way of getting this to work? Why does it like my JPA annotations just fine but reject the JAXB ones? How have other people structured their projects that use GWT, databases and webservices? Thanks, Eric -- You received 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: Multiple domains from a single servlet container
You could create multiple domain names (one for each client) that all map to the same IP Address. In your servlet, based on the domain name figure out the right database to read from. HttpServletRequest.*getRequestURL() gives you the url that the user entered in the browser. * --Sri 2009/12/21 DCYorke > I currently have a GWT app available to about 2 dozen clients. Each > client has their own version of the app. That is to say they each have > their own database running on their own tomcat context accessible by > virtual domain. The codebase (both servlets and GWT front-end) are all > the same. > > Though not strictly a GWT question, I would like to run all these > domains on a single context/cluster for the sake of efficiency. > However, each user would need to get to their data and their data only > (perhaps filtered by domain name?). For instance, when I access my > Google Apps domain I get only data from my domain and I'm quite sure > google isn't running a separate servlet container for each domain. Can > anyone point me in the right direction as far as book and/or web > resources detailing best practices or how other companies are handling > this? Thanks in advance. > > -- > > You received 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. > > > -- You received 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: Page back color
Thing is, if you set the style name to "MyStyleName" then there is no corresponding .MyStyleName in the GWT styles to override it. There is a body{} in there though and if you are including your style sheet from the html file (say with a ) then it will get overridden by the GWT style sheet which is included (later) from the gwt.xml file. For example, the standard GWT css file has background: #ffc; for the body. Two things: 1) Are you including your css from the html file? 2) Does your gwt.xml file include a GWT style sheet e.g. ? Ian http://examples.roughian.com 2009/12/22 ALEXEI BARBONI > Hi Ian > > My CSS file works fine. I mean, every widget that i put setStyleName takes > all properties that are in my CSS file. > > I need to know where do I set the properties for the hole page. > > Uselly I put inside body { } in my CSS file. But in my GWT project it does > not work... > > > > > > 2009/12/22 Ian Bambury > > Do you have some kind of GWT style overriding it? >> >> Have a look in your project gwt.xml file. If you are adding css in the >> html host page, the it will be overridden by that. >> >> Ian >> >> http://examples.roughian.com >> >> >> 2009/12/22 ALEXEI BARBONI >> >>> And now I see that nothing that is inside my body css (like margin, >>> font, etc) works... >>> >>> Where do I set properties for my hole page >>> >>> thanks >>> >>> >>> 2009/12/22 Alexei Telles >>> >>> Hi guys, I am trying to change the back color of my page, but I can't do that.. I tried by CSS body { background-color: #f1f2f3; } and setting the bgcolor property of the body tag in my HTML file: It's not working. Any help? Thanks again >>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Google Web Toolkit" group. >>> To post to this group, send email to google-web-toolkit@googlegroups.com >>> . >>> To unsubscribe from this group, send email to >>> google-web-toolkit+unsubscr...@googlegroups.com >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/google-web-toolkit?hl=en. >>> >> >> -- >> You received 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. >> > > -- > You received 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. > -- You received 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: Any easy way to tell which file is for which permutation?
Its not that difficult, actually. When you use -style PRETTY, your nocache.js has a code fragment similar to try { unflattenKeylistIntoAnswers(['opera'], '34478C007220DB07F52AB22169457501'); unflattenKeylistIntoAnswers(['ie6'], '872904FEB2B0C8ABFEEF5D761EE7FEF4'); unflattenKeylistIntoAnswers(['safari'], 'B30F09E1C9B5B042E928F79F73C1C79B'); unflattenKeylistIntoAnswers(['gecko1_8'], 'B712029A53D248F96310715A52A54CBA'); unflattenKeylistIntoAnswers(['gecko'], 'BAAA33CCD5FA4984C7DB8207E830D268'); unflattenKeylistIntoAnswers(['ie8'], 'C1B0450CB888E93E17495AEDAE49EB45'); strongName = answers[computePropValue('user.agent')]; initialHtml = strongName + '.cache.html'; } catch (e) { return; } and that is the answer to your question. --Sri 2009/12/21 Brendan Kenny > Alex's automated solution is probably the best solution, but you can > also walk through a "Detailed"-compiled version of nocache.js and > match it up to > > http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/UserAgent.gwt.xml > (and any conditionals you've added) to see how each permutation is > selected. > > Definitely not an "at-a-glance" process though. > > On Dec 20, 6:08 am, peterk wrote: > > This looks really good Alex, I'll give it a try :) > > > > Thank you! > > > > On Dec 20, 1:04 am, Alex wrote: > > > > > > > > > I wrote a post about GWT linkers last year and that includes a linker > > > that produces a manifest that shows which generated file goes with > > > which set of properties, including user.agent. Take a look athttp:// > development.lombardi.com/?p=29tosee if it would help you out. > > > > > On Dec 19, 5:57 pm, peterk wrote: > > > > > > Actually...upon further testing I'm back to square one. > > > > > > Rather strangely it appears that the order listed in the compile > > > > report is NOT the order in which the permutations are compiled. > > > > > > For example, the permutation for gecko 1_8 js is the 3rd file to be > > > > created but is listed as permutation 7 in the compile report! > > > > > > Hmm. How confusing. It's like GWT is actively trying to prevent you > > > > knowing which file is for which target :p Or is there some foolproof > > > > way of finding which is which? > > > > > > Cheers! > > > > > > On Dec 19, 11:05 pm, peterk wrote: > > > > > > > Eep! Nevermind. > > > > > > > I found the -compileReport which shows which permutation number is > for > > > > > which client. Then sorting my files in create order reveals which > > > > > relates to which permutation number...and thus which target. > > > > > > > A bit of a round-about way of doing it, and maybe there's an easier > > > > > way, but this will do for now! > > > > > > > On Dec 19, 10:47 pm, peterk wrote: > > > > > > > > Hey all, > > > > > > > > Sorry if this is a silly question but.. > > > > > > > > ...as you all know, if you compile with a regular number of > > > > > > permutations, you get a variety of javascript files for each of > the > > > > > > different target browers. They typically have very random names. > > > > > > > > I was just wondering is there any easy way to spot which file is > for > > > > > > which target? It'd be handy if each file had a comment at the top > > > > > > telling you which target it's for, or if the target was in the > > > > > > filename itself. > > > > > > > > For my app I need to do some hacking of the nocache.js file, > which is > > > > > > why knowing which permutations are for which targets would be > helpful > > > > > > to me... > > > > > > > > Thanks very much for any 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. > > > -- You received 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: GWT2.0: POST request for some reasnos converted to OPTIONS in new hosted mode
Oh wow! Thanks for the great explanation, Thomas. I recently switched to firefox 3.5 and started seeing the Options request. Even though I knew about cross site request support, I couldn't put 2 and 2 together. --Sri 2009/12/21 Thomas Broyer > > > On Dec 21, 4:00 pm, Mike Chaliy wrote: > > My application in hosed mode (http://localhost:) send plain HTTP > > POST requests for example to thehttp://localhost/Inventory/. > > > > After upgrade from GWT1.7 to GWT2.0, all POST requests are now sent as > > OPTIONS request. > > > > Method: OPTIONS > > Host: localhost > > User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; uk; rv:1.9.1.6) > > Gecko/20091201 Firefox/3.5.6 > > Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ > > *;q=0.8 > > Keep-Alive: 300 > > Connection: keep-alive > > Origin:http://localhost: > > Access-Control-Request-Method: POST > > > > So the querstions are: > > > > 1. Why GWT do so? > > GWT doesn't do anything here (even less in GWT 2.0 with DevMode than > in previous versions where the browser was embedded into GWTShell/ > HostedMode) > > > 2. How to disable this? > > > > May be this is because of "same origin policy" issue? > > Exactly: Firefox 3.5 supports "CORS" which allows cross-origin > requests under certain conditions. One of these is to first ask the > server if it accepts such cross-origin requests (instead of just > failing without even attempting a request, as previous Firefox > versions did), and this is done with an OPTIONS request containing an > Origin and Access-Control-Request-Method request headers. You're just > seeing this "preflight" request. This not a bug, neither in GWT nor in > Firefox; maybe in you code, as it means you're using absolute > references in requests ("http://blablabalbla";), which are likely to > break in most browsers (Firefox 3.0 and previous versions, Internet > Explorer –IE8 uses an XDomainRequest for CORS-like functionnality, > instead of XMLHttpRequest–, Safari, Opera 9.x, etc.) > Same goes for other browsers (last versions of Chrome and Opera > support it AFAICT), as CORS is a being developped at the W3C. > > -- > > You received 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. > > > -- You received 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: Page back color
Hi Ian My CSS file works fine. I mean, every widget that i put setStyleName takes all properties that are in my CSS file. I need to know where do I set the properties for the hole page. Uselly I put inside body { } in my CSS file. But in my GWT project it does not work... 2009/12/22 Ian Bambury > Do you have some kind of GWT style overriding it? > > Have a look in your project gwt.xml file. If you are adding css in the html > host page, the it will be overridden by that. > > Ian > > http://examples.roughian.com > > > 2009/12/22 ALEXEI BARBONI > >> And now I see that nothing that is inside my body css (like margin, font, >> etc) works... >> >> Where do I set properties for my hole page >> >> thanks >> >> >> 2009/12/22 Alexei Telles >> >> Hi guys, I am trying to change the back color of my page, but I can't >>> do that.. >>> >>> I tried by CSS >>> >>> body { >>> background-color: #f1f2f3; >>> } >>> >>> and setting the bgcolor property of the body tag in my HTML file: >>> >>> >>> >>> >>> >>> It's not working. >>> >>> Any help? >>> >>> Thanks again >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to google-web-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. >> > > -- > You received 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. > -- You received 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: Javascript problem in cache.html
Pass the style = DETAILED flag (see http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#Why_is_my_GWT-generated_JavaScript_gibberish?) to the GWTC compiler and then run the application. It won't solve your problem, but will atleast point you to the method/variable that has the problem. --Sri 2009/12/23 Wouter > Hi all, > > I have a strange problem in a .cache.html that is generated by > GWT. When I click on an specific radio button in my application the > application seems to hang (the "please wait" indication remains > displayed). This problem occurs in Chrome, FF and IE. In IE an JS > error appears which says: > > line 2965 > char 368 > Error 'b.a' is null or not an object > Code:0 > URL: .cache.html > > I use GWT-EXT and my application is hosted on Google App Engine. > > Does anybody seen this error before and give me some pointers where to > look ? > > regards > Wouter > > -- > > You received 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. > > > -- You received 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.
Question on Code Generation inconjunction with JS-Libraries to optimize size
Hi, I've been banging my head against something people here might probably be able to help me. I've written a wrapper for a extensive JavaScript Library which itself has a toolchain to optimize JS-Script code by analyzing the used JS-API. As a small example say the js-library has: * a.js * b.js * c.js And my wrappers look like this: ---8<--- AWrapper { // ... } BWrapper { // ... } CWrapper { // ... } ---8<--- Now my problem is that if I want to use it with GWT I need to findout which Wrapper-Classes the GWT application uses, spit out informations I can feed into the external toolchain to create an optimized JS- Library-Version. I thought about using the GWT Code Generation to get informed whenever wrapper classes are used but as far as I understood this code generation only jumps in when I use GWT.create() but this means my Library users need to use GWT.create(AWrapper.class) instead of "new AWrapper()" which is not very natural. My ideal thing would be to have annotate my Java-Wrappers with something like this: ---8<--- @JSResource("a.js") AWrapper { // ... } @JSResource("b.js") BWrapper { // ... } @JSResource("c.js") CWrapper { // ... } ---8<--- And somehow plug myself into the GWT-Compiler toolchain and get informed when ever such a class is visited similar to what would happen when I use GWT.create(). Does anybody have an idea or a document, example source I can read though myself? -- You received 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: Problems reading the content of a text file.
The URL you are trying to access is wrong... Assuming you module is named hangman, this line final RequestBuilder requestBuilder = new RequestBuilder( RequestBuilder.POST, "movies.txt" ); makes a request to http://myserver.com/mywar/hangman/movies.txt, whereas you want it to be http://myserver.com/mywar/movies.txt Try using "../movies.txt", or use GWT.getHostPageBaseURL() .. --Sri 2009/12/22 Juan M.M.M. > Hi! > > I'm doing an example that I found ina book about GWT. It's the typical > example of the hangman. I'm using Eclipse and GWT 2.0. This is my > code: > > public class AhorGwt implements EntryPoint { > >private FlowPanel letters = new FlowPanel(); >private Label wordLabel = new Label(); >private Image image = new Image(); > >private final int MAX_GUESSES = 6; >private int misses; >private String[] words; >private String word; >private char[] visibleWord; > >@Override >public void onModuleLoad() { >//create interface >RootPanel ahorcado = RootPanel.get("ahorcado"); >ahorcado.add(letters); >ahorcado.add(image); >ahorcado.add(wordLabel); > >//load words >final RequestBuilder requestBuilder = new RequestBuilder > ( RequestBuilder.POST, "movies.txt" ); >try { > requestBuilder.sendRequest( null, new > RequestCallback(){ > >public void onError(Request request, > Throwable exception) { >GWT.log( "failed getting movie > list", exception ); >} > >public void onResponseReceived(Request > request, Response response) > { >words = > response.getText().split("\n"); >GWT.log(words[2], null); >startGame(); >}} ); >} catch (RequestException e) { >GWT.log( "failed getting movie list", e ); >} >wordLabel.setStyleName("word"); >} >// ... > } > > > My movies.txt file is under /war/ file next to my index.html. Ok, once > I get the supossed text file into 'words' variable I do a 'GWT.log > (words[2], null);' in the console developent mode of eclipse I get > this "HTTP Status 404 - Status report". As you can see, the file > movies.txt hasn't been loaded. Instead of this, the program has red a > kind of default text/html file. I don't know if the problem is in the > location of the file or If I'm using a wrong method to read files on > the client side. > > Thanks, > > Juanma > > -- > > You received 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. > > > -- You received 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: Page back color
Do you have some kind of GWT style overriding it? Have a look in your project gwt.xml file. If you are adding css in the html host page, the it will be overridden by that. Ian http://examples.roughian.com 2009/12/22 ALEXEI BARBONI > And now I see that nothing that is inside my body css (like margin, font, > etc) works... > > Where do I set properties for my hole page > > thanks > > > 2009/12/22 Alexei Telles > > Hi guys, I am trying to change the back color of my page, but I can't >> do that.. >> >> I tried by CSS >> >> body { >> background-color: #f1f2f3; >> } >> >> and setting the bgcolor property of the body tag in my HTML file: >> >> >> >> >> >> It's not working. >> >> Any help? >> >> Thanks again > > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-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. > -- You received 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.
JDO Error?
I have programmatically created two data objects, which I have validated through the admin tool, and then attempt to delete them using this code: try { pm.currentTransaction ().begin (); List list = (List) pm.newQuery (query).execute (); if (!list.isEmpty ()) { int real_count = 0; int count = list.size (); for (StreamingMetaData d : list) { long id = d.getID (); if (id > 0) { pm.deletePersistent (d); real_count++; } } } pm.currentTransaction ().commit (); } catch (Exception e) ... but when it gets to the second object, the following JDO code throws an "internal error" exception. Any thoughts? /** * JDO Convenience method to wrap any DataNucleus exceptions for the deletePersistent process. * @param obj The object to delete * @throws JDOUserException thrown if the object could not be deleted */ private void jdoDeletePersistent(Object obj) { try { objectMgr.deleteObject(obj); } catch (NucleusException jpe) { // Convert any DataNucleus exceptions into what JDO expects throw NucleusJDOHelper.getJDOExceptionForNucleusException(jpe); } } -- You received 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.
Javascript problem in cache.html
Hi all, I have a strange problem in a .cache.html that is generated by GWT. When I click on an specific radio button in my application the application seems to hang (the "please wait" indication remains displayed). This problem occurs in Chrome, FF and IE. In IE an JS error appears which says: line 2965 char 368 Error 'b.a' is null or not an object Code:0 URL: .cache.html I use GWT-EXT and my application is hosted on Google App Engine. Does anybody seen this error before and give me some pointers where to look ? regards Wouter -- You received 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 2.0: Plugin failed to connect to hosted mode server
Hi Chris Yes - using localhost:9997 did solve the problem! Thank you. I could create the project before but not debug it - it didn't even call the Java code, as I explained it showed only the static HTML. Can you explain the difference? Thanks Yuval On Dec 22, 5:50 pm, Chris Ramsdale wrote: > Yuval, > > Can you successfully create, and debug, a new project from Eclipse? Also, > does it help if you set gwt.codesvr=localhost:9997? > > On Tue, Dec 22, 2009 at 5:58 AM, Yuval wrote: > > Hello everybody, > > > I am new to GWT and need some help. I have recently downloaded GWT 2.0 > > as an Ecplise plugin + SDK. > > Following the "Getting started" tutorial I have created a new GWT > > application project in Eclipse, StockWatcher. I have made no changes > > to the generated application. > > > The application was created successfully, so I tried to run it locally > > using "Run As -> Web Application" (with the Google icon). Then I > > copied the suggested URL from Development Mode tab and pasted into the > > browser (Chrome 4 with GWT extension): > >http://localhost:/StockWatcher.html?gwt.codesvr=10.0.0.1:9997 > > > I was expecting to view the default page normally, but it turned out > > that only the static elements of the web page (the headline "Web > > Application Starter Project" and label "Please enter your name:") were > > displayed. After a while, a message box pops up: "Plugin failed to > > connect to hosted mode server at 10.0.0.1:9997". When I close it I get > > a blackened screen with: > > "GWT Code Server Disconnected > > Most likely, you closed GWT development mode. Or you might have lost > > network connectivity. To fix this, try restarting GWT Development Mode > > and REFRESH this page." > > > This of course happening each time no matter what I do. > > > Then I tried to compile the project and go directly to > >http://localhost:/StockWatcher.html, without the gwt.codesvr > > parameter. It did work, but that means that I can only work by > > compiling the code each time I want to test it (and probably can't > > debug). > > > At first I thought this might be a firewall issue (although i'm not > > sure that accessing localhost should be a firewall concern), but to be > > on the safe side I have opened the ports and 9997. It didn't > > help. > > > Any ideas? > > > Thanks, > > Yuval > > > -- > > > You received 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. -- You received 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: MVP Beginner Question
Pretty neat article. Eagerly waiting for the "UI Binder and MVP" follow up post, cause thats a pain right now. (I know there are a few threads floating around on that topic, and the solutions provided are good .. but I would still like a better integration with UiBinder). --Sri 2009/12/22 Chris Ramsdale > We've just added a tech article related to building GWT-based apps using > the MVP architecture. Although it doesn't discuss all of the topics > discussed in Ray's presentation (stay tuned, we'll be adding more), it does > cover the basics of MVP, using the Event Bus, getting History right, and > testing. > > http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html > > - Chris > > > On Mon, Dec 21, 2009 at 2:32 PM, pohl wrote: > >> I haven't used any of the pre-packaged frameworks, so I can't help you >> select from them. >> >> However, my team is using this architecture, having been inspired by >> the original talk at Google I/O. In my opinion, there is no better >> source of wisdom than that presentation, and its slides. >> >> If you haven't seen it yet, do so. If you've seen it less than 20 >> times, keep re-watching it day after day until you have. >> >> >> http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html >> >> > I understand that GIN is used for dependency injection but not able to >> > understand Event bus, Presenter and Dispatcher as they are handled >> > differently by these examples.. >> >> EventBus is a decoupling mechanism, and is adequately explained by >> rjrjr in the video. >> >> "Dispatcher" is probably what rjrjr refers to as ActionService, which >> is an implementation of the "command pattern" for RPC. This is also >> discussed very well in the video. >> >> Presenter is the P in MVP, which is also discussed very well in the >> video. I suspect that after you have fully absorbed the >> presentation, you'll come back and look at the three samples/ >> frameworks with different eyes. >> >> -- >> >> You received 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. >> >> >> > -- > You received 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. > -- You received 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.
Problems with generator
am implementing a generator to generate code using Apache Velocity. The question is that you use the JClassType.getMetaData () to get the annotations in the code. Some extraction of my code: GearsDataStoreGenerator extends Generator{ public String generate (TreeLogger logger, GeneratorContext context, String typeName) throws UnableToCompleteException {TypeOracle typeOracle = context.getTypeOracle(); JClassType requestedClass = typeOracle.getType(typeName); requestedClass.getMetaData(ANNOTATION_TABLE); // GWT 1.7 returns the annotation metadata! GWT 2.0 returns nothing! So GWT 1.7 version works perfect. But from version 2.0 stopped working. Reading the sources of the method I detected the following change: GWT 2.0 @Deprecated public final String[][] getMetaData(String tagName) { return TypeOracle.NO_STRING_ARR_ARR; } GWT 1.7 public abstract String[][] getMetaData(String tagName); In the context help of the method, talks about how to replace it: ... @deprecated Javadoc comment metadata has been deprecated in favor of proper Java annotations. See HasAnnotations.getAnnotation(Class) for equivalent functionality. Someone could help me with some example of HasAnnotations.getAnnotation (Class) ?? It think I have to use @Target(ElementType.ANNOTATION_TYPE)? -- You received 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.
StatusCodeException
Mac OS X 10.5.7 Firefox 3.5 Eclipse 3.5 Galileo Cocoa Java 1.5.0 GWT 2.0 Hello, I'm catching a StatusCodeException when I try to make an RPC call. The method getStatusCode() is indeed returning 0 which I understand means that the server can not be reached. But I've been able to connect to the server at various times in development. I'm usually able to actually but every now and then I see this. I've tried restarting the computer, restarting the server, and I've recompiled my project. If someone could help me debug why the server can not be reached I'd appreciate it. Thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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: Using Gilead with GWT 2.0 ms1
Thanks Josh!! That really help me a lot and now everything is working properly! BTW Bruno (the Gilead main developer) wrote here http://sourceforge.net/projects/gilead/forums/forum/868076/topic/3484314 that a new release is coming "very" soon... so just wait and hope in a stable version that works with gwt2.0 Thanks again and merry christmas! :-P On 18 Dic, 22:53, Josh Martin wrote: > What worked for me was to add the files Trevor specified to 'my' > project, and not into the original gilead source directories. You > just have to make sure to match the original package directory he > specified of: src/com/google/gwt/user/server/rpc in your project > directory. Any project that you create now that uses the adapter4gwt > library should include those two files as source files as well. Your > application should compile with those source files in it, as long as > you have the adapter4gwt library files included (which you would have > to have to use gilead anyway). > > I, too, thought he meant to put them in the original gilead > directories and recreate the entire adapter4gwt library, but after re- > reading what he suggested, I realized his real suggestion was far > easier. (Thanks Trevor!) > > Hope this helps, > Josh > > On Dec 18, 4:04 am, lucamen wrote: > > > > > Hello, I'm working on a GWT 2.0 project with hibernate integration > > viaGilead. When I try to load data from database (on GWT 1.7 everything > > was working properly) I get this error "Parameter 0 of is of an > > unknown type 'java.lang.String/2004016611'" and googling I've found > > this thread. > > I downloaded these two files and put in src/com/google/gwt/user/server/ > > rpc under mygileadroot directory but nothing changes! > > > To be sure I've updated all my buildpath with the jars I need but the > > error still remain. > > > Do I have to ant build the adapter4gwt with these two new files and > > then add the new jars I get? > > > I've already tried but ant failed with this error: > > > build: > > [echo] adapter4gwt: > > /Users/lucame/Documents/workspace/Libs/gilead-1.2.3.823/adapter4gwt/build.x > > ml > > [javac] Compiling 6 source files to /Users/lucame/Documents/ > > workspace/Libs/gilead-1.2.3.823/adapter4gwt/classes > > [javac] /Users/lucame/Documents/workspace/Libs/gilead-1.2.3.823/ > > adapter4gwt/src/com/google/gwt/user/server/rpc/RPCCopy_GWT20.java:287: > > cannot find symbol > > [javac] symbol : constructor RPCRequest > > (java.lang.reflect.Method,java.lang.Object > > [],com.google.gwt.user.server.rpc.SerializationPolicy,int) > > [javac] location: class com.google.gwt.user.server.rpc.RPCRequest > > [javac] return new RPCRequest(method, parameterValues, > > serializationPolicy, 0); > > [javac] ^ > > [javac] 1 error > > > What should I do to get GWT 2.0 work withGilead? > > > ANY help would be VERY appreciate!! > > > Thanks, Luca. > > > On 10 Dic, 16:35, Trevor Skaife wrote: > > > > I definitely should have worded that better. You did exactly what I > > > wanted you to do, if you would put them in any other package it > > > wouldn't work. > > > > On Dec 9, 5:27 pm, "graffle...@gmail.com" > > > wrote: > > > > > Thanks!! Great work... > > > > > but what do you mean by "Once you get these files in your project just > > > > make sure to change the package accordingly." > > > > > all I did was put these files in src/com/google/gwt/user/server/rpc > > > > > should I do anything else? > > > > > - Bob > > > > > On Oct 18, 10:06 am, tskaife wrote: > > > > > > Ok, well I found out that my changes to makegileadwork for GWT 2.0 > > > > > didn't quite work, but I've been able to fix that. I also notice that > > > > > I put the same two files up above, here are the 2 files to download to > > > > > getgileadworking with GWT 2.0. > > > > > > RPCCopy.javahttp://trg-commons.googlecode.com/files/RPCCopy.java > > > > > > RPCCopy_GWT20.javahttp://trg-commons.googlecode.com/files/RPCCopy_GWT20.java > > > > > > Once you get these files in your project just make sure to change the > > > > > package accordingly. > > > > > > On Oct 9, 1:35 pm, tskaife wrote: > > > > > > > I just updated toGWT 2.0ms1 and noticed that I was getting an error > > > > > > that the constructor for RPCRequest doesn't exist (the constructor > > > > > > now > > > > > > inclues a int flag parameter). > > > > > > > java.lang.NoSuchMethodError: > > > > > > com.google.gwt.user.server.rpc.RPCRequest.(Ljava/lang/reflect/ > > > > > > Method;[Ljava/lang/Object;Lcom/google/gwt/user/server/rpc/ > > > > > > SerializationPolicy;)V > > > > > > > I was able to fix the issue by creating a new RPCCopy_GWT20 that > > > > > > passes a 0 for the flag parameter when it makes the RPCRequest. I > > > > > > also > > > > > > had to change RPCCopy class so that it can correctly recognize when > > > > > > you are usingGWT 2.0. Below are links to the 2 java files. > > > > > > > RPCCopy.javahttp://trg-commons.googlecode.com/files/RPCCopy_GWT20.jav
Validating ClientBundles ?
Hi, After upgrading the Eclipse plugin to GWT 2.0, whenever I import my Eclipse projects, Eclipse crashes. After importing the projects, I see multiple multiple (~12) jobs spawned called "Validating ClientBundles", then it either shows a warning saying that it ran out of memory or just closes. When inspecting the Eclipse log, I found this: !ENTRY org.eclipse.core.jobs 4 2 2009-12-22 11:07:17.178 !MESSAGE An internal error occurred during: "Refreshing workspace". !STACK 0 java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:597) at org.eclipse.core.internal.jobs.WorkerPool.jobQueued (WorkerPool.java:145) at org.eclipse.core.internal.jobs.JobManager.schedule(JobManager.java: 1001) at org.eclipse.core.internal.jobs.InternalJob.schedule (InternalJob.java:391) at org.eclipse.core.runtime.jobs.Job.schedule(Job.java:435) at com.google.gdt.eclipse.core.BuilderUtilities.revalidateCompilationUnits (BuilderUtilities.java:170) at com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener $1.visit(ClientBundleResourceChangeListener.java:154) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:68) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:48) at com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener.visitResourceDelta (ClientBundleResourceChangeListener.java:124) at com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener.resourceChanged (ClientBundleResourceChangeListener.java:116) at org.eclipse.core.internal.events.NotificationManager$2.run (NotificationManager.java:291) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.NotificationManager.notify (NotificationManager.java:285) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges (NotificationManager.java:149) at org.eclipse.core.internal.resources.Workspace.broadcastPostChange (Workspace.java:313) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java:1022) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:45) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) === These are my JVM settings in eclipse.ini: --launcher.XXMaxPermSize 256m -Xms256m -Xmx1024m -Xss1024k Is there a way to turn off this validation upon importing the project. Am I missing something or is this a bug? Thanks, Carlos -- You received 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.
Problems reading the content of a text file.
Hi! I'm doing an example that I found ina book about GWT. It's the typical example of the hangman. I'm using Eclipse and GWT 2.0. This is my code: public class AhorGwt implements EntryPoint { private FlowPanel letters = new FlowPanel(); private Label wordLabel = new Label(); private Image image = new Image(); private final int MAX_GUESSES = 6; private int misses; private String[] words; private String word; private char[] visibleWord; @Override public void onModuleLoad() { //create interface RootPanel ahorcado = RootPanel.get("ahorcado"); ahorcado.add(letters); ahorcado.add(image); ahorcado.add(wordLabel); //load words final RequestBuilder requestBuilder = new RequestBuilder ( RequestBuilder.POST, "movies.txt" ); try { requestBuilder.sendRequest( null, new RequestCallback(){ public void onError(Request request, Throwable exception) { GWT.log( "failed getting movie list", exception ); } public void onResponseReceived(Request request, Response response) { words = response.getText().split("\n"); GWT.log(words[2], null); startGame(); }} ); } catch (RequestException e) { GWT.log( "failed getting movie list", e ); } wordLabel.setStyleName("word"); } // ... } My movies.txt file is under /war/ file next to my index.html. Ok, once I get the supossed text file into 'words' variable I do a 'GWT.log (words[2], null);' in the console developent mode of eclipse I get this "HTTP Status 404 - Status report". As you can see, the file movies.txt hasn't been loaded. Instead of this, the program has red a kind of default text/html file. I don't know if the problem is in the location of the file or If I'm using a wrong method to read files on the client side. Thanks, Juanma -- You received 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: UI Binder bugs - maybe config issue on my side(?)
Peter, Also, would you mind downloading a fresh copy of Eclipse (with a new workspace) for testing purposes? I imported your project, and the @UiFields are not marked as errors for me. If a fresh Eclipse works, it'll help in debugging whether it's a system configuration issue or an Eclipse configuration issue. Thanks, jason On Tue, Dec 22, 2009 at 11:08 AM, Thomas Broyer wrote: > > > On Dec 22, 10:42 am, Peter wrote: >> Sure, thanks for helping hand. Zipped project is here: >> >> ns.blucina.net/lovisek/tmp/XploreU-inbox.zip >> >> I also deployed the project >> here:http://ns.blucina.net/lovisek/tmp/xu/XploreU_inbox.html >> >> As you can see, onClick handler is never fired despite it should be >> triggered after clicking on button and bold C label. > > You're not attaching your *widget* to the document, only its > *element*, so events are not sunk: > Document.get().getBody().appendChild(b.getElement()); > > Use a RootPanel or RootLayoutPanel to add widgets to the page. That's > "GWT 101". > > -- > > You received 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. > > > -- You received 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: Unable to run DevMode
On Mon, Dec 21, 2009 at 11:57 PM, Sam E. wrote: > I am having the same issue right now. > > > 00:00:00.684 [WARN] Error processing classpath URL 'file:/Users/ > ssaammee/.m2/repository/com/sun/jdmk/jmxtools/1.2.1/ > jmxtools-1.2.1.jar' > java.util.zip.ZipException: error in opening zip file at > java.util.zip.ZipFile.open(Native Method) at > java.util.zip.ZipFile.(ZipFile.java:114) at > java.util.jar.JarFile.(JarFile.java:133) at > java.util.jar.JarFile.(JarFile.java:97) at > com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl > (ResourceOracleImpl.java:175) at > com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries > (ResourceOracleImpl.java:223) at > com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries > (ResourceOracleImpl.java:249) at > com.google.gwt.dev.resource.impl.ResourceOracleImpl. > (ResourceOracleImpl.java:293) at > com.google.gwt.dev.resource.impl.ResourceOracleImpl. > (ResourceOracleImpl.java:283) at > com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449) at > com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule > (ModuleDefLoader.java:287) at > com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath > (ModuleDefLoader.java:141) at > com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867) at > com.google.gwt.dev.DevMode.loadModule(DevMode.java:425) at > com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340) at > com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953)at > com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690)at > com.google.gwt.dev.DevMode.main(DevMode.java:251) > > On Dec 21, 4:55 pm, Raziel wrote: > > Hi, I just upgraded my application from 1.7.0 to 2.0, and while > > everything is working fine in production mode, when I try to run > > Development mode I get the following error: > > > > Loading modules > >com.appiancorp.gwt.appbuilder.ApplicationBuilderDev > > Public resources found in... > > [WARN] Error processing classpath URL 'file:/C:/Documents > > %20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jdmk/jmxtools/ > > 1.2.1/jmxtools-1.2.1.jar' > > java.util.zip.ZipException: error in opening zip file > > at java.util.zip.ZipFile.open(Native Method) > > at java.util.zip.ZipFile.(ZipFile.java:114) > > at java.util.jar.JarFile.(JarFile.java:133) > > at java.util.jar.JarFile.(JarFile.java:97) > > at > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl > > (ResourceOracleImpl.java:175) > > at > > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries > > (ResourceOracleImpl.java:223) > > at > > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries > > (ResourceOracleImpl.java:249) > > at com.google.gwt.dev.resource.impl.ResourceOracleImpl. > > (ResourceOracleImpl.java:293) > > at com.google.gwt.dev.resource.impl.ResourceOracleImpl. > > (ResourceOracleImpl.java:283) > > at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449) > > at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule > > (ModuleDefLoader.java:287) > > at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath > > (ModuleDefLoader.java:141) > > at > com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867) > > at com.google.gwt.dev.DevMode.loadModule(DevMode.java:425) > > at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340) > > at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953) > > at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690) > > at com.google.gwt.dev.DevMode.main(DevMode.java:251) > > [WARN] Error processing classpath URL 'file:/C:/Documents > > %20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jmx/jmxri/ > > 1.2.1/jmxri-1.2.1.jar' > > java.util.zip.ZipException: error in opening zip file > > at java.util.zip.ZipFile.open(Native Method) > > at java.util.zip.ZipFile.(ZipFile.java:114) > > at java.util.jar.JarFile.(JarFile.java:133) > > at java.util.jar.JarFile.(JarFile.java:97) > > at > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl > > (ResourceOracleImpl.java:175) > > at > > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries > > (ResourceOracleImpl.java:223) > > at > > > com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries > > (ResourceOracleImpl.java:249) > > at com.google.gwt.dev.resource.impl.ResourceOracleImpl. > > (ResourceOracleImpl.java:293) > > at com.google.gwt.dev.resource.impl.ResourceOracleImpl. > > (ResourceOracleImpl.java:283) > > at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449) > > at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule > > (ModuleDefLoader.java:287) >
Re: main project
Usually technologies are chosen from project requirements but not vice-versa! 2009/12/21 soma sekhar > i am btech final year student right know i should do a main project > for my final sem can u suggest me how could gwt will be helpful in my > project..can u even guide me which project shall i take using > gwt so that i could give different innovative project of my own by > your guidance > > pls if u can give reply i am very much thankful to u > > -- > > You received 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. > > > -- Regards, Alexander -- You received 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: Page back color
And now I see that nothing that is inside my body css (like margin, font, etc) works... Where do I set properties for my hole page thanks 2009/12/22 Alexei Telles > Hi guys, I am trying to change the back color of my page, but I can't > do that.. > > I tried by CSS > > body { > background-color: #f1f2f3; > } > > and setting the bgcolor property of the body tag in my HTML file: > > > > > > It's not working. > > Any help? > > Thanks again -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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: MVP Beginner Question
We've just added a tech article related to building GWT-based apps using the MVP architecture. Although it doesn't discuss all of the topics discussed in Ray's presentation (stay tuned, we'll be adding more), it does cover the basics of MVP, using the Event Bus, getting History right, and testing. http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html - Chris On Mon, Dec 21, 2009 at 2:32 PM, pohl wrote: > I haven't used any of the pre-packaged frameworks, so I can't help you > select from them. > > However, my team is using this architecture, having been inspired by > the original talk at Google I/O. In my opinion, there is no better > source of wisdom than that presentation, and its slides. > > If you haven't seen it yet, do so. If you've seen it less than 20 > times, keep re-watching it day after day until you have. > > > http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html > > > I understand that GIN is used for dependency injection but not able to > > understand Event bus, Presenter and Dispatcher as they are handled > > differently by these examples.. > > EventBus is a decoupling mechanism, and is adequately explained by > rjrjr in the video. > > "Dispatcher" is probably what rjrjr refers to as ActionService, which > is an implementation of the "command pattern" for RPC. This is also > discussed very well in the video. > > Presenter is the P in MVP, which is also discussed very well in the > video. I suspect that after you have fully absorbed the > presentation, you'll come back and look at the three samples/ > frameworks with different eyes. > > -- > > You received 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. > > > -- You received 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: Passing and parsing parameters through history events
On Dec 22, 1:16 pm, hbral wrote: > hi everyone. > > are there any build-in mechanics to pass and parse parameters through > history events? No. History tokens are treated as "opaque" strings by GWT. -- You received 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: UI Binder bugs - maybe config issue on my side(?)
On Dec 22, 10:42 am, Peter wrote: > Sure, thanks for helping hand. Zipped project is here: > > ns.blucina.net/lovisek/tmp/XploreU-inbox.zip > > I also deployed the project > here:http://ns.blucina.net/lovisek/tmp/xu/XploreU_inbox.html > > As you can see, onClick handler is never fired despite it should be > triggered after clicking on button and bold C label. You're not attaching your *widget* to the document, only its *element*, so events are not sunk: Document.get().getBody().appendChild(b.getElement()); Use a RootPanel or RootLayoutPanel to add widgets to the page. That's "GWT 101". -- You received 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-voices
Of course...I tried by relative path too... I am going to make some more tests... Thank You 2009/12/21 olivier nouguier > hi AFAIK you can't access local file :) > deploy your audio file and use http:// with repect to SOP (Same Origin > Policy) > HIH > > > On Mon, Dec 21, 2009 at 8:31 PM, Alexei Telles wrote: > >> Hello guys, I am trying to start using the gwt-voices in my GWT >> project. To start I tried the example: >> >> SoundController soundController = new SoundController(); >> Sound sound = soundController.createSound >> (Sound.MIME_TYPE_AUDIO_MPEG, >> "file:///home/alexei/teste.mp3"); >> >>sound.play(); >> >> But the mp3 never plays >> >> My Sound object is like: >> >> OBJECT("audio/mpeg", "file:///home/alexei/teste.mp3", not streaming) >> and its loadState property is: LOAD_STATE_NOT_SUPPORTED >> >> Dos anybody could give me a little help please? >> >> Thanks in advance >> >> -- >> >> You received 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. >> >> >> > > > -- > A coward is incapable of exhibiting love; it is the prerogative of the > brave. > -- > Mohandas Gandhi > > -- > You received 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. > -- You received 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.
Page back color
Hi guys, I am trying to change the back color of my page, but I can't do that.. I tried by CSS body { background-color: #f1f2f3; } and setting the bgcolor property of the body tag in my HTML file: It's not working. Any help? Thanks again -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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 2.0: Plugin failed to connect to hosted mode server
Yuval, Can you successfully create, and debug, a new project from Eclipse? Also, does it help if you set gwt.codesvr=localhost:9997? On Tue, Dec 22, 2009 at 5:58 AM, Yuval wrote: > Hello everybody, > > I am new to GWT and need some help. I have recently downloaded GWT 2.0 > as an Ecplise plugin + SDK. > Following the "Getting started" tutorial I have created a new GWT > application project in Eclipse, StockWatcher. I have made no changes > to the generated application. > > The application was created successfully, so I tried to run it locally > using "Run As -> Web Application" (with the Google icon). Then I > copied the suggested URL from Development Mode tab and pasted into the > browser (Chrome 4 with GWT extension): > http://localhost:/StockWatcher.html?gwt.codesvr=10.0.0.1:9997 > > I was expecting to view the default page normally, but it turned out > that only the static elements of the web page (the headline "Web > Application Starter Project" and label "Please enter your name:") were > displayed. After a while, a message box pops up: "Plugin failed to > connect to hosted mode server at 10.0.0.1:9997". When I close it I get > a blackened screen with: > "GWT Code Server Disconnected > Most likely, you closed GWT development mode. Or you might have lost > network connectivity. To fix this, try restarting GWT Development Mode > and REFRESH this page." > > This of course happening each time no matter what I do. > > Then I tried to compile the project and go directly to > http://localhost:/StockWatcher.html , without the gwt.codesvr > parameter. It did work, but that means that I can only work by > compiling the code each time I want to test it (and probably can't > debug). > > At first I thought this might be a firewall issue (although i'm not > sure that accessing localhost should be a firewall concern), but to be > on the safe side I have opened the ports and 9997. It didn't > help. > > Any ideas? > > Thanks, > Yuval > > -- > > You received 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. > > > -- You received 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: GWTShell dev mode problem
Hi Shawn, I'm not sure how those Android natures/builders were added to your project. Maybe you inadvertently triggered a wizard that creates a GAE + Android project, or some other wizard that converts your project to an Android project? At any rate, to remove the "Androidness" from your project, remove the following entries from the file: org.eclipse.ui.externaltools.ExternalToolBuilder full,incremental, LaunchConfigHandle/.externalToolBuilders/com.android.ide.eclipse.adt.ResourceManagerBuilder.launch org.eclipse.ui.externaltools.ExternalToolBuilder full,incremental, LaunchConfigHandle /.externalToolBuilders/com.android.ide.eclipse.adt.PreCompilerBuilder.launch org.eclipse.ui.externaltools.ExternalToolBuilder full,incremental, LaunchConfigHandle /.externalToolBuilders/com.android.ide.eclipse.adt.ApkBuilder.launch com.android.ide.eclipse.adt.AndroidNature On Mon, Dec 21, 2009 at 5:38 PM, Shawn Brown wrote: > Hi Miguel, > > > Is the war directory at the root of your project? > yes > > >If you look at your .project file does it have the web app nature? > > Can you post what a .project file should look like? Originally mine > was of web app nature but (please understand I never set it to be like > this -- others have the same problem) the Android plugin decided it > owns the world and tried to make my GWT-appengine project into an > Android one. > > You can see how messed up this is... > > If you don't have time, that's fine. I can launch devmode as an > external program. It'd be nice though to have it cleaned up so I > don't end up somehow getting confusing errors that nobody can track > down. > > >FluencyBuilderGAE > > > > > > > org.eclipse.ui.externaltools.ExternalToolBuilder >full,incremental, > > >LaunchConfigHandle > > > /.externalToolBuilders/com.android.ide.eclipse.adt.ResourceManagerBuilder.launch > > > > > > org.eclipse.ui.externaltools.ExternalToolBuilder >full,incremental, > > >LaunchConfigHandle > > > /.externalToolBuilders/com.android.ide.eclipse.adt.PreCompilerBuilder.launch > > > > > > com.google.appengine.eclipse.core.enhancerbuilder > > > > > > com.google.gdt.eclipse.core.webAppProjectValidator > > > > > > com.google.appengine.eclipse.core.projectValidator > > > > > > com.google.gwt.eclipse.core.gwtProjectValidator > > > > >org.eclipse.jdt.core.javabuilder > > > > > > org.eclipse.ui.externaltools.ExternalToolBuilder >full,incremental, > > >LaunchConfigHandle > > > /.externalToolBuilders/com.android.ide.eclipse.adt.ApkBuilder.launch > > > > > >com.android.ide.eclipse.adt.AndroidNature >org.eclipse.jdt.core.javanature >com.google.appengine.eclipse.core.gaeNature >com.google.gwt.eclipse.core.gwtNature >com.google.gdt.eclipse.core.webAppNature > > > > -- > > You received 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. > > > -- You
Re: Developing a plugin based application
What I described was pretty much the Factory pattern: http://en.wikipedia.org/wiki/Factory_method_pattern On Mon, Dec 21, 2009 at 12:18 PM, Honza Rames wrote: > Hi, > I recently had very similar problem. I have an app in which there are > Views (similar to your layers) and I wanted views to be completely > independent of the App (before I made the changes the App's class was > responsible for creating Views which I found very sloppy). I did > pretty much the same thing that Eric has proposed. The App's class has > a static list of Initializers which implement Initializer interface > which have two methods, first creates associated View's instance and > second adds itself into the App's list of Initializers so the App only > goes through the array and calls newInstance of each initializer. The > initializers implements EntryPoint so I can specify which Views to > create simply by adding a module to my gwt.xml or by adding more > EntryPoints to it. I don't know if this is right method to implement > this but I'm using it together with code splitting and everything > seems fine (View's code and App's code are put in deferedjs and only > very small portion of code is executed in JS after the app startup > which speeds the initial loading time). After calling GWT.runAsync the > App properly initializes all registered views. > > Honza > > On Dec 19, 9:10 am, Marco Visonà wrote: >> Hi Eric >> thank to your advice I found a partial solution. I have an >> interface Layer implemented by each layer and I created this layer >> factory: >> >> public class LayerFactory { >> >> public enum LayerType { >> SENSORS_LAYER, TEST_LAYER >> } >> >> public Layer newInstance(LayerType type) { >> switch (type) { >> case SENSORS_LAYER: >> return new SensorsLayer(lm, mapAttrs); >> case TEST_LAYER: >> return new TestLayer(lm, mapAttrs); >> default: >> return null; >> } >> } >> >> } >> >> so in my code I can iterate through each element in the enum to >> instantiate the layers. >> >> for(LayerType type : LayerType.values()) { >> lFactory.newInstance(type); >> >> } >> >> However this is not your solution. You told about creating a wrapper >> class (let's say to call it LayerWrapper) implementing an interface >> containing a newInstance method, and putting each layer class inside >> the corresponding layer. So let's say to have the wrapper array you >> told about in your previous post: >> LayerWrapper[] layersWrap = new LayerWrapper[2] >> >> then I would cycle through the elements, but how can I instantiate the >> correct layer? I don't think that the following would be the correct >> procedure: >> >> for(int i=0; i < layersWrap.length; i++) { >> layersWrap[i]= LayerWrapper.newInstance() >> >> } >> >> because how can the call to the method LayerWrapper.newInstance() >> understand which is the correct implementation to call? >> >> Thank for your help, I owe you a beer :) >> Bye >> >> Marco >> >> On 16 Dic, 23:45, Marco Visonà wrote: >> >> >> >> > Hi Eric >> >> > thanks for your immediate response. >> > I figured out your technique. I'll try to apply your suggetions >> > tomorrow. >> >> > Bye >> > Marco >> >> > On 16 Dic, 22:51, Eric Ayers wrote: >> >> > > Hi Marco, >> >> > > You don't want deferred binding in this case. Deferred binding is for >> > > the >> > > case where you want to choose from only one of several options to be >> > > present >> > > at run time (like what language or browser-type). >> >> > > Just pretend like this is a plain Java App and you are constrained from >> > > using reflection. You probably want to do something clever like create >> > > an >> > > object that wraps the class to be instantiated and includes an interface >> > > to >> > > a factory that returns layer instances. Fill an array with these >> > > wrappers, >> > > pass it into your code, then at the appropriate time the code can iterate >> > > through the array and invoke the factory method on each one. >> >> > > On Wed, Dec 16, 2009 at 4:09 PM, Marco Visonà wrote: >> > > > I'll try to be a bit more clear. >> > > > I have an abstract class called Layer an a set of classes that inherit >> > > > from it. There is a method in my code where i declare new instances of >> > > > my layer in a manner like the following: >> > > > new SensorsLayer(param1, param2); >> > > > new TestLayer(param1,param2,param3) >> >> > > > and so on (both the classes inherit from Layer). Each layer basically >> > > > fills a panel with specific widgets and event handlers. >> > > > In this situation somebody that develops a new layer subclass has to >> > > > instantiate it in the same point of the application, but that position >> > > > is supposed to be a "core" position of my application, so I would like >> > > > other programmers wouldn't put their hands
Re: New layouts not playing nicely with Maps
I am using UI binding to setup my app, so I needed a little extra tweak to Eric's code. If I placed the timer either before or after the createAndBindUi call in my widget containing the map, I was still experiencing the map UI rash Jeff and Andrew had. However, since my app also uses event handling (via gwt-dispatch), I was able to fire a custom RetrievedMap event at a place in the code when I know the app has completely finished UI binding (ie, the user clicks on a nav item to fetch map data, the app retrieves a success from the server, the app then fires the RetrievedMap event ). My docker widget containing the MapWidget listens for the RetrievedMap event, and so I tucked in Eric's timer code to the method handling the RetrievedMap event and it worked wonderfully. Phew. What I am trying to say is: if you are using UI binding, a plain Timer fix may not work because of arbitrary times that your UI may complete binding. Best to fire an event when you know the UI is completely loaded, and in handling the event run Eric's timer code. Stuart On Dec 21, 11:06 am, Andrew Winter wrote: > Thanks, Eric. The timer thing does exactly what I wanted. > > Andrew. > > On Dec 21, 12:54 pm, Eric Ayers wrote: > > > > > On Mon, Dec 21, 2009 at 6:19 AM, Andrew Winter > > wrote: > > > Hi, > > > > I have the exact same problem as Jeff. One difference between Jeff's > > > case and Eric's case is that in Jeff's case, the dimensions of the map > > > are not known; in Eric's case the map is 400px by 500px. It seems this > > > problem occurs when the dimensions of the map are not known at build- > > > time. > > > > I want my map to occupy the bottom-right corner of my UI (like Google > > >Maps). When I use setSize("100%,"100%"), theMapWidgetis given the > > > correct size (the Google logo etc appear in the right place) but the > > > tiles don't cover the whole of the widget. > > > The trick I used to schedule checkResizeAndCenter() in a timer > > callback solved that issue for me > > > > When I provide an explicit > > > size, or resize the browser, the tiles are displayed correctly. > > > > I don't really want to provide dimensions in pixels if I don't have > > > to. Is this the only way? > > > In the past I've always recommended dimensions in pixels for best > > results. You could hack around this by hooking into the resize event > > listener. > > > > Thanks > > > > Andrew. > > > > On Dec 17, 6:44 pm, Eric Ayers wrote: > > >> Hi Jeff, > > > >> I played around with this and got it to work with these panels: > > > >> privateMapWidgetmap; > > > >> // GWT module entry point method. > > >> public void onModuleLoad() { > > >>Maps.loadMapsApi(null, null, false, new Runnable() { > > >> public void run() { > > >> LatLng cawkerCity = LatLng.newInstance(39.509, -98.434); > > >> // Open a map centered on Cawker City, KS USA > > > >> map = newMapWidget(cawkerCity, 2); > > >> map.setSize("100%", "100%"); > > >> map.setUIToDefault(); > > > >> DockLayoutPanel dock = new DockLayoutPanel(Unit.PX); > > >> dock.setHeight("600px"); > > >> dock.setWidth("400px"); > > >> SplitLayoutPanel split = new SplitLayoutPanel(); > > >> dock.add(split); > > >> split.addNorth(map, 500); > > >> split.setWidth("100%"); > > >> split.setHeight("100%"); > > >> // Add the map to the HTML host page > > >> RootPanel.get().add(dock); > > >> new Timer() { > > >> public void run() { > > >> map.checkResizeAndCenter(); > > > >> } > > >> }.schedule(1); > > >> } > > >> }); > > >> } > > >> On Sat, Dec 12, 2009 at 3:51 AM, Jeff Schnitzer > > >> wrote: > > >> > Does anyone have the GWT Googlemapsworking inside the new Layout > > >> > panels? > > > >> > My page is basically a DockLayoutPanel whose main element is a > > >> > SplitLayoutPanel whose main element is aMapWidget. TheMapWidgetis > > >> > set to 100% size. > > > >> > On startup, the map tiles are sized to a very small part of the area, > > >> > although the grey background does seem to cover the entire space: > > > >> >http://www.infohazard.org/~jeff/mapnolayout.png > > > >> > If I resize the browser window, the map quickly covers the whole area > > >> > and starts to work normally. > > > >> > I've tried callingMapWidget.checkResize() and the LayoutPanel's > > >> > forceLayout() methods but neither have an effect. Any idea what I'm > > >> > doing wrong? > > > >> > The code is super-simple: > > > >> > SplitLayoutPanel split = new SplitLayoutPanel(); > > >> > this.add(split); // to the DockLayoutPanel > > > >> > split.addWest(new HTML("blah"), 200); > > > >> > LatLng cawkerCity = LatLng.newInstance(39.509, -98.434); > > >> > MapWidgetmap = newMapWidget(cawkerCity, 4); > > >> > map.setSize("100%", "100%"); > > >> > split.add(map); > > > >> > Thanks, > > >> > Jeff > > > >> > -- > > > >> > You received this message because you are subscribed to the Google > > >> > Groups > > >> > "Google Web Toolkit" group. > > >> > To post to this group, send email to >
Pressing the enter key in the SuggestBox popup fire onKeyUp event! How to disable this?
Hi there! If I select an option in the SuggestBox popup by pressing the enter key then onKeyUp event fire. But I don't want that it happens because I already handle pressing the enter on the textbox by executing another code. My code below: suggestBox.addSelectionHandler(new SelectionHandler() { public void onSelection(SelectionEvent arg0) { //Here my code } }); suggestBox.getTextBox().addKeyUpHandler(new KeyUpHandler() { public void onKeyUp(KeyUpEvent arg0) { if (arg0.getNativeKeyCode() == 13) { //Here another my code } } }); How to disable this or what is the workaround? -- You received 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.
GWT 2.0: Plugin failed to connect to hosted mode server
Hello everybody, I am new to GWT and need some help. I have recently downloaded GWT 2.0 as an Ecplise plugin + SDK. Following the "Getting started" tutorial I have created a new GWT application project in Eclipse, StockWatcher. I have made no changes to the generated application. The application was created successfully, so I tried to run it locally using "Run As -> Web Application" (with the Google icon). Then I copied the suggested URL from Development Mode tab and pasted into the browser (Chrome 4 with GWT extension): http://localhost:/StockWatcher.html?gwt.codesvr=10.0.0.1:9997 I was expecting to view the default page normally, but it turned out that only the static elements of the web page (the headline "Web Application Starter Project" and label "Please enter your name:") were displayed. After a while, a message box pops up: "Plugin failed to connect to hosted mode server at 10.0.0.1:9997". When I close it I get a blackened screen with: "GWT Code Server Disconnected Most likely, you closed GWT development mode. Or you might have lost network connectivity. To fix this, try restarting GWT Development Mode and REFRESH this page." This of course happening each time no matter what I do. Then I tried to compile the project and go directly to http://localhost:/StockWatcher.html , without the gwt.codesvr parameter. It did work, but that means that I can only work by compiling the code each time I want to test it (and probably can't debug). At first I thought this might be a firewall issue (although i'm not sure that accessing localhost should be a firewall concern), but to be on the safe side I have opened the ports and 9997. It didn't help. Any ideas? Thanks, Yuval -- You received 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.
Passing and parsing parameters through history events
hi everyone. are there any build-in mechanics to pass and parse parameters through history events? best regards -- You received 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: Unable to run DevMode
I am having the same issue right now. 00:00:00.684 [WARN] Error processing classpath URL 'file:/Users/ ssaammee/.m2/repository/com/sun/jdmk/jmxtools/1.2.1/ jmxtools-1.2.1.jar' java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:114) at java.util.jar.JarFile.(JarFile.java:133) at java.util.jar.JarFile.(JarFile.java:97) at com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl (ResourceOracleImpl.java:175) at com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries (ResourceOracleImpl.java:223) at com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries (ResourceOracleImpl.java:249) at com.google.gwt.dev.resource.impl.ResourceOracleImpl. (ResourceOracleImpl.java:293) at com.google.gwt.dev.resource.impl.ResourceOracleImpl. (ResourceOracleImpl.java:283) at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule (ModuleDefLoader.java:287) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath (ModuleDefLoader.java:141) at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867) at com.google.gwt.dev.DevMode.loadModule(DevMode.java:425) at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953)at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690)at com.google.gwt.dev.DevMode.main(DevMode.java:251) On Dec 21, 4:55 pm, Raziel wrote: > Hi, I just upgraded my application from 1.7.0 to 2.0, and while > everything is working fine in production mode, when I try to run > Development mode I get the following error: > > Loading modules > com.appiancorp.gwt.appbuilder.ApplicationBuilderDev > Public resources found in... > [WARN] Error processing classpath URL 'file:/C:/Documents > %20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jdmk/jmxtools/ > 1.2.1/jmxtools-1.2.1.jar' > java.util.zip.ZipException: error in opening zip file > at java.util.zip.ZipFile.open(Native Method) > at java.util.zip.ZipFile.(ZipFile.java:114) > at java.util.jar.JarFile.(JarFile.java:133) > at java.util.jar.JarFile.(JarFile.java:97) > at > com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl > (ResourceOracleImpl.java:175) > at > com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries > (ResourceOracleImpl.java:223) > at > com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries > (ResourceOracleImpl.java:249) > at com.google.gwt.dev.resource.impl.ResourceOracleImpl. > (ResourceOracleImpl.java:293) > at com.google.gwt.dev.resource.impl.ResourceOracleImpl. > (ResourceOracleImpl.java:283) > at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449) > at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule > (ModuleDefLoader.java:287) > at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath > (ModuleDefLoader.java:141) > at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867) > at com.google.gwt.dev.DevMode.loadModule(DevMode.java:425) > at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340) > at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953) > at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690) > at com.google.gwt.dev.DevMode.main(DevMode.java:251) > [WARN] Error processing classpath URL 'file:/C:/Documents > %20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jmx/jmxri/ > 1.2.1/jmxri-1.2.1.jar' > java.util.zip.ZipException: error in opening zip file > at java.util.zip.ZipFile.open(Native Method) > at java.util.zip.ZipFile.(ZipFile.java:114) > at java.util.jar.JarFile.(JarFile.java:133) > at java.util.jar.JarFile.(JarFile.java:97) > at > com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl > (ResourceOracleImpl.java:175) > at > com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries > (ResourceOracleImpl.java:223) > at > com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries > (ResourceOracleImpl.java:249) > at com.google.gwt.dev.resource.impl.ResourceOracleImpl. > (ResourceOracleImpl.java:293) > at com.google.gwt.dev.resource.impl.ResourceOracleImpl. > (ResourceOracleImpl.java:283) > at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449) > at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule > (ModuleDefLoader.java:287) > at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath > (ModuleDefLoader.java:141) > at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867) > at com.google.gwt.dev.DevMode.loadModule(DevMode.java:425) >
Making a GWT HTTP listener service for accepting external request
Hi all, I've tried looking at the documentation on how to create a GWT HTTP service that will listen to a request from another webapp but I'm having a hard time on how to implement it. What I've found in the docs is either: - GWT calling external HTTP service - or GWT calling internal RPC service Is there any docs or article on how to do this in GWT that I can read? Or maybe someone can give me a short hint on how to implement it? Kind regards, -- http://jobs.scrum8.com | http://twitter.com/scrum8 -- You received 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.
how to suppress .../*-aux/.rpc.log
I am building a rather complex project which uses GWT. The build process generates a large number of .rpc.log files, each about one gigabyte in size. I would like to suppress generation of these files but after reviewing the most recent documentation and searching the mailing list archives I do not see an obvious way to do so. Any suggestions regarding how one might approach this problem and/or references to pertinent documentation would be greatly appreciated! Thank You! - Kyle -- You received 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.
main project
i am btech final year student right know i should do a main project for my final sem can u suggest me how could gwt will be helpful in my project..can u even guide me which project shall i take using gwt so that i could give different innovative project of my own by your guidance pls if u can give reply i am very much thankful to u -- You received 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: Developing a plugin based application
Hi, I recently had very similar problem. I have an app in which there are Views (similar to your layers) and I wanted views to be completely independent of the App (before I made the changes the App's class was responsible for creating Views which I found very sloppy). I did pretty much the same thing that Eric has proposed. The App's class has a static list of Initializers which implement Initializer interface which have two methods, first creates associated View's instance and second adds itself into the App's list of Initializers so the App only goes through the array and calls newInstance of each initializer. The initializers implements EntryPoint so I can specify which Views to create simply by adding a module to my gwt.xml or by adding more EntryPoints to it. I don't know if this is right method to implement this but I'm using it together with code splitting and everything seems fine (View's code and App's code are put in deferedjs and only very small portion of code is executed in JS after the app startup which speeds the initial loading time). After calling GWT.runAsync the App properly initializes all registered views. Honza On Dec 19, 9:10 am, Marco Visonà wrote: > Hi Eric > thank to your advice I found a partial solution. I have an > interface Layer implemented by each layer and I created this layer > factory: > > public class LayerFactory { > > public enum LayerType { > SENSORS_LAYER, TEST_LAYER > } > > public Layer newInstance(LayerType type) { > switch (type) { > case SENSORS_LAYER: > return new SensorsLayer(lm, mapAttrs); > case TEST_LAYER: > return new TestLayer(lm, mapAttrs); > default: > return null; > } > } > > } > > so in my code I can iterate through each element in the enum to > instantiate the layers. > > for(LayerType type : LayerType.values()) { > lFactory.newInstance(type); > > } > > However this is not your solution. You told about creating a wrapper > class (let's say to call it LayerWrapper) implementing an interface > containing a newInstance method, and putting each layer class inside > the corresponding layer. So let's say to have the wrapper array you > told about in your previous post: > LayerWrapper[] layersWrap = new LayerWrapper[2] > > then I would cycle through the elements, but how can I instantiate the > correct layer? I don't think that the following would be the correct > procedure: > > for(int i=0; i < layersWrap.length; i++) { > layersWrap[i]= LayerWrapper.newInstance() > > } > > because how can the call to the method LayerWrapper.newInstance() > understand which is the correct implementation to call? > > Thank for your help, I owe you a beer :) > Bye > > Marco > > On 16 Dic, 23:45, Marco Visonà wrote: > > > > > Hi Eric > > > thanks for your immediate response. > > I figured out your technique. I'll try to apply your suggetions > > tomorrow. > > > Bye > > Marco > > > On 16 Dic, 22:51, Eric Ayers wrote: > > > > Hi Marco, > > > > You don't want deferred binding in this case. Deferred binding is for the > > > case where you want to choose from only one of several options to be > > > present > > > at run time (like what language or browser-type). > > > > Just pretend like this is a plain Java App and you are constrained from > > > using reflection. You probably want to do something clever like create an > > > object that wraps the class to be instantiated and includes an interface > > > to > > > a factory that returns layer instances. Fill an array with these > > > wrappers, > > > pass it into your code, then at the appropriate time the code can iterate > > > through the array and invoke the factory method on each one. > > > > On Wed, Dec 16, 2009 at 4:09 PM, Marco Visonà wrote: > > > > I'll try to be a bit more clear. > > > > I have an abstract class called Layer an a set of classes that inherit > > > > from it. There is a method in my code where i declare new instances of > > > > my layer in a manner like the following: > > > > new SensorsLayer(param1, param2); > > > > new TestLayer(param1,param2,param3) > > > > > and so on (both the classes inherit from Layer). Each layer basically > > > > fills a panel with specific widgets and event handlers. > > > > In this situation somebody that develops a new layer subclass has to > > > > instantiate it in the same point of the application, but that position > > > > is supposed to be a "core" position of my application, so I would like > > > > other programmers wouldn't put their hands on it. > > > > > So let's say I had an array containing the class names of the layers > > > > (that I could read from whatever source).If there were some technique > > > > to call the right constructor for each layer basing on the class name, > > > > I would be done, because the instantiation could be executed through > >
SyncInterface
Hi, We would like to automatically generate the AsyncInterface for a service inside an ant task (for example, could be anything else!). The point is that our async interfaces can, effectivally be generated automatically and doing it class by class inside eclipse with the google plugin in very boring and error prone... Do you suggest any solution to 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: UnsatisfiedLinkError on Production Machine
You're trying to call a JSNI method on the server. That won't work. You get an UnsatisfiedLinkError because JSNI uses Java's native method syntax. On the server there is no native implementation of that method. You'll need to use a different MD5 implementation on the server. On Tue, Dec 22, 2009 at 9:35 AM, canistel wrote: > Nobody has any ideas? > > :( > > -- > > You received 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. > > > -- You received 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: UnsatisfiedLinkError on Production Machine
Nobody has any ideas? :( -- You received 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: Saving form inputs for browser autocomplete
Hmm, that script inserted forms problem, might be fatal. I guess security should be handled by browsers, and all non-XHR forms are leveraging this feature. please On Dec 22, 3:07 pm, Thomas Broyer wrote: > On Dec 22, 2:53 pm, skrat wrote: > > > Hi all, > > > I am curious about, how can one enable, or force a browser to remember > > value inside text inputs (TextBox) values. In browsers it basically > > works when you submit a form, then all values are remembered, and next > > time you open that form, you will be provided with autocomplete box. > > All major browsers works like this. > > > Since in apps, that decides to use XML, JSON or GWT RPC, values in > > forms are actually not submitted, and thus not remebered. We just read > > those values and don't do any submit, we do XHR instead. > > > Any ideas how to get back this very useful browser feature? > > This is a hack but if you really want it: > - use a form > - expose a GWT method as a JS 'global' function (e.g., > myExportedGwtMethod) > - set the form's action to call the exported method > ("javascript:myExportedGwtMethod()") > - do your XHR/RPC call from within your exported GWT method > > Note that (I'm almost sure this isn't the case, for any form except > login forms, but just in case) this might only work if the form is > actually part of the original HTML markup of the page (i.e. not > inserted by script). > > It's not worth it IMO; except for login forms eventually, even if it > goes against the most basic security rules, just because of the > enhanced UX. -- You received 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: Problem upgrading Eclipse for 2.0
On Dec 22, 2:54 pm, bnedwek wrote: > I'm trying to upgrade to GWT 2.0. I downloaded the latest version of > the Eclipse plug-in (1.2) and tried to install it, by extracting it > into the dropins directory, but that didn't seem to work (couldn't add > the new SDK because the old plug-in was saying it didn't contain a jar > file with a platform extension). > > I then did something that was probably kind of stupid and tried > deleting the old version of the plug-in (1.1.1) from that directory. > New version still didn't load. To try to put things back I copied all > the old 1.1.1 files back into dropins but Eclipse still gives me > errors when I try to open up a project that was working before this > whole adventure ("Could not open the editor: No editor descriptor for > id com.google.gwt.eclipse.core.editors.gwtJavaEditor"). > > Any ideas how I get this all sorted back out? I'd suggest removing the plugins (all versions) from the "dropins" and try installing the 1.2 plugin from the install site if possible (and why not take GWT 2.0 from there too when you're at it?). Otherwise, start from a fresh workspace, and as a last resort from a fresh Eclipse install. -- You received 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: Saving form inputs for browser autocomplete
On Dec 22, 2:53 pm, skrat wrote: > Hi all, > > I am curious about, how can one enable, or force a browser to remember > value inside text inputs (TextBox) values. In browsers it basically > works when you submit a form, then all values are remembered, and next > time you open that form, you will be provided with autocomplete box. > All major browsers works like this. > > Since in apps, that decides to use XML, JSON or GWT RPC, values in > forms are actually not submitted, and thus not remebered. We just read > those values and don't do any submit, we do XHR instead. > > Any ideas how to get back this very useful browser feature? This is a hack but if you really want it: - use a form - expose a GWT method as a JS 'global' function (e.g., myExportedGwtMethod) - set the form's action to call the exported method ("javascript:myExportedGwtMethod()") - do your XHR/RPC call from within your exported GWT method Note that (I'm almost sure this isn't the case, for any form except login forms, but just in case) this might only work if the form is actually part of the original HTML markup of the page (i.e. not inserted by script). It's not worth it IMO; except for login forms eventually, even if it goes against the most basic security rules, just because of the enhanced UX. -- You received 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.
Problem upgrading Eclipse for 2.0
I'm trying to upgrade to GWT 2.0. I downloaded the latest version of the Eclipse plug-in (1.2) and tried to install it, by extracting it into the dropins directory, but that didn't seem to work (couldn't add the new SDK because the old plug-in was saying it didn't contain a jar file with a platform extension). I then did something that was probably kind of stupid and tried deleting the old version of the plug-in (1.1.1) from that directory. New version still didn't load. To try to put things back I copied all the old 1.1.1 files back into dropins but Eclipse still gives me errors when I try to open up a project that was working before this whole adventure ("Could not open the editor: No editor descriptor for id com.google.gwt.eclipse.core.editors.gwtJavaEditor"). Any ideas how I get this all sorted back out? Thanks a lot, Brandon -- You received 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.
Saving form inputs for browser autocomplete
Hi all, I am curious about, how can one enable, or force a browser to remember value inside text inputs (TextBox) values. In browsers it basically works when you submit a form, then all values are remembered, and next time you open that form, you will be provided with autocomplete box. All major browsers works like this. Since in apps, that decides to use XML, JSON or GWT RPC, values in forms are actually not submitted, and thus not remebered. We just read those values and don't do any submit, we do XHR instead. Any ideas how to get back this very useful browser feature? -- You received 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: Development mode crashes Safari 4.0.4 in OS X 10.4
The issue appears to be with 10.4 and the browser plug-ins, not GWT 2.0 on 10.4 itself. A slightly rubbish workaround is to install a Linux or Windows virtual machine (VirtualBox works fine) and install the GWT plug-in into the browser on Linux/Windows. Luckily my main machine is running 10.6 :) -- You received 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: Gilead + Guice + Gwt-Dispatch
If you are tired to write Actions and Results you may consider using the RPC the old way, nothing is gonna constrain you. On Mon, Nov 23, 2009 at 4:36 PM, djd wrote: > Yes, I worked on a sample code that achieved that a couple of month > ago... I will try to post some sample code as soon as possible (first > let me find it); > for now, allow me to give you some impressions : > * the idea is nice (modularization, clear code, simple classes, etc) > * BUT the implementation is painful: >- I remember that I had to extend the EngineRemoteServlet > (supplied with Gilead) - not very cool >- it boasts that "no web.xml anymore" - forget it, you have to map > quite a bit before making it work >- at that time there was no "hello, world" example of setting it > up >- A LOT OF BOILER PLATE CODE (Action, Result for every possible > interaction with the server). Way too much to actually make something > useful. After you write about 5 Action + 5 Result classes, you will > get what I mean >- You lose the feeling of coding with Java, because your remove > service interface has only one method (doExecuteAction-and- > getAResult). >- You cannot have more methods on the same interface - aka service > - (again, Java feeling is completely lost) >- Because of generics restriction (even through Rpc interface is > using generics, the type erasure is not considered when extending an > interface, so you cannot do something like "interface UserService > extends Service, Service<...>, > Service<...> > > I will post some working code soon or you can PM me and I'll send you > the whole project > > On Nov 23, 1:24 pm, Marcos Alcantara wrote: > > Hi, > > > > Have anyone been successful on using these three altogether? > > > > Can someone please post some examples about how to configure them? > > > > Thanks!!! > > > > Marcalc > > -- > > You received 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=. > > > -- You received 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: UI Binder bugs - maybe config issue on my side(?)
Sure, thanks for helping hand. Zipped project is here: ns.blucina.net/lovisek/tmp/XploreU-inbox.zip I also deployed the project here: http://ns.blucina.net/lovisek/tmp/xu/XploreU_inbox.html As you can see, onClick handler is never fired despite it should be triggered after clicking on button and bold C label. Regards Peter On Dec 21, 6:59 pm, Jason Parekh wrote: > Hi Peter, > > Would you mind zipping your project up and hosting it somewhere for me > to download? > > I tried copying the pasted ui.xml and java file, but I was unable to > repro the issues you're seeing in my simple project. > > Thanks, > jason > > On Mon, Dec 21, 2009 at 11:16 AM, Peter wrote: > > Dear all, > > I'm working with UI binder and seems to me I have not completed > > successfully installation or there's something wrong in it. In code > > listed below I can see several things I could not understand: > > 1. Project is complied OK and runs. However, having java code opened I > > can see error on lines starting @UiField: > > Field label1 has no corresponding field in template file InboxB.ui.xml > > Field hp has no corresponding field in template file InboxB.ui.xml > > > 2. Running project shows: A C C [B]. Which is correct and second 'C' > > proves correct together-sticking of java and XML despite error in (1). > > > 3. However, no click event is executed ever, clicking at button. > > > This is very weird situation and might mean my installation is > > completely screwed up. However, all other stuff work, my 5 previous > > GWT project, too. Did anyone hit this situation before? > > > Part of this issue has been described by someone else here: > >http://groups.google.com/group/google-web-toolkit/browse_thread/threa... > > > Regards > > Peter > > > http://dl.google.com/gwt/DTD/xhtml.ent";> > > > xmlns:g="urn:import:com.google.gwt.user.client.ui"> > > > > .important { > > font-weight: bold; > > cursor:pointer; > > } > > > > > > > A > > > text="B2"> > g:Label> > > C > > > > > > > package com.xploreu.inbox.client; > > > import com.google.gwt.core.client.GWT; > > import com.google.gwt.event.dom.client.ClickEvent; > > import com.google.gwt.event.dom.client.ClickHandler; > > import com.google.gwt.uibinder.client.UiBinder; > > import com.google.gwt.uibinder.client.UiField; > > import com.google.gwt.uibinder.client.UiHandler; > > import com.google.gwt.user.client.Window; > > import com.google.gwt.user.client.ui.Button; > > import com.google.gwt.user.client.ui.Composite; > > import com.google.gwt.user.client.ui.HorizontalPanel; > > import com.google.gwt.user.client.ui.Label; > > import com.google.gwt.user.client.ui.Widget; > > > public class InboxB extends Composite implements ClickHandler { > > > private static InboxBUiBinder uiBinder = GWT.create > > (InboxBUiBinder.class); > > > interface InboxBUiBinder extends UiBinder { > > } > > > �...@uifield Label label1; > > �...@uifield HorizontalPanel hp; > > Button b = new Button("B"); > > > public InboxB(String firstName) { > > initWidget(uiBinder.createAndBindUi(this)); > > > label1.setText("C"); > > hp.add(b); > > > label1.addClickHandler(this); > > b.addClickHandler(this); > > } > > > �...@override > > public void onClick(ClickEvent event) { > > Window.alert("Click"); > > } > > } > > > -- > > > You received 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 > > athttp://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-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: Why doesn't ListBox ChangeHandler handle inserts?
Hi > So what would you suggest? > > 1. Overriding insertItem, etc and firing a ChnageEvent (I had a quick > look and I can't see how)? Did a bit more digging: ChangeEvent.fireNativeEvent(Document.get().createChangeEvent(), this); -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com b: paulgrenyer.blogspot.com -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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: Why doesn't ListBox ChangeHandler handle inserts?
Hi On Tue, Dec 22, 2009 at 7:41 AM, Jim Douglas wrote: > The ListBox ChangeEvent tells you that the user changed the selected > index. It's not fired when you change the selected index > programmatically, and it's not fired when you change the contents of > the list. It's assumed that the programmer knows when he did > something to modify the list, so it's up to you to explicitly code for > anything that you want to have happen. > > http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/ListBox.html#setItemSelected(int,%20boolean) > > "Note that setting the selection programmatically does not cause the > ChangeHandler.onChange(ChangeEvent) event to be fired." So what would you suggest? 1. Overriding insertItem, etc and firing a ChnageEvent (I has a quick look and I can't see how)? 2. Overriding insertItem, etc and implementing my own change handler interface? 3. Something else? Thanks! -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com b: paulgrenyer.blogspot.com -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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: Session
This is the normal behavior. If you need to persist data after you close the browser, you should use cookies. On 12/22/2009 12:06 AM, hemodroid wrote: > com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.getThreadLocalRequest > ().getSession() > > On 21 déc, 23:17, Nicanor Cristian wrote: > >> What do mean by "session"? >> >> hemodroid ha scritto: >> >> >> >> >>> I dont know if it is related to Appengine or GWT, as i am using both >>> in my application, but it seems like sessions do not last after u >>> close your 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-tool...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> google-web-toolkit+unsubscr...@googlegroups.com. >>> For more options, visit this group >>> athttp://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-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. > > > > -- You received 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.