[ http://galaxy.andromda.org:8080/jira/browse/BPM-153?page=comments#action_11224 ] Walter Itamar MourÃo commented on BPM-153: ------------------------------------------
How about generating one resource entry for each validwhen ? In application-resources: ...dtInit.validwhen_1=dtInit is required and must be lower the dtEnd In validation.xml <msg name="validwhen" key="...dtInit.validwhen_1"/> I don't know much about overriding the message, but I found: http://struts.apache.org/userGuide/dev_validator.html ... The default error message for a pluggable validator can be overriden with the msg element. So instead of using the msg attribute for the mask validator to generate the error message the msg attribute from the field will be used if the name of the field's name attribute matches the validator's name attribute. ... Another option could be allowing a tagged value for each parameter pointing to a string (key) in the application-resources. The validation.xml.vsl template should check if the tagged value exists and set the "msg" tag to the resource key. This option is more flexible. > Changing the default validator message > -------------------------------------- > > Key: BPM-153 > URL: http://galaxy.andromda.org:8080/jira/browse/BPM-153 > Project: Bpm4Struts Cartridge > Type: Improvement > Reporter: Walter Itamar MourÃo > Assignee: Wouter Zoons > Priority: Minor > > It could be good to have a way to change the default validator message. As an > example, the validwhen validation raises the same message as the required > validation, but it's much more flexible. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://galaxy.andromda.org:8080/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Andromda-devel mailing list Andromda-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-devel