History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: UP-1247
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andrew Petro
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
uPortal

JSR-168 portlet dynamic titles

Created: 28/Sep/05 05:53 PM   Updated: 05/Mar/08 10:01 AM
Component/s: Portlet Container
Affects Version/s: None
Fix Version/s: 3.0.0-RC2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Text File cportletadapter.txt (5 kb)

Issue Links:
Block
 
This issue is blocked by:
UP-1246 Dynamic channel titles Critical Closed
Duplicate
This issue duplicates:
UP-1923 Dynamic channel titles only work on f... Blocker Closed
 


 Description  « Hide
Enhance CPortletAdapter to reflect the dynamic portlet title specified by the portlet on the RenderResponse.

 All   Comments   Work Log   Change History      Sort Order:
Andrew Petro [28/Sep/05 05:54 PM]
UP-1246 support for dynamic IChannel titles is required as the foundation upon which to implement UP-1247 support for JSR-168 dynamic titles.

Andrew Petro [29/Sep/05 11:19 AM]
Andy Gherna and I worked on CPortletAdapter enhancements @ the JA-SIG dev meeting to allow CPortletAdapter to present the dynamic portlet titles as dynamic channel titles. However, as I try to plug this in with the dynamic channel title support in place, I don't see how it can work:

...
PortalControlStructures pcs = channelState.getPortalControlStructures();
HttpServletRequest request = pcs.getHttpServletRequest();
String title = (String) request.getAttribute("org.apache.pluto.dynamic_title");

channelState.setPortletTitle(title);

Since the HttpServletRequest in PortalControlStructures is the request from the end user's browser, how does this work for multiple portlets setting their titles on the RenderResponse? Should we be looking somewhere else for the per-portlet dynamic portlet title?

We need a really simple example portlet that sets its title to something, to include in uP to exercise this feature, and another look at how to make CPortletAdapter harvest the dynamic portlet title...


Andrew Petro [29/Sep/05 11:43 AM]
Patch for CPortletAdapter etc. capturing the Pluto-placed dynamic portlet title request attribute from the wrapped HttpServletRequest.

Andrew Petro [29/Sep/05 01:05 PM]
The CPortletAdapter.txt patch doesn't appear to work either. I'll commit an example portlet that sets its title so we'll have something to test against in getting CPortletAdapter to render dynamic portlet titles.

Andrew Petro [29/Sep/05 01:31 PM]
This portlet now included in uPortal to demonstrate current lack of support for setTitle(): http://jasigch.princeton.edu:9000/display/PLT/RenderCountPortlet

Eric Dalquist [21/Jan/08 12:27 PM]
Functional in 3.0

Eric Dalquist [05/Mar/08 10:00 AM]
The complete resolution was provided by UP-1923