noob problem with RichFaces 4 M4
lysy78 Dec 27, 2010 8:14 AMHello!
I'm completely new to richfaces, jsf and other web technologies.
I've bought this book: "JSF 2.0 cookbook" in order to get started.
I'm currently using:
- jdk1.6.0_17
- jboss-6.0.0.20101110-CR1
- richfaces-4.0.0.20101110-M4
- mojarra-2.0.3-FCS
The first example using RichFaces looks like that:
<?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:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"> <h:head> <title>backing bean property converter</title> </h:head> <h:body> <f:view> <a4j:form> <h:outputText value="The integer version of selected color: "/> <h:outputText id="RGBValue" value="#{colorBean.color}"/> <rich:panel header="RichFaces color picker" style="width:315px"> <rich:colorPicker value="#{colorBean.color}" colorMode="rgb" converter="org.richfaces.IntegerColor"> <a4j:support event="onchange" reRender="RGBValue"/> </rich:colorPicker> </rich:panel> </a4j:form> </f:view> </h:body> </html>
It is quite simple example, but unfortunately doesn't work.
I can deploy the example, but everytime I want to execute the code I get an exception.
In WEB-INF/lib i have:
- cssparser-0.9.5.jar
- jsf-api.jar (mojarra 2.0.3)
- jsf-impl.jar (mojarra 2.0.3)
- richfaces-components-api-4.0.0.20101110-M4.jar
- richfaces-components-ui-4.0.0.20101110-M4.jar
- richfaces-core-api-4.0.0.20101110-M4.jar
- richfaces-core-impl-4.0.0.20101110-M4.jar
- sac.jar (sac 1.3)
Exception i get every time (full stack trace in attachment):
javax.faces.view.facelets.TagException: /richfacesConverter.xhtml @14,14 <a4j:form> Tag Library supports namespace: http://richfaces.org/a4j, but no tag was defined for name: form at com.sun.faces.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:289) at com.sun.faces.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:228) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
I attachment you can find:
- bean code
- web.xml
- example code
- full stack trace
Could you guys help me start with RichFaces?
Thanks in advance.
-
stacktrace.txt.zip 1.3 KB
-
richfacesConverter.xhtml.zip 650 bytes
-
web.xml 1.8 KB
-
ColorBean.java.zip 350 bytes