OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exoplatform List | April 2007 Index

<--  Date Index  --> <--  Thread Index  -->

Réf. : Re: [exoplatform] Identify the user from inside the portlet


Hello Hoa Pham,

      I have just changed one line of your code:


  OrganizationService orservice =
(OrganizationService)container.getComponentAdaptersOfType(OrganizationService.class)

didn't work. There was an error of cast: ArrayList cannot be cast into
OrganizationService.

So I have replaced it with:

OrganizationService orservice
= 
(OrganizationService)container.getComponentInstanceOfType(OrganizationService.class);

And It works.
Am I right?


Best Regards,
Mickael Lecoq






<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.