<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Tip: Validation with a MultiValidator</title>
	<atom:link href="http://eclipsesource.com/blogs/2009/02/27/databinding-crossvalidation-with-a-multivalidator/feed/" rel="self" type="application/rss+xml" />
	<link>http://eclipsesource.com/blogs/2009/02/27/databinding-crossvalidation-with-a-multivalidator/</link>
	<description>Eclipse Equinox OSGi</description>
	<lastBuildDate>Wed, 16 May 2012 08:22:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Matthew Hall</title>
		<link>http://eclipsesource.com/blogs/2009/02/27/databinding-crossvalidation-with-a-multivalidator/comment-page-1/#comment-883</link>
		<dc:creator>Matthew Hall</dc:creator>
		<pubDate>Thu, 12 Mar 2009 23:24:35 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=321#comment-883</guid>
		<description>Another cool thing about MultiValidator is that it helps you suspend target-to-model updates until validation passes.  In the above example, we can prevent the model period start and end from being updated with invalid values.  If you create the PeriodValidator after startObservable and endObservable but before the bindings, you can:


context.bindValue(
&#160;&#160;&#160;&#160;periodValidator.observeValidatedValue(startObservable),
&#160;&#160;&#160;&#160;BeansObservables.observeValue(this.period, Period.PROP_START) );
context.bindValue(
&#160;&#160;&#160;&#160;periodValidator.observeValidatedValue(endObservable),
&#160;&#160;&#160;&#160;BeansObservables.observeValue(this.period, Period.PROP_END) );
</description>
		<content:encoded><![CDATA[<p>Another cool thing about MultiValidator is that it helps you suspend target-to-model updates until validation passes.  In the above example, we can prevent the model period start and end from being updated with invalid values.  If you create the PeriodValidator after startObservable and endObservable but before the bindings, you can:</p>
<p>context.bindValue(<br />
&nbsp;&nbsp;&nbsp;&nbsp;periodValidator.observeValidatedValue(startObservable),<br />
&nbsp;&nbsp;&nbsp;&nbsp;BeansObservables.observeValue(this.period, Period.PROP_START) );<br />
context.bindValue(<br />
&nbsp;&nbsp;&nbsp;&nbsp;periodValidator.observeValidatedValue(endObservable),<br />
&nbsp;&nbsp;&nbsp;&nbsp;BeansObservables.observeValue(this.period, Period.PROP_END) );</p>
]]></content:encoded>
	</item>
</channel>
</rss>

