Dynamically Populating the Options in a Dropdown Sample

Demonstrates how to make a dynamic dropdown list by databinding a database field to a <netui:select> tag.

Concepts Demonstrated by this Sample

Location of Sample Files

In the SamplesApp, the sample is located at:

SamplesApp/WebApp/handlingData/dropdown

On the local file system, the sample is located at:

BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebApp\handlingData\dropdown

How to Run the Sample

 

  1. Start WebLogic Server in the Workshop domain.
    • On Microsoft Windows systems, from the Start menu, choose BEA WebLogic Platform 8.1-->Examples-->WebLogic Workshop-->Launch Examples Server.
    • On Linux or Solaris systems, run:

      BEA_HOME/weblogic81/samples/workshop/startWebLogic.sh

  2. Launch the page flow either by opening it in WebLogic Workshop and selecting the Start operation or by entering http://localhost:7001/WebApp/handlingData/dropdown/dropdownController.jpf in the address bar of your browser. If WebLogic Server is running in the Workshop domain on this machine, you may click here to run the sample.

 

Related Topics

<netui:select> Tag

<netui:selectOption> Tag