我应该选择哪个框架 - Seam,Wicket,JSF或GWT? [英] Which framework should I choose - Seam, Wicket, JSF or GWT?

查看:152
本文介绍了我应该选择哪个框架 - Seam,Wicket,JSF或GWT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在讨论是否使用Seam,Wicket,JSF或GWT作为Java项目中表示层的基础。

I'm debating whether to use Seam, Wicket, JSF or GWT as the foundation for my presentation layer in a Java project.

我根据就业市场的考虑,技术的新颖性和其他S.O.的推荐,将我选择的Java Web框架缩小到这个子集。用户。

I narrowed my selection of Java web frameworks down to this subset based on job market considerations, newness of the technology and recommendations from other S.O. users.

在决定这些因素时,我应该考虑哪些因素?

What factors should I take into consideration in deciding among these?

推荐答案

我使用的唯一一个是JSF,所以我无法给你反馈意见其他人,但这是我对JSF的看法。根据我的经验,当我们从JSP中的JSF转换为facelets中的JSF时,生活变得更加容易,因此我将专注于facelets。此外,看起来Seam和JSF并不是互斥的。

The only one of those I've used is JSF, so I won't be able to give you feedback on the others, but here's my take on JSF. In my experience, the minute we converted from JSF in JSP to JSF in facelets, life got MUCH easier, so I'll focus around facelets. Also, It looks like Seam and JSF are not mutually exclusive.

优点:


  • 创建facelets xhtml组件很简单,可以促进重复使用。

  • 使用内置标签(如ui:insert,ui:include和ui:decorate
  • )的体面模板功能
  • 通过faces-config

  • 基于XHTML对Spring bean的简单访问,因此不熟悉java的Web开发人员仍然可以有效

  • 好的小部件库在tomahawk / trinidad中可用

  • Creating facelets xhtml components is simple, which promotes re-use.
  • Decent templating abilities using built in tags like ui:insert, ui:include, and ui:decorate
  • Simple access to Spring beans through faces-config
  • XHTML based so web developers unfamiliar with java can still be effective
  • Good widget library available in tomahawk/trinidad

缺点:


  • 仅发布请求。这可能会使书签变得困难。

  • 不像GWT那样内置ajax-y,但如果与Seam一起使用可能会修复

我不是JSF / Facelets的专家,所以我确信还有其他我错过了。希望其他人也会详细说明。

I'm by no means an expert in JSF/Facelets, so I'm sure there are others I've missed. Hopefully someone else will also elaborate.

JSF 2.0更新:

  • Has even better re-use capabilities with composite components
  • Widget libraries for 2.0 include primefaces and mojarra scales
  • Allows get requests and bookmarking
  • Has built in Ajax support
  • See http://andyschwartz.wordpress.com/2009/07/31/whats-new-in-jsf-2/ for more on JSF 2

这篇关于我应该选择哪个框架 - Seam,Wicket,JSF或GWT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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