facebook

JSF/Facelets

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #280553 Reply

    I’m having some trouble with JSF/Facelets in MyEclipse.

    First, I can’t seem to get it to recognize the Facelets tags–they are all marked as “element unknown” in the JSF editor. Here is an example a page where the tags are marked “element unknown”:

    <?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>welcome.xhtml</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>
    <ui:composition template=”/template.xhtml”>
    <ui:define name=”title”>
    Welcome!
    <ui:define>
    <ui:define name=”body”>
    #{WelcomeBean.testValue}
    </ui:define>
    </ui:composition>
    </body>
    </html>

    Second, the facelets tutorial on your site indicates that I should open the facelets templates in the “MyEclipse JSF/Facelets Designer”. That designer doesn’t show up on my context menu, and I can’t find it on the “other” list either. I do, however, have two listings for a “MyEclipse Visual JSF Designer”.

    Any clues as to what I can do to get this to work?

    My installation summary is below:

    *** Date:
    Thursday, January 10, 2008 1:52:58 PM CST

    ** System properties:
    OS=Linux
    OS version=2.6.23.12-52.fc7
    Java version=1.6.0

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    Eclipse Graphical Editing Framework

    Version: 3.3.1.v20070814
    Build id: 20070814-1555

    Eclipse Project SDK

    Version: 3.3.2.R33x_r20071022-7M7J7C_Mu2gop0b_GAwplOBhyuKO
    Build id: M20071023-1652

    Eclipse Plug-in Development Environment

    Version: 3.3.2.R33x_r20071022-7N7M4CYWLBCz-yHkMIuHN
    Build id: M20071023-1652

    Eclipse Platform

    Version: 3.3.2.R33x_v20071022-_19UEksF-G8Yc6bUv3Dz
    Build id: M20071023-1652

    Eclipse RCP

    Version: 3.3.2.R33x_r20071022-8y8eE9CEV3FspP8HJrY1M2dS
    Build id: I20070625-1500

    Eclipse Java Development Tools

    Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL
    Build id: I20070625-1500

    Eclipse startup command=-os
    linux
    -ws
    gtk
    -arch
    x86
    -showsplash
    -launcher
    /home/dalh/eclipse/eclipse
    -name
    Eclipse
    –launcher.library
    /home/dalh/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.2.R331_v20071019/eclipse_1021.so
    -startup
    /home/dalh/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
    -product
    com.genuitec.myeclipse.product.ide
    -vm
    /opt/SDK/jdk/jre/bin/../lib/i386/client/libjvm.so

    #280554 Reply

    Well, seems to be working now. Previously, the “unknown element” warning kept coming up after multiple saves and re-opens of the .xhtml doc. However, when I deleted and retyped some content, they cleared.

    #280596 Reply

    Loyal Water
    Member

    Wierd .. but I’m glad it working fine now 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JSF/Facelets

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