gwt

Is there a way to evaluate variable in source map inside the Chrome Developer tools?

喜欢而已 提交于 2020-01-03 15:36:54
问题 I'm debugging a GWT app using SuperDevMode in Chrome. What it gives me is the access to Java source maps in devtools. My problem is that when I'm debugging the code I would like to evaluate some of the variables. My question is - is it possible to evaluate a variable from the source map? If not - is it possible to navigate from the source map to the compiled javascript code? 回答1: Closest I can get to this is "Store as global variable" (Chrome 75): It will get named something like temp1 in the

GWT - “Access is Denied” JavaScript error when setting document.domain in Internet Explorer only

自闭症网瘾萝莉.ら 提交于 2020-01-03 14:16:13
问题 Background Information I am working on a web application that utilizes GWT (v2.4). For the application, I am creating an iframe that will display some information from another website. I need to access some information from that iframe that is normally restricted via the Same Origin Policy (SOP). However, both sites (the parent and iframe) are hosted on the same super-domain, just under different sub-domains. So, something like this: Parent: dev.app.mySite.com frame: someOtherContent.mySite

GAE/GWT: Error loading modules: Unable to find 'com/androidstartup/serialization/KPadProject.gwt.xml'

让人想犯罪 __ 提交于 2020-01-03 13:37:35
问题 I am using Eclipse 3.5 with GAE SDK 1.3.7 and GWT SDK 2.1.0 and Restlet 2.0.3. When I run my app, the console log shows: Loading modules com.androidstartup.serialization.KPadProject [ERROR] Unable to find 'com/androidstartup/serialization/KPadProject.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] shell failed in doSlowStartup method The main module /KPadProject.gwt.xml is in the root package. I checked out the configuration

Simple hyperlink in GWT?

风流意气都作罢 提交于 2020-01-03 12:33:43
问题 This should be simple, but somehow I can't find a way to create simple hyperlink in GWT. Basically, I want to load another page when users clicks on something. Hyperlink seems to point to internal GWT application state only. I guess I could put the link in HTML code itself, but how do I create it in Java? 回答1: Anchor this.add(new Anchor("www.stackoverflow.com")); 回答2: You're looking for Anchor. 来源: https://stackoverflow.com/questions/1767572/simple-hyperlink-in-gwt

GWT Themes and Component Libraries

自作多情 提交于 2020-01-03 10:18:12
问题 Are there any good themes or component libraries for GWT? The built-in themes are rather plain for my purposes. I've seen gwt-ext and smartgwt, but those aren't that great looking. Are there any others that have a real nice look? I know of vaadin an I really really like the look, but from what I understand that just an entirely new framework. 回答1: The first thing to be careful of is that there are two frameworks which use EXT and GWT: GWT-Ext Ext GWT Both are based on the Ext JS component

GWT SuperDev mode enabled, source maps enabled, compiled, yet no source maps appear

谁说我不能喝 提交于 2020-01-03 09:44:17
问题 As the title says, I'm attempting to run SuperDev mode using the latest version of GWT (2.6.1) in Chrome. My application is being served by a Tomcat server. I have the SuperDev mode server running (via IntelliJ), which compiles and links the sources successfully, and source maps are enabled in Chrome. I go to the application ( http://localhost:8081/example/#example ). When it loads, I compile using the DevMode On bookmark. When it's done compiling, I don't see any Java sources in the Chrome

Custom tags in UiBinder files

南笙酒味 提交于 2020-01-03 07:29:13
问题 When using a <g:LayoutPanel> in UiBinder.ui.xml files, you can specify <g:layer> tags. Some other Google-built widgets have special tags like that as well - <g:tab> even has a sub-tag, <g:header> . How can I specify these for my own widgets? 回答1: The new answer to this question, after some GWT improvements, is at https://stackoverflow.com/a/11785903/439317 . Copied below to avoid moderator deletion (maybe?). You can use @UiChild to declare special functions in your widgets accessible in

GWT CellTree scroll to arbitrary node

南楼画角 提交于 2020-01-03 06:06:11
问题 i'm coding some kind of objects browser, organized with folders. When user seslects some folder in the list i have to expand an appropriate node in a tree. I've implemented tree expand, element selection in tree, BUT expand might happen at a part of tree that is out of visible area (CellTree is on a ScrollPane). So, i do have an instace of TreeNode - how can i programmatically scroll to make it visible? 回答1: It's not possible with the current API, but what you can try, and I haven't tested

GWT CellTree scroll to arbitrary node

冷暖自知 提交于 2020-01-03 06:06:09
问题 i'm coding some kind of objects browser, organized with folders. When user seslects some folder in the list i have to expand an appropriate node in a tree. I've implemented tree expand, element selection in tree, BUT expand might happen at a part of tree that is out of visible area (CellTree is on a ScrollPane). So, i do have an instace of TreeNode - how can i programmatically scroll to make it visible? 回答1: It's not possible with the current API, but what you can try, and I haven't tested

Eclipse configuration to launch a Maven project with Google Web Toolkit

二次信任 提交于 2020-01-03 04:32:09
问题 I'm starting a GWT project with web creator as following: C:\>webAppCreator -noant -maven -overwrite -out MavenTest com.raphiki.MavenTest It generates a Maven project's structure with an GWT Hello world project, I import this project in Eclipse as a Maven project with existing sources . Then I enable Google Web Toolkit in my project, and I need to give a WAR path. I try with the /src/main/webapp which contains the entry point, but when I launch the app I get a ClassNotFoundException on Hello