Skip to Content
0
Former Member
Oct 28, 2004 at 02:39 PM

profile.putValue(String,Object)

27 Views

Hello,

I have an iView developed for EP5, now I want to migrate this iview to EP6. I use this instruction to save the bean in EP5:

IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();

IPortalComponentContext myContext = request.getComponentContext();

IPortalComponentProfile myProfile = myContext.getProfile();

myProfile.putValue("myBean", myBean);

But I get the following warning in Eclipse when I use EP6

The method putValue(String, Object) from the type IPortalComponentProfile is deprecated, what I need to use, to preserve the functionality of myProfile.putValue("myBean", myBean);

Thanks

Maria Teresa