• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the difference between panelGrid and panelGroup?

 
Prateek Kumar Singh
Ranch Hand
Posts: 30
Eclipse IDE Hibernate Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

The actual answer of this question is
The h:panelGrid tag is used to represent an entire table. The h:panelGroup tag is used to represent rows in a table.

The columns attribute defines how to group the data in the table and therefore is required if you want your table to have more than one column. The h:panelGrid tag also has a set of optional attributes that specify CSS classes:columnClasses, footerClass, headerClass, panelClass, and rowClasses.



A pannel group is set of row in table.

 
J. Frederik
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prateek Kumar Singh wrote:
The h:panelGroup tag is used to represent rows in a table.

The h:panelGroup tag can be used to put multiple components into a single table cell or other parent components that allow only a single child component.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The actual answer of this question is
The h:panelGrid tag is used to represent an entire table. The h:panelGroup tag is used to represent rows in a table.


I am sorry, but you are 100% wrong.

JSF does not support table spans - as many frustrated people have discovered. However, the inverse of a span is supported, and that is the panelGroup.

A panelGroup will take multiple child components which ordinarily would have each been assigned to a separate column and arrange them all in a single cell.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic