4 Replies Latest reply: Dec 6, 2012 2:49 AM by 908641 RSS

    Unable to get <f:selectItems/> itemLabel

    908641
      Hi

      We are on JDeveloper Studio Edition Version 11.1.1.6.0

      We have a jspx with a selectonechoice component populated from a VO datacontrol:

      <af:selectOneChoice value="#{bindings.ProfilesView1.inputValue}"
      label="Select A Profile"
      required="#{bindings.ProfilesView1.hints.mandatory}"
      shortDesc="#{bindings.ProfilesView1.hints.tooltip}"
      id="soc1">
      <f:selectItems value="#{bindings.ProfilesView1.items}" id="si1"/>
      </af:selectOneChoice>

      We need to modify the <f:selectItems > display label.

      We tried adding itemLabel/label to the <f:selectItems > tag
      <f:selectItems value="#{bindings.ProfilesView1.items}" itemLabel="#{bindings.ProfilesView1.items}" id="si1"/>
      but always get an error: “Attribute itemLabel not defined in element f:selectItems ”

      What should we do to get an itemLabel form <f:selectItems > ?