cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: CformsHibernateAndFlow
Date Thu, 30 Sep 2004 16:24:34 GMT
   Date: 2004-09-30T09:24:34
   Editor: ChristopherWatson <c.watson@zen.co.uk>
   Wiki: Cocoon Wiki
   Page: CformsHibernateAndFlow
   URL: http://wiki.apache.org/cocoon/CformsHibernateAndFlow

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -1,6 +1,8 @@
 = Important =
 
  *  '''The code attached to this page is not working (as at 14 Jun 2004). Help is needed!'''
+ * Necessary amendments to code ...
+ **binding_example.js change var bean = new hib.Form2Bean(); to var bean = new Packages.hib.Form2Bean();
  *  This page CformsHibernateAndFlow was developed from the original at WoodyHibernateAndFlow
by Hugo Burm. Modifications have been made to adapt it to a subset of the CForms sample, shipped
with Cocoon 2.1.5, and available in the samples/block/forms section.
 
 == Setup ==
@@ -9,8 +11,8 @@
  1. Copy the contents of the {{{hib}}} path (in the zip file, attached to this page), into
the {{{WEB-INF/classes/hib}}} folder under your Cocoon directory.
  1. Copy the contents of {{{form2bean2hib}}} path (in the zip file, attached to this page),
into a {{{form2bean2hib}}} folder under your Cocoon directory
  1. Add the following line into your {{{cocoon.xconf}}} (this adds the Avalon component that
creates the Hibernate session):
-{{{
-<component role="hib.PersistenceFactory" class="hib.HibernateFactory"/>
+{{{
+<component role="hib.PersistenceFactory" class="hib.HibernateFactory"/>
 }}}
  1. Create the table in your mysql database with the {{{mysql.sql}}} script (in the zip file,
attached to this page). 
  1. Copy the {{{hibernate.properties}}} file (in the zip file, attached to this page) into
the {{{WEB-INF/classes}}} folder under Cocoon. Edit the file to specify the appropriate login
credentials for your database. '''Note''': Hibernate has support for many different databases.
Change the SQL dialect in {{{hibernate.properties}}} and edit the above script if you don't
use mysql but something else.

Mime
View raw message