File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes Pop ups in jsr 168 portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Pop ups in jsr 168 portlet" Watch "Pop ups in jsr 168 portlet" New topic

Pop ups in jsr 168 portlet

Deepak Varghese

Joined: Oct 26, 2007
Posts: 3
Can i use popups in jsr 168 portlets.I am trying to open a jsp running in an application server as pop up from a portlet application.Pop up is working fine fine and i am able to set values from popup to parent portlet jsp.But wen i submit the portlet jsp i am losing track of the current state.What can be done for that?I am able to get parameters using request.getParameter()
Aaron Raja
Ranch Hand

Joined: Jun 07, 2007
Posts: 206
What Portal server are you using? I am using Oracle Portal 10.1.4 ? JSR -168. I was told it won't work but i am trying to test! If I get any I will let you know!
Good luck
Aaron Raja

Thanks, AR
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

When you do figure it out, start trying to figure out how to turn your clients pop-up blocker off.

It's 2007, almost 2008. Nobody should be designing a site that throws pop-ups at the client. And if you do, you better have VERY sophisticated users, or else your help desk will be handling call after call from clients who don't know how to turn their pop-up blocker off.

Use an AJAX call to the JSP, and wrap that up in a portlet that leverages AJAX.

Sorry to get preachy, but pop-up windows are a waste of everyone's time.

-Cameron Mckenzie
Deepak Varghese

Joined: Oct 26, 2007
Posts: 3
Thanks for the immediate response.Yeah its not ideal to use pop ups.But ours is an intranet application and limited number of users will be accessing the page.The issue is not because the pop up blocker is turned on.I am able to get the pop up with values displayed and i am setting it back in portal jsp.But wen i submit the portal jsp the state gets expired.i am not able to get values from portal jsp using request.getParamter().

I am using websphere portal server 6.0

I have installed the pop up application in websphere application server on the top of whcih i have installed the portal server.

i am calling the pop up from the porltet jsp as shown below""+escape(strDispCols)+"&strParam="+strParam+"&vPreSelect="+escape(vPreSelect)+"&sTableName=ADB_PUBLICATION_LOV","SearchPage","menubar=0,statusbar=1,resizable=0,width=650,height=500,scrollbars=1");

is there any possible way i can maintain the state of parent portal page???
jagadeesha indian

Joined: Oct 08, 2009
Posts: 3
any one help me in solving the problem.......

consider there are two porlet A and portlet B, both are in different projects
I need to pop a portlet B when i click on link in portlet A
there is IPC between portlet A and Portlet B which passed two value (one is LIST , another one is String)

I am using websphere portal server 5.1

scjp 5
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10824

"jagdeesha indian",
Like you were told before here please check your private messages for an important administrative matter.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Patrick Grimes

Joined: Oct 08, 2009
Posts: 2
Perhaps you could send the information to another portlet on the page that is hidden. After the hidden portlet receives the information, you can do whatever you need to do with it, then pop up the resulting page through JavaScript from PortletB not from PortletA.

PortletA --> wire --> PortletB ---> action ---> jsp ---> JavaScript popup

I agree. Here's the link:
subject: Pop ups in jsr 168 portlet
It's not a secret anymore!