src/View/InputForm.php
protected function validateForm($cleanError = true)
    {
        if($cleanError == true)
        {
            $this->validateErrors = array();
        }
        $this->dataPanel->rewind();
        while($this->dataPanel->valid())
        {
            /* @var $element Element */
            $element = $this->dataPanel->current();
            if($element->label)
            {
                $elementName = $element->label;
            }
            else
            {
                $elementName = $element->text;
            }
            if ($element->checkRequired() === true &&
                    ($element->value==null || $element->value == ""))
            {
                $errorMessage = $this->getMessage("FORM_ELEMENT_REQUIRED",array($elementName));
                $this->validateErrors[$element->objectName] = $errorMessage;
                //return false;
            }
            elseif ($element->value!==null && $element->Validate() == false)
            {
                $validateService = Openbizx::getService(VALIDATE_SERVICE);
                $errorMessage = $this->getMessage("FORM_ELEMENT_INVALID_INPUT",array($elementName,$value,$element->validator));                
                if ($errorMessage == false)
                { //Couldn't get a clear error message so let's try this
                    $errorMessage = $validateService->getErrorMessage($element->validator, $elementName);
                }
                $this->validateErrors[$element->objectName] = $errorMessage;
                //return false;
            }
            $this->dataPanel->next() ;
        }
        if (count($this->validateErrors) > 0)
        {
            throw new Openbizx\Validation\Exception($this->validateErrors);
            return false;
        }
        return true;
    }
protected function validateForm($cleanError = true)
    {
        if($cleanError == true)
        {
            $this->validateErrors = array();
        }
        $this->dataPanel->rewind();
        while($this->dataPanel->valid())
        {
            /* @var $element Element */
            $element = $this->dataPanel->current();
            if($element->label)
            {
                $elementName = $element->label;
            }
            else
            {
                $elementName = $element->text;
            }
            if ($element->checkRequired() === true &&
                    ($element->value==null || $element->value == ""))
            {
                $errorMessage = $this->getMessage("FORM_ELEMENT_REQUIRED",array($elementName));
                $this->validateErrors[$element->objectName] = $errorMessage;
                //return false;
            }
            elseif ($element->value!==null && $element->Validate() == false)
            {
                $validateService = Openbizx::getService(VALIDATE_SERVICE);
                $errorMessage = $this->getMessage("FORM_ELEMENT_INVALID_INPUT",array($elementName,$value,$element->validator));                
                if ($errorMessage == false)
                { //Couldn't get a clear error message so let's try this
                    $errorMessage = $validateService->getErrorMessage($element->validator, $elementName);
                }
                $this->validateErrors[$element->objectName] = $errorMessage;
                //return false;
            }
            $this->dataPanel->next() ;
        }
        if (count($this->validateErrors) > 0)
        {
            throw new Openbizx\Validation\Exception($this->validateErrors);
            return false;
        }
        return true;
    }
Validate input on EasyForm level
default form validation do nothing.
developers need to override this method to implement their logic

@return boolean