Thursday, May 16, 2013

ADF validations with input validation tags

بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------

لعمل validation اسحب input Text وداخله اسحب واحد من validation

Validate maximum length;
<af:inputText id="id0" value="12A" label="Maximum length validator"> 
<af:validateLength maximum="5"/> </af:inputText>
Validate minimum length;
<af:inputText id="id00" value="12A" label="Minimum length validator">
<af:validateLength minimum="3"/>
</af:inputText>

Validate length range;
<af:inputText id="id01" value="12A" label="Length Range Validator">
<af:validateLength minimum="1" maximum="5"/>
</af:inputText>

Validate long range;
<af:inputText id="id2" value="10" label="Long Range Validator">
<af:validateLongRange minimum="5" maximum="50"/>
</af:inputText>

Validate double range;
<af:inputText id="id3" value="8.6" label="Double Range Validator">
<af:validateDoubleRange minimum="4.1" maximum="8.9"/>
</af:inputText>

Validate regular expression;
<af:inputText id="id4" value="9999" label="Regular Expression validation">
<af:validateRegExp pattern="[9]*"/ >
</af:inputText>

Date validation with filter condition;
<af:inputDate id="id5" value="2011-05-21"
label="Select a date, but not a Friday">
<af:convertDateTime pattern="yyyy-MM-dd"/>
<af:validateDateRestriction invalidDaysOfWeek="Fri"/>
</af:inputDate>

Validate date range;
<af:inputDate id="mdf3ee" value="2011-11-25" label="Submission period">
<af:convertDateTime pattern="yyyy-MM-dd"/>
<!-- Supports ISO date format strings of the form "yyyy-MM-dd" -->
<af:validateDateTimeRange minimum="2011-11-16" maximum="2011-12-16"/>
</af:inputDate>
والسلام عليكم ورحمته الله وبركاته
<< سبحانك اللهم وبحمدك أشهد أن لا اله الا أنت أستغفرك وأتوب اليك >>

No comments :

Post a Comment

Related Posts Plugin for WordPress, Blogger...