Differences between revisions 2 and 3
Revision 2 as of 2008-09-17 09:06:01
Size: 2787
Editor: kons-5d84fbb8
Comment: wrong category
Revision 3 as of 2009-09-20 23:00:56
Size: 2787
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 29: Line 29:
You can use PanelGrid the same way u use the standart ["UIPanel"] component. You can use PanelGrid the same way u use the standart [[UIPanel]] component.
Line 83: Line 83:
["Category:Tomahawk"] [[Category:Tomahawk]]
Line 90: Line 90:
-- Keywan Ghadami [[DateTime(2008-09-17T09:00:42Z)]] -- Keywan Ghadami <<DateTime(2008-09-17T09:00:42Z)>>

Description

This is a template to describe all the PanelGrid component in a standardized way.

Screen Shot

e.g. Not a Visual Component

API

PanelGrid

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

PanelGroup

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

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>

Category:Tomahawk

FAQ

Post your (or potential) questions here.

Additional Information

-- Keywan Ghadami 2008-09-17 09:00:42

PanelGrid (last edited 2009-09-20 23:00:56 by localhost)