The first section of the following procedure describes how to add dependency between the web and ejb development components, while the second section shows how to create the managed bean ProjectMB and the JSPs and their implementation.
Open the Development Infrastracture perspective by choosing
.Under Local Development/ My Components select app_ejb.
Under Component Properties select Public Parts.
Open the context menu of client and select Manage Entities.
Select the following package com.sap.nwce.ra.sedm.ejb.entity and choose Finish.
Select the app_web and under Component Properties, select Dependencies, and choose Add.
Select the app_ejb , then client public part and choose Finish.
Open the Java EE perspective by choosing
.Under app_web/WebContent/WEB-INF select faces-config.xml.
From the context menu select Open with —>Faces Config Editor.
Select the ManagedBean tab page, then session and choose Add.
Select the Create a new Java class radio button and choose Next.
Enter the class name ProjectMB and the package name com.sap.nwce.ra.edm.managedbean and choose Next, then Finish.
From the context menu of Web Content, under app_web , select
.Using step 7 create the following empty JSP files:
default (used as a frameset)
menu
listProjects
listEmployees
editProject
editEmployee
setProjectEmployees
Create the navigation rules between JSPs. To do this, from the context menu of the faces-config.xml , select
.Open the Navigation Rule tab page and using the Palette create the following navigation rules:
You can find more details about how to create the JSP navigation in the section below the graphic.
From the Palette select the Page and click within the faces-config.xml window.
Browse to the menu.jsp and choose OK.
Repeat steps 1 and 2 and for the listProjects.jsp.
From the Palette select Link, then point to the menu.jsp and drag the indicator to the listProjects.jsp.
From the Palette select Select and point to the newly created link between the JSPs and click on it.
In the Properties view, in the From Outcome area, enter listProjects.
Complete the navigation rules as shown in the graphic above.