• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

JSP or JSF ?

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dan,
as AJAX isn't part of J2EE, is it possible to use it?
XM
[ November 28, 2006: Message edited by: Marx Villegas ]
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Evil is afoot. But this tiny ad is just an ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic