OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exoplatform List | April 2007 Index

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

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


Mickael.Lecoq@xxxxxxxx wrote:
> 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
>
>
>
>
>   
Yes, you are right. I made a mistake when I type the code.
Thanks a lot for you help :-)

-- 
Best regard,
Hoa Pham - eXoplatform Viet Nam's team
Ha Noi - Viet Nam.

Email:hoa.pham@xxxxxxxxxxxxxxx
YM: phamvuxuanhoa
Skype:phamvuxuanhoa




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

Reply via email to:

Powered by MHonArc.

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