difference between panelGrid tag and dataTable

hi,

what is the difference between panelGrid tag and dataTable tag in jsf

[86 byte] By [javamnr948a] at [2007-11-27 10:42:05]
# 1

A panelGrid is useful when you have a fixed number of rows and columns. Each child component of the panelGrid is specified explicitly and arranged in a grid by the parent component.

A dataTable is useful when you have a collection of homogeneous data of indeterminate size. You specify the columns of the dataTable and it will iterate over your data creating one row per datum.

RaymondDeCampoa at 2007-7-28 19:16:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...