Components Panel Files - Adobe 38040334 - Dreamweaver CS3 User Manual

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Components panel files

The Configuration/Components folder has a subfolder for each implemented server model. Component files are
stored in the Configuration/Components/server-model/ComponentType folder. You can add other server models and
supporting server extensions (for more information, see "Server models" on page 319 and "Server behaviors" on
page 243).
To create a custom component that can work in the Components panel:
Create an HTML file that identifies the locations of supporting JavaScript and image files.
1
Write the JavaScript to enable the component.
2
3
Create or identify existing GIF image files to represent the component in the Components panel.
If you want the component type to appear in a tree control view, you also need to create the associated optional files
and populate the tree control.
You can set a component type to work at the level of an individual web page, to a set of web pages, or to an entire site.
Your JavaScript code must include the logic for component persistence—for saving itself between sessions and
reloading at the start of a new session.
The following example shows a data entry in the file JavaBeansList.xml (to be saved in the multiuser Configuration
folder) that defines the component class and its location:
<javabeans>
<javabean classname="TestCollection.MusicCollection"
classlocation="d:\music\music.jar"></javabean>
</javabeans>
JavaBeans should contain the logic for saving themselves in the multiuser Configuration folder, so the next time the
user launches an application, the component loads itself again from the saved data file.
Adding a service component
To add a new lightweight directory access protocol (LDAP) service using Dreamweaver MX:
1
Using existing component type files as a model (such as the files in the application folder
Configuration/Components/Common/WebServices), create all the required files, plus the desired optional files, to
display the new component type in the Dreamweaver Components panel, as shown in the following table:
Filename
Description
*.htm
The extension file that identifies other supporting JavaScript and
GIF files.
*.js
The extension file that implements the Component API callback.
Extending Dreamweaver
Required/Optional
Required
Required
DREAMWEAVER CS3
308

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents