public void wdDoBeforeAction(com.sap.tc.webdynpro.progmodel.api.IWDBeforeAction validation) { //@@begin wdDoBeforeAction // If the current action is not validating, then we dont't care whether there is junk // on the screen or not if (validation.isCurrentActionValidating()) // As long as the view reference is not null if (v != null) { // Reset the list of visited UI elements held by the input validator. It is easier to // perform this as a separate method call rather than embedding this functionality into // the UITreeVisitor. This is because the visit() method is called recursively. uiTreeVisitor.reset(); uiTreeVisitor.visit(v.getRootElement()); } else msgMgr.reportWarning("Unable to validate the UI tree because it is null"); //@@end }