Legacy Knowledge Base
Published Jul. 2, 2025

Keeping toast success/error messages visible until user acknowledgement

Written By

József Géczi

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

NOTE: This article is an INTERNAL article and is not visible to customers, currently. Please only link this article in internal comments, but not public comments.

Issue

  • As a user, I would expect if toast success/error messages remain visible until user acknowledgement (until they are 'manually' closed) in order to make sure not to miss a single notification.
  • Current behavior: such messages disappear automatically in a few seconds.

Environment

  • DXP 7.1

Resolution

  • Inside $LIFERAY_HOME/$TOMCAT_HOME/webapps/ROOT/WEB-INF/lib/util-taglib.jar , adjust the file util-taglib/src/com/liferay/taglib/ui/success/toast.tmpl
    At line 16 (inside ClayToast creation), change the property autoClose from true to false.

Be aware that the original behavior is intended and the described change is considered as a customization. Therefore, could be overwritten in case a hotfix or fix pack is installed and the util-taglib.jar is also adjusted by them. 

Did this article resolve your issue ?

Legacy Knowledge Base