Which JSF component can be used to create tables?
-
HtmlPanelGroup
-
HtmlTable
-
UITable
-
HtmlPanelGrid
D
Correct answer
Explanation
JSF's HtmlPanelGrid component renders as an HTML table element and is commonly used to create table-like layouts for forms and data display. Unlike HtmlTable (B) and UITable (C) which are not standard JSF components, HtmlPanelGrid (D) is a core JSF component that provides tabular layout functionality. HtmlPanelGroup (A) is used for grouping components without adding layout structure.