This tag is used create compound component that
is used to layout other components. This tag renders html table with
specified no. of columns. Children of this element are rendered in
cells of the columns of the table. This tag helps to construct the table
which can automatically arrange the elements in cells of the table of
specified columns. Suppose, we have specified no. of columns to 3 and we
have taken 5 elements then these elements will get automatically
arranged in two rows (3 elements in 3 columns consecutively in the
the first row and other 2 in the second row in the same manner. So last
two elements will be visible in two columns and third will be blank. For
more stylish and customized appearance CSS can be used. By default the
no. of columns is "1". The no of rows is decided by the no. of
elements to display in the specified no. of columns.
Code Description :
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
|
Rendered Output :

Html Source Code:
<html>
|
This tag is comprised of many attributes that are summarized below :
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: JSF panelGrid Tag View All Comments
Post your Comment