Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Java EE web application - what system to use for the presentation layer?

  • 02-01-2013 02:38PM
    #1
    Registered Users, Registered Users 2 Posts: 208 ✭✭


    I'm looking for information on the options for dealing with the presentation layer in a Java EE web app in 2013. I was planning to use JSF and Facelets as it's the standard for JEE web apps and I figured I might as well stick with the standard when writing my first proper JEE application, but after reading what Tim had to say here I am rethinking that option - http://www.boards.ie/vbulletin/showpost.php?p=82444964&postcount=22

    It seems there are lots of component libraries for JSF such as PrimeFaces and RichFaces, etc...are these worth looking into, do they bring much to the table?

    I had ruled out JSP as it is supposed to be decprecated in favour of Facelets in JEE 6 apps. But maybe JSP is the way to go as I presume that is what you would use if you were building a fat client app? Is that correct?

    Any opinions on the best way to handle the presentation layer for JEE 6 in the current environment are appreciated.


Comments

  • Registered Users, Registered Users 2 Posts: 9,034 ✭✭✭Tim Robbins


    httpete wrote: »
    I'm looking for information on the options for dealing with the presentation layer in a Java EE web app in 2013. I was planning to use JSF and Facelets as it's the standard for JEE web apps and I figured I might as well stick with the standard when writing my first proper JEE application, but after reading what Tim had to say here I am rethinking that option - http://www.boards.ie/vbulletin/showpost.php?p=82444964&postcount=22

    It seems there are lots of component libraries for JSF such as PrimeFaces and RichFaces, etc...are these worth looking into, do they bring much to the table?

    I had ruled out JSP as it is supposed to be decprecated in favour of Facelets in JEE 6 apps. But maybe JSP is the way to go as I presume that is what you would use if you were building a fat client app? Is that correct?

    Any opinions on the best way to handle the presentation layer for JEE 6 in the current environment are appreciated.

    Use JavaScript/JQuery and fire REST requests to your server.
    This approach is the best, but requires a lot of skill in JavaScript to do correctly.


  • Registered Users, Registered Users 2 Posts: 2,021 ✭✭✭ChRoMe


    I like the template engine Apache Velocity.


  • Moderators, Technology & Internet Moderators Posts: 1,337 Mod ✭✭✭✭croo


    The FreeMarker project is also a very popular Templating framework. I know the Apache OfBiz project used it instead of JSP as it produced pages so much faster but an additional advantages it it can create files other than html. I've seen a lot of blogs about integrating it with Spring MVC of late too. Using a templating engine does not negate anything Tim says re JS & jQuery - the templating can be complementary


Advertisement