History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: UP-1427
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Christopher J. Holdorph
Reporter: Rajesh
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
uPortal

sample portlet to use exclusive window state

Created: 14/Feb/06 02:26 AM   Updated: 03/Jul/07 04:13 PM
Component/s: Portlet Container
Affects Version/s: 2.5.1 RC3
Fix Version/s: 2.6.0 M1, 2.5.4

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Window XP, uPortal_rel-2-5-1-quick-start


 Description  « Hide
I am trying to create one portlet for rendering some binary content using exclusive window state. I created a link for the same.

This is the code which I used for generating the link

PortletURL url = renderResponse.createRenderURL();
WindowState w = new WindowState("exclusive");
url.setWindowState(w);

I am checking for the window state and if its binary, I set the content type to "application/msword" and write the content using renderResponse.getPortletOutputStream().write() method. But the content is not generated in a word file as expected, instead I got some junk characters in the browser.

 All   Comments   Work Log   Change History      Sort Order:
Christopher J. Holdorph [28/Feb/07 02:24 AM]
Please see the information at http://support.unicon.net/node/596 for a complete explanation on how to use the exclusive window state. The sample provided at that URL will work with uPortal 2.5.4 and 2.6.0 when they are released.