[ http://jira.andromda.org/browse/BPM-171?page=comments#action_11821 ] Walter Itamar Mourão commented on BPM-171: ------------------------------------------
It looks like a good workaround, I don't know how validWhen handle primitives, but it should work. I will not use this way because (as I told before) I don't use dates as string in forms anymore. Anyway, I will warn you: probably you will face the same question again (using strings instead the java date/time type) in BPM-215. > validwhen doesn't work with java.util.Date > ------------------------------------------ > > Key: BPM-171 > URL: http://jira.andromda.org/browse/BPM-171 > Project: Bpm4Struts Cartridge > Type: Bug > Reporter: Walter Itamar Mourão > Assignee: Wouter Zoons > Attachments: testestruts.zip > > The validwhen validation doesn't work with the java.util.Date, since the > validator uses the toString method, and the java.util.Date.toString() doesn't > return a string suitable for comparison. Besides that, bpm4struts uses the > sufix AsDate in date fields, so the validwhen tries to use the String version > of the form attribute, which isn't suitable for comparison too. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Andromda-devel mailing list Andromda-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-devel