WebSphere Portal Server - Re: How to render the content of ONE portlet in a new browser window (format for print

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > February 2004 > Re: How to render the content of ONE portlet in a new browser window (format for print





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 Re: How to render the content of ONE portlet in a new browser window (format for print
smithjonno

2004-02-16, 2:33 pm

Don't know if this is still relevent, but I stumbled across the following code (modified from the iFrame skin to allow the portlet print mode). Works for version 5

<pre>
&lt;admin:portletidentifier&gt;
&lt;wps:urlGeneration contentNode="&lt;%=contentNode%&gt;" compositionNode="&lt;%=compositionNode%&gt;" newWindow="true" portletWindowState="solo"&gt;
&lt;a href="&lt;% wpsURL.write(out); %&gt;" target="portletNewWindow" onclick="javascript: window.open('&lt;% wpsURL.write(out); %&gt;? fontPrint=true','portletNewWindow','resi
zable=yes,scrollbars=yes,menubar=yes,too
lbar=no,status=no,width=700,height=5
00,screenX=50,screenY=05,top=50,left=50'
).focus(); return false;"&gt;
&lt;img border="0" align="middle" class="wpsPortletTitleIcon" src='&lt;wps:urlFindInTheme file="images/admin/print.gif"/&gt;' alt='&lt;wps:text key="print.view" bundle="nls.titlebar"/&gt;' title='&lt;wps:text key="print.view" bundle="nls.titlebar"/>
;' /&gt;&lt;/a&gt;
&lt;/wps:urlGeneration&gt;
&lt;/admin:portletidentifier&gt;
</pre>

You will need to include &lt;%@ taglib uri="/WEB-INF/tld/admin.tld" prefix="admin" %&gt;
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com