Previous Topic: Customize Web Pages and Behaviors in Adobe DreamweaverNext Topic: Import WSDL Files to Web Services


Associate Behaviors to HTML Controls and Define an Action Set

Use any of the Adobe Dreamweaver features to design web pages but map only the HTML controls to Actions in CA Gen Studio. Adobe Dreamweaver Behaviors place JavaScript code in web pages so that you can customize a web page or initiate certain tasks.

Each Behavior that you create in Adobe Dreamweaver is defined as an Action. An Action Set can contain any number of Actions associated with a web page. Design and customize web pages using Adobe Dreamweaver before defining an Action Set. Each HTML page is considered as a separate Action Set by the Web Service Access Designer. Each Action includes a number of Action Steps defined to complete its task. Actions can trigger the execution of one or more Action Steps.

Follow these steps:

  1. Select an HTML control on the web page.
  2. Click Window, Behaviors to open the Behaviors panel.
  3. Click the plus symbol drop-down in the Behaviors panel, and click Web Service Access.

    The Web Service Access dialog appears prompting you to enter a Web Service Access action name. If CA Gen Studio is not already open, it opens. The Web Service Access dialog is disabled until CA Gen Studio opens.

    An HTML file must exist before you can add an Action. If the Web Service Access plug-in does not find an HTML file, it prompts you to save one.

  4. Enter a name for the Web Service Action.

    Enter only alphanumeric characters for a Web Service Action; special characters, except underscore, or spaces are not supported.

    CA Gen Studio opens the Web Service Access Designer perspective and the action name that you entered in the Web Service Access dialog is referenced as an Action in the Web Service Access Navigator view. This action is added under <site project>\Action Sets\<HTML file name>.html.

    An editor is also opened for this action.

    A .project file is created when you add an action from Adobe Dreamweaver. This .project file is saved in the same location where the .html file is saved. This .project file is associated with the Web Service Access Designer perspective in CA Gen Studio and it is named Site Project.

    Note: For more information about applying behaviors to controls on a web page, see the Adobe Dreamweaver documentation.

  5. Repeat steps 1 through 4 for each HTML control on the web page to define these actions as an Action Set.

    The Action Set for the current web page is defined. Similarly, define Action Sets for other web pages.