Updating Faces runtime resources for Web projects

If newer JavaServer Faces resources or project configuration data are available, you can update them using the Update resources dialog.

When working with existing Web projects, newer JavaServer Faces resources or project configuration data may become available. The process to update projects to the latest Faces resources includes both component libraries provided by IBM® as well as any third party JSF component libraries that have been configured with Faces Library Definitions.

Scanning for updates happens automatically in the background after the workbench starts or projects are imported. An Error marker will be added to the Problems view for any project that contains an older version of a JSF tag library. Updating resources is not mandatory but it is recommended that you open the Update Resources dialog and decide whether or not to keep the project in its current state.

To open the Update Resources dialog:

  1. In the Problems view, right-click the error and select

    Quick Fix. The Quick Fix dialog opens.

  2. In the Select a fix list, select

    Open resource update dialog. Then click Finish. The Update resources dialog opens.

    The Update Resources dialog displays the list of JSF tag libraries that have newer resources available. The updated resources may be JAR files, other files in the Web project, or changes to existing project configuration files.

  3. Select one of the following three options for updating project resources from the dialog:

    • Click

      Yes to complete the update automatically. If a project is still undergoing active development it is recommended that the newer resources be used because in some cases the product may generate tags or attributes that will not be available at runtime until resources are updated.

    • Click

      Later to defer the update decision. This will clear the Error marker for the current workbench session but the project will be scanned again later. To get back to the Resource Update dialog after selecting Later, close and reopen the Web project or restart the workbench to cause the background scanning to reoccur. You may need to rebuild your workspace to initiate the scan.

    • Click

      Never to keep your runtime resources at their current, older levels. If a project is already completed and functional you can choose to leave Faces resources at their current versions. The project will not be scanned again until subsequent resource versions become available in the product.