12 Replies Latest reply on Apr 11, 2007 3:41 AM by maxandersen

    auto tag completion in eclipse?

    lindsayh

      Hello,

      I'm very new to SEAM and I've just spent the week getting a bare bones project set up in eclipse. I'm now trying to get auto complete to work with the page tags. Most of the example code I see has .xhtml pages beginning:

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       template="layout/template.xhtml">
      
       <ui:define name="body">
      


      But this is not giving me auto completion of tags in eclipse. Prior to using Seam, I just used the JSP XML format and declared the namespaces in the jsp:root element. This allowed tag completion, but I needed a tld file in classpath for facelets support.

      Does any kind soul have a definitive way of getting tag completion to work with SEAM in eclipse?

      Many thanks,

      Lindsay



        • 1. Re: auto tag completion in eclipse?
          pmuir

          Take a look at Exadel Studio (which will become RH Developer Studio)

          • 2. Re: auto tag completion in eclipse?
            lindsayh

            Thanks for this. Yet another eclipse plugin to try out.

            • 3. Re: auto tag completion in eclipse?
              lindsayh

              Well I'm still none the wiser unfortunately. I hear that Exadel 4.0.4 has Seam support out the box. I can't find anything seamy about it. It's just an added layer of complexity that I don't really need just now.

              And I still can't figure out tag completion. Oh well, back to the old <jsp:root> workaround.

              • 4. Excadel - RHDS - JBossIDE
                ivanflorentin

                I am waiting for RHDS to come out, I've been using ExadelStudio 4.0.4 for a while but returned to Eclipse 3.1.2+JbossIDE 1.6. I've found ExadelStudio to be very unstable, it adds a lot of functionality that I don't need for a price I don't want to pay: huge memory footprint, random eclipse shutdowns, sluggish response.

                JBossIDE2.0Beta is also another half finished product and I guess it freezed down to wait for RHDS to come out and integrate all the tools. It will be a huge load of work to come out with a RHDS by july and the impact it will have on the seam comunity and ejb/jee software development in general will be huge too.

                I have different versions of eclipse installed in my enviroment with different sets of plugins. I've found that the more usable and stable still remains the JBossIDE 1.6 Bundle with some small additions (SVN for example). I'm using eclipse on linux (gentoo) with sun-jdk-1.5.10.

                If somebody has a different experience using ExadelStuddio, it would be nice to post solutions/installation procedure/configurations to avoid those problems.

                • 5. Re: auto tag completion in eclipse?
                  andyd

                  If you haven't already done this, try adding the following to your eclipse.ini configuration file

                  -vmargs
                  -Xms128m
                  -Xmx512m
                  -XX:PermSize=128m
                  -XX:MaxPermSize=256m

                  It made a big difference to my experience with exadel studio.
                  Regards,
                  Andy.

                  • 6. Re: auto tag completion in eclipse?
                    andyd

                    Lindsay,
                    Have you tried using the seam-gen tool that comes with seam. That will generate mu ch of what you need to get you moving, especially idf you are new to seam. That coupled with the exadel plug in works reasonably well, and best with the latest seam release. Seam-gen is imho the quickest route to getting a project working. Info is at http://docs.jboss.com/seam/1.2.1.GA/reference/en/html/gettingstarted.html.
                    andy.

                    • 7. Re: auto tag completion in eclipse?
                      lindsayh

                       

                      "andyd" wrote:
                      Lindsay,
                      Have you tried using the seam-gen tool that comes with seam. That will generate mu ch of what you need to get you moving, especially idf you are new to seam. That coupled with the exadel plug in works reasonably well, and best with the latest seam release. Seam-gen is imho the quickest route to getting a project working. Info is at http://docs.jboss.com/seam/1.2.1.GA/reference/en/html/gettingstarted.html.
                      andy.


                      Hi Andy,

                      Yeah I tried seam-gen. I took the seam-gen project and whittled it down a bit, and fiddled with it so I could use my Hibernate3 .cfg.xml files. To be honest, I now have so many JBoss/SEAM/Hibernate related Eclipse plugins that I've lost track. I'm quite happy just to write the JSF's without any fancy tools for now. But I can't get tag completion to work for the seam tags.

                      I might just start from scratch - again!

                      Lindsay

                      • 8. Re: auto tag completion in eclipse?
                        lindsayh

                        So, if I'm using Exadel, is there a need for any other plugins like JBoss IDE? Or is Eclipse + WTP adequate? I'm trying to start again from scratch.

                        Anyone got a link to an Exadel/SEAM getting started guide??

                        • 9. Re: auto tag completion in eclipse?
                          spambob

                          I use Eclipse & WTP without anything else (Seam related) and have working content assist for JSF, Seam, ... tags.

                          If I remember right everything necessary to get it working was to associate the file extensions you use with the JSP editor (I use .xhtml which was only associated with the HTML editor).

                          HTH

                          • 10. Re: auto tag completion in eclipse?

                            For now, using seam-gen with eclipse tooling is a bit clunky, but we showed off nice seam-gen tooling at EclipseCon about 1 month ago. It's currently in development and not available outside SVN. Right now, we are open sourcing the Exadel Professional Developer Suite which includes support for a slew of things outside base Eclipse and Seam like Spring and Struts. Right now, only the richfaces and ajax4jsf stuff has been converted to Open Source. Here's what I recommend:

                            1. Download Eclipse 3.2.1 from: http://download.eclipse.org/eclipse/downloads/drops/R-3.2.1-200609210945/index.php
                            2. Download Exadel 4.0.4 from: http://www.exadel.com/web/portal/download/esp35.
                            3. Download the jBPM plugin from: http://prdownloads.sourceforge.net/jboss/jBPM-Designer-3.0.12.zip?download
                            4. Download the Drools plugin from: http://labs.jboss.com/file-access/default/members/jbossrules/downloads/3.0.6/jbossrules-ide-3.0.6-bin.zip
                            5. Download the Hibernate Tools plugin from: http://prdownloads.sourceforge.net/jboss/HibernateTools-3.2.0.beta8.zip?download
                            6. Use the TestNG update site to add a nice TestNG plugin: http://testng.org/doc/download.html

                            Then, use seam-gen via the command line. A seam-gen plugin will likely be available around the JavaOne time frame. With any luck an RHDS(Red Hat Developer Studio) beta will also be publicly available.

                            Here's what you'll have with this eclipse workbench:
                            1. JSF/Ajax tooling with Exadel (This is actually quite good)
                            2. Rules/jBPM tooling with JBoss plugins
                            3. TestNG tooling
                            4. Hibernate tooling
                            5. Server Tooling to start/stop JBossAS, run in debug mode etc...
                            6. DB Explorer plugin and a bunch of other stuff that's included in Callisto. The Exadel version is more stable than stock Eclipse+Callisto, IMO.

                            You will not have:
                            1. A seam-gen plugin (we showed a pre-alpha version at EclipseCon, but it's not available in binary form yet)
                            2. A stable, consolidated IDE via a single download. RHDS, due out later this year will provide that.

                            James


                            • 11. Re: auto tag completion in eclipse?
                              lindsayh

                              thanks v much for that. I'll possibly just ignore the Drools and TestNG stuff for now though. One thing at a time eh.

                              looking forward to RHDS.

                              • 12. Re: auto tag completion in eclipse?
                                maxandersen

                                Don't download beta8 of hibernate tools - that's old ;)

                                Get beta9a if you want the latests release OR get the nightly build which will have much better integration with latest seam-gen since it automatically picksup the configuration and setup the needed things for hibernate tools too shine.

                                Look here for the nightly http://download.jboss.com/jbosside/builds/nightly/

                                and tools.hibernate.org for the latest release if you don't like to use nightlies.