Designing and Implementing Composite Applications : webMethods CAF and OpenCAF Development Help : Getting Started with Web Application Development : Adding a View to a Web Application
Adding a View to a Web Application
A VDL file contains controls and bindings to enable the user to interact with the application and the data underlying it. You can drag a control from the Palette view onto the VDL file displayed in the editor. For more information, see Adding a Control to a Web Application View.
For information about file naming conventions, see About CAF File Names and Path Lengths.
Note:  
Creation of a new web application view is subject to the UI Development preference Prefer JSF 2.x xhtml Facelet Templates for New Pages. For more information, see Enabling the JSF Facelets Functionality for New Projects and Views. It is possible to override this preference as described in the following procedure.
To add a view to a web application
1. In the UI Development perspective: File > New > Web Application View.
2. In the JSF Web Application View File wizard, specify the web application project to which you want to add the view by doing one of the following:
*Accept the displayed web application project.
*Select a web application project from the list.
*Type the name of an existing web application project
3. In the File name field, type a name for the VDL file.
Note:  
If you type the file name only, without a file name extension, the view file will be created according to the setting of the Prefer JSF 2.x xhtml Facelet Templates for New Pages preference. That is, either as a .view file or as a .xhtml file. However, if you type the file name with either a .view or .xhtml file name extension, the view file will be created as specified, regardless of the preference setting.
(Optional) Click Advanced to configure a link between the VDL file and a file in your file system.
Note:  
From this point forward, you can click Finish to complete the creation of the VDL file with the default settings, or click Next to change the default configuration.
4. Click Next.
5. On the Web View Options page, select the template to use from the Template list.
(Optional) Clear the Support Application Navigation check box if you have no need for navigation functionality. When selected, this option enables the view to be able to participate in the web application navigation model.
6. Click Next.
7. In Managed Bean, accept the default name, or type a new bean name, and select a scope from the Managed Bean Scope list for the managed bean.
8. Click Next.
9. On the Java Type page, do any or all of the following:
*Click Browse to specify a different package.
*Click Add to select an existing interface for the view.
*Click Generate Comments to automatically add comments while designing the view. Click the here link to access preferences for Java code templates.
10. Click Finish.
The new VDL file opens in the editor and is listed in the WebContent folder of the project.
Copyright © 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback