Thursday, June 18, 2015

JDev/ADF sample - Select One Choice with Select Items Tag

  • Select One Choice with Select Items Tag. If you need to implement select one choice based on alternative data sources (not based on ADF BC) - you shouldn't use af:forEach inside af:selectOneChoice component. Don't get confused with af:forEach tag, this tag is supposed to generate multiple components and not to iterate over a collection of objects and render HTML for each item. There could be cases, when choice list data will come duplicated, with af:forEach tag applied. I would suggest to construct array of SelectItem objects and return it to the f:selectItems tag to be rendered.
    Download - CustomSelectListApp.zip

No comments: