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!

Problem while ADF validation for af:selectOneRadio

754960Feb 19 2010 — edited Mar 20 2012
I am facing this problem during adf validation for various components in my application. I have setup some inputtbox and some selectOneRadio fields on my jspx page.
Now I have set the required property to true for all of them.

When I try to run this page, and press the submit button. It displays the validation errors for input boxes only. When I put values into the all input box and submit page again, it then shows me validation error for radio components. Now my requirement is this validation error should have been displayed along with when the validation error for input text is getting displayed.

Anyone having idea about this, please respond. I am struggling to move forward with it. An early response on this is highly appreciated.

The code snippet which I am using is under -

<?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:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1" title="test">
<af:form id="f1">
<af:panelFormLayout id="pfl1">
<af:inputText label="Label 1" id="it1" showRequired="true"
required="true"/>
<af:inputText label="Label 2" id="it2" showRequired="true"
required="true"/>
<af:inputText label="Label 3" id="it3" showRequired="true"
required="true" />
<af:commandButton text="commandButton 1"
action="#{productEligibilityBean.proceed}"
id="cb1" />
</af:panelFormLayout>
<af:panelFormLayout id="pfl2">
<af:selectOneRadio label="Label 1" id="sor1" required="true"
showRequired="true">
<af:selectItem label="yes" value="yes" id="si4"/>
<af:selectItem label="no" value="no" id="si3"/>
</af:selectOneRadio>
</af:panelFormLayout>
</af:form>
</af:document>
</f:view>
</jsp:root>

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 17 2012
Added on Feb 19 2010
5 comments
1,986 views