gwt

GWT RichTextArea ReadOnly Workaround

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 04:54:16
问题 GWT's RichTextArea doesn't have a method to make it "ReadOnly". There's a setEnabled() method, but if you call setEnabled(false), it doesn't work. I'm trying a workaround for this that should work. My idea is to replace the RichTextArea for this behavior with a HTML widget. The problem is, if I use an HTML widget to set the original RichTextArea's content, it will be affected by all the styling of my web application. The RichTextArea achieves this wrapping the content inside an IFrame. So i'm

Maven GWT plugin adding other source directories

泪湿孤枕 提交于 2019-12-24 04:50:07
问题 How do I add another source directory to the maven gwt compile plugin? I have some generated code that I need to include in the compile. If I can't, what do people suggest to get around this? 回答1: I don't know if you have looked into this, but you could use the compileSourcesArtifacts attribute to include your generated code as an external library. There is an article on setting this up in the GWT Plugin Documentation. However, this will only work if you don't need the external code to be

com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit

喜你入骨 提交于 2019-12-24 04:36:05
问题 I'm getting below error while compiling gwt app with ver 2.6.0, Initially I have compiled it with maven having gwt ver 2.6.1 and then tried to compile it through eclipse having version 2.6.0. Is it related to version compatibility?? com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit. at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:110) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:276) at com.google.gwt.dev.jjs.ast

LibGDX Automatically Scaling GWT Window to Monitor Resolution

守給你的承諾、 提交于 2019-12-24 04:02:53
问题 I'm creating an application with LibGDX and deploying exclusively to a GWT HTML5 environment. The below code sets up my environment with a 1280x720 resolution as expected: public class HtmlLauncher extends GwtApplication { @Override public GwtApplicationConfiguration getConfig() { return new GwtApplicationConfiguration(1280, 720); // <-- here is line of code in question } @Override public ApplicationListener getApplicationListener() { return Engine.getInstance(); } } I would like my

GWT and JSNI add Javascript button into HTML panel

只谈情不闲聊 提交于 2019-12-24 04:01:28
问题 I create a simple Javascript file containing a simple button. function testfuncion() { document.write('<input type="button" name="hello" value="hello">'); } Then I created a HTML panel in gwt. HTML panelHtmlTry = new HTML(); How can put the Javascript button into the HTML panel? In this experiment I can't create the button in gwt but only put a Javascript object into the gwt panel. PS: i can use html panel or horizzontal panel. My objective is put a javascript button on each GWT panel and

How do I programmatically get info about a CellTable's headers?

自作多情 提交于 2019-12-24 03:52:57
问题 I'm using GWT 2.4. I have a com.google.gwt.user.cellview.client.CellTable widget, but I'm having trouble figuring out a programmatic way to get the String headers after the widget is constructed. I add column data like so ... tableWidget.addColumn(column, header); where column is a com.google.gwt.user.cellview.client.Column object and header is a String. how can I get the header from either the column or cell table objects? 回答1: For using protected method you can create a custom class, like

A little bit diffrent GWT/GXT persistent approach

拟墨画扇 提交于 2019-12-24 03:52:54
问题 I'm newbie with GWT/GXT and I'm looking for best persistence way for my future apps. I was considering many variants of doing that so I decided to draw a graph here: So my conclusions are: 1) JPA/Hibernate is the best persistence framework but it hates cooperation with GWT and a specially with GXT 2) JDBC it was just an example joke :) 3) MyBatis is really great tool for gaining data from db, its fast, efficient and has great possibilities not seen in Hibernate, but writing mappers is the

What should I do to speed up a slow GWT app using MVC

僤鯓⒐⒋嵵緔 提交于 2019-12-24 03:40:10
问题 I have changed my app to use MVC and it has gotten pretty slow. Description: The application has a number of 5 composites, each composite represents different data and is not always showing The app is using MVC and I am passing the model to each composite when an update occurs. I am rebuilding a Tree (and all tree items) every time a notify is recieved, however, only one of the tree items would have changed, so this is possibly a waste. Due to the style of the app I have to even notify() for

gwt 2.7 super Dev mode and incremental compilation

浪子不回头ぞ 提交于 2019-12-24 03:38:08
问题 In gwt 2.7 we have incremental compilation feature that we are all saying wow, As you know it just compiles last changes. My concern is when we have a super-super large project we need to wait 30 mins to start super-dev and have initial compilation be done then start to work and use incremental compilation. Because each time we start super dev mode it creates new folder in tmp directory and compile from scratch then add change's compiles (Incremental). So with my understanding it could not be

GWT and SSL not working?

纵然是瞬间 提交于 2019-12-24 03:29:30
问题 I have a GWT app, I'm using the MVP4G framework. I'm able to pull up my app just fine if I use HTTP. However, when I try to open it using HTTPS it does not work. My entire site works fine with the SSL certificate I have. Is there a particular configuration that I need to enable when I compile GWT? Or is there something I need to do in my apache configuration? Any help would be greatly appreciated, thank you. 回答1: SSL should not affect your application, because SSL runs on an other Layer. To