<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : How to override default verifiers offered by Devforce</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : How to override default verifiers offered by Devforce</description>
  <pubDate>Wed, 10 Jun 2026 11:31:55 -700</pubDate>
  <lastBuildDate>Thu, 17 Dec 2009 21:42:01 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1586</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>How to override default verifiers offered by Devforce : Thanks a lot!it worked </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1586&amp;PID=5953#5953</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=626" rel="nofollow">pchavan2009</a><br /><strong>Subject:</strong> 1586<br /><strong>Posted:</strong> 17-Dec-2009 at 9:42pm<br /><br />Thanks a lot!&nbsp;it worked]]>
   </description>
   <pubDate>Thu, 17 Dec 2009 21:42:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1586&amp;PID=5953#5953</guid>
  </item> 
  <item>
   <title>How to override default verifiers offered by Devforce :   pchavan: You can set up a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1586&amp;PID=5952#5952</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1586<br /><strong>Posted:</strong> 17-Dec-2009 at 4:51pm<br /><br /><DIV></DIV><DIV></DIV><FONT size=2><P>pchavan:</P><DIV>You can set up a <EM>PropertyNameToDisplayNameTranslator</EM> delegate to make verifiers use the display name instead of the property name in their messages, as follows:</DIV><DIV><FONT size=2><P>_entityManager.VerifierEngine.PropertyNameToDisplayNameTranslator =</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>&nbsp; delegate</FONT></FONT><FONT size=2>(</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Type</FONT></FONT><FONT size=2> pType, </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>String</FONT></FONT><FONT size=2> pPropertyName) {</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp; var</FONT></FONT><FONT size=2> attr = </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>ReflectionFns</FONT></FONT><FONT size=2>.GetAttribute&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>DisplayAttribute</FONT></FONT><FONT size=2>&gt;(pType.GetProperty(pPropertyName));</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> attr.Name;</P><P>};</P></FONT></FONT><FONT size=2></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Then just set the Display Names for your properties, as desired, in the Object Mapper -- e.g., set the Display Name for the EmpName property to "Employee Name" -- and the verifier will use that name in the message.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Thu, 17 Dec 2009 16:51:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1586&amp;PID=5952#5952</guid>
  </item> 
  <item>
   <title>How to override default verifiers offered by Devforce : In my Employee Class, property...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1586&amp;PID=5935#5935</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=626" rel="nofollow">pchavan2009</a><br /><strong>Subject:</strong> 1586<br /><strong>Posted:</strong> 15-Dec-2009 at 3:04am<br /><br /><P>In my <FONT color=#3399ff>Employee </FONT>Class, property <FONT color=#33cccc>EmpName </FONT>cannot be blank.</P><DIV>In the ServerModelDesigner, the <FONT color=#3399cc>StringLengthVerifier</FONT> is added with <FONT color=#3399ff>IsRequired </FONT>set to true, due to which the devforce's&nbsp;default&nbsp;validation message "EmpName is required" gets displayed when we call the VerifierEngine.Execute(...) function.</DIV><DIV>&nbsp;</DIV><DIV>We have partial class of <FONT color=#3399ff>Employee </FONT>where we create verifiers related to <FONT color=#3399ff>Employee</FONT>.</DIV><DIV>We need to override the StringLengthVerifier created in the ServerModelDesigner and show our custom message as to "<FONT color=#00cccc>Employee Name is required</FONT>" instead of "<FONT color=#3399cc>EmpName is required</FONT>".</DIV><DIV>&nbsp;</DIV><DIV>So when we call the VerifierEngine.Execute(...)&nbsp; function, it should return only one VerifierResult&nbsp;"<FONT color=#00cccc>Employee Name is required</FONT>"</DIV><DIV>&nbsp;</DIV><DIV>Can any one&nbsp;please respond with a solution?</DIV>]]>
   </description>
   <pubDate>Tue, 15 Dec 2009 03:04:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1586&amp;PID=5935#5935</guid>
  </item> 
 </channel>
</rss>