<?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 : Verification and MVVM</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Verification and MVVM</description>
  <pubDate>Wed, 29 Jul 2026 17:51:08 -700</pubDate>
  <lastBuildDate>Mon, 21 Mar 2011 08:38:56 -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=2550</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>Verification and MVVM : By &amp;#034;UI validation&amp;#034; I&amp;#039;d...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2550&amp;PID=10228#10228</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2550<br /><strong>Posted:</strong> 21-Mar-2011 at 8:38am<br /><br />By "UI validation" I'd meant that the client application itself is insecure and that you'll also need validation on the server.&nbsp; In DevForce, validation on entities in the model is performed on the server by default during the save.&nbsp; Since you're writing internal applications, security is less of a concern and you do have more leeway in structuring validation to meet your needs.&nbsp; It sounds like the validation you require is more in the "business logic" realm than simple property-level validation too.<DIV>&nbsp; </DIV><DIV></DIV><DIV></DIV>Ward has been swamped but things should be settling down this week, so if you'd still like to engage him about this give him another ping. ]]>
   </description>
   <pubDate>Mon, 21 Mar 2011 08:38:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2550&amp;PID=10228#10228</guid>
  </item> 
  <item>
   <title>Verification and MVVM : Thanks for the response kimj....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2550&amp;PID=10227#10227</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2550<br /><strong>Posted:</strong> 21-Mar-2011 at 4:43am<br /><br />Thanks for the response kimj. I actually did send Ward a question but never got a response -&nbsp;which led me to a post here. I have seen no reason to change what we are doing and what we have works well so I'm in no rush.<DIV>&nbsp;</DIV><DIV>When you said "You can't rely upon UI validation alone in a secure application" I can't agree more but I wasn't sure if you were implying that the VM is also UI validation. The VM (at least in this case) is on the client and therefore subject to attack and for that reason alone I question making the model more knowledgable but then that still means having validation to maintain in two domains which is also distasteful. Fortunately in our case our current applications are all internal.</DIV>]]>
   </description>
   <pubDate>Mon, 21 Mar 2011 04:43:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2550&amp;PID=10227#10227</guid>
  </item> 
  <item>
   <title>Verification and MVVM : Hi Robert. Sorry that no one responded...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2550&amp;PID=10208#10208</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2550<br /><strong>Posted:</strong> 18-Mar-2011 at 5:55pm<br /><br />Hi Robert.&nbsp; Sorry that no one responded to your first post, I think it got lost among some other problems last week. <DIV>&nbsp;</DIV><DIV>Your questions are actually good ones to send directly to Ward, since he loves to talk theory.&nbsp; :-)</DIV><DIV>&nbsp;</DIV><DIV>If you're not binding directly to any entity properties then you're right that you're not benefiting from validation on the model itself.&nbsp; At least not for displaying validation errors within the UI.&nbsp; Validation on entities is still performed on the server by default, however, and actually for security purposes you probably do always want this validation to be performed and to have it be fairly thorough.&nbsp; You can't rely upon UI validation alone in a secure application.</DIV><DIV>&nbsp;</DIV><DIV>You can also use the VerifierEngine and DevForce verifiers on any type of object, not just an Entity.&nbsp; So you can use it directly in your ViewModels if it would help manage the validation process.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>We've got several samples which use MVVM in various flavors and also make use of DevForce validation.&nbsp; If interested, you can find &nbsp;them here - <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/DevForce-MVVM-Patterns" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/DevForce-MVVM-Patterns</A>.&nbsp; </DIV>]]>
   </description>
   <pubDate>Fri, 18 Mar 2011 17:55:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2550&amp;PID=10208#10208</guid>
  </item> 
  <item>
   <title>Verification and MVVM : I will add to this since no one...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2550&amp;PID=10194#10194</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2550<br /><strong>Posted:</strong> 17-Mar-2011 at 4:44am<br /><br /><P>I will add to this since no one has responded.</P><DIV>I see the validation at the model level to be very base level validation. It cannot handle all the validation that the UI would need and I don't believe it should (or could)&nbsp;know enough to perform validation based on business or security logic. Any validation that occurs on the model should only be validation that can be applied across any use of that model which either means you don't reuse the model much (or any) or you have few validation points in your model.</DIV><DIV>&nbsp;</DIV><DIV>Then when I add the fact that I don't like binding the V directing to the M even through an exposed property on the VM - so any validation raised on the&nbsp;M now has to be routed on up. This adds a little complexity but nothing to worry about. Then if the VM has a few of its own validations to perform you may need to manage the display of the various sources of the validation sent to the V.</DIV><DIV>&nbsp;</DIV><DIV>I realize not everyone needs the complex validation that my apps do and for drag-n-drop simplicity it seems like (and is)&nbsp;a quick and easy solution but maybe I am over-thinking this or missing a piece of the puzzle.</DIV><DIV>&nbsp;</DIV><DIV>The above is my opinion which is based on the apps I have personally developed.</DIV><span style="font-size:10px"><br /><br />Edited by midnit - 21-Mar-2011 at 4:01am</span>]]>
   </description>
   <pubDate>Thu, 17 Mar 2011 04:44:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2550&amp;PID=10194#10194</guid>
  </item> 
  <item>
   <title>Verification and MVVM : tap...  tap...  tap... </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2550&amp;PID=10193#10193</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2550<br /><strong>Posted:</strong> 17-Mar-2011 at 4:17am<br /><br />tap...<DIV>&nbsp;</DIV><DIV>tap...</DIV><DIV>&nbsp;</DIV><DIV>tap...</DIV>]]>
   </description>
   <pubDate>Thu, 17 Mar 2011 04:17:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2550&amp;PID=10193#10193</guid>
  </item> 
  <item>
   <title>Verification and MVVM : Where does your verification fit...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2550&amp;PID=10143#10143</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2550<br /><strong>Posted:</strong> 10-Mar-2011 at 5:50am<br /><br />Where does your verification fit into MVVM? Well, yes I know it sits on the M...but if your not binding to the properties of M how else does it fit in? Currently I am doing my own validation checking and raising via INotifyDataErrorInfo in the VM which is exposing simple properties which are backed by data obtained from the M.<DIV></DIV><DIV>&nbsp;</DIV><DIV>I have not seen much value in using&nbsp;the verification but perhaps I am missing something. I was under the impression I would have to attach to the entity events to bubble them(verification errors)&nbsp;up through my VM - is this correct? Please enlighten me.</DIV>]]>
   </description>
   <pubDate>Thu, 10 Mar 2011 05:50:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2550&amp;PID=10143#10143</guid>
  </item> 
 </channel>
</rss>