Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Validator firing in jsf page even if button has immediate="true"

SantoshVazaMar 17 2011 — edited Mar 17 2011
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
This post has been answered by Jobinesh-Oracle on Mar 17 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 14 2011
Added on Mar 17 2011
4 comments
109 views