6 Replies Latest reply on Nov 19, 2007 1:05 PM by balteo

    Richfaces PLUS Spring Framework ??

    balteo

      Hello,

      I am looking for feedback about the spring framework used together with Richfaces. The idea is that I want to do away with ejb3 and use spring for the middle tier. However I want to keep using Richfaces as I find it a powerful library of components.

      I am new to Spring but not to Richfaces/JSF.

      Can anyone please advise me on the do's and dont's. Any interesting feedback.

      Should I use spring web flow?

      Thanks in advance,

      Julien.

        • 1. Re: Richfaces PLUS Spring Framework ??
          akakunin

          Do not used Spring WebFlow.
          About Spring + RichFaces (and JSF in general) - we are using it in many projects and it works fine!

          Check Spring Documentation about integration with JSF (Spring provides integration with JSF so, JSF is using Spring-defined beans) and everything should work well :)

          • 2. Re: Richfaces PLUS Spring Framework ??
            mjdenham

            Hi Alexey,

            I was interested that you recommended not to use Spring WebFlow. Did you have bad experiences?

            We also tried and rejected WebFlow because of integration difficulties but I wondered if it was due to my lack of experience with it.

            Regards

            Martin

            • 3. Re: Richfaces PLUS Spring Framework ??

              I am using Spring WebFlow 1.1 (and thus Spring 2), Facelets, and RichFaces 3.1.0 successfully.

              Spring webflow is very useful in wizard and master/slave use cases and the ability to use a conversation scope (instead of session) is invaluable.

              I do intend to upgrade to WebFlow 2.0 (m1) soon.

              The only remaining problem I have is handling the "no conversation scope" exception that occurs when session timeout occurs. A webflow listener must be defined to catch this exception.

              • 4. Re: Richfaces PLUS Spring Framework ??
                balteo

                Hello,
                Has any one of you encountered problems whilst using jsf features such as binding a component to a variable in a class : I know how to do that with a managed bean but I am afraid it will not work with a spring web flow variable.
                Can I still use managed beans and keep this in my face config:

                <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>

                Julien.

                • 5. Re: Richfaces PLUS Spring Framework ??
                  marc1

                  hi,

                  i definetely encourage you to use spring webflow - together with spring its just a powerful and flexible combination - no need for seam at all, which is just to heavy for many applications. we just deployed successfully an application using richfaces, spring webflow, facelets and myfaces.

                  greetings. marcelo

                  • 6. Re: Richfaces PLUS Spring Framework ??
                    balteo

                    I have indeed tested SWF and find it really powerful.
                    Thanks for your advice Marcelo.
                    J.