| 
 | 
| Re: What is the difference between "@DependsOn" and "FilteredListener<PropertyCont [message #1219525 is a reply to message #1219515] | 
Wed, 04 December 2013 07:07    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
In my case, I want when any of A, B, or C changes, all of them get re-validated. So, I did the following: 
 
@Override
protected void initValidationService()
{
	final Listener listener = new FilteredListener<PropertyContentEvent>(){
		@Override
		protected void handleTypedEvent( final PropertyContentEvent event )
		{
			refresh();
		}
	};
	final X prop_X = context( X.class );
	for(Property property:prop_X.properties()){
		property.attach(listener);
	}
}
 
 
This should do .. Right? 
Well, sometimes it does, and sometimes not! Sometimes I change A, then B & C get re-validated. Sometimes I change B, and only A gets re-validated!! Do you know any possible reasons for such strange behavior?
 |  
 |  
  | 
 | 
Powered by 
FUDForum. Page generated in 1.07675 seconds