Michigan web site - Organizing beans with views When you create a

Organizing beans with views When you create a new EJB module, the default view appears in the EJB designer. You can rename the default view or create a new view, if you choose. To rename the default view, 1 Right-click the EJB designer pane and choose Views|Rename View or click the View button on the toolbar and choose Rename View. 2 Type in the new name you want to use for the view in the dialog box that appears and click OK or press Enter. The new name for the view appears on the view tab at the bottom of the EJB designer pane. To create a new view, 1 Right-click the EJB designer pane and choose Views|New View or click the Views button on the toolbar and choose New View. 2 Type in the name you want to use for the new view in the dialog box that appears and click OK or press Enter. A new tab appears with the name you specified near the bottom of the EJB designer pane. To make the new view you added the current view, click its tab. To move one or more EJBs to another view, 1 Select one or more EJBs on a view. (Click an EJB to select it. To select multiple EJBs, Ctrl+Click each EJB or click on the EJB designer and drag over each EJB you want.) 2 Right-click one of the selected EJBs. 3 Choose Views|Move Selection or click the Views button on the toolbar and choose Move Selection. 4 Select the view you want to move the bean(s) to from the drop-down list. To copy one or more EJBs to another view, 1 Select one or more EJBs on a view. (Click an EJB to select it. To select multiple EJBs, Ctrl+Click each EJB or click on the EJB designer and drag over each EJB you want.) 2 Right-click one of the selected EJBs. 3 Choose Views|Copy Selection or click the Views button on the toolbar and choose Copy Selection. 4 Select the view you want to move the bean(s) to from the drop-down list. To remove one or more EJBs from a view, 1 Select one or more EJBs on a view. 2 Right-click one of the selected EJBs. 3 Choose Views|Remove Selection. When you use the Views|Remove Selection command, the EJB representations are removed from the current view; they aren t permanently removed from the EJB module or project. If the EJBs you selected to remove don t exist on any other view, they will reappear on the default view after you have removed them. If you want to delete one or more EJBs and the corresponding source code altogether, see Removing beans on page 32. Chapter 4: Working with the EJB designer 31
We are dedicated to offering you a reliable, fast, and scalable unlimited web hosting home for your business, and personal web sites.Go and see our shared web hosting services.

Leave a Reply