WebSphere Portal Server - Changing the portlet title dynamically.

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > September 2005 > Changing the portlet title dynamically.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Changing the portlet title dynamically.

2005-09-26, 6:04 pm

Hi All,
Is there a way to change the portlet content & title dynamically based on a event ?

Thanks in advance
karthik



Brian J. Sayatovic

2005-09-26, 6:04 pm

I believe your portlet can implement PortletTitleListener.

Regards,
Brian.

<karthikeyan.subramaniam@caritor.com> wrote in message
news:1089884825.1127752060071.JavaMail.wassrvr@ltsgwas007.sby.ibm.com...
> Hi All,
> Is there a way to change the portlet content & title dynamically

based on a event ?
>
> Thanks in advance
> karthik
>
>
>



2005-09-27, 5:57 pm

Thanks for your help Brian, can you suggest us some tutorials that talks about changing the portlet titles dynamically?

Regards
karthik

Uwe Roland

2005-09-27, 5:57 pm

karthikeyan.subramaniam@caritor.com wrote:
> Thanks for your help Brian, can you suggest us some tutorials that talks about changing the portlet titles dynamically?
>
> Regards
> karthik
>

public void doTitle(PortletRequest request, PortletResponse response)
throws PortletException, IOException {
response.getWriter.print("Here comes the new titel ...");
}

That's all ...

cu Uwe
norrism

2005-09-28, 7:59 am

Additional Info regarding Dynamic Titles in Portal 5.1:

Regarding JSR 168 Portlets - the RenderResponse.setTitle(java.lang.String title)method is not supported by WebSphere Portal 5.1.x. As such, the implementation of the JSR 168 portlet container does not support dynamic titles for WebSphere Portal. This af
fects WSRP portlet behavior since the WSRP proxy portlet is written according to the JSR 168 portlet API. Dynamic titles do not work, even if the remote portlet is written according to the IBM Version 4.x portlet API. This includes calls to the methods o
f the IBM Version 4.x portlet API PortletTitleListener interface.



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com