Skip to Content
avatar image
Former Member

Importing Complex JavaBean model into WebDynpro

Hi,

I am trying to get Data from the EJB, in my Case, Command Bean to WebDynpro.

So i followed this thread:

<a href="/people/balaramnaidu.bankuru/blog/2006/04/23/importing-complex-javabean-model-into-webdynpro-by-creating-relationships-for-the-model-classes in WebDynpro</a>

But one thing does't work here:

I can't import the Complex type java.util.Collection.

But i need to get Data from a DB-View into my WebDynpro.

Is there any other chance to do that?

Here a CodeSnippet from my Command Bean Class:

public BusinessDelegate() throws CreateException

{

try

{

Context ctx = new InitialContext();

OracleSessionLocalHome home = (OracleSessionLocalHome)ctx.lookup("localejbs/OracleSessionBean");

session = home.create();

} catch (Exception e)

{

e.printStackTrace();

}

}

public void getAllOracleDetails()

{

try

{

OracleDTO helper[] = session.getOracleData();

oracleDetailsList = new ArrayList();

for (int i = 0; i < helper.length; i++)

{

oracleDetailsList.add(helper(i));

}

} catch (Exception e)

{

e.printStackTrace();

}

}

OracleDTO is my HelperClass, where i made all Variable-Declarations I need in the View.

Any ideas?

Would appreciate that!

Bernd

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 14, 2007 at 09:47 PM

    You are not unable to import collection type means u are not able to see that variable in attribute list while importing the model?

    This may be due to you have not added getter and setter function for that collection type.

    Add comment
    10|10000 characters needed characters exceeded