• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Portlets+AJAX - accessing portlet objects

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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:

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

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

portlet-refresh.jsp
- 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.

Thanks
 
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic