• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSTL and facesmessages

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic