- This topic has 1 reply, 2 voices, and was last updated 17 years, 6 months ago by Riyad Kalla.
-
AuthorPosts
-
DurnikMemberI’m trying to get through the initial steps in learning JSF and facelets. I’ve performed the following steps (since the jsf/facelts tutorial is not for the 5.5 release with facelets support)
1) Create a new web project (toyJSF), java 1.5
2) Add facelets support
3) Create a new file (index.xhttml) using the advanced xhtml facelets template
4) Edit the web.xml file to point to index.xhtml as the index file (versus the index.jsp)
5) Deploy to web server (Tomcat 6.0)
6) Open the url (http://localhost:8080/toyJSF with IE 6.0Instead of the web page, what I get is a file download prompt and the file is the following
***************** paste of file below
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”><html xmlns=”http://www.w3.org/1999/xhtml”
xmlns:ui=”http://java.sun.com/jsf/facelets”
xmlns:h=”http://java.sun.com/jsf/html”
xmlns:f=”http://java.sun.com/jsf/core” xml:lang=”en” lang=”en”>
<head>
<title>My XHTML Page</title>
<meta http-equiv=”keywords” content=”enter,your,keywords,here” />
<meta http-equiv=”description”
content=”A short description of this page.” />
<meta http-equiv=”content-type” content=”text/html; charset=UTF-8″ /><!–<link rel=”stylesheet” type=”text/css” href=”styles.css”>–>
</head>
<body>
<p>
This is my XHTML page.
</p>
</body>
</html>***************************** end of file
Which looks correct to me. Does anyone have a short tutorial using the 5.5 features I could walk through?
Riyad KallaMemberFacelets tutorial was just added this morning, it also shipped inside of 5.5 (It’s under Learning Center > JEE Development): http://www.myeclipseide.com/enterpriseworkbench/help/topic/com.genuitec.myeclipse.doc/html/quickstarts/facelets/index.html
-
AuthorPosts