Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Myfaces tags do not work under WTP
Myfaces tags do not work under WTP [message #134536] Tue, 23 August 2005 23:12 Go to next message
Mitch is currently offline MitchFriend
Messages: 2
Registered: July 2009
Junior Member
Hi folks,

I have tried to follow a few examples on how to use myFaces under Eclipse
3.1 WTP and one problem that I am running into is that the tags from the
taglibs are not being recognized by the IDE. I have placed the myfaces.jar
file (among others) in the WEB-INF/lib directory and I can see all the jar
files under the "Web App Libraries" folder within the Dynamic Web Projects
folder of Project Exlporer. I also checked that the tld files are located
within the myfaces.jar file, which they are. So my question is, why does
the IDE not recognize the custom tags in my jsp files? I have placed the
taglib directives into the jsp file:

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
<%@ taglib uri="http://myfaces.apache.org/wap" prefix="wap" %>

yet this does not seem to make it work. Do I have to explicitly place the
tld files within the WEB-INF folder? I am under the impression that as
long as the tld files are located within the jar file that Eclipse would
recognize them. Can anyone enlighten me? Thanks for your help.

Regards,
Mitch
Re: Myfaces tags do not work under WTP [message #135238 is a reply to message #134536] Thu, 25 August 2005 23:07 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Mitch wrote:
> I have tried to follow a few examples on how to use myFaces under
> Eclipse 3.1 WTP and one problem that I am running into is that the tags
> from the taglibs are not being recognized by the IDE. I have placed the
> myfaces.jar file (among others) in the WEB-INF/lib directory and I can
> see all the jar files under the "Web App Libraries" folder within the
> Dynamic Web Projects folder of Project Exlporer. I also checked that the
> tld files are located within the myfaces.jar file, which they are. So my
> question is, why does the IDE not recognize the custom tags in my jsp
> files? I have placed the taglib directives into the jsp file:
>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
> <%@ taglib uri="http://myfaces.apache.org/wap" prefix="wap" %>
>
> yet this does not seem to make it work. Do I have to explicitly place
> the tld files within the WEB-INF folder? I am under the impression that
> as long as the tld files are located within the jar file that Eclipse
> would recognize them. Can anyone enlighten me? Thanks for your help.

As long as your JSP files are under the same WebContent folder that
holds the WEB-INF folder, it should work. Are you putting them
elsewhere?

--
- Nitin


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:javascript formatting
Next Topic:Can't create Dynamic Web project using WTP
Goto Forum:
  


Current Time: Thu Apr 25 09:25:00 GMT 2024

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

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

Back to the top