protected void processValidatorScript(String scriptPath, IRequestCycle cycle,
IFormComponent field, Map symbols)
{
IEngine engine = field.getPage().getEngine();
IScriptSource source = engine.getScriptSource();
IForm form = field.getForm();
Map finalSymbols = (symbols == null) ? new HashMap() : symbols;
finalSymbols.put(FIELD_SYMBOL, field);
finalSymbols.put(FORM_SYMBOL, form);
finalSymbols.put(VALIDATOR_SYMBOL, this);
Resource location = new ClasspathResource(engine.getClassResolver(), scriptPath);
IScript script = source.getScript(location);
// If there's an error, report it against the field (this validator object doesn't
// have a location).
PageRenderSupport pageRenderSupport = TapestryUtils.getPageRenderSupport(cycle, field);