ComponentResources component, String expression, Location location)
{
Object fieldAsObject = component.getComponent();
if (!Field.class.isInstance(fieldAsObject))
throw new TapestryException(BindingsMessages.validateBindingForFieldsOnly(component),
location, null);
Field field = (Field) fieldAsObject;
// The expression is a validator specification, such as "required,minLength=5".