Hi guys.
I was testing the branch
http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X-dojo1_1. I
enter in the sample:
http://localhost:8888/samples/blocks/forms/do-calculatedfields.flow
I tried to add a row to the repeater and it shows the error:
dojoId is not defined.
I attached to the email the fix for this error.
--
Cheers.
Carlos Chávez.
### Eclipse Workspace Patch 1.0
#P BRANCH_2_1_X-dojo1_1
Index: src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/common.js
===================================================================
--- src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/common.js
(revision 960158)
+++ src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/common.js
(working copy)
@@ -71,7 +71,7 @@
var formId = form.id;
if (dojo && formId) {
// Delegate to the SimpleForm or AjaxForm widget
- dijit.byId(dojoId).submit(name, params);
+ dijit.byId(formId).submit(name, params);
} else {
// Regular submit. There is no *Form widget available
@@ -218,7 +218,7 @@
*/
cocoon.forms.defaults = {
-
+
statusMark: "*",
constraints: { // default constraints for numerical datatypes
"decimal": {pattern:"###0.###", type: "decimal", locale:"en"},
// PlainDecimalConvertor NB. Dojo has no concept of a plain number, hence force
it to show 'en' to get '.' decimal
@@ -226,7 +226,7 @@
"float": {pattern:"###0.###", type: "decimal", locale:"en"},
// PlainFloatConvertor
"integer": {pattern: '#', places: 0, min: -2147483648, max:
2147483647}, // PlainIntegerConvertor
"long": {pattern: '#', places: 0, min: -9223372036854775808,
max: 9223372036854775807},// PlainLongConvertor
- "l10n-currency": {fractional:true}, // FormattingDecimalConverter -
currency variant
+ "l10n-currency": {fractional:true}, // FormattingDecimalConverter -
currency variant
"l10n-integer": {places: 0, min: -2147483648, max: 2147483647}, //
FormattingIntegerConverter
"l10n-long": {places: 0, min:-9223372036854775808, max:
9223372036854775807}, // FormattingLongConverter
"l10n-number": {type: "decimal"}, // FormattingDecimalConverter,
FormattingFloatConverter, FormattingDoubleConverter