cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/ojb/samples/woody employee.js
Date Tue, 10 Feb 2004 01:05:28 GMT
crossley    2004/02/09 17:05:28

  Modified:    src/blocks/ojb/samples/woody employee.js
  Log:
  Fix dos2unix line endings.
  
  Revision  Changes    Path
  1.9       +32 -32    cocoon-2.1/src/blocks/ojb/samples/woody/employee.js
  
  Index: employee.js
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/ojb/samples/woody/employee.js,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- employee.js	4 Feb 2004 17:33:59 -0000	1.8
  +++ employee.js	10 Feb 2004 01:05:28 -0000	1.9
  @@ -1,32 +1,32 @@
  -cocoon.load("resource://org/apache/cocoon/woody/flow/javascript/woody2.js");
  -
  -function employeeform_jdo(form) {
  -
  -	// Get OJB factory
  -   	var factory = cocoon.getComponent(Packages.org.apache.cocoon.ojb.jdo.components.JdoPMF.ROLE);
  -
  -    // Create a empty Bean
  -    var bean = new Packages.org.apache.cocoon.ojb.samples.bean.Employee();
  -    var dao = new Packages.org.apache.cocoon.ojb.samples.EmployeeDAO();
  -
  -	// Fill some initial data to the bean
  -	bean.setId(1);
  -    // Load bean based on the given PrimaryKey
  -    dao.retrieve(bean, factory);
  -
  -    // Load the Bean to the form
  -    form.load(bean);
  -    // Let woody handle the form
  -    form.showForm("jdo/woody/employee-form-display");
  -    // Update the Bean based on user input
  -	form.save(bean);
  -
  -    // Update Bean in Database
  -	dao.update(bean, factory);
  -	// Clean up the operation
  -	cocoon.releaseComponent(factory);
  -
  -    // Send response to the user
  -    cocoon.request.setAttribute("employeeform", form.getWidget());
  -    cocoon.sendPage("jdo/woody/employee-form-success");
  -}
  +cocoon.load("resource://org/apache/cocoon/woody/flow/javascript/woody2.js");
  +
  +function employeeform_jdo(form) {
  +
  +	// Get OJB factory
  +   	var factory = cocoon.getComponent(Packages.org.apache.cocoon.ojb.jdo.components.JdoPMF.ROLE);
  +
  +    // Create a empty Bean
  +    var bean = new Packages.org.apache.cocoon.ojb.samples.bean.Employee();
  +    var dao = new Packages.org.apache.cocoon.ojb.samples.EmployeeDAO();
  +
  +	// Fill some initial data to the bean
  +	bean.setId(1);
  +    // Load bean based on the given PrimaryKey
  +    dao.retrieve(bean, factory);
  +
  +    // Load the Bean to the form
  +    form.load(bean);
  +    // Let woody handle the form
  +    form.showForm("jdo/woody/employee-form-display");
  +    // Update the Bean based on user input
  +	form.save(bean);
  +
  +    // Update Bean in Database
  +	dao.update(bean, factory);
  +	// Clean up the operation
  +	cocoon.releaseComponent(factory);
  +
  +    // Send response to the user
  +    cocoon.request.setAttribute("employeeform", form.getWidget());
  +    cocoon.sendPage("jdo/woody/employee-form-success");
  +}
  
  
  

Mime
View raw message