Forgive me if I am misunderstanding, but I'm having a hard time
understanding your question. JSF is essentially the controller in MVC -
your faces config identifies the view states to go to based upon the
view state you are currently in and the outcome of some actions. JSF
provides no specific view handler, but defaults to use JSPs with special
tag libraries. Interestingly, almost no one recommends using that. I
work with several applications that use JSF with facelets and it works
OK. We use JSF to build JSR-168 portlets.
Cocoon, on the other hand, in my opinion is best used as the view
handler. I have a very large Cocoon application that uses the Cocoon
portal to manage the site layout and aggregate various pieces together,
many of which are XML content. Cocoon is fairly efficient in doing this,
largely because it makes extensive use of caching. For the controller
you can certainly use flow, and many folks here do, but if I was writing
an application that needed more than a primitive controller (which the
Cocoon sitemap provides) I would prefer to use something like Spring
WebFlow instead.
I have to wonder why you would say that you don't need continuations if
you are considering JSF? JSF is very heavy and its benefits really only
come into play if you have an application that has multiple paths
through several screens. It uses something similar to continuations to
keep track of what the current view state is.
I'm afraid I don't quite grasp teh question about reparsing. Are you
suggesting using JSF with Cocoon as the view handler? (The JSF block
demonstrates that that can be done).
Ralph
Christian Schlichtherle wrote:
Hi,
I'm pretty new to Apache Cocoon, so this may be stupid question:
I've looked at Cocoon Forms and JSF. Regarding form processing, both
seem to be pretty equal in features - components, technology neutral,
validation, binding, etc.
Now I wonder why I should prefer Cocoon Forms over JSF. I don't need
continuations, so Flow doesn't matter to me.
The most important thing I figured so far is: With JSF, the output is
always serialized to text, whereas Cocoon Forms can be part of the SAX
event pipeline. So with JSF I would need to parse the output again if
I want to transform the generated XML.
Am I correct?
With best regards,
Christian Schlichtherle
--
Schlichtherle IT Services
Wittelsbacherstr. 10a
10707 Berlin
Tel: +49 (0) 30 / 34 35 29 29
Mobil: +49 (0) 173 / 27 12 470
mailto:[EMAIL PROTECTED]
http://www.schlichtherle.de <http://www.schlichtherle.de/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]