Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JSF 2.0: for non-fully j2ee apps as well?

 
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear authors,

I'm new to JSF 2.0...

Is JSF 2.0 a good option for light j2ee apps as well...
that is those applications that skip the security part
and maybe the jpa part of JSF 2.0?

Or would this be a too heavy approach?

Cheers,

Gian
 
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gian,

to my knowledge it should be possible to use JSF 2.0 without the other parts of Java EE. But the better question is: What advantages do you get when you use the whole EE stack. In my opinion the different components and APIs of JEE (6) are really good but they are even more shining if you use them in combination with each other.

Unfortunately I don't know what exactly is needed or how you wire only a JSF 2.0 "view" to any arbitrary framework or application.

Marco
 
Saloon Keeper
Posts: 22289
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what I've seen, most Java webapps "skip the security part", if what you mean is that they invent their own security code and don't use what's in the standard.

And, they usually do a pretty poor job of it.

JPA is optional as well. I advise it for apps that have complex data interrelations or that could benefit from the performance boost that the data optimizers and caching mechanisms provide, but some apps don't need all that, so why add useless complexity?
 
Gian Franco
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...a scenario where skipping those two (important) parts might be relevant
is during the transition/migration to this technology from a different (older)
solution...
 
author
Posts: 82
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh yes, you can use JSF2 on any Servlet 2.5 container. For example, the website for the book http://jsfcompref.com/ is a JSF app on Google app engine, which is a FAR CRY from a J2EE container.

Ed
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic