Hi all,
I have an action bean with a property that has a List of Strings....
public SampleActionBean extends implements ActionBean {
private List<String> names;
public List<String> getNames() { return names; }
@Validate(required=true)
public void setNames(List<String> names) { return this.names = names; }
}
...and jsp that allows the user to edit them...
<stripes:form action="/Sample.action">
<c:forEach items="${pixlist}" var="pix" varStatus="loop">
<stripes:text name="names[${loop.index}]" size="20"
class="entry"></stripes:text>
</c:forEach>
</stripes:form>
However, if I leave any (or all) fields blank......no validation errors
occur. The binding works fine though.
Why doesn't the validation trigger ?
Thanks,
Wade.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users