File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Webframework to choose? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Webframework to choose?" Watch "Webframework to choose?" New topic

Webframework to choose?

Karthik Kannan

Joined: Dec 29, 2004
Posts: 12
Hi All,

I have a requirement for a simple web application. Need to query data (with search criteria entered in page) and display results. Hierarchical navigation may be required from one record to related record in another table. Exporting/Charting of data might be required in future.

I need suggestions from you on the java framework combinations to use especially on the UI side (like JSF or Struts 2).Your suggestions are highly appreciated.

We already use the following technologies in our projects (looking to leverage them): Geronimo server, EJB 3.0 and JPA.

Thank you
Karthik Kannan
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

JSF2 with primefaces.

You will rock. [=

[] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Tim Moores

Joined: Sep 21, 2011
Posts: 2413
If it's simple, why use a framework at all?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63854

Tim Moores wrote:If it's simple, why use a framework at all?

Quoted for truth. Give the man a cigar!

[Asking smart questions] [About Bear] [Books by Bear]
john lazeraski
Ranch Hand

Joined: Nov 14, 2011
Posts: 76
You're not providing a lot of details to really pick one framework over another. There are basically two "major" framework types these days. The first, probably the majority are MVC style.. with struts 2, spring MVC and some others fitting in that camp. The other side are JSF, JavaFX, and Wicket. To me, the main plus to using struts2, spring MVC and such is there is a lot of documentation, examples, forum help, etc and that they are relatively easy to configure and get going in minutes. On the other hand, they are more difficult to maintain especially those that embed lots of scriptlet/tags inside of JSP pages or the likes. I am not too knowledgeable with JavaFX but I think it's similar to wicket and JSF with the approach of a modular design, swing-like event system (be it traditional form submits or ajax requests between components), and server-side document model of the page/components per user. The latter frameworks have a steeper learning curve, but offer potentially better maintainability and more flexibility than the first group. Wicket for example is very nice in that the web page itself is an actual HTML page that can be designed/tested by any web html/css expert. As a team, you'd indicate special wicket ids to use where dynamic content would go, but wicket also allows you to put in "runtime replaced" test content so that the designer can mock up the page with content that allows the page to be visually correct, but when deployed, it's replaced with the dynamic data from the server side. It's also very modular in that you can build components and reuse them very easily on many pages.

I might be off a little bit, I am sure there are other great frameworks, like Play and GWT and so forth.

If you want something quick to prototype and then can build on, I'd probably go Struts 2. If you have some time to learn and want it more maintainable, Wicket would be my pick.
Karthik Kannan

Joined: Dec 29, 2004
Posts: 12
Thanks John for your thoughts !!
I agree. Here's the link:
subject: Webframework to choose?
It's not a secret anymore!