Re: JSF tags represent a component
On 09/16/2010 06:29 AM, gk wrote:
"Struts tags generate HTML directly, whereas JSF tags represent a
component and renderer that generate HTML"
I'm not getting this part...is not both of them generate HTML ? where
is the key difference then ?
Could you please clarify the text "JSF tags represent a component
and renderer" ? I am not clear at this part.
Struts tags are more templates for HTML. They front for things that are more
like HTML in their concept - there's no hierarchy of user-interface thingies
lurking under the surface to handle the logic.
JSF tags are front faces to underlying components containing behaviors, logic
of their own. JSF is more like Swing in its programming model.
With JSF the browser posts requests to the server which the JSF framework
intercepts and forwards to the underlying components, which in turn form an
underlying application model maintained by the server. The components do
things like invoke business logic, perform surface validations, update the
state of the component model and produce results. The JSF mechanism then
transforms the view part of the actions into HTML and renders that to the client.
--
Lew