I am trying to implement a very simple RichFaces application (following the example at the developer guide, but am encountering an error I cannot solve.
My code appears to build and deploy correctly to Tomcat (localhost), but when the index page is opened I get the exception:
javax.faces.view.facelets.TagException: /index.xhtml @13,19 <a4j:form> Tag Library supports namespace: http://richfaces.org/a4j, but no tag was defined for name: form
The index page I am attempting to load is as follows:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body><f:view>
<a4j:form>
<rich:panel header="This is the title" style="width:400px;">
<h:outputText value="Enter your name:"/>
<h:inputText value="#{MyBean.message}">
<f:validateLength minimum="1" maximum="20"/>
</h:inputText>
</rich:panel>
</f:view></a4j:form>
</h:body>
</html>
This is the same as the example in the developer guide, as far as I can tell. I am developing within Netbeans 6.8, using the MyFaces implementation of JSF 2.0, and have added RichFaces and Apache Commons jar's as libraries, and the tag the exception is stating is actually auto-suggested by Netbeans!
From Apache Commons, I have added:
beanutils, collections, digester, logging
From RichFaces, I have added: richfaces-api, richfaces-impl, richfaces-impl-jsf2, richfaces-ui
If it would be useful to provide the bean code and/or web.xml, please say so, I just wanted to avoid a huge post for what may be a simple mistake.