From: Mike W. <mik...@st...> - 2001-04-20 01:38:27
|
Thought I should post this to the list since we have some new blood :) BTW, Welcome Brett! Mark and I were discussing ways of adding user defined messagging to JValid. Here is one idea that sounds like it would work. Feed back is welcome! Here is the proposed change to the xml. The new attributes are friendlyName, minInclusiveMessage and maxInclusiveMessage. There would be a matching ??Message attribute for each possible validation error. The strings enclosed in {{ }} would be replaced at runtime with the appropriate values. <attribute name="orderDate"> <simpleType baseType="date"> <minInclusive value="2/28/2001" /> <maxInclusive value="5/28/2001" /> </simpleType> <friendlyName value="Order Date" /> <minInclusiveMessage value="The value {{value}} is less than the minimum allowed value {{minInclusive}} for {{friendlyName}}." /> <maxInclusiveMessage value="The value {{value}} is greater than the maximum allowed value {{maxInclusive}} for {{friendlyName}}." /> </attribute> -- ---------------------------- Mike Williams mik...@st... http://www.mikesbox.com ---------------------------- May the Source be with you! ---------------------------- |