gwt

GWT - How to view java exception stack trace in super dev?

孤者浪人 提交于 2019-12-20 15:08:35
问题 I'm using GWT Super Dev and I activated source maps in Chrome. Although I can see the Java classes in the Sources tab, I can't figure out how to view the full stack trace of unhandled exceptions. So how do I do that ? 回答1: There is an open issue for it: http://code.google.com/p/google-web-toolkit/issues/detail?id=7460 However I've come to a workaround where I don't use the code server, but I integrate source map creation into a Maven-based project via a Maven profile. See this archetype for

Execute Javascript method from browser address bar - GWT

血红的双手。 提交于 2019-12-20 12:34:30
问题 I'm trying to execute Javascript on my web application by executing this on the browser URL/address bar: javascript:window.alert('test');void(0); However, nothing happens and the alert box is not showing up? Could the reason be that the app is running in DevMode? 回答1: I believe most browsers refuse to execute javascript: URLs from the URL bar as a safety measure (there's been messages on the web –esp. Facebook– telling people to copy-paste a javascript: URL to their URL bar that triggered an

“Unable to find XXX.gwt.xml on your classpath” error in GWT

こ雲淡風輕ζ 提交于 2019-12-20 12:22:04
问题 After importing a Maven GWT project into Eclipse the debugger doesn't work, complaining that it's Unable to find ProjectName.gwt.xml on your classpath How do you fix this error? 回答1: It turns out that when you debug some GWT project as Web Applications, Eclipse does not append the module name (i.e. the gwt.xml file) to the list of arguments. I tried adding it manually, but forgot to add the complete package name that houses the gwt.xml file. The module should have been referred to as com

When to use GWT ensureInjected()?

匆匆过客 提交于 2019-12-20 11:42:13
问题 I created a few styles into a CSSResource and it works well whether I use GWT.<MyResources>create(MyResources.class).myStyles().ensureInjected(); or not. Could anyone shed a light on this and explain when to use ensureInjected or not? Thank you! Daniel 回答1: As Christian said, inside the UiBinder ui.xml file you don't have to worry about invoking ensureInjected() , the following XML statements do the job: <ui:with field='myStyle' type='com...MyStyle'/> <div class='{myStyle.redBorder}'/> Of

GWT-Bootstrap vs. GwtBootstrap3

送分小仙女□ 提交于 2019-12-20 11:41:07
问题 As far as I can tell there are two librarys for Twitter Bootstrap integration in GWT. There is GWT-Bootstrap and GwtBootstrap3. I have just started a project built on GWT-Bootstrap, since I did not realize that there is another GWT Bootstrap integration out there. Both project look pretty active on GitHub, althought GWT-Bootstrap does have more members. I understand that GWT-Bootstrap is based on Bootstrap version 2. On the other hand GwtBootstrap3 wrapps Bootstrap version 3 and seems to have

Creating a fluid panel in GWT to fill the page?

余生长醉 提交于 2019-12-20 11:36:41
问题 I would like a panel in GWT to fill the page without actually having to set the size. Is there a way to do this? Currently I have the following: public class Main implements EntryPoint { public void onModuleLoad() { HorizontalSplitPanel split = new HorizontalSplitPanel(); //split.setSize("250px", "500px"); split.setSplitPosition("30%"); DecoratorPanel dp = new DecoratorPanel(); dp.setWidget(split); RootPanel.get().add(dp); } } With the previous code snippet, nothing shows up. Is there a

How to ClientBundle in GWT?

冷暖自知 提交于 2019-12-20 11:30:05
问题 I am using GWT ClientBundle for the first time. I wrote interface that extends it and here is the code: package edu.etf.fuzzy.client.login; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.ImageResource; public interface Resources extends ClientBundle { @Source("logo_federacija.jpg") ImageResource logo(); @Source("shim.gif") ImageResource shim(); } My question is: How do I tell where exactly these resources (images in this case) can be found. Should

How to ClientBundle in GWT?

房东的猫 提交于 2019-12-20 11:29:03
问题 I am using GWT ClientBundle for the first time. I wrote interface that extends it and here is the code: package edu.etf.fuzzy.client.login; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.ImageResource; public interface Resources extends ClientBundle { @Source("logo_federacija.jpg") ImageResource logo(); @Source("shim.gif") ImageResource shim(); } My question is: How do I tell where exactly these resources (images in this case) can be found. Should

GWT Compiler can't find gwt.xml

徘徊边缘 提交于 2019-12-20 11:03:18
问题 I have changed and renamed my package structure of my GWT project, and when trying to run the project as a web application, the module isn't found and I get the following message: [ERROR] Unable to find 'de/xx/focus/My_Projekt.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] shell failed in doStartup method Which class is used to load the module, and where to update the new path, respectively? 回答1: I spent an hour staring at my

GWT module XML - how to redefine and use more than one user agent

半世苍凉 提交于 2019-12-20 10:55:16
问题 http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_CompileOnePermutation In the article I learned I can speed up the compiler but specifying the target user agent. The problem how can I specify more than one user agent? Suppose my application supports ie6 and FF3 <set-property name="user.agent" value="ie6,geck1_8" /> doesn't work - I got XML parsing error: [ERROR] Invalid property value 'ie6,gecko1_8' I'm wondering if there's a way to specify