Re: how to show dynamic messages in validation
tm_jee <[email protected]> Tue, 19 Dec 2006 09:49:27 CST
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <21821411.1166543397522.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
I think with one-level of collection eg
[code]
List<Employee> employees = new ArrayList<Employee>();
[/code]
where there's a name property for Emplyee, we could maybe do something like
[code]
<validators>
<validator type="expression">
<param name="expression><![CDATA[employees.{? #this.name == null || #this.name.trim().length() <= 0}.size <= 0]]></param>
</validator>
</validators>
[/code]
rgds
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=54249&messageID=108867#108867
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]