dev@woodstock.java.net

Re: Struts? Enterprise?

From: Craig McClanahan <Craig.McClanahan_at_Sun.COM>
Date: Tue, 20 Feb 2007 09:56:03 -0800

Jeff,

(This message won't show up in the same thread as your original question
because I sent it before my mailing list subscription was processed ...
hopefully the fact that it answers your question will make up for the
inconvenience :-).

Woodstock is indeed a JavaServer Faces component library, and it will
work with any JSF implementation. If you want to use a JSF component
library (including Woodstock) with Struts, it is possible but requires
some extra work:

* With Struts 1.x, you need to use the Struts-Faces integration library.
  This is an adapter that maps JSF form submits into the Struts action
  framework, but lets you use components to compose the view instead
  of Struts HTML tags.

* With Struts 2.x, support for JSF components is a little bit more built in,
  but I'm not totally familiar with the details since I didn't work at
all on
  the Struts 2 codebase.

In either scenario above, you end up with an application that is using
Struts for the controller, including management of navigation between
pages, and uses JSF solely for the visual components. That works, but
if you're not totally committed to Struts yet, you might want to
evaluate whether you actually need to have both frameworks involved. It
turns out that JSF on its own, or with the help of JSF extension
frameworks like Shale[1] or Seam[2], can do pretty much all the things
you need a controller framework to do, without the complexity of having
two frameworks running inside the same application. I'd suggest you
check those out.

Also, if you like visual drag-and-drop development, the Woodstock
components are also delivered with the Visual Web Pack add on to
NetBeans 5.5.

Craig McClanahan

[1] http://shale.apache.org/
[2] http://jboss.com/products/seam