This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSF and the fly likes Im New to JSF Please help to understand basic concept Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Im New to JSF Please help to understand basic concept" Watch "Im New to JSF Please help to understand basic concept" New topic
Author

Im New to JSF Please help to understand basic concept

Prakash Sam
Greenhorn

Joined: Dec 06, 2005
Posts: 6
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Mar 17, 2010
Posts: 5
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

Joined: Sep 29, 2008
Posts: 12617

JSF isn't new; it's been around for over half a decade.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Im New to JSF Please help to understand basic concept
 
Similar Threads
about .jspf files
help to understand basic concept in JSF
confusion in jsf
basics of jsf
subclass sub = new superclass() ??