Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alternative of Pop up and 168 portlet ?

 
Aaron Raja
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Thanks
Aaron Raja
[ October 28, 2007: Message edited by: Aaron Raja ]
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..
You can use your old pop-up code for Displaying Calendar, its irrespective of whether your application is Portlet Based or Servlet Based.

Cheers,
---Pras---
 
Aaron Raja
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Cameron and Prasant!

Cameron I did ordered your Book hope it will help me to survive the project!
Thanks
Aaron Raja
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic