Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 808

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
All skins support the same set of CFML tags and tag types, and do a relatively simple transformation from XML to
HTML. For example, they do not support horizontal or vertical rules.
The ColdFusion skin XSL files have several features that you can use when designing and developing your own
transformation. They do the following:
• Provide an overall structure and initial templates for implementing custom transformations.
• Show how you can handle the various elements in the ColdFusion-generated XML.
• Use a structure of included files that can form a template for your XSLT code.
• The base XSL files include a separate file, _cfformvalidation.xsl, with complete code for generating the hidden fields
required for ColdFusion onServer validation and the JavaScript for performing ColdFusion onSubmit and onBlur
validation. You can include this file without modification to do ColdFusion validation in your XSLT template, or
you can change it to add other forms of validation or to change the validation rules.
• The base XSL files include files, that implement several form groups, laying out the child tags and applying a label
to the group. These files can serve as templates for implementing additional form group types or you can expand
them to provide more sophisticated horizontal and vertical form groups.
• You can add custom
cfformgroup
Extending basic.xsl cfformgroup and cfformitem support
The following procedure describes the steps for extending the basic.xsl file to support additional
types. You can use similar procedures to extend other xsl files.
cfformitem
Add support for cfformgroup and cfformitem types to the basic.xsl
Create an XSL file.
1
2
For each
attribute that you want to support, create an
type
attribute of the element must have the following format:
match="xf:group[@appearance='type_attribute_name']"
For example, to add a panel
<xsl:template match="xf:group[@appearance='panel']">
Deploy your XSL file or files to the cf_webroot\\x
3
Add an include statement to the basic.xsl file at the end of the Supported groups section; for example, if you create
4
a my_group_panel.xsl file to handle a panel
<!-- include groups that will be supported for this skin-->
<xsl:include href="_group_vertical_table.xsl" />
<xsl:include href="_group_horizontal_table.xsl" />
<xsl:include href="_group_fieldset.xsl"/>
<xsl:include href="my_group_panel.xsl" />
Styling forms by extending the ColdFusion CSS files
Each ColdFusion skinnable form XSL file uses a corresponding CSS style sheet to specify the form style and layout
characteristics. The following CSS files are located in the cf_webroot\CFIDE\scripts\css directory:
and
cfformitemtype
type, add an element with a start tag such as the following:
cfformgroup
cfformgroup
Last updated 1/20/2012
attributes by including additional XSL files.
element to do the formatting. The
xsl:template
type, your basic.xsl file would include the following lines:
803
and
cfformgroup
match

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents