on 01-02-2008 5:48 AM
Hi All
I have created a session bean having a business method saveInfo. The method contains a parameter dtDoB of type java.sql.Date. On exposing the bean as webservice, the type gets converted to java.util.GregorianCalendar.
Cant it remain as java.sql.Date so that i can import the webservice as model in webdynpro and bind the context to an inputfield.
If the context is of type java.util.GregorianCalendar then i am not able to bind it with an inputfield in webdynpro.
Please help. Its urgent.
Points will be awarded.
Regards
Sonal
Try this:
In the Webdynpro, set the date field
<modelclassobject>.set<modelvariablename>( new Timestamp( wdContext.currentContextElement().getEffDate().getTime()));
EffDate is of type 'date' in WD context.
<modelvariablename> is of type java.sql.Date in the session bean webservice.
Hope it solves the issue.
Avinash.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.