Binding EJB session beans to a JSF component

To work with dynamic data on your Web page, you need to define a data source, such as an EJB session bean.

  1. Create a JSF enabled dynamic Web project.

  2. Create a JSF page.

To create a new EJB session bean in a Faces JSP file:

  1. In the Data and Services drawer of the Palette, drag

    EJB Session bean onto the Web page. The Add Session Bean wizard opens.

  2. Click

    Add to create and add an EJB session bean.

  3. Follow the steps in the wizard to create the EJB session bean and add it to your page.