Skip to main content



      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 19:12 Go to next message
Eclipse UserFriend
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 19:07 Go to previous message
Eclipse UserFriend
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
Previous Topic:javascript formatting
Next Topic:Can't create Dynamic Web project using WTP
Goto Forum:
  


Current Time: Sat May 10 00:26:21 EDT 2025

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

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

Back to the top