This post is about a specific requirement that is to hide some values from adf based select one choice from UI
Previously I have posted about disabling some items from select one choice and this post uses same steps to hide values from lov
Blog about Oracle ADF, JDeveloper, PL/SQL, Java, JavaScript, jQuery and Other Web Technologies
<af:selectOneChoice value="#{bindings.LocationId.inputValue}" label="#{bindings.LocationId.label}" required="#{bindings.LocationId.hints.mandatory}" shortDesc="#{bindings.LocationId.hints.tooltip}" id="soc1" contentStyle="width:150px;color:red;"> <af:forEach items="#{bindings.Locations1.rangeSet}" var="list"> <af:selectItem label="#{list.City}" id="si1" value="#{list.LocationId}" disabled="#{ (bindings.DepartmentId.inputValue==100 and (list.LocationId==1000 || list.LocationId==1300)) || (bindings.DepartmentId.inputValue==110 and (list.LocationId==1500 || list.LocationId==1600 || list.LocationId==1700 || list.LocationId==1800 || list.LocationId==1900))}"/> </af:forEach> </af:selectOneChoice>