Return-Path:
[Boolean] isInfoEnabled()
- Returns whether information message logging is enabled + Returns whether information message logging is enabled.
@@ -710,7 +710,11 @@Property [String] id
Returns the unique string identifier of this continuation.
+Returns the unique string identifier of this Web Continuation.
+Property [Continuation] continuation
Returns the JavaScript continuation associated with this Web Continuation.
1.10 +1 -0 cocoon-2.1/src/documentation/xdocs/userdocs/flow/book.xml
Index: book.xml
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/documentation/xdocs/userdocs/flow/book.xml,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- book.xml 13 Jul 2003 19:53:14 -0000 1.9
+++ book.xml 26 Jul 2003 19:29:08 -0000 1.10
@@ -15,6 +15,7 @@
The JXForms tags are defined in the following namespace:
JXForms supports the following controls:
-The JXForms <form>
element represents the overall form. It also corresponds to a validation phase in your validation rules. It has no direct counterpart in W3C XForms.
The JXForms <form>
element represents one page of the overall form. It also corresponds to a validation phase in your validation rules. It has no direct counterpart in W3C XForms.
Example:
The JXForms <error>
element has no counterpart in W3C XForms. If present under the form
element it serves as a placeholder for validation error messages associated with the entire form.
+ The id
attribute must match the id
Sitemap parameter passed to the jxform function in <map:call>. The view
attribute must match the id
of a <phase>
element in your Schematron validation rules. For HTML forms the action
attribute specifies the relative URI to which the form will be submitted.
JXForms <value>
element is based on the W3C XForms value element. This element provides a storage value to be used when an item is selected.
Example:
Example:
The JXForms <violation>
element has no counterpart in W3C XForms. The JXForms generator inserts a violation
element for each validation error that occurs into the corresponding <violations>
element.
The JXForms <violation>
element has no counterpart in W3C XForms. The JXForms generator inserts a violation
element for each validation error that occurs into the corresponding <violations>
element of a form control.
Example:
Assuming you had a Schematron validation rule such as:
JXForms <select>
is based on the W3C XForms select element.
class
JXForms <select>
is based on the W3C XForms select1 element. It supports the following attributes:
JXForms <select1>
is based on the W3C XForms select1 element.
+This form control allows the user to make a single selection from multiple choices. It supports the following attributes:
ref
appearance
class
Example:
+ +-
- The entry point from the Cocoon Sitemap to your form is the jxForm
function:
+ The entry point from the Cocoon Sitemap to your form is the jxform
function:
- Function jxForm([String] functionName, [String] id, [String] validationSchema, [String] validationDocument)
+ Function jxform([String] functionName, [String] id, [String] validationSchema, [String] validationDocument)
This function creates a new JXForm
object with the provided id
, validationSchema
, and validationDocument
, and then invokes the function identified by functionName
to process the form, passing the newly created JXForm
object as the argument to the function. Currently, the only supported validation schema is Schematron which is identified by the namespace http://www.ascc.net/xml/schematron
. The validationDocument
if provided, should be a url that can be resolved by the Cocoon source resolver.
@@ -458,10 +478,10 @@
src="org.apache.cocoon.generation.JXFormsGenerator"/>
</map:generators>
-
To invoke your form use the Sitemap's <map:call> operation to invoke the jxForm
Flowscript function, for example like this:
To invoke your form use the Sitemap's <map:call> operation to invoke the jxform
Flowscript function, for example like this:
+ The required function
parameter specifies the name of a JavaScript function that will provide the page flow for your form. The required id
attribute must match the value of the id
attribute of the form element of your form. The optional validator-schema-namespace
and validator-schema
parameters identify the the schema namespace and instance document of your validation rules, if provided. Currently, only the Schematron assertion language is supported.
cocoon.sendPage
and
- cocoon.sendPageAndWait
. In addition,
- the current WebContinuation
+ cocoon.sendPageAndWait
. In addition, the current WebContinuation
is also available as a variable named $continuation
. You would typically access
its id
: