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 drop down menu to a button add a facet
'dropDownMenu'
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="dropDownMenu"> <tc:menu> <tc:menuCommand onclick="alert('test 1')" label="Alert 1"/> <tc:menuCommand onclick="alert('test 2')" label="Alert 2"/> <tc:menuCommand onclick="alert('test 3')" label="Alert 3"/> </tc:menu> </f:facet> </tc:button>
UIComponent class, generated from template {@code component1.2.stg} with class{@link org.apache.myfaces.tobago.internal.taglib.component.ToolBarTagDeclaration}.