2 Replies Latest reply on Feb 20, 2013 5:38 AM by Pavol Pitonak

    compilation error while using richfaces 4.3.0 jars

    selva r Newbie

      hi

       

      i am new to richfaces and i practiced using richfaces 3.1.4 and its great.

       

      but i tried with latest version 4.3.0 i am getting compilation error "Can not find the tag library descriptor for http://richfaces.org/rich ".

       

      though i placed the latest 4.3.0 jars in the classpath and lib folder. if i replace the 4.3.0 jars with 3.1.4 jars there is no problem compiles well.

       

      please clarify me whether the jars used are correct and any other procedure to be followed. i am using eclipse IDE.

      error.png

      thanks,

      Selva

        • 1. Re: compilation error while using richfaces 4.3.0 jars
          Michal Petrov Master

          Hi,

           

          Richfaces aren't compatible with JSP from version 4, it doesn't use the TLD your page is looking for. If you want to continue with Richfaces 4.X you'll have start using Facelets instead.

           

          Take a look here for info on Facelets and also consult the Richfaces Migration Guide.

          1 of 1 people found this helpful
          • 2. Re: compilation error while using richfaces 4.3.0 jars
            Pavol Pitonak Master

            Hi Selva,

             

            JSPs are deprecated in JSF 2 so you cannot use them with RichFaces 4. Use Facelets instead. Put something like this into your InputSearch.xhtml:

             

            <!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:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
            
            <h:head>
              <title>Input Search</title>
              <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
            </h:head>
            
            <h:body>
              ...
            </h:body>
            </html>
            

             

            Regards,

            Palo