* Stefan Pietschmann:
>
> When my component is looked up, I try to fetch the objectModel (to get the
> context as you suggested). Therefore I implement Contextualizable:
>
> public void contextualize(Context context) {
> Map objectModel = ContextHelper.getObjectModel(context);
> HttpContext cocoonContext = (HttpContext)
> ObjectModelHelper.getContext(objectModel);
> cocoonContext.setAttribute("AdaptationManager", this);
> }
No, just keep context for further use. You cannot access the
object model at contextualize() time.
--
Jean-Baptiste Quenot
Systèmes d'Information
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com/