3 Replies Latest reply on Jun 8, 2015 6:37 PM by kk n

    Richfaces 4.5.4 jars

    kk n Newbie

      I am upgrading my application from richfaces 3.0 to 4.5.4 version. I am following richfaces upgrade guide which says the new richfaces jars are

      richfaces-core

      richfaces-a4j

      richfaces-rich

       

      However, richfaces 4.5.4 pom includes only richfaces-core and richfaces-a4j. Can someone help me in understanding why richfaces-rich jar in not included in pom or do we really need richfaces-rich jar?

       

      Thank you!

        • 1. Re: Richfaces 4.5.4 jars
          Pavol Pitonak Master

          Hi,

           

          I'll try to explain it but first of all, there is a newer version, 4.5.5 and 4.5.6 will be released soon

           

          The three jars that you listed come from richfaces distribution zip and all three are necessary. You need to include these three jars if you have Ant-based project.

           

          If you use Maven for dependency management, you only need to include one dependency org.richfaces:richfaces:4.5.5.Final and all other dependencies will be downloaded automatically. Your project will end up with three jars included... org.richfaces:richfaces, org.richfaces:richfaces-a4j and org.richfaces:richfaces-core.  These are exactly the same bits but richfaces.jar is renamed to richfaces-rich.jar in distribution zip.

           

          Regards,

          Pavol

          • 2. Re: Richfaces 4.5.4 jars
            kk n Newbie

            Thank you Pavol! The jars are downloaded as you have mentioned.

            • 3. Re: Richfaces 4.5.4 jars
              kk n Newbie

              Hi Pavol,

               

              As per your comments, I am able to download three jars -

              richfaces-4.5.4.Final.jar

              richfaces-a4j-4.5.4.Final.jar

              richfaces-core-4.5.4.Final.jar

               

              I am getting into a weird situation which I took a lot of time to figure it out.

               

              Since richfaces and a4j jars both have similar folder structure (org.richfaces.component), I am not able to import org.richfaces.component.UIDataAdaptor as it is being looked into org.richfaces.component in richfaces jar instead of richfaces-a4j jar. Because of this I am seeing warning in console "SEVERE: Class : org.richfaces.event.DataTablePreRenderListener not found.". When I tried to copy the same class (DataTablePreRenderListener) in my local folder structure, I could see that I am not able to import UIDataTable class. This ultimately is giving me an error "java.lang.NoClassDefFoundError: org/ajax4jsf/component/IterationStateHolder".

               

              Can you please help me in understanding what am I missing here.

               

              Thank you!!