4 Replies Latest reply on Apr 24, 2007 11:44 AM by pmuir

    is an upgrade guide available for Seam?

    baz

      Hello,
      if someone knows an upgrade guide for Seam please send me the pointer. Thanks.
      I evenappreciate a chapter in the doc with upgrade instructions(at least with pointers to resources on the net)

      My problem:
      Created an app with seam1.2.0Patch1. Runs fine. Each form is validated correctly (using s:decorate and s:validateall)
      This app was derived from the seam example hibernate2. So it runs only with the microcontainer in tomcat.

      Sunday i added an edit form in the style of a seam-gen (from Seam 1.2.1GA) generated app.
      This form does not work. So i decided to upgrade my application.
      Putting seam.jar,seam-ui.jar and seam-debug.jar from seam1.2.1GA in the WEB-INF/lib folder of my app expecting it to work. But it won't. So i have realized that the facelets lib has changed. Putting it also in the lib folder my pages are rendered well. So far so good.
      But now, the validation of a form does not work anymore. The PC is flushed to the database even if there are validation errors. This naturally results in hibernate exceptions:-(

      A pointer to an migration guide is well appreciated.

      My solution for now is:
      take the hibernate2 example from seam1.2.1GA and port my app to it. If this will not run, i will notice this forum.
      Ciao,
      Carsten

        • 1. Re: is an upgrade guide available for Seam?

          I'd use the latest version of Seam and seam-gen to generate a new seam project, then migrate src and resource files. In the future you should be able to then update the seam-gen generate project when new versions of seam come out, as seam-gen has an update capability for automatic update conversion.

          • 2. Re: is an upgrade guide available for Seam?
            baz

            Thanks for the answer. This is exactly the way i travel when i can deploy on an app server (Jboss).
            For older or newer applications not generated by seam-gen this is no solution.
            The same holds for apps that must be deployed on tomcat without embedded ejb (using hibernate in the microcontainer). This kinds of applications are descendants of the seam application hibernate2.
            I do have such a beast which will not behave well after i decided to upgrade. So the wish to have a migration guide.
            Ciao,
            Carsten

            • 3. Re: is an upgrade guide available for Seam?

              I agree, an upgrade guide from release to release would be useful. However I doubt you'll get an upgrade guide that describes how to upgrade apps based on examples. I think your approach of taking the new hibernate2 example as a base and then patching in your code/config is the way to go here.

              All that said, I wouldn't be surprised if any new update guide made references to seam-gen as it's a nice automated way to go. Later versions have a number of project types and deployment options. If your particular hibernate2 style project isn't yet able to be bootstrapped with seam-gen I'd submit an improvement JIRA for someone to take a look at supporting it in the future.

              • 4. Re: is an upgrade guide available for Seam?
                pmuir

                You could take a look at the CVS changelog for hibernate2 and the main build.xml script to try to figure out what got changed

                http://fisheye.jboss.com/changelog/JBoss/jboss-seam/examples/hibernate2