• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF vs JSP

 
Vamsee Kanakala
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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)...
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • 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


 
James Holmes
Author
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • 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/
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic