Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Portlets+AJAX - accessing portlet objects

Pat Villa
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic