| Issue 110: | TValidationSummary incorrectly showing error when used with: TActiveCustomValidator + TRegularExpressionValidator | |
| Back to list |
What steps will reproduce the problem?
Put a TActiveCustomValidator and any other validator + TValidationSummary
1. fill the controls so that the TActiveCustomValidator shouldn't fire and
the other validator should
2. make a submit - the TActiveCustomValidator error mnessage is shown,
even though it should't.
3. Make the submit again without changing anything - the
TActiveCustomValidator error message isn't shown anymore
4. Change the control that is validated by TActiveCustomValidator so that
it still remains valid
5. Make the submit - the Error Message is shown again
Example:
page:
<com:TForm ID="form">
<com:TTextBox ID="text"/><br />
<com:TTextBox ID="text2" Text="This is a second textbox - it has nothing
to do with active validation"/>
<com:TButton ID="button"
Text="Validation button"
CausesValidation="True"/>
<com:TActiveCustomValidator
ControlToValidate="text"
OnServerValidate="customValidation"
ErrorMessage="Server validation not successful"
Text="*"
Display="Dynamic"/>
<com:TRegularExpressionValidator
ControlToValidate="text2"
RegularExpression="[0-9]{1,10}"
ErrorMessage="Text2 must be a integer"
Text="*"
Display="Dynamic"/>
<com:TValidationSummary
AutoUpdate="false"
Display="None"
ShowMessageBox="true"
HeaderText="The errosrs are:"
ShowSummary="false" />
<com:TJavascriptLogger ToggleKey="j"/>
</com:TForm>
php:
class CustVal extends TPage{
public function customValidation($sender,$param){
if ($this->text->Text=='') {$param->IsValid=false;}
else {$param->IsValid=true;}
}
}
What version of the product are you using? On what operating system?
Windows XP SP3, Apache 2.2, Prado 3.1.4
|
|
,
May 29, 2009
(No comment was entered for this change.)
Labels: -Milestone-3.1.5 Milestone-3.1.6
|
|
,
Jul 22, 2009
Move to 3.1.7
Labels: Milestone-3.1.7
|
|
|
|