Tobago Components
Tag gridLayout


Renders a GridLayout.
 columns/rows ::= LAYOUT LAYOUT ::= TOKEN [";" TOKEN]+ TOKEN ::= FIXED | PIXEL | PROPORTIONAL FIXED ::= "fixed" PIXEL ::= NUMBER "px" PROPORTIONAL ::= [NUMBER] "*" 

Parent Child Okay? Remarks
FIXED any combination of FIXED or PIXEL but no PROPORTIONAL okay -
FIXED any combination with at least one PROPORTIONAL wrong LayoutManager cannot compute the fixed value.
PIXEL any combination of FIXED or PIXEL but no PROPORTIONAL potentially wrong The values depend on each other, the programmer has to keep consistency manually.
PIXEL any combination with at least one PROPORTIONAL okay -
PROPORTIONAL any combination of FIXED or PIXEL but no PROPORTIONAL potentially wrong No automatical matching:
  • too little space: scrollbar
  • too much space: elements will be spreaded.
PROPORTIONAL any combination with at least one PROPORTIONAL okay -

UIComponentClass: org.apache.myfaces.tobago.component.UIGridLayout

RendererType: GridLayout



Tag Information
Tag Classorg.apache.myfaces.tobago.taglib.component.GridLayoutTag
TagExtraInfo ClassNone
Body Contentempty
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
idfalsetruejava.lang.StringThe component identifier for this component. This value must be unique within the closest parent component that is a naming container.
Type: java.lang.String
borderfalsetruejava.lang.StringBorder size of this component.
Type: java.lang.String
cellspacingfalsetruejava.lang.StringSpacing between component and layout cell's
Type: java.lang.String
marginfalsetruejava.lang.StringMargin between container component and layouted children.
Type: java.lang.String
marginBottomfalsetruejava.lang.StringBottom margin between container component and layouted children.
Type: java.lang.String
marginLeftfalsetruejava.lang.StringLeft margin between container component and layouted children.
Type: java.lang.String
marginRightfalsetruejava.lang.StringRight margin between container component and layouted children.
Type: java.lang.String
marginTopfalsetruejava.lang.StringTop margin between container component and layouted children.
Type: java.lang.String
columnsfalsetruejava.lang.StringLayoutConstraints for column layout. Semicolon separated list of layout tokens ('*', '<x>*', '<x>px' or '<x>%'). Where '*' is equvalent to '1*'.
Type: java.lang.String
Default: 1*
rowsfalsetruejava.lang.StringLayoutConstraints for column layout. Semicolon separated list of layout tokens ('<x>*', '<x>px', '<x>%' or 'fixed').
Type: java.lang.String
Default: 1*
bindingfalsetruejava.lang.StringThe value binding expression linking this component to a property in a backing bean.

Warning: For the tobago extension library tx the binding differs from JSP and Facelets:

  • JSP: The component is the inner main control (e. g. UIInput).
  • Facelets: The component is the outer UIPanel.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.