webMethods and Intelligent Business Operations 10.2 | Designing and Implementing Composite Applications | webMethods CAF and OpenCAF Development Help | Using Attachments Providers | Adding an Attachments Provider Property
 
Adding an Attachments Provider Property
Creates a simple property for the attachments provider. You can use this procedure with any of the available attachments providers. When using the Portal Container Attachments Provider, you must also create a binding expression to the container ID for the attachment storage. For more information, see Binding a Managed Bean Property to Another Bean.
For information about the available attachments providers, see About Attachments Providers. If you want to create a shared managed and reference to the attachments provider, see Adding a Shared Managed Bean and Attachments Provider Reference.
* To specify a local temporary attachments provider
1. In a Composite Application Framework portlet project, drag the view to modify to the design canvas.
2. (Optional) In the Palette view, expand CAF Html > Control > Command, and then drag a Form control to the view in the design canvas.
If the view already contains a Form control, you can skip this step.
3. In the Palette view, expand CAF Html > Control > Panel, and then drag an Attachments List control to the Form control in the design canvas.
4. In the Palette view, expand Data > Attachments, and then drag a Local Temporary Attachments Provider to the Attachments List.
5. In Choose Data Target, click Add new simple property to Localtemporaryattachment/default, and then click Next.
6. (Optional) In Add New Property, click Property is writable (setter will be generated), and then click Finish.
Composite Application Framework adds the attachments provider property to the view Managed Bean.

Copyright © 2018 | 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.
Innovation Release