I’m trying to use Netbeans to make a web application using facelets. I want to use Icefaces as my widgets. I get the following error message
Warning: This page calls for XML namespace http://www.icefaces.org/icefaces/components declared with prefix ace but no taglibrary exists for that namespace.
and the control fails to appear. I have a most simple file
<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ace="http://www.icefaces.org/icefaces/components"
xmlns:ice="http://www.icesoft.com/icefaces/component"
>
<head>
<title>Shalom Elias</title>
</head>
<body>
<h:form id="form">
Shalom
<ace:dateTimeEntry id="date1" value="#{backing.date1}" renderAsPopup="true"/>
</h:form>
</body>
</html>
The web.xml looks like
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>welcome.jsf</welcome-file>
</welcome-file-list>
I think the taglibrary should be in icefaces-compat.jar which is available on what should be the class path. BTW, I used ace:, but ice: has exactly the same problem. Unfortunately, as a new user, I can’t upload a snapshot of my directory structure but the jar files are located under web/WEB-INF/classes, which looks logical to me.
The question is: what is missing???
Thanks,
Ilan
Put the icefaces jar file in:
instead of WEB-INF/classes folder.