On Tue, 12 Oct 2004 11:29:56 -0400, Sean Schofield
<[EMAIL PROTECTED]> wrote:
> I have been doing some reading recently on JSF and I have a few comments and 
> questions.
> 
> At first I thought JSF would focus mostly on the "V" in MVC.  But after doing some 
> reading on this, it seems like JSF really provides the "M" and "C" as well.  Is this 
> accurate?

Not really.  JSF supports value binding expressions so that you can
"connect" a component with some model data in your M tier, but JSF
doesn't really care what technology you're using there.  There is just
enough C to support letting an action event navigate from one page to
another, but nothing like what Struts does of passing all such
navigation requests through a common lifecycle.

> 
> It seems possible to combine the view of JSF with the Struts controller (and 
> apparently this is what the integration package is about.)  Most of the discussion 
> about combining the two revolves around migration from existing Struts projects to 
> JSF.  Other than migration purposes, what is the point in using both?

If you want to use Struts features like Tiles and the Validator
framework, you'd use them together.

> 
> I like Tiles and plan to continue to use it, but I consider Tiles to be only a small 
> part of Struts.  Most of the familiar Struts entities seem to be covered by JSF and 
> I am not sure why it would make sense to keep using Struts if there are features in 
> JSF that are appealing to you.  Of course you could use Struts for validation but is 
> it really worth dealing with two frameworks just because you like Struts validation 
> better than JSF validation?

If client side Javascript validators are important to you, that is
likely to be a tipping point.

> 
> My point in asking these questions is that I am trying decide the direction our 
> current Struts applications should take.  I am very happy with Struts but worry that 
> over the long run, the focus will be on JSF and our applications will miss out on 
> some of the developments there.
> 

You'll get the longer version of my answer to these types of questions
on my blog:

  http://blogs.sun.com/craigmcc

> Finally, is the ComposableRequestProcessor in struts-chain going to deal with JSF 
> eventually?  Will this make it even easier to combine the two?

That's sort of an orthogonal question, because the struts-chain code
only deals with what happens *after* a form submit event is processed.
 It's just a replacement for the 1.1/1.2 RequestProcessor class, which
means you could even use them together today.

> 
> TIA for you comments and suggestions,
> 
> sean
> 
Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to