WebSphere Portal Server - open a popup window from a portlet

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > January 2004 > open a popup window from a portlet





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 open a popup window from a portlet
Mathieu Favez

2004-01-19, 3:00 pm

I want to open a popup JSP window from a portlet. How can I get the portlet
context (PortletRequest, PortletResponse...) in the popup window?

--
Mathieu Favez
mfavez@telefonica.net


Michael Harris

2004-01-19, 3:00 pm

You can't. PortletRequest and PortletResponse are only available from
inside a JSP called with doView, doEdit, etc. What are you trying to do?

"Mathieu Favez" <m_favez@hotmail.com> wrote in message
news:bo85tr$56l0$1@news.boulder.ibm.com...
quote:

> I want to open a popup JSP window from a portlet. How can I get the


portlet
quote:

> context (PortletRequest, PortletResponse...) in the popup window?
>
> --
> Mathieu Favez
> mfavez@telefonica.net
>
>




Mathieu Favez

2004-01-19, 3:00 pm

I have the typical portlet box, and from a link of a JSP page viewed in this
box I want to open a popup page that could contain a portlet as well...I
mean the popup must be a JSP and access some beans of the same
portlet...I've tried to pass the PortletURI to the action of the link that
opens the popup window...making it in that way all the portal page with all
its portlets are displayed in the popup window, not only the portlet
corresponding to the PortletURI action...any idea?

"Michael Harris" <none@none.com> escribió en el mensaje
news:bobeeu$3pr2$1@news.boulder.ibm.com...
quote:

> You can't. PortletRequest and PortletResponse are only available from
> inside a JSP called with doView, doEdit, etc. What are you trying to do?
>
> "Mathieu Favez" <m_favez@hotmail.com> wrote in message
> news:bo85tr$56l0$1@news.boulder.ibm.com...
> portlet
>
>




Michael Harris

2004-01-19, 3:00 pm

You have 2 options:

1. Display a portlet in the popup (WPS v5 or higher)
2. Find some other way to get your data from the portlet into the JSP page

For the first option, take a look at
C:\WebSphere\AppServer5\installedApps\ha
rrismd\wps.ear\wps.war\skins\html\IF
rame\Control.jsp

For the second, you need to write your own portlet service, store data in
the PortletContext, or access the ServletSession via undocumented API.


Heidi Wagner

2004-01-19, 3:00 pm

Another option (might not be the best option) would be to store the bean in
a session object. You can open up a popup window then and access the
session in the popup jsp. If you do this, make sure you clear out the
session attribute after you access it in the popup window.


"Michael Harris" <none@none.com> wrote in message
news:boor39$781e$1@news.boulder.ibm.com...
quote:

> You have 2 options:
>
> 1. Display a portlet in the popup (WPS v5 or higher)
> 2. Find some other way to get your data from the portlet into the JSP page
>
> For the first option, take a look at
>


C:\WebSphere\AppServer5\installedApps\ha
rrismd\wps.ear\wps.war\skins\html\IF
quote:

> rame\Control.jsp
>
> For the second, you need to write your own portlet service, store data in
> the PortletContext, or access the ServletSession via undocumented API.
>
>




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com