|
Re: Myfaces tags do not work under WTP [message #135238 is a reply to message #134536] |
Thu, 25 August 2005 23:07 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03271 seconds