Defining JWL source for content assist

Content assist helps you insert or finish a tag or function or finish a line of code in the text editor. The placement of the cursor in the source file provides the context for the content assist to offer suggestions for completion.

Creating Faces enabled Web projects.

To define content assist for a Web project:

  1. Right-click your Web project and select

    Properties. The Properties for your project dialog opens.

  2. Click

    Java Build Path from the Properties list.

  3. Click the

    Libraries tab then expand

    Web App Libraries in the JARS and class folders on the build path list.

  4. Expand your library.

  5. Click

    Source attachment then click

    Edit. The Source Attachment Configuration dialog opens.

  6. Click

    External File and select your library's source in the file system. To define content assist for the JSF Widget Library (JWL), select the source files:

    • <install_dir>/plugins/com.ibm.etools.jsf.extended.<ver>/runtime/jsf-ibmsrc.zip

    • <install_dir>/plugins/com.ibm.etools.jsf.client.<ver>/runtime/runtime/odc-jsfsrc.zip
    where <install_dir> is the directory where the shared plugins are installed, and <ver> is the plugin version.

 

Related concepts

What is JavaServer Faces?