noob problem with RichFaces 4 M4Hubert Lyczek Dec 27, 2010 8:14 AM
Hello!
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" ""> <html xmlns="" xmlns: <h:head> <title>backing bean property converter</title> </h:head> <h:body> <f:view> <a4j:form> <h:outputText <h:outputText <rich:panel <rich:colorPicker <a4j:support </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:, 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
-
- ColorBean.java.zip 350 bytes
1. Re: noob problem with RichFaces 4 M4Ilya Sorokoumov Dec 27, 2010 8:51 AM (in response to Hubert Lyczek)
I guess you should change a4j:form on h:form
2. Re: noob problem with RichFaces 4 M4Ilya Sorokoumov Dec 27, 2010 8:52 AM (in response to Ilya Sorokoumov)
Look at this topic
3. Re: noob problem with RichFaces 4 M4Ilya Sorokoumov Dec 27, 2010 9:00 AM (in response to Ilya Sorokoumov)
I also suggest you to find simple/short articles about JSF 2.0 in general and read them before you will use this book. And then you can download richfaces show case from this link. There are a lot of live examples there.
4. Re: noob problem with RichFaces 4 M4Hubert Lyczek Dec 27, 2010 1:55 PM (in response to Ilya Sorokoumov)
Thank you for your help.
You are right. I changed a4j:form to h:form. But that example still didn't work. I checked and rich:colorPicker is tag in RichFaces 3, but not in RichFaces 4. This means I cannot run all examples created in this book without checking if these axamples are still valid. I could switch to RF3, but i decided to discover RF4.
So the best way to start with RichFaces 4 will be examples attached with RichFaces4 and documentation
Thank you again,
Hubert
5. Re: noob problem with RichFaces 4 M4Ilya Shaikovsky Dec 28, 2010 5:01 AM (in response to Hubert Lyczek)
list of tags migrated currently available in readme . Also richfaces-showcase [snapshot build] could be highly usefull to explore the components.