Which types of objects are you trying to initialize? There might be
workarounds...

> -----Original Message-----
> From: Marino [mailto:[EMAIL PROTECTED] 
> Sent: Monday, January 19, 2004 4:31 AM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] XWork IoC in other Java classes (not Actions)
> 
> 
> Hi, 
> 
> How to use Xwork IoC in classes that are not Actions?
> 
> In XWork documentations there is a one note like:
> 
> " If you have an object that is not an action or another 
> component, you must explictly tell XWork to supply any 
> enabled components to your object by calling 
> componentManager.initializeObject(enabledObject)" 
> 
> So, do I have to put some code like this: 
> 
> .... 
> ComponentManager container = 
>   (ComponentManager) 
> ActionContext.getContext().get("com.opensymphony.xwork.interce
> ptor.component
> .ComponentManager");
>        
>             container.initializeObject(myClass);
> 
> 
>  in all my other classes (and where , in constructor ?)
>   or there is some other way to make it works?  
> 
> Thanks 
> Marino Tudor
> MER Systems
>  
>  
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration 
> See the breadth of Eclipse activity. February 3-5 in Anaheim, 
> CA. http://www.eclipsecon.org/osdn 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to