Using Seam in 7.0?

Any advice on setting up a seam project/module in IDEA?
Right now I'm making a generic java module to start playing with it but it seems that since
I've generated a skeleton app as an ear module , I should be able to create a j2ee module, no?
It seems that the j2ee module is a container for other modules (web,ejb) so is the best bet
is to make 3 modules (j2ee,web and ejb) to take advantage of the IDEA web/j2ee's support?
Not really sure how to break up the source of the seam project into each module. How are others doing it?

2 comments
Comment actions Permalink

Hm, you confused me a little: Idea 7 (Selena) does not know these different module types anymore.
In Selena you would have a module and three facets (web, ejb, jee app).

In Demetra you would indeed have three modules, j2ee, web, ejb.
Add the folder containing your xhtml (or jsp) as resource folder to the web module.
Add additional seam descriptor files (e.g. pages.xml) as additional descriptors of the web module.
When adding those descriptors be sure to change the default location "META-INF" to "WEB-INF" (you
can't edit this location later, unfortunately).
Add the beans source folder as source folder to the ejb module (obviously).
Make sure to have a seam.properties file in you web's source root.

Also if you use facelets be sure to change the filetype of "*.xhtml" from "XHTML" to "JSPx".
That let's Idea recognize the EL in those files.

If you deploy the ear in exploded form you can select "Package file" from the context menu of any
xhtml/jsp file to let the app server hot swap the file.

Best try and configure one of the seam examples, first. You can then compare the Idea generated
ear with one from Seam's ant build and adjust the settings until you get the same result.

I can post an Idea project file (for the latest EAP build, i.e. using facets) for a Seam example
(of Seam Beta/CVS), if you'd like (when I am back at my other machine).

Good luck
Stephen

Vincent Storm wrote:

Any advice on setting up a seam project/module in IDEA?
Right now I'm making a generic java module to start playing with it but it seems that since
I've generated a skeleton app as an ear module , I should be able to create a j2ee module, no?
It seems that the j2ee module is a container for other modules (web,ejb) so is the best bet
is to make 3 modules (j2ee,web and ejb) to take advantage of the IDEA web/j2ee's support?
Not really sure how to break up the source of the seam project into each module. How are others doing it?

0
Comment actions Permalink

Please do post the sample project.
Also, I have 7.0b1 and it still does ask what type of module
you want to create the 'j2ee' module has been renamed to the 'jee' module
in my version. I will be hacking on this tonight. I'll report my findings I don't fall
asleep first. :)
Thanks

0

Please sign in to leave a comment.