Craig McClanahan wrote:
Bottom line -- yes, you can certainly do it all with raw JSF APIs, but
who in their right mind would want to?  Let Shale do it.  (This is
analogous to writing your own MVC framework instead of using an
existing one ... yes, you can do that on top of the servlet API, but
why?)

Fair point... unless one has some ideas that they think might make for a better framework of course :)

As to why JSF didn't go here (yet), there are two important things you
need to remember:

That was *precisely* my next question, good intuition :)

* It was a 1.0 spec, and we had to cut off adding functionality at some
  point or we'd all still be waiting.  The theme for 1.0 was getting the
  component APIs right, and we did that.

Certainly, makes sense. I have to say I was a bit surprised that *this* particular thing didn't make it in the spec as it seems that JSF is considerably less useful without this (understanding that it *IS* really there, as you point out, but if it's really that much work to do it then it may as well not be there). Unless I'm missing something (a very real possibility at this point!), it's analogous to saying that in Struts, you cannot execute an Action BEFORE a page has been rendered, only when a form is submitted from that page, and if you really want to do this you'll have to do these 10 things in your own class.

But, that's neither here nor there I suppose... I'm playing with Shale, and Shale does it, so not a problem :)

So, in answer to "how would one accomplish this with plain JSF?, my
answer is "you can do it if you're a masochist ... everyone else
should just use Shale :-).

And I'm less of a masochist these days than I once might have been, so ViewController it is for me too :) Thanks Craig!

Craig

Frank



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

Reply via email to