Designer 10.7 | webMethods CAF and OpenUI Development | Using Attachments Providers | Adding a Shared Managed Bean and Attachments Provider Reference
 
Adding a Shared Managed Bean and Attachments Provider Reference
This procedure creates an attachments provider shared managed bean and reference in an Attachments List Panel control. For more information about the Attachments List Panel control, see webMethods CAF Tag Library Reference.
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 simple property instead, see Adding an Attachments Provider Property.
*To specify a shared managed bean and attachments provider reference
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 shared managed bean and reference to Localtemporaryattachments/default, and then click Next.
6. (Optional) In Managed Bean, use the default managed bean name or in the Managed Bean Name field type a new name for the bean.
7. (Optional) Use the default scope or select a scope from the Managed Bean Scope list, and then click
8. In Java Type, click Next.
9. (Optional) In Add Managed Bean Reference Property to Other Managed Beans, select a managed bean or page bean.
10. (Optional) Click Property is writable (setter will be generated), and then click Finish.