Forums Register Login

JSTL and facesmessages

+Pie Number of slices to send: Send
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.
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1261 times.
Similar Threads
JSTL - why can't I set param property?
cannot iterate over same Result more than once
JSTL/EL c:if inside of c:forEach
iterating through a Map
forEach nested loop
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 03:25:04.