Ajax Validation
WebDSL provides input components that validate the inputs using ajax.
built-in value types:
inputajax(String/Secret/URL/Email/Text/WikiText)
inputajax(Int/Bool/Float/Long)
reference types:
inputajax(Entity/List<Entity>/Set<Entity>)
selectajax(Entity/Set<Entity>)
radioajax(Entity)
provide selection options:
inputajax(Entity/List<Entity>/Set<Entity>,List<Entity>)
selectajax(Entity/Set<Entity>,List<Entity>)
radioajax(Entity,List<Entity>)
Selection options can also be provided using the allowed annotation on an entity property. Example:
entity Person{
parent -> Person (allowed=from Person as p where p != this)
}
