liferay-docs
liferay-docs copied to clipboard
Update using-liferay-ui-success-and-error-messages.markdown
A new feature has been added to display default warning message (please see https://github.com/brianchandotcom/liferay-portal/pull/24417).
To display a default warning message, add the warning message you want to display with the key warning
in SessionErrors.
SessionErrors.add(request, "warning", "your-warning-message");
I would suggest documenting this in the section where default success/error messages in portlets is documented, but I couldn't find it. For more info on default messages, please see https://www.liferay.com/community/wiki/-/wiki/Main/User+Feedback+-+Success+and+Error+Messages+in+Portlets.
Please let me know if you have any questions.
Hi Pei-Jung,
Can you confirm that this is getting backported to 6.2 EE/CE? I see that you sent this PR to the 6.2.x branch, but the feature pull to Brian was to master.
Thanks!
Hi Rich,
The new feature doesn't get backported to 6.2. It's only for master. I sent PR to the 6.2.x branch because I couldn't find the markdown file on the master branch.
Yes, we have recently cleared out the master branch in preparation for working on 7.0 documentation. Thanks for your submission. If you're ever unsure of where to put something, just put it in the new-articles folder in either the develop, discover, or distribute folders.