aspose file tools*
The moose likes JSF and the fly likes Is this a facelets? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Is this a facelets?" Watch "Is this a facelets?" New topic
Author

Is this a facelets?

Ziyang Zhang
Ranch Hand

Joined: Jul 17, 2010
Posts: 47
I am currently working on a JSF project. And there are some xhtml files in the project.
They start with


Are they facelets? Why there is no xmlns:ui="http://java.sun.com/jsf/facelets included???
Quite new in JSF.
Thanks a lot.


Enjoy life!
Vadym Baranenko
Greenhorn

Joined: Oct 06, 2010
Posts: 18
And what is the extension of your file? *.xhtml or *.jsf? may by it's fist plain jsf?
Ziyang Zhang
Ranch Hand

Joined: Jul 17, 2010
Posts: 47
Vadim Baranenko wrote:And what is the extension of your file? *.xhtml or *.jsf? may by it's fist plain jsf?

The extention is .xhtml. When you see it in browser, it will be .jsf.

My guess is JSF2.0 is used in this project. And in JSF2.0, Facelets is the default view, so it is not necessary to include xmlns:ui="http://java.sun.com/jsf/facelets.

Still not sure...

Could somebody help me?
Abdullah Dokuyucu
Greenhorn

Joined: Apr 27, 2010
Posts: 24



Basic facelet (.xhtml), not sure if you can omit anything from that.


Freelancer for life!
Ziyang Zhang
Ranch Hand

Joined: Jul 17, 2010
Posts: 47
Abdullah Dokuyucu wrote:

Basic facelet (.xhtml), not sure if you can omit anything from that.


Thank you very much for your answer.
I think the following lines should be included at least.
# xmlns:f="http://java.sun.com/jsf/core"
# xmlns:h="http://java.sun.com/jsf/html"
Abdullah Dokuyucu
Greenhorn

Joined: Apr 27, 2010
Posts: 24

No, xmlns:f="http://java.sun.com/jsf/core" is optional.
Abdullah Dokuyucu
Greenhorn

Joined: Apr 27, 2010
Posts: 24

And actually, xmlns:ui="http://java.sun.com/jsf/facelets" is optional too.
Ziyang Zhang
Ranch Hand

Joined: Jul 17, 2010
Posts: 47
Abdullah Dokuyucu wrote:And actually, xmlns:ui="http://java.sun.com/jsf/facelets" is optional too.

Thanks a lot!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is this a facelets?
 
Similar Threads
JSF 2 tag completion in Eclipse Galileo for XHTML pages ?
How to use RichFaces in "normal" JSF
unable to instantiate tag f:view
Can not find the tag library descriptor for http://java.sun.com/jsf/facelets
project file structure for web application (war).