Adding Faces Client Components to a Faces JSP page

To use the Faces Client Components, you create a Faces JSP page and select Basic with client side data caching as the model. See Creating JavaServer Pages (JSP) files for details on creating Faces JSP pages. You can add other HTML elements from the HTML Tags drawer or the Faces Components drawer before inserting a Faces Client Components.

  1. In the Web perspective, open your Faces JSP file and expand the Faces Client Components drawer of the palette. This drawer is only available if the current page is a Faces JSP page with client-side data caching.

  2. Select the Faces Client Component that you want to add, and drag it to a location on the JSP page. You can move or resize the component after you place it on the page.

  3. Configure the attributes you want to set in the Properties view. Each component has specific attributes that must be set. Refer to Properties for Faces Client Components for an overview of available properties.

  4. Use the Value to field in the Properties view to bind the components to Faces Client data. Faces Client Components can only bind to Client data.

  5. Optional: Continue to add other HTML elements from the HTML tags drawer or Faces Client Components from the Faces Client Component drawer to the page.

  6. Save and run the JSP page when you have finished.

    Note: A Faces JSP page created using the Basic model cannot be converted to a Faces JSP page with Basic with client side data caching.