Created
October 15, 2014 05:47
-
-
Save ranraj/741bcc2f22ec57ac9e58 to your computer and use it in GitHub Desktop.
Liferay portlet session error iterator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page import="java.util.Iterator"%> | |
<%@page import="com.liferay.portal.kernel.servlet.SessionErrors"%> | |
<% | |
Iterator<String> itErrors = SessionErrors.iterator(renderRequest); | |
while (itErrors.hasNext()){ | |
String errorKey = itErrors.next(); | |
%> | |
<%=errorKey%> | |
<% | |
} | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When your Liferay-ui:error giving trouble to complete your task. Just use the above snippet to itereate and check whether the session error key present.