Wicket 对阵 Vaadin [英] Wicket vs Vaadin

查看:31
本文介绍了Wicket 对阵 Vaadin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Wicket 和 Vaadin 之间左右为难.我正在启动一个 micro-isv,需要选择 web 框架.我已将选择范围缩小到 Wicket 和 Vaadin.这两个框架我都用过,我都喜欢.但是我需要做出选择.

I am torn between Wicket and Vaadin. I am starting a micro-isv and need to make a choice of web framework. I have narrowed down my choices to Wicket and Vaadin. I have used both frameworks and I love them both. however I need to make a choice.

如果我选择 Vaadin:

If If I choose Vaadin:

  1. 我不必太担心外观和感觉.它带有漂亮的主题.
  2. 我将使用我擅长的 Java 进行所有编程,而不必花时间编写不太擅长的 CSS.
  3. 商业应用程序所需的大部分组件都是开箱即用的,包括桌面布局、工具提示、键盘快捷键、带有可拖动和可折叠列的表格等等.

但是,如果我采用 Vaadin 方式:

However, if I go the Vaadin way:

  1. 我将失去以声明方式创建 UI 的能力.
  2. 如果浏览器不支持 JavaScript,我将不会使用回退功能 - 例如大多数非 Webkit 移动浏览器.
  3. Vaadin 公司正在销售一些组件 - 例如 JPAContainer,因此我不确定该公司是否会致力于提供完整的开源框架.商业利益永远是第一位的.
  4. Vaadin 应用程序将主要用于 Intranet.它们不太适合具有网络外观和感觉的互联网.

如果我走 Wicket 方式:

If I go the Wicket way:

  1. 我将不得不为我的应用程序设计样式,而且我几乎无法为它们提供桌面外观和感觉.

有什么建议吗?任何对任一框架有经验的人都请告诉我优缺点以及您如何做出决定.

Any advice? Anyone with experience on either framework kindly tell me the cons and pros and how you made your decision.

推荐答案

我想我已经为这两个框架投入了一些时间.我真的很喜欢两者,因为它们将类似 Swing 的编码带入了 Web 开发.而且我不知道对我来说更简单的(虽然有点击但我不喜欢速度模板)

I think I've invested some time for both frameworks. I really like both because they bring the Swing-alike coding to web development. And I don't know easier ones for me (although there is click but I don't like the velocity templating thing)

是的,存在差异.

我不必担心外观和感觉.它带有漂亮的主题

I wont have to worry much about the look and feel.It comes with nice themes

是的,但每家认真的公司都会对其应用程序进行不同的设计(除非您正在制作原型)

true, but every serious company will style its app differently (unless you are prototyping)

我会用我非常擅长的 Java 编程,而不必花时间编写不太擅长的 css

I will do all my programming in java which am very good at and wont have to spend time hacking css which am not very good at

那么 Vaadin 会更好".

Then Vaadin would be 'better'.

我将失去以声明方式创建 UI 的能力.

i will loose the ability to create UI declaratively.

这样做有什么好处?(顺便说一句:你可以在 groovy 中编写声明性代码 ;-))

What are the advantages of that? (BTW: you could code declarative in groovy ;-))

不过还好.我知道你的意思:如果你可以努力设计一个单独的设计师,那么 wicket 就更好".

But ok. I know what you mean: if you can effort a separate designers than wicket is 'better'.

我很难给它们桌面外观和感觉.

i can hardly give them a desktop look and feel.

为什么不呢?或者你在这里是什么意思?Wicket 支持 ajax,并且有一些组件支持很好的类似于桌面"的东西(ajaxlink、lazycomponent、自动完成、进度条,请参阅 wicket 内容 + 扩展).好的,对于任何更复杂的组件,您都必须在 javascript 中编写代码,但是顺便说一句,您是否知道您甚至可以 在检票口内使用 GWT

Why not? Or what do you mean here? Wicket supports ajax and there are components which supports nice 'desktop-alike' things (ajaxlink, lazycomponent, autocompletion, progressbar, see wicket stuff + extensions). ok, for any more complex component you'll have to code in javascript BUT BTW did you know that you could even use GWT within wicket

一些小经验:

Vaadin 在编码时肯定更快(没有 css、html 的东西).但是,如果您进行生产,请记住,编程的简便性可能会导致客户端的性能成本:例如如果您使用错误"的布局,例如 Horizo​​ntal/VerticalLayout,...大量使用 javascript 可能会降低旧浏览器的速度.

Vaadin is surely faster while coding (no css, html stuff). But if you go production keep in mind that the ease of programming can come to the cost of performance on the client side: e.g. if you use the 'wrong' layouts such as Horizontal/VerticalLayout, ... the massive use of javascript could slow down old browser.

但 Vaadin 并不慢!使用适当的布局,例如 CssLayout 或 FastLayout 并且旧浏览器也可以提供它.(尽管如果您使用 CssLayout,您的编码风格真的很像 wicket.)

But Vaadin is not slow! Use appropriate layouts such as CssLayout or FastLayout and also old browser can serve it. (Although if you would use CssLayout your coding-style is really wicket-alike.)

Vaadin 的一个问题是它有点难以分析,因为您不容易看到客户端需要所有 CPU 的位置,并且嵌套的 div 获得了神秘的 ID 名称.

One issue with Vaadin is that it is a bit harder to profile, because you don't see easily where the client needs all the CPU and the nested divs gets cryptic id-names.

Wicket 的一大优点是它的 warp 持久集成

One great thing about Wicket is its warp persist integration

(Guice 可以集成到 Vaadin 和 Wicket)

(Guice can be integrated in Vaadin and Wicket)

使用 Vaadin 测试 UI 应该很容易(虽然我没有找到单元测试的东西)并且非常容易 带检票口.

Testing the UI should be easy with Vaadin (although I didn't found unit testing stuff) and is very easy with wicket.

最后但并非最不重要的一点是,与 wicket 相比,在 Vaadin 中创建列表/表格非常容易.

Last but not least creating lists/tables is VERY easy in Vaadin compared to wicket.

这篇关于Wicket 对阵 Vaadin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆