Re: Hairy generics question
Arne Vajh??j wrote:
Lew wrote:
Arved Sandstrom wrote:
If you choose to think of JSF as MVC - let's say because you aren't
interested in breaking out MVP as a derivative of MVC - then that's fine
too. I have no problem with that, it's what I actually do myself,
because most folks haven't heard of MVP anyway so why confuse them? I
would like it though if people who "knowledgeably" classify JSF as being
MVC could identify what the Controller is in JSF: I've run across more
people than not who either think it's the FacesServlet or just don't
know.
JSF is MVC if you think of a backing bean as a (generally) per-screen
controller.
It usually have functionality besides controller, so it is not just
a controller.
And clean MVC should have something that is just a controller.
QWhat non-controller functionality goes in a backing bean?
I've done a fair amount of JSF work, and the backing beans I've done work just
like a controller - they coordinate screen events and delegate fulfillment to
model objects.
I'm not sure where one exactly draws the line between "logic" and "control",
so perhaps I'm not writing controllers, but your statement is too vague for me
to discern if that's so. Please clarify.
--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg