| |||||||
FRAMES NO FRAMES |
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 Class | org.apache.myfaces.tobago.taglib.component.ToolBarTag |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
Attributes | ||||
Name | Required | Request-time | Type | Description |
id | false | true | java.lang.String | The component identifier for this component. This value must be unique within the closest parent component that is a naming container. |
binding | false | true | java.lang.String | The value binding expression linking this component to a property in a backing bean. |
rendered | false | true | java.lang.String | Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. |
width | false | true | java.lang.String | The width for this component. |
height | false | true | java.lang.String | The height for this component. |
iconSize | false | true | java.lang.String | Size of button images, possible values are: small, big, off. |
labelPosition | false | true | java.lang.String | Position of the button label, possible values are: right, bottom, off. If toolbar is facet of box: bottom is changed to right! |
Variables | No Variables Defined. |
| |||||||
FRAMES NO FRAMES |