Search code examples
liferayliferay-6

Liferay's messages - extend duration


is it possible to extend time when Liferay's Sesssion Messages (and Session Errors) are displayed on the page ? Normally it lasts like 8 seconds and it's not enough for me.

I use Liferay 6.1.1.


Solution

  • What king of message are you speaking about? If you (example) add your message in SessionMessages...

    SessionMessages.add(actionRequest, "request_processed", "this-is-my-custom-success-message") 
    

    ...and show it usign taglib inside your JSP

    <liferay-ui:success />
    

    It should appear in a green-backgrounded div, with success icon (for SessionErrors it is analogous).

    They should not disappear.

    Please, let me know more about...