k****u 发帖数: 133 | 1 GWT is component based, pretty much like Swing. There are some 3rd party
visual editor, you can google for it. However, GWT just released 2.0 with
the new declarative UI (code UI in xml, behavior in Java), which is a major
change, so the editors will take a while to catch up for that. |
|
t*******e 发帖数: 684 | 2 Interesting! GWT finally took the same approach as many other web
technologies. Back to the long thread of discussion we had last year, it
seems I was spot-on with regard to the shortcomings of GWT. In short,
declarative language is more appropriate than OO programming language in
terms of UI design.
with
major |
|
k****u 发帖数: 133 | 3 俺不是大牛,:-)。以前不知道vaadin,刚看了几眼,不过之前用过GWT/gwt-ext/gxt和
flex,和这些RIA framework相比,vaadin最根本的区别就在于它是server side
framework,其它的都是client side framework。从这一点说,vaadin可谓是独辟蹊径
,避开了client side RIA framework面对的client/server数据传送的问题,也就是那
个臭名昭著的DTO pattern。这样的话,就大大简化了vaadin编程。其它的方面,UI
widget很丰富,图形界面设计也很专业,文档齐全,背后有商业公司运作。查了一下
wiki,MySQL的一个主要的初始开发牛人也投资了vaadin的公司。我也看好vaadin,多
谢mydaihao指点。 |
|
k****u 发帖数: 133 | 4
Search Engine Optimization? That's a common problem to other RIA frameworks
as well, not just Vaadin. But GWT has some methods to mitigate this problem,
since Vaadin uses GWT for rendering, it should also apply to Vaadin. |
|
t*******e 发帖数: 684 | 5 The sample code looks so close to Wicket and Swing. The advantage it claims
is against declarative UI programming, the direction GWT has steered toward.
I wonder how it is going to accommodate the new release of GWT. ZK is still
more advanced in terms of its POJO programming style and declarative UI. |
|
m******t 发帖数: 2416 | 6 Vaadin looks cool. It brings GWT to the next level. I wish I had evaluated
it before starting this gwt-based
project I'm working on.
I do think though, it can be a double-edged sword that in vaadin the line
between server and client is sort of
blurred. It of course offers a cohesive and fluent paradigm, but at the same
time makes it harder to integrate
with other technologies. |
|
b******y 发帖数: 9224 | 7 I still like a clean separation of the web/html from the underlying model
and controller.
I think the reason the industry moved away from client/server to web, is
because web is simpler, html people could do html coding and server guys
could do server stuff. They could also work in parallel. But I don't see how
GWT could be suitable for that.
Anyway, I don't have much experience with GWT, but just my personal thoughts
... |
|
m******o 发帖数: 774 | 8 Exactly, I'm not a UI guy at all so I'm quite uninformed about most of the frameworks
.I've been working with EJB's for the UI team but they are gone now and I have to fix all kinds of bugs even when they are in JSP's. I've hardly written a JSP by myself so you can imagine the frustration. Our product began 10 years ago, it has thousands of JSP's and their styles vary a lot. :o)
Regarding 2, if vaadin is based upon GWT and GWT allows a user-defined css file besides its default one, does that mea |
|
m******o 发帖数: 774 | 9 I see. GWT still allows you to insert a piece of 'gwt' stuff into a html
file but vaadin does not do that now. If one day vaadin is smart enough to
interpret/combine a WYSIWYG generated html with its own then it would be
perfect I guess.
components |
|
s******e 发帖数: 493 | 10 Man, this thing is great.
if vaadin is based on gwt, should css layout be a problem? Did gwt solve
this problem incely already? |
|
T*********g 发帖数: 496 | 11 gwt 我个人不认为是个好的概念,,比较隐晦的错误有时候判断不清到底是gwt编译造
成的,,还是本身自己code的问题。 js已经有了很好的调试环境,framework,page
level将会有更多js的重型应用出现 |
|
a*******m 发帖数: 626 | 12 俺也觉得GWT开发起来和Swing那个像啊。。。
有点gwt的感觉啊 |
|
J*******n 发帖数: 2901 | 13 啥叫php网站能用gwt
gwt是编译成js运行的,跟谁不能搭啊 |
|
J*******n 发帖数: 2901 | 14 GWT -- java --> javascript mapping saves Java developers from learning js.
Not every team has exclusive js developer
With GWT, you can debug and unit test in a Java way, theoretically at least |
|
J*******n 发帖数: 2901 | 15 if you really want JSP based, skip GWT.
GWT and JSP is not a good combination. |
|
J*******n 发帖数: 2901 | 16 LZ是java developer的话,学js是需要一个过程的,我这几天搞js就很郁闷,你这个项
目用smartgwt完全可以,GWT的point就是方便java developer不需要学太多的js,一些
基本的js知识还是需要的,因为有时候需要进行js level debugging
GWT的特点是非常event based,采用MVP模型开发的话非常方便,建议你读一个这个
https://developers.google.com/web-toolkit/articles/mvp-architecture
至于layout设计,很多是css的功劳,smartgwt showcase有丰富的控件库,技术层面把
data binding优化好,外观效果就要在css上花功夫了 |
|
m********l 发帖数: 791 | 17 太感谢你了,说的非常的详细。
我刚买了一本javascript: the definite guide 还在慢慢看。开始感觉就是java写多
了js写起来很不舒服
我现在还是focus在front-end,另外两个intern在写API调用数据,网页的雏形差不多
了就call API populate图表什么的就好了~
我想请教一下一个问题:
GWT compile之后的js + HTML 文件是在哪里存放的呢?这个compile之后的js文件是不
是就是我
们用GWT实现的效果的js代码? 还是我们不能看到完整的js代码?
再次感谢! |
|
m********l 发帖数: 791 | 18 嗯,没有什么JS经验,所以JS 代码的logic 看起来有一些吃力。。
我刚遇到一个问题,就是在GWT+highcharts在development mode跑的话会报错:
com.google.gwt.core.client.JavaScriptException: cannot read property 'Chart'
of undefined
但是在production mode中跑的话就会正常显示。为什么会这样呢?
谢谢!
is |
|
v*****r 发帖数: 2325 | 19 看了一个youtube video, 估计是一个google 员工的presentation, 号称很多好的
feature, 比如 制动生成html/ajax code, run on multiple browsers, 还可以在
eclipse 内部debug。
于是在eclipse 中装了一个。 生成那个hello gwt user 的starter application,
倒是developer mode 可以run.
失望1. Deploy 到tomcat 上complain "need to recompile", google 了很多,试验
了很多tip也不行
失望2. 生成的代码size 很大 18M. 而我自己写的html, javascript/ajax, css,
servlet 才3M.
失望3. 打开GWT designer, 本来以为很好的所见所得的设计, 结果设计的layout 很
运行时的layout graphics element 不一样。
而且很慢
google 作为web app的老大, 居然推出这样的东西。还是它没有把in-house... 阅读全帖 |
|
c*****a 发帖数: 1638 | 20 GWT其实不完全是给开发人员的。
因为google搞GWT的主要目的是为它自己的web application提供开发工具。google的开
发需求和多数公司不同(因为google基本上任何application都存在巨大的并发)。所以
建议你看一下:smartGWT,GXT或者vaadin。
我个人是非常喜欢vaadin,设计理念非常非常好,只是封装了太多,有点让我毛毛滴(
虽然是开源)。另外vaadin并不适用于超大量客户端数据的情况。 |
|
w**********n 发帖数: 185 | 21 楼主用了UiBinder没?有那个我基本不用GWT Designer了。那个确实又慢又鸡肋。还有
速度慢的话可以考虑全用cell组建,不要用DOM。另外在UiBinder的XML里面多用些HTML
代码也很不错。我暑假amazon实习用过GWT。多多交流~ |
|
b*****p 发帖数: 9649 | 22 vaadin is based on GWT.
What the heck is Google doing here?
vaadin is far way much better than GWT. |
|
p****f 发帖数: 82 | 23 vaadin最大的好处是把gwt的clietn-server通讯那一块包起来了,对java programmer
门槛奇低,简单的应用就当swing用了,不过根本上来说还是两点,一是基于gwt的,
javascript的执行效率在不同的browser上是不一样的,二是还是web application,虽
然用起来象windows application,但如果真把它当windows application来用就悲剧了
,one window solution不是每种web application都可以玩得转的。 |
|
b***i 发帖数: 3043 | 24 启动servlet,是说1分钟不访问,idle了,然后启动是吗?那就换付费的,可以一直开
着。
guice,这个不清楚。我猜测一下,你是否可以压缩jar?能快吗?还是会更慢?是GWT的
?我不用GWT,就是直接用serlet,html。开始学习本来应该12年前学的东西。 |
|
z*******3 发帖数: 13709 | 25 我觉得没有换付费的,如果流量没达到的话
现在主要是启动servlet环境和guice两个东西比较慢
就好比启动tomcat和spring会比较慢一样
freemarker和objectify还行
我回来试了一下,启动大概是6s总共
鉴于启动servlet容器都要4s,所以再优化的空间也有限
先这样吧,把6s分成4s和2s,我觉得可以接受
对于jar包,你可以把所有的jars全部拆开,然后重新打成1个jar
这样说是会快,但是eclipse的plugins就不支持了
要自己去写ant,比较恶心,算了,没有必要
我没有用gwt,gwt-dispatch跟jsf有点像,command模式
先不用了,要缴费什么的,那也等流量上去了再说 |
|
|
|
x****d 发帖数: 1766 | 28 for company internal project, without js developer, only java guys, we use
vaadin, or gwt with other stacks. vaadin client basically is gwt. but vaadin
based development is fast and easy.
for public access high traffic sites, we have to stick with jsf. Sometimes
spring mvc, but mostly jsf.
for public without high volume traffics, spring, struts or even vaadin all
good.
for GAE, we have to use light weight thing, now GAE supports spring
hibernate everything, but we still use plain servlet/jsp wit... 阅读全帖 |
|
t******h 发帖数: 120 | 29 之前忘了哪个版本
升级之后
用来做GWT的程序 有一部分硬是报错 老版本一点问题都没。
一气之下 现在都是用IE来弄GWT |
|
v****s 发帖数: 1112 | 30 i mean, gwt will compile/translate the java code, and generate optimized js
code, which is very efficient.
those codes by gwt are not human readable, but very efficient. |
|
N********n 发帖数: 8363 | 31 The very fact lots people use GWT to generate JS code in order to avoid
writing JS by hand shows its true potential, or lack thereof. It may give
GWT a bright "未来发展的方向" but not you the programmer.
It's like a salesman recommend a tool to you, "This tool has such bright
future that I myself won't even touch it." HOHO. :-) |
|
g*****g 发帖数: 34805 | 32 gmail predates gwt, but it can be rewritten using gwt. |
|
v****s 发帖数: 1112 | 33 i mean, gwt will compile/translate the java code, and generate optimized js
code, which is very efficient.
those codes by gwt are not human readable, but very efficient. |
|
N********n 发帖数: 8363 | 34 The very fact lots people use GWT to generate JS code in order to avoid
writing JS by hand shows its true potential, or lack thereof. It may give
GWT a bright "未来发展的方向" but not you the programmer.
It's like a salesman recommend a tool to you, "This tool has such bright
future that I myself won't even touch it." HOHO. :-) |
|
g*****g 发帖数: 34805 | 35 gmail predates gwt, but it can be rewritten using gwt. |
|
v*****r 发帖数: 2325 | 36 【 以下文字转载自 Java 讨论区 】
发信人: voyiger (star trek), 信区: Java
标 题: Google Web Toolkit 令人失望
发信站: BBS 未名空间站 (Tue Oct 30 03:34:10 2012, 美东)
看了一个youtube video, 估计是一个google 员工的presentation, 号称很多好的
feature, 比如 制动生成html/ajax code, run on multiple browsers, 还可以在
eclipse 内部debug。
于是在eclipse 中装了一个。 生成那个hello gwt user 的starter application,
倒是developer mode 可以run.
失望1. Deploy 到tomcat 上complain "need to recompile", google 了很多,试验
了很多tip也不行
失望2. 生成的代码size 很大 18M. 而我自己写的html, javascript/ajax, css,
servlet 才3M.
失望... 阅读全帖 |
|
w********l 发帖数: 14 | 37 既然JS这么难写和维护,那GWT(Google Web Toolkit)是不是会更加流行起来?毕竟GWT
takes care of JS compilation. 码工不必直接写JS了? |
|
w********l 发帖数: 14 | 38 具体是指?GWT library不全面?还是GWT compiled JS 不够优化? |
|
g*****g 发帖数: 34805 | 39 gmail前端用的不是gwt,虽然风格很像,gwt出来得时间比gmail晚。
但后端用的是java。 |
|
b***e 发帖数: 1419 | 40 这样说吧,我基本肯定你没有严肃的做过前端。你真做两年full stack就知道,GWT完
全就是一个反人类的屎逼。一般编译是吧C编译成Assembly。GWT基本上是吧Assembly编
译成C的套路。
load |
|
y****e 发帖数: 23939 | 41 gwt还是弱,简单的要求还可以。稍微复杂一点的就不行了。要不怎么有一个收钱的
smart gwt |
|
i**i 发帖数: 1500 | 42 gwt比这个还要爽. dart的这点小伎俩算个p. 连给gwt提鞋都不配.
是吧, 赵策? |
|
|
ET 发帖数: 10701 | 44 2ObjC is an open-source command-line tool from Google that translates Java
code to Objective-C for the iOS (iPhone/iPad) platform. This tool enables
Java code to be part of an iOS application's build, as no editing of the
generated files is necessary. The goal is to write an app's non-UI code (
such as data access, or application logic) in Java, which is then shared by
web apps (using GWT), Android apps, and iOS apps.
J2ObjC supports most Java language and runtime features required by client-
si... 阅读全帖 |
|
s***o 发帖数: 2191 | 45 我马上要接好几个GWT的projects,你觉着GWT还能折腾多远? |
|
k*x 发帖数: 829 | 46 http://zh.wikipedia.org/wiki/%E8%B0%B7%E6%AD%8C%E4%B8%AD%E5%9B%
在中国大陆,Google的各项服务经常遭到封锁。
2002年8月31日,Google.com和AltaVista搜索引擎在中国大陆被防火长城封锁。[48]期
间网页曾被劫持到百度等其他中国大陆网站。Google遭封杀引起中国网民众多的不满。
有一名网站技术负责人在论坛上说:“Google对我和许多其他中国人来说是十分重要的
工具。请告诉世界,我们需要Google或Yahoo等搜索工具。我们不关心政治,但请帮助
我们能使用Google。”[49]9月12日,封锁被解除,但由于网页快照能避过当局的审查
,自此网页快照功能被全面封锁多年,手段为TCP会话阻断。
2003年12月,Google.com再次被封锁。[50]
2006年6月7日,Google.com在中国大陆再次受到封锁,但谷歌中国仍然正常。[51]
2009年6月24日晚21点左右(UTC+8),Google.com和Gmail开始无法访问,包括Google
文档在内的多项服务也无法使用。[52]25日... 阅读全帖 |
|
u***n 发帖数: 21026 | 47 两个差别太多了,一个主要用后台,一个主要用前端
当然你可以说jsp gwt也是用前端,或者node.js也可以用后端
他说要会也不奇怪,做full stcak的web apllication谁不会,关键是精通,两遍都会
的肯定都不精通,比如我,后面也要改,前面也要改,没时间想为什么这个问题。反正
我直接怎么找到function,然后删删减减就好了
专注一个方向的就比较精通了 |
|
|
a******9 发帖数: 20431 | 49 搞笑 你丫要点脸吧 还经常断线?
google每一次在国内被干扰和屏蔽都有记录 而且被干扰的是google.com。谷歌在中国
设的服务器google.cn 在2010正式退出之前从来没出过问题
2002年8月31日,Google.com和AltaVista搜索引擎在中国大陆被防火长城封锁。[51]期
间网页曾被劫持到百度等其他中国大陆网站。Google遭封杀引起中国网民众多的不满。
有一名网站技术负责人在论坛上说:“Google对我和许多其他中国人来说是十分重要的
工具。请告诉世界,我们需要Google或Yahoo等搜索工具。我们不关心政治,但请帮助
我们能使用Google。”[52]9月12日,封锁被解除,但由于网页快照能避过当局的审查
,自此网页快照功能被全面封锁多年,手段为TCP会话阻断。
2003年12月,Google.com再次被封锁。[53]
2006年6月7日,Google.com在中国大陆再次受到封锁,但谷歌中国仍然正常。[54]
2009年6月24日晚21点左右(UTC+8),Google.com和Gmail开始无法访问,包括Google
文档在内的多项服务也无法使... 阅读全帖 |
|
T**********e 发帖数: 29576 | 50 估计抓住了什么财务问题,要顺藤摸瓜逼他指证床铺。不知道能不能顺便把女婿整下去。
Paul Manafort Expects to Be Indicted, Longtime Trump Adviser Says
WASHINGTON — Roger J. Stone Jr., an informal adviser to President Trump,
said on Tuesday that Mr. Trump’s former campaign chairman is expecting to
be indicted by federal prosecutors investigating Russia’s attempts to
disrupt last year’s election.
Mr. Stone’s remarks about the former campaign chairman, Paul J. Manafort,
came after Mr. Stone spent hours behind closed doors with members of the
... 阅读全帖 |
|