Ok perfect. I am trying to do the same thing but for some unknown reason my callback isn't being called. Here is my site.xconf property as well as my .java file. What the heck am I missing? I don't see my println statement coming out in the MS log.
<service context="default" name="com.ptc.core.ui.validation.UIComponentValidator"<br"/> targetFile="codebase/service.properties">
<option cardinality="duplicate" order="0" overridable="true"<br"/> requestor="wt.change2.WTChangeActivity2"
selector="wizardEdit"
serviceClass="com.steelcase.enterprise.change2.validators.ChangeMgmtCreateWizardsValidator" />
</service>
package com.steelcase.enterprise.change2.validators;
import java.util.Locale;
import wt.util.WTException;
import com.ptc.core.ui.validation.*;
public class ChangeMgmtCreateWizardsValidator extends DefaultUIComponentValidator {
@Override
public UIValidationResult validateFormSubmission(UIValidationKey validationKey,
UIValidationCriteria validationCriteria,
Locale locale) throws WTException {
System.out.println("validateFormSubmission() called");
UIValidationResult result = UIValidationResult.newInstance(validationKey, UIValidationStatus.NOT_VALIDATED);
// perform your business logic here
// if you want to execute the action, do this:
result = UIValidationResult.newInstance(validationKey, UIValidationStatus.PERMITTED);
// if you want to abort the action, do this:
// result = UIValidationResult.newInstance(validationKey, UIValidationStatus.DENIED);
// if you want to prompt the user for confirmation, do this:
// result = UIValidationResult.newInstance(validationKey, UIValidationStatus.PROMPT_FOR_CONFIRMATION);
return result;
}
}
Patrick Williams | Engineering Systems | c: 616.947.2110
[cid:image002.jpg@01CE8D31.AB24E980]