/* * Copyright (c) Blue Fish Development Group 1996-2004. All rights reserved. */ package com.dmdeveloper.wdk.validation.example1; import com.documentum.web.common.ArgumentList; import com.documentum.web.form.Control; import com.documentum.web.formext.component.Component; public class Example1Component extends Component { // ... (onInit, onRender, other component methods) ... public void onValidate(Control control, ArgumentList args) { // Do nothing, let validation happen. } public void onSubmit(Control control, ArgumentList args) { if (getIsValid()) { // ... (business logic to process form and determine where to go next) ... // setComponentJump(...); } else { // If input invalid, let us return to the form. } } }