Description
This is a template to describe all the PanelGrid component in a standardized way.
Screen Shot
e.g. Not a Visual Component
API
component-family |
javax.faces.Panel |
component-type |
org.apache.myfaces.HtmlPanelGrid |
renderer-type |
org.apache.myfaces.Grid |
component-class |
org.apache.myfaces.component.html.ext.HtmlPanelGrid |
renderer-class |
org.apache.myfaces.renderkit.html.ext.HtmlGridRenderer |
tag-class |
org.apache.myfaces.taglib.html.ext.HtmlPanelGridTag |
component-family |
javax.faces.Panel |
component-type |
org.apache.myfaces.HtmlPanelGroup |
renderer-type |
org.apache.myfaces.Group |
component-class |
org.apache.myfaces.component.html.ext.HtmlPanelGroup |
renderer-class |
org.apache.myfaces.renderkit.html.ext.HtmlGroupRenderer |
tag-class |
org.apache.myfaces.taglib.html.ext.HtmlPanelGroupTag |
Links to javadoc and tlddoc
Usage
You can use PanelGrid the same way u use the standart UIPanel component. Extensionaly you can use the colspan attribute to span cells.
Syntax
see example
Instructions
necessary?
Attributes
name |
required |
description |
colspan |
not required |
how many cells should be spaned |
styleClass |
not required |
renders a div element with a class attribute of the given styleclass around the cell content |
style |
not required |
'_* |
*enabledOnUserRole_' |
not required |
'_* |
*visibleOnUserRole_' |
'_not required* |
*_ ' |
Configuration
Don't need any extra configuration.
Notes and Known issues
Some known issues like incompatibility to other frameworks/component libs
You need to use both t:panelGrid and t:panelGroup together in order to get the "colspan" function work.
Examples
Use example:
<t:panelGrid id="myPanel" columns="4"
footerClass="myFooterCss" headerClass="myHeaderCss" columnClasses="column1Css,column2Css,column3Css">
<f:facet name="header">
<h:outputText value="Header content here" />
</f:facet>
<h:outputText value="1" />
<t:panelGroup colspan="3" styleClass="long" >
<h:outputText value="234 one big cell" />
</t:panelGroup>
<h:outputText value="5" />
<h:outputText value="6" />
<h:outputText value="7" />
<h:outputText value="8" />
<f:facet name="footer">
<h:outputText value="Footer content here" />
</f:facet>
</t:panelGrid>
FAQ
Post your (or potential) questions here.
Additional Information
– Keywan Ghadami <<DateTime(2008-09-17T09:00:42Z)>>