Foros de discusión
Cannot remove liferay error message
Anita Sahoo, modificado hace 10 años.
Cannot remove liferay error message
New Member Mensajes: 13 Fecha de incorporación: 17/09/13 Mensajes recientes
Hi all,
I am unable remove the liferay by default error message "Your request failed to complete". I want to remove only the first error message and want the seconnd one
So plz help if anebody knows the solution .Thanks in advance.
I am unable remove the liferay by default error message "Your request failed to complete". I want to remove only the first error message and want the seconnd one
So plz help if anebody knows the solution .Thanks in advance.
Archivos adjuntos:
Zsolt Balogh, modificado hace 10 años.
RE: Cannot remove liferay error message
Expert Mensajes: 463 Fecha de incorporación: 23/03/09 Mensajes recientes
Hi Anita,
You can change the behavior in two different ways:
I would not recommend the first one as it'd be harder to maintain, I would only choose that one if the message would cause information leaking (I guess it's not the case).
For the second one, you just need to find the CSS path for the first message and adding the CSS to the portlet's look and feel section or adding it to the theme. In this case, the message still would be in the code, however it would be hidden from the users.
Zsolt
You can change the behavior in two different ways:
- You modify the liferay portlet by a hook and remove the line from the code where the message is printed.
- Hiding the error message by CSS
I would not recommend the first one as it'd be harder to maintain, I would only choose that one if the message would cause information leaking (I guess it's not the case).
For the second one, you just need to find the CSS path for the first message and adding the CSS to the portlet's look and feel section or adding it to the theme. In this case, the message still would be in the code, however it would be hidden from the users.
Zsolt
Anita Sahoo, modificado hace 10 años.
RE: Cannot remove liferay error message
New Member Mensajes: 13 Fecha de incorporación: 17/09/13 Mensajes recientes
Thanks for ur reply Zsolt
I solved the issue by creating a hook as i had to completely remove tht error msg
I solved the issue by creating a hook as i had to completely remove tht error msg
Atti tude, modificado hace 9 años.
RE: Cannot remove liferay error message
New Member Mensajes: 2 Fecha de incorporación: 28/08/14 Mensajes recientes
In which file you have removed that error message. give me path and file name.
Thanks in advance.
Thanks in advance.
Manali Lalaji, modificado hace 9 años.
RE: Cannot remove liferay error message
Expert Mensajes: 362 Fecha de incorporación: 9/03/10 Mensajes recientes
Hi,
The error message comes from - html/taglib/ui/error/end.jsp
HTH!
The error message comes from - html/taglib/ui/error/end.jsp
HTH!
Atti tude, modificado hace 9 años.
RE: Cannot remove liferay error message
New Member Mensajes: 2 Fecha de incorporación: 28/08/14 Mensajes recientes
Thanks Manali
Jitendra Rajput, modificado hace 9 años.
RE: Cannot remove liferay error message
Liferay Master Mensajes: 875 Fecha de incorporación: 7/01/11 Mensajes recientesThe error message comes from - html/taglib/ui/error/end.jsp
This is common tag lib JSP if you do any changes in this file it will affect all portlet . Instead you can check for JSP of specific portlet to hide error messages.
Manali Lalaji, modificado hace 9 años.
RE: Cannot remove liferay error message
Expert Mensajes: 362 Fecha de incorporación: 9/03/10 Mensajes recientesJitendra Rajput:
The error message comes from - html/taglib/ui/error/end.jsp
This is common tag lib JSP if you do any changes in this file it will affect all portlet . Instead you can check for JSP of specific portlet to hide error messages.
Yes thats right Jitendra. Overriding above jsp with hook and removing message shall be affecting entire portal. But it depends on user's requirement whether they want it for entire portal or not.
If they want it to be applicable to specific portlet, they can check for specific portlet using portlet Id.
Frederic REIS, modificado hace 9 años.
RE: Cannot remove liferay error message
New Member Mensajes: 2 Fecha de incorporación: 11/05/09 Mensajes recientes
More simply, you can add the following code in the render or processAction method of the portlet. Tested on Liferay 6.2
SessionMessages.add(request, PortalUtil.getPortletId(request) + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);
Kiran Yalavali, modificado hace 8 años.
RE: Cannot remove liferay error message
Regular Member Mensajes: 175 Fecha de incorporación: 15/10/14 Mensajes recientes
Hi Anitha,
How to remove that error message in custom portlet,
please help me.
How to remove that error message in custom portlet,
please help me.