Thursday Feb 16, 2012

Creating Dynamic ADF Input Forms with Iterator

I showed before how to use the dynamic tag library to create dynamic forms/tables that can show an unknown number of fields. While using those tags is very easy, they are meant for read-only data view. What if you actually want to create a page with input fields, but you don't know ahead of time how many fields will be needed?

Well here is a little solution.

It uses an array that lists the fields you'll want to show, and then an iterator in the page to run over this array and display the fields.

Application zip file is here.

And here is a short demo showing the form in action and explaining what is happening behind the scenes.

By the way, in the zipped version I added another button to the page that when pressed adds one more field to the form.

Monday Oct 04, 2010

Working with the af:iterator component

I recorded a quick little demo that shows the basic way to use an af:iterator.
In this case the request was to dynamically create a tab on the page for each record in the table.
Using the iterator component allows me to loop through the records in the table and create the tabs as needed and show the data for each department in the tab.

About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today