Lesson 1: Create a Java managed bean

Create a Java managed bean based on a Java class.

StepsCreating a Java managed bean

  1. In the Web Application Development perspective, click the Data Bindings view at the bottom of the perspective window to display it.

  2. Right-click session and select New from the context menu to open the Create a Managed Bean wizard.

  3. In the Create a Managed Bean wizard, select Java Managed Bean and click Next.

  4. In the Faces-Config File page, accept the default settings and click Next.

  5. In the Java Class Selection page, select Create a new Java class and click Next.

  6. In the Java Class page, define the Java class:

    Accept the remaining default values and click Next. Sybase WorkSpace displays the Managed Bean Configuration page.

  7. In the Managed Bean Configuration page, click Add.

    The Create Property dialog box displays.

  8. Enter the property information for the login ID:

    The Value type field displays value. Keep the rest of the defaults and click OK.

  9. Click Add again to enter the property information for the password.

    The Value type field displays value. Keep the rest of the defaults and click OK.

  10. In the New Managed Bean wizard, click Next.

  11. Review the Summary page.

  12. Click Finish to create the Java managed bean.