Tobago Components
Tag toolBar


Renders a toolbar.

Allowed subcomponents are subtypes of UICommand i.e. 'button' and 'link' tags. These are rendered by ToolbarRenderer, so the result has no difference.

To add an dropdown menu to a button add a facet 'menupopup' containing a <tc:menu> tag to the button. Label's and Image's on those menu tag's are ignored and replaced by the renderer.

 <tc:button onclick="alert('test 0')" label="Alert 0" > <f:facet name="menupopup"> <tc:menu> <tc:menuItem onclick="alert('test 1')" label="Alert 1"/> <tc:menuItem onclick="alert('test 2')" label="Alert 2"/> <tc:menuItem onclick="alert('test 3')" label="Alert 3"/> </tc:menu> </f:facet> </tc:button> 

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

RendererType: ToolBar



Tag Information
Tag Classorg.apache.myfaces.tobago.taglib.component.ToolBarTag
TagExtraInfo ClassNone
Body ContentJSP
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
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.
renderedfalsetruejava.lang.StringFlag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
Type: java.lang.Boolean
Default: true
widthfalsetruejava.lang.String

**** @deprecated. Will be removed in a future version ****

The width for this component.
Type: java.lang.String
heightfalsetruejava.lang.String

**** @deprecated. Will be removed in a future version ****

The height for this component.
Type: java.lang.String
tipfalsetruejava.lang.StringText value to display as tooltip.
Type: java.lang.String
markupfalsetruejava.lang.StringIndicate markup of this component. Possible value is 'none'. But this can be overridden in the theme.
Type: java.lang.String
Default: none
iconSizefalsetruejava.lang.StringSize of button images, possible values are: small, big, off.
Type: java.lang.String
Default: small
Allowed values: [small, big, off]
labelPositionfalsetruejava.lang.StringPosition of the button label, possible values are: right, bottom, off. If toolbar is facet of box: bottom is changed to right!
Type: java.lang.String
Default: bottom
Allowed values: [bottom, right, off]
orientationfalsetruejava.lang.StringOrientation of toolbar
Type: java.lang.String
Default: left
Allowed values: [left, right]

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.