Wednesday, July 20, 2011

Adding an ADF LOV to the aether

1) Create the View Object

  • This is done as you would create any VO and add the VO to the application module. Dont forget to refresh Data Controls section.

2) Bind LOV on page defs (Executable section)

  • Navigate to the page you want to add the LOV to
  • Click on the bindings tab.
  • Click the green plus button on the Executables section
  • Select iterator
  • Press ok
  • Select your newly created VO
  • Press OK
3) Add a List to bindings
  • Press the green plus button on the Bindings Section
  • Select list then ok
  • Standalone select one value list then ok
  •  Select your Iterator from the base data source list
  • Select your display attribute

4) Create SelectItem on page
  •   Add the following tag to your page REMEMBER that LovCode must be replaced by your newly create binding
                  <af:selectOneChoice value="#{bindings.LovCode.inputValue}" label="#{viewBundle.COMMISSION_LBL_COMMISSIONTYPE}"
                                      shortDesc="#{bindings.LovCode.hints.tooltip}" id="soc4"
                    <f:selectItems value="#{bindings.LovCode.items}" id="si4"/>                  </af:selectOneChoice>

No comments:

Post a Comment