开发者

Which Web2.0 framework integrates best with JPA2?

开发者 https://www.devze.com 2022-12-29 11:06 出处:网络
My choice is between Tapestry 5 Vaadin JSF2 --- start EDIT 2010-05-13 18:04 -- Spring MVC (d开发者_JAVA技巧on\'t know why I forgot to mention this)

My choice is between

  • Tapestry 5
  • Vaadin
  • JSF2

--- start EDIT 2010-05-13 18:04 --

--- stop EDIT 2010-05-13 18:04 --

I like Vaadin most, because it seems to come with all the look-and-feel features out-of-the-box, I wonder if anyone has experience with Vaadin and JPA2, preferrably EclipseLink.

JPA2 is absolutely essential, the Web2.0 framework must integrate with it.

Thanks Err

--


JSF 2.0 and Wicket 1.4 are first class candidates: they just work with JPA 2.0 and provides support for the Bean Validation API (JSR 303) which is in my opinion a very important part of the question. Have a look at this blog post for more details on this.

To be fair, I'll mention that Tapestry 5.2 (not sure it has been released) will also provide integration with JSR 303 as detailed here but I'm not in love with Tapestry.

Regarding Vaadin, it seems that things are more complicated than with "regular" web framework and JPA 2.0 support to JPAContainer has yet to be added (Ticket #4298).

I'd go for JSF 2.0 or Wicket.


JPA2 being part of J2EE 6 fits naturally with its other components: EJB 3.1, JSF 2, CDI (Web Beans), etc.

If you consider other frameworks then you need to understand what features and benefits you gain by replacing J2EE 6 components.


Take a look at this blog post which describes how to apply JPA based persistence for Vaadin applications. It uses JPA2 provided by EclipseLink.


Try OpenXava, because in OpenXava JPA2 entities are the core of your application. Writing only JPA entities you get a full functional AJAX application.


I use Vaadin with their Spring integration coupled with EclipseLink and it works pretty well.

0

精彩评论

暂无评论...
验证码 换一张
取 消