Tobago Components


Standard Syntax:
     <%@ taglib prefix="tc" uri="http://myfaces.apache.org/tobago/component" %>

XML Syntax:
     <anyxmlelement xmlns:tc="http://myfaces.apache.org/tobago/component" />

Tobago Framework Component Tag Library - (C) Copyright 2002-2006 The Apache Software Foundation

Tag Library Information
Display NameTobago Components
Version1.0
Short Nametc
URIhttp://myfaces.apache.org/tobago/component
 

Tag Summary
forEach

**** Deprecated. Will be removed in a future version ****

Replacement for the JSTL tag.
This tags iterates over the body content without setting up an exported scope variable, but replaces all occurrence's of var in TobagoTag's ValueBinding attributes.
All non TobagoTags are treated as they are, no replacement is done, and so no ability to use the var in el.

loadBundle

Load a resource bundle localized for the Locale of the current view from the tobago resource path, and expose it (as a Map) in the request attributes of the current request.

attribute

Add an attribute on the UIComponent associated with the closest parent UIComponent custom action.

include

**** Deprecated. Will be removed in a future version ****

tabChangeListener

Register an TabChangedListener instance on the UIComponent associated with the closest parent UIComponent custom action.

style

Add a style tag. Collected bodyContent is rendered as content into a style tag.

converter

Register an Converter instance on the UIComponent associated with the closest parent UIComponent.

validateSubmittedValueLength

Register an SubmittedValueLengthValidator instance on the UIComponent associated with the closest parent UIComponent custom action.

script

This tag add client side script to the rendered page.

validateFileItem

Register an FileItemValidator instance on the UIComponent associated with the closest parent UIComponent custom action.

toolBarSelectOne

Renders a set of radio command button's within a toolbar.

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

RendererType: MenuCommand

label

Renders a label component.

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

RendererType: Label

menuBar

UIComponentClass: javax.faces.component.UIPanel

RendererType: MenuBar

selectOneChoice

Render a single selection dropdown list.

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

RendererType: SelectOneChoice

datePicker

Renders a date picker. The component needs a DateFormat Pattern from a converter. The converter should be an instance of DateTimeConverter and return a valid pattern from the method getPattern()

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

RendererType: DatePicker

reload

Update the parent component

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

RendererType:

box

Renders a panel with border and title.

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

RendererType: Box

date

Renders a date input field.

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

RendererType: Date

selectOneListbox

Render a single selection option listbox.

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

RendererType: SelectOneListbox

selectReference

Renders a set of option related to and same type as the for component.

UIComponentClass: javax.faces.component.UIOutput

RendererType: SelectReference

menuCheckbox

Renders a checkable menuitem.

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

RendererType: MenuCommand

selectManyCheckbox

Render a group of checkboxes.

UIComponentClass: javax.faces.component.UISelectMany

RendererType: SelectManyCheckbox

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

selectBooleanCheckbox

Renders a checkbox.

UIComponentClass: javax.faces.component.UISelectBoolean

RendererType: SelectBooleanCheckbox

selectOneRadio

Render a set of radiobuttons.

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

RendererType: SelectOneRadio

calendar

Renders a calendar.

UIComponentClass: javax.faces.component.UIOutput

RendererType: Calendar

selectManyListbox

Render a multi selection option listbox.

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

RendererType: SelectManyListbox

panel

Intended for use in situations when only one UIComponent child can be nested, such as in the case of facets.

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

RendererType: Panel

tab

Renders a tab within a tabgroup.

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

RendererType: Tab

tree

**** Deprecated. Will be removed in a future version ****

Renders a tree view.

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

RendererType: TreeOld

menu

Container component to hold submenus and items.

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

RendererType:

button

Renders a button element.

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

RendererType: Button

image

Renders a Image.

UIComponentClass: javax.faces.component.UIGraphic

RendererType: Image

command

Use this tag only as a facet for click, change in selectOneRadio, selectBooleanCheckbox, selectManyCheckbox and selectOneChoice

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

RendererType: Command

object

UIComponentClass: javax.faces.component.UIOutput

RendererType: Object

message

Renders error/validation message.

UIComponentClass: javax.faces.component.UIMessage

RendererType: Message

out

Renders a text

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

RendererType: Out

menucheck

**** Deprecated. Will be removed in a future version ****

Renders a checkable menuitem.

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

RendererType: MenuCommand

in

Renders a text input field.

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

RendererType: In

time

Renders a time input field.

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

RendererType: Time

menuItem

Renders a menu item.

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

RendererType: MenuCommand

cell

Renders a layout cell. A panel with ability to span over more than one layout cells.

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

RendererType: Panel

progress

Renders a progressbar.

UIComponentClass: javax.faces.component.UIOutput

RendererType: Progress

tabGroup

Renders a tabpanel.

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

RendererType: TabGroup

hidden

Renders a 'hidden' input element.

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

RendererType: Hidden

textarea

Renders a multiline text input control.

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

RendererType: TextArea

toolBarCheck

Renders a selectable command button within a toolbar.

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

RendererType: MenuCommand

sheet

Render a sheet element.

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

RendererType: Sheet

menuradio

**** Deprecated. Will be removed in a future version ****

Renders a submenu with select one items.

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

RendererType: MenuCommand

treeListbox

**** Preliminary. Maybe subject to changed in a future version: Implement a var attribute for the tree like in the sheet (http://issues.apache.org/jira/browse/TOBAGO-18) ****

Renders a listbox view of a tree.

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

RendererType: TreeListbox

toolBarCommand

Renders a command button within a toolbar.

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

RendererType: Button

menuRadio

Renders a submenu with select one items (like a radio button).

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

RendererType: MenuCommand

column

Renders a UIComponent that represents a single column of data within a parent UIData component.

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

RendererType:

file

Renders a file input field.

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

RendererType: File

messages

Renders error/validation messages.

UIComponentClass: javax.faces.component.UIMessages

RendererType: Messages

form

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

RendererType: Form

menuSeparator

Renders a separator.

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

RendererType:

gridLayout

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

RendererType: GridLayout

link

Renders a link element.

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

RendererType: Link

page

TODO description of page tag

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

RendererType: Page

popup

Renders a popup panel.

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

RendererType: Popup

selectItem

Add a child UISelectItem component to the UIComponent associated with the closed parent UIComponent custom action.

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

RendererType:

columnSelector

Renders a column with checkboxes to mark selected row's.

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

RendererType: ColumnSelector

 

Listeners
org.apache.myfaces.tobago.webapp.TobagoServletContextListener
 


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