on 10-13-2005 11:03 AM
Hallo Ep'ers
I want to create a page in which 2 iviews will be placed with Isolation method as Url.
when the page is opened i want to show both iviews in their initial state.So far so good.It is working.When a event is raised from first iview i want to change the view in second iview.
I have created a dynpage jsp portal archive with 2 jsp's(initial,result).In the initial.jsp i have subscribed to a event using EPCM.subscribe. Now i do not know how to set a switch by which doProcessBeforeOutput method decide on which Jsp to direct.
Can anyone please help me ??
Hi,
if u have two jspdynpage components, then you can call the second page directly as follows:
<b><script>
EPCM.subscribeEvent("urn:...", "<event Name>", <function name>);
function <function name>(){
window.location="<ProjectName.ComponentName>";
}
</script></b>
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Maybe you can put a "flag" into the url of your portal component and then you can get it within your server side code. I try to explain you my idea.
Within the jscript function which manage the event subscription, you perform a redirect to the same address of the portal component, but adding a flag. For example;
<script>
//I don't remember the right sintax
EPCM.subscribeEvent("urn:...", "<event Name>", <function name>);
function <function name>(eventObject){
var url = window.location.href;
url += "?flag=yes"
//this perform component recalculation
window.location.replace(url);
}
</script>
on server side, within doProcessBeforeOutput you:
get the request object and then you get the flag:
IPortalComponentRequest request = PortalComponentRequest this.getRequest();
String flag = request.getParameter("flag");
if (flag.equals("yes")){
this.setJspName("result.jsp");
}else{
this.setJspName("initial.jsp");
}
I don't know if could be a helpfull idea for you or not
Hope this help
Ciao
Roberto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.