How to show error message in liferay portal?
问题 How to show error message in liferay portal? I read on liferay.com site that for show error message I can use liferay-ui:error tag from tag library, but it's not working, how to use it? 回答1: You are right in about "liferay-ui:error" tag so on your JSP you will have: <%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %> <liferay-ui:error key="some-error" message="Your error message goes here!" /> Then in your Java code you will need either the RenderRequest or ActionRequest