5 Replies Latest reply on Dec 28, 2010 5:01 AM by Ilya Shaikovsky

    noob problem with RichFaces 4 M4

    Hubert Lyczek Newbie



      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-

      - richfaces-

      - 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"
                <title>backing bean property converter</title>
                          <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"/>


      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-

      - richfaces-components-ui-

      - richfaces-core-api-

      - richfaces-core-impl-

      - 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.