3 Replies Latest reply on Sep 16, 2010 5:43 AM by Markus Welser

    Richfaces 4M2 how to setup and run in AS6M4 & JSF2.0

    Markus Welser Newbie

      Hello,

      currently testing AS6M4 / EJB3.1 / JSF2.0. Now i wanna extend the small demoapp i created with Richfaces 4.M2. Is there any short hwoto about this?

      No maven is currently not used.

       

      What i did so far:

      1. copied into WEB-INF/lib following jars

      • richfaces-commons-api-4.0.0.20100826-M2
      • richfaces-components-api-4.0.0.20100826-M2
      • richfaces-components-ui-4.0.0.20100826-M2
      • richfaces-core-api-4.0.0.20100826-M2
      • richfaces-core-impl-4.0.0.20100826-M2

       

      ? do i need all this libs/jars ?

       

      2. added to web.xml

      <context-param>
      <param-name>org.richfaces.skin</param-name>
      <param-value>#{skinBean.skin}</param-value>
      </context-param>
      <context-param>
      <param-name>org.richfaces.enableControlSkinning</param-name>
      <param-value>#{skinBean.enableElementsSkinning}</param-value>
      </context-param>
      <context-param>
      <param-name>org.richfaces.enableControlSkinningClasses</param-name>
      <param-value>#{skinBean.enableClassesSkinning}</param-value>
      </context-param>
      <context-param>
      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
      <param-value>client</param-value>
      </context-param>
      <context-param>
      <param-name>javax.faces.PROJECT_STAGE</param-name>
      <param-value>Development</param-value>
      </context-param>

           <context-param>

      <param-name>org.richfaces.skin</param-name>

      <param-value>#{skinBean.skin}</param-value>

      </context-param>


      <context-param>

      <param-name>org.richfaces.enableControlSkinning</param-name>

      <param-value>#{skinBean.enableElementsSkinning}</param-value>

      </context-param>


      <context-param>

      <param-name>org.richfaces.enableControlSkinningClasses</param-name>

      <param-value>#{skinBean.enableClassesSkinning}</param-value>

      </context-param>


      <context-param>

      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

      <param-value>client</param-value>

      </context-param>

       

      <context-param>

      <param-name>javax.faces.PROJECT_STAGE</param-name>

      <param-value>Development</param-value>

      </context-param>


      ? did i miss something ?

       

      4. added to my .xhtml file the tags

              .....

      xmlns:a4j="http://richfaces.org/a4j"

      xmlns:rich="http://richfaces.org/rich"

              .....

               <rich:tabPanel switchType="client">

              <rich:tab label="First">

                  Here is tab #1

              </rich:tab>

              <rich:tab label="Second">

                  Here is tab #2

              </rich:tab>    

              </rich:tabPanel>


      3. and finally deployed everything,,,,,,(still no error), but when i try to access the xhtml file i get an exception:

         .[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception: javax.faces.view.facelets.TagException:

           <rich:tabPanel> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: tabPanel

       

      any idea what i did wrong ?! thx for help