You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by jo...@apache.org on 2004/03/24 02:32:45 UTC
cvs commit: cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/binding JavaScriptJXPathBinding.java JavaScriptJXPathBindingBuilder.java
joerg 2004/03/23 17:32:45
Modified: src/blocks/forms/java/org/apache/cocoon/forms/binding
JavaScriptJXPathBinding.java
JavaScriptJXPathBindingBuilder.java
Log:
replace default woody binding namespace prefix (wb) with new Cocoon Forms' one (fb)
Revision Changes Path
1.2 +2 -2 cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/binding/JavaScriptJXPathBinding.java
Index: JavaScriptJXPathBinding.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/binding/JavaScriptJXPathBinding.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- JavaScriptJXPathBinding.java 9 Mar 2004 10:33:55 -0000 1.1
+++ JavaScriptJXPathBinding.java 24 Mar 2004 01:32:45 -0000 1.2
@@ -111,7 +111,7 @@
}
} else {
if (this.getLogger().isInfoEnabled()) {
- this.getLogger().info("[Javascript Binding] - saveForm: No javascript code avaliable. <wb:javascript id=" + this.getId() + ">");
+ this.getLogger().info("[Javascript Binding] - saveForm: No code avaliable on the javascript binding with id \"" + this.getId() + "\"");
}
}
}
1.2 +10 -10 cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/binding/JavaScriptJXPathBindingBuilder.java
Index: JavaScriptJXPathBindingBuilder.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/binding/JavaScriptJXPathBindingBuilder.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- JavaScriptJXPathBindingBuilder.java 9 Mar 2004 10:33:55 -0000 1.1
+++ JavaScriptJXPathBindingBuilder.java 24 Mar 2004 01:32:45 -0000 1.2
@@ -26,20 +26,20 @@
* <p>
* The syntax for this binding is as follows :
* <pre>
- * <wb:javascript id="foo" path="@foo">
- * <wb:load-form>
+ * <fb:javascript id="foo" path="@foo">
+ * <fb:load-form>
* var appValue = jxpathPointer.getValue();
* var formValue = doLoadConversion(appValue);
* widget.setValue(formValue);
- * </wb:load-form>
- * <wb:save-form>
+ * </fb:load-form>
+ * <fb:save-form>
* var formValue = widget.getValue();
* var appValue = doSaveConversion(formValue);
* jxpathPointer.setValue(appValue);
- * </wb:save-form>
- * </wb:javascript>
+ * </fb:save-form>
+ * </fb:javascript>
* </pre>
- * This example is rather trivial and could be replaced by a simple <wb:value>, but
+ * This example is rather trivial and could be replaced by a simple <fb:value>, but
* it shows the available variables in the script:
* <ul>
* <li><code>widget</code>: the widget identified by the "id" attribute,
@@ -47,8 +47,8 @@
* <li><code>jxpathContext</code> (not shown): the JXPath context corresponding to the "path" attribute
* </ul>
* <b>Notes:</b><ul>
- * <li>The <wb:save-form> snippet should be ommitted if the "direction" attribute is set to "load".</li>
- * <li>The <wb:load-form> snippet should be ommitted if the "direction" attribute is set to "save".</li>
+ * <li>The <fb:save-form> snippet should be ommitted if the "direction" attribute is set to "load".</li>
+ * <li>The <fb:load-form> snippet should be ommitted if the "direction" attribute is set to "save".</li>
* </ul>
*
* @author <a href="http://www.apache.org/~sylvain/">Sylvain Wallez</a>