Designer 10.15 | webMethods BPM Task Development Help | Working with Task Portlets | Adding a New View to an Existing Task Portlet
 
Adding a New View to an Existing Task Portlet
 
Accessing the New Portlet View Wizard
About the Portlet View Templates
After you create a task, you may determine that one or more additional views are needed in a portlet. For example, you may want to add a help view containing instructions for the task user.
Note:
When you add a new view, it is created as a JSF 1.x-based .view file, even if you have created or migrated the project as a JSF 2.x task application. You can migrate these .view files to .xhtml files with JSF 2.x support. For more information, see Migrating Task Projects and .view Files to JSF 2.x Format.
*To add a new view to a task portlet
1. Open the Portlet View wizard as described in Accessing the New Portlet View Wizard.
2. If you started the Portlet View wizard by right-clicking an existing portlet in the Tasks or User Interfaces folder of the Solutions view and clicking New Portlet View, the parent folder will be pre-selected and you can proceed to Step 3. Otherwise, do the following:
a. On the JSF Portlet View File page, expand the project that contains the portlet you want to work with.
b. Expand the WebContent folder and click the folder for the portlet you want to add a view to. For example, for a portlet named "MyTaskView," the folder name will also be named MyTaskView
3. Type a unique file name for the new view in the File name box. The file name must end with the extension '.view'. For example, view_name.view.
4. Click Next.
5. Specify the following:
Value
Description
For Portlet
Select a task portlet from the drop-down list.
For Portlet Mode
Click the portlet mode you want to apply. The value specified here defines the basic functionality of the portlet. Click None if this view is not a starting view for a corresponding portlet mode, or click View, Edit, or Help.
MIME Type
Enables you to specify the MIME type for View, Edit, and Help views.
Template
Enables you to select from a list of view templates:
*Empty
*Form
*Search Bar
*Task Notification
By selecting one of these, you populate the view with a predefined layout and set of controls based on the template selected. If you want to create your own layout and controls, select Empty. For more information about the available templates, see About the Portlet View Templates.
6. Click Next.
7. On the Managed Bean page, accept the default values or type a Managed Bean Name and click a different Managed Bean Scope. Click Next.
8. On the Java Type page, accept the default values or specify a different package and name. If you want to add interfaces to the view, click Add.
9. Click Finish.
The view is added to the specified task portlet and is opened in the portlet view editor. You can preview the new portlet view as you make changes to it; for more information, see:
* Previewing a Task Portlet View in the Task Editor
* Running a Task Portlet View
Related Topics