WebSphere Portal Server - Removing Left Navigation in popup window

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > July 2006 > Removing Left Navigation in popup window





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Removing Left Navigation in popup window
npsandeep

2005-07-22, 5:35 am

Hi,

I have created my own theme which will display the pages in left navigation menu. I have an hyper link on one of the screen. If I click the hyper link a new window is opened with the left navigation. I want to remove the left navigation in the popup menu. Is there a way to remove the left navigation in popup menu in portal server. Pls help me out I am really not able to proceed with this.

Thanks in advance
Sandeep NP
Alison Swift

2005-07-25, 6:59 am

To remove the left hand nav bar in the pop-up window, if it is still within Portal, I'd advise using a different portal page - that way you can set a different theme - without the left-hand nav bar part.

I'm also trying to create a left-hand nav bar. How did you do it, where did you inserted the appropriate jsp?

Thanks.

2005-07-26, 8:01 am

Dear Alison,

I can't set a different theme because popup window is not a different page. It belongs to the same page as parent window. ie., I have created a page and assigned a portlet to that page. Using the same portlet I can navigate to multiple JSP pages. In
one of the jsp page I have a popup window. So I can't assign a different theme to just the popup window.

Regarding creating Left Navigation. I have copied the existing science theme and modified it. If you create multiple child nodes you will get the left navigation.

Thanks
Sandeep NP
Michael Harris

2005-07-27, 5:56 pm

How are you creating the URL for the popup? Are you using the
<wps:urlGeneration> tag? If so, what are the parameters on the tag?
npsandeep

2005-07-28, 3:07 am

Dear Michale,

I tried using wps:urlGeneration tag. The problem is I am not able to pass the parameters to the doView() method. doView() method inside the portlet is getting invoked but the parameters are not getting passed. Pls see the code below for details. I am trying to pass dynUrl in window.open method of javascript.

<%@ taglib uri="/WEB-INF/tld/admin.tld" prefix="admin" %>
<%@ taglib uri="/WEB-INF/tld/engine.tld" prefix="wps" %>
<%
String dynUrl="";
%>
<admin:portletidentifier>
<wps:urlGeneration contentNode="<%=contentNode%>" compositionNode="<%=compositionNode%>" newWindow="true" portletWindowState="solo">
<wps:urlParam name="searchMaterial" value="yes"></wps:urlParam>
<wps:urlParam name="pageNo" value="2"></wps:urlParam>
<% dynUrl= wpsURL.toString(); %>
</wps:urlGeneration>
</admin:portletidentifier>

Thanks in advance
Sandeep NP
Michael Harris

2005-07-28, 6:01 pm

It is hard to know what is happening without seeing what you have...
specifying portletWindowState="solo" should remove most navigation links
in the theme. newWindow="true" will also remove navigation links as
well as set up a session partition to prevent some of the portlet state
in your popup window from being shared with the portlet state in the
main window.

So first question, is does using <wps:urlGeneration> remove all of the
navigation that you expected? If not, what is remaining that you don't
want? (It's not clear if you have changed your code to use
<wps:urlGeneration> after your original post or before.)

The next issue is that your parameters aren't getting through. I'm not
exactly sure what the <admin:portletidentifier> tag does however, you
should know that parameters are only passed to the portlet when the URL
points to the portlet... not the page the portlet is on. this may be
part of your problem, I'm not sure. I think if you assigned a custom
unique name to the portlet, you might could use that.

Also, be aware that if you were using the JSR168 API, your parameters
would have to start with a special prefix to get them to pass through.
(I think it's "javax.")
npsandeep

2005-07-29, 12:22 am

Hi,

If I use wps:urlGeneration tag with portletWindowState=solo I am not getting the left navigation in the popup menu but the problem is I am not able to pass the parameters to the portlet. It is invoking the portlet and I am able to see the System.out.println statements inside the portlet. Even if I prefix the parameter with javax. it is not working. I am able to see the parameters in the URL as name value pairs but I am not able to read them. pls see the below URL for details. I am passing the parameters as below.

One more problem I am able to see is I started printing all the parameters in the request object. I am able to see some old parameters is getting passed. i.e, If I have Screen A, Screen B and Screen C. I have hyper link in Screen B. On click of the hyper link in screen B a new popup window is opened. When I generate an URL on screen B and passed to the popup window the parameters of Screen A is getting passed.

<admin:portletidentifier>
<wps:urlGeneration contentNode="<%=contentNode%>" compositionNode="<%=compositionNode%>" newWindow="true" portletWindowState="solo">
<wps:urlParam name="javax.searchMaterial" value="yes"></wps:urlParam>
<wps:urlParam name="javax.pageNo" value="2"></wps:urlParam>
<% dynUrl= wpsURL.toString(); %>
</wps:urlGeneration>
</admin:portletidentifier>


and the URL it generated is as below.


"http://10.140.46.112:9081/wps/myportal/!ut/p/kcxml/ 04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLN4h3DgXJ
gFjGpvqRINozGCbiCBFAKLH0hov4euTnpgLFI82B
fMPgQP0Q_QgDk_jgrMoCzxDXeMNKy9QAP7- QgJSwoFAnRyeDtDLzDH1v_QD9gtzQ0IhyQwtHR0V
FAHpJYU0!/delta/base64xml/ L0lJYWlsQ1NRL0lKakFBQVRBQUN4QUFDakVpaXJH
WUEhIS80SVVFbzBySVFBISEvNl8wX0NVLzEyMTI!
?javax.searchMaterial=yes&javax.pageNo=2#7_0_1SQ"


Thanks/Regards
Sandeep NP

2006-07-05, 7:28 am

How can I get the title of the page from a popup window ?

ModelUtil mutil = ModelUtil.from( request );
NavigationSelectionModel model = mutil.getNavigationSelectionModel();

if (model.getSelectedNode() !=null) {
ccont = (LayeredContainer) model.getSelectedNode();
}

seems not to work correctly!!!

Please, it-s urgent!

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com