gwt

程序员到底要不要学习框架、库和工具

≡放荡痞女 提交于 2020-04-22 23:02:42
老孟导读:昨天看了一篇文章,文章名称叫做《STOP LEARNING FRAMEWORKS》(停止学习框架),文章发布时间时间是2018年,感叹为什么没有早一点看到这一篇文章,看过我《对Flutter初学者的一些建议》这篇文章的都知道,里面建议少使用第三方库,但仅仅是从生态发展的角度考虑的,这篇文章或者可以给你一些不一样的启发。 以下为译文: 作为开发人员,我们需要与时俱进,跟上技术的步伐,我们每天都在学习编程语言、框架和库,因为我们知道越现代的工具越好。 跟随Angular, React, Vue, Riot, Ember, Knockout 的脚步是一件多么有趣的事啊。(这应该是一句反话) 但这是在浪费时间 时间是我们拥有的最宝贵的资源。 它是有限的,不可再生的,用钱也买不到它。 技术就像时尚一样,以光速变化。 为了赶上它,我们需要跑的非常快。但 这场比赛没有赢家,因为它没有终点。 我的导师曾经这样教我: 导师:Ed(作者,下同),你在做什么? 我(骄傲地说):我正在读一本关于如何用 GWT 构建现代 Java 应用的书。 导师:读它做什么? 我:作为一个开发者,我应该紧跟潮流,GWT现在非常流行。 导师:在读GWT之前,你读过其他技术书籍吗? 我:我读了一本关于Apache Tapestry的书籍,这本书有500页,那时这本书也非常流行。 导师:那现在这本书还流行吗? 我:不

gwt logging not working

こ雲淡風輕ζ 提交于 2020-04-18 02:34:13
问题 I am trying the GWT logging features. I have created a Gwt Application Project with GWT 2.8.2 The application works. Here is my gwt.xml file with logging enabled: <?xml version="1.0" encoding="UTF-8"?> <!-- When updating your version of GWT, you should also update this DTD reference, so that your app can take advantage of the latest GWT module capabilities. --> <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.2//EN" "http://gwtproject.org/doctype/2.8.2/gwt-module.dtd">

How to style GWT CellList?

青春壹個敷衍的年華 提交于 2020-03-20 12:43:50
问题 I have a CellList that I want to style. I want to change the cursor style, the ugly color of a selected cell . I checked several questions and discussions on stack overflow,but none of them worked. I checked these one: CellList GWT CSS Style How do I style a gwt 2.1 CellTables headers? Her is my code: public interface CellListResource extends CellList.Resources { public static CellListResource INSTANCE = GWT.create(CellListResource.class); interface CellListStyle extends CellList.Style { }

GWT - Retrieve size of a widget that is not displayed

混江龙づ霸主 提交于 2020-03-13 07:58:47
问题 I need to set the size of an absolutePanel regarding to its child size, but the getOffset* methods return 0 because (i think) the child has not been displayed yet. A Quick example: AbsolutePanel aPanel = new AbsolutePanel(); HTML text = new HTML(/*variable lenght text*/); int xPosition = 20; // actually variable aPanel.add(text, xPosition, 0); aPanel.setSize(xPosition + text .getOffsetWidth() + "px", "50px"); // 20px 50px I could also solve my problem by using the AbsolutePanel size to set

GWT - Retrieve size of a widget that is not displayed

为君一笑 提交于 2020-03-13 07:58:18
问题 I need to set the size of an absolutePanel regarding to its child size, but the getOffset* methods return 0 because (i think) the child has not been displayed yet. A Quick example: AbsolutePanel aPanel = new AbsolutePanel(); HTML text = new HTML(/*variable lenght text*/); int xPosition = 20; // actually variable aPanel.add(text, xPosition, 0); aPanel.setSize(xPosition + text .getOffsetWidth() + "px", "50px"); // 20px 50px I could also solve my problem by using the AbsolutePanel size to set

GWT - Retrieve size of a widget that is not displayed

不打扰是莪最后的温柔 提交于 2020-03-13 07:58:14
问题 I need to set the size of an absolutePanel regarding to its child size, but the getOffset* methods return 0 because (i think) the child has not been displayed yet. A Quick example: AbsolutePanel aPanel = new AbsolutePanel(); HTML text = new HTML(/*variable lenght text*/); int xPosition = 20; // actually variable aPanel.add(text, xPosition, 0); aPanel.setSize(xPosition + text .getOffsetWidth() + "px", "50px"); // 20px 50px I could also solve my problem by using the AbsolutePanel size to set

App engine connected Android app

假装没事ソ 提交于 2020-03-04 07:16:00
问题 Problem with the new App engine connected android application projects for the google eclipse plugin? This is the "Big Daddy" sample shown at goolge i/o 2011. My sample project compiles and the android app appears to work fine and registers with the server. However when I send a message from the server I get the following: Having issue with sample project. Android appears to work fine and registers with the server and the c2dm server, however I cannot send a message. Also of note on the

Gradle, Eclipse, GWT 三个火枪手

£可爱£侵袭症+ 提交于 2020-03-02 18:47:34
不知道怎么取了这么一个奇怪的标题,想到就用了。 手头有一个web项目是用GWT做的,之前用ANT来编译的。现在换成Gradle来编译。依赖管理(dependency management)就可以更加科学的管理了。当然Maven也可以做这些事情。这里就不说Gradle和Maven的区别和优缺点了。 首先要改造的是原来项目的目录结构: lib src com app ilxlf client server shared war build.xml 改造之后的目录结构: src main java com app ilxlf client server shared resources com app ilxlf client server shared build.gradle 区别在与这里我删除掉了lib目录和war目录。 现在新的目录结构出来了,但是不能直接导入到Eclipse里面。因为当前还没有.classpath, .project文件和settings目录。 【注:如果用SpringSource Tool Suite, 可以使用“按gradle project”来导入的方式直接导入,不需要运行下面的命令。】 在当前目录下在命令行里运行下面的命令: gradle eclipse 这个时候就会生成Eclipse所需的文件和目录。包括.classpath, .project,

如何选择Web 应用防火墙(WAF)以及如何应用?

◇◆丶佛笑我妖孽 提交于 2020-02-26 22:03:50
  如果,您管理着数百个甚至数千个业务应用,其中还包括一些需要经常更新的新兴应用。由于传统环境和云环境中的安全攻击正变得日益复杂,应用管理员和安全团队经常无法及时了解有关最新攻击的信息、从而采取相应的防护措施,并制定一致的跨环境防护及合规性策略以提升组织应有的安全防护能力。您可能会面临数据泄露或违规等严重问题,损害贵组织声誉和收益。因此如何选择 Web 应用防火墙(WAF)以及如何应用显得尤为重要。   我深知,应对上述挑战需要投入精力和时间。因此你可以考虑 F5 安全应用服务 - (Web 应用防火墙)WAF管理 (SAS-WAFA),这套安全解决方案可帮助客户实现主动式基本管理,可协助客户的内部安全团队,支持内部人员专注于其他首要任务,从而确保整体应用安全能力!   为什么选择Web 应用防火墙(WAF)升级版 F5 Advanced WAF(API安全-新一代WAF)?   您的应用就是您的业务重心。问题是,53% 违规行为的初始目标都指向您的应用。 F5 Advanced WAF(API安全-新一代WAF) 可以抵御以下最普遍的应用攻击,而无需更新应用本身:   1.让应用资源不堪重负的自动攻击和自动程序   2.窃取应用凭据或利用遭窃帐户的攻击   3.逃避基于签名和信誉的安全解决方案的应用层攻击   4.由于快速采用 API 而带来的新攻击范围和威胁   5

Maven Compile GWT & OpenJDK 11

六月ゝ 毕业季﹏ 提交于 2020-02-24 11:50:52
问题 Recently, I am trying to switch my project to use OpenJDK 11, however the Maven build is failing because one of the GWT modules is failing to compile. The project currently uses GWT 2.6.0, and I've tried updating to 2.8.2 if any of the newer versions is compatible with OpenJDK 11. The build is run from Eclipse IDE 4.9.0 When running with 2.6.0, the following error occurs: Compiling module XXXXModule [INFO] Looking for precompiled archives. To disable, use -Dgwt.usearchives=false [INFO]