cancel
Showing results for 
Search instead for 
Did you mean: 

Couldn't complete tutorial 'Integrating EJB 3.0 into Web Dynpro ...'

Former Member
0 Kudos

Hi All,

I am trying to complete the “Integrating EJB 3.0 into Web Dynpro Using the EJB Model Importer” tutorial that goes with SAP NetWeaver Composition Environment 7.1 SP3 Developer Studio.

Does anyone ever completed this tutorial because I have problems completing it. The result is very important for me because I need to use this technology for my essay.

In this tutorial you create a button that calls the method StudsBean.getStudent(String). In this method the object student is created and it will be returned. In several labels the information of the returned student should be displayed. But that doesn’t happen, when I push the button no error occurs but the labels are still empty. When I try to debug the Enterprise Bean and Web Dynpro application I see that the method StudsBean.getStudent(String) is called and the property’s are set and the student object is returned, but still it isn’t displayed.

After discussing this with a colleague I tried to search for a solution on the SDN and of course Google. First I thought I would be a bug but I only found 2 people with the same problem. I found it remarkable because it’s one of the key subjects of Java EE 5 and it’s a tutorial displayed in the welcome page of the Developer Studio.

So do you people think it’s a bug in WebDynpro? Because I am sure that I followed all the steps mentioned (a colleague checked it even).

Regards,

Sander

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sander,

I guess, it's not a bug in Web Dynpro, maybe it's a bug in the tutorial

I tried something similar, but not following the tutorial and it works. I wasn't able to call the model from the view controller and I guess that's the problem. Take the code from the init-method of the view controller and put it to the component controller's init -method and the code inside the onActionGetStudent and put it into a method you create in the component controller, too. From onActionGetStudent just call this method in the component controller with some code like this:

wdThis.wdGet<your component controller's name>.<your method's name>;

Hope this helps

Kind regards

Stefanie

Former Member
0 Kudos

Hi Stefanie,

I also posted this question in Java EE forum, and I got an excellent reply.

[|]

Thank you very much for your time

Kind Regards,

Sander