• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSF vs JSP

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I read somewhere that JSP and JSF don't play very well with each other, leading to inconsistencies in element-rendering order. Does this mean that JSF is supposed to completely replace JSP?
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSF pages are based on JSP. That is, a JSP page becomes a JSF page once you start using JSF taglibs for your forms. I can't figure out what these problems with rendering order might be, but then again, I haven't used JSF myself (yet)...
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Does this mean that JSF is supposed to completely replace JSP?




JSF does not replace JSP ... because JSF use JSP Technology.


JavaServer Faces technology is a server-side user interface component framework for Java technology-based Web applications



The main components of JavaServer Faces technology are as follows:

An API for representing UI components and managing their state; handling events, server-side validation, and data conversion; defining page navigation; supporting internationalization and accessibility; and providing extensibility for all these features
Two JavaServer Pages (JSP) custom tag libraries for expressing UI components within a JSP page and for wiring components to server-side objects



 
Author
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Vamsee,

There are some issues in using JSF and JSP together. This stems primarily from the fact that their processing lifecycles are incongruent. Hans Bergsten put together an article that details this. Following is the link.

http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html

As a side note, JSF is incompatible (for the most part) with current versions of JSTL.

Hope that helps,

James
JSF Resources and Console GUI tool
http://www.jamesholmes.com/JavaServerFaces/
 
reply
    Bookmark Topic Watch Topic
  • New Topic