Designer 10.7 | webMethods CAF and OpenUI Development | E-form Support in Portlet Applications | Adding an E-form Template from a File System or Web Server
 
Adding an E-form Template from a File System or Web Server
*To add an e-form template from a file system or web server
1. Create a new Composite Application Framework generic portlet in your portlet project, or select an existing portlet view in a project configured for e-form support. For more information, see Configuring a CAF Portlet Application Project for E-form Support.
2. Open the generic portlet view in the editor.
3. From the Palette view Data > E-form folder, drag the E-form File Template Provider and drop it onto the portlet view page bean in the Bindings view.
4. On the Choose Data Target wizard, click Add new shared managed bean and reference.
5. Click Next to continue defining the template provider values, or click Finish to use the default values.
6. In the Bindings view, expand the file e-form template provider and click the URL entry.
7. In the Data Binding tab of the Properties view, and enter a URL value in the Value field that defines the e-form template’s URL, local file path, or web application relative URL. This value must end with the file name extension that identifies the type of the template such as .xsn or .xdp:
*For URL-referenced templates, this URL must be accessible at run time by the server running the portlet application. The URL must allow anonymous access or be protected with basic authentication. In the case of basic authentication, the user name and password must be specified on the URL in a form of:
http://user:password@server/path
Any URL accessible resource can be specified here.
*For templates referenced from a file system, use file:// protocol. The file path must be accessible at run time by the server that runs the portlet application.
*For a web application relative URL, start the URL with a slash (/) and place a copy of the template under the portlet applications WebContent folder, for example, for a copy stored under WebContent/eforms/myform.xsn use an URL similar to the following: /eforms/myform.xsn.
Note:
If you have not already created an e-form content provided for the view, do so now, as described in Adding an IS Document Type for E-form Support.
8. In the Bindings view, expand the e-form content provider and click Template Provider.
9. In the Data Binding tab in the Properties view, click the expression binding button.
10. On the Expression Binding dialog box, click the template provider.
11. Click OK.
12. (Optional) In the e-form content provider, click the Download File Name entry and define a binding for the e-form download file name.
13. Save your changes.
Related Topics