各种Java Web表示层技术的优缺点 [英] Pros and Cons of Various Java Web Presentation Layer Technologies

查看:462
本文介绍了各种Java Web表示层技术的优缺点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个大量使用JSF和IceFaces的网络应用程序。我们已经讨论过转移到另一个表示层,我想我会把讨论带到SO中,看看专家们的想法。

I'm currently working on a web app that makes heavy use of JSF and IceFaces. We've had some discussions of moving to another presentation layer, and I thought I'd take the discussion out into SO and see what the experts think.

我很好奇是否有人可以权衡各种Java表示层技术的优缺点。如果你只和一个人合作过,说出你喜欢它的原因或者讨厌它。如果您与多家公司合作过,请给出您对彼此之间叠加的印象。

I'm curious if anyone could weigh in on the pros and cons of the various Java presentation layer technologies. If you've only worked with one, say why you love it or hate it. If you've worked with several, give your impressions of how they stack up against each other.

我们正在考虑的技术是:

Our technologies under consideration are:


  • IceFaces

  • JSF(不含IceFaces)

  • GWT(Google Web Toolkit)

  • Wicket

  • Tapestry

  • IceFaces
  • JSF (without IceFaces)
  • GWT (Google Web Toolkit)
  • Wicket
  • Tapestry

如果我失踪了我列表中的任何内容,请告诉我。

And if I'm missing anything from my list, let me know.

谢谢!

推荐答案

我的观点对Wicket非常偏向因为我在使用过多次JSP矿山后已经使用了一段时间。

My opinions are quite heavily biased towards Wicket because I've been using it for a while after tripping over JSP mines far too many times.

Wicket PROs:


  • 布局和代码的真正分离。

  • 基于组件,这意味着网站元素的高度可重用性;例如,您可以创建具有自动标签和CSS样式以及所有内容的美化表单,只需在组件的构造函数中更改它的DAO对象,它就可以在另一个项目中完全重用。

  • 对Ajax之类的东西提供出色的支持,Portlet和各种框架一般都是直接开箱即用的,更重要的是它不依赖于slf4j / log4j以外的任何其他工作,一切都是可选的!

Wicket CONs:


  • 发展对于一般情况有些困惑Wicket泛型现在有点乱,虽然它们已经在1.4中被大量清理了

  • 一些组件(如 Form.onSubmit())需要广泛的子类化或匿名方法覆盖,以便轻松注入行为。这部分归功于Wicket强大的基于事件的设计,但不幸的是,这也意味着很容易使代码混乱Wicket。

  • Development has some confusion about things in general and Wicket generics are a bit of a mess right now although they've been cleaned a lot in 1.4
  • Some components (like Form.onSubmit()) require extensive subclassing or anonymous method overriding for injecting behaviour easily. This is partly due to Wicket's powerful event-based design but unfortunately it also means it's easy to make a code mess with Wicket.

随机CONs:(也就是说,我没有使用过,但这些是我听到过的opionions和/或其他东西)

Random CONs: (that is, I haven't used but these are my opionions and/or things I've heard)


  • GWT是基于JavaScript的,对我来说听起来很愚蠢。主要问题是它让我想起了太多的JSP:s及其自动生成的类很糟糕。

  • Tapestry没有以一种可以在两者之间轻松验证的方式正确分隔标记和代码这两个将来会引起问题。

这篇关于各种Java Web表示层技术的优缺点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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