This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes JSTL and facesmessages Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "JSTL and facesmessages" Watch "JSTL and facesmessages" New topic
Author

JSTL and facesmessages

Liming Xu
Greenhorn

Joined: Jan 22, 2002
Posts: 19
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.
 
 
subject: JSTL and facesmessages
 
Similar Threads
JSTL/EL c:if inside of c:forEach
JSTL - why can't I set param property?
forEach nested loop
iterating through a Map
cannot iterate over same Result more than once