on 01-25-2007 8:11 AM
according to the tutorial given
i have created java beans and import the javabeans into webdynpro
after sometimes, i add some new java class
for instance
previous
InventoryCommandBean.java
WarehouseCommandBean.java
after
InventoryCommandBean.java
WarehouseCommandBean.java
BOMCommandBean.java
webdynpro
Model
previously InventoryCommandBean.java , warehouseCommandBean.java is inside webdynpro model, now i need to reimport instead of delete, what can i do.
Reimport option is not available on java bean model,
You have recreate and rbeind the context.
Regards, ANilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found those solutions here in the forum:
- make a 2nd WD Project
- import the new model to the new project with the same names and paths
- copy the new model from new project to the old one.
- refresh the old WD Project
This seems to be the fastest and securest way. And the copy task can be done by a batch file.
There's a blog with another solution. There you set all file attributes except the ones of the model files to RO to stop NWDS to delete the references, delete und import the model, after that switch the attributes back to R/W.
IMHO less secure, if you forget to switch any attribute, you may damage some references.
Regards
Thomas
Hallo Stefan,
look at my WebLog on<a href="/people/bertram.ganz/blog/2005/10/10/how-to-reimport-web-service-models-in-web-dynpro-for-java To Reimport Web Service Models in Web Dynpro for Java</a>
Then read my comment on applying this re-import workaround for the JavaBean-model:
<i>Principally speaking "yes". But: there is a special difference which has to be considered. The Java-Bean model is based on a set of model-entities and a set of related model classes which are located in other packages (Java Bean model class packages) then the model-entities package. Model-entities are the metamodel-representations of the imported Java Bean model class.
Consequently it is not sufficient to make all model-entities within the model package namespace writable (readOnly=false). Additionally all related JavaBean model classes in a separate namespace must explicitly set writable.
Nevertheless there are no proxy classes which have to be deleted manually. Based on the above description the delete-operation will eliminate all those files which belong to the model.</i>
Regards, Bertram
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.