In what way doesn't it work? Are you getting an exception or is nothing showing? I see you don't have anything inside of the c:forEach tags. Did you try outputting something here? I think you want something like:
<h:panelGrid columns="2" cellpadding="5" rendered="#{! empty facesContext.maximumSeverity}">
<c:forEach var="msg" items="${facesContext.getMessageList(cc.attrs.for)}">
<h:outputText value="#{msg.severity}"/>
<h:outputText value="#{msg.detail}"/>
</c:forEach>
</h:panelGrid>
Where severity and detail are the two fields you actually want to display from msg.
-ds
[Message sent by forum member 'digitalseraphim']
http://forums.java.net/jive/thread.jspa?messageID=394697