Designer 10.7 | webMethods CAF and OpenUI Development | Working with CAF Events and Notifications | Creating a Custom CAF Event
 
Creating a Custom CAF Event
A custom CAF event can describe any arbitrary asynchronous or synchronous event that is supported by a portlet application.
*To create a custom CAF event
1. In the Navigation view, open a project.
2. Expand the WebContent node, and expand the WEB-INF node, and double-click the events.xml file.
3. In the CAF Events Editor, click the Events tab, then click Add.
4. In the Add Custom Event Type wizard, type a name for the event in the Name text box.
5. (Optional) In the Description text box, type an optional description.
6. Click Finish to create the custom event with default settings, or click Next to modify the default settings.
7. On the Managed Bean page, accept the default scope or select a scope for the event from the Managed Bean Scope list box. Click Finish to create the custom event, or click Next to continue modifying settings.
8. On the Java Type page, accept the default package name, type a name in the Package text box, or click Browse to select a folder from the Package Selection dialog box.
9. (Optional) In the Interfaces box, click Add, and then select the interface. Type filter text in the Choose Interfaces field to help locate the interface you want.
10. (Optional) Click Generate Comments.
11. Click Finish. The new custom event appears in the Events Type list on the Events tab.
12. Save your changes.
Note:
You will also find the event type in the Event Variables node in the Bindings view (you may have to click the Events tab to see the variable in the Bindings view). The event type contains several default properties, and you can add your own custom properties as required.
Related Topics