on 08-10-2004 9:36 AM
Hi, in our EP6 SP2 implementation, as a design choice, we are not using HTMLB trays. Thus iView personalization is slightly problematic.
I have a world time iView that displays 5 cities times, and I need the user to be able to select their cities. This iView is a JSPDynPage. I would like to fire the iView personalise event from an icon contained in the iView.
I would really appreciate some guidance of which class and method to use.
Many Thanks in advance,
Mark
Abstractportalcomponent:
2 methods.
public void doHandleEditData(IPortalComponentRequest request, IPortalRequestEvent event)
{
IPortalComponent delegateComponent = getPersonalizationDelegate(request);
if(delegateComponent instanceof IEventListenerComponent)
((IEventListenerComponent)delegateComponent).handleEvent(request, event);
}
private IPortalComponent getPersonalizationDelegate(IPortalComponentRequest request)
{
IPortalComponentContext context = request.getComponentContext();
IPortalComponentProfile profile = context.getProfile();
String delegateClassName = profile.getProperty("PersonalizationClass");
if(delegateClassName != null)
try
{
Class delegateClass = Class.forName(delegateClassName, true, getClass().getClassLoader());
return (IPortalComponent)delegateClass.newInstance();
}
catch(Exception e)
{
throw new PortalComponentException("Failed to load personalization delegate " + delegateClassName, e);
}
else
return PortalRuntime.getRuntimeResources().getDefaultPersonalizationDelegate();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.