Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL and facesmessages  RSS feed

Liming Xu
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all,

the current h:messages tag does not satisify my need (well, for my designers). Because every single message needs to be presented in the following view

<p> my message 1</p>
<p> my message 2</p>

no table, no lists, just a bunch of <p></p>

So I thought jstl's c:foreach fits my need the best. the problem is I just searched this forum, in a previous post, I see that foreach is not compatiable with JSF. so how would I go around this? suggestions please...

this is what I have now

<c:forEach items="${facesContext.messages}" var="facesmessage">
<p class="failrequire"><c ut value="${facesmessage.detail}" /></p></c:forEach>

mucho gracias.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!