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  Alternative of Pop up and 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 " Alternative of Pop up and 168 portlet ?" Watch " Alternative of Pop up and 168 portlet ?" New topic

Alternative of Pop up and 168 portlet ?

Aaron Raja
Ranch Hand

Joined: Jun 07, 2007
Posts: 206
I am developing Portlet which need to have popup calender ( We are moving our web app from non-portal to portal based on JSR-168. one of the requirement we got is look and feel need to have same so end user won't feel any change from old and new application.)
Old application got Pop up Calender? What is the work around for me to have something close by or any AJAX stuff or example you guys can suggest me.
Aaron Raja
[ October 28, 2007: Message edited by: Aaron Raja ]

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

Joined: Aug 26, 2006
Posts: 4968

I'd throw a <DIV> tag in the new portlet, and do an AJAX call to the JSP or Servlet that generates the calendar. That way the calendar will pop up quickly on the same screen probably right under the point where a user clicks on 'show calendar' or something.

I'm envisioning this as an application like Expedia where you pick your to and from dates, thus the need for the calendar?

Everyone hates pop-ups. I do concede there are times where they might be needed, but they do cause problems.

With JSR168, just remember that the JSP or Servlet has to be in the portlet application (aka war file) for it to be invokable by the portlet.

Good luck!

-Cameron McKenzie
Pras Tiwari
Ranch Hand

Joined: Nov 07, 2005
Posts: 186
You can use your old pop-up code for Displaying Calendar, its irrespective of whether your application is Portlet Based or Servlet Based.


********Deserve Before You Desire********
Aaron Raja
Ranch Hand

Joined: Jun 07, 2007
Posts: 206
Thanks Cameron and Prasant!

Cameron I did ordered your Book hope it will help me to survive the project!
Aaron Raja
I agree. Here's the link:
subject: Alternative of Pop up and 168 portlet ?
It's not a secret anymore!