You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by do...@cocoon.apache.org on 2004/07/15 14:27:12 UTC
[Cocoon Wiki] Updated: CocoonFormsJSF
Date: 2004-07-15T05:27:11
Editor: VadimGritsenko <vg...@apache.org>
Wiki: Cocoon Wiki
Page: CocoonFormsJSF
URL: http://wiki.apache.org/cocoon/CocoonFormsJSF
no comment
Change Log:
------------------------------------------------------------------------------
@@ -1,9 +1,9 @@
by SylvainWallez, BrunoDumon, ReinhardPoetz
-Note: please post your comments at dev@cocoon.apache.org if you think that
-information on this page is out of date or wrong (both technologies are in flow)
+'''Note:''' please post your comments at dev@cocoon.apache.org if you think that
+information on this page is out of date or wrong (both technologies are in the flux)
-A comparison between Cocoon Forms (aka Woody) and
+A comparison between [wiki:Forms Cocoon Forms] (formerly known as ''Woody'') and
[http://java.sun.com/j2ee/javaserverfaces/ JavaServer Faces].
== Mixing of concerns ==
@@ -32,40 +32,45 @@
[[BR]]
[http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106965495504920&w=2 comment]
by Eric Bruchez that JSF does not require JSP but can support any rendering technology
- (JSP is only the common denominator)
+ (JSP is only the common denominator):
+ {{{... there is nothing in JavaServer Faces that forces you to use JSP or that
+ limits you to outputting a character stream from a renderer. An implementation
+ that claims compliance must support JSP in order to provide a common denominator,
+ but it can support other rendering technologies. You can certainly write a JSF
+ "tag library" for an XML-based template language that outputs SAX.}}}
== Binding ==
* JSF only allows to bind the form to a !JavaBean, and I'm not sure about
how it handles complex bindings such as tables, etc. Woody, although the
binding is not totally mature, offers a very flexible binding that can
- map to javabeans and XML documents, but isn't limited to this.
- * Furthermore some generic "binders" such as the !JavaScriptBinding allow
- to do any kind of complex bindings: for example, we use it to bind a
+ map to !JavaBeans and XML documents, but isn't limited to this.
+ * Furthermore some generic "binders", such as the !JavaScriptBinding, allow
+ to implement any kind of complex bindings: for example, we use it to bind a
repeater to different "parallel" collections in an XML document.
== Data types ==
- * Widgets in Cocoonforms hold strongly typed data, and that validation happens
+ * Widgets in CocoonForms hold strongly typed data, and that validation happens
on this data, not on string values.
- IIRC JSF only does conversion as part of the binding.
+ IIRC JSF only does data conversion as part of the binding.
== What we learned from JSF ==
-But JSF also has good things that we have "copied" in Woody:
+But JSF also has good things that we have "copied" into Woody:
* a server-side form model (no need for a !FormBean like in Struts)
* some clearly defined processing phases (binding, reading from request,
- validation, etc) and
+ validation, etc) and
* server-side event handlers (mainly the fact that events have to be buffered
until the end of a processing phase to ensure consistency of the form model).
----
== More readings ==
- * Woody
+ * [:Woody]
* [http://www.theserverside.com/resources/article.jsp?l=BestBothWorlds Integrating JSP/JSF and XML/XSLT - The best of both worlds] by Eric Bruchez and Omar Tazi
* [http://www.jcp.org/en/jsr/detail?id=127 JSR127 - the JSF Spec]
* [http://www.jsfcentral.com/ JSF community page]
* [http://howardlewisship.com/blog/2004/06/more-on-tapestry-and-jsf.html More on Tapestry and JSF] Interesting reading about Tapestry and JSF, by Howard Lewis Ship (founder of Tapestry)
- * [http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html Improving JSF] by Hans Bergsten (O'Reilly book author: [http://www.oreilly.com/catalog/jsvrfaces/ JavaServer Faces]
+ * [http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html Improving JSF] by Hans Bergsten (O'Reilly book author: [http://www.oreilly.com/catalog/jsvrfaces/ JavaServer Faces])
== JSF and !CocoonForms - different comments ==
* [http://www.silent-penguin.com/archives/001406.html JSF impressions] by Matthew