This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes JSP or JSF ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "JSP or JSF ?" Watch "JSP or JSF ?" New topic
Author

JSP or JSF ?

Lars Behnke
Ranch Hand

Joined: May 09, 2006
Posts: 76
Hi all,

I am just curious to know if anyone of you has used JSF for the Web Client. I see no reason why I should use plain Servlets/JSP when I can have the JSF framework.

Looking forward to hearing your opinion.

Lars
[ November 29, 2006: Message edited by: Lars Behnke ]
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1176
Lars,

The assignment says:

The architecture must use the J2EE environment.


And

Create a Component diagram that shows all of the J2EE components used in the system and their interaction. For example, what EJBs, Servlets, and/or JSPs might be needed?


After all, the assignment was written several years ago and in the meantime new J2EE technologies emerged or became stronger, such as Web Services, AJAX and JSF.

Therefore, I don't see any risk in using JSF in your assignment.

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Marx Villegas
Ranch Hand

Joined: Mar 10, 2006
Posts: 94
Dan,
as AJAX isn't part of J2EE, is it possible to use it?
XM
[ November 28, 2006: Message edited by: Marx Villegas ]

When the compiler's not happy, ain't nobody happy...
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1176
Marx,

The following article 'Asynchronous JavaScript Technology and XML (AJAX) With the Java Platform' on the Sun site at http://java.sun.com/developer/technicalArticles/J2EE/AJAX/ gives you the feel that Sun definitely considers AJAX to be part of the J2EE platform.

Just look at the url - .... J2EE and then AJAX.

Regards,
Dan
Marx Villegas
Ranch Hand

Joined: Mar 10, 2006
Posts: 94
I agree.
AJAX is cool. There are already a couple of open source frameworks for using JSF + javascriptless AJAX. It'd be great if something like this is standardized.
regards
XM
Lars Behnke
Ranch Hand

Joined: May 09, 2006
Posts: 76
Thanks for your postings.

I think we can regard AJAX as an technology related to J2EE - like HTML, CSS, Javascript, WebServices, CORBA etc. So I agree with Dan and I am quite sure we could use it if we wanted. However, I would better leave that decision to the software designer. IMO it's not an architectural question, rather an question which JSF component library to use. As Marx said, there are good JSF/AJAX components available. Some of them encapsulate AJAX in such a way, that developers do not even have to bother learning JavaScript.

Concerning JSF - I nearly made up my mind to build the FBN web client on top of JSF. I worked with JSF for the past couple of years and I appreciate its event driven programming model and its POJO controllers. Since I would never build an real-life Application on top of pure JSP, proprietary servlet controllers and so forth, I will give JSF a go in the assignment...

Lars
[ November 29, 2006: Message edited by: Lars Behnke ]
 
jQuery in Action, 2nd edition
 
subject: JSP or JSF ?