Tuesday, November 19, 2013

Hiding SessionErrors Default Error Message

Whenever we make use of SessionErrors to display error message in Liferay, below default error message is also displayed by Liferay.



To get rid of this default message use the below code snippet -

NOTE: This will work for specific portlet only.

1 comment:

  1. You can also just hide this message by using its css class and calling the alloyui script like this A.all(".classname:first-child").setStyle("display", "none");

    ReplyDelete