Foros de discusión
How to Change portlet Title dynamically
Amresh kumar, modificado hace 11 años.
How to Change portlet Title dynamically
New Member Mensajes: 20 Fecha de incorporación: 17/05/12 Mensajes recientes
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
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
Gnaniyar Zubair, modificado hace 11 años.
RE: How to Change portlet Title dynamically
Liferay Master Mensajes: 722 Fecha de incorporación: 19/12/07 Mensajes recientes
You can set the Title from renderResponse object.
renderResponse.setTitle("My-Custom-Title");
- Gnaniyar Zubair
renderResponse.setTitle("My-Custom-Title");
- Gnaniyar Zubair
Amresh kumar, modificado hace 11 años.
RE: How to Change portlet Title dynamically
New Member Mensajes: 20 Fecha de incorporación: 17/05/12 Mensajes recientes
Thanks Zubair,
i will try for this and update to u soon.
very very thanx for ur reply
i will try for this and update to u soon.
very very thanx for ur reply
Hitoshi Ozawa, modificado hace 11 años.
RE: How to Change portlet Title dynamically
Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
You're probably not coding the inter-portlet communication correctly. Fix that.
Gnaniyar Zubair, modificado hace 11 años.
RE: How to Change portlet Title dynamically (Respuesta)
Liferay Master Mensajes: 722 Fecha de incorporación: 19/12/07 Mensajes recientes
Thanks Hitoshi.
In Sender portlet, it should be
I have made the changes in that wiki article and Thanks for bringing this to my attention
In Sender portlet, it should be
supported-publishing-eventinstead of
supported-processing-event.
I have made the changes in that wiki article and Thanks for bringing this to my attention
Amresh kumar, modificado hace 11 años.
RE: How to Change portlet Title dynamically
New Member Mensajes: 20 Fecha de incorporación: 17/05/12 Mensajes recientes
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.
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.
Pradip A Bhatt, modificado hace 10 años.
RE: How to Change portlet Title dynamically
Junior Member Mensajes: 51 Fecha de incorporación: 29/01/13 Mensajes recientes
How can I set portlet title using ActionRequest (actionRequest) object??
Pradip A Bhatt, modificado hace 10 años.
RE: How to Change portlet Title dynamically
Junior Member Mensajes: 51 Fecha de incorporación: 29/01/13 Mensajes recientes
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.
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, modificado hace 10 años.
RE: How to Change portlet Title dynamically
Junior Member Mensajes: 51 Fecha de incorporación: 29/01/13 Mensajes recientes
how can i change portlet title in controller -> using actionResponse object ??