My initial attempt was to do as you said... but it didn't work. I've played around with it and discovered that displaying faces messages attached to a control inside of a loop is problematic. Has anyone done this? The following is my code to allow users to modify a set of "Category" objects:
<a4j:repeat value="#{batchCategories}" var="cat"> | <ui:param name="i" value="#{batchCategories.rowIndex}"/> | <s:decorate id="name#{i}Decorate" template="/inc/Field.xhtml"> | <ui:define name="label">Name:</ui:define> | <h:inputText id="name#{i}" value="#{cat.name}"/> | </s:decorate> | </a4j:repeat> Instead of getting my form error messages displayed attached to the proper controls, I get: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed. in my logs. My decorator is fine, and works if I hardwire it to a particular item, like so: <ui:param name="cat" value="#{batchCategories.rowData}"/> | <ui:param name="i" value="#{batchCategories.rowIndex}"/> | <s:decorate id="name#{i}Decorate" template="/inc/Field.xhtml"> | <ui:define name="label">Name:</ui:define> | <h:inputText id="name#{i}" value="#{cat.name}"/> | </s:decorate> <ui:repeat> has the same behavior, except no warning in the logs. <c:forEach> doesn't display properly either... it puts all the messages in the global area. So... does anyone know how to display faces messages next to particular form controls inside a loop? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087423#4087423 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087423 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user