facebook

JSF with Facelets Issue

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #270636 Reply

    Durnik
    Member

    I’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.0

    Instead 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”&gt;

    <html xmlns=”http://www.w3.org/1999/xhtml&#8221;
    xmlns:ui=”http://java.sun.com/jsf/facelets&#8221;
    xmlns:h=”http://java.sun.com/jsf/html&#8221;
    xmlns:f=”http://java.sun.com/jsf/core&#8221; 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?

    #270674 Reply

    Riyad Kalla
    Member

    Facelets 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

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSF with Facelets Issue

You must be logged in to post in the forum log in