Start of Content Area

Procedure documentation JavaBean Model in a Development Component Project  Locate the document in its SAP Library structure

The JavaBean model is available for local Web Dynpro projects as well as for the development component (DC) projects centrally versioned in the Design Time Repository (DTR). When this model type is used in a Web Dynpro DC project, the infrastructural public part usage definitions are also taken into account after the bean import.

Procedure

To import a JavaBean model into a Web Dynpro DC project, proceed as follows:

       1.      Create a Java Development component (Java DC). Proceed as described under Creating and Locally Building a Java DC.

       2.      Make the JavaBean model implementation of the Java DC available. To do so, switch to the Package Explorer view and choose the context menu entry Import on the node <myProject> src/packages. In the next step, you can get the JavaBean model from the file system by choosing the path to the packages directory of the JavaBean in the wizard.

       3.      Define a public part for the model implementation and then assign all model implementation classes of the Java DC to this public part. Carry out both steps as described under the above link (“Creating and Locally Building a Java DC“).

       4.      Execute a build for the Java DC; the procedure is desribed under Building a Component.

       5.      Now create a Web Dynpro project to be versioned centrally. Proceed as described under Creating a Web Dynpro DC Project.

       6.      Add the public part, which is made available by the Java DC; to the Web Dynpro DC as a DC use. The component use is also a central part of the Java Development Infrastructure (JDI) and is described under Changing Used Components.

       7.      Import the JavaBean model into the Web Dynpro DC project, by carrying out the following steps:

¡        In the Web Dynpro Explorer view, goto the Web Dynpro DC project.

¡        Choose the context menu entry This graphic is explained in the accompanying text Create Model for the This graphic is explained in the accompanying text Models node in the Web Dynpro Explorer.

¡        Choose the model option Import JavaBean Model.

¡        In the wizard, make the model details Name and Package available.

¡        Select the option project(including associated projects) to specify the JavaBean source.

¡        Add the JavaBeans to be imported.

¡        Dissolve the model relations, if necessary.

¡        Complete the import of the JavaBean model by choosing Finish.

Result

The JavaBean model is available to the Web Dynpro DC.

 

End of Content Area