cancel
Showing results for 
Search instead for 
Did you mean: 

RE:(URGENT)WebDynpro For Java

Former Member
0 Kudos

hi all,

I have done an application in webdynpro for java that i.e accesing a java Bean by creating a model.

In my model i have taken three variables i.e a,b,c

after that i have exported the jar file of that bean...and i have created model in my webdynpro application.

in that model i have taken that jar file and i have taken in used model to....

After that in diagram view of the webdynpro componnt i have mapp that model to cntroller and from controller to the view after that i am able to use the three variables from the bean as my context attributes.....

so i have binded those attributes(from Bean) to inputfields in view layout....

so after that when i have deployed the webdynpro application the input fields are getting disabled so iam not able to give any values....

and when iam clicking the submit button the error iam getting is null pointer exception....

even i have tried with different cardinality values of that node ......but my problem was not solved so plz help me out in solving this issue as soon as possible.............

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

YOu must initializate the context node in doInit method

I hope it helps:)

Former Member
0 Kudos

hi Julio Alberto M... ..,

tanks for tell me d solution my problem was resolved

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

U need to initialise ur a,b,c variable.U need to edit ur java bean class.Make a constructor of ur java bean class and in this initalise these attributes wid their default type .

and then either recreate or edit ur model after buliding java bean.

regards

Surender Dahiya

snehal_kendre
Active Contributor
0 Kudos

HI Mahesh,

If you have mapped variables correctly then check following

Your variables a,b,c wherever you declared them instantiate them.

and be sure that that getter setter methods are exist.

e.g if a,b,c are in your bean file then

as a = new a's class,

and check getter methods for a

i.e. getA() and setA(a's class) methods.

after this export as jar and use this new jar to create model.(It will be good if you create a new model deleting prv one)

Former Member
0 Kudos

Hi,

Did you execute your bean model?

Was their any errors?

What is the size of the node bound to your input fields?

Regards

Ayyapparaj

Former Member
0 Kudos

Please check the enabled and readonly properties of the inputfield.

enabled should be true.

readonly should be false.

regards

Deepak