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!

af:SelectOneChoice - Get Selected Value is not working

user7751421Feb 28 2019 — edited Mar 1 2019

hi All,

I am trying to get the selected value from the drop down and access it in backing bean...using  this.selectedUser.getValue() once the button is clicked...

BUT I am getting the NULL value , and also valueChangeListener is not getting fired...Please help

            <af:selectOneChoice label="Select User" unselectedLabel="User is Required" contentStyle="width: 240px"

            autoSubmit="true" valueChangeListener="#{HomeManagedBean.setSelUser}" binding="#{HomeManagedBean.selectedUser}"

            value="#{HomeManagedBean.homebean.ruser}"  id="soc1">

               <f:selectItems value="#{HomeManagedBean.userselect}" id="si1" />

            </af:selectOneChoice>

Thanks,

Comments
Post Details
Added on Feb 28 2019
8 comments
2,640 views