Plain Java classes for model description,
for database access, e-mail/SMS sending ...
Currently it works in two ways:
- first if those components are nested from component defined in action
class
- second I have to obtain ComponentManager ("DefaultComponentManager"
) from context, and than call initializeObject(this);
Regards Marino Tudor
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason
Carreira
Sent: Monday, January 19, 2004 5:08 PM
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] XWork IoC in other Java classes (not Actions)
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
__________ NOD32 1.597 (20040112) Information __________
This message was checked by NOD32 Antivirus System.
http://www.nod32.com
-------------------------------------------------------
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