Book Image

Apache MyFaces 1.2 Web Application Development

Book Image

Apache MyFaces 1.2 Web Application Development

Overview of this book

Hypes and trends (such as Web 2.0) cause a change in the requirements for user interfaces every now and then. While a lot of frameworks are capable of meeting those changing requirements, it often means you as a developer need in-depth knowledge of web standards, such as XHTML and JavaScript. A framework like Apache MyFaces that hides all details of how the page is rendered at the client and at the same time offers a rich set of tools and building blocks could save you a lot of time, not only when you're building a brand new application but also when you're adapting an existing application to meet new user interface requirements.This book will teach you everything you need to know to build appealing web interfaces with Apache MyFaces and maintain your code in a pragmatic way. It describes all the steps that are involved in building a user interface with Apache MyFaces. This includes building templates and composition components with Facelets, using all sorts of specialized components from the Tomahawk, Trinidad, and Tobago component sets and adding validation with MyFaces Extensions Validator.The book uses a step-by-step approach and contains a lot of tips based on experience of the MyFaces libraries in real-world projects. Throughout the book an example scenario is used to work towards a fully functional application when the book is finished.This step-by-step guide will help you to build a fully functional and powerful application.
Table of Contents (22 chapters)
Apache MyFaces 1.2
Credits
About the Author
Acknowledgement
About the Reviewers
Preface
Trinidad Tags
Trinidad Text Keys
Default JSF Error Messages
ExtVal Default Error Messages

Appendix C. Trinidad Text Keys

As discussed in the Trinidad Skinning section of Chapter 7, we can also ‘skin’ the default texts that the Trinidad components use. The procedure to do this is described in Chapter 7, and involves adding new texts to a message bundle. To do so, we need the keys that the Trinidad components use for their default texts. The Trinidad project doesn’t provide an official list of keys at the moment. The following table is extracted from the CoreBundle.xrts file that can be found in the myfaces/trinidad/trunk/trinidad-impl/src/main/xrts/org/apache/myfaces/trinidadinternal/renderkit/core/resource/ directory in the Trinidad source code. Trinidad does offer these texts in a lot of other languages, which can be found in the same directory.

Key

Default text (English)

af_menuChoice.LABEL

Switch applications

af_menuChoice.GO_TIP

Go to selected application

af_menuChoice.GO

Go

af_tableSelectMany .SELECT_COLUMN_HEADER

Select

af_tableSelectOne .SELECT_COLUMN_HEADER

Select

af_table.DETAIL_COLUMN_HEADER

Details

afr_compositeTable.MENU_VIEW

View

afr_compositeTable.MENU_COLUMNS

Columns

afr_compositeTable .MENUITEM_COLUMNS_SHOWALL

Show all

afr_compositeTable .MENUITEM_COLUMNS_SHOWMORECOLUMNS

Show more columns

afr_compositeTable.MENUITEM_FREEZE

Freeze

afr_compositeTable .MENUITEM_MAXIMIZE

Maximize

afr_compositeTable.MENU_SORT

Sort

afr_compositeTable .MENUITEM_SORT_ASCENDING

Ascending

afr_compositeTable .MENUITEM_SORT_DESCENDING

Descending

afr_compositeTable .MENUITEM_SORT_ADVANCED

Advanced

afr_compositeTable.MENUITEM_REORDER

Reorder

afr_compositeTable.MENU_TOOLBARS

Toolbars

afr_compositeTable .MENUITEM_TOOLBARS_DEFAULT

Default

afr_compositeTable .MENUITEM_TOOLBARS_QBE

Query by example

afr_compositeTable.MENU_FORMAT

Format

afr_compositeTable .MENUITEM_RESIZECOLUMNS

Resize columns

afr_compositeTable.MENUITEM_RESET

Reset

afr_compositeTable.MENUITEM_WRAP

Wrap

afr_compositeTable .STATUSBARITEM_ROWS_SELECTED

Rows selected

afr_compositeTable .STATUSBARITEM_ROWS_SELECTED_ALL

All

afr_compositeTable .STATUSBARITEM_COLUMNS_HIDDEN

Columns hidden

afr_compositeTable .STATUSBARITEM_COLUMNS_FROZEN

Columns frozen

afr_compositeTreeTable .MENUITEM_EXPAND

Expand

afr_compositeTreeTable .MENUITEM_COLLAPSE

Collapse

afr_compositeTreeTable .MENUITEM_EXPAND_ALL_BELOW

Expand all below

afr_compositeTreeTable .MENUITEM_COLLAPSE_ALL_BELOW

Collapse all below

afr_compositeTreeTable .MENUITEM_EXPAND_ALL

Expand all

afr_compositeTreeTable .MENUITEM_COLLAPSE_ALL

Collapse all

afr_compositeTreeTable .MENUITEM_GO_UP

Go up

afr_compositeTreeTable .MENUITEM_SHOW_AS_TOP

Show as top

afr_compositeTreeTable .MENUITEM_GO_TO_TOP

Go to top

af_treeTable.FOCUS_COLUMN_HEADER

Focus

af_column.SORTED_ASCEND_TIP

Sorted in ascending order

af_column.SORTED_DESCEND_TIP

Sorted in descending order

af_column.SORTED_SORTABLE_TIP

Not sorted

af_singleStepButtonBar.BACK

Bac&k

af_processChoiceBar.BACK

Bac&k

af_singleStepButtonBar.NEXT

Ne&xt

af_processChoiceBar.NEXT

Ne&xt

af_singleStepButtonBar.CONTINUE

&Continue

af_processChoiceBar.CONTINUE

&Continue

af_selectRangeChoiceBar.PREVIOUS

Previous {0}

af_table.SELECT_RANGE_PREVIOUS

Previous {0}

af_selectRangeChoiceBar.NEXT

Next {0}

af_table.SELECT_RANGE_NEXT

Next {0}

af_selectRangeChoiceBar .DISABLED_NEXT

Next

af_table.SELECT_RANGE_DISABLED_NEXT

Next

af_treeTable.DISABLED_NEXT

Next

af_selectRangeChoiceBar .DISABLED_PREVIOUS

Previous

af_table .SELECT_RANGE_DISABLED_PREVIOUS

Previous

af_treeTable.DISABLED_PREVIOUS

Previous

af_selectRangeChoiceBar .PREVIOUS_TIP

Select to view previous set

af_table.SELECT_RANGE_PREVIOUS_TIP

Select to view previous set

af_treeTable.PREVIOUS_TIP

Select to view previous set

af_selectRangeChoiceBar.NEXT_TIP

Select to view next set

af_table.SELECT_RANGE_NEXT_TIP

Select to view next set

af_treeTable.NEXT_TIP

Select to view next set

af_table .SELECT_RANGE_PREV_DISABLED_TIP

Previous functionality disabled

af_selectRangeChoiceBar .PREV_DISABLED_TIP

Previous functionality disabled

af_table .SELECT_RANGE_NEXT_DISABLED_TIP

Next functionality disabled

af_selectRangeChoiceBar .NEXT_DISABLED_TIP

Next functionality disabled

af_selectRangeChoiceBar.CHOICE_TIP

Select record set

af_table.SELECT_RANGE_CHOICE_TIP

Select record set

af_selectRangeChoiceBar.PREVIOUS_OPTION

Previous

af_table .SELECT_RANGE_PREVIOUS_OPTION

Previous

af_selectRangeChoiceBar.MORE_OPTION

More

af_table.SELECT_RANGE_MORE_OPTION

More

af_selectRangeChoiceBar.SHOW_ALL

Show all {0}

af_table.SELECT_RANGE_SHOW_ALL

Show all {0}

af_train.FORMAT_TOTAL

{0} {1} of {2}

af_train.FORMAT_NO_TOTAL

{0} {1}

af_singleStepButtonBar.FORMAT_TOTAL

{0} {1} of {2}

af_singleStepButtonBar .FORMAT_NO_TOTAL

{0} {1}

af_selectRangeChoiceBar .CHOICE_FORMAT_TOTAL

{0}-{1} of {2}

af_selectRangeChoiceBar .CHOICE_FORMAT_NO_TOTAL

{0}-{1}

af_table .SELECT_RANGE_CHOICE_FORMAT_TOTAL

{0}-{1} of {2}

af_table .SELECT_RANGE_CHOICE_FORMAT_NO_TOTAL

{0}-{1}

af_train.STEP

Step

af_singleStepButtonBar.STEP

Step

af_objectLegend.REQUIRED_KEY

Indicates required field

af_tree.FOLDER_TIP

Folder

af_navigationTree.FOLDER_TIP

Folder

af_chooseDate.SUMMARY

Calendar

af_chooseDate.PREVIOUS_MONTH_TIP

Previous month

af_chooseDate.NEXT_MONTH_TIP

Next month

af_chooseDate.MONTH_CHOICE_LABEL

Choose month

af_chooseDate.YEAR_CHOICE_LABEL

Choose year

af_chooseDate.TITLE_FORMAT

{0} {1}

af_chooseDate.DIALOG_TITLE

Pick a date

af_chooseDate.DIALOG_EARLIER

Before {0}

af_chooseDate.DIALOG_LATER

After {0}

af_chooseDate.CANCEL

Cance&l

af_inputDate.LAUNCH_PICKER_TIP

Select to access date picker

af_inputColor.PICKER_TITLE

Pick a color

af_chooseColor.TRANSPARENT

Transparent

af_inputColor.PICKER_PROMPT

Color

af_inputColor.LAUNCH_PICKER_TIP

Select to access color picker

af_inputColor.APPLY

Apply

af_inputColor.CANCEL

Cancel

af_chooseDate.GO_BUTTON_LABEL

Go

af_showDetail.DISCLOSED

Hide

af_showDetail.UNDISCLOSED

Show

af_showDetail.DISCLOSED_TIP

Select to hide information

af_showDetail.UNDISCLOSED_TIP

Select to show information

af_showDetailHeader.DISCLOSED

Hide

af_showDetailHeader.UNDISCLOSED

Show

af_showDetailHeader.DISCLOSED_TIP

Select to hide information

af_showDetailHeader.UNDISCLOSED_TIP

Select to show information

af_table.DISCLOSED

Hide

af_table.UNDISCLOSED

Show

af_table.DISCLOSED_TIP

Select to hide information

af_table.UNDISCLOSED_TIP

Select to show information

af_showOneAccordion.DISCLOSED_TIP

Shown information

af_showOneAccordion.UNDISCLOSED_TIP

Select to show information

af_panelAccordion.DISCLOSED_TIP

Shown information

af_panelAccordion.UNDISCLOSED_TIP

Select to show information

af_selectOrderShuttle .REORDER_UP_ALL_TIP

Move selected items to the top of the list.

af_selectOrderShuttle .REORDER_UP_TIP

Move selected items up one position in the list.

af_selectOrderShuttle .REORDER_DOWN_ALL_TIP

Move selected items to the bottom of the list.

af_selectOrderShuttle .REORDER_DOWN_TIP

Move selected items down one position in the list.

af_selectOrderShuttle .REORDER_UP_ALL

Top

af_selectOrderShuttle.REORDER_UP

Up

af_selectOrderShuttle .REORDER_DOWN_ALL

Bottom

af_selectOrderShuttle.REORDER_DOWN

Down

af_selectManyShuttle .DESCRIPTION_LABEL

Description

af_selectOrderShuttle .DESCRIPTION_LABEL

Description

af_selectManyShuttle.MOVE_ALL_TIP

Move all items to other list.

af_selectOrderShuttle.MOVE_ALL_TIP

Move all items to other list.

af_selectManyShuttle.MOVE_TIP

Move selected items to other list.

af_selectOrderShuttle.MOVE_TIP

Move selected items to other list.

af_selectManyShuttle.REMOVE_ALL_TIP

Remove all items from list.

af_selectOrderShuttle.REMOVE_ALL_TIP

Remove all items from list.

af_selectManyShuttle.REMOVE_TIP

Remove selected items from the list.

af_selectOrderShuttle.REMOVE_TIP

Remove selected items from the list.

af_selectManyShuttle.MOVE_ALL

Move all

af_selectOrderShuttle.MOVE_ALL

Move all

af_selectManyShuttle.MOVE

Move

af_selectOrderShuttle.MOVE

Move

af_selectManyShuttle.REMOVE_ALL

Remove all

af_selectOrderShuttle.REMOVE_ALL

Remove all

af_selectManyShuttle.REMOVE

Remove

af_selectOrderShuttle.REMOVE

Remove

af_poll.MANUAL

Poll server

af_progressIndicator .DETERMINATE_TIP

{0}% complete

af_progressIndicator.PROCESSING

Processing

af_panelTip.TIP

Tip

af_panelPage .QUICK_LINKS_RETURN_TOP_TIP

Select to jump to the top of the page.

af_panelPage.QUICK_LINKS_RETURN_TOP

Return to top

af_panelPage.QUICK_LINKS_TIP_FORMAT

Select to jump to "{0}" within the page.

af_train.VISITED_TIP

{0}: Previously visited step

af_train.ACTIVE_TIP

{0}: Active step

af_train.NEXT_TIP

{0}: Next step

af_train.MORE

More

af_train.PREVIOUS

Previous

af_menuTabs.SELECTED_TIP

{0}: Currently selected tab

af_menuTabs.ENABLED_TIP

{0}: Select to go to this tab

af_menuTabs.DISABLED_TIP

{0}: Disabled tab

af_tableSelectMany.SELECT_ALL

Select all

af_tableSelectMany.SELECT_NONE

Select none

af_treeTable.EXPAND_ALL

Expand all

af_treeTable.COLLAPSE_ALL

Collapse all

af_table.SHOW_ALL_DETAILS

Show all details

af_table.HIDE_ALL_DETAILS

Hide all details

af_tree.EXPAND_TIP

Select to expand

af_treeTable.EXPAND_TIP

Select to expand

af_navigationTree.EXPAND_TIP

Select to expand

af_tree.COLLAPSE_TIP

Select to collapse

af_treeTable.COLLAPSE_TIP

Select to collapse

af_navigationTree.COLLAPSE_TIP

Select to collapse

af_tree.DISABLED_COLLAPSE_TIP

Node expanded

af_treeTable.DISABLED_COLLAPSE_TIP

Node expanded

af_navigationTree .DISABLED_COLLAPSE_TIP

Node expanded

af_treeTable.FOCUS_TIP

Select to focus in

af_treeTable.BREADCRUMB_START_TIP

Hierarchy path start

af_tree.NODE_LEVEL

Level {0}

af_treeTable.NODE_LEVEL

Level {0}

af_navigationTree.NODE_LEVEL

Level {0}

af_selectBooleanCheckbox .READONLY_CHECKED_TIP

Read-only checkbox checked.

af_selectBooleanCheckbox .READONLY_NOT_CHECKED_TIP

Read-only checkbox not checked.

af_selectBooleanRadio .READONLY_CHECKED_TIP

Read-only radio button selected.

af_selectBooleanRadio .READONLY_NOT_CHECKED_TIP

Read-only radio button not selected.

af_panelPage.SKIP_PAST_NAVIGATION

Skip navigation elements to page contents.

af_panelPopup.CLOSE

Hide

af_menuButtons.BLOCK_TITLE

Global buttons

af_panelButtonBar.BLOCK_TITLE

Global buttons

af_menuTabs.BLOCK_TITLE

First-level navigation elements

af_menuBar.BLOCK_TITLE

Second-level navigation elements

af_panelSideBar.BLOCK_TITLE

Third-level navigation elements

af_panelTabbed.BLOCK_TITLE

Fourth-level navigation elements

af_panelHeader.ERROR

Error

af_messages.ERROR

Error

af_panelHeader.WARNING

Warning

af_messages.WARNING

Warning

af_panelHeader.INFORMATION

Information

af_messages.INFORMATION

Information

af_panelHeader.CONFIRMATION

Confirmation

af_messages.CONFIRMATION

Confirmation

af_panelHeader.PROCESSING

Processing

af_form.SUBMIT_ERRORS

Form validation failures

af_frameBorderLayout .VERTICAL_FRAMESET_LAYOUT_CONTAINER_TITLE

Container for left, center, and right frames

af_frameBorderLayout .HORIZONTAL_FRAMESET_LAYOUT_CONTAINER_TITLE

Container for the top and bottom frames

PPR_TRIGGER_LABEL

Go

ERROR_TIP

Error

WARNING_TIP

Warning

INFO_TIP

Info

REQUIRED_TIP

Required

STATUS_SELECTED

Selected

SKIP_CURRENT_NAVIGATION_BLOCK

Skip all {0}

NO_SCRIPT_MESSAGE

This page uses JavaScript and requires a JavaScript enabled browser. Your browser is not JavaScript enabled.

FRAME_CONTENT

Content

WINDOW_CREATION_ERROR

A pop-up window blocker has been detected in your browser. Pop-up blockers interfere with the operation of this application. Please disable your pop-up blocker or allow pop ups from this site.

NO_FRAMES_MESSAGE

Your browser does not support frames. Frames support is required for this functionality.

SHUTTLE_NO_ITEMS_FEEDBACK

There are no items to move.

SHUTTLE_NO_ITEM_SELECTED_FEEDBACK

Please select the items to move first.

af_chart.IE_SVG_PLUGIN_ERROR_HTML

<H4>Unable to load SVG plugin. Please install the plugin from <a href=’#’ onclick="window.open(‘ http://www.adobe.com/svg/viewer/install/main.html’)">Adobe</a><H4>

af_chart .SVG_ENABLED_BROWSER_ERROR_HTML

<H4> This component needs an SVG enabled browser such as Internet Explorer, Firefox 1.5+, or Opera 9.0+ <H4>

af_chart.SVG_LOADING_STATUS_HTML

<H4><H4> Please Wait. Attempting to load SVG document...</H4><H4>

af_treeTOC.LABEL

Browse

af_treeTOC.CATEGORY_LABEL

Categories

af_treeTOC.ITEM_LABEL

Items

TABLE_ADD_ROW_SINGLE_TEXT

Add another row

TABLE_ADD_ROW_MULTI_TEXT

Add {0} rows

TABLE_TOTAL_ROW_BUTTON_TEXT

Recalculate

TABLE_TOTAL_ROW_TEXT

Total

LOV_CHOICE_MORE_OPTION

More

RTE_CUT_BUTTON_TEXT

Cut

RTE_COPY_BUTTON_TEXT

Copy

RTE_PASTE_BUTTON_TEXT

Paste

RTE_BOLD_BUTTON_TEXT

Bold

RTE_ITALIC_BUTTON_TEXT

Italic

RTE_UNDERLINE_BUTTON_TEXT

Underline

RTE_BREAK_BUTTON_TEXT

Break

RTE_LEFT_ALIGN_BUTTON_TEXT

Align left

RTE_CENTER_ALIGN_BUTTON_TEXT

Align center

RTE_RIGHT_ALIGN_BUTTON_TEXT

Align right

RTE_HR_BUTTON_TEXT

Horizontal rule

RTE_NUMBERING_BUTTON_TEXT

Number order list

RTE_BULLETS_BUTTON_TEXT

Bulleted list

RTE_DECREASE_INDENT_BUTTON_TEXT

Decrease indent

RTE_INCREASE_INDENT_BUTTON_TEXT

Increase indent

RTE_CREATE_HYPERLINK_BUTTON_TEXT

Create hyperlink

RTE_HYPERLINK_POPUP_TEXT

Enter link location (for example, http://www.oracle.com).

RTE_CLICK_THRU_URL_BUTTON_TEXT

Click through destination URL.

RTE_UPLOAD_IMAGE_BUTTON_TEXT

Upload image

RTE_FONT_CHOICE_TEXT

Font

RTE_FONT_SIZE_CHOICE_TEXT

Font size

RTE_FONT_COLOR_CHOICE_TEXT

Font color

RTE_CHANGE_TO_RICH_TEXT_MODE

Change to rich text mode.

RTE_CHANGE_TO_TEXT_MODE

Change to plain text mode.

RTE_HTML_SOURCE

View HTML source

RTE_RICH_TEXT_MODE_MAX_LENGTH_ALERT

You have exceeded the maximum length of the field. Please re-enter a shorter value.

SEARCH_AND_SELECT_FORMAT

Search and select: {0}

SEARCH_TEXT

Search

SIMPLE_SEARCH_TEXT

Simple search

ADVANCED_SEARCH_TEXT

Advanced search

SEARCH_BY_TEXT

Search by

SEARCH_FIELD_SHORT_DESC_TEXT

Search term

RESULTS_TEXT

Results

NAVBAR_STRING_RANGE_FORMAT

{0} - {1}

af_treeTable .NAV_CELL_FORMAT_T_C_private

{0}: {1} {2} of {3}

af_treeTable .NAV_CELL_FORMAT_NT_C_private

{0} {1} of {2}

af_treeTable .NAV_CELL_FORMAT_T_NC_private

{0}: {1} {2}

af_treeTable .NAV_CELL_FORMAT_NT_NC_private

{0} {1}

af_messages.LIST_FORMAT_private

- {0}

af_messages.GLOBAL_MESSAGE_FORMAT

{0} - {1}

af_statusIndicator.BUSY

Page is busy processing.

af_statusIndicator.READY

Page is ready.