• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

JSF vs JSP  RSS feed

 
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?
 
author
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)...
 
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



 
Author
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/
 
What a show! What atmosphere! What fun! What a tiny ad!
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!