Re: How to compare two dates in validation.xml?
tm_jee <[email protected]> Fri, 08 Dec 2006 07:33:53 CST
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <2301961.1165584863339.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
Hi Nalini,
try Phil's suggestion. Normally one would like to add <![CDATA[]]>, but i guess it doesn't really matters in this case.
[code]
<validators>
<validator type="expression">
<param name="expression"><![CDATA[datelasteditedto.compareTo(datelasteditedfrom)>0]]></param>
</validator>
</validators>
[/code]
we might want to also have
[code]
<ww:actionerror />
[/code]
in the "input" page as well.
Also try placing the param tag and its content in one line, might be some parsing problem. Does the log indicate that the workflow and validation interceptor actually kicks in?
Does all this helps? It should work, I remember using it before.
cheers.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=52363&messageID=105982#105982
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]