2008.04.18 摘自 JSF in action--4.1 It’s all in the components Page/138
1. 组件是JSF区别于其它的框架的一个重要的特点.JSF中的标准组件会转换为标准的Html 4.01语言而且可以很好的与CSS及JavaScript结合.下表为JSF的标准组件的列表:
Family | Component | Possible IDE Display | Description |
Column | UIColumn | N/A | A table column. Used to |
Command | HtmlCommandButton
HtmlCommandLink | Command – Button,
Command – Link, | A form button that is an A hyperlink that is an |
Data | HtmlDataTable | Data Grid, Data Table | A data-aware table with |
Form | HtmlForm | N/A | An input form; must |
Graphic | HtmlGraphicImage | Image | Displays an image based |
Input | HtmlInputHidden HtmlInputSecret HtmlInputText HtmlInputTextarea | Hidden Field Secret Field Text Field Multi Line Text Area | An input field of type ldquo;hidden”. An input field of type “password”. An input field of type ldquo;text”. A text area (multi-line input field). |
Message | HtmlMessage | Display Error, | Displays messages for a |
Messages | HtmlMessages | Message List | Displays all messages |
Output | HtmlOutputFormat HtmlOutputLabel HtmlOutputLink HtmlOutputText UIOutput | Formatted Output Component Label Hyperlink Output Text N/A | Outputs parameterized text. A text label for an input field. A hyperlink that’s not Plain text, with optional CSS formatting. Plain text (no formatting). Useful for |
Parameter | UIParameter | N/A | An invisible component |
Panel | HtmlPanelGrid
HtmlPanelGroup | Grid Panel
Panel – Group Box, | A table with customizable Groups components together for use inside |
Select- | HtmlSelect- | Check Box, Checkbox | A single checkbox. |
Select- | UISelectItem | N/A | Represents a single item |
Select- | UISelectItems | N/A | Represents a collection of |
Select- | HtmlSelectManyCheckbox HtmlSelectManyListbox HtmlSelectManyMenu | Check Box Group Multi Select Listbox N/A | A table with a list of A listbox that allows you to A multi-select listbox that shows |
SelectOne | HtmlSelectOneRadio HtmlSelectOneListbox HtmlSelectOneMenu | Radio Button Group Listbox Combo Box, | A table of radio buttons, A listbox that allows you to A drop-down listbox that |
ViewRoot | UIViewRoot | N/A | Represents entire view; |