Add New Country ᄏ
Edit all Countries ᄏ
A table rendering the details using an independent table within an cell of the master table. As a resulting effect the each child table will have its own cell width.
Country
Iso-Code
Cities
AUSTRIA
AT
Show
AZERBAIJAN
AZ
Show
BAHAMAS
BS
Show
BAHRAIN
BH
Show
BANGLADESH
BD
Show
BARBADOS
BB
Show
A table rendering the details using an "embedded" table. (embedded="true" at the child datatable). In contrast to the above example this will result in a combined table sharing the same layout. All cells in on collumn will have the same width.
To achive this the child table will not renter a table start/end tag and, also the rendering of any thead/tfoot/th will be supressed. You have to take care about that fact in your stylesheet(s).
Country
useles column
Iso-Code
Cities
AUSTRIA
-
AT
Hide
city
selected
unselect
Wien
Unselect
Graz
Unselect
Linz
Unselect
Salzburg
Unselect
AZERBAIJAN
-
AZ
Hide
city
selected
unselect
Baku
Unselect
Sumgait
Unselect
Qabala
Unselect
Agdam
Unselect
BAHAMAS
-
BS
Hide
city
selected
unselect
Nassau
Unselect
Alice Town
Unselect
Church Grove
Unselect
West End
Unselect
BAHRAIN
-
BH
Hide
city
selected
unselect
Bahrain
Unselect
BANGLADESH
-
BD
Hide
city
selected
unselect
Chittagong
Unselect
Chandpur
Unselect
Bogra
Unselect
Feni
Unselect
BARBADOS
-
BB
Hide
city
selected
unselect
Grantley Adams
Unselect
Show source of bean with name : countryList and class : org.apache.myfaces.examples.listexample.SimpleCountryList
Show source of bean with name : currentCountry and class : org.apache.myfaces.examples.listexample.SimpleCountry
Show source of bean with name : detailToggler and class : org.apache.myfaces.component.html.ext.HtmlDataTable
Show source of bean with name : city and class : org.apache.myfaces.examples.listexample.SimpleCity
[HOME]
[SOURCE]