Hi Geert,

Indeed, problem solved. Thanks very much for your help!

I'm digging deeper into RIFE, and the joy just keeps increasing :-)

Frederic

On Sat, 2 Sep 2006 09:29:13 +0200, "Geert Bevin" <[EMAIL PROTECTED]> said:
> Hi Frederic,
> 
> there's only the sameAs() constraint that does property-value  
> comparison in a bean. However, you don't need a constraint to perform  
> validation.
> 
> You can very easily add your own validation rule, for example:
> .addRule(new AbstractValidationRule() {
>          public boolean validate() {
>              Couple bean = (Couple)getBean();
>              return bean.getPerson1Id() == bean.getPerson12d();
>          }
> 
>          public ValidationError getError() {
>              return new ValidationError.INVALID("person1Id");
>          }
>      })
> 
> Hope this helps,
> 
> Geert
-- 
  
  [EMAIL PROTECTED]

_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to