Skip to Content
0
Sep 07, 2006 at 07:54 AM

Subsribing within KMProxy iView

24 Views

I have two iviews on a page (the iviews are URL embedded).

One iview sends an event, the other one is subscribed on this event.

With the eventparameter, I launch a request.redirect to a cm-iview (KMProxyiView).

Now, my receiver iview never reacts an any raised event from iview 1.

Any ideas, how to get iview 2 (km proxy iview) subscribing again? We tried to reload the subscribing iview with EPCM (pagebuilder event), but there was no effect(?).

Thanks for your replies in advance

Helge

I added a code snippet:

public void doContent(

IPortalComponentRequest request,

IPortalComponentResponse response) {

myLoc.infoT("doContent");

IPageContext myContext =

PageContextFactory.createPageContext(request, response);

Form myForm = myContext.createFormDocument("myForm");

myForm.addRawText(

"<script language ='JavaScript'>"

+ "function onShowRid ( eventObj ) "

+ "{"

+ "alert('got a call to show RID!');"

+ "location.search = "

+ "'eventParameter"

+ "='+eventObj.dataObject;"

+ "}"

+ "alert('subscribeEvent');"

+ "EPCM.subscribeEvent("

+ "'urn:com.uhlmann',"

+ "'showRid', onShowRid);"

+ "</script>");

myContext.render();

}

protected void doOnNodeReady(

IPortalComponentRequest request,

IEvent arg1) {

if (request.getParameter("eventParameter") != null) {

myLoc.infoT(

"doOnNodeReady",

request.getParameter("eventParameter"));

String KM_CM_Navigation_Komponent_URL =

request.getParameter("eventParameter");

request.redirect(KM_CM_Navigation_Komponent_URL);

}

}