Sun Java Studio Creator 2 – Online Help
 

Binding a Table Component to an Enterprise JavaBean Method

See Also

After you add the Enterprise JavaBean component (enterprise bean) to the IDE and to the page, you can call an enterprise bean method by binding it to a Table component. You can use this technique to view the results of the method, but you cannot update it. You do not need to write any Java code.

To bind a Table component to a method:

  1. If the enterprise bean is not part of the IDE, add the enterprise bean to the IDE.
     
  2. Drag the Table component to the Visual Designer.
     
  3. Drag and drop the method onto the table.
     
    For example, consider the following scenario. You want to use the getPersons method of the TravelEJB to display names in a table.
    1. If necessary, add the TravelEJB shipped with the IDE.
       
    2. Drag the Basic > Table component to the page.
       
    3. Drag the getPersons method onto the table.
       

     
See Also
About Enteprise JavaBean Components
Adding a Set of Enterprise JavaBean Components to the IDE
About the Projects and Files Windows
About the Java Editor
 
 
 
Legal Notices. Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Close