7 Replies Latest reply on Nov 27, 2007 2:03 PM by maxandersen

    Seam-Gen and JBoss Tools

    dennisrjohn

      Is it possible to open a project created with "seam create-project" in eclipse with the JBoss Tools plugin and get all of the features of the JBoss Tools.

      For instance, when I create a project using JBoss Tools, my Seam components autocomplete in my xhtml pages. If I import a seam generated project, there is no autocomplete for the xhtml pages.

      I'd rather use "seam create-project" because it creates a build.xml, and I like how it just adds the tests as a source directory instead of a completely separate project.

      Anybody done this before and had success?

      -Dennis

        • 1. Re: Seam-Gen and JBoss Tools
          maxandersen

          right click on the project, find seam pref page click enable seam

          • 2. Re: Seam-Gen and JBoss Tools
            maxandersen

            btw. *most* features willwork, but e.g. the wizards won't (yet)

            The completion and validation should work - if not its a bug.

            • 3. Re: Seam-Gen and JBoss Tools
              dennisrjohn

              Thanks for the reply, looks like that did it.

              Out of curiousity, to get it to work I had to create a java project and import the files, the seamgen wizard says not to create a Java project. Is that correct?

              • 4. Re: Seam-Gen and JBoss Tools
                dennisrjohn

                One more quick question.

                I have a JBoss server set up in my workspace, if I try to add the project to the server, I get the message "This project cannot be used with servers"

                Is there a quick fix for this as well?

                • 5. Re: Seam-Gen and JBoss Tools
                  maxandersen

                  I think the comment in seamgen is misleading and wrong ;) I always create a java project and point it to the existing dir *outside* eclipses workspace...anything else just gets things messed up over time.

                  Yup - a pure java project doesn't tell anything about what can be deployed from it ;)

                  You can though with our adapter deploy single files (e.g. right click on the war file and deploy it to server) or you can use Archive view to specify which files you want to get pushed somewhere .

                  • 6. Re: Seam-Gen and JBoss Tools
                    dennisrjohn

                    So - last question, I promise - do you have the hot deploy functionality working? It worked well when I was using a JBoss Tools generated project, but I can't figure out how to get it to work with the seamgen project.

                    It's a bit of a pain when I'm editing .xhtml files and I have to ant explode after every change.

                    • 7. Re: Seam-Gen and JBoss Tools
                      maxandersen

                      hey a soulmate about being tired of waiting for the ant explode to complete ;)

                      I got a rough demo on how to do it on arbitrary projects: http://www.screencast.com/t/0IO7DQou

                      you can use the exploded option and then just set the target somewhere in your jboss or you can use zip and right click it and deploy it to server then it will be put there in one piece.