Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Portals and Portlets and the fly likes Portlets+AJAX - accessing portlet objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Portlets+AJAX - accessing portlet objects" Watch "Portlets+AJAX - accessing portlet objects" New topic

Portlets+AJAX - accessing portlet objects

Pat Villa

Joined: Jan 05, 2004
Posts: 19

Portlet noob here. What I'm trying to do is make my static portlets update parts of itself using AJAX. I've successfully done this when the updating parts do not use portlet tags.

Given the following:

- a jsp fragment that contains urls generated with <portlet:renderURL>

- a portlet view that simply jsp:includes dynamic.jsp - this works fine

- a portlet view that contains basic AJAX XmlHttpRequest code that refreshes a portion of itself with dynamic.jsp.

My question is how do I enable dynamic.jsp to access the "portlet" tag when it is called by ajax(portlet-refresh.jsp)? I suppose the problem is that dynamic.jsp doesn't have automatic access to Portlet specific objects/session when it is accessed this way.

I agree. Here's the link:
subject: Portlets+AJAX - accessing portlet objects
Similar Threads
Portlet Maximize
portlet modes
AJAX in Practice: OK for Ajax newbies?
Portal server Bea vs IBM
navigation between the pages in different portlets using JSR286