Help

To celebrate the new release of JBoss Tools, I'm going to walk through some of the features of JBoss Tools that are interesting to Seam developers.

There are two perspectives that are of interest for people using Seam: the Seam perspective and the Hibernate perspective:

The Seam perspective features some very useful wizards in the New menu:

The first thing you'll want to do is create a Seam Web Project, by following the wizard:

Next, create a Seam Action:

All Seam components are easily accessible from the Seam Component View:

Even better, they're autocompleted whenever you start typing an EL expression:

Even property names are autocompleted (JBoss Tools is even smart enough to understand generic types!):

We can run our application from the Run menu, or from the Servers View. JBoss Tools automatically deploys changes incrementally, a /big/ improvement over the Ant-based solution used in seam-gen:

The most impressive feature of JBoss Tools is the visual page editor, which does a great job of previewing complex Facelets pages with RichFaces controls, standard JSF controls and even Facelets templating:

Of course, autocomplete and hyperlink/F3 navigation to Seam components and Seam component properties also works in the visual editor:

There is a visual editor for web.xml:

And one for components.xml:

Autocomplete and hyperlinking/F3 work here too:

If we use Seam Generate Entities, we can reverse engineer an application from a database schema, or from existing entities:

And, switching to the Hibernate Perspective, we can browse the entities via a treeview:

Or via a full visualization of the mapping:

37 comments:
 
15. Nov 2007, 19:12 CET | Link

Impressive, I would like to see the same thing in IntelliJ. BTW, what are you using for Seam development?

ReplyQuote
 
15. Nov 2007, 21:23 CET | Link
Rob

Looks great! Can't wait ti play with it.

 
15. Nov 2007, 21:58 CET | Link

Nice work, guys! My dream is to drag a Seam Component and drop it over the page to automagically create a form or table (just like JDeveloper does with ADF Components). BTW when will the next version of RDHS be released?

Best Regards!

-- Andrés

 
16. Nov 2007, 00:34 CET | Link

RHDS CR1 got uploaded a few hours after we made the JBoss Tools announcement; see this blog

about your feature request then submit a jira with what you think should happen ;)

 
16. Nov 2007, 00:40 CET | Link

First of all, great job! The quickness with which you guys developed this tool is mind blowing.

The only thing I disagree with is:

The most impressive feature of JBoss Tools is the visual page editor, which does a great job of previewing complex Facelets pages with RichFaces controls, standard JSF controls and even Facelets templating

I have never found this view useful because it is falls smack between a great XML editor and a great page viewer, giving you a crippled version of both. As far as I am concerned, a template without data is just garbage on the screen. To make CSS refinements, you have to deploy. To see how a table will layout, you have to deploy. To see if it is displaying the right data, you have to deploy. I would rather just have kick-ass XML tag and EL completion and deploy when I need to see the result. Seam has hot deploy, so everything I would need is there...I just don't find anything interesting about this view.

But that is just my feeling. Perhaps it is useful to other folks.

 
16. Nov 2007, 05:04 CET | Link

Well you have kick-ass XML tag and EL completion and you can just use the pure source view ,)

About CSS then we actually render the CSS attributes, if it is the skin attributes you are missing then we will be working on getting that down the road.

About layout - what are you missing ? We support include and templates ?

Right data - that is correct, but I could see us setup a sample data for variable names per page - but not sure if it would be used.

Anyway, it helps me since it is easier to navigate back and forth between the visual elements and source...but yes - it will be different things for different people.

 
16. Nov 2007, 07:32 CET | Link

Great stuff, and it would be even better if views and editors specific to Seam and Hibernate would have task context filtering and integration with Mylyn.

 
16. Nov 2007, 09:24 CET | Link
I have never found this view useful because it is falls smack between a great XML editor and a great page viewer, giving you a crippled version of both.

Actually I think it's a /better/ XML editor, with all the autocompletion on offer. And personally I've found the visual preview quite useful, especially when using Facelets templating and CSS, which I'm /always/ using. The visual preview is aware of <ui:decorate/>, <s:decorate/>, <ui:insert/> etc. It's also aware of CSS. It even does a decent job with things like <ui:repeat/> and <h:dataTable/>.

Note that the rendering engine is actually Gecko!

 
16. Nov 2007, 17:47 CET | Link

Eugene, Mylyn integration would be great - I would love to get someone from the community to step up and work on that ;)

 
16. Nov 2007, 20:16 CET | Link
Jeremy Davis | jeremyrdavis(AT)gmail.com

Nice! Downloading now...

 
16. Nov 2007, 23:08 CET | Link
Doug

Wondering what configuration of MacOS X

 
16. Nov 2007, 23:10 CET | Link
The most impressive feature of JBoss Tools is the visual page editor, which does a great job of previewing complex Facelets pages with RichFaces controls, standard JSF controls and even Facelets templating

Yes, it's really impressive! It could be very useful to document how to integrate 3th party component libraries into the visual page editor. Anyway, JBoss Tools really boosts Java EE development!

Good work!

Mauro

 
17. Nov 2007, 01:09 CET | Link

Note that I'm using:

  • Eclipse 3.3.0
  • JBoss Tools 2.0.0.CR1
  • Seam 2.0.0.GA
  • JBoss AS 4.2.2.GA

And that I've edited my eclipse.ini to work around a bug in Eclipse 3.3 that leaks permgen space.

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx512m
-XX:PermSize=128M 
-XX:MaxPermSize=256M

Supposedly, this bug will be fixed in the next release of Eclipse.

 
17. Nov 2007, 01:24 CET | Link

Doug: Mac OS 10.x is what I have tested it on. Is there any other Mac config that would be relevant ?

Gavin: The fixed version of Eclipse is already released - it's called Eclipse 3.3.1.1 and was not a major release; but an rebuild with just this glitch (and to other minor ones) fixed.

 
17. Nov 2007, 01:36 CET | Link
Doug

First, sorry about posting issues, I had validations errors, but my entr(ies) posted anyways.

Specifically the part that was cut off was. I am on MacOS X 10.5.1 and have had issues reported by others using 3.3.1.1 which were suppose to be fixed at 3.3.2, I found I needed to go to 3.4M3 for a solid configuration for JBoss tools. Way beyond a reasonably supported configuration. If you are still on MacOS X 10.4, then I know I must continue on the bleeding edge for the time being.

 
17. Nov 2007, 04:37 CET | Link
Max

I do not understand. Eclipse 3.4M3 is not needed at all. What issues are you talking about being fixed in 3.3.2 ? The only issue I know about is the minor one about classes folders not being shown properly in the Package Explorer.

There are no reported issues against JBoss Tools on Mac so please do so if you have issues.

I'm on MacOS X 10.5 and it works with no issues as far as I can see.

 
17. Nov 2007, 05:43 CET | Link
Doug

Don't want to highjack blog here, just to say this is an eclipse bug not JBoss tools. Google leopard eclipse crash first link.

More to the point of this blog entry. Great jobs guys, from what I've seen and used this is finally a framework and tool set combo that rivals and far exceeds WebObjects back in the day.

 
19. Nov 2007, 02:38 CET | Link
kristof

The leopard eclipse crash mentioned is fixed in eclipse-M20071107-1100. This crash happened when using arrow keys in the Open Resource dialog (and friends).

But there is yet another bug in the Java VM part of Leopard. When opening any file associated with the visual editor you get the Can't start AWT report and subsequent crash. It seems to be related to the context classloader not being set correctly. The GWT was also bitten by it. This is what surprises me about Max being on 10.5. Do you not see this?

 
19. Nov 2007, 05:46 CET | Link
Murat HAZER

i have the same problem as kristof, i've opened an jira issue; jira.jboss.com/jira/browse/JBIDE-1330

did u solve java 6 problem in mac os x or still working with java 5?

 
19. Nov 2007, 20:53 CET | Link

congratulations for the great stuff! Btw, has anyone managed to run seam 2.0 ga tests on the new tools?

 
19. Nov 2007, 21:57 CET | Link
Max

Seam 2.0 War tests should work out of the box - if not let us know.

Ear tests has issues because of a bug in the microcontainer bundled with Seam 2.0.0.GA - see http://jira.jboss.com/jira/browse/JBSEAM-2129

09. Dec 2007, 22:10 CET | Link

Hi, I can't seem to find the mapping view (the one ported from exadel) in my hibernate perspective. Where can I find the button that opens it? Is it EJB3, Seam only or it works for any kind of hibernate configuration (xml, annotations)?

 
10. Dec 2007, 03:12 CET | Link

There is no mapping view ported from Exadel ...which are you talking about ?

You mean the Hibernate Mapping Diagram which is the last screenshot in the blog entry ? Right click an entity in Hibernate Configuration and choose Open Mapping Diagram

And yes, it works on any model that Hibernate can load (since it is the hibernate /Configuration/ object we are actually visualizing)

 
10. Dec 2007, 05:12 CET | Link

http://www.hibernate.org/hibdocs/tools/eclipse/newandnoteworthy/hibernate-eclipse-news-3.2.0.beta11.html -

 
10. Dec 2007, 07:08 CET | Link
Max

Looks like your url got cut off. Could you post it again marked correctly or without the http part.

 
13. Dec 2007, 08:19 CET | Link

It is said in this new and noteworthy that This release brings a port of Exadel Studio's entity diagram to Hibernate Tools. www.hibernate.org/hibdocs/tools/eclipse/newandnoteworthy/hibernate-eclipse-news-3.2.0.beta11.html

 
13. Dec 2007, 18:33 CET | Link

Sorry, my bad - I was reading it as editor instead of view.

That view is available as how I wrote above - right click on entity and select open mapping diagram to show the diagram.

21. Dec 2007, 17:24 CET | Link

I think I found out why I didn't find the menu for opening the view. By chance I was right-clicking on a Sub-class of an Entity, it would seem that the tool only appends the menu entry for the parent entity. So I'd say that could be fixed :) Also it would be nice if there is a view of the entire mapping.

10. Jan 2008, 23:53 CET | Link
Juan Medín | juan.medin(AT)gmail.com

As you know, there is a bug that prevents us from using the HTML editor (and maybe other views) in Leopard. I hope the Eclipse team fixes this as soon as possible.

Great, great work from what I see in Windows.

 
13. Feb 2008, 19:48 CET | Link
bernard

Netbeans

 
15. May 2008, 20:40 CET | Link
ojve

well, what ever i try -- the projects created with jboss tools are invalid. they do not deploy but make jboss spitting out long and confusing error messages (stacktraces and messages like MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM). there also seems to be not tutorial (and i do not mean something of those screencasts which take more space and time -- both in productionand in consumation -- then plain html and which you can't print) how to setup and how to create projects.

btw: this form is not postab

 
16. May 2008, 05:34 CET | Link
Max

ojve: You should go to the forum and post more information about what issues you have. Maybe you are using JDK 6 which can cause these things instead of JDK 5?

About docs - have you seen http://docs.jboss.org/tools which is linked from our main site jboss.org/tools ?

Has both reference and tutorials.

 
26. May 2008, 12:49 CET | Link
PipoXP

help me!!!

T-T

Problem with Vista.

Plug-in org.jboss.tools.seam.ui was unable to instantiate class org.jboss.tools.seam.ui.wizard.SeamProjectWizard. org.eclipse.wst.common.project.facet.core.FacetedProjectFramework.createNewProject()Lorg/eclipse/wst/common/project/facet/core/IFacetedProjectWorkingCopy;

 
27. May 2008, 01:21 CET | Link
Max

Seems like you did not install Eclipse WebTools (WTP). It comes with Eclipse Europa.

 
05. Mar 2009, 11:50 CET | Link
ashwini

can anybody plz tel me how to solve the seam runtime error.. whenever i create seam web project,there it is giving error as seam runtime error

 
05. Mar 2009, 15:48 CET | Link

Ask in the JBoss Tools forums and give more information.

 

--max

 
12. Jun 2009, 18:26 CET | Link
Fuddi
Post Comment