Email Validation
It can be achieved by two ways –
1.Clien side validation- This can be achieved by using af:validateRegExp inside af:inputText
<af:inputText id=”it1” label=”Email”>
<af:validateRegExp pattern="[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}"/>
</af:inputText>
2.Server side validation –
For this we need to write a custom validator method in managed bean and give
its reference to validator attribute of inputText.This can be found on :
http://oracleadf-java.blogspot.in/2012/11/custom-validator-in-oracle-adf-jsf_20.html
No comments:
Post a Comment