Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Im New to JSF Please help to understand basic concept

 
Prakash Sam
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help to understand basic concept in JSF

JSF is a MVC Frame work.


Why we did not use the file extension with jsf instead of filename.jsp? what will happen if i gave the file extension as filename.jsf
Why we are using View Technology as jsp or xul or xhtml in JSF?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you're asking. File extensions are relatively meaningless, and the *default* file extension depends on which version of JSF you're using. You can decide which view technology to use based on your needs, core competencies, and so on.
 
Santosh Kumar V
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Prakash,

JavaServer Faces (JSF) technology is a new UI framework mainly used for J2EE applications with MVC architecture. JSF clearly defines a separation between business logic and presentation while making it easy to connect the presentation layer to the application code. You are right when you say that JSF is MVC based.

As Bart Kummel as pointed out in one of your previous posts the file extension for a jsf file is configurable as per your wish.

You can even use filename.jsf but you have to first configure the extension .jsf to be parsed as a specified in the code by Bart. You will just have to change *.xhtml to *.jsf or any other extension you like.

With JSF you have the option of using Facelets or jsp for view component but facelets is preferred as it is a relatively new technology and much better at separating the business logic from view components.

Also you can use PrimeFaces, RichFaces, MyFaces etc which are jsf component providers and they are open source.

Even i am new to JSF but believe me you'll start liking it before you even know.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF isn't new; it's been around for over half a decade.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic