Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » 2.0M6 JSF Content Assist issues
2.0M6 JSF Content Assist issues [message #609316] Tue, 10 April 2007 20:17
Anil Kommareddi is currently offline Anil KommareddiFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,
I am using Eclipse 3.3M6 with WTP2.0M6. It appears that Content assist is
broken in the default JSP Editor. I see several issues and I hope it is
just my configuration that is broken.

My page looks like this (pl ignore any typos, it works when deployed):
------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:t="http://myfaces.apache.org/tomahawk"
version="2.0">

<ui:composition template="/internal/layout/layout.xhtml">
<html xmlns="http://www.w3.org/1999/xhtml">
<ui:define name="title">Test</ui:define>
<ui:define name="content">
<a4j:form id="testform">
<h:messages />
<h:inputText id="test" value="#{testBean.test}">
<h:commandButton id="btnAction" value="Submit"
action="#{testBean.action}"/>
</a4j:form>
</ui:define>
</html>
</ui:composition>
</jsp:root>
-----------------------

1. The "JSP Expression" assist is shown for MyFaces/Tomahawk/Ajax4JSF
libraries, nothing more. The tags seem to be recognized because there is
no red underline.

2. Facelets tags are not recognized at all, they are flagged with an error
"taglib directive for "ui" does not exist or TLD is not found". I have
tried extracting the tld and dropping it in the web-inf/lib, but it did
not help. I tried dropping it into a directory and setting the build path
to point to that directory, that did not help either.

3. Custom tag libs - same as Facelets tags.

#1 above works using the Amateras Faces IDE's JSP Editor - ie I can get
the content assist for MyFaces/Tomahawk/Ajax4JSF, but not Facelets or
Custom tags.

I have tried removing all my plugins completely and using just the
Platform with WTP and its pre-requisites. I started with a fresh
workspace, fresh dynamic web project with JSF facet, but it is the same
issue. I do not know what else to try. I have seen people mentioning
Facelets content assist works with Eclipse, but searching the newsgroups
yielded no clues.

Any help would be very much appreciated.

Thanks - Anil.
Previous Topic:Metadata
Next Topic:JSF tutorial doc
Goto Forum:
  


Current Time: Thu Apr 25 02:09:21 GMT 2024

Powered by FUDForum. Page generated in 0.02805 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top