10-1_Caf_and_OpenUI_Development_Help.pdf - webMethods CAF and OpenUI Development Help Version 10.1 October 2017 This document applies to Software AG

10-1_Caf_and_OpenUI_Development_Help.pdf - webMethods CAF...

This preview shows page 1 out of 289 pages.

You've reached the end of your free preview.

Want to read all 289 pages?

Unformatted text preview: webMethods CAF and OpenUI Development Help Version 10.1 October 2017 This document applies to Software AG Designer Version 10.1 and to all subsequent releases. Specifications contained herein are subject to change and these changes will be reported in subsequent release notes or new editions. Copyright © 2007-2017 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. The name Software AG and all Software AG product names are either trademarks or registered trademarks of Software AG and/or Software AG USA Inc. and/or its subsidiaries and/or its affiliates and/or their licensors. Other company and product names mentioned herein may be trademarks of their respective owners. Detailed information on trademarks and patents owned by Software AG and/or its subsidiaries is located at hp://softwareag.com/licenses. Use of this software is subject to adherence to Software AG's licensing conditions and terms. These terms are part of the product documentation, located at hp://softwareag.com/licenses and/or in the root installation directory of the licensed product(s). This software may include portions of third-party products. For third-party copyright notices, license terms, additional rights or restrictions, please refer to "License Texts, Copyright Notices and Disclaimers of Third Party Products". For certain specific third-party license restrictions, please refer to section E of the Legal Notices available under "License Terms and Conditions for Use of Software AG Products / Copyright and Trademark Notices of Software AG Products". These documents are part of the product documentation, located at hp://softwareag.com/licenses and/or in the root installation directory of the licensed product(s). Document ID: CAF-OLH-101-20171017 M Table of Contents Table of Contents About this Guide............................................................................................................................11 Document Conventions............................................................................................................ 11 Online Information.................................................................................................................... 12 CAF and webMethods OpenUI Development Prerequisites and Resources........................... 13 Technologies Required for CAF and webMethods OpenUI Development................................14 Specifying an External Web Browser.......................................................................................14 Composite Application Framework Concepts............................................................................ 15 CAF and webMethods OpenUI Development Requirements...................................................16 About JavaServer Faces.......................................................................................................... 16 About Ajax................................................................................................................................ 17 About Portlet Applications........................................................................................................ 17 About Portlets........................................................................................................................... 18 About Views..............................................................................................................................18 About CAF Controls..................................................................................................................19 About Managed Beans.............................................................................................................19 Setting the Managed Bean Expiration Policy....................................................................20 About CAF File Names and Path Lengths...............................................................................20 Developing CAF Applications...................................................................................................... 23 Setting CAF Development Preferences................................................................................... 24 About CAF Development Preferences.............................................................................. 24 About Component Libraries......................................................................................................26 Removing a Component Library from an Application....................................................... 26 Manually Adding a Component Library to an Application................................................. 26 About Web Application Project Templates............................................................................... 27 Cascading Style Sheets (CSS)................................................................................................ 27 Changing the CSS Values for a Control........................................................................... 28 Applying CSS to a View....................................................................................................29 Importing a View into a VDL File............................................................................................. 29 Working with Page Templates.................................................................................................. 30 Using Content Parameters with Page Templates............................................................. 31 Navigation in Web Applications................................................................................................32 Configuring Application Navigation....................................................................................33 Adding a Home Link to a Web Application....................................................................... 34 Hiding Breadcrumbs on the Home Page.......................................................................... 34 Setting Application Initialization Parameters............................................................................ 35 Setting Environment Variables................................................................................................. 36 Finding the Home Page ID.......................................................................................................37 Managing Text Overflow in Property Lines.............................................................................. 38 Placing Modal Dialog and Popup Panel Controls.................................................................... 41 webMethods CAF and OpenUI Development Help Version 10.1 3 M Table of Contents Importing CAF Projects............................................................................................................ 43 Validation Support for xmlImport Files..................................................................................... 44 Specifying a Target Runtime Server.........................................................................................44 Debugging CAF Applications Remotely................................................................................... 45 Developing webMethods OpenUI Applications.......................................................................... 47 About webMethods OpenUI..................................................................................................... 48 About webMethods OpenUI Shell............................................................................................ 48 About JSF 2.x Facelets Support.............................................................................................. 49 Additional Resources for Developing OpenUI Applications..................................................... 49 Security in OpenUI Applications...............................................................................................50 Security in CAF Applications....................................................................................................... 51 Security Roles in Web and Portlet Applications.......................................................................52 Add a Security Role to a Web Application........................................................................52 Add a Security Role to a Portlet Application.....................................................................53 Mitigating Portlet Security Vulnerabilities................................................................................. 54 Getting Started with Web Application Development..................................................................57 About Web Applications........................................................................................................... 58 Creating a Web Application Project......................................................................................... 58 Adding a View to a Web Application........................................................................................59 Adding a Control to a Web Application View........................................................................... 61 Preparing a Web Application for Localization.......................................................................... 62 Getting Started with Portlet Application Development..............................................................65 About Portlet Application Projects............................................................................................ 66 Creating a Portlet Application Project...................................................................................... 66 Creating a Portlet..................................................................................................................... 67 About Portlet Types.................................................................................................................. 68 About Portlet Modes.................................................................................................................68 Adding a View to a Portlet....................................................................................................... 69 Adding a Control to a Portlet View...........................................................................................71 Finding Information about CAF Controls..................................................................................71 Adding a Portlet Application Project to My webMethods Server.............................................. 72 Importing My webMethods Server Assets into a Portlet Application........................................73 Publishing a Portlet Application to My webMethods Server.....................................................73 Adding a Portlet to a My webMethods Server Page................................................................74 Uninstalling Portlet Applications from My webMethods Server................................................ 75 Troubleshooting Portlet Applications........................................................................................ 75 Repairing a Portlet Application Project.....................................................................................76 Opening the Portlet Application Configuration Editor...............................................................76 Getting Started with webMethods OpenUI Shell Page Development....................................... 79 About webMethods OpenUI Shell Page Templates................................................................. 80 Creating an OpenUI Shell Page Project.................................................................................. 80 Modifying an OpenUI Shell Custom Application Page.............................................................81 webMethods CAF and OpenUI Development Help Version 10.1 4 M Table of Contents Modifying an OpenUI Shell Login Page...................................................................................83 Modifying an OpenUI Shell Maintenance Page....................................................................... 85 Adding an OpenUI Shell Page to an Existing Project..............................................................86 About Creating Custom Templates with webMethods OpenUI................................................ 86 Creating a Custom OpenUI Page Template.............................................................................87 Creating a Custom OpenUI Project Template..........................................................................88 Editing a Custom Page or Project Template............................................................................ 89 Exporting a Custom Page or Project Template........................................................................90 Importing a Custom Page or Project Template in Designer..................................................... 90 Deleting a Custom Page or Project Template..........................................................................90 Default webMethods OpenUI Page Templates........................................................................ 91 Variable Conversion When Applying a Page Template............................................................92 Handling of Existing Files When Applying a Page Template................................................... 93 Working with Facelets...................................................................................................................95 About Facelets in CAF............................................................................................................. 96 Enabling the JSF Facelets Functionality for New Projects and Views..................................... 96 Migrating CAF Projects and .view Files to JSF Facelets Format............................................. 97 Migrating a JSF .view File Project to JSF Facelets Format.............................................. 97 Migrating .view Files to JSF .xhtml Facelets Format.........................................................98 About Migrating Managed Bean Declarations...................................................................99 Working with the CAF Control Tag Library.............................................................................100 Working with Page Navigation in JSF Facelets Applications................................................. 100 Embedding Portal Resources in a Page File......................................................................... 101 Example of Inserting a Form Into a Portlet............................................................................ 101 Java Annotations in CAF and webMethods OpenUI Applications..........................................104 Disabling and Enabling Declaration of Managed Beans by Annotation.......................... 104 Servlet Standard Annotations..........................................................................................105 JSF Standard Managed Bean Annotations.....................................................................107 Bean Validation Standard Annotations............................................................................107 CAF Extended Managed Bean Annotations................................................................... 109 CAF Client-Side Annotations...........................................................................................110 CAF Portlet Annotations..................................................................................................112 Working with Portlet Preferences.............................................................................................. 115 About Portlet Preferences...................................................................................................... 116 Creating a Portlet Preference.................................................................................................116 Modifying a Portlet Preference...............................................................................................117 Specifying a Portlet Preference Validator...............................................................................118 Wiring Portlets with Preferences............................................................................................ 118 Exposing Portlet Preferences in My webMethods Server...................................................... 120 Enabling the Show All Managed Beans Toolbar Button.........................................................120 About Preferences for the Default Portlet Types....................................................................121 Working with Legacy Portlets.................................................................................................... 123 About Legacy Portlets............................................................................................................ 124 webMethods CAF and OpenUI Development Help Version 10.1 5 M Table of Contents Enabling Legacy Portlet Support............................................................................................124 Importing Legacy Portlets.......................................................................................................125 Changing Legacy Portlet Preferences....................................................................................125 Working with CAF Events and Notifications............................................................................ 127 About CAF Events..................................................................................................................128 About the Default My webMethods Server Event Types.................................................128 About My webMethods Server Login Events.................................................................. 129 Opening the CAF Events Editor and Enabling CAF Events...................................................130 Creating a Custom CAF Event...............................................................................................131 Creating an Event Handler.....................................................................................................131 About CAF Event Handler Actions..................................................................................132 Configuring a Simple Event Handler Action....................................................................133 Configuring a Fire Ajax Event Action.............................................................................. 134 Configuring an Invoke Service Action............................................................................. 135 Configuring a Send Notification Action........................................................................... 135 Creating a Notification............................................................................................................ 137 Configuring an RSS Notification......................................................................................138 Creating a Subscription.......................................................................................................... 139 Configuring the Default Subscription View......................................................................140 Configuring Simple Conditions............................................................................................... 141 Modifying a Simple Condition..........................................................................................142 Deleting a Simple Condition............................................................................................143 Rearranging the Order of Simple Conditions.................................................................. 143 Configuring Advanced Condition and Action ...
View Full Document

  • Fall '09
  • World Wide Web, Web server, Web application framework

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture