Skip to Content
author's profile photo Former Member
Former Member

import JavaBean Model: no executable Methods?

Hello everybody,

after a long time we ware proud to import a JAVABEAN Model to WebDynpro. We wonder why we do not see any executable methods after import.

Could anybody please send a working sample?

What are the requirements for the JAVA classes to be imported?

We have some properties with setter and getter methods. Additionally we have some methods for reading information out of the database. What are the requirements for these methods?

Thanks a lot

Regard Mario

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 18, 2005 at 01:15 PM

    Hi Mario,

    unfortunately, for the Java Bean Mode, the "Apply Service Controller"-Template does not work. You need to do the required steps manually:

    After importing the Java Bean Model, you need to create a link between the Component Controller and the model (take care to bind the nodes as well).

    In the wdDoInit() method, you need to bind the CommandBean-Class to the Context:

    wdContext.node<beanName>().bind(new <beanName>());

    At last, you should create a execute() method in the controller (go to tab "Methods"-->new). Add the following code to the method body:


    Requirements for the CommandBean-Class are (as far as I know):

    -public constructor with no parameters

    -private attributes with (at least) public getters

    -take care about "throws XYException" (at least when you import the model, afterwards, methods can throw exceptions -> that's my experience)

    -I remember that not all Java-classes are possible as return type...

    Hope this helps.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.