Validator firing in jsf page even if button has immediate="true"
Dear All,
I have created a jsf2.0 application in jdeveloper. in which i have created a sample login page which looks follows
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<h:form id="f1">
Name=
<h:inputText id="Name" value="#{loginBean.userName}" immediate="true"
required="true"/>
<h:message for="Name" id="m2"></h:message>
Password=
<h:inputSecret id="Password" value="#{loginBean.password}" immediate="true"
required="true"/>
<h:message for="Password" id="m1"></h:message>
<h:commandButton immediate="true" value="Submit"
actionListener="#{loginBean.processLogin}" id="cb1"/>
</h:form>
</af:document>
</f:view>
</jsp:root>
The problem is that when i put immediate="true" the validators are still firing......am i doing something wrong?
Regards,
Santosh
Component Version
========= =======
ADF Business Components 11.1.1.59.23
Java(TM) Platform 1.6.0_21
Oracle IDE 11.1.1.4.37.59.23
Versioning Support 11.1.1.4.37.59.23