I think IJavascriptValidator would be the best approach, as we need *javascript code somewhere in the client-side.
Behaviors can do that too, and more (including header contribution and cooperating with components). So an optional interface with getValidationBehavior or whatever is the way to go imho. Eelco
