You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by co...@apache.org on 2004/02/19 01:22:10 UTC
cvs commit: cocoon-2.1/src/blocks/woody/samples/v2 carselector_success.jx sitemap.xmap woody_flow_example.js carselector_success.xsp
coliver 2004/02/18 16:22:10
Modified: src/blocks/woody/samples/v2 sitemap.xmap
woody_flow_example.js
Added: src/blocks/woody/samples/v2 carselector_success.jx
Removed: src/blocks/woody/samples/v2 carselector_success.xsp
Log:
blast xsp
Revision Changes Path
1.2 +3 -3 cocoon-2.1/src/blocks/woody/samples/v2/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/v2/sitemap.xmap,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sitemap.xmap 28 Jan 2004 18:32:32 -0000 1.1
+++ sitemap.xmap 19 Feb 2004 00:22:09 -0000 1.2
@@ -99,10 +99,10 @@
<map:serialize/>
</map:match>
- <map:match pattern="*-success-pipeline.xsp">
- <map:generate type="serverpages" src="{1}_success.xsp"/>
+ <map:match pattern="carselector-success-pipeline">
+ <map:generate type="jx" src="carselector_success.jx"/>
<map:call resource="simple-page2html">
- <map:parameter name="file" value="{1}_template.xsp"/>
+ <map:parameter name="file" value="carselector_success.jx"/>
</map:call>
<map:serialize/>
</map:match>
1.7 +4 -4 cocoon-2.1/src/blocks/woody/samples/v2/woody_flow_example.js
Index: woody_flow_example.js
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/v2/woody_flow_example.js,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- woody_flow_example.js 18 Feb 2004 17:37:33 -0000 1.6
+++ woody_flow_example.js 19 Feb 2004 00:22:09 -0000 1.7
@@ -102,7 +102,7 @@
wid.birthdate.value = new java.util.Date();
//
// You can perform actions when a new row is added to a repeater (like
- // setting the row's 'onChange' properties or initializing its values
+ // setting the row's 'onChange' properties or initializing its values)
// by assigning a function to the repeater's 'onAddRow' property:
//
wid.contacts.onAddRow = function(row) {
@@ -242,13 +242,13 @@
if (oldValue == null) {
wid.message.value = "A " + wid.make.value + " " + newValue + " is a very good choice.";
} else {
- wid.message.value = "So you prefer a " + " ?";
+ wid.message.value = "So you prefer a " + wid.make.value + " " + newValue + " ?";
}
}
+ wid.model.value = null;
}
form.showForm("carselector-display-pipeline");
- cocoon.request.setAttribute("carselectorform", form.getWidget().unwrap());
- cocoon.sendPage("carselector-success-pipeline.xsp");
+ cocoon.sendPage("carselector-success-pipeline", wid);
}
function determineLocale() {
1.1 cocoon-2.1/src/blocks/woody/samples/v2/carselector_success.jx
Index: carselector_success.jx
===================================================================
<?xml version="1.0"?>
<page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
<title>Car selector result</title>
<content>
You selected: maker: ${make.value},
type: ${type.value},
model: ${model.value}
</content>
</page>