Whatever message this page gives is out now! Go check it out!
Prefix | URL | Used for |
html | http://www.w3.org/1999/xhtml | Form tag information, including action, height, width, and name. XHTML compliant. |
xf | http://www.w3.org/2002/xforms | XForms model (including initial field values) and XForms elements that correspond to cfform tags. |
ev | http://www.w3.org/2001/xml-events | System events. Used for the cfinput type="reset". |
cf | All ColdFusion extensions, including passthrough of attributes that do not correspond to XForms elements or attributes. |
1 form tag |
<xf:instance> |
<xf:submission action="/_MyStuff/phase1/forms/XForms/FrameExamples/Figure1.cfm" |
Attribute | Description |
id | CFML tag name attribute value |
nodeset | XPath expression with the path in the XML to the instance element for the control |
required | CFML tag required attribute value |
Element | Description |
cf:attribute name="type" | Control type. One of the following: CHECKBOX, FILE, IMAGE, PASSWORD, RADIO, SELECT, SUBMIT TEXT, CFSLIDER.The TEXT type is used for cfinput type="text" and cftextinput. |
cf:attribute name="onerror" | JavaScript function specified by the control's onError attribute, if any. |
cfargument name="maxlength" | Value of the control's maxlength attribute, if any. |
cf:validate type="valiadationtype"__ | Data validation information. Has one attribute, type, the validation type, and one or more cf:argument and cf:trigger children. ColdFusion generates a cf:validate element for each of the following:
|
cf:argument (in the body of a cf:validate element) | Data validation specification. Has one attribute, name, and body text. Each cf:validate element can have multiple cf:argument children, corresponding to the validation-related CFML tag attribute values, such as maximum length, and maximum and minimum range values. The element body contains the CFML attribute value. Valid name values are as follows. Unless specified otherwise, the name is identical to the corresponding CFML tag attribute name.
|
cf:trigger (in the body of a cf:validate element) | When to do the validation; specifies a form element validateAt attribute value.Has one attribute, event, which can be one of the following:
|
<xf:bind id="firstname" |
CFML tag | XML tag |
cfinput type="text" | xf:input |
cfinput type="password" | xf:secret |
cfinput type="hidden" | None: instance data only |
cfinput type="file" | xf:upload |
cfinput type="radio" | xf:select1 |
cfinput type="checkbox" | xf:select |
cfinput type="button" | xf:trigger |
cfinput type="image" | xf:submit |
cfinput type="reset" | xf:submit |
cfinput type="submit" | xf:submit |
cfselect multiple="false" | xf:select1 |
cfselect multiple="true" | xf:select |
cftextarea | xf:textarea |
cfslider | xf:range |
cfgrid | cf:grid |
cftree | cf:tree |
cfformitem type="text" | xf:output |
cfformitem type="html" | xf:output |
cfformitem type="*" (all but text, html) | xf:group appearance="*" |
cfformgroup type="*" | xf:group appearance="*" |
<xf:tagname bind="bindid" id="bindid"> |
Part | Description |
tagname | The xf or cf namespace element name, as identified in the table in CFML to XML tag mapping. |
bindid | ID attribute of the model xf:bind element for this control. Specified by the control's CFML tag name attribute. |
label | Control label text. Specified by one of the following:
|
controltype | Type of control. One of the following:
|
attribname | Name of a CFML tag attribute. There is a cf:attribute tag for each attribute specified in the CFML code that does not otherwise have an entry in the XML. |
attribvalue | Value of a CFML tag attribute. |
<cfformgroup type="horizontal" label="Accept?"> |
<xf:group appearance="horizontal"> |
<cf:grid bind="gridname" name="gridname" format="xml" id="gridname> |
<cfgrid name="mygrid" Format="xml" selectmode="Edit" width="350 "> |
<cf:grid bind="mygrid" format="XML" id="mygrid" name="mygrid"> |
cf:tree format="XML" id="treename> |
<cfform name="form2" Format="XML" > |
<cf:tree format="xml" id="tree1"> |
<cfformitem name="text1" type="text" style="color:green"> |
<xf:output><![CDATA[Please tell us a little about yourself and your |
<xf:group appearance="horizontal"> |