- This topic has 2 replies, 2 voices, and was last updated 17 years, 1 month ago by
Loyal Water.
-
AuthorPosts
-
[email protected]MemberI’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”>
<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>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 WorkbenchVersion: 6.0.1 GA
Build id: 6.0.1-GA-200710Eclipse Graphical Editing Framework
Version: 3.3.1.v20070814
Build id: 20070814-1555Eclipse Project SDK
Version: 3.3.2.R33x_r20071022-7M7J7C_Mu2gop0b_GAwplOBhyuKO
Build id: M20071023-1652Eclipse Plug-in Development Environment
Version: 3.3.2.R33x_r20071022-7N7M4CYWLBCz-yHkMIuHN
Build id: M20071023-1652Eclipse Platform
Version: 3.3.2.R33x_v20071022-_19UEksF-G8Yc6bUv3Dz
Build id: M20071023-1652Eclipse RCP
Version: 3.3.2.R33x_r20071022-8y8eE9CEV3FspP8HJrY1M2dS
Build id: I20070625-1500Eclipse Java Development Tools
Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL
Build id: I20070625-1500Eclipse 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
[email protected]MemberWell, 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.
Loyal WaterMemberWierd .. but I’m glad it working fine now 🙂
-
AuthorPosts