Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Amresh kumar
How to Change portlet Title dynamically
February 3, 2013 3:16 AM
Answer

Amresh kumar

Rank: New Member

Posts: 16

Join Date: May 17, 2012

Recent Posts

HI to all,
i developed one JSF portlet with title "Sample" and one "add User " button that will go to the other portlet "Sample1" portlet,but after clicking on button its render in the same portlet i.e (in the Sample portlet ) and also title is not changing to Sample1 ,can anybody tell me the approach ,how to change the title of the Sample portlet to Sample 1 after clicking on the Add user button .

Thanks in advance


Amresh kumar
Kowbathullah Gnaniyar
RE: How to Change portlet Title dynamically
February 3, 2013 7:06 AM
Answer

Kowbathullah Gnaniyar

Rank: Liferay Master

Posts: 603

Join Date: December 19, 2007

Recent Posts

You can set the Title from renderResponse object.

renderResponse.setTitle("My-Custom-Title");

- Gnaniyar Zubair
Hitoshi Ozawa
RE: How to Change portlet Title dynamically
February 3, 2013 1:38 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7952

Join Date: March 23, 2010

Recent Posts

You're probably not coding the inter-portlet communication correctly. Fix that.
Kowbathullah Gnaniyar
RE: How to Change portlet Title dynamically
February 3, 2013 10:35 PM
Answer

Kowbathullah Gnaniyar

Rank: Liferay Master

Posts: 603

Join Date: December 19, 2007

Recent Posts

Thanks Hitoshi.

In Sender portlet, it should be
supported-publishing-event
instead of
supported-processing-event.


I have made the changes in that wiki article and Thanks for bringing this to my attention
Amresh kumar
RE: How to Change portlet Title dynamically
February 5, 2013 9:34 AM
Answer

Amresh kumar

Rank: New Member

Posts: 16

Join Date: May 17, 2012

Recent Posts

HI Hitoshi ,
Actually i know that by using IPC we can achieve this functionality but for my scenario i am not implementing the IPC approach for JSF Portlet ,is there any other way to do this.
Amresh kumar
RE: How to Change portlet Title dynamically
February 5, 2013 9:51 AM
Answer

Amresh kumar

Rank: New Member

Posts: 16

Join Date: May 17, 2012

Recent Posts

Thanks Zubair,
i will try for this and update to u soon.


very very thanx for ur reply
Pradip A Bhatt
RE: How to Change portlet Title dynamically
February 7, 2014 12:36 AM
Answer

Pradip A Bhatt

Rank: Junior Member

Posts: 51

Join Date: January 29, 2013

Recent Posts

How can I set portlet title using ActionRequest (actionRequest) object??
Pradip A Bhatt
RE: How to Change portlet Title dynamically
February 10, 2014 1:31 AM
Answer

Pradip A Bhatt

Rank: Junior Member

Posts: 51

Join Date: January 29, 2013

Recent Posts

I got solution... There 2 ways.

One in jsp file write

<%
portletDisplay.setTitle("Login");
%>


another one after adding portlet. Select Configuration of portlet and apply your custom title there.
Pradip A Bhatt
RE: How to Change portlet Title dynamically
February 13, 2014 10:21 PM
Answer

Pradip A Bhatt

Rank: Junior Member

Posts: 51

Join Date: January 29, 2013

Recent Posts

how can i change portlet title in controller -> using actionResponse object ??