antonio 2003/10/28 10:38:15
Modified: src/blocks/woody/samples/flow binding_example.js
Log:
Adding 2 register to the bean demo
Revision Changes Path
1.11 +11 -0
cocoon-2.1/src/blocks/woody/samples/flow/binding_example.js
Index: binding_example.js
===================================================================
RCS file:
/home/cvs//cocoon-2.1/src/blocks/woody/samples/flow/binding_example.js,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- binding_example.js 25 Sep 2003 17:37:30 -0000 1.10
+++ binding_example.js 28 Oct 2003 18:38:15 -0000 1.11
@@ -95,6 +95,17 @@
contact.setId("1");
contact.setFirstName("Herman");
bean.addContact(contact);
+
+ var contact1 = new Packages.org.apache.cocoon.woody.samples.Contact();
+ // Add another contact
+ contact1.setId("2");
+ contact1.setFirstName("Bruno");
+ bean.addContact(contact1);
+ // Add another contact
+ var contact2 = new Packages.org.apache.cocoon.woody.samples.Contact();
+ contact2.setId("3");
+ contact2.setFirstName("Sylvain");
+ bean.addContact(contact2);
form.load(bean);
form.showForm("form2-display-pipeline");