[richfaces-svn-commits] JBoss Rich Faces SVN: r4914 - in trunk/test-applications: facelets/src/main/java and 189 other directories.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Wed Dec 19 06:44:32 EST 2007
Author: ayanul
Date: 2007-12-19 06:44:24 -0500 (Wed, 19 Dec 2007)
New Revision: 4914
Added:
trunk/test-applications/facelets/src/main/java/componentControl/
trunk/test-applications/facelets/src/main/java/componentControl/ComponentControl.java
trunk/test-applications/facelets/src/main/java/contextMenu/
trunk/test-applications/facelets/src/main/java/contextMenu/ContextMenu.java
trunk/test-applications/facelets/src/main/java/dataDefinitionList/
trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java
trunk/test-applications/facelets/src/main/java/dataOrderedList/
trunk/test-applications/facelets/src/main/java/dataOrderedList/DataOrderedList.java
trunk/test-applications/facelets/src/main/java/jQuery/
trunk/test-applications/facelets/src/main/java/jQuery/JQuery.java
trunk/test-applications/facelets/src/main/java/listShuttle/
trunk/test-applications/facelets/src/main/java/listShuttle/ListShuttle.java
trunk/test-applications/facelets/src/main/java/orderingList/
trunk/test-applications/facelets/src/main/java/orderingList/OrderingList.java
trunk/test-applications/facelets/src/main/java/rich/MapComponent.java
trunk/test-applications/facelets/src/main/java/richPanels/
trunk/test-applications/facelets/src/main/java/richPanels/MapComponent.java
trunk/test-applications/facelets/src/main/java/richPanels/RichPanelsBean.java
trunk/test-applications/facelets/src/main/java/util/
trunk/test-applications/facelets/src/main/java/util/componentInfo/
trunk/test-applications/facelets/src/main/java/util/componentInfo/ComponentInfo.java
trunk/test-applications/facelets/src/main/java/util/converter/
trunk/test-applications/facelets/src/main/java/util/converter/ListShuttleConverter.java
trunk/test-applications/facelets/src/main/java/util/converter/OrderingListConverter.java
trunk/test-applications/facelets/src/main/java/util/data/
trunk/test-applications/facelets/src/main/java/util/data/Data.java
trunk/test-applications/facelets/src/main/java/util/icon/
trunk/test-applications/facelets/src/main/java/util/icon/Icon.java
trunk/test-applications/facelets/src/main/java/util/phaseTracker/
trunk/test-applications/facelets/src/main/java/util/phaseTracker/PhaseTracker.java
trunk/test-applications/facelets/src/main/java/util/skins/
trunk/test-applications/facelets/src/main/java/util/skins/Skins.java
trunk/test-applications/facelets/src/main/resources/message_en.properties
trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/ComponentControl/
trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml
trunk/test-applications/facelets/src/main/webapp/ContextMenu/
trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml
trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionList.xhtml
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml
trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/DragAndDrop/
trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml
trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenu.xhtml
trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/Insert/InsertProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/ListShuttle/
trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml
trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/Message/MessageStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/OrderingList/
trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingList.xhtml
trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/Panel/PanelProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/Panel/PanelStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/RichPanels/
trunk/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/
trunk/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/ModalPanel.xhtml
trunk/test-applications/facelets/src/main/webapp/RichPanels/Panel/
trunk/test-applications/facelets/src/main/webapp/RichPanels/Panel/Panel.xhtml
trunk/test-applications/facelets/src/main/webapp/RichPanels/PanelBar/
trunk/test-applications/facelets/src/main/webapp/RichPanels/PanelBar/PanelBar.xhtml
trunk/test-applications/facelets/src/main/webapp/RichPanels/SimpleTogglePanel/
trunk/test-applications/facelets/src/main/webapp/RichPanels/SimpleTogglePanel/SimpleTogglePanel.xhtml
trunk/test-applications/facelets/src/main/webapp/RichPanels/TabPanel/
trunk/test-applications/facelets/src/main/webapp/RichPanels/TabPanel/TabPanel.xhtml
trunk/test-applications/facelets/src/main/webapp/RichPanels/TogglePanel/
trunk/test-applications/facelets/src/main/webapp/RichPanels/TogglePanel/TogglePanel.xhtml
trunk/test-applications/facelets/src/main/webapp/RichTest/
trunk/test-applications/facelets/src/main/webapp/RichTest/RichTest.xhtml
trunk/test-applications/facelets/src/main/webapp/RichTest/menu.xhtml
trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/ToolBar/ToolBarProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/Tree/TreeProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ComponentControl.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Converter.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DragAndDrop.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-OrderingList.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-RichPanelsBean.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-jQuery.xml
trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/InputNumberSliderProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/InputNumberSliderStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/inputNumberSpinner/InputNumberSpinnerProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/inputNumberSpinner/InputNumberSpinnerStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/Action/
trunk/test-applications/facelets/src/main/webapp/pages/Action/EventInfo.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/Blank/
trunk/test-applications/facelets/src/main/webapp/pages/Blank/Blank.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/Blank/BlankProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/Blank/BlankStraightforward.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/RichPanels/
trunk/test-applications/facelets/src/main/webapp/pages/RichPanels/RichPanels.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/RichPanelsMenu/
trunk/test-applications/facelets/src/main/webapp/pages/RichPanelsMenu/RichPanelsMenu.xhtml
trunk/test-applications/facelets/src/main/webapp/styles/app.css
trunk/test-applications/jsp/src/main/java/componentControl/
trunk/test-applications/jsp/src/main/java/componentControl/ComponentControl.java
trunk/test-applications/jsp/src/main/java/contextMenu/
trunk/test-applications/jsp/src/main/java/contextMenu/ContextMenu.java
trunk/test-applications/jsp/src/main/java/dataDefinitionList/
trunk/test-applications/jsp/src/main/java/dataDefinitionList/DataDefinitionList.java
trunk/test-applications/jsp/src/main/java/dataOrderedList/
trunk/test-applications/jsp/src/main/java/dataOrderedList/DataOrderedList.java
trunk/test-applications/jsp/src/main/java/listShuttle/
trunk/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java
trunk/test-applications/jsp/src/main/java/orderingList/
trunk/test-applications/jsp/src/main/java/orderingList/OrderingList.java
trunk/test-applications/jsp/src/main/java/rich/MapComponent.java
trunk/test-applications/jsp/src/main/java/richTest/
trunk/test-applications/jsp/src/main/java/richTest/RichTest.java
trunk/test-applications/jsp/src/main/java/scrollableDataTable/
trunk/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java
trunk/test-applications/jsp/src/main/java/util/converter/
trunk/test-applications/jsp/src/main/java/util/converter/ListShuttleConverter.java
trunk/test-applications/jsp/src/main/java/util/converter/OrderingListConverter.java
trunk/test-applications/jsp/src/main/java/util/data/
trunk/test-applications/jsp/src/main/java/util/data/Data.java
trunk/test-applications/jsp/src/main/java/util/icon/
trunk/test-applications/jsp/src/main/java/util/icon/Icon.java
trunk/test-applications/jsp/src/main/resources/message_en.properties
trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/ComponentControl/
trunk/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp
trunk/test-applications/jsp/src/main/webapp/ContextMenu/
trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp
trunk/test-applications/jsp/src/main/webapp/DataDefinitionList/
trunk/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionList.jsp
trunk/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.jsp
trunk/test-applications/jsp/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.jsp
trunk/test-applications/jsp/src/main/webapp/DataOrderedList/
trunk/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp
trunk/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedListProperty.jsp
trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScroller.jsp
trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp
trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/DataTable/DataTable.jsp
trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableProperty.jsp
trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp
trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp
trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/Gmap/GmapProperty.jsp
trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp
trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp
trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/Insert/InsertProperty.jsp
trunk/test-applications/jsp/src/main/webapp/ListShuttle/
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/Message/MessageProperty.jsp
trunk/test-applications/jsp/src/main/webapp/Message/MessageStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp
trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/OrderingList/
trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp
trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp
trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2DStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/Panel/PanelProperty.jsp
trunk/test-applications/jsp/src/main/webapp/Panel/PanelStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp
trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp
trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp
trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorProperty.jsp
trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp
trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/Spacer/SpacerProperty.jsp
trunk/test-applications/jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp
trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp
trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp
trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp
trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp
trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/Tree/TreeProperty.jsp
trunk/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarthProperty.jsp
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ComponentControl.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-OrderingList.xml
trunk/test-applications/jsp/src/main/webapp/pages/Action/
trunk/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp
trunk/test-applications/jsp/src/main/webapp/pages/Blank/
trunk/test-applications/jsp/src/main/webapp/pages/Blank/Blank.jsp
trunk/test-applications/jsp/src/main/webapp/pages/Blank/BlankProperty.jsp
trunk/test-applications/jsp/src/main/webapp/pages/Blank/BlankStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/styles/app.css
Removed:
trunk/test-applications/facelets/src/main/java/demo/
trunk/test-applications/facelets/src/main/java/resources.properties
trunk/test-applications/facelets/src/main/java/selectOneMenuPage/
trunk/test-applications/facelets/src/main/java/skins/
trunk/test-applications/facelets/src/main/java/style/
trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml
trunk/test-applications/facelets/src/main/webapp/DataTable/DT.xhtml
trunk/test-applications/facelets/src/main/webapp/DradAndDrop/DragAndDrop.xhtml
trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml
trunk/test-applications/facelets/src/main/webapp/Rich/RichTest.xhtml
trunk/test-applications/facelets/src/main/webapp/Rich/menu.xhtml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DradAbdDrop.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-SelectOneMenuPage.xml
trunk/test-applications/jsp/src/main/java/skins/
trunk/test-applications/jsp/src/main/java/style/
trunk/test-applications/jsp/src/main/java/tree/CachingTreeDataLocator.java
trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp
trunk/test-applications/jsp/src/main/webapp/DataTable/DT.jsp
trunk/test-applications/jsp/src/main/webapp/Div/
trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DDMenu.jsp
trunk/test-applications/jsp/src/main/webapp/RichTest/Rich.jsp
trunk/test-applications/jsp/src/main/webapp/Sb.jsp
trunk/test-applications/jsp/src/main/webapp/Sb.xhtml
trunk/test-applications/jsp/src/main/webapp/Select/Map.jsp
trunk/test-applications/jsp/src/main/webapp/Select/SelectOneMenuPage.jsp
Modified:
trunk/test-applications/facelets/src/main/java/calendar/CalendarBean.java
trunk/test-applications/facelets/src/main/java/dataScroller/Data.java
trunk/test-applications/facelets/src/main/java/dataScroller/DataScroller.java
trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java
trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java
trunk/test-applications/facelets/src/main/java/dnd/DndBean.java
trunk/test-applications/facelets/src/main/java/gmap/Gmap.java
trunk/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java
trunk/test-applications/facelets/src/main/java/inputNumberSpinner/InputNumberSpinner.java
trunk/test-applications/facelets/src/main/java/message/Message.java
trunk/test-applications/facelets/src/main/java/modalPanel/ModalPanel.java
trunk/test-applications/facelets/src/main/java/paint2D/Paint2D.java
trunk/test-applications/facelets/src/main/java/paint2D/PaintData.java
trunk/test-applications/facelets/src/main/java/panel/Panel.java
trunk/test-applications/facelets/src/main/java/panelBar/PanelBar.java
trunk/test-applications/facelets/src/main/java/panelMenu/PanelMenu.java
trunk/test-applications/facelets/src/main/java/rich/RichBean.java
trunk/test-applications/facelets/src/main/java/sTP/SimpleTogglePanel.java
trunk/test-applications/facelets/src/main/java/sb/Data.java
trunk/test-applications/facelets/src/main/java/sb/Sb.java
trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java
trunk/test-applications/facelets/src/main/java/separator/Separator.java
trunk/test-applications/facelets/src/main/java/spacer/Spacer.java
trunk/test-applications/facelets/src/main/java/tabPanel/TabPanel.java
trunk/test-applications/facelets/src/main/java/togglePanel/TogglePanel.java
trunk/test-applications/facelets/src/main/java/tooltip/Tooltip.java
trunk/test-applications/facelets/src/main/java/tree/Bean.java
trunk/test-applications/facelets/src/main/java/tree/Library.java
trunk/test-applications/facelets/src/main/java/tree/test.xml
trunk/test-applications/facelets/src/main/java/virtualEarth/VirtualEarth.java
trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml
trunk/test-applications/facelets/src/main/webapp/CustomizePage/CustomizePage.xhtml
trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSlider.xhtml
trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml
trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml
trunk/test-applications/facelets/src/main/webapp/Insert/Insert.xhtml
trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml
trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml
trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2D.xhtml
trunk/test-applications/facelets/src/main/webapp/Panel/Panel.xhtml
trunk/test-applications/facelets/src/main/webapp/Panel/panel2.xhtml
trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBar.xhtml
trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenu.xhtml
trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml
trunk/test-applications/facelets/src/main/webapp/Separator/Separator.xhtml
trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.xhtml
trunk/test-applications/facelets/src/main/webapp/Spacer/Spacer.xhtml
trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBox.xhtml
trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanel.xhtml
trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanel.xhtml
trunk/test-applications/facelets/src/main/webapp/ToolBar/ToolBar.xhtml
trunk/test-applications/facelets/src/main/webapp/Tooltip/Tooltip.xhtml
trunk/test-applications/facelets/src/main/webapp/Tree/Tree.xhtml
trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Icon.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Skin.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/web.xml
trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/inputNumberSlider.xhtml
trunk/test-applications/facelets/src/main/webapp/inputNumberSpinner/inputNumberSpinner.xhtml
trunk/test-applications/facelets/src/main/webapp/jQuery/jQuery.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/Div/Div.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/RichMenu/RichMenu.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/Select/Map.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml
trunk/test-applications/facelets/src/main/webapp/styles/styles.css
trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java
trunk/test-applications/jsp/src/main/java/calendar/CalendarDataModelItemImpl.java
trunk/test-applications/jsp/src/main/java/dataScroller/Data.java
trunk/test-applications/jsp/src/main/java/dataScroller/DataScroller.java
trunk/test-applications/jsp/src/main/java/dataTable/DataTable.java
trunk/test-applications/jsp/src/main/java/ddMenu/DDMenu.java
trunk/test-applications/jsp/src/main/java/dfs/DataFilterSliderDaoImpl.java
trunk/test-applications/jsp/src/main/java/dnd/DndBean.java
trunk/test-applications/jsp/src/main/java/gmap/Gmap.java
trunk/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java
trunk/test-applications/jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java
trunk/test-applications/jsp/src/main/java/message/Message.java
trunk/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java
trunk/test-applications/jsp/src/main/java/paint2D/Paint2D.java
trunk/test-applications/jsp/src/main/java/paint2D/PaintData.java
trunk/test-applications/jsp/src/main/java/panel/Panel.java
trunk/test-applications/jsp/src/main/java/panelBar/PanelBar.java
trunk/test-applications/jsp/src/main/java/panelMenu/PanelMenu.java
trunk/test-applications/jsp/src/main/java/rich/RichBean.java
trunk/test-applications/jsp/src/main/java/sTP/SimpleTogglePanel.java
trunk/test-applications/jsp/src/main/java/sb/Data.java
trunk/test-applications/jsp/src/main/java/sb/Sb.java
trunk/test-applications/jsp/src/main/java/separator/Separator.java
trunk/test-applications/jsp/src/main/java/spacer/Spacer.java
trunk/test-applications/jsp/src/main/java/tabPanel/TabPanel.java
trunk/test-applications/jsp/src/main/java/togglePanel/TogglePanel.java
trunk/test-applications/jsp/src/main/java/tooltip/Tooltip.java
trunk/test-applications/jsp/src/main/java/tree/Bean.java
trunk/test-applications/jsp/src/main/java/tree/Library.java
trunk/test-applications/jsp/src/main/java/tree/test.xml
trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java
trunk/test-applications/jsp/src/main/java/util/phaseTracker/PhaseTracker.java
trunk/test-applications/jsp/src/main/java/util/skins/Skins.java
trunk/test-applications/jsp/src/main/java/virtualEarth/VirtualEarth.java
trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp
trunk/test-applications/jsp/src/main/webapp/DataFilterSlider/DataFilterSlider.jsp
trunk/test-applications/jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp
trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
trunk/test-applications/jsp/src/main/webapp/Gmap/Gmap.jsp
trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp
trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinner.jsp
trunk/test-applications/jsp/src/main/webapp/Insert/Insert.jsp
trunk/test-applications/jsp/src/main/webapp/Message/Message.jsp
trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2D.jsp
trunk/test-applications/jsp/src/main/webapp/Panel/Panel.jsp
trunk/test-applications/jsp/src/main/webapp/Panel/Panel2.jsp
trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBar.jsp
trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenu.jsp
trunk/test-applications/jsp/src/main/webapp/Separator/Separator.jsp
trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.jsp
trunk/test-applications/jsp/src/main/webapp/Spacer/Spacer.jsp
trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp
trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanel.jsp
trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanel.jsp
trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBar.jsp
trunk/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp
trunk/test-applications/jsp/src/main/webapp/Tree/Tree.jsp
trunk/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarth.jsp
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataFilterSlider.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DragAndDrop.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Gmap.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Icon.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-RichTest.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-TogglePanel.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-tooltip.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/web.xml
trunk/test-applications/jsp/src/main/webapp/index.jsp
trunk/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp
trunk/test-applications/jsp/src/main/webapp/pages/Div/Div.jsp
trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp
trunk/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp
trunk/test-applications/jsp/src/main/webapp/pages/Select/Map.jsp
trunk/test-applications/jsp/src/main/webapp/pages/main.jsp
trunk/test-applications/jsp/src/main/webapp/styles/styles.css
trunk/test-applications/pom.xml
Log:
update
Modified: trunk/test-applications/facelets/src/main/java/calendar/CalendarBean.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/calendar/CalendarBean.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/calendar/CalendarBean.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -35,18 +35,18 @@
public class CalendarBean {
- private static final String [] WEEK_DAY_SHORT = new String[] { "|>Sun*<|",
- "|>Mon +<|", "|>Tue +<|", "|>Wed +<|", "|>Thu +<|", "|>Fri +<|", "|>Sat*<|" };
- private static final String [] WEEK_DAY = new String[] { "|>Saturday*<|", "|>Monday+<|",
- "|>Tuesday+<|", "|>Wednesday+<|", "|>Thursday+<|", "|>Friday+<|", "|>Sunday*<|"};
- private static final String [] MOUNT_LABELS = new String[] { "January +",
- "February +", "March +", "April +", "May +", "June +", "July +", "August +",
+ private static final String [] WEEK_DAY_SHORT = new String[] { "Sun*",
+ "Mon +", "Tue +", "Wed +", "Thu +", "Fri +", "Sat*" };
+ private static final String [] WEEK_DAY = new String[] { "*Saturday*", "+Monday+",
+ "+Tuesday+", "+Wednesday+", "+Thursday+", "+Friday+", "*Sunday*"};
+ private static final String [] MOUNT_LABELS = new String[] { "January+",
+ "February+", "March+", "April+", "May +", "June +", "July +", "August +",
"September +", "October +", "November +", "December +" };
- private static final String [] MOUNT_LABELS_SHORT = new String[] { "Jan +",
- "Feb +", "Mar +", "Apr +", "May +", "Jun +", "Jul +", "Aug +",
- "Sep +", "Oct +", "Nov +", "Dec +" };
-
+ private static final String [] MOUNT_LABELS_SHORT = new String[] { "+Jan+",
+ "+Feb+", "+Mar+", "+Apr+", "+May+", "+Jun+", "+Jul+", "+Aug+",
+ "+Sep+", "+Oct+", "+Nov+", "+Dec+" };
private Locale locale;
+ private TimeZone tZone;
private boolean popup;
private boolean readonly;
private boolean showInput;
@@ -58,12 +58,12 @@
private boolean required;
private Date currentDate;
private Date selectedDate;
+ private String headerFacet;
+ private String mode;
private String preloadDateRangeBegin;
private String preloadDateRangeEnd;
private String weekDay;
private String month;
- private String height;
- private String width;
private String pattern;
private String jointPoint;
private String direction;
@@ -74,8 +74,43 @@
private String timeZone;
private int zindex;
private int counter;
+
+ public CalendarBean() {
+ mode = "client";
+ label = "Button label";
+ locale = new Locale("us","US","");
+ popup = true;
+ pattern = "MMM d, yyyy";
+ jointPoint = "bottom-left";
+ direction = "bottom-right";
+ readonly = true;
+ enableManualInput = false;
+ showInput = true;
+ boundary = "inactive";
+ icon = null;
+ disabled = false;
+ bypassUpdates = false;
+ rendered = true;
+ zindex = 2;
+ toolTipMode = "none";
+ required = false;
+ weekDay = "long";
+ month = "none";
+ timeZone = "Eastern European Time";
+ preloadDateRangeBegin = "10.08.2007"; //d.m.y
+ preloadDateRangeEnd = "11.10.2007";
+ }
-
+ public boolean getRenderedAjax() {
+ if(mode.equalsIgnoreCase("ajax") && rendered) return true;
+ else return false;
+ }
+
+ public boolean getRenderedClient() {
+ if(mode.equalsIgnoreCase("client") && rendered) return true;
+ else return false;
+ }
+
public String getTimeZone() {
return timeZone;
}
@@ -118,32 +153,14 @@
this.pattern = pattern;
}
-
- public CalendarBean() {
- height = "400px";
- width = "400px";
- label = "Button label";
- locale = Locale.US;
- popup = true;
- pattern = "MMM d, yyyy";
- jointPoint = "bottom-left";
- direction = "bottom-right";
- readonly = true;
- enableManualInput = false;
- showInput = true;
- boundary = "inactive";
- icon = null;
- disabled = false;
- bypassUpdates = false;
- rendered = true;
- zindex = 2;
- toolTipMode = "none";
- required = false;
- weekDay = "long";
- month = "none";
- timeZone = "Eastern European Time";
- preloadDateRangeBegin = "10.08.2007"; //d.m.y
- preloadDateRangeEnd = "11.10.2007";
+
+ public void selectLocale(ValueChangeEvent event) {
+ String tLocale = (String) event.getNewValue();
+ if (tLocale != null) {
+ String lang = tLocale.substring(0, 2);
+ String country = tLocale.substring(3);
+ locale = new Locale(lang, country, "");
+ }
}
public Date getPrDateRangeBegin() {
@@ -154,7 +171,6 @@
date.add(Integer.parseInt(st.nextToken()));
}
cal.set(date.get(2), date.get(1) - 1, date.get(0), 12, 0, 0);
- System.out.println("prBegin " + cal.getTime());
return cal.getTime();
}
@@ -166,7 +182,6 @@
date.add(Integer.parseInt(st.nextToken()));
}
cal.set(date.get(2), date.get(1) - 1, date.get(0), 12, 0, 0);
- System.out.println("prEnd " + cal.getTime());
return cal.getTime();
}
@@ -280,7 +295,6 @@
public void dcl(CurrentDateChangeEvent event) {
System.out.println(event.getCurrentDateString());
- System.out.println("ajvhckndskncs");
}
public void ddd(ValueChangeEvent event) {
@@ -325,14 +339,6 @@
this.bypassUpdates = bypassUpdates;
}
- public String getHeight() {
- return height;
- }
-
- public void setHeight(String height) {
- this.height = height;
- }
-
public boolean isRendered() {
return rendered;
}
@@ -357,14 +363,6 @@
this.zindex = zindex;
}
- public String getWidth() {
- return width;
- }
-
- public void setWidth(String width) {
- this.width = width;
- }
-
public boolean isRequired() {
return required;
}
@@ -383,9 +381,7 @@
public TimeZone getTmZone() {
TimeZone tZone = TimeZone.getDefault();
- System.out.println("timeZone" + timeZone + " tZone " + tZone);
tZone.setID(timeZone);
- System.out.println("timeZone" + timeZone + " tZone " + tZone);
return tZone;
}
@@ -412,4 +408,139 @@
public void setWeekDay(String weekDay) {
this.weekDay = weekDay;
}
+
+ public void setMode(String mode) {
+ this.mode = mode;
+ }
+
+ public String getMode() {
+ return mode;
+ }
+ public void bTest1() {
+ setCurrentDate(new Date());
+// setTimeZone();
+ setSelectedDate(new Date());
+ changeIcons();
+ setHeaderFacet("Test 1");
+ setLocale(new Locale("de","DE",""));
+ setDirection("bottom-left");
+ setEnableManualInput(false);
+ setDisabled(false);
+ setJointPoint("top-right");
+ setMonth("long");
+ setPattern("dd-MM-yyyy");
+ setPopup(true);
+ setPreloadDateRangeBegin("10.09.2007");
+ setPreloadDateRangeEnd("11.01.2008");
+ setReadonly(true);
+ setRequired(true);
+ setShowInput(false);
+ setToolTipMode("single");
+ setWeekDay("long");
+ setZindex(3);
+ }
+
+ public void bTest2() {
+// setCurrentDate(new Date());
+// setTimeZone();
+// setSelectedDate();
+ changeIcons();
+ setHeaderFacet("Test 2");
+ setLocale(new Locale("fr","FR",""));
+ setDirection("top-right");
+ setEnableManualInput(true);
+ setDisabled(false);
+ setJointPoint("bottom-left");
+ setMonth("none");
+ setPattern("dd.MM.yyyy");
+ setPopup(true);
+ setPreloadDateRangeBegin("10.09.2007");
+ setPreloadDateRangeEnd("12.01.2008");
+ setReadonly(true);
+ setRequired(true);
+ setShowInput(false);
+ setToolTipMode("single");
+ setWeekDay("none");
+ setZindex(3);
+ }
+
+ public void bTest3() {
+// setCurrentDate(new Date());
+// setTimeZone();
+// setSelectedDate();
+ changeIcons();
+ setHeaderFacet("Test 3");
+ setLocale(new Locale("ru","RU",""));
+ setDirection("bottom-left");
+ setEnableManualInput(false);
+ setDisabled(false);
+ setJointPoint("top-right");
+ setMonth("long");
+ setPattern("dd-MM-yyyy");
+ setPopup(false);
+ setPreloadDateRangeBegin("10.09.2007");
+ setPreloadDateRangeEnd("11.01.2008");
+ setReadonly(false);
+ setRequired(false);
+ setShowInput(false);
+ setToolTipMode("single");
+ setWeekDay("long");
+ setZindex(3);
+ }
+
+ public void bTest4() {
+// setCurrentDate(new Date());
+// setTimeZone();
+// setSelectedDate();
+ changeIcons();
+ setHeaderFacet("Test 4");
+ setLocale(new Locale("de","DE",""));
+ setDirection("bottom-left");
+ setEnableManualInput(false);
+ setDisabled(true);
+ setJointPoint("top-right");
+ setMonth("long");
+ setPattern("dd-MM-yyyy");
+ setPopup(false);
+ setPreloadDateRangeBegin("10.09.2007");
+ setPreloadDateRangeEnd("11.01.2008");
+ setReadonly(false);
+ setRequired(false);
+ setShowInput(false);
+ setToolTipMode("single");
+ setWeekDay("none");
+ setZindex(3);
+ }
+
+ public void bTest5() {
+// setCurrentDate(new Date());
+// setTimeZone();
+// setSelectedDate();
+ changeIcons();
+ setHeaderFacet("Test 5");
+ setLocale(new Locale("de","DE",""));
+ setDirection("bottom-right");
+ setEnableManualInput(false);
+ setDisabled(false);
+ setJointPoint("bottom-left");
+ setMonth("none");
+ setPattern("d/M/yy");
+ setPopup(true);
+ setPreloadDateRangeBegin("09.09.2007");
+ setPreloadDateRangeEnd("10.01.2008");
+ setReadonly(false);
+ setRequired(true);
+ setShowInput(true);
+ setToolTipMode("none");
+ setWeekDay("short");
+ setZindex(1);
+ }
+
+ public String getHeaderFacet() {
+ return headerFacet;
+ }
+
+ public void setHeaderFacet(String headerFacet) {
+ this.headerFacet = headerFacet;
+ }
}
Added: trunk/test-applications/facelets/src/main/java/componentControl/ComponentControl.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/componentControl/ComponentControl.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/componentControl/ComponentControl.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,17 @@
+package componentControl;
+
+public class ComponentControl {
+ private boolean calendarPopup;
+
+ public ComponentControl() {
+ calendarPopup = false;
+ }
+
+ public boolean isCalendarPopup() {
+ return calendarPopup;
+ }
+
+ public void setCalendarPopup(boolean calendarPopup) {
+ this.calendarPopup = calendarPopup;
+ }
+}
Added: trunk/test-applications/facelets/src/main/java/contextMenu/ContextMenu.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/contextMenu/ContextMenu.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/contextMenu/ContextMenu.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,140 @@
+package contextMenu;
+
+import java.util.Map;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+public class ContextMenu {
+ private String info;
+ private String inputText;
+ private String submitMode;
+ private String event;
+ private String popupWidth;
+ private String selectOneMenu;
+ private int hideDelay;
+ private int showDelay;
+ private boolean disableDefaultMenu;
+ private boolean rendered;
+ private boolean disamble;
+ private boolean attached;
+
+ public boolean isAttached() {
+ return attached;
+ }
+
+ public void setAttached(boolean attached) {
+ this.attached = attached;
+ }
+
+ public String getInfo() {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ Map params = facesContext.getExternalContext().getRequestParameterMap();
+ String cmdParam = (String) params.get("cmdParam");
+ if (cmdParam != null) info = cmdParam;
+ return info;
+ }
+
+ public void actionListener(ActionEvent event) {
+ setInfo("actionListener");
+ }
+
+ public void setInfo(String info) {
+ System.out.println("Info: " + info);
+ this.info = info;
+ }
+
+ public ContextMenu() {
+ selectOneMenu = "item1";
+ inputText = "inputText";
+ submitMode = "none";
+ event = "oncontextmenu";
+ popupWidth = "300px";
+ hideDelay = 3;
+ showDelay = 3;
+ disableDefaultMenu = true;
+ rendered = true;
+ disamble = false;
+ attached = true;
+ }
+
+ public boolean isDisamble() {
+ return disamble;
+ }
+
+ public void setDisamble(boolean disamble) {
+ this.disamble = disamble;
+ }
+
+ public String getEvent() {
+ return event;
+ }
+
+ public void setEvent(String event) {
+ this.event = event;
+ }
+
+ public String getSubmitMode() {
+ return submitMode;
+ }
+
+ public void setSubmitMode(String submitMode) {
+ this.submitMode = submitMode;
+ }
+
+ public boolean isDisableDefaultMenu() {
+ return disableDefaultMenu;
+ }
+
+ public void setDisableDefaultMenu(boolean disableDefaultMenu) {
+ this.disableDefaultMenu = disableDefaultMenu;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getPopupWidth() {
+ return popupWidth;
+ }
+
+ public void setPopupWidth(String popupWidth) {
+ this.popupWidth = popupWidth;
+ }
+
+ public int getHideDelay() {
+ return hideDelay;
+ }
+
+ public void setHideDelay(int hideDelay) {
+ this.hideDelay = hideDelay;
+ }
+
+ public int getShowDelay() {
+ return showDelay;
+ }
+
+ public void setShowDelay(int showDelay) {
+ this.showDelay = showDelay;
+ }
+
+ public String getInputText() {
+ return inputText;
+ }
+
+ public void setInputText(String inputText) {
+ this.inputText = inputText;
+ }
+
+ public String getSelectOneMenu() {
+ return selectOneMenu;
+ }
+
+ public void setSelectOneMenu(String selectOneMenu) {
+ this.selectOneMenu = selectOneMenu;
+ }
+}
Added: trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,85 @@
+package dataDefinitionList;
+
+import java.util.ArrayList;
+
+import util.data.Data;
+
+public class DataDefinitionList
+{
+ private ArrayList<Data> arr;
+ private int first;
+ private int rows;
+ private boolean rendered;
+ private String title;
+ private String dir;
+ private int mSize;
+
+ public String getDir() {
+ return dir;
+ }
+
+ public void setDir(String dir) {
+ this.dir = dir;
+ }
+
+ public int getMSize() {
+ return mSize;
+ }
+
+ public void setMSize(int size) {
+ mSize = size;
+ }
+
+ public void setArr(ArrayList<Data> arr) {
+ this.arr = arr;
+ }
+
+ public DataDefinitionList(){
+ arr = new ArrayList<Data>();
+ dir ="LTR";
+ rows = 20;
+ rows = 0;
+ first = 0;
+ rendered = true;
+ title = "title";
+ for(int i = 1; i < Data.cityAfrica.length; i++)
+ arr.add(new Data(Data.cityAfrica[i]));
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public int getRows() {
+ return rows;
+ }
+
+ public void setRows(int rows) {
+ this.rows = rows;
+ }
+
+ public ArrayList<Data> getArr() {
+ return arr;
+ }
+
+}
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/java/dataOrderedList/DataOrderedList.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataOrderedList/DataOrderedList.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/dataOrderedList/DataOrderedList.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,95 @@
+package dataOrderedList;
+
+import java.util.ArrayList;
+
+import util.data.Data;
+
+public class DataOrderedList
+{
+ private ArrayList<Data> arr;
+ private int first;
+ private int rows;
+ private boolean rendered;
+ private String title;
+ private String type;
+ private String dir;
+ private int mSize;
+
+ public String getDir() {
+ return dir;
+ }
+
+ public void setDir(String dir) {
+ this.dir = dir;
+ }
+
+ public int getMSize() {
+ return mSize;
+ }
+
+ public void setMSize(int size) {
+ mSize = size;
+ }
+
+ public void setArr(ArrayList<Data> arr) {
+ this.arr = arr;
+ }
+
+ public DataOrderedList(){
+ arr = new ArrayList<Data>();
+ dir ="LTR";
+ rows = 20;
+ rows = 0;
+ first = 0;
+ rendered = true;
+ title = "title";
+ type = "1";
+ for(int i = 1; i < Data.cityAfrica.length; i++)
+ arr.add(new Data(Data.cityAfrica[i]));
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public int getRows() {
+ return rows;
+ }
+
+ public void setRows(int rows) {
+ this.rows = rows;
+ }
+
+ public ArrayList<Data> getArr() {
+ return arr;
+ }
+
+}
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/java/dataScroller/Data.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataScroller/Data.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/dataScroller/Data.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -31,7 +31,7 @@
public int getData1() {
return data1;
}
-
+
public String getData2() {
return data2;
}
Modified: trunk/test-applications/facelets/src/main/java/dataScroller/DataScroller.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataScroller/DataScroller.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/dataScroller/DataScroller.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -51,7 +51,7 @@
dataTable = new ArrayList();
- for(int i=0;i<40;i++)
+ for(int i=0;i<1000;i++)
{
dataTable.add(new Data("Random",i));
}
@@ -129,7 +129,43 @@
this.limitToList = limitToList;
}
-
-
+ public void bTest1(){
+ setAlign("left");
+ setFastControls("auto");
+ setLimitToList(false);
+ setMaxPages(20);
+ setRenderIfSinglePage(true);
+ }
+ public void bTest2(){
+ setAlign("right");
+ setFastControls("show");
+ setLimitToList(false);
+ setMaxPages(30);
+ setRenderIfSinglePage(false);
+ }
+
+ public void bTest3(){
+ setAlign("center");
+ setFastControls("hide");
+ setLimitToList(false);
+ setMaxPages(10);
+ setRenderIfSinglePage(true);
+ }
+
+ public void bTest4(){
+ setAlign("center");
+ setFastControls("auto");
+ setLimitToList(true);
+ setMaxPages(30);
+ setRenderIfSinglePage(false);
+ }
+
+ public void bTest5(){
+ setAlign("left");
+ setFastControls("show");
+ setLimitToList(false);
+ setMaxPages(40);
+ setRenderIfSinglePage(true);
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -138,4 +138,44 @@
public void setR2rendered(boolean r2rendered) {
this.r2rendered = r2rendered;
}
+
+ public void bTest1() {
+ setAlign("center");
+ setBorder("4px");
+ setC1rendered(false);
+ setColumnsWidth("300px");
+ setWidth("500px");
+ }
+
+ public void bTest2() {
+ setAlign("left");
+ setBorder("0px");
+ setC1rendered(true);
+ setColumnsWidth("500px");
+ setWidth("300px");
+ }
+
+ public void bTest3() {
+ setAlign("right");
+ setBorder("5px");
+ setC1rendered(true);
+ setColumnsWidth("100px");
+ setWidth("200px");
+ }
+
+ public void bTest4() {
+ setAlign("center");
+ setBorder("4px");
+ setC1rendered(false);
+ setColumnsWidth("500px");
+ setWidth("500px");
+ }
+
+ public void bTest5() {
+ setAlign("center");
+ setBorder("4px");
+ setC1rendered(false);
+ setColumnsWidth("400px");
+ setWidth("800px");
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -178,4 +178,74 @@
public void setMode(String mode) {
this.mode = mode;
}
+
+ public void bTest1(){
+ setDirection("top-right");
+ setEvent("onmouseover");
+ setGroupDirection("top-up");
+ setHideDelay(5);
+ setHorizontalOffset(1);
+ setVerticalOffset(1);
+ setJointPoint("top-left");
+ setMode("none");
+ setPopupWidth("300px");
+ setShowDelay(1);
+ setDisabled(false);
+ }
+
+ public void bTest2(){
+ setDirection("bottom-right");
+ setEvent("onclick");
+ setGroupDirection("bottom-left");
+ setHideDelay(5);
+ setShowDelay(5);
+ setHorizontalOffset(20);
+ setVerticalOffset(20);
+ setJointPoint("bottom-right");
+ setMode("ajax");
+ setPopupWidth("200px");
+ setDisabled(false);
+ }
+
+ public void bTest3(){
+ setDirection("bottom-left");
+ setEvent("onmouseover");
+ setGroupDirection("top-up");
+ setHideDelay(10);
+ setShowDelay(10);
+ setHorizontalOffset(5);
+ setVerticalOffset(5);
+ setJointPoint("top-left");
+ setMode("server");
+ setPopupWidth("50px");
+ setDisabled(false);
+ }
+
+ public void bTest4(){
+ setDirection("top-left");
+ setEvent("onmouseover");
+ setGroupDirection("auto");
+ setHideDelay(0);
+ setShowDelay(0);
+ setHorizontalOffset(0);
+ setVerticalOffset(0);
+ setJointPoint("auto");
+ setMode("ajax");
+ setPopupWidth("auto");
+ setDisabled(true);
+ }
+
+ public void bTest5(){
+ setDirection("auto");
+ setEvent("onmouseover");
+ setGroupDirection("auto");
+ setHideDelay(1);
+ setShowDelay(5);
+ setHorizontalOffset(2);
+ setVerticalOffset(2);
+ setJointPoint("auto");
+ setMode("ajax");
+ setPopupWidth("auto");
+ setDisabled(true);
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/dnd/DndBean.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dnd/DndBean.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/dnd/DndBean.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -23,12 +23,12 @@
}
public void processDrop(DropEvent event) {
- System.out.println("Bean.processDrop()");
+ System.out.println("Bean.processDrop()" + event.getDropValue());
this.dragValue = event.getDragValue();
}
- public void processDrag(DragEvent dragEvent) {
- System.out.println("Bean.processDrag()");
+ public void processDrag(DragEvent event) {
+ System.out.println("Bean.processDrag()"+ event.getDropValue());
}
public List getTypes() {
Modified: trunk/test-applications/facelets/src/main/java/gmap/Gmap.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/gmap/Gmap.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/gmap/Gmap.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -44,11 +44,11 @@
}
public String getDragging() {
- System.out.println("aaa" + dragging);
+
return dragging;
}
public void setDragging(String dragging) {
- this.dragging = dragging;
+ this.dragging = dragging;
}
}
Modified: trunk/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,6 +1,6 @@
package inputNumberSlider;
-import javax.faces.event.ValueChangeListener;
+import javax.faces.event.ValueChangeEvent;
public class InputNumberSlider {
@@ -54,7 +54,7 @@
showBoundaryValues=true;
}
- public void changeListener(ValueChangeListener event) {
+ public void changeListener(ValueChangeEvent event) {
System.out.println("valueChangeListener " + event.toString());
}
@@ -298,7 +298,6 @@
setStep("50");
setShowToolTip(false);
setShowBoundaryValues(true);
- setShowInput(true);
}
public void bTest3(){
@@ -333,7 +332,7 @@
setInputSize(15);
setInputPosition("right");
setEnableManualInput(true);
- setValue("102");
+ setValue("103");
setShowInput(true);
setStep("2");
setShowToolTip(false);
Modified: trunk/test-applications/facelets/src/main/java/inputNumberSpinner/InputNumberSpinner.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/inputNumberSpinner/InputNumberSpinner.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/inputNumberSpinner/InputNumberSpinner.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -4,18 +4,19 @@
// private String size;
// private String controlPosition;
- private int inputSize;
- private String max;
- private String min;
- private String value;
- private String step;
- private String inputStyle;
- private String style;
- private String btnLabel = "ON";
- private boolean cycled;
- private boolean disabled;
- private boolean manualInput;
- private boolean rendered;
+ private int inputSize;
+ private String tabindex;
+ private String max;
+ private String min;
+ private String value;
+ private String step;
+ private String inputStyle;
+ private String style;
+ private String btnLabel = "ON";
+ private boolean cycled;
+ private boolean disabled;
+ private boolean manualInput;
+ private boolean rendered;
public InputNumberSpinner() {
// size= "200";
@@ -47,9 +48,10 @@
}
}
+
/*
- * public String getControlPosition() { return controlPosition; } public void
- * setControlPosition(String controlPosition) { this.controlPosition =
+ * public String getControlPosition() { return controlPosition; } public
+ * void setControlPosition(String controlPosition) { this.controlPosition =
* controlPosition; }
*/
@@ -154,4 +156,66 @@
this.inputSize = inputSize;
}
+ public String getTabindex() {
+ return tabindex;
+ }
+
+ public void setTabindex(String tabindex) {
+ this.tabindex = tabindex;
+ }
+
+ public void bTest1(){
+ setCycled(true);
+ setManualInput(true);
+ setInputSize(5);
+ setMin("0");
+ setMax("20");
+ setStep("1");
+ setTabindex("2");
+ setValue("1");
+ }
+
+ public void bTest2(){
+ setCycled(false);
+ setManualInput(false);
+ setInputSize(10);
+ setMin("1000");
+ setMax("99999");
+ setStep("255");
+ setTabindex("5");
+ setValue("5555");
+ }
+
+ public void bTest3(){
+ setCycled(true);
+ setManualInput(false);
+ setInputSize(3);
+ setMin("101");
+ setMax("202");
+ setStep("2");
+ setTabindex("2");
+ setValue("102");
+ }
+
+ public void bTest4(){
+ setCycled(false);
+ setManualInput(true);
+ setInputSize(4);
+ setMin("33");
+ setMax("66");
+ setStep("11");
+ setTabindex("3");
+ setValue("55");
+ }
+
+ public void bTest5(){
+ setCycled(true);
+ setManualInput(true);
+ setInputSize(15);
+ setMin("-99999");
+ setMax("99999");
+ setStep("33");
+ setTabindex("5");
+ setValue("101");
+ }
}
Added: trunk/test-applications/facelets/src/main/java/jQuery/JQuery.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/jQuery/JQuery.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/jQuery/JQuery.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,5 @@
+package jQuery;
+
+public class JQuery {
+
+}
Added: trunk/test-applications/facelets/src/main/java/listShuttle/ListShuttle.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/listShuttle/ListShuttle.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/listShuttle/ListShuttle.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,338 @@
+package listShuttle;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+
+import javax.faces.event.ValueChangeEvent;
+
+import util.data.Data;
+
+public class ListShuttle {
+ private int first;
+ private int lenght;
+ private String [] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
+ private boolean fastMoveControlsVisible;
+ private boolean fastOrderControlsVisible;
+ private boolean moveControlsVisible;
+ private boolean orderControlsVisible;
+ private boolean showButtonLabels;
+ private boolean showSelect;
+ private boolean showAllSourceData;
+ private boolean showAllTargetData;
+ private boolean switchByClick;
+ private ArrayList<Data> sourceValue;
+ private ArrayList<Data> targetValue;
+ private ArrayList<String> info;
+ private Collection sourceSelection;
+ private Collection targetSelection;
+ private String bottomControlLabel;
+ private String copyAllControlLabel;
+ private String copyControlLabel;
+ private String downControlLabel;
+ private String removeAllControlLabel;
+ private String removeControlLabel;
+ private String topControlLabel;
+ private String upControlLabel;
+ private String targetListWidth;
+ private String sourceListWidth;
+ private String listsHeight;
+ private String sourceCaptionLabel;
+ private String targetCaptionLabel;
+
+ public ListShuttle() {
+ this.first = 1;
+ this.lenght = 10;
+ this.showSelect = true;
+ this.showAllSourceData = true;
+ this.showAllTargetData = true;
+ this.fastMoveControlsVisible = true;
+ this.fastOrderControlsVisible = true;
+ this.moveControlsVisible = true;
+ this.orderControlsVisible = true;
+ this.showButtonLabels = true;
+ this.bottomControlLabel = "bottom";
+ this.copyAllControlLabel = "copy all";
+ this.copyControlLabel = "copy";
+ this.downControlLabel = "down";
+ this.removeAllControlLabel = "remove all";
+ this.removeControlLabel = "remove";
+ this.topControlLabel = "top";
+ this.upControlLabel = "up";
+ this.info = new ArrayList<String>();
+ this.switchByClick = false;
+ this.targetListWidth = "300";
+ this.sourceListWidth = "300";
+ this.listsHeight = "400";
+ this.sourceCaptionLabel = "sourceCaptionLabel";
+ this.targetCaptionLabel = "targetCaptionLabel";
+ this.targetValue = new ArrayList<Data>();
+ this.sourceValue = new ArrayList<Data>();
+ addNewItem();
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isFastMoveControlsVisible() {
+ return fastMoveControlsVisible;
+ }
+
+ public void setFastMoveControlsVisible(boolean fastMoveControlsVisible) {
+ this.fastMoveControlsVisible = fastMoveControlsVisible;
+ }
+
+ public boolean isFastOrderControlsVisible() {
+ return fastOrderControlsVisible;
+ }
+
+ public void setFastOrderControlsVisible(boolean fastOrderControlsVisible) {
+ this.fastOrderControlsVisible = fastOrderControlsVisible;
+ }
+
+ public boolean isMoveControlsVisible() {
+ return moveControlsVisible;
+ }
+
+ public void setMoveControlsVisible(boolean moveControlsVisible) {
+ this.moveControlsVisible = moveControlsVisible;
+ }
+
+ public boolean isOrderControlsVisible() {
+ return orderControlsVisible;
+ }
+
+ public void setOrderControlsVisible(boolean orderControlsVisible) {
+ this.orderControlsVisible = orderControlsVisible;
+ }
+
+ public boolean isShowButtonLabels() {
+ return showButtonLabels;
+ }
+
+ public void setShowButtonLabels(boolean showButtonLabels) {
+ this.showButtonLabels = showButtonLabels;
+ }
+
+ public ArrayList<Data> getSourceValue() {
+ return sourceValue;
+ }
+
+ public void setSourceValue(ArrayList<Data> sourceValue) {
+ this.sourceValue = sourceValue;
+ }
+
+ public ArrayList getTargetValue() {
+ return targetValue;
+ }
+
+ public String getBottomControlLabel() {
+ return bottomControlLabel;
+ }
+
+ public void setBottomControlLabel(String bottomControlLabel) {
+ this.bottomControlLabel = bottomControlLabel;
+ }
+
+ public String getCopyAllControlLabel() {
+ return copyAllControlLabel;
+ }
+
+ public void setCopyAllControlLabel(String copyAllControlLabel) {
+ this.copyAllControlLabel = copyAllControlLabel;
+ }
+
+ public String getCopyControlLabel() {
+ return copyControlLabel;
+ }
+
+ public void setCopyControlLabel(String copyControlLabel) {
+ this.copyControlLabel = copyControlLabel;
+ }
+
+ public String getDownControlLabel() {
+ return downControlLabel;
+ }
+
+ public void setDownControlLabel(String downControlLabel) {
+ this.downControlLabel = downControlLabel;
+ }
+
+ public String getRemoveAllControlLabel() {
+ return removeAllControlLabel;
+ }
+
+ public void setRemoveAllControlLabel(String removeAllControlLabel) {
+ this.removeAllControlLabel = removeAllControlLabel;
+ }
+
+ public String getRemoveControlLabel() {
+ return removeControlLabel;
+ }
+
+ public void setRemoveControlLabel(String removeControlLabel) {
+ this.removeControlLabel = removeControlLabel;
+ }
+
+ public String getTopControlLabel() {
+ return topControlLabel;
+ }
+
+ public void setTopControlLabel(String topControlLabel) {
+ this.topControlLabel = topControlLabel;
+ }
+
+ public String getUpControlLabel() {
+ return upControlLabel;
+ }
+
+ public void setUpControlLabel(String upControlLabel) {
+ this.upControlLabel = upControlLabel;
+ }
+
+ public void addNewItem() {
+ if(lenght < 0) lenght = 0;
+ if(sourceValue.size() > lenght)
+ for(int i = lenght; i < sourceValue.size(); )
+ sourceValue.remove(i);
+ else
+ for(int i = sourceValue.size() + 1; i <= lenght; i++)
+ sourceValue.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ }
+
+ public int getLenght() {
+ return lenght;
+ }
+
+ public void setLenght(int lenght) {
+ this.lenght = lenght;
+ }
+
+ public ArrayList<String> getInfo() {
+ info.clear();
+ addSelection(getSourceSelection(), "1. sourceSelection");
+ addSelection(getTargetSelection(), "2. targetSelection");
+ return info;
+ }
+
+ public void setInfo(ArrayList<String> info) {
+ this.info = info;
+ }
+
+ public void setTargetValue(ArrayList<Data> targetValue) {
+ this.targetValue = targetValue;
+ }
+
+ public void cbAction() {
+ info.clear();
+ info.add("commandButton submit();");
+ }
+
+ public void clAction() {
+ info.clear();
+ info.add("commandLink submit();");
+ }
+
+ public boolean isShowSelect() {
+ return showSelect;
+ }
+
+ public void setShowSelect(boolean showSelect) {
+ this.showSelect = showSelect;
+ }
+
+ public boolean isShowAllSourceData() {
+ return showAllSourceData;
+ }
+
+ public void setShowAllSourceData(boolean showAllSourceData) {
+ this.showAllSourceData = showAllSourceData;
+ }
+
+ public boolean isShowAllTargetData() {
+ return showAllTargetData;
+ }
+
+ public void setShowAllTargetData(boolean showAllTargetData) {
+ this.showAllTargetData = showAllTargetData;
+ }
+
+ public Collection getSourceSelection() {
+ return sourceSelection;
+ }
+
+ public void setSourceSelection(Collection sourceSelection) {
+ this.sourceSelection = sourceSelection;
+ }
+
+ public Collection getTargetSelection() {
+ return targetSelection;
+ }
+
+ public void setTargetSelection(Collection targetSelection) {
+ this.targetSelection = targetSelection;
+ }
+
+ public boolean isSwitchByClick() {
+ return switchByClick;
+ }
+
+ public void setSwitchByClick(boolean switchByClick) {
+ this.switchByClick = switchByClick;
+ }
+
+ public String getTargetListWidth() {
+ return targetListWidth;
+ }
+
+ public void setTargetListWidth(String targetListWidth) {
+ this.targetListWidth = targetListWidth;
+ }
+
+ public String getSourceListWidth() {
+ return sourceListWidth;
+ }
+
+ public void setSourceListWidth(String sourceListWidth) {
+ this.sourceListWidth = sourceListWidth;
+ }
+
+ public String getListsHeight() {
+ return listsHeight;
+ }
+
+ public void setListsHeight(String listsHeight) {
+ this.listsHeight = listsHeight;
+ }
+
+ public String getSourceCaptionLabel() {
+ return sourceCaptionLabel;
+ }
+
+ public void setSourceCaptionLabel(String sourceCaptionLabel) {
+ this.sourceCaptionLabel = sourceCaptionLabel;
+ }
+
+ public String getTargetCaptionLabel() {
+ return targetCaptionLabel;
+ }
+
+ public void setTargetCaptionLabel(String targetCaptionLabel) {
+ this.targetCaptionLabel = targetCaptionLabel;
+ }
+
+ private void addSelection(Collection<Data> selection, String description) {
+ if(selection == null) return;
+ Iterator<Data> inter = selection.iterator();
+ Data data = new Data();
+ while (inter.hasNext()) {
+ data = inter.next();
+ info.add(description + ": " + data.getInt0() + "; " + data.getStr0() + "; " + data.getStr0() + "submit(); " + data.getStr1() + "; " + data.getStr1() + "submit(); " + data.getStr2() + "; " + data.getStr3());
+ }
+ }
+}
Modified: trunk/test-applications/facelets/src/main/java/message/Message.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/message/Message.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/message/Message.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -7,8 +7,12 @@
private boolean showDetail;
private boolean showSummary;
private boolean tooltip;
+ private String select1;
+ private String select2;
+ private String select3;
+ private String select4;
+ private String select5;
-
public Message() {
msg = "select1";
layout = "table";
@@ -16,6 +20,11 @@
showDetail = true;
showSummary = false;
tooltip = true;
+ select1 = "error";
+ select2 = "error";
+ select3 = "error";
+ select4 = "error";
+ select5 = "error";
}
public String getMsg() {
@@ -65,4 +74,114 @@
public void setTitle(String title) {
this.title = title;
}
+
+ public String getSelect1() {
+ return select1;
+ }
+
+ public void setSelect1(String select1) {
+ this.select1 = select1;
+ }
+
+ public String getSelect2() {
+ return select2;
+ }
+
+ public void setSelect2(String select2) {
+ this.select2 = select2;
+ }
+
+ public String getSelect3() {
+ return select3;
+ }
+
+ public void setSelect3(String select3) {
+ this.select3 = select3;
+ }
+
+ public String getSelect4() {
+ return select4;
+ }
+
+ public void setSelect4(String select4) {
+ this.select4 = select4;
+ }
+
+ public String getSelect5() {
+ return select5;
+ }
+
+ public void setSelect5(String select5) {
+ this.select5 = select5;
+ }
+
+ public void bTest1(){
+ setLayout("table");
+ setMsg("fatal");
+ setShowDetail(true);
+ setShowSummary(true);
+ setTitle("Test1");
+ setTooltip(true);
+ setSelect1("error");
+ setSelect2("fatal");
+ setSelect3("warn");
+ setSelect4("info");
+ setSelect5("passed");
+ }
+
+ public void bTest2(){
+ setLayout("table");
+ setMsg("error");
+ setShowDetail(false);
+ setShowSummary(true);
+ setTitle("Test2");
+ setTooltip(true);
+ setSelect1("error");
+ setSelect2("fatal");
+ setSelect3("fatal");
+ setSelect4("passed");
+ setSelect5("passed");
+ }
+
+ public void bTest3(){
+ setLayout("table");
+ setMsg("passed");
+ setShowDetail(true);
+ setShowSummary(false);
+ setTitle("Test3");
+ setTooltip(true);
+ setSelect1("error");
+ setSelect2("error");
+ setSelect3("passed");
+ setSelect4("error");
+ setSelect5("passed");
+ }
+
+ public void bTest4(){
+ setLayout("table");
+ setMsg("passed");
+ setShowDetail(true);
+ setShowSummary(true);
+ setTitle("Test4");
+ setTooltip(false);
+ setSelect1("warn");
+ setSelect2("warn");
+ setSelect3("warn");
+ setSelect4("warn");
+ setSelect5("warn");
+ }
+
+ public void bTest5(){
+ setLayout("table");
+ setMsg("warn");
+ setShowDetail(false);
+ setShowSummary(false);
+ setTitle("Test5");
+ setTooltip(false);
+ setSelect1("passed");
+ setSelect2("fatal");
+ setSelect3("error");
+ setSelect4("passed");
+ setSelect5("warn");
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/modalPanel/ModalPanel.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/modalPanel/ModalPanel.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/modalPanel/ModalPanel.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,28 +2,61 @@
public class ModalPanel {
-
+ private boolean autosized;
+ private boolean keepVisualState;
+ private String left;
+ private String top;
+ private boolean rendered;
+ private String shadowDepth;
+ private String shadowOpacity;
+ private boolean showWhenRendered;
+ private int zindex;
private int minHeight;
private int minWidth;
private int height;
private int width;
-
private boolean moveable;
private boolean resizeable;
+ private String inputTextTest;
+ private String selectOneListboxTest;
- public ModalPanel() {
-
- minHeight = 100;
- minWidth = 100;
- height = 300;
- width = 300;
-
- moveable=true;
- resizeable=true;
-
+
+ public String getInputTextTest() {
+ return inputTextTest;
+ }
+ public void setInputTextTest(String inputTextTest) {
+ this.inputTextTest = inputTextTest;
}
+ public String getSelectOneListboxTest() {
+ return selectOneListboxTest;
+ }
+
+ public void setSelectOneListboxTest(String selectOneListboxTest) {
+ this.selectOneListboxTest = selectOneListboxTest;
+ }
+
+ public ModalPanel() {
+ this.inputTextTest = "text";
+ this.selectOneListboxTest = "1";
+ this.minHeight = 100;
+ this.minWidth = 100;
+ this.height = 300;
+ this.width = 300;
+ this.moveable=true;
+ this.resizeable=true;
+ this.autosized = false;
+ this.keepVisualState = false;
+ this.left = "100";
+ this.top = "100";
+ this.rendered = true;
+ this.shadowDepth = "3";
+ this.shadowOpacity = "3";
+ this.zindex = 3;
+ this.showWhenRendered = false;
+ }
+
public int getHeight() {
return height;
}
@@ -63,7 +96,12 @@
public void setResizeable(boolean resizeable) {
this.resizeable = resizeable;
}
+
+ public void setAutosized(boolean autosized) {
+ this.autosized = autosized;
+ }
+
public int getWidth() {
return width;
}
@@ -71,5 +109,117 @@
public void setWidth(int width) {
this.width = width;
}
+
+ public void bTest1(){
+ setHeight(300);
+ setWidth(450);
+ setMinHeight(250);
+ setMinWidth(400);
+ setMoveable(false);
+ setResizeable(false);
+ }
+ public void bTest2(){
+ setHeight(350);
+ setWidth(400);
+ setMinHeight(400);
+ setMinWidth(450);
+ setMoveable(true);
+ setResizeable(false);
+ }
+
+ public void bTest3(){
+ setHeight(400);
+ setWidth(300);
+ setMinHeight(400);
+ setMinWidth(300);
+ setMoveable(true);
+ setResizeable(true);
+ }
+
+ public void bTest4(){
+ setHeight(450);
+ setWidth(450);
+ setMinHeight(450);
+ setMinWidth(450);
+ setMoveable(false);
+ setResizeable(true);
+ }
+
+ public void bTest5(){
+ setHeight(900);
+ setWidth(800);
+ setMinHeight(700);
+ setMinWidth(600);
+ setMoveable(true);
+ setResizeable(true);
+ }
+
+ public boolean isAutosized() {
+ return autosized;
+ }
+
+ public boolean isKeepVisualState() {
+ return keepVisualState;
+ }
+
+ public void setKeepVisualState(boolean keepVisualState) {
+ this.keepVisualState = keepVisualState;
+ }
+
+ public String getLeft() {
+ return left;
+ }
+
+ public void setLeft(String left) {
+ this.left = left;
+ }
+
+ public String getTop() {
+ return top;
+ }
+
+ public void setTop(String top) {
+ this.top = top;
+ }
+
+ public boolean getRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getShadowDepth() {
+ return shadowDepth;
+ }
+
+ public void setShadowDepth(String shadowDepth) {
+ this.shadowDepth = shadowDepth;
+ }
+
+ public String getShadowOpacity() {
+ return shadowOpacity;
+ }
+
+ public void setShadowOpacity(String shadowOpacity) {
+ this.shadowOpacity = shadowOpacity;
+ }
+
+ public boolean isShowWhenRendered() {
+ return showWhenRendered;
+ }
+
+ public void setShowWhenRendered(boolean showWhenRendered) {
+ this.showWhenRendered = showWhenRendered;
+ }
+
+ public int getZindex() {
+ return zindex;
+ }
+
+ public void setZindex(int zindex) {
+ this.zindex = zindex;
+ }
}
Added: trunk/test-applications/facelets/src/main/java/orderingList/OrderingList.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/orderingList/OrderingList.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/orderingList/OrderingList.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,355 @@
+package orderingList;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+
+import javax.faces.component.html.HtmlDataTable;
+
+import util.data.Data;
+
+public class OrderingList{
+ private ArrayList<String> info;
+ private ArrayList<Data> list;
+ private String [] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
+ private String captionLabel;
+ private Collection<Data> selection;
+ private String controlsType;
+ private String controlsVerticalAlign;
+ private String controlsHorizontalAlign;
+ private String bottomControlLabel;
+ private String upControlLabel;
+ private String topControlLabel;
+ private String downControlLabel;
+ private String listHeight;
+ private String listWidth;
+ private int lenght;
+ private boolean orderControlsVisible;
+ private boolean fastOrderControlsVisible;
+ private boolean rendered;
+ private boolean showButtonLabels;
+ private boolean facet;
+ private boolean showAllData;
+ private boolean showSelect;
+
+ public boolean isFacet() {
+ return facet;
+ }
+
+ public void setFacet(boolean facet) {
+ this.facet = facet;
+ }
+
+ public Collection<Data> getSelection() {
+ return selection;
+ }
+
+ public void setSelection(Collection<Data> selection) {
+ System.out.println("Selection.out: " + selection);
+ info.clear();
+ addSelection(selection);
+ this.selection = selection;
+ }
+
+ public ArrayList<Data> getList() {
+ return list;
+ }
+
+ public void setList(ArrayList<Data> list) {
+ this.list = list;
+ }
+
+ public void addNewItem() {
+ if(lenght < 0) lenght = 0;
+ if(list.size() > lenght)
+ for(int i = lenght; i < list.size(); )
+ list.remove(i);
+ else
+ for(int i = list.size() + 1; i <= lenght; i++)
+ list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ }
+
+ public OrderingList() {
+ this.info = new ArrayList<String>();
+ this.captionLabel = "captionLabel";
+ this.lenght = 10;
+ this.listHeight = "300";
+ this.listWidth = "800";
+ this.controlsType = "button";
+ this.controlsHorizontalAlign = "right";
+ this.controlsVerticalAlign = "center";
+ this.bottomControlLabel = "bottom label";
+ this.upControlLabel = "up label";
+ this.downControlLabel = "down label";
+ this.topControlLabel = "top label";
+ this.orderControlsVisible = true;
+ this.fastOrderControlsVisible = true;
+ this.rendered = true;
+ this.showButtonLabels = true;
+ this.showAllData = true;
+ this.showSelect = true;
+ this.list = new ArrayList<Data>();
+ addNewItem();
+ }
+
+ public String getListHeight() {
+ return listHeight;
+ }
+
+ public void setListHeight(String listHeight) {
+ this.listHeight = listHeight;
+ }
+
+ public String getListWidth() {
+ return listWidth;
+ }
+
+ public void setListWidth(String listWidth) {
+ this.listWidth = listWidth;
+ }
+
+ public String getControlsType() {
+ return controlsType;
+ }
+
+ public void setControlsType(String controlsType) {
+ this.controlsType = controlsType;
+ }
+
+ public String getBottomControlLabel() {
+ return bottomControlLabel;
+ }
+
+ public void setBottomControlLabel(String bottomControlLabel) {
+ this.bottomControlLabel = bottomControlLabel;
+ }
+
+ public String getCaptionLabel() {
+ return captionLabel;
+ }
+
+ public void setCaptionLabel(String captionLabel) {
+ this.captionLabel = captionLabel;
+ }
+
+ public String getUpControlLabel() {
+ return upControlLabel;
+ }
+
+ public void setUpControlLabel(String upControlLabel) {
+ this.upControlLabel = upControlLabel;
+ }
+
+ public String getTopControlLabel() {
+ return topControlLabel;
+ }
+
+ public void setTopControlLabel(String topControlLabel) {
+ this.topControlLabel = topControlLabel;
+ }
+
+ public String getControlsVerticalAlign() {
+ return controlsVerticalAlign;
+ }
+
+ public void setControlsVerticalAlign(String controlsVerticalAlign) {
+ this.controlsVerticalAlign = controlsVerticalAlign;
+ }
+
+ public String getControlsHorizontalAlign() {
+ return controlsHorizontalAlign;
+ }
+
+ public void setControlsHorizontalAlign(String controlsHorizontalAlign) {
+ this.controlsHorizontalAlign = controlsHorizontalAlign;
+ }
+
+ public String getDownControlLabel() {
+ return downControlLabel;
+ }
+
+ public void setDownControlLabel(String downControlLabel) {
+ this.downControlLabel = downControlLabel;
+ }
+
+ public boolean isOrderControlsVisible() {
+ return orderControlsVisible;
+ }
+
+ public void setOrderControlsVisible(boolean orderControlsVisible) {
+ this.orderControlsVisible = orderControlsVisible;
+ }
+
+ public boolean isFastOrderControlsVisible() {
+ return fastOrderControlsVisible;
+ }
+
+ public void setFastOrderControlsVisible(boolean fastOrderControlsVisible) {
+ this.fastOrderControlsVisible = fastOrderControlsVisible;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public boolean isShowButtonLabels() {
+ return showButtonLabels;
+ }
+
+ public void setShowButtonLabels(boolean showButtonLabels) {
+ this.showButtonLabels = showButtonLabels;
+ }
+
+ public int getLenght() {
+ return lenght;
+ }
+
+ public void setLenght(int lenght) {
+ this.lenght = lenght;
+ }
+
+ public void cbAction() {
+ info.clear();
+ info.add("commandButton submit();");
+ addSelection(getSelection());
+ }
+
+ public void clAction() {
+ info.clear();
+ info.add("commandLink submit();");
+ addSelection(getSelection());
+ }
+
+ public void bTest1(){
+ setCaptionLabel("Caption Test1");
+ setControlsHorizontalAlign("0");
+ setControlsVerticalAlign("0");
+ setControlsType("button");
+ setLenght(40);
+ setListHeight("300");
+ setListWidth("400");
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("t1 top label");
+ setBottomControlLabel("t1 bottom label");
+ setUpControlLabel("t1 up label");
+ setDownControlLabel("t1 down label");
+ addNewItem();
+ }
+
+ public void bTest2(){
+ setCaptionLabel("Caption Test2");
+ setControlsHorizontalAlign("30");
+ setControlsVerticalAlign("50");
+ setControlsType("button");
+ setLenght(40);
+ setListHeight("600");
+ setListWidth("400");
+ setFastOrderControlsVisible(false);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("t2");
+ setBottomControlLabel("t2");
+ setUpControlLabel("t2");
+ setDownControlLabel("t2");
+ addNewItem();
+ }
+
+ public void bTest3(){
+ setCaptionLabel("Caption Test3");
+ setControlsHorizontalAlign("50");
+ setControlsVerticalAlign("10");
+ setControlsType("button");
+ setLenght(40);
+ setListHeight("500");
+ setListWidth("500");
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(false);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("top");
+ setBottomControlLabel("bottom");
+ setUpControlLabel("up");
+ setDownControlLabel("down");
+ addNewItem();
+ }
+
+ public void bTest4(){
+ setCaptionLabel("Caption Test4");
+ setControlsHorizontalAlign("0");
+ setControlsVerticalAlign("0");
+ setControlsType("button");
+ setLenght(10000);
+ setListHeight("500");
+ setListWidth("600");
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(false);
+ setTopControlLabel("");
+ setBottomControlLabel("");
+ setUpControlLabel("");
+ setDownControlLabel("");
+ addNewItem();
+ }
+
+ public void bTest5(){
+ setCaptionLabel("Caption Test5");
+ setControlsHorizontalAlign("20");
+ setControlsVerticalAlign("20");
+ setControlsType("none");
+ setLenght(100);
+ setListHeight("400");
+ setListWidth("500");
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("top");
+ setBottomControlLabel("bottom");
+ setUpControlLabel("up");
+ setDownControlLabel("down");
+ addNewItem();
+ }
+
+ public ArrayList<String> getInfo() {
+ return info;
+ }
+
+ public void setInfo(ArrayList<String> info) {
+ this.info = info;
+ }
+
+ private void addSelection(Collection<Data> selection) {
+ if(selection == null) return;
+ Iterator<Data> inter = selection.iterator();
+ Data data = new Data();
+ while (inter.hasNext()) {
+ data = inter.next();
+ info.add(data.getInt0() + "; " + data.getStr0() + "; " + data.getStr0() + "submit(); " + data.getStr1() + "; " + data.getStr1() + "submit(); " + data.getStr2() + "; " + data.getStr3());
+ }
+ }
+
+ public boolean isShowAllData() {
+ return showAllData;
+ }
+
+ public void setShowAllData(boolean showAllData) {
+ this.showAllData = showAllData;
+ }
+
+ public boolean isShowSelect() {
+ return showSelect;
+ }
+
+ public void setShowSelect(boolean showSelect) {
+ this.showSelect = showSelect;
+ }
+}
Modified: trunk/test-applications/facelets/src/main/java/paint2D/Paint2D.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/paint2D/Paint2D.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/paint2D/Paint2D.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -15,9 +15,9 @@
public class Paint2D {
- private static int size = 100;
private static float location = 150;
-
+
+ PaintData data = new PaintData();
private int width;
private int height;
private String title;
@@ -66,8 +66,8 @@
}
public void paint(Graphics2D g2, Object obj) {
- PaintData data = (PaintData) obj;
- int testLenght = data.text.length();
+ data.setText(((PaintData) obj).getText());
+ int testLenght = data.getText().length();
int fontSize = testLenght < 8 ? 40 : 40 - (testLenght - 8);
if (fontSize < 12) fontSize = 12;
Font font = new Font("Serif", Font.HANGING_BASELINE, fontSize);
@@ -78,7 +78,7 @@
g2.translate(x, y);
g2.setPaint(Color.BLUE);
- g2.drawString(data.text, 0, 0);
+ g2.drawString(data.getText(), 0, 0);
}
public int getHeight() {
@@ -153,14 +153,6 @@
this.location = location;
}
- public int getSize() {
- return size;
- }
-
- public void setSize(int size) {
- this.size = size;
- }
-
public boolean isRendered() {
return rendered;
}
@@ -176,4 +168,69 @@
public void setStyle(boolean style) {
this.style = style;
}
+
+ public void bTest1(){
+ setAlign("top");
+ setBgcolor("gray");
+ setBorder("3");
+ setFormat("gif");
+ setHeight(300);
+ setWidth(300);
+ setVspace("15");
+ setHspace("15");
+ setTitle("Test1");
+ //data.setText("Test1!");
+ }
+
+ public void bTest2(){
+ setAlign("middle");
+ setBgcolor("yellow");
+ setBorder("1");
+ setFormat("png");
+ setHeight(400);
+ setWidth(300);
+ setVspace("0");
+ setHspace("15");
+ setTitle("Test2");
+ //data.setText("Test2!");
+ }
+
+ public void bTest3(){
+ setAlign("left");
+ setBgcolor("lime");
+ setBorder("10");
+ setFormat("jpeg");
+ setHeight(300);
+ setWidth(400);
+ setVspace("15");
+ setHspace("0");
+ setTitle("Test3");
+ //data.setText("Test3!");
+ }
+
+ public void bTest4(){
+ setAlign("right");
+ setBgcolor("teal");
+ setBorder("3");
+ setFormat("gif");
+ setHeight(400);
+ setWidth(600);
+ setVspace("0");
+ setHspace("0");
+ setTitle("Test4");
+ //data.setText("Test4!");
+ }
+
+ public void bTest5(){
+ setAlign("botton");
+ setBgcolor("fuchsia");
+ setBorder("3");
+ setFormat("png");
+ setHeight(400);
+ setWidth(450);
+ setVspace("-5");
+ setHspace("-5");
+ setTitle("Test5");
+ //data.setText("Test5!");
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/paint2D/PaintData.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/paint2D/PaintData.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/paint2D/PaintData.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -3,7 +3,7 @@
import java.io.Serializable;
public class PaintData implements Serializable{
- String text;
+ private String text;
public PaintData()
{
Modified: trunk/test-applications/facelets/src/main/java/panel/Panel.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/panel/Panel.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/panel/Panel.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -57,6 +57,36 @@
else
for(int i = 0; i < title.length; i++)
title[i] = t + "_" + i;
-
}
+
+ public void bTest1(){
+ setWidth("500px");
+ setHeight("300px");
+ setTitle(new String [] {"Test1", "Test 1", "Test_1", "Test-1"});
+ }
+
+ public void bTest2(){
+ setWidth("500px");
+ setHeight("600px");
+ setTitle(new String [] {"Test2", "Test 2", "Test_2", "Test-2"});
+ }
+
+ public void bTest3(){
+ setWidth("50%");
+ setHeight("300px");
+ setTitle(new String [] {"Test3", "Test 3", "Test_3", "Test-3"});
+ }
+
+ public void bTest4(){
+ setWidth("400px");
+ setHeight("10%");
+ setTitle(new String [] {"Test4", "Test 4", "Test_4", "Test-4"});
+ }
+
+ public void bTest5(){
+ setWidth("400px");
+ setHeight("400px");
+ setTitle(new String [] {"Test5", "Test 5", "Test_5", "Test-5"});
+ }
+
}
Modified: trunk/test-applications/facelets/src/main/java/panelBar/PanelBar.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/panelBar/PanelBar.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/panelBar/PanelBar.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -121,4 +121,33 @@
this.btnLabel = btnLabel;
}
+ public void bTest1(){
+ setWidth("500px");
+ setHeight("300px");
+ setLabel(new String [] {"Test1", "Test 1", "Test_1", "Test-1"});
+ }
+
+ public void bTest2(){
+ setWidth("500px");
+ setHeight("600px");
+ setLabel(new String [] {"Test2", "Test 2", "Test_2", "Test-2"});
+ }
+
+ public void bTest3(){
+ setWidth("50%");
+ setHeight("300px");
+ setLabel(new String [] {"Test3", "Test 3", "Test_3", "Test-3"});
+ }
+
+ public void bTest4(){
+ setWidth("400px");
+ setHeight("10%");
+ setLabel(new String [] {"Test4", "Test 4", "Test_4", "Test-4"});
+ }
+
+ public void bTest5(){
+ setWidth("400px");
+ setHeight("400px");
+ setLabel(new String [] {"Test5", "Test 5", "Test_5", "Test-5"});
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/panelMenu/PanelMenu.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/panelMenu/PanelMenu.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/panelMenu/PanelMenu.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,6 +1,6 @@
package panelMenu;
-import style.icon.Icon;
+import util.icon.Icon;
public class PanelMenu {
@@ -27,14 +27,17 @@
rendered = "true";
disabled = false;
tabIndex = "1";
+ iconGroupPosition = "left";
+ iconGroupTopPosition = "left";
+ iconItemPosition = "left";
+ iconGroupTopPosition = "left";
icon = new Icon();
-/* icon.setCollapsed(icon.iconCollapse);
+ icon.setCollapsed(icon.iconCollapse);
icon.setExpanded(icon.iconExpand);
icon.setItem(icon.iconItem);
icon.setIcon(icon.iconFileManager);
icon.setCollapsedGroup(icon.iconAjaxProcess);
icon.setDisabledGroup(icon.iconAjaxStoped);
-*/
}
public boolean isDisabled() {
@@ -129,4 +132,112 @@
public void setInputText(String inputText) {
this.inputText = inputText;
}
-}
+
+ public void bTest1(){
+ icon.setCollapsed(icon.iconCollapse);
+ icon.setExpanded(icon.iconExpand);
+ icon.setItem(icon.iconItem);
+ icon.setIcon(icon.iconFileManager);
+ icon.setCollapsedGroup(icon.iconAjaxProcess);
+ icon.setDisabledGroup(icon.iconAjaxStoped);
+
+ setWidth("400px");
+ setAlign("right");
+ setDisabled(false);
+ setExpandMode("ajax");
+ setExpandSingle(false);
+ setIconGroupPosition("left");
+ setIconGroupTopPosition("right");
+ setIconItemPosition("left");
+ setIconItemTopPosition("right");
+ setMode("ajax");
+ setTabIndex("3");
+ }
+
+ public void bTest2(){
+ icon.setCollapsed(icon.iconExpand);
+ icon.setExpanded(icon.iconCollapse);
+ icon.setItem(icon.iconHeader);
+ icon.setIcon(icon.iconFileManagerReject);
+ icon.setCollapsedGroup(icon.iconAjaxStoped);
+ icon.setDisabledGroup(icon.iconAjaxProcess);
+
+ setWidth("250px");
+ setAlign("bottom");
+ setDisabled(false);
+ setExpandMode("server");
+ setExpandSingle(false);
+ setIconGroupPosition("right");
+ setIconGroupTopPosition("left");
+ setIconItemPosition("right");
+ setIconItemTopPosition("left");
+ setMode("server");
+ setTabIndex("2");
+ }
+
+ public void bTest3(){
+ icon.setCollapsed(icon.iconCollapse);
+ icon.setExpanded(icon.iconExpand);
+ icon.setItem(icon.iconItem);
+ icon.setIcon(icon.iconFileManager);
+ icon.setCollapsedGroup(icon.iconAjaxProcess);
+ icon.setDisabledGroup(icon.iconAjaxStoped);
+
+ setWidth("400px");
+ setAlign("middle");
+ setDisabled(false);
+ setExpandMode("server");
+ setExpandSingle(false);
+ setIconGroupPosition("right");
+ setIconGroupTopPosition("right");
+ setIconItemPosition("right");
+ setIconItemTopPosition("left");
+ setMode("none");
+ setTabIndex("2");
+
+ }
+
+ public void bTest4(){
+ icon.setCollapsed(icon.iconExpand);
+ icon.setExpanded(icon.iconCollapse);
+ icon.setItem(icon.iconHeader);
+ icon.setIcon(icon.iconFileManagerReject);
+ icon.setCollapsedGroup(icon.iconAjaxStoped);
+ icon.setDisabledGroup(icon.iconAjaxProcess);
+
+ setWidth("250px");
+ setAlign("top");
+ setDisabled(true);
+ setExpandMode("none");
+ setExpandSingle(false);
+ setIconGroupPosition("left");
+ setIconGroupTopPosition("left");
+ setIconItemPosition("left");
+ setIconItemTopPosition("left");
+ setMode("ajax");
+ setTabIndex("2");
+
+ }
+
+ public void bTest5(){
+ icon.setCollapsed(icon.iconCollapse);
+ icon.setExpanded(icon.iconExpand);
+ icon.setItem(icon.iconItem);
+ icon.setIcon(icon.iconFileManager);
+ icon.setCollapsedGroup(icon.iconAjaxProcess);
+ icon.setDisabledGroup(icon.iconAjaxStoped);
+
+ setWidth("250px");
+ setAlign("right");
+ setDisabled(false);
+ setExpandMode("none");
+ setExpandSingle(true);
+ setIconGroupPosition("right");
+ setIconGroupTopPosition("right");
+ setIconItemPosition("right");
+ setIconItemTopPosition("right");
+ setMode("none");
+ setTabIndex("2");
+
+ }
+}
\ No newline at end of file
Deleted: trunk/test-applications/facelets/src/main/java/resources.properties
===================================================================
--- trunk/test-applications/facelets/src/main/java/resources.properties 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/resources.properties 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,2 +0,0 @@
-prompt=Your Name\:
-greeting=Hello
Added: trunk/test-applications/facelets/src/main/java/rich/MapComponent.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/rich/MapComponent.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/rich/MapComponent.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,21 @@
+package rich;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Map;
+
+public class MapComponent {
+ private Map<String, ArrayList<String>> m;
+
+ public MapComponent() {
+ m = new HashMap<String, ArrayList<String>>();
+ }
+
+ public void add(String component, ArrayList<String> path) {
+ m.put(component, path);
+ }
+
+ public ArrayList<String> get(String key){
+ return m.get(key);
+ }
+}
Modified: trunk/test-applications/facelets/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/rich/RichBean.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/rich/RichBean.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,17 +1,121 @@
package rich;
+import java.util.ArrayList;
+
+import org.richfaces.VersionBean;
+
public class RichBean {
+ private String version = VersionBean.SCM_REVISION;
private String src;
-
+ private MapComponent map;
+ private boolean reComponent;
+ private boolean reProperty;
+ private boolean reStraightforward;
+ //private String [] menu = {"Blank", "Calendar", "DataFilterSlider", "DataScroller", "DataTable", "DragAndDrop", "DropDownMenu", "Effect", "Gmap", "InputNumberSlider", "InputNumberSpinner", "Insert", "Message", "ModalPanel", "Paint2D", "Panel", "Panel2", "PanelBar", "PanelMenu", "Separator", "SimpleTogglePanel", "Spacer", "SuggestionBox", "TabPanel", "TogglePanel", "ToolBar", "Tooltip", "Tree", "VirtualEarth", "ScrollableDataTable", "jQuery", "OrderingList"};
+
public RichBean() {
- src = "/Calendar/Calendar.xhtml";
+ src = "Blank";
+ reComponent = true;
+ reProperty = true;
+ reStraightforward = true;
+ map = new MapComponent();
+ // map.add( value, add( pages_path/name_pages, array<boolean>(Property, Straightforward) );
+ map.add("Blank", add("/pages/Blank/Blank", new boolean [] {true, true}));
+ map.add("Calendar", add("/Calendar/Calendar", new boolean [] {true, true}));
+ map.add("DataFilterSlider", add("/DataFilterSlider/DataFilterSlider", new boolean [] {true, false}));
+ map.add("DataScroller", add("/DataScroller/DataScroller", new boolean [] {true, true}));
+ map.add("DataTable", add("/DataTable/DataTable", new boolean [] {true, true}));
+ map.add("DragAndDrop", add("/DragAndDrop/DragAndDrop", new boolean [] {false, false}));
+ map.add("DropDownMenu", add("/DropDownMenu/DropDownMenu", new boolean [] {true, true}));
+ map.add("Effect", add("/Effect/Effect", new boolean [] {false, false}));
+ map.add("Gmap", add("/Gmap/Gmap", new boolean [] {true, false}));
+ map.add("InputNumberSlider", add("/InputNumberSlider/InputNumberSlider", new boolean [] {true, true}));
+ map.add("InputNumberSpinner", add("/InputNumberSpinner/InputNumberSpinner", new boolean [] {true, true}));
+ map.add("Insert", add("/Insert/Insert", new boolean [] {true, false}));
+ map.add("Message", add("/Message/Message", new boolean [] {true, true}));
+ map.add("ModalPanel", add("/ModalPanel/ModalPanel", new boolean [] {true, true}));
+ map.add("Paint2D", add("/Paint2D/Paint2D", new boolean [] {true, true}));
+ map.add("Panel", add("/Panel/Panel", new boolean [] {true, true}));
+ map.add("Panel2", add("/Panel/Panel2", new boolean [] {false, false}));
+ map.add("PanelBar", add("/PanelBar/PanelBar", new boolean [] {true, true}));
+ map.add("PanelMenu", add("/PanelMenu/PanelMenu", new boolean [] {true, true}));
+ map.add("Separator", add("/Separator/Separator", new boolean [] {true, true}));
+ map.add("SimpleTogglePanel", add("/SimpleTogglePanel/SimpleTogglePanel", new boolean [] {true, true}));
+ map.add("Spacer", add("/Spacer/Spacer", new boolean [] {true, true}));
+ map.add("SuggestionBox", add("/SuggestionBox/SuggestionBox", new boolean [] {true, true}));
+ map.add("TabPanel", add("/TabPanel/TabPanel", new boolean [] {true, true}));
+ map.add("TogglePanel", add("/TogglePanel/TogglePanel", new boolean [] {true, true}));
+ map.add("ToolBar", add("/ToolBar/ToolBar", new boolean [] {true, false}));
+ map.add("Tooltip", add("/Tooltip/Tooltip", new boolean [] {true, true}));
+ map.add("Tree", add("/Tree/Tree", new boolean [] {true, false}));
+ map.add("VirtualEarth", add("/VirtualEarth/VirtualEarth", new boolean [] {true, false}));
+ map.add("ScrollableDataTable", add("/ScrollableDataTable/ScrollableDataTable", new boolean [] {true, false}));
+ map.add("jQuery", add("/jQuery/jQuery", new boolean [] {false, false}));
+ map.add("OrderingList", add("/OrderingList/OrderingList", new boolean [] {true, true}));
+ map.add("DataDefinitionList", add("/DataDefinitionList/DataDefinitionList", new boolean [] {true, false}));
+ map.add("DataOrderedList", add("/DataOrderedList/DataOrderedList", new boolean [] {true, false}));
+ map.add("ContextMenu", add("/ContextMenu/ContextMenu", new boolean [] {true, false}));
+ map.add("ListShuttle", add("/ListShuttle/ListShuttle", new boolean [] {true, true}));
+ map.add("ComponentControl", add("/ComponentControl/ComponentControl", new boolean [] {false, false}));
}
public String getSrc() {
return src;
}
+ public String getPathComponent() {
+ return map.get(src).get(0);
+ }
+
+ public String getPathProperty() {
+ return map.get(src).get(1);
+ }
+
+ public String getPathStraightforward() {
+ return map.get(src).get(2);
+ }
+
public void setSrc(String src) {
this.src = src;
}
+
+ private ArrayList<String> add(String path, boolean [] arr){
+ ArrayList<String> list = new ArrayList<String>();
+ list.add(path + ".xhtml");
+ if(arr[0]) list.add(path + "Property.xhtml"); else list.add("/pages/Blank/BlankProperty.xhtml");
+ if(arr[1]) list.add(path + "Straightforward.xhtml"); else list.add("/pages/Blank/BlankStraightforward.xhtml");
+ return list;
+ }
+
+ public boolean isReComponent() {
+ return reComponent;
+ }
+
+ public void setReComponent(boolean reComponent) {
+ this.reComponent = reComponent;
+ }
+
+ public boolean isReProperty() {
+ return reProperty;
+ }
+
+ public void setReProperty(boolean reProperty) {
+ this.reProperty = reProperty;
+ }
+
+ public boolean isReStraightforward() {
+ return reStraightforward;
+ }
+
+ public void setReStraightforward(boolean reStraightforward) {
+ this.reStraightforward = reStraightforward;
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
}
Added: trunk/test-applications/facelets/src/main/java/richPanels/MapComponent.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/richPanels/MapComponent.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/richPanels/MapComponent.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,21 @@
+package richPanels;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Map;
+
+public class MapComponent {
+ private Map<String, ArrayList<String>> m;
+
+ public MapComponent() {
+ m = new HashMap<String, ArrayList<String>>();
+ }
+
+ public void add(String component, ArrayList<String> path) {
+ m.put(component, path);
+ }
+
+ public ArrayList<String> get(String key){
+ return m.get(key);
+ }
+}
Added: trunk/test-applications/facelets/src/main/java/richPanels/RichPanelsBean.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/richPanels/RichPanelsBean.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/richPanels/RichPanelsBean.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,75 @@
+package richPanels;
+
+import java.util.ArrayList;
+
+public class RichPanelsBean {
+ private String src;
+ private MapComponent map;
+
+ public RichPanelsBean() {
+ src = "Blank";
+ map = new MapComponent();
+ // map.add( value, add( pages_path/name_pages, array<boolean>(Property, Straightforward) );
+ map.add("Blank", add("/pages/Blank/Blank", new boolean [] {true, true}));
+ map.add("Calendar", add("/Calendar/Calendar", new boolean [] {true, true}));
+ map.add("DataFilterSlider", add("/DataFilterSlider/DataFilterSlider", new boolean [] {true, false}));
+ map.add("DataScroller", add("/DataScroller/DataScroller", new boolean [] {true, true}));
+ map.add("DataTable", add("/DataTable/DataTable", new boolean [] {true, true}));
+ map.add("DragAndDrop", add("/DragAndDrop/DragAndDrop", new boolean [] {false, false}));
+ map.add("DropDownMenu", add("/DropDownMenu/DropDownMenu", new boolean [] {true, true}));
+ map.add("Effect", add("/Effect/Effect", new boolean [] {false, false}));
+ map.add("Gmap", add("/Gmap/Gmap", new boolean [] {true, false}));
+ map.add("InputNumberSlider", add("/InputNumberSlider/InputNumberSlider", new boolean [] {true, true}));
+ map.add("InputNumberSpinner", add("/InputNumberSpinner/InputNumberSpinner", new boolean [] {true, true}));
+ map.add("Insert", add("/Insert/Insert", new boolean [] {true, false}));
+ map.add("Message", add("/Message/Message", new boolean [] {true, true}));
+ map.add("ModalPanel", add("/RichPanels/ModalPanel/ModalPanel", new boolean [] {false, false}));
+ map.add("Paint2D", add("/Paint2D/Paint2D", new boolean [] {true, true}));
+ map.add("Panel", add("/RichPanels/Panel/Panel", new boolean [] {false, false}));
+ map.add("Panel2", add("/Panel/Panel2", new boolean [] {false, false}));
+ map.add("PanelBar", add("/RichPanels/PanelBar/PanelBar", new boolean [] {false, false}));
+ map.add("PanelMenu", add("/PanelMenu/PanelMenu", new boolean [] {true, true}));
+ map.add("Separator", add("/Separator/Separator", new boolean [] {true, true}));
+ map.add("SimpleTogglePanel", add("/RichPanels/SimpleTogglePanel/SimpleTogglePanel", new boolean [] {false, false}));
+ map.add("Spacer", add("/Spacer/Spacer", new boolean [] {true, true}));
+ map.add("SuggestionBox", add("/SuggestionBox/SuggestionBox", new boolean [] {true, true}));
+ map.add("TabPanel", add("/RichPanels/TabPanel/TabPanel", new boolean [] {false, false}));
+ map.add("TogglePanel", add("/RichPanels/TogglePanel/TogglePanel", new boolean [] {false, false}));
+ map.add("ToolBar", add("/ToolBar/ToolBar", new boolean [] {true, false}));
+ map.add("Tooltip", add("/Tooltip/Tooltip", new boolean [] {true, true}));
+ map.add("Tree", add("/Tree/Tree", new boolean [] {true, false}));
+ map.add("VirtualEarth", add("/VirtualEarth/VirtualEarth", new boolean [] {true, true}));
+ map.add("ScrollableDataTable", add("/ScrollableDataTable/ScrollableDataTable", new boolean [] {true, false}));
+ map.add("jQuery", add("/jQuery/jQuery", new boolean [] {false, false}));
+ map.add("OrderingList", add("/OrderingList/OrderingList", new boolean [] {true, false}));
+ }
+
+ public String getSrc() {
+ return src;
+ }
+
+ public String getPathComponent() {
+ return map.get(src).get(0);
+ }
+
+ public String getPathProperty() {
+ return map.get(src).get(1);
+ }
+
+ public String getPathStraightforward() {
+ return map.get(src).get(2);
+ }
+
+ public void setSrc(String src) {
+ this.src = src;
+ }
+
+ private ArrayList<String> add(String path, boolean [] arr){
+ ArrayList<String> list = new ArrayList<String>();
+ list.add(path + ".xhtml");
+ if(arr[0]) list.add(path + "Property.xhtml"); else list.add("/pages/Blank/BlankProperty.xhtml");
+ if(arr[1]) list.add(path + "Straightforward.xhtml"); else list.add("/pages/Blank/BlankStraightforward.xhtml");
+ return list;
+ }
+}
+
Modified: trunk/test-applications/facelets/src/main/java/sTP/SimpleTogglePanel.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/sTP/SimpleTogglePanel.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/sTP/SimpleTogglePanel.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -5,7 +5,7 @@
private String switchType; // "client", "server"(default), "ajax"
private String width;
private String height;
-
+ private String position = "right";
private boolean focus;
private boolean rendered;
@@ -56,4 +56,42 @@
public void setFocus(boolean focus) {
this.focus = focus;
}
+
+ public void bTest1(){
+ setHeight("80px");
+ setWidth("300px");
+ setSwitchType("ajax");
+ }
+
+ public void bTest2(){
+ setHeight("10%");
+ setWidth("100%");
+ setSwitchType("client");
+ }
+
+ public void bTest3(){
+ setHeight("80px");
+ setWidth("100%");
+ setSwitchType("server");
+ }
+
+ public void bTest4(){
+ setHeight("10%");
+ setWidth("200px");
+ setSwitchType("client");
+ }
+
+ public void bTest5(){
+ setHeight("400px");
+ setWidth("250px");
+ setSwitchType("client");
+ }
+
+ public String getPosition() {
+ return position;
+ }
+
+ public void setPosition(String position) {
+ this.position = position;
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/sb/Data.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/sb/Data.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/sb/Data.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,39 +1,37 @@
package sb;
public class Data {
- private String text;
+ private String city;
+ private String contry;
+ private boolean flag;
- private String label;
-
- private String flag;
-
- public Data(String text, String alabelbel){
- this.text = text;
- this.label = alabelbel;
- this.flag="/pics/header.png";
+ public Data(String city, String contry, boolean flag) {
+ this.city = city;
+ this.contry = contry;
+ this.flag = flag;
}
- public String getLabel() {
- return label;
+ public boolean getFlag() {
+ return flag;
}
- public void setLabel(String label) {
- this.label = label;
+ public void setFlag(boolean flag) {
+ this.flag = flag;
}
- public String getText() {
- return text;
+ public String getCity() {
+ return city;
}
- public void setText(String text) {
- this.text = text;
+ public void setCity(String city) {
+ this.city = city;
}
- public String getFlag() {
- return flag;
+ public String getContry() {
+ return contry;
}
- public void setFlag(String flag) {
- this.flag = flag;
+ public void setContry(String contry) {
+ this.contry = contry;
}
}
Modified: trunk/test-applications/facelets/src/main/java/sb/Sb.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/sb/Sb.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/sb/Sb.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,268 +1,345 @@
package sb;
-import java.util.*;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
import org.richfaces.renderkit.html.SuggestionBoxRenderer;
-public class Sb {
+public class Sb implements Serializable {
- private ArrayList cities;
- private ArrayList data;
- private ArrayList tokens;
- private int first;
- private String zindex;
- private String property;
- private String rows;
- private String cellspacing;
- private String cellpadding;
- private String minchars;
- private String frequency;
- private String rules;
- private String border;
- private String width;
- private String height;
- private String shadowOpacity;
- private String bgColor;
- private String shadowDepth;
- private boolean focus;
- private boolean check;
- private boolean reRender;
+ private ArrayList cities;
+ private ArrayList data;
+ private ArrayList tokens;
+ private int first;
+ private int zindex;
+ private String property;
+ private String rows;
+ private String cellspacing;
+ private String cellpadding;
+ private String minchars;
+ private String frequency;
+ private String rules;
+ private String border;
+ private String width;
+ private String height;
+ private String shadowOpacity;
+ private String bgColor;
+ private String shadowDepth;
+ private boolean focus;
- private static final String[] cit = { "Abba", "Abbeville", "Acworth",
- "Adairsville", "Adel", "Adrian", "Ailey", "Alamo", "Alapaha",
- "Albany", "Allenhurst", "Alma", "Alma", "Alpharetta", "Alston",
- "Amboy", "Ambrose", "Americus", "Appling", "Arlington", "Ashburn",
- "Athens", "Athens-Clarke County", "Atkinson", "Atlanta",
- "Attapulgus", "Auburn", "Augusta", "Augusta-Richmond County",
- "Austell", "Avondale Estates", "Axson" };
+ /*
+ * private static final String[] cit = { "Abba", "Abbeville", "Acworth",
+ * "Adairsville", "Adel", "Adrian", "Ailey", "Alamo", "Alapaha", "Albany",
+ * "Allenhurst", "Alma", "Alma", "Alpharetta", "Alston", "Amboy", "Ambrose",
+ * "Americus", "Appling", "Arlington", "Ashburn", "Athens", "Athens-Clarke
+ * County", "Atkinson", "Atlanta", "Attapulgus", "Auburn", "Augusta",
+ * "Augusta-Richmond County", "Austell", "Avondale Estates", "Axson" };
+ */
+ private static final String[] cityAfrica = {"Africa", "Algeria", "Angola", "Bassas da India", "Benin", "Botswana", "Burkina Faso", "Burundi", "Cameroon", "Central African Republic", "Chad", "Comoros", "Democratic Republic of the Congo", "Djibouti", "Egypt", "Equatorial Guinea", "Eritrea", "Ethiopia", "Europa Island", "Gabon", "Gambia", "Ghana", "Glorioso Islands", "Guinea", "Guinea-Bissau", "Ivory Coast", "Juan de Nova Island", "Kenya", "Lesotho", "Liberia", "Libya", "Madagascar", "Malawi", "Mali", "Mauritania", "Mauritius Island", "Mayotte", "Morocco", "Mozambique", "Namibia", "Niger", "Nigeria", "Republic of the Congo", "Reunion", "Rwanda", "Saint Helena", "Sao Tome and Principe", "Senegal", "Seychelles", "Sierra Leone", "Somalia", "South Africa", "Sudan", "Swaziland", "Tanzania", "Togo", "Tromelin Island", "Tunisia", "Uganda", "Western Sahara", "Zambia", "Zimbabwe"};
+ private static final String[] cityAsia = {"Asia", "Afghanistan", "Armenia", "Azerbaijan", "Bangladesh", "Bhutan", "China", "Georgia", "India", "Japan", "Kazakhstan", "Korea, North", "Korea, South", "Kyrgyzstan", "Maldives", "Mongolia", "Nepal", "Pakistan", "Russia", "Sri Lanka", "Tajikistan", "Turkmenistan", "Uzbekistan"};
+ private static final String[] cityCAmerica = {"Central America", "Belize", "Costa Rica", "El Salvador", "Guatemala", "Honduras", "Nicaragua", "Panama"};
+ private static final String[] cityEurope = {"Europe", "Albania", "Andorra", "Austria", "Belarus", "Belgium", "Bosnia and Herzegovina", "Bulgaria", "Canary Islands", "Croatia", "Czech Republic", "Denmark", "Estonia", "Faroe Islands", "Finland", "France", "Germany", "Gibraltar", "Greece", "Guernsey", "Hungary", "Iceland", "Ireland", "Isle of Man", "Italy", "Jersey", "Latvia", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Malta", "Moldova", "Monaco", "Montenegro", "Netherlands", "Norway", "Poland", "Portugal", "Romania", "San Marino", "Serbia and Montenegro", "Slovakia", "Slovenia", "Spain", "Sweden", "Switzerland", "Ukraine", "United Kingdom", "Vatican The Holy See"};
+ private static final String[] cityMEast = {"Middle East", "Akrotiri", "Bahrain", "Cyprus", "Dhekelia", "Gaza Strip", "Iran", "Iraq", "Israel", "Jordan", "Kuwait", "Lebanon", "Oman", "Qatar", "Saudi Arabia", "Syria", "Turkey", "United Arab Emirates", "West Bank", "Yemen"};
+ private static final String[] cityNAmerica = {"North America", "Bermuda", "Canada", "Greenland", "Mexico", "Saint Pierre and Miquelon", "United States of America"};
+ private static final String[] cityOceania = {"Oceania", "American Samoa", "Australia", "Baker Island", "Cook Islands", "Coral Sea Islands", "Fiji", "French Polynesia", "Guam", "Howland Island", "Jarvis Island", "Johnston Atoll", "Kingman Reef", "Kiribati", "Marshall Islands", "Micronesia", "Midway Islands", "Nauru", "New Caledonia", "New Zealand", "Niue", "Norfolk Island", "Northern Mariana Islands", "Palau", "Palmyra Atoll", "Papua New Guinea", "Pitcairn Islands", "Samoa", "Solomon Islands", "Tokelau", "Tonga", "Tuvalu", "Vanuatu", "Wake Island", "Wallis and Futuna"};
+ private static final String[] citySAmerica = {"South America","Argentina", "Bolivia", "Brazil", "Chile", "Colombia", "Easter Island", "Ecuador", "Falkland Islands", "French Guiana", "Guyana", "Paraguay", "Peru", "Suriname", "Uruguay", "Venezuela"};
+ private static final String[] citySEAsia = {"SouthEast Asia", "Ashmore and Cartier Islands", "Brunei", "Burma", "Cambodia", "Christmas Island", "Cocos (Keeling) Islands", "East Timor", "Hong Kong", "Indonesia", "Laos", "Malaysia", "Paracel Islands", "Philippines", "Singapore", "Spratly Islands", "Taiwan", "Thailand", "Vietnam"};
+ private static final String[] cityCaribbean = {"The Caribbean", "Anguilla", "Antigua and Barbuda", "Aruba", "Barbados", "British Virgin Islands", "Cayman Islands", "Cuba", "Dominica", "Dominican Republic", "Grenada", "Guadeloupe", "Haiti", "Jamaica", "Martinique", "Montserrat", "Navassa Island", "Netherlands Antilles", "Puerto Rico", "Saint Barthelemy", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "The Bahamas", "Trinidad and Tobago", "Turks and Caicos Islands", "Virgin Islands"};
- public Sb() {
- border = "1";
- width = "200";
- height = "150";
- shadowOpacity = "1";
- shadowDepth = Integer.toString(SuggestionBoxRenderer.SHADOW_DEPTH);
- reRender = true;
- zindex = "3";
- focus = true;
- rows = "0";
- first = 0;
- cellspacing = "2";
- cellpadding = "2";
- minchars = "1";
- frequency = "0";
- rules = "none";
- setCities(getAllData());
- }
- public List autocomplete(Object event) {
- String pref = event.toString();
- ArrayList result = new ArrayList();
+ public Sb() {
+ border = "1";
+ width = "200";
+ height = "150";
+ shadowOpacity = "1";
+ shadowDepth = Integer.toString(SuggestionBoxRenderer.SHADOW_DEPTH);
+ zindex = 3;
+ focus = true;
+ rows = "0";
+ first = 0;
+ cellspacing = "2";
+ cellpadding = "2";
+ minchars = "1";
+ frequency = "0";
+ rules = "none";
+ setCities(getAllData());
+ }
- Iterator iterator = getAllData().iterator();
- while (iterator.hasNext()) {
- Data elem = (Data) iterator.next();
- if ((elem != null && elem.getText().toLowerCase().indexOf(
- pref.toLowerCase()) == 0)
- || "".equals(pref)) {
- result.add(elem);
- }
+ public List autocomplete(Object event) {
+ String pref = event.toString();
+ ArrayList result = new ArrayList();
+
+ Iterator iterator = getAllData().iterator();
+ while (iterator.hasNext()) {
+ Data elem = (Data) iterator.next();
+ if ((elem != null && elem.getCity().toLowerCase().indexOf(
+ pref.toLowerCase()) == 0)
+ || "".equals(pref)) {
+ result.add(elem);
+ }
+ }
+ return result;
}
- return result;
- }
- public ArrayList getCities() {
- return cities;
- }
+ public ArrayList getCities() {
+ return cities;
+ }
- public void setCities(ArrayList cities) {
- this.cities = cities;
- }
+ public void setCities(ArrayList cities) {
+ this.cities = cities;
+ }
- public ArrayList getAllData() {
- ArrayList result = new ArrayList();
- for (int i = 0; i < cit.length; i++) {
- Data data = new Data(cit[i], String.valueOf(i + 1));
- result.add(data);
+ private ArrayList<Data> addData(String[] mStr, ArrayList<Data> arr) {
+ for (int i = 1; i < mStr.length; i++) {
+ Data data = new Data(mStr[i], mStr[0], false);
+ arr.add(data);
+ }
+ return arr;
}
- return result;
- }
- public ArrayList getData() {
- return data;
- }
+ public ArrayList getAllData() {
+ /*
+ * for (int i = 0; i < cit.length; i++) { Data data = new Data(cit[i],
+ * String.valueOf(i + 1)); result.add(data); }
+ */
+ ArrayList<Data> result = new ArrayList<Data>();
+ result = addData(cityAfrica, result);
+ result = addData(cityAsia, result);
+ result = addData(cityCAmerica, result);
+ result = addData(cityCaribbean, result);
+ result = addData(cityEurope, result);
+ result = addData(cityMEast, result);
+ result = addData(cityNAmerica, result);
+ result = addData(cityOceania, result);
+ result = addData(citySAmerica, result);
+ result = addData(citySEAsia, result);
+ return result;
+ }
- public void setData(ArrayList data) {
- this.data = data;
- }
+ public ArrayList getData() {
+ return data;
+ }
- public String getProperty() {
- return property;
- }
+ public void setData(ArrayList data) {
+ this.data = data;
+ }
- public void setProperty(String property) {
- this.property = property;
- }
+ public String getProperty() {
+ return property;
+ }
- public String getCellpadding() {
- return cellpadding;
- }
+ public void setProperty(String property) {
+ this.property = property;
+ }
- public void setCellpadding(String cellpadding) {
- this.cellpadding = cellpadding;
- }
+ public String getCellpadding() {
+ return cellpadding;
+ }
- public String getCellspacing() {
- return cellspacing;
- }
+ public void setCellpadding(String cellpadding) {
+ this.cellpadding = cellpadding;
+ }
- public void setCellspacing(String cellspacing) {
- this.cellspacing = cellspacing;
- }
+ public String getCellspacing() {
+ return cellspacing;
+ }
- public boolean isCheck() {
- return check;
- }
+ public void setCellspacing(String cellspacing) {
+ this.cellspacing = cellspacing;
+ }
- public void setCheck(boolean check) {
- this.check = check;
- }
+ public int getFirst() {
+ return first;
+ }
- public int getFirst() {
- return first;
- }
+ public int getIntFirst() {
+ return first;
+ }
- public int getIntFirst() {
- return first;
- }
+ public void setFirst(int first) {
+ this.first = first;
+ }
- public void setFirst(int first) {
- this.first = first;
- }
+ public String getFrequency() {
+ return frequency;
+ }
- public String getFrequency() {
- return frequency;
- }
+ public double getDoubleFrequency() {
+ return Double.parseDouble(getFrequency());
+ }
- public double getDoubleFrequency() {
- return Double.parseDouble(getFrequency());
- }
+ public void setFrequency(String frequency) {
+ this.frequency = frequency;
+ }
- public void setFrequency(String frequency) {
- this.frequency = frequency;
- }
+ public String getMinchars() {
+ return minchars;
+ }
- public String getMinchars() {
- return minchars;
- }
+ public void setMinchars(String minchars) {
+ this.minchars = minchars;
+ }
- public void setMinchars(String minchars) {
- this.minchars = minchars;
- }
+ public String getRows() {
+ return rows;
+ }
- public String getRows() {
- return rows;
- }
+ public int getIntRows() {
+ return Integer.parseInt(getRows());
+ }
- public int getIntRows() {
- return Integer.parseInt(getRows());
- }
+ public void setRows(String rows) {
+ this.rows = rows;
+ }
- public void setRows(String rows) {
- this.rows = rows;
- }
+ public String getRules() {
+ return rules;
+ }
- public String getRules() {
- return rules;
- }
+ public void setRules(String rules) {
+ this.rules = rules;
+ }
- public void setRules(String rules) {
- this.rules = rules;
- }
+ public ArrayList getTokens() {
+ return tokens;
+ }
- public ArrayList getTokens() {
- return tokens;
- }
+ public void setTokens(ArrayList tokens) {
+ this.tokens = tokens;
+ }
- public void setTokens(ArrayList tokens) {
- this.tokens = tokens;
- }
+ public void OnSelect() {
+ System.out.print("Onselect works!!!");
+ }
- public void OnSelect() {
- System.out.print("Onselect works!!!");
+ public String getBorder() {
+ return border;
+ }
- }
+ public void setBorder(String border) {
+ this.border = border;
+ }
- public String getBorder() {
- return border;
- }
+ public String getHeight() {
+ return height;
+ }
- public void setBorder(String border) {
- this.border = border;
- }
+ public void setHeight(String height) {
+ this.height = height;
+ }
- public String getHeight() {
- return height;
- }
+ public String getShadowOpacity() {
+ return shadowOpacity;
+ }
- public void setHeight(String height) {
- this.height = height;
- }
+ public void setShadowOpacity(String shadowOpacity) {
+ this.shadowOpacity = shadowOpacity;
+ }
- public String getShadowOpacity() {
- return shadowOpacity;
- }
+ public String getWidth() {
+ return width;
+ }
- public void setShadowOpacity(String shadowOpacity) {
- this.shadowOpacity = shadowOpacity;
- }
+ public void setWidth(String width) {
+ this.width = width;
+ }
- public String getWidth() {
- return width;
- }
+ public String getBgColor() {
+ return bgColor;
+ }
- public void setWidth(String width) {
- this.width = width;
- }
+ public void setBgColor(String bgColor) {
+ this.bgColor = bgColor;
+ }
- public String getBgColor() {
- return bgColor;
- }
+ public boolean isFocus() {
+ return focus;
+ }
- public void setBgColor(String bgColor) {
- this.bgColor = bgColor;
- }
+ public void setFocus(boolean focus) {
+ this.focus = focus;
+ }
- public boolean isFocus() {
- return focus;
- }
+ public int getZindex() {
+ return zindex;
+ }
- public void setFocus(boolean focus) {
- this.focus = focus;
- }
+ public void setZindex(int zindex) {
+ this.zindex = zindex;
+ }
- public String getZindex() {
- return zindex;
- }
+ public String getShadowDepth() {
+ return shadowDepth;
+ }
- public void setZindex(String zindex) {
- this.zindex = zindex;
- }
+ public void setShadowDepth(String shadowDepth) {
+ this.shadowDepth = shadowDepth;
+ }
- public String getShadowDepth() {
- return shadowDepth;
- }
+ public void bTest1() {
+ setBorder("2");
+ setCellpadding("0");
+ setCellspacing("0");
+ setFrequency("0");
+ setHeight("150");
+ setWidth("200");
+ setMinchars("1");
+ setShadowDepth("11");
+ setShadowOpacity("3");
+ setZindex(3);
+ }
- public void setShadowDepth(String shadowDepth) {
- this.shadowDepth = shadowDepth;
- }
+ public void bTest2() {
+ setBorder("0");
+ setCellpadding("3");
+ setCellspacing("3");
+ setFrequency("2");
+ setHeight("200");
+ setWidth("200");
+ setMinchars("1");
+ setShadowDepth("1");
+ setShadowOpacity("7");
+ setZindex(3);
+ }
- public boolean isReRender() {
- return reRender;
- }
+ public void bTest3() {
+ setBorder("1");
+ setCellpadding("5");
+ setCellspacing("0");
+ setFrequency("1");
+ setHeight("150");
+ setWidth("200");
+ setMinchars("2");
+ setShadowDepth("1");
+ setShadowOpacity("7");
+ setZindex(3);
+ }
- public void setReRender(boolean reRender) {
- this.reRender = reRender;
- }
+ public void bTest4() {
+ setBorder("1");
+ setCellpadding("0");
+ setCellspacing("5");
+ setFrequency("3");
+ setHeight("150");
+ setWidth("200");
+ setMinchars("2");
+ setShadowDepth("7");
+ setShadowOpacity("1");
+ setZindex(3);
+ }
+ public void bTest5() {
+ setBorder("4");
+ setCellpadding("1");
+ setCellspacing("1");
+ setFrequency("5");
+ setHeight("200");
+ setWidth("400");
+ setMinchars("2");
+ setShadowDepth("5");
+ setShadowOpacity("5");
+ setZindex(1);
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -8,16 +8,31 @@
public class ScrollableDataTable
{
private ArrayList<Data> data;
- private String [] priority = {"blocker", "critical", "major", "minor", "trivial"};
- private String [] priorityIcon = {"/pics/sdt/priority_blocker.gif", "/pics/sdt/priority_critical.gif", "/pics/sdt/priority_major.gif", "/pics/sdt/priority_minor.gif", "/pics/sdt/priority_trivial.gif"};
+ private String [] status = {"error", "fatal", "info", "passed", "warn"};
+ private String [] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
+ private String width;
+ private int rows;
+ private String key;
+ private boolean hideWhenScrolling;
+ public boolean isHideWhenScrolling() {
+ return hideWhenScrolling;
+ }
+
+ public void setHideWhenScrolling(boolean hideWhenScrolling) {
+ this.hideWhenScrolling = hideWhenScrolling;
+ }
+
public ScrollableDataTable() {
+ width = "400px";
+ rows = 30;
+ hideWhenScrolling = false;
data = new ArrayList<Data>();
int k;
for(int i = 0; i < 10000; i++) {
k = new Random().nextInt(5);
- data.add(new Data("Bug " + new Random().nextInt(10 + i), i,priority[k], priorityIcon[k]));
+ data.add(new Data("Bug " + new Random().nextInt(10 + i), i,status[k], statusIcon[k]));
}
}
@@ -28,4 +43,24 @@
public void setData(ArrayList<Data> data) {
this.data = data;
}
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public int getRows() {
+ return rows;
+ }
+
+ public void setRows(int rows) {
+ this.rows = rows;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
}
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/java/separator/Separator.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/separator/Separator.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/separator/Separator.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -132,4 +132,43 @@
this.width = width;
}
+ public void bTest1(){
+ setAlign("left");
+ setHeight("300px");
+ setWidth("10px");
+ setLineType("beveled");
+ setTitle("Test1");
+ }
+
+ public void bTest2(){
+ setAlign("center");
+ setHeight("50px");
+ setWidth("600px");
+ setLineType("dotted");
+ setTitle("Test2");
+ }
+
+ public void bTest3(){
+ setAlign("right");
+ setHeight("150px");
+ setWidth("200px");
+ setLineType("dashed");
+ setTitle("Test3");
+ }
+
+ public void bTest4(){
+ setAlign("left");
+ setHeight("20px");
+ setWidth("300px");
+ setLineType("double");
+ setTitle("Test4");
+ }
+
+ public void bTest5(){
+ setAlign("left");
+ setHeight("100px");
+ setWidth("100px");
+ setLineType("solid");
+ setTitle("Test5");
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/spacer/Spacer.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/spacer/Spacer.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/spacer/Spacer.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -72,5 +72,29 @@
public void setBtn(String btn) {
this.btn = btn;
}
+
+ public void bTest1(){
+ setHeight("100");
+ setWidth("10");
+ }
+ public void bTest2(){
+ setHeight("10");
+ setWidth("100");
+ }
+
+ public void bTest3(){
+ setHeight("5");
+ setWidth("5");
+ }
+
+ public void bTest4(){
+ setHeight("100");
+ setWidth("100");
+ }
+
+ public void bTest5(){
+ setHeight("400");
+ setWidth("200");
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/tabPanel/TabPanel.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/tabPanel/TabPanel.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/tabPanel/TabPanel.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -53,7 +53,7 @@
setDisabledTabStyle("disabledTabStyle");
setInactiveTabStyle("inactiveTabStyle");
} else {
- setBtnLabel("OFF");
+ setBtnLabel("ON");
setActiveTabStyle(null);
setContentStyle(null);
setDisabledTabStyle(null);
@@ -196,4 +196,74 @@
this.immediate = immediate;
}
+ public void bTest1() {
+ setDisabledTab(false);
+ setHeaderAlignment("left");
+ setHeaderSpacing("10px");
+ setHeight("250px");
+ setImmediate(false);
+ setLabel("Test 1");
+ setLabelWidth("10px");
+ setWidth("300px");
+ setSelectedTab("2");
+ setSwitchType("server");
+ setTitle("Title test 1");
+ }
+
+ public void bTest2() {
+ setDisabledTab(true);
+ setHeaderAlignment("right");
+ setHeaderSpacing("40px");
+ setHeight("400px");
+ setImmediate(false);
+ setLabel("Test 2");
+ setLabelWidth("40px");
+ setWidth("40%");
+ setSelectedTab("1");
+ setSwitchType("ajax");
+ setTitle("Title test2");
+ }
+
+ public void bTest3() {
+ setDisabledTab(false);
+ setHeaderAlignment("center");
+ setHeaderSpacing("20px");
+ setHeight("20%");
+ setImmediate(false);
+ setLabel("Test 3");
+ setLabelWidth("400px");
+ setWidth("600px");
+ setSelectedTab("3");
+ setSwitchType("client");
+ setTitle("Title test 3");
+ }
+
+ public void bTest4() {
+ setDisabledTab(true);
+ setHeaderAlignment("left");
+ setHeaderSpacing("300px");
+ setHeight("500px");
+ setImmediate(false);
+ setLabel("Teset 4");
+ setLabelWidth("500px");
+ setWidth("500px");
+ setSelectedTab("2");
+ setSwitchType("server");
+ setTitle("Title test 4");
+ }
+
+ public void bTest5() {
+ setDisabledTab(false);
+ setHeaderAlignment("left");
+ setHeaderSpacing("20px");
+ setHeight("40%");
+ setImmediate(false);
+ setLabel("Test 5");
+ setLabelWidth("40px");
+ setWidth("10%");
+ setSelectedTab("3");
+ setSwitchType("client");
+ setTitle("Title test 5");
+ }
+
}
Modified: trunk/test-applications/facelets/src/main/java/togglePanel/TogglePanel.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/togglePanel/TogglePanel.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/togglePanel/TogglePanel.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -14,40 +14,57 @@
stateOrder="asus,benq,toshiba";
}
-
-
public String getInitialState() {
return initialState;
}
-
-
public void setInitialState(String initialState) {
this.initialState = initialState;
}
-
-
public String getStateOrder() {
return stateOrder;
}
-
-
public void setStateOrder(String stateOrder) {
this.stateOrder = stateOrder;
}
-
-
public String getSwitchType() {
return switchType;
}
-
-
public void setSwitchType(String switchType) {
this.switchType = switchType;
}
+ public void bTest1() {
+ setInitialState("asus");
+ setStateOrder("asus,benq,toshiba");
+ setSwitchType("client");
+ }
+
+ public void bTest2() {
+ setInitialState("benq");
+ setStateOrder("toshiba,asus,benq");
+ setSwitchType("client");
+ }
+
+ public void bTest3() {
+ setInitialState("asus");
+ setStateOrder("asus,benq,toshiba");
+ setSwitchType("server");
+ }
+
+ public void bTest4() {
+ setInitialState("benq");
+ setStateOrder("asus,benq,toshiba");
+ setSwitchType("ajax");
+ }
+
+ public void bTest5() {
+ setInitialState("toshiba");
+ setStateOrder("toshiba,asus,benq");
+ setSwitchType("ajax");
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/tooltip/Tooltip.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/tooltip/Tooltip.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/tooltip/Tooltip.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -116,4 +116,68 @@
this.delay = delay;
}
+ public void bTest1(){
+ setDelay(0);
+ setDirection("top-right");
+ setDisabled(false);
+ setFollowMouse(false);
+ setHorizontalOffset(0);
+ setVerticalOffset(0);
+ setLayout("inline");
+ setMode("client");
+ setValue("Test1");
+ setRendered(true);
+ }
+
+ public void bTest2(){
+ setDelay(0);
+ setDirection("top-left");
+ setDisabled(false);
+ setFollowMouse(false);
+ setHorizontalOffset(5);
+ setVerticalOffset(5);
+ setLayout("block");
+ setMode("ajax");
+ setValue("Test2");
+ setRendered(true);
+ }
+
+ public void bTest3(){
+ setDelay(0);
+ setDirection("bottom-right");
+ setDisabled(false);
+ setFollowMouse(true);
+ setHorizontalOffset(5);
+ setVerticalOffset(0);
+ setLayout("inline");
+ setMode("client");
+ setValue("Test3");
+ setRendered(true);
+ }
+
+ public void bTest4(){
+ setDelay(0);
+ setDirection("bottom-left");
+ setDisabled(false);
+ setFollowMouse(true);
+ setHorizontalOffset(0);
+ setVerticalOffset(5);
+ setLayout("block");
+ setMode("client");
+ setValue("Test4");
+ setRendered(true);
+ }
+
+ public void bTest5(){
+ setDelay(0);
+ setDirection("bottom-right");
+ setDisabled(false);
+ setFollowMouse(true);
+ setHorizontalOffset(-5);
+ setVerticalOffset(-5);
+ setLayout("inline");
+ setMode("ajax");
+ setValue("Test5");
+ setRendered(true);
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/tree/Bean.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/tree/Bean.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/tree/Bean.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -75,9 +75,22 @@
child.setData("Node: " + id);
data1.addChild(id, child);
}
- initData();
+ //initData();
}
+ private void initData() {
+ selectedNodeChildren.clear();
+ if (selectedNode != null) {
+ Iterator iter = selectedNode.getChildren();
+ int i = 0;
+ while (iter.hasNext()) {
+ Map.Entry entry = (Map.Entry) iter.next();
+ selectedNodeChildren
+ .put(((TreeNode) entry.getValue()).getData(), Integer.toString(i++));
+ }
+ }
+ }
+
public String getIcon() {
return icon;
}
@@ -146,6 +159,7 @@
System.out.println("Node selected: " + getTree(event).getRowKey());
if (getTree(event).getTreeNode() != null) {
selectedNode = getTree(event).getTreeNode();
+ data.removeChild(selectedNode.getChildren());
initData();
}
}
@@ -174,19 +188,6 @@
tree.setRowKey(key);
}
- private void initData() {
- selectedNodeChildren.clear();
- if (selectedNode != null) {
- Iterator iter = selectedNode.getChildren();
- int i = 0;
- while (iter.hasNext()) {
- Map.Entry entry = (Map.Entry) iter.next();
- selectedNodeChildren
- .put(((TreeNode) entry.getValue()).getData(), Integer.toString(i++));
- }
- }
- }
-
public void onExpand(NodeExpandedEvent event) {
UITree tree = getTree(event);
System.out.println("Node " + (tree.isExpanded() ? "expanded" : "collapsed") + " "
Modified: trunk/test-applications/facelets/src/main/java/tree/Library.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/tree/Library.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/tree/Library.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -13,7 +13,6 @@
private Map pathways = null;
private Object state1;
- // private Object state2;
private List listPathway;
Modified: trunk/test-applications/facelets/src/main/java/tree/test.xml
===================================================================
--- trunk/test-applications/facelets/src/main/java/tree/test.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/tree/test.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,16 +1,17 @@
<?xml version="1.0"?>
-<web-app version="2.4">
- <description>Tree demo</description>
- <display-name>tree-demo</display-name>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <description>RF Test-Application</description>
+ <display-name>test-application</display-name>
<context-param>
+ <param-name>org.ajax4jsf.SKIN</param-name>
+ <param-value>#{skinBean.skin}</param-value>
+ </context-param>
+ <context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
- <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
- <param-value>false</param-value>
- </context-param>
- <context-param>
<param-name>facelets.REFRESH_PERIOD</param-name>
<param-value>2</param-value>
</context-param>
@@ -30,12 +31,29 @@
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config-RichPanelsBean.xml,/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,
+ /WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,
+ /WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,
+ /WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,
+ /WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,
+ /WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,
+ /WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,
+ /WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,
+ /WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,
+ /WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
+ /WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
+ /WEB-INF/faces-config-RichTest.xml,/WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-DragAndDrop.xml,
+ /WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml</param-value>
+ </context-param>
<filter>
- <filter-name>a4j</filter-name>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
- <filter-name>a4j</filter-name>
+ <filter-name>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
Added: trunk/test-applications/facelets/src/main/java/util/componentInfo/ComponentInfo.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/componentInfo/ComponentInfo.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/util/componentInfo/ComponentInfo.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,95 @@
+package util.componentInfo;
+
+import java.lang.reflect.AccessibleObject;
+import java.lang.reflect.Field;
+import java.util.ArrayList;
+
+public class ComponentInfo {
+ private final String beanName;
+ private String description;
+ private String attribute;
+ private String property;
+ private boolean print;
+
+ public ComponentInfo(String beanName) {
+ this.beanName = beanName;
+ this.attribute = "";
+ this.property = "";
+ print = true;
+ }
+
+ public void setComponentInfo(String attribute, String property) {
+ this.attribute = attribute;
+ this.property = property;
+ this.description = "";
+ if(print) printInfo();
+ }
+
+ public void setComponentInfo(String attribute, String property, String description) {
+ this.attribute = attribute;
+ this.property = property;
+ this.description = description;
+ if(print) printInfo();
+ }
+
+ public static String toString(Object obj) {
+ Class cl = obj.getClass();
+ String r = cl.getName() + "[";
+ Class sc = cl.getSuperclass();
+ if (!sc.equals(Object.class))
+ r += sc + ",";
+ Field[] fields = cl.getDeclaredFields();
+ try {
+ AccessibleObject.setAccessible(fields, true);
+ } catch (SecurityException e) {
+ }
+ for (int i = 0; i < fields.length; i++) {
+ Field f = fields[i];
+ r += f.getName() + "=";
+ try {
+ Object val = f.get(obj);
+ r += val.toString();
+ } catch (IllegalAccessException e) {
+ r += "???";
+ }
+ if (i < fields.length - 1)
+ r += ",";
+ else
+ r += "]";
+ }
+ return r;
+ }
+
+ public boolean isPrint() {
+ return print;
+ }
+
+ public void setPrint(boolean print) {
+ this.print = print;
+ }
+
+ public String [] getComponentInfo() {
+ String [] str = {attribute, property};
+ return str;
+ }
+
+ public String getAttribute() {
+ return attribute;
+ }
+
+ public String getProperty() {
+ return property;
+ }
+
+ private void printInfo() {
+ System.out.println("beanName: " + beanName + "[attribute: " + attribute + "; property: " + property + "; description: " + description + "];");
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+}
Added: trunk/test-applications/facelets/src/main/java/util/converter/ListShuttleConverter.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/converter/ListShuttleConverter.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/util/converter/ListShuttleConverter.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,33 @@
+package util.converter;
+import java.util.ArrayList;
+import java.util.StringTokenizer;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+
+import util.data.Data;
+
+public class ListShuttleConverter implements Converter {
+
+ public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
+ String [] str = arg2.split(":");
+ return new Data(Integer.parseInt(str[0]), str[1], str[2], str[3],str[4]);
+ }
+//list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
+ Data data = (Data)arg2;
+ return data.getInt0() + ":" + data.getStr0() + ":" + data.getStr1() + ":" + data.getStr2() + ":" + data.getStr3();
+ }
+
+}
+// public Object getAsObject(FacesContext context, UIComponent component,
+// String value) {
+// int index = value.indexOf(':');
+// return new OptionItem(value.substring(0, index), Integer.valueOf(value.substring(index + 1)));
+// }
+// public String getAsString(FacesContext context, UIComponent component,
+// Object value) {
+// OptionItem optionItem = (OptionItem) value;
+// return optionItem.getName() + ":" + optionItem.getPrice();
+// }
Added: trunk/test-applications/facelets/src/main/java/util/converter/OrderingListConverter.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/converter/OrderingListConverter.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/util/converter/OrderingListConverter.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,33 @@
+package util.converter;
+import java.util.ArrayList;
+import java.util.StringTokenizer;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+
+import util.data.Data;
+
+public class OrderingListConverter implements Converter {
+
+ public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
+ String [] str = arg2.split(":");
+ return new Data(Integer.parseInt(str[0]), str[1], str[2], str[3],str[4]);
+ }
+//list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
+ Data data = (Data)arg2;
+ return data.getInt0() + ":" + data.getStr0() + ":" + data.getStr1() + ":" + data.getStr2() + ":" + data.getStr3();
+ }
+
+}
+// public Object getAsObject(FacesContext context, UIComponent component,
+// String value) {
+// int index = value.indexOf(':');
+// return new OptionItem(value.substring(0, index), Integer.valueOf(value.substring(index + 1)));
+// }
+// public String getAsString(FacesContext context, UIComponent component,
+// Object value) {
+// OptionItem optionItem = (OptionItem) value;
+// return optionItem.getName() + ":" + optionItem.getPrice();
+// }
Added: trunk/test-applications/facelets/src/main/java/util/data/Data.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/data/Data.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/util/data/Data.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,194 @@
+package util.data;
+
+public class Data {
+ public static final String[] cityAfrica = {"Africa", "Algeria", "Angola", "Bassas da India", "Benin", "Botswana", "Burkina Faso", "Burundi", "Cameroon", "Central African Republic", "Chad", "Comoros", "Democratic Republic of the Congo", "Djibouti", "Egypt", "Equatorial Guinea", "Eritrea", "Ethiopia", "Europa Island", "Gabon", "Gambia", "Ghana", "Glorioso Islands", "Guinea", "Guinea-Bissau", "Ivory Coast", "Juan de Nova Island", "Kenya", "Lesotho", "Liberia", "Libya", "Madagascar", "Malawi", "Mali", "Mauritania", "Mauritius Island", "Mayotte", "Morocco", "Mozambique", "Namibia", "Niger", "Nigeria", "Republic of the Congo", "Reunion", "Rwanda", "Saint Helena", "Sao Tome and Principe", "Senegal", "Seychelles", "Sierra Leone", "Somalia", "South Africa", "Sudan", "Swaziland", "Tanzania", "Togo", "Tromelin Island", "Tunisia", "Uganda", "Western Sahara", "Zambia", "Zimbabwe"};
+ public static final String[] cityAsia = {"Asia", "Afghanistan", "Armenia", "Azerbaijan", "Bangladesh", "Bhutan", "China", "Georgia", "India", "Japan", "Kazakhstan", "Korea, North", "Korea, South", "Kyrgyzstan", "Maldives", "Mongolia", "Nepal", "Pakistan", "Russia", "Sri Lanka", "Tajikistan", "Turkmenistan", "Uzbekistan"};
+ public static final String[] cityCAmerica = {"Central America", "Belize", "Costa Rica", "El Salvador", "Guatemala", "Honduras", "Nicaragua", "Panama"};
+ public static final String[] cityEurope = {"Europe", "Albania", "Andorra", "Austria", "Belarus", "Belgium", "Bosnia and Herzegovina", "Bulgaria", "Canary Islands", "Croatia", "Czech Republic", "Denmark", "Estonia", "Faroe Islands", "Finland", "France", "Germany", "Gibraltar", "Greece", "Guernsey", "Hungary", "Iceland", "Ireland", "Isle of Man", "Italy", "Jersey", "Latvia", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Malta", "Moldova", "Monaco", "Montenegro", "Netherlands", "Norway", "Poland", "Portugal", "Romania", "San Marino", "Serbia and Montenegro", "Slovakia", "Slovenia", "Spain", "Sweden", "Switzerland", "Ukraine", "United Kingdom", "Vatican The Holy See"};
+ public static final String[] cityMEast = {"Middle East", "Akrotiri", "Bahrain", "Cyprus", "Dhekelia", "Gaza Strip", "Iran", "Iraq", "Israel", "Jordan", "Kuwait", "Lebanon", "Oman", "Qatar", "Saudi Arabia", "Syria", "Turkey", "United Arab Emirates", "West Bank", "Yemen"};
+ public static final String[] cityNAmerica = {"North America", "Bermuda", "Canada", "Greenland", "Mexico", "Saint Pierre and Miquelon", "United States of America"};
+ public static final String[] cityOceania = {"Oceania", "American Samoa", "Australia", "Baker Island", "Cook Islands", "Coral Sea Islands", "Fiji", "French Polynesia", "Guam", "Howland Island", "Jarvis Island", "Johnston Atoll", "Kingman Reef", "Kiribati", "Marshall Islands", "Micronesia", "Midway Islands", "Nauru", "New Caledonia", "New Zealand", "Niue", "Norfolk Island", "Northern Mariana Islands", "Palau", "Palmyra Atoll", "Papua New Guinea", "Pitcairn Islands", "Samoa", "Solomon Islands", "Tokelau", "Tonga", "Tuvalu", "Vanuatu", "Wake Island", "Wallis and Futuna"};
+ public static final String[] citySAmerica = {"South America","Argentina", "Bolivia", "Brazil", "Chile", "Colombia", "Easter Island", "Ecuador", "Falkland Islands", "French Guiana", "Guyana", "Paraguay", "Peru", "Suriname", "Uruguay", "Venezuela"};
+ public static final String[] citySEAsia = {"SouthEast Asia", "Ashmore and Cartier Islands", "Brunei", "Burma", "Cambodia", "Christmas Island", "Cocos (Keeling) Islands", "East Timor", "Hong Kong", "Indonesia", "Laos", "Malaysia", "Paracel Islands", "Philippines", "Singapore", "Spratly Islands", "Taiwan", "Thailand", "Vietnam"};
+ public static final String[] cityCaribbean = {"The Caribbean", "Anguilla", "Antigua and Barbuda", "Aruba", "Barbados", "British Virgin Islands", "Cayman Islands", "Cuba", "Dominica", "Dominican Republic", "Grenada", "Guadeloupe", "Haiti", "Jamaica", "Martinique", "Montserrat", "Navassa Island", "Netherlands Antilles", "Puerto Rico", "Saint Barthelemy", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "The Bahamas", "Trinidad and Tobago", "Turks and Caicos Islands", "Virgin Islands"};
+
+ private String str0;
+ private String str1;
+ private String str2;
+ private String str3;
+ private int int0;
+ private int int1;
+ private int int2;
+ private int int3;
+ private boolean bool0;
+ private boolean bool1;
+ private boolean bool2;
+ private boolean bool3;
+
+ public Data() {
+ this.str0 = "";
+ this.str1 = "";
+ this.str2 = "";
+ this.str3 = "";
+ this.int0 = 0;
+ this.int1 = 0;
+ this.int2 = 0;
+ this.int3 = 0;
+ this.bool0 = false;
+ this.bool1 = false;
+ this.bool2 = false;
+ this.bool3 = false;
+ }
+
+ public Data(String str0, String str1, String str2, String str3, int int0,
+ int int1, int int2, int int3, boolean bool0, boolean bool1,
+ boolean bool2, boolean bool3) {
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ this.int0 = int0;
+ this.int1 = int1;
+ this.int2 = int2;
+ this.int3 = int3;
+ this.bool0 = bool0;
+ this.bool1 = bool1;
+ this.bool2 = bool2;
+ this.bool3 = bool3;
+ }
+
+ public Data(String str0, String str1, String str2, String str3){
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ }
+
+ public Data(int int0, String str0, String str1, String str2, String str3){
+ this.int0 = int0;
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ }
+
+ public Data(String str0){
+ this.str0 = str0;
+ }
+
+ public Data(int int0) {
+ this.int0 = int0;
+ }
+
+ public Data(String str0, String str1){
+ this.str0 = str0;
+ this.str1 = str1;
+ }
+
+ public Data(String str0, int int0){
+ this.str0 = str0;
+ this.int0 = int0;
+ }
+
+ public Data(String str0, int int0, boolean bool0){
+ this.str0 = str0;
+ this.int0 = int0;
+ this.bool0 = bool0;
+ }
+
+ public String getStr0() {
+ return str0;
+ }
+ public void setStr0(String str0) {
+ this.str0 = str0;
+ }
+ public String getStr1() {
+ return str1;
+ }
+ public void setStr1(String str1) {
+ this.str1 = str1;
+ }
+ public String getStr2() {
+ return str2;
+ }
+ public void setStr2(String str2) {
+ this.str2 = str2;
+ }
+ public String getStr3() {
+ return str3;
+ }
+ public void setStr3(String str3) {
+ this.str3 = str3;
+ }
+ public int getInt0() {
+ return int0;
+ }
+ public void setInt0(int int0) {
+ this.int0 = int0;
+ }
+ public int getInt1() {
+ return int1;
+ }
+ public void setInt1(int int1) {
+ this.int1 = int1;
+ }
+ public int getInt2() {
+ return int2;
+ }
+ public void setInt2(int int2) {
+ this.int2 = int2;
+ }
+ public int getInt3() {
+ return int3;
+ }
+ public void setInt3(int int3) {
+ this.int3 = int3;
+ }
+ public boolean isBool0() {
+ return bool0;
+ }
+ public void setBool0(boolean bool0) {
+ this.bool0 = bool0;
+ }
+ public boolean isBool1() {
+ return bool1;
+ }
+ public void setBool1(boolean bool1) {
+ this.bool1 = bool1;
+ }
+ public boolean isBool2() {
+ return bool2;
+ }
+ public void setBool2(boolean bool2) {
+ this.bool2 = bool2;
+ }
+ public boolean isBool3() {
+ return bool3;
+ }
+ public void setBool3(boolean bool3) {
+ this.bool3 = bool3;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + int0;
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ final Data other = (Data) obj;
+ if (int0 != other.int0)
+ return false;
+ return true;
+ }
+
+}
Added: trunk/test-applications/facelets/src/main/java/util/icon/Icon.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/icon/Icon.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/util/icon/Icon.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,194 @@
+package util.icon;
+
+public class Icon {
+
+ public final String iconAjaxProcess = "/pics/ajax_process.gif";
+ public final String iconAjaxStoped = "/pics/ajax_stoped.gif";
+ public final String iconCollapse = "/pics/collapse.gif";
+ public final String iconExpand = "/pics/expand.gif";
+ public final String iconFileManagerReject = "/pics/file-manager-reject.png";
+ public final String iconFileManager = "/pics/file-manager.png";
+ public final String iconHeader = "/pics/header.png";
+ public final String iconItem = "/pics/item.png";
+ public final String none = "none";
+
+ private String icon;
+ private String item;
+ private String disabled;
+ private String disabledItem;
+ private String topItem;
+ private String topDisabledItem;
+ private String expandedGroup;
+ private String collapsedGroup;
+ private String disabledGroup;
+ private String expandedTopGroup;
+ private String collapsedTopGroup;
+ private String topDisableGroup;
+ private String expanded;
+ private String collapsed;
+
+ public Icon() {
+ icon = "none";
+ item = "none";
+ disabled = "none";
+ disabledItem = "none";
+ topItem = "none";
+ topDisabledItem = "none";
+ expandedGroup = "none";
+ collapsedGroup = "none";
+ disabledGroup = "none";
+ expandedTopGroup = "none";
+ collapsedTopGroup = "none";
+ topDisableGroup = "none";
+ expanded = "none";
+ collapsed = "none";
+ }
+
+ public final String getIconAjaxProcess() {
+ return iconAjaxProcess;
+ }
+
+ public final String getIconAjaxStoped() {
+ return iconAjaxStoped;
+ }
+
+ public final String getIconCollapse() {
+ return iconCollapse;
+ }
+
+ public final String getIconExpand() {
+ return iconExpand;
+ }
+
+ public final String getIconFileManager() {
+ return iconFileManager;
+ }
+
+ public final String getIconFileManagerReject() {
+ return iconFileManagerReject;
+ }
+
+ public final String getIconHeader() {
+ return iconHeader;
+ }
+
+ public final String getIconItem() {
+ return iconItem;
+ }
+
+ public String getCollapsed() {
+ return collapsed;
+ }
+
+ public void setCollapsed(String collapsed) {
+ this.collapsed = collapsed;
+ }
+
+ public String getCollapsedGroup() {
+ return collapsedGroup;
+ }
+
+ public void setCollapsedGroup(String collapsedGroup) {
+ this.collapsedGroup = collapsedGroup;
+ }
+
+ public String getCollapsedTopGroup() {
+ return collapsedTopGroup;
+ }
+
+ public void setCollapsedTopGroup(String collapsedTopGroup) {
+ this.collapsedTopGroup = collapsedTopGroup;
+ }
+
+ public String getDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(String disabled) {
+ this.disabled = disabled;
+ }
+
+ public String getDisabledGroup() {
+ return disabledGroup;
+ }
+
+ public void setDisabledGroup(String disabledGroup) {
+ this.disabledGroup = disabledGroup;
+ }
+
+ public String getDisabledItem() {
+ return disabledItem;
+ }
+
+ public void setDisabledItem(String disabledItem) {
+ this.disabledItem = disabledItem;
+ }
+
+ public String getExpanded() {
+ return expanded;
+ }
+
+ public void setExpanded(String expanded) {
+ this.expanded = expanded;
+ }
+
+ public String getExpandedGroup() {
+ return expandedGroup;
+ }
+
+ public void setExpandedGroup(String expandedGroup) {
+ this.expandedGroup = expandedGroup;
+ }
+
+ public String getExpandedTopGroup() {
+ return expandedTopGroup;
+ }
+
+ public void setExpandedTopGroup(String expandedTopGroup) {
+ this.expandedTopGroup = expandedTopGroup;
+ }
+
+ public String getIcon() {
+ return icon;
+ }
+
+ public void setIcon(String icon) {
+ this.icon = icon;
+ }
+
+ public String getItem() {
+ return item;
+ }
+
+ public void setItem(String item) {
+ this.item = item;
+ }
+
+ public String getTopDisabledItem() {
+ return topDisabledItem;
+ }
+
+ public void setTopDisabledItem(String topDisabledItem) {
+ this.topDisabledItem = topDisabledItem;
+ }
+
+ public String getTopDisableGroup() {
+ return topDisableGroup;
+ }
+
+ public void setTopDisableGroup(String topDisableGroup) {
+ this.topDisableGroup = topDisableGroup;
+ }
+
+ public String getTopItem() {
+ return topItem;
+ }
+
+ public void setTopItem(String topItem) {
+ this.topItem = topItem;
+ }
+
+ public final String getNone() {
+ return none;
+ }
+}
Added: trunk/test-applications/facelets/src/main/java/util/phaseTracker/PhaseTracker.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/phaseTracker/PhaseTracker.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/util/phaseTracker/PhaseTracker.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,47 @@
+/**
+ *
+ */
+package util.phaseTracker;
+
+import java.util.Iterator;
+
+import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
+import javax.faces.event.PhaseEvent;
+import javax.faces.event.PhaseId;
+import javax.faces.event.PhaseListener;
+
+/**
+ * @author AYanul
+ *
+ */
+public class PhaseTracker implements PhaseListener {
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.PhaseListener#afterPhase(javax.faces.event.PhaseEvent)
+ */
+ public void afterPhase(PhaseEvent arg0) {
+ //System.out.println("PhaseTracker.afterPhase()" + arg0.getPhaseId());
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.PhaseListener#beforePhase(javax.faces.event.PhaseEvent)
+ */
+ public void beforePhase(PhaseEvent arg0) {
+ System.out.println("PhaseTracker.beforePhase()" + arg0.getPhaseId());
+// ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
+// Iterator names = externalContext.getRequestParameterNames();
+// while (names.hasNext()) {
+// System.out.println(names.next());
+// }
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.PhaseListener#getPhaseId()
+ */
+ public PhaseId getPhaseId() {
+ return PhaseId.ANY_PHASE;
+ }
+
+}
Added: trunk/test-applications/facelets/src/main/java/util/skins/Skins.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/skins/Skins.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/util/skins/Skins.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,71 @@
+package util.skins;
+
+import java.util.Map;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.UISelectItem;
+import javax.faces.component.UISelectOne;
+import javax.faces.component.html.HtmlSelectOneRadio;
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Nick Belaevski - nbelaevski at exadel.com created 09.02.2007
+ *
+ */
+public class Skins {
+
+ private String[] skinsArray = new String[] { "blueSky", "classic",
+ "deepMarine", "DEFAULT", "emeraldTown", "japanCherry", "ruby",
+ "wine", "plain" };
+
+ private String defaultSkin = "deepMarine";
+
+ private String skin = defaultSkin;
+
+ private UISelectOne createComponent() {
+ UISelectOne selectOne = new HtmlSelectOneRadio();
+ selectOne.setValue(skin);
+
+ for (int i = 0; i < skinsArray.length; i++) {
+ String skinName = skinsArray[i];
+
+ UISelectItem item = new UISelectItem();
+ item.setItemLabel(skinName);
+ item.setItemValue(skinName);
+ item.setId("skinSelectionFor_" + skinName);
+
+ selectOne.getChildren().add(item);
+ }
+
+ return selectOne;
+ }
+
+ public String getSkin() {
+ return skin;
+ }
+
+ public UIComponent getComponent() {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ Map requestMap = facesContext.getExternalContext().getRequestMap();
+ Object object = requestMap.get("SkinBean");
+ if (object != null) {
+ return (UISelectOne) object;
+ }
+
+ UISelectOne selectOne = createComponent();
+ requestMap.put("SkinBean", selectOne);
+ return selectOne;
+ }
+
+ public void setComponent(UIComponent component) {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ Map requestMap = facesContext.getExternalContext().getRequestMap();
+ requestMap.put("SkinBean", component);
+ }
+
+ public String change() {
+ UISelectOne selectOne = (UISelectOne) getComponent();
+ skin = (String) selectOne.getValue();
+ return null;
+ }
+}
Modified: trunk/test-applications/facelets/src/main/java/virtualEarth/VirtualEarth.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/virtualEarth/VirtualEarth.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/java/virtualEarth/VirtualEarth.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,8 +1,17 @@
package virtualEarth;
public class VirtualEarth {
- String zoom;
+ private String zoom;
+ private String version;
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
public String getZoom() {
return zoom;
}
Added: trunk/test-applications/facelets/src/main/resources/message_en.properties
===================================================================
--- trunk/test-applications/facelets/src/main/resources/message_en.properties (rev 0)
+++ trunk/test-applications/facelets/src/main/resources/message_en.properties 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,100 @@
+t1Calendar=change: Icon/Button; header facet: Test 1; locale: de; direction: bottom-left; manual input: false; disabled: false; jointPoint: top-right; mounth: long; pattern: dd-MM-yyyy; popup: true; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: true; required: true; showinput: false; tooltipmode: single; weekday: long; z-index: 3;
+t2Calendar=change: Icon/Button; header facet: Test 2; locale: fr; direction: top-right; manual input: true; disabled: false; jointPoint: bottom-left; mounth: none; pattern: dd.MM.yyyy; popup: true; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: true; required: true; showinput: true; tooltipmode: single; weekday: none; z-index: 3;
+t3Calendar=change: Icon/Button; header facet: Test 3; locale: ru; direction: bottom-left; manual input: false; disabled: false; jointPoint: top-right; mounth: long; pattern: dd-MM-yyyy; popup: false; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: false; required: false; showinput: false; tooltipmode: single; weekday: long; z-index: 3;
+t4Calendar=change: Icon/Button; header facet: Test 4; locale: de; direction: bottom-left; manual input: false; disabled: true; jointPoint: top-right; mounth: long; pattern: dd-MM-yyyy; popup: false; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: false; required: false; showinput: false; tooltipmode: single; weekday: none; z-index: 3;
+t5Calendar=change: Icon/Button; header facet: Test 5; locale: de; direction: bottom-right; manual input: false; disabled: false; jointPoint: bottom-left; mounth: none; pattern: d/M/yy; popup: true; preloadDateRangeBegin(client only): 09.09.2007; preloadDateRangeEnd(client only): 10.01.2008; readonly: false; required: true; showinput: true; tooltipmode: none; weekday: short; z-index: 1;
+t1DataScroller=align: left; fastcontrols: auto; limittolist: false; maxpages: 20; renderifsinglepage: true;
+t2DataScroller=align: right; fastcontrols: show; limittolist: false; maxpages: 30; renderifsinglepage: false;
+t3DataScroller=align: center; fastcontrols: hide; limittolist: false; maxpages: 10; renderifsinglepage: true;
+t4DataScroller=align: center; fastcontrols: auto; limittolist: true; maxpages: 30; renderifsinglepage: false;
+t5DataScroller=align: left; fastcontrols: show; limittolist: false; maxpages: 40; renderifsinglepage: true;
+t1DataTable=align: center; border: 4px; columns rendered: false; columswidth: 300px; width: 500px;
+t2DataTable=align: left; border: 0px; columns rendered: true; columswidth: 500px; width: 300px;
+t3DataTable=align: right; border: 5px; columns rendered: true; columswidth: 100px; width: 200px;
+t4DataTable=align: center; border: 4px; columns rendered: false; columswidth: 500px; width: 500px;
+t5DataTable=align: center; border: 4px; columns rendered: false; columswidth: 400px; width: 800px;
+t1DDMenu=direction: top-right; event: onmouseover; groupdirection: top-up; hidedelay:5; horizontaloffset:1; verticaloffset: 1; jointpoint: top-left; mode: none; popupwidth: 300px; showdelay: 1; disabled: false;
+t2DDMenu=direction: bottom-right; event: onclick; groupdirection: bottom-left; hidedelay: 5; horizontaloffset:20; verticaloffset: 20; jointpoint: bottom-right; mode: ajax; popupwidth: 200px; showdelay: 5; disabled: false;
+t3DDMenu=direction: bottom-left; event: onmouseover; groupdirection: top-up; hidedelay:10; horizontaloffset: 5; verticaloffset: 5; jointpoint: top-left; mode: server; popupwidth: 50px; showdelay: 10; disabled: false;
+t4DDMenu=direction: top-left; event: onmouseover; groupdirection: auto; hidedelay: 0; horizontaloffset: 0; verticaloffset: 0; jointpoint: auto; mode: ajax; popupwidth: auto; showdelay: 0; disabled: true;
+t5DDMenu=direction: auto; event: onmouseover; groupdirection: auto; hidedelay:1; horizontaloffset:2; verticaloffset: 2; jointpoint: auto; mode: ajax; popupwidth: auto; showdelay: 5; disabled: true;
+t1INSlider=minvalue: 0; maxvalue: 9; inputsize: 1; inputposition: right; manualinput: true; value: 3; showinput: true; step: 1;showtooltip: true; showboundaryvalues: true;
+t2INSlider=minvalue: 1000; maxvalue: 99999; inputsize: 10; inputposition: left; manualinput: false; value: 99999; showinput: true; step: 50; showtooltip: false; showboundaryvalues: true;
+t3INSlider=minvalue: 101; maxvalue: 203; inputsize: 4; inputposition: left; manualinput: false; value: 102; showinput: true; step: 2; showtooltip: false; showboundaryvalues: true;
+t4INSlider=minvalue: 10; maxvalue: 12; inputsize: 2; inputposition: left; manualinput: false; value: 102; showinput: false; step: 2; showtooltip: false; showboundaryvalues: true;
+t5INSlider=minvalue: -99999; maxvalue: 99999; inputsize: 15; inputposition: right; manualinput: true; value: 103; showinput: true; step: 2;showtooltip: false; showboundaryvalues: false;
+t1INSpinner=cycled: true; manualinput: true; inputsize: 5; min: 0; max: 20; step: 1; tabindex: 2; value: 1;
+t2INSpinner=cycled: false; manualinput: false; inputsize: 10; min: 1000; max: 99999; step: 255; tabindex: 5; value: 5555;
+t3INSpinner=cycled: true; manualinput: false; inputsize: 3; min: 101; max: 202; step: 2; tabindex: 2; value: 102;
+t4INSpinner=cycled: false; manualinput: true; inputsize: 4; min: 33; max: 66; step: 11; tabindex: 3; value: 55;
+t5INSpinner=cycled: true; manualinput: true; inputsize: 15; min: -99999; max: 99999; step: 33; tabindex: 5; value: 101;
+t1Message=layout: table; msg: fatal; showdetail: true; showsummary: true; title: Test1; tooltip: true; select1: error; select2: fatal; select3: warn; select4: info; select5: passed;
+t2Message=layout: table; msg: error; showdetail: false; showsummary: true; title: Test2; tooltip: true; select1: error; select2: fatal; select3: fatal; select4: passed; select5: passed;
+t3Message=layout: table; msg: passed; showdetail: true; showsummary: false; title: Test3; tooltip: true; select1: error; select2: error; select3: passed; select4: error; select5: passed;
+t4Message=layout: table; msg: passed; showdetail: true; showsummary: true; title: Test4; tooltip: false; select1: warn; select2: warn; select3: warn; select4: warn; select5: warn;
+t5Message=layout: table; msg: warn; showdetail: false; showsummary: false; title: Test5; tooltip: false; select1: passed; select2: fatal; select3: error; select4: passed; select5: warn;
+t1ModalPanel=height: 300; width: 450; minheight: 250; minwidth: 400; moveable: false; resizeable: false;
+t2ModalPanel=height: 350; width: 400; minheight: 400; minwidth: 450; moveable: true; resizeable: false;
+t3ModalPanel=height: 400; width: 300; minheight: 400; minwidth: 300; moveable: true; resizeable: true;
+t4ModalPanel=height: 450; width: 450; minheight: 450; minwidth: 450; moveable: false; resizeable: true;
+t5ModalPanel=height: 900; width: 800; minheight: 700; minwidth: 600; moveable: true; resizeable: true;
+t1OrderingList=captionlabel: Caption Test1; controlshorizontalalign: 0; controlsverticalalign: 0; controlstype: button; headerlabel: Header Test1; lenght: 40; listheight: 300; listwidth: 400; fastordercontrolsvisible: true; ordercontrolsvisible: true; rendered: true; showbuttonlabels: true; topcontrollabel: t1 top label; bottomcontrollabel: t1 bottom label; upcontrollabel: t1 up label; downcontrollabel: t1 down label;
+t2OrderingList=captionlabel: Caption Test2; controlshorizontalalign: 30; controlsverticalalign: 50; controlstype: button; headerlabel: Header Test2; lenght: 40; listheight: 600; listwidth: 400; fastordercontrolsvisible: false; ordercontrolsvisible: true; rendered: true; showbuttonlabels: true; topcontrollabel: t2; bottomcontrollabel: t2; upcontrollabel: t2; downcontrollabel: t2;
+t3OrderingList=captionlabel: Caption Test3; controlshorizontalalign: 50; controlsverticalalign: 10; controlstype: button; headerlabel: Header Test3; lenght: 40; listheight: 500; listwidth: 500; fastordercontrolsvisible: true; ordercontrolsvisible: false; rendered: true; showbuttonlabels: true; topcontrollabel: top; bottomcontrollabel: bottom; upcontrollabel: up; downcontrollabel: down;
+t4OrderingList=captionlabel: Caption Test4; controlshorizontalalign: 0; controlsverticalalign: 0; controlstype: button; headerlabel: Header Test4; lenght: 10000; listheight: 500; listwidth: 600; fastordercontrolsvisible: true; ordercontrolsvisible: true; rendered: true; showbuttonlabels: false; topcontrollabel: ; bottomcontrollabel: ; upcontrollabel: ; downcontrollabel: ;
+t5OrderingList=captionlabel: Caption Test5; controlshorizontalalign: 20; controlsverticalalign: 20; controlstype: none; headerlabel: Header Test4; lenght: 100; listheight: 400; listwidth: 500; fastordercontrolsvisible: true; ordercontrolsvisible: true; rendered: true; showbuttonlabels: true; topcontrollabel: top; bottomcontrollabel: bottom; upcontrollabel: up; downcontrollabel: down;
+t1Paint2D=align: top; bgcolor: gray; border: 3; forvat: gif; height: 300; width: 300; vspace: 15; hspace: 15; title: Test1;
+t2Paint2D=align: middle; bgcolor: yellow; border: 1; forvat: png; height: 400; width: 300; vspace: 0; hspace: 15; title: Test2;
+t3Paint2D=align: left; bgcolor: lime; border: 10; forvat: jpeg; height: 300; width: 400; vspace: 15; hspace: 0; title: Test3;
+t4Paint2D=align: right; bgcolor: teal; border: 3; forvat: gif; height: 400; width: 600; vspace: 0; hspace: 0; title: Test4;
+t5Paint2D=align: botton; bgcolor: fuchsia; border: 3; forvat: png; height: 400; width: 450; vspace: -5; hspace: -5; title: Test5;
+t1Panel=width: 500; height: 300; label: Test1, Test 1, Test_1, Test-1
+t2Panel=width: 500; height: 600; label: Test2, Test 2, Test_2, Test-2
+t3Panel=width: 50%; height: 300; label: Test3, Test 3, Test_3, Test-3
+t4Panel=width: 400; height: 10%; label: Test4, Test 4, Test_4, Test-4
+t5Panel=width: 400; height: 400; label: Test5, Test 5, Test_5, Test-5
+t1PanelBar=width: 500; height: 300; label: Test1, Test 1, Test_1, Test-1
+t2PanelBar=width: 500; height: 600; label: Test2, Test 2, Test_2, Test-2
+t3PanelBar=width: 50%; height: 300; label: Test3, Test 3, Test_3, Test-3
+t4PanelBar=width: 400; height: 10%; label: Test4, Test 4, Test_4, Test-4
+t5PanelBar=width: 400; height: 400; label: Test5, Test 5, Test_5, Test-5
+t1TabPanel=disabledTab: false; headerAlignment: left; headerSpacing: 10px; height: 250px; immediate: false; label: Test 1; labelWidth: 10px; width: 300px; selectedTab: 2; switchType: server; title: Title test 1;
+t2TabPanel=disabledTab: true; headerAlignment: right; headerSpacing: 40px; height: 400px; immediate: false; label: Test 2; labelWidth: 40px; width: 40%; selectedTab: 1; switchType: ajax; title: Title test2;
+t3TabPanel=disabledTab\: false; headerAlignment\: center; headerSpacing\: 20px; height\: 20%; immediate\: false; label\: Test 3; labelWidth\: 400px; width\: 600px; selectedTab\: 3; switchType\: client; title\: Title test 3;
+t4TabPanel=disabledTab: true; headerAlignment: left; headerSpacing: 300px; height: 500px; immediate: false; label: Test 4; labelWidth: 500px; width: 500px; selectedTab: 2; switchType: server; title: Title test 4;
+t5TabPanel=disabledTab: false; headerAlignment: left; headerSpacing: 20px; height: 40%; immediate: false; label: Test 5; labelWidth: 40px; width: 10%; selectedTab: 3; switchType: client; title: Title test 5;
+t1PanelMenu=collapsed: Collapse; expanded: Expand; item: Item; icon: FileManager; collapsedGroup: AjaxProcess; disabledGroup: AjaxStoped; width: 400px; align: right; disabled: false; expandMode: ajax; expandSingle: false; iconGroupPosition: left; iconGroupTopPosition: right; iconItemPosition: left; iconItemTopPosition: right; mode: ajax; tabIndex: 3;
+t2PanelMenu=collapsed\: Expand; expanded\: Collapse; item\: Header; icon\: leManagerReject; collapsedGroup\: AjaxStoped; disabledGroup\: axProcess; width\: 250px; align\: bottom; disabled\: false; expandMode\: server; expandSingle\: false; iconGroupPosition\: right; iconGroupTopPosition\: left; iconItemPosition\: right; iconItemTopPosition\: left; mode\: server; tabIndex\: 2;\t\t
+t3PanelMenu=collapsed\: Collapse; expanded\: Expand; item\: Item; icon\: FileManager; collapsedGroup\: AjaxProcess; disabledGroup\: AjaxStoped; width\: 400px; align\: middle; disabled\: false; expandMode\: server; expandSingle\: false; iconGroupPosition\: right; iconGroupTopPosition\: right; iconItemPosition\: right; iconItemTopPosition\: left; mode\: none; tabIndex\: 2;\t\t
+t4PanelMenu=collapsed\: Expand; Exeanded\: Collapse; item\: Headeri Icon\: leManagerRecect; CollapsedGroup\: AjaxStoded; DisabledGroup\: axProcews; Width\: 250ax; Align\: top;dDisabled\: true; expandMode\: ne; ExpaedSingle\: false; IconiroupPosition\: left; IconGioupTopPosition\: left; IconItimPosition\: left; IconIteiTopPosition\: left; Mode\: amax; TabIndet\: 2;\t\t
+t5PanelMenu=collapsed\: Collapse; expanded\: Expand; item\: Item; icon\: FileManager; collapsedGroup\: AjaxProcess; disabledGroup\: AjaxStoped; width\: 250px; align\: right; Ddsabled\: false; EepandMode\: none; ExpendSingle\: true; IconiroupPosition\: right; IconiroupTopPosition\: right; IconitemPosition\: right; IconitemTopPosition\: right; Modm\: none; Tabtndex\: 2;\t\t
+t1SB=border: 2; cellpadding: 0; cellspacing: 0; frequency: 0; height: 150; width: 200; minchars: 1; shadowDepth: 11; shadowOpacity: 3; zindex: 3;
+t2SB=border: 0; cellpadding: 3; cellspacing: 3; frequency: 2; height: 200; width: 200; minchars: 1; shadowDepth: 1; shadowOpacity: 7; zindex: 3;
+t3SB=border: 1; cellpadding: 5; cellspacing: 0; frequency: 1; height: 150; width: 200; minchars: 2; shadowDepth: 1; shadowOpacity: 7; zindex: 3;
+t4SB=border: 1; cellpadding: 0; cellspacing: 5; frequency: 3; height: 150; width: 200; minchars: 2; shadowDepth: 7; shadowOpacity: 1; zindex: 3;
+t5SB=border: 4; cellpadding: 1; cellspacing: 1; frequency: 5; height: 200; width: 400; minchars: 2; shadowDepth: 5; shadowOpacity: 5; zindex: 1;
+t1Separator=align: left; height: 300px; width: 10px; lineType: beveled; title: Test1;
+t2Separator=align\: center; height\: 50px; width\: 600px; lineType\: dotted; title\: Test2;\t\t
+t3Separator=align\: right; height\: 150px; width\: 200px; lineType\: dashed; title\: Test3;\t\t
+t4Separator=align\: left; height\: 20px; width\: 300px; lineType\: double; title\: Test4;\t\t
+t5Separator=align\: left; height\: 100px; width\: 100px; lineType\: solid; title\: Test5;\t\t
+t1SimpleTP=height: 80px; width: 300px; switchType: ajax;
+t2SimpleTP=height\: 10%; width\: 100%; switchType\: client;\t\t
+t3SimpleTP=height\: 80px; width\: 100%; switchType\: server;\t\t
+t4SimpleTP=height\: 10%; width\: 200px; switchType\: client;\t\t
+t5SimpleTP=height\: 400px; width\: 250px; switchType\: client;\t\t
+t1TogglePanel=initialState: asus; stateOrder: asus,benq,toshiba; switchType: client;
+t2TogglePanel=initialState: benq; stateOrder: toshiba,asus,benq; switchType: client;
+t3TogglePanel=initialState: asus; stateOrder: asus,benq,toshiba; switchType: server;
+t4TogglePanel=initialState: benq; stateOrder: asus,benq,toshiba; switchType: ajax;
+t5TogglePanel=initialState: toshiba; stateOrder: toshiba,asus,benq; switchType: ajax;
+t1Tooltip=delay: 0; direction: top-right; disabled: false; followMouse: false; horizontalOff: 0; verticalOff: 0; layout: inline; mode: client; value: Test1; rendered: true;
+t2Tooltip=delay: 0; direction: top-left; disabled: false; followMouse: false; horizontalOff: 5; verticalOff: 5; layout: block; mode: ajax; value: Test2; rendered: true;
+t3Tooltip=delay: 0; direction: bottom-right; disabled: false; followMouse: true; horizontalOff: 5; verticalOff: 0; layout: inline; mode: client; value: Test3; rendered: true;
+t4Tooltip=delay: 0; direction: bottom-left; disabled: false; followMouse: true; horizontalOff: 0; verticalOff: 5; layout: block; mode: client; value: Test4; rendered: true;
+t5Tooltip=delay: 0; direction: bottom-right; disabled: false; followMouse: true; horizontalOff: -5; verticalOff: -5; layout: inline; mode: ajax; value: Test5; rendered: true;
+t1Spacer=Height: 100; Width: 10;
+t2Spacer=Height: 10; Width: 100;
+t3Spacer=Height: 5; Width: 5;
+t4Spacer=Height: 100; Width: 100;
+t5Spacer=Height: 400; Width: 200;
Modified: trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,65 +1,43 @@
-<f:subview id="calendarSubviewID"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich">
+<f:subview id="calendarSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich">
-<h:form>
-
- <rich:messages showDetail="true"></rich:messages>
-
- <h:panelGrid columns="2">
- <h:outputText value="Client mode" />
- <h:outputText value="Ajax mode" />
+ <h:messages />
+ <rich:messages showDetail="true"></rich:messages>
- <rich:calendar id="calendarClientID" dataModel="#{calendarDataModel}"
- locale="#{calendarBean.locale}" popup="#{calendarBean.popup}"
- preloadDateRangeBegin="#{calendarBean.prDateRangeBegin}"
- preloadDateRangeEnd="#{calendarBean.prDateRangeEnd}"
- datePattern="#{calendarBean.pattern}"
- weekDayLabels="#{calendarBean.weekDayLabels}"
- weekDayLabelsShort="#{calendarBean.weekDayLabelsShort}"
- monthLabels="#{calendarBean.monthLabels}"
- monthLabelsShort="#{calendarBean.monthLabelsShort}"
- value="#{calendarBean.selectedDate}"
- currentDate="#{calendarBean.currentDate}"
- jointPoint="#{calendarBean.jointPoint}"
- direction="#{calendarBean.direction}"
- enableManualInput="#{calendarBean.enableManualInput}"
- showInput="#{calendarBean.showInput}" buttonLabel="#{calendarBean.label}"
- boundaryDatesMode="#{calendarBean.boundary}"
- currentDateChangeListener="#{calendarBean.dcl}"
- valueChangeListener="#{calendarBean.ddd}" reRender="counter"
- inputClass="ic" buttonClass="bc"
- ajaxSingle="#{calendarBean.ajaxSingle}"
- buttonIcon="#{calendarBean.icon}"
- buttonIconDisabled="#{icon.iconFileManagerReject}"
- disabled="#{calendarBean.disabled}"
- bypassUpdates="#{calendarBean.bypassUpdates}"
- height="#{calendarBean.height}"
- width="#{calendarBean.width}"
- zindex="#{calendarBean.zindex}"
- toolTipMode="#{calendarBean.toolTipMode}"
- rendered="#{calendarBean.rendered}"
- focus="popupModeID"
- mode="client"
- required="#{calendarBean.required}"
- requiredMessage="Required Message"
- >
- <f:facet name="weekDay">
- <f:verbatim><span style="padding: 2px; font-size: 4" >{weekDayLabel + weekDayLabelShort}</span></f:verbatim>
+ <h:panelGrid columns="2">
+ <h:outputText value="Client mode" rendered="#{calendarBean.renderedClient}" />
+ <h:outputText value="Ajax mode" rendered="#{calendarBean.renderedAjax}"/>
+
+ <rich:calendar id="calendarClientID" dataModel="#{calendarDataModel}" locale="#{calendarBean.locale}"
+ popup="#{calendarBean.popup}" preloadDateRangeBegin="#{calendarBean.prDateRangeBegin}"
+ preloadDateRangeEnd="#{calendarBean.prDateRangeEnd}" datePattern="#{calendarBean.pattern}"
+ weekDayLabels="#{calendarBean.weekDayLabels}" weekDayLabelsShort="#{calendarBean.weekDayLabelsShort}"
+ monthLabels="#{calendarBean.monthLabels}" monthLabelsShort="#{calendarBean.monthLabelsShort}"
+ value="#{calendarBean.selectedDate}" currentDate="#{calendarBean.currentDate}" jointPoint="#{calendarBean.jointPoint}"
+ direction="#{calendarBean.direction}" enableManualInput="#{calendarBean.enableManualInput}"
+ showInput="#{calendarBean.showInput}" buttonLabel="#{calendarBean.label}" boundaryDatesMode="#{calendarBean.boundary}"
+ currentDateChangeListener="#{calendarBean.dcl}" valueChangeListener="#{calendarBean.ddd}" reRender="calendarPropertyID,counter" inputClass="ic"
+ buttonClass="bc" ajaxSingle="#{calendarBean.ajaxSingle}" buttonIcon="#{calendarBean.icon}"
+ buttonIconDisabled="#{icon.iconFileManagerReject}" disabled="#{calendarBean.disabled}"
+ bypassUpdates="#{calendarBean.bypassUpdates}" zindex="#{calendarBean.zindex}" toolTipMode="#{calendarBean.toolTipMode}" rendered="#{calendarBean.renderedClient}"
+ focus="popupModeID" mode="client" required="#{calendarBean.required}" requiredMessage="Required Message"
+ timeZone="#{calendarBean.tmZone}">
+ <f:facet name="weekDay">
+ <f:verbatim>
+ <span style="padding: 2px; font-size: 4">{weekDayLabel + weekDayLabelShort}</span>
+ </f:verbatim>
</f:facet>
-
+
<f:facet name="optionalHeader">
<h:outputText value="optionalHeader Facet" />
</f:facet>
-
+
<f:facet name="optionalFooter">
<h:outputText value="optionalFooter Facet" />
</f:facet>
-
+
<f:validator validatorId="org.richfaces.CalendarValidator" />
-
+
<h:panelGrid columns="2">
<f:verbatim>
<span style="padding: 2px;">{day}</span>
@@ -71,51 +49,36 @@
</h:panelGrid>
</h:panelGrid>
</rich:calendar>
- <rich:calendar id="calendarAjaxID" dataModel="#{calendarDataModel}"
- locale="#{calendarBean.locale}" popup="#{calendarBean.popup}"
- datePattern="#{calendarBean.pattern}"
- weekDayLabels="#{calendarBean.weekDayLabels}"
- weekDayLabelsShort="#{calendarBean.weekDayLabelsShort}"
- monthLabels="#{calendarBean.monthLabels}"
- monthLabelsShort="#{calendarBean.monthLabelsShort}"
- value="#{calendarBean.selectedDate}"
- currentDate="#{calendarBean.currentDate}"
- jointPoint="#{calendarBean.jointPoint}"
- direction="#{calendarBean.direction}"
- enableManualInput="#{calendarBean.enableManualInput}"
- showInput="#{calendarBean.showInput}" buttonLabel="#{calendarBean.label}"
- boundaryDatesMode="#{calendarBean.boundary}"
- currentDateChangeListener="#{calendarBean.dcl}"
- valueChangeListener="#{calendarBean.ddd}" reRender="counter"
- inputClass="ic" buttonClass="bc"
- ajaxSingle="#{calendarBean.ajaxSingle}"
- buttonIcon="#{calendarBean.icon}"
- buttonIconDisabled="#{icon.iconFileManagerReject}"
- disabled="#{calendarBean.disabled}"
- bypassUpdates="#{calendarBean.bypassUpdates}"
- height="#{calendarBean.height}"
- width="#{calendarBean.width}"
- zindex="#{calendarBean.zindex}"
- toolTipMode="#{calendarBean.toolTipMode}"
- rendered="#{calendarBean.rendered}"
- focus="popupModeID"
- mode="ajax"
- required="#{calendarBean.required}"
- requiredMessage="Required Message">
- <f:facet name="weekDay">
- <f:verbatim><span style="padding: 2px; font-size: 4" >{weekDayLabel + weekDayLabelShort}</span></f:verbatim>
+
+ <rich:calendar id="calendarAjaxID" dataModel="#{calendarDataModel}" locale="#{calendarBean.locale}"
+ popup="#{calendarBean.popup}" datePattern="#{calendarBean.pattern}" weekDayLabels="#{calendarBean.weekDayLabels}"
+ weekDayLabelsShort="#{calendarBean.weekDayLabelsShort}" monthLabels="#{calendarBean.monthLabels}"
+ monthLabelsShort="#{calendarBean.monthLabelsShort}" value="#{calendarBean.selectedDate}"
+ currentDate="#{calendarBean.currentDate}" jointPoint="#{calendarBean.jointPoint}" direction="#{calendarBean.direction}"
+ enableManualInput="#{calendarBean.enableManualInput}" showInput="#{calendarBean.showInput}"
+ buttonLabel="#{calendarBean.label}" boundaryDatesMode="#{calendarBean.boundary}"
+ currentDateChangeListener="#{calendarBean.dcl}" valueChangeListener="#{calendarBean.ddd}" reRender="calendarPropertyID,counter" inputClass="ic"
+ buttonClass="bc" ajaxSingle="#{calendarBean.ajaxSingle}" buttonIcon="#{calendarBean.icon}"
+ buttonIconDisabled="#{icon.iconFileManagerReject}" disabled="#{calendarBean.disabled}"
+ bypassUpdates="#{calendarBean.bypassUpdates}" zindex="#{calendarBean.zindex}" toolTipMode="#{calendarBean.toolTipMode}" rendered="#{calendarBean.renderedAjax}"
+ focus="popupModeID" mode="ajax" required="#{calendarBean.required}" requiredMessage="Required Message"
+ timeZone="#{calendarBean.tmZone}">
+ <f:facet name="weekDay">
+ <f:verbatim>
+ <span style="padding: 2px; font-size: 4">{weekDayLabel + weekDayLabelShort}</span>
+ </f:verbatim>
</f:facet>
-
+
<f:facet name="optionalHeader">
<h:outputText value="optionalHeader Facet" />
</f:facet>
-
+
<f:facet name="optionalFooter">
<h:outputText value="optionalFooter Facet" />
</f:facet>
-
+
<f:validator validatorId="org.richfaces.CalendarValidator" />
-
+
<h:panelGrid columns="2">
<f:verbatim>
<span style="padding: 2px;">{day}</span>
@@ -127,147 +90,5 @@
</h:panelGrid>
</h:panelGrid>
</rich:calendar>
- </h:panelGrid>
-
-
-
- <h:panelGrid columns="2">
- <h:outputText value="Select Locale:" />
- <h:selectOneRadio onchange="submit()" value="en/US">
- <f:selectItem itemLabel="US" itemValue="en/US" />
- <f:selectItem itemLabel="DE" itemValue="de/DE" />
- <f:selectItem itemLabel="FR" itemValue="fr/FR" />
- <f:selectItem itemLabel="RU" itemValue="ru/RU" />
- </h:selectOneRadio>
-
- <h:outputText value="Popup Mode:" />
- <h:selectBooleanCheckbox id="popupModeID" value="#{calendarBean.popup}"
- onclick="submit()" />
-
- <h:outputText value="Custom day labels" />
- <h:selectOneRadio value="#{calendarBean.weekDay}">
- <f:selectItem itemLabel="none" itemValue="none"/>
- <f:selectItem itemLabel="day labels" itemValue="long"/>
- <f:selectItem itemLabel="day labels short" itemValue="short"/>
- <a4j:support event="onclick" reRender="calendarClientID,calendarAjaxID"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Custom month labels" />
- <h:selectOneRadio value="#{calendarBean.month}">
- <f:selectItem itemLabel="none" itemValue="none"/>
- <f:selectItem itemLabel="day labels" itemValue="long"/>
- <f:selectItem itemLabel="day labels short" itemValue="short"/>
- <a4j:support event="onclick" reRender="calendarClientID,calendarAjaxID"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Select Date Pattern:" />
- <h:selectOneMenu value="MMM d, yyyy" onchange="submit()">
- <f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy" />
- <f:selectItem itemLabel="dd/M/yy" itemValue="dd/M/yy" />
- <f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y" />
- <f:selectItem itemLabel="dd.MM.yyyy" itemValue="dd.MM.yyyy" />
- <f:selectItem itemLabel="MMM d, yyyy" itemValue="MMM d, yyyy" />
- </h:selectOneMenu>
-
- <h:inputText id="selectdate" />
- <h:commandButton type="button" value="Select Date"
- onclick="$(this.form.id+':calendarID').component.selectDate(this.form[this.form.id+':selectdate'].value);" />
-
- <h:outputText value="Preload date range begin(d.m.y)" />
- <h:inputText value="#{calendarBean.preloadDateRangeBegin}" onchange="submit();"/>
-
- <h:outputText value="Preload date range end(d.m.y)" />
- <h:inputText value="#{calendarBean.preloadDateRangeEnd}" onchange="submit();"/>
-
- <h:outputText value="z-index:" />
- <h:inputText value="#{calendarBean.zindex}">
- <a4j:support event="onchange" reRender="calendarClientID,calendarAjaxID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height:" />
- <h:inputText value="#{calendarBean.height}">
- <a4j:support event="onchange" reRender="calendarClientID,calendarAjaxID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Width:" />
- <h:inputText value="#{calendarBean.width}">
- <a4j:support event="onchange" reRender="calendarClientID,calendarAjaxID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="reRender (counter):" />
- <h:outputText id="counter" value="#{calendarBean.counter}" />
-
- <h:outputText value="Required" />
- <h:selectBooleanCheckbox value="#{calendarBean.required}" onclick="submit()"/>
-
- <h:outputText value="Select Popup Joint Point:" />
- <h:selectOneRadio onchange="submit()"
- value="#{calendarBean.jointPoint}">
- <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
- <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
- <f:selectItem itemLabel="top-right" itemValue="top-right" />
- <f:selectItem itemLabel="top-left" itemValue="top-left" />
- </h:selectOneRadio>
-
- <h:outputText value="Select Popup Direction:" />
- <h:selectOneRadio onchange="submit()"
- value="#{calendarBean.direction}">
- <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
- <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
- <f:selectItem itemLabel="top-right" itemValue="top-right" />
- <f:selectItem itemLabel="top-left" itemValue="top-left" />
- <f:selectItem itemLabel="auto" itemValue="auto" />
- </h:selectOneRadio>
-
- <h:outputText value="Time Zone:" />
- <h:selectOneRadio value="#{calendarBean.timeZone}" onchange="submit();">
- <f:selectItem itemLabel="Eastern European Time" itemValue="Eastern European Time"/>
- <f:selectItem itemLabel="Turkmenistan Time" itemValue="Turkmenistan Time"/>
- <f:selectItem itemLabel="Korea Standard Time" itemValue="Korea Standard Time"/>
- </h:selectOneRadio>
-
-
- <h:outputText value="ToolTip Mode:" />
- <h:selectOneRadio value="#{calendarBean.toolTipMode}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="none"/>
- <f:selectItem itemLabel="single" itemValue="single"/>
- <f:selectItem itemLabel="batch" itemValue="batch"/>
- </h:selectOneRadio>
-
- <h:outputText value="BoundaryDatesMode:" />
- <h:selectOneRadio onclick="submit()" value="#{calendarBean.boundary}">
- <f:selectItem itemLabel="inactive" itemValue="inactive" />
- <f:selectItem itemLabel="select" itemValue="select" />
- <f:selectItem itemLabel="scroll" itemValue="scroll" />
- </h:selectOneRadio>
-
- <h:outputText value="EnableManualInput:"></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.enableManualInput}"
- onclick="submit()">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="ShowInput:"></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showInput}"
- onclick="submit()">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Disabled:" />
- <h:selectBooleanCheckbox value="#{calendarBean.disabled}" onclick="submit()"/>
-
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{calendarBean.rendered}" onclick="submit()"/>
-
- <f:verbatim></f:verbatim>
- <h:commandButton action="#{calendarBean.changeIcons}" value="ChangeIcons" />
-
- <h:outputText value="Current date: " />
- <h:outputText value="#{calendarBean.currentDateAsText}" />
-
- <h:outputText value="Selected date: " />
- <h:outputText value="#{calendarBean.selectedDate}" />
-
- <f:verbatim></f:verbatim>
- <h:commandButton value="Submit" />
- </h:panelGrid>
-</h:form>
+ </h:panelGrid>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,145 @@
+<f:subview id="calendarPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="calendarPropertyID" switchType="client" opened="true" label="calendar property">
+ <h:panelGrid columns="2">
+ <h:panelGroup>
+ <a4j:commandButton value="reRender" reRender="calendarClientID,calendarAjaxID"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton action="submit();" value="submit();" />
+ <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+ </h:panelGroup>
+ <h:column></h:column>
+
+ <h:outputText value="Mode" />
+ <h:selectOneRadio value="#{calendarBean.mode}" onchange="submit();">
+ <f:selectItem itemLabel="client" itemValue="client"/>
+ <f:selectItem itemLabel="ajax" itemValue="ajax"/>
+ </h:selectOneRadio>
+
+ <h:outputText value="Select Locale:" />
+ <h:selectOneRadio onchange="submit()" value="en/US" valueChangeListener="#{calendarBean.selectLocale}">
+ <f:selectItem itemLabel="US" itemValue="en/US" />
+ <f:selectItem itemLabel="DE" itemValue="de/DE" />
+ <f:selectItem itemLabel="FR" itemValue="fr/FR" />
+ <f:selectItem itemLabel="RU" itemValue="ru/RU" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Popup Mode:" />
+ <h:selectBooleanCheckbox id="popupModeID" value="#{calendarBean.popup}" onclick="submit()" />
+
+ <h:outputText value="Custom day labels" />
+ <h:selectOneRadio value="#{calendarBean.weekDay}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="day labels" itemValue="long" />
+ <f:selectItem itemLabel="day labels short" itemValue="short" />
+ <a4j:support event="onclick" reRender="calendarClientID,calendarAjaxID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Custom month labels" />
+ <h:selectOneRadio value="#{calendarBean.month}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="day labels" itemValue="long" />
+ <f:selectItem itemLabel="day labels short" itemValue="short" />
+ <a4j:support event="onclick" reRender="calendarClientID,calendarAjaxID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Select Date Pattern:" />
+ <h:selectOneMenu value="#{calendarBean.pattern}" onchange="submit()">
+ <f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy" />
+ <f:selectItem itemLabel="dd/M/yy" itemValue="dd/M/yy" />
+ <f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y" />
+ <f:selectItem itemLabel="dd.MM.yyyy" itemValue="dd.MM.yyyy" />
+ <f:selectItem itemLabel="MMM d, yyyy" itemValue="MMM d, yyyy" />
+ <f:selectItem itemLabel="dd-MM-yyyy" itemValue="dd-MM-yyyy" />
+ <f:selectItem itemLabel="dd/M/yy HH:mm" itemValue="dd/M/yy HH:mm"/>
+ <f:selectItem itemLabel="MMM d, yyyy h:mm a" itemValue="MMM d, yyyy h:mm a"/>
+ </h:selectOneMenu>
+
+ <h:outputText value="Preload date range begin(d.m.y)" />
+ <h:inputText value="#{calendarBean.preloadDateRangeBegin}" onchange="submit();" />
+
+ <h:outputText value="Preload date range end(d.m.y)" />
+ <h:inputText value="#{calendarBean.preloadDateRangeEnd}" onchange="submit();" />
+
+ <h:outputText value="z-index:" />
+ <h:inputText value="#{calendarBean.zindex}">
+ <a4j:support event="onchange" reRender="calendarClientID,calendarAjaxID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="reRender (counter):" />
+ <h:outputText id="counter" value="#{calendarBean.counter}" />
+
+ <h:outputText value="Required" />
+ <h:selectBooleanCheckbox value="#{calendarBean.required}" onclick="submit()" />
+
+ <h:outputText value="Select Popup Joint Point:" />
+ <h:selectOneRadio onchange="submit()" value="#{calendarBean.jointPoint}">
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Select Popup Direction:" />
+ <h:selectOneRadio onchange="submit()" value="#{calendarBean.direction}">
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Time Zone:" />
+ <h:selectOneRadio valueChangeListener="#{calendarBean.timeZone}" onchange="submit();">
+ <f:selectItem itemLabel="Eastern European Time" itemValue="Eastern European Time" />
+ <f:selectItem itemLabel="Turkmenistan Time" itemValue="Turkmenistan Time" />
+ <f:selectItem itemLabel="Korea Standard Time" itemValue="Korea Standard Time" />
+ </h:selectOneRadio>
+
+
+ <h:outputText value="ToolTip Mode:" />
+ <h:selectOneRadio value="#{calendarBean.toolTipMode}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="single" itemValue="single" />
+ <f:selectItem itemLabel="batch" itemValue="batch" />
+ </h:selectOneRadio>
+
+ <h:outputText value="BoundaryDatesMode:" />
+ <h:selectOneRadio onclick="submit()" value="#{calendarBean.boundary}">
+ <f:selectItem itemLabel="inactive" itemValue="inactive" />
+ <f:selectItem itemLabel="select" itemValue="select" />
+ <f:selectItem itemLabel="scroll" itemValue="scroll" />
+ </h:selectOneRadio>
+
+ <h:outputText value="EnableManualInput:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.enableManualInput}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="ShowInput:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showInput}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disabled:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.disabled}" onclick="submit()" />
+
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.rendered}" onclick="submit()" />
+
+ <f:verbatim></f:verbatim>
+ <h:commandButton action="#{calendarBean.changeIcons}" value="ChangeIcons" />
+
+ <h:outputText value="Current date: " />
+ <h:outputText value="#{calendarBean.currentDateAsText}" />
+
+ <h:outputText value="Selected date: " />
+ <h:outputText value="#{calendarBean.selectedDate}" />
+
+ <f:verbatim></f:verbatim>
+ <h:commandButton value="Submit" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="calendarStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="calendar straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{calendarBean.bTest1}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Calendar}" />
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{calendarBean.bTest2}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Calendar}" />
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{calendarBean.bTest3}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Calendar}" />
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{calendarBean.bTest4}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Calendar}" />
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{calendarBean.bTest5}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Calendar}" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,100 @@
+<f:subview id="componentControlSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:form>
+ <rich:modalPanel id="ccModalPanelID" onshow="alert(event.parameters.show)" onhide="alert(event.parameters.hide)">
+ <h:outputLink id="hideButton1ID" onclick="return false;" value="#">
+ <f:verbatim>Close 1</f:verbatim>
+ </h:outputLink>
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputLink id="hideButton2ID" onclick="return false;" value="#">
+ <f:verbatim>Close 2</f:verbatim>
+ </h:outputLink>
+ </rich:modalPanel>
+
+ <h:commandButton id="showButtonID" value="show ModalPanel" >
+ <rich:componentControl for="ccModalPanelID" event="onclick" disableDefault="true" operation="show" params="show:'componentControl work(show)'" />
+ </h:commandButton>
+
+ <rich:componentControl attachTo="hideButton1ID, hideButton2ID" event="onclick" for="ccModalPanelID" operation="hide"
+ params="hide:'componentControl work(hide)'" />
+
+ <ui:remove>
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <rich:panelMenu id="ccPanelMenuID" mode="client">
+ <rich:panelMenuGroup label="group1">
+ <rich:panelMenuGroup label="group1 1">
+ <rich:panelMenuItem label="Item 1 1"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 1 2"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ <rich:panelMenuItem label="Item 1"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ </rich:panelMenu>
+
+ <rich:componentControl attachTo="testPMID" for="ccPanelMenuID" event="onclick" operation="doCollapse" />
+
+ <a href="#" id="testPMID" onclick="return false;">Click text</a>
+ </ui:remove>
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <rich:calendar popup="#{componentControl.calendarPopup}" id="ccCalendarID" />
+ <h:panelGrid columns="2">
+ <h:outputText value="popup calendar" />
+ <h:selectBooleanCheckbox id="calendarSelectID" value="#{componentControl.calendarPopup}" onchange="submit();" />
+ </h:panelGrid>
+
+ <f:verbatim>
+ <br />
+ <a href="#" id="doExpandCalendarID">Calendar (doExpand)</a>
+ <br />
+ <a href="#" id="doNextYearCalendarID">Calendar (nextYear)</a>
+ <br />
+ <a href="#" id="doPrevYearCalendarID">Calendar (prevYear)</a>
+ <br />
+ <a href="#" id="doNextMonthCalendarID">Calendar (nextMonth)</a>
+ <br />
+ <a href="#" id="doPrevMonthCalendarID">Calendar (prevMonth)</a>
+ <br />
+ <a href="#" id="doTodayCalendarID">Calendar (today)</a>
+ </f:verbatim>
+
+ <rich:componentControl attachTo="doExpandCalendarID" for="ccCalendarID" event="onclick" operation="doExpand" />
+ <rich:componentControl attachTo="doNextYearCalendarID" for="ccCalendarID" event="onclick" operation="nextYear" />
+ <rich:componentControl attachTo="doPrevYearCalendarID" for="ccCalendarID" event="onclick" operation="prevYear" />
+ <rich:componentControl attachTo="doNextMonthCalendarID" for="ccCalendarID" event="onclick" operation="nextMonth" />
+ <rich:componentControl attachTo="doPrevMonthCalendarID" for="ccCalendarID" event="onclick" operation="prevMonth" />
+ <rich:componentControl attachTo="doTodayCalendarID" for="ccCalendarID" event="onclick" operation="today" />
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <rich:panelMenu id="ccContextMenuPanelMenuID">
+ <h:outputText value="click text" />
+ </rich:panelMenu>
+
+ <rich:contextMenu id="ccContextMenuID" submitMode="ajax" onexpand="alert(event.parameters.expand)">
+ <rich:menuItem icon="/pics/header.png" value="tab1">
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="b">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c">
+ </rich:menuItem>
+ </rich:contextMenu>
+ <rich:componentControl event="oncontextmenu" attachTo="ccContextMenuPanelMenuID" for="ccContextMenuID"
+ operation="show" params="expand:'show work'" /> </h:form>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,368 @@
+<f:subview id="contextMenuSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:panelGrid columns="2">
+ <rich:panel style="width: 130px; height: 50px; background-color: #98FB98;">
+ <h:outputText value="panel with contextMenu(DEFAULT)" />
+ <rich:contextMenu id="contextMenuDefaultID" submitMode="ajax" disableDefaultMenu="#{contextMenu.disableDefaultMenu}">
+ <rich:menuItem icon="/pics/header.png" value="abc" reRender="cmInfoID">
+ <f:param name="cmdParam" value="abc" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="d" reRender="cmInfoID">
+ <f:param name="cmdParam" value="d" />
+ </rich:menuItem>
+ <rich:menuGroup value="menuGroup">
+ <rich:menuItem icon="/pics/fatal.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="d" reRender="cmInfoID">
+ <f:param name="cmdParam" value="d" />
+ </rich:menuItem>
+ </rich:menuGroup>
+ </rich:contextMenu>
+ </rich:panel>
+
+ <rich:panel style="width: 130px; height: 50px; background-color: #98FB98;">
+ <h:outputText value="panel with contextMenu(Test)" />
+ <rich:contextMenu id="contextMenuID" attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}"
+ event="#{contextMenu.event}" disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}"
+ hideDelay="#{contextMenu.hideDelay}" showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="abc" reRender="cmInfoID" >
+ <f:param name="cmdParam" value="abc" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ <rich:menuGroup value="menuGroup">
+ <rich:menuItem icon="/pics/fatal.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="d" reRender="cmInfoID">
+ <f:param name="cmdParam" value="d" />
+ </rich:menuItem>
+ </rich:menuGroup>
+ </rich:contextMenu>
+ </rich:panel>
+ </h:panelGrid>
+
+ <a4j:commandButton value="reRender" reRender="cmInfoID"></a4j:commandButton>
+
+ <h:panelGrid id="cmInfoID" columns="2">
+ <h:outputText value="Select items: " />
+ <h:outputText value="#{contextMenu.info}" style="color: red" />
+ </h:panelGrid>
+
+ <h:panelGrid id="pgcmTestID" columns="3">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}">
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="select" reRender="cmInfoID">
+ <f:param name="cmdParam" value="select" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:selectOneMenu>
+
+ <rich:tabPanel id="tpcmTestID" switchType="client">
+ <rich:tab id="t1cmTestID" label="tab1">
+ <rich:contextMenu submitMode="ajax" disableDefaultMenu="#{contextMenu.disableDefaultMenu}">
+ <rich:menuItem icon="/pics/header.png" value="tab1" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tab1" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ </rich:contextMenu>
+ <h:outputText value="text1" />
+ </rich:tab>
+ <rich:tab id="t2cmTestID" label="tab2">
+ <rich:contextMenu submitMode="ajax" disableDefaultMenu="#{contextMenu.disableDefaultMenu}">
+ <rich:menuItem icon="/pics/header.png" value="tab2" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tab2" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ </rich:contextMenu>
+ <h:outputText value="text2" />
+ </rich:tab>
+ <rich:tab id="t3cmTestID" label="tab3">
+ <rich:contextMenu submitMode="ajax" disableDefaultMenu="#{contextMenu.disableDefaultMenu}">
+ <rich:menuItem icon="/pics/header.png" value="tab3" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tab3" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ </rich:contextMenu>
+ <h:outputText value="text3" />
+ </rich:tab>
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="tabPanel" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tabPanel" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </rich:tabPanel>
+
+ <h:graphicImage id="gicmID" value="/pics/asus.jpg" height="125px" width="150px">
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="graphicImage" reRender="cmInfoID">
+ <f:param name="cmdParam" value="graphicImage" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:graphicImage>
+
+ <h:inputText id="itcmTestID" value="inputText">
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="inputText" reRender="cmInfoID">
+ <f:param name="cmdParam" value="inputText" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:inputText>
+
+ <h:panelGrid id="pgTestID" columns="1" border="5" cellpadding="2" cellspacing="2">
+ <h:outputText value="panelGrid" />
+ <h:outputText value="" />
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="panelGrid" reRender="cmInfoID">
+ <f:param name="cmdParam" value="panelGrid" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:panelGrid>
+ </h:panelGrid>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,52 @@
+<f:subview id="contextMenuPropertySubviewID" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <a4j:commandButton value="reRender" reRender="cmInfoID"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton action="submit();" value="submit();" />
+ <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+
+ <h:panelGrid columns="2" style="top">
+ <h:outputText value="event:" />
+ <h:selectOneMenu value="#{contextMenu.event}" onchange="submit();">
+ <f:selectItem itemLabel="oncontextmenu" itemValue="oncontextmenu" />
+ <f:selectItem itemLabel="onclick" itemValue="onclick" />
+ <f:selectItem itemLabel="onmousemove" itemValue="onmousemove" />
+ </h:selectOneMenu>
+
+ <h:outputText value="popupWidth:" />
+ <h:inputText value="#{contextMenu.popupWidth}">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="hideDelay:" />
+ <h:inputText value="#{contextMenu.hideDelay}">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="showDelay" />
+ <h:inputText value="#{contextMenu.showDelay}">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="submitMode:" />
+ <h:selectOneRadio value="#{contextMenu.submitMode}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onchange" action="submit();"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="attached" />
+ <h:selectBooleanCheckbox value="#{contextMenu.attached}" onchange="submit();" />
+
+ <h:outputText value="disableDefaultMenu:" />
+ <h:selectBooleanCheckbox value="#{contextMenu.disableDefaultMenu}" onchange="submit();">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{contextMenu.rendered}" onchange="submit();">
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/CustomizePage/CustomizePage.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/CustomizePage/CustomizePage.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/CustomizePage/CustomizePage.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,17 +1,27 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
<head>
-<link rel="stylesheet"
- href="#{facesContext.externalContext.requestContextPath}/styles/styles.css"
- type="text/css" />
+<link rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/styles/styles.css" type="text/css" />
</head>
+
+
<f:view>
- <h:form>
-
- </h:form>
+ <h:form id="test">
+<rich:tabPanel switchType="ajax">
+
+<rich:tab label="Sample 1">
+<h:outputText value="1"></h:outputText>
+<h:inputText value="#{dDMenu.mode}" required="true" />
+</rich:tab>
+
+<rich:tab label="Sample 2">
+<a4j:support event="ontabenter"></a4j:support>
+<h:outputText value="2"></h:outputText>
+<h:inputText value="#{dDMenu.mode}"></h:inputText>
+</rich:tab>
+
+</rich:tabPanel>
+ </h:form>
</f:view>
-</html>
\ No newline at end of file
+</html>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionList.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionList.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionList.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,14 @@
+<f:subview id="dataDefinitionListSubviewID" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:dataDefinitionList id="ddListID" value="#{dataDefinitionList.arr}" var="arr" first="#{dataDefinitionList.first}"
+ rendered="#{dataDefinitionList.rendered}" title="#{dataDefinitionList.title}" dir="#{dataDefinitionList.dir}"
+ rows="#{dataDefinitionList.rows}">
+ <f:facet name="header">
+ <h:outputText value="Africa(header):" />
+ </f:facet>
+ <h:outputText value="#{arr.str0}" />
+ <f:facet name="footer">
+ <h:outputText value="Africa(footer);" />
+ </f:facet>
+ </rich:dataDefinitionList>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,33 @@
+<f:subview id="dataDefinitionListPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:panelGrid columns="2">
+ <h:outputText value="title" />
+ <h:inputText value="#{dataDefinitionList.title}" >
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{dataDefinitionList.first}" >
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rows" />
+ <h:inputText value="#{dataDefinitionList.rows}" >
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{dataDefinitionList.dir}">
+ <f:selectItem itemValue="LTR" itemLabel="LTR"/>
+ <f:selectItem itemValue="RTL" itemLabel="RTL"/>
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{dataDefinitionList.rendered}" onchange="submit();" />
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSlider.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSlider.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSlider.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,30 +1,14 @@
-<f:subview id="DataFilterSliderSubviewID"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:ui="http://java.sun.com/jsf/facelets">
-
- <a4j:form id="form1" reRender="list-body" ajaxSubmit="true"
- ignoreDupResponses="true" requestDelay="100">
+<f:subview id="dataFilterSliderSubviewID" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
- <a4j:region id="stat1">
- <a4j:outputPanel id="p1">
- <rich:dataFilterSlider sliderListener="#{dfs.doSlide}" rendered="#{dfs.rendered}"
- binding="#{inventoryList.dataFilterSlider}" for="carList"
- forValRef="inventoryList.carInventory" filterBy="getMileage"
- manualInput="true" onSlide="true" onChange="true"
- storeResults="true" trackStyleClass="track" width="400px"
- styleClass="slider-container" startRange="10000" endRange="60000"
- increment="10000" rangeStyleClass="range" trailer="true"
- trailerStyleClass="trailer" handleStyleClass="handle"
- handleValue="10000" id="slider_1">
- </rich:dataFilterSlider>
- </a4j:outputPanel>
+ <rich:dataFilterSlider sliderListener="#{dfs.doSlide}" rendered="#{dfs.rendered}" binding="#{inventoryList.dataFilterSlider}"
+ for="carList" forValRef="inventoryList.carInventory" filterBy="getMileage" manualInput="true" onSlide="true" onChange="true"
+ storeResults="true" trackStyleClass="track" width="400px" styleClass="slider-container" startRange="10000" endRange="60000"
+ increment="10000" rangeStyleClass="range" trailer="true" trailerStyleClass="trailer" handleStyleClass="handle"
+ handleValue="10000" id="dfsID">
+ </rich:dataFilterSlider>
-
-
- <a4j:outputPanel id="list-body" style="border: 1px">
+ <h:panelGrid id="list-body">
<h:dataTable id="carIndex" rows="10"
binding="#{inventoryList.carMakeIndexUIData}"
value="#{inventoryList.carMakeIndex}" var="category"
@@ -39,7 +23,6 @@
</a4j:commandLink>
</h:column>
-
</h:dataTable>
<h:dataTable id="carList" rows="10"
@@ -76,13 +59,8 @@
<h:outputText value="#{category.mileage}" />
</h:column>
</h:dataTable>
- </a4j:outputPanel>
- </a4j:region>
- <h:panelGrid columns="2">
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{dfs.rendered}" >
- <a4j:support event="onclick" reRender="p1"></a4j:support>
- </h:selectBooleanCheckbox>
- </h:panelGrid>
- </a4j:form>
-</f:subview>
+ </h:panelGrid>
+ <h:outputText value="click reRender for update page(RF-1365)" />
+ <h:commandButton value="reRender" />
+
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,13 @@
+<f:subview id="dataFilterSliderPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:panelGrid columns="2">
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dfs.rendered}" >
+ <a4j:support event="onclick" reRender="p1"></a4j:support>
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,14 @@
+<f:subview id="dataOrderedListSubviewID" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:dataOrderedList id="doListID" value="#{dataOrderedList.arr}" var="arr" first="#{dataOrderedList.first}"
+ rendered="#{dataOrderedList.rendered}" title="#{dataOrderedList.title}" type="#{dataOrderedList.type}" dir="#{dataOrderedList.dir}"
+ rows="#{dataOrderedList.rows}">
+ <f:facet name="header">
+ <h:outputText value="Africa(header):" />
+ </f:facet>
+ <h:outputText value="#{arr.str0}" />
+ <f:facet name="footer">
+ <h:outputText value="Africa(footer);" />
+ </f:facet>
+ </rich:dataOrderedList>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,46 @@
+<f:subview id="dataOrderedListPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:panelGrid columns="2">
+ <h:outputText value="title" />
+ <h:inputText value="#{dataOrderedList.title}" >
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{dataOrderedList.first}" >
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rows" />
+ <h:inputText value="#{dataOrderedList.rows}" >
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{dataOrderedList.dir}">
+ <f:selectItem itemValue="LTR" itemLabel="LTR"/>
+ <f:selectItem itemValue="RTL" itemLabel="RTL"/>
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="type" />
+ <h:selectOneMenu value="#{dataOrderedList.type}">
+ <f:selectItem itemValue="1" itemLabel="1"/>
+ <f:selectItem itemValue="A" itemLabel="A"/>
+ <f:selectItem itemValue="a" itemLabel="a"/>
+ <f:selectItem itemValue="I" itemLabel="I"/>
+ <f:selectItem itemValue="i" itemLabel="i"/>
+ <f:selectItem itemValue="disc" itemLabel="disc"/>
+ <f:selectItem itemValue="circle" itemLabel="circle"/>
+ <f:selectItem itemValue="square" itemLabel="square"/>
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{dataOrderedList.rendered}" onchange="submit();"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Deleted: trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,68 +0,0 @@
-<f:subview id="DataScrollerSubviewID"
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich">
-<h:form dir="DSform">
-
- <h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
- var="dT" cellpadding="5px" rows="5" border="1">
- <f:facet name="header">
- <rich:datascroller fastControls="#{dataScroller.fastControls}"
- align="#{dataScroller.align}" rendered="#{dataScroller.render}"
- limitToList="#{dataScroller.limitToList}"
- renderIfSinglePage="#{dataScroller.renderIfSinglePage}"
- maxPages="#{dataScroller.maxPages}"
- scrollerListener="#{dataScroller.ScrollerListener}" />
- </f:facet>
- <h:column>
- <h:outputText value="#{dT.data0}" />
- </h:column>
- <h:column>
- <h:outputText value="#{dT.data1}" />
- </h:column>
-
- </h:dataTable>
- <h:commandButton action="#{dataScroller.CutArray}" value="CutArray" />
- <h:commandButton action="#{dataScroller.RestoreArray}"
- value="RestoreArray" />
-
- <h:panelGrid columns="2">
- <h:outputText value="maxPages" />
- <h:inputText value="#{dataScroller.maxPages}">
- <a4j:support event="onchange" reRender="dataScrollerID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{dataScroller.render}"
- onclick="submit();" />
-
- <h:outputText value="renderIfSinglePage:" />
- <h:selectBooleanCheckbox value="#{dataScroller.renderIfSinglePage}"
- onclick="submit();" />
-
- <h:outputText value="limitToList:" />
- <h:selectBooleanCheckbox value="#{dataScroller.limitToList}"
- onclick="submit();" />
-
- <h:outputText value="fastControls" />
- <h:selectOneRadio value="#{dataScroller.fastControls}">
- <f:selectItem itemLabel="auto" itemValue="auto" />
- <f:selectItem itemLabel="show" itemValue="show" />
- <f:selectItem itemLabel="hide" itemValue="hide" />
- <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="align" />
- <h:selectOneRadio value="#{dataScroller.align}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <f:selectItem itemLabel="center" itemValue="center" />
- <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
- </h:selectOneRadio>
-
- </h:panelGrid>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
-</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="DataScrollerSubviewID"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich">
+ <h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
+ var="dT" cellpadding="5px" rows="5" border="1">
+ <f:facet name="header">
+ <rich:datascroller fastControls="#{dataScroller.fastControls}"
+ align="#{dataScroller.align}" rendered="#{dataScroller.render}"
+ limitToList="#{dataScroller.limitToList}"
+ renderIfSinglePage="#{dataScroller.renderIfSinglePage}"
+ maxPages="#{dataScroller.maxPages}"
+ scrollerListener="#{dataScroller.ScrollerListener}"
+ onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')"
+ onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"/>
+ </f:facet>
+ <h:column>
+ <h:outputText value="#{dT.data0}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{dT.data1}" />
+ </h:column>
+ </h:dataTable>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,49 @@
+<f:subview id="datascrollerPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="dTablePropertyID" switchType="client" opened="true"
+ label="datascroller property">
+
+ <h:commandButton action="#{dataScroller.CutArray}" value="CutArray" />
+ <h:commandButton action="#{dataScroller.RestoreArray}"
+ value="RestoreArray" />
+
+ <h:panelGrid columns="2">
+ <h:outputText value="maxPages" />
+ <h:inputText value="#{dataScroller.maxPages}">
+ <a4j:support event="onchange" reRender="dataScrollerID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.render}"
+ onclick="submit();" />
+
+ <h:outputText value="renderIfSinglePage:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.renderIfSinglePage}"
+ onclick="submit();" />
+
+ <h:outputText value="limitToList:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.limitToList}"
+ onclick="submit();" />
+
+ <h:outputText value="fastControls" />
+ <h:selectOneRadio value="#{dataScroller.fastControls}">
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <f:selectItem itemLabel="show" itemValue="show" />
+ <f:selectItem itemLabel="hide" itemValue="hide" />
+ <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="align" />
+ <h:selectOneRadio value="#{dataScroller.align}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,31 @@
+<f:subview id="datascrollerStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true"
+ label="datascroller straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{dataScroller.bTest1}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1DataScroller}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{dataScroller.bTest2}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2DataScroller}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{dataScroller.bTest3}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3DataScroller}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{dataScroller.bTest4}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4DataScroller}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{dataScroller.bTest5}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5DataScroller}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Deleted: trunk/test-applications/facelets/src/main/webapp/DataTable/DT.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataTable/DT.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/DataTable/DT.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,108 +0,0 @@
-<f:subview id="DataTableSubviewID"
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich">
-
-<h:form dir="DSform" >
-
- <rich:dataTable id="dataTableID" var="dataTableID"
- value="#{dataTable.mounths}" rowKeyVar="key" styleClass="table"
- captionClass="caption" rowClasses="rowa,rowb,rowc rowcc"
- headerClass="header" footerClass="footer" cellpadding="" cellspacing=""
- onRowClick="alert('row #{key}')" rendered="#{dataTable.rendered}" align="#{dataTable.align}" bgcolor="red"
- border="#{dataTable.border}" columnsWidth="#{dataTable.columnsWidth}" width="#{dataTable.width}" title="DataTableTite">
- <f:facet name="caption">
- <h:outputText value="caption" />
- </f:facet>
- <f:facet name="header">
- <rich:columnGroup columnClasses="cola, colb ,rowc rowcc">
- <rich:column rowspan="2" rendered="#{dataTable.r2rendered}">
- <h:outputText value="2-row head" />
- </rich:column>
- <h:column rendered="#{dataTable.r2rendered}">
- <h:outputText value="head in UIColumn" />
- </h:column>
- <rich:column breakBefore="true">
- <h:outputText value="2-d row head" />
- </rich:column>
- </rich:columnGroup>
- </f:facet>
- <f:facet name="footer">
- <h:outputText value="table foot" />
- </f:facet>
- <rich:columnGroup>
- <rich:column id="mounth" styleClass="column" rowspan="2"
- headerClass="cheader" footerClass="cfooter">
- <f:facet name="header">
- <h:outputText value="mounth" />
- </f:facet>
- <f:facet name="footer">
- <h:outputText value="-//-" />
- </f:facet>
- <h:outputText value="#{dataTableID.mounth}" />
- </rich:column>
- <rich:column styleClass="column" headerClass="cheader"
- footerClass="cfooter" rendered="#{dataTable.r2rendered}">
- <f:facet name="header">
- <h:outputText value="mounth" />
- </f:facet>
- <f:facet name="footer">
- <h:outputText value="-//-" />
- </f:facet>
- <h:outputText value="#{dataTableID.town}" />
- </rich:column>
- </rich:columnGroup>
- <rich:column styleClass="column" headerClass="cheader"
- footerClass="cfooter" rendered="#{dataTable.r2rendered}">
- <h:outputText value="#{dataTableID.day}" />
- </rich:column>
- <rich:subTable id="detail" var="detail" value="#{dataTableID.detail}">
- <rich:column id="name">
- <h:outputText value="#{detail.name}" />
- </rich:column>
- <rich:column id="qty" rendered="#{dataTable.r2rendered}">
- <h:outputText value="#{detail.qty}" />
- </rich:column>
- </rich:subTable>
- <rich:column id="total" styleClass="total" colspan="2">
- <h:outputText value="#{dataTableID.total}" />
- </rich:column>
- </rich:dataTable>
-
- <h:panelGrid columns="2">
- <h:outputText value="Align:"></h:outputText>
- <h:selectOneMenu value="#{dataTable.align}">
- <f:selectItem itemLabel="center" itemValue="*center" />
- <f:selectItem itemLabel="left" itemValue="*left" />
- <f:selectItem itemLabel="right " itemValue="*right" />
- <a4j:support event="onclick" reRender="dataTableID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Border: "></h:outputText>
- <h:inputText value="#{dataTable.border}">
- <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Columns Width: "></h:outputText>
- <h:inputText value="#{dataTable.columnsWidth}">
- <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Width: "></h:outputText>
- <h:inputText value="#{dataTable.width}">
- <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="rendered:" />
- <h:selectBooleanCheckbox value="#{dataTable.rendered}"
- onclick="submit();" />
-
- <h:outputText value=" row 2 rendered" />
- <h:selectBooleanCheckbox value="#{dataTable.r2rendered}"
- onclick="submit();" />
- </h:panelGrid>
-
- </h:form>
-</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,72 @@
+<f:subview id="DataTableSubviewID" xmlns="http://www.w3.org/1999/xhtml" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich">
+ <rich:dataTable id="dataTableID" var="dataTableID" value="#{dataTable.mounths}" rowKeyVar="key" styleClass="table"
+ captionClass="caption" rowClasses="rowa,rowb,rowc rowcc" headerClass="header" footerClass="footer" onRowClick="print('onRowClickInputID', 'onRowClick work!');alert('row #{key}');" rendered="#{dataTable.rendered}" align="#{dataTable.align}" bgcolor="red"
+ border="#{dataTable.border}" columnsWidth="#{dataTable.columnsWidth}" width="#{dataTable.width}" title="DataTableTite"
+ onRowDblClick="print('onRowDblClickInputID', 'onRowDblClick work!')"
+ onRowMouseDown="print('onRowMouseDownInputID', 'onRowMouseDown work!')"
+ onRowMouseMove="print('onRowMouseMoveInputID', 'onRowMouseMove work!')"
+ onRowMouseOut="print('onRowMouseOutInputID', 'onRowMouseOut work!')"
+ onRowMouseOver="print('onRowMouseOverInputID', 'onRowMouseOver work!')"
+ onRowMouseUp="print('onRowMouseUpInputID', 'onRowMouseUp work!')">
+ <f:facet name="caption">
+ <h:outputText value="caption facet" />
+ </f:facet>
+ <f:facet name="header">
+ <rich:columnGroup columnClasses="cola, colb ,rowc rowcc">
+ <rich:column rowspan="2" rendered="#{dataTable.r2rendered}">
+ <h:outputText value="2-row head" />
+ </rich:column>
+ <h:column rendered="#{dataTable.r2rendered}">
+ <h:outputText value="head in UIColumn" />
+ </h:column>
+ <rich:column breakBefore="true">
+ <h:outputText value="2-d row head" />
+ </rich:column>
+ </rich:columnGroup>
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="table foot" />
+ </f:facet>
+ <rich:columnGroup>
+ <rich:column id="mounth" styleClass="column" rowspan="2" headerClass="cheader" footerClass="cfooter">
+ <f:facet name="header">
+ <h:outputText value="mounth" />
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="-//-" />
+ </f:facet>
+ <h:outputText value="#{dataTableID.mounth}" />
+ </rich:column>
+ <rich:column styleClass="column" headerClass="cheader" footerClass="cfooter" rendered="#{dataTable.r2rendered}">
+ <f:facet name="header">
+ <h:outputText value="mounth" />
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="-//-" />
+ </f:facet>
+ <h:outputText value="#{dataTableID.town}" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:column styleClass="column" headerClass="cheader" footerClass="cfooter" rendered="#{dataTable.r2rendered}">
+ <h:outputText value="#{dataTableID.day}" />
+ </rich:column>
+ <rich:subTable id="detail" var="detail" value="#{dataTableID.detail}">
+ <f:facet name="header">
+ <h:outputText value="facet(header)" />
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="facet(footer)" />
+ </f:facet>
+ <rich:column id="name">
+ <h:outputText value="#{detail.name}" />
+ </rich:column>
+ <rich:column id="qty" rendered="#{dataTable.r2rendered}">
+ <h:outputText value="#{detail.qty}" />
+ </rich:column>
+ </rich:subTable>
+ <rich:column id="total" styleClass="total" colspan="2">
+ <h:outputText value="#{dataTableID.total}" />
+ </rich:column>
+ </rich:dataTable>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,39 @@
+<f:subview id="dataTablePropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="dtPropertyID" switchType="client" opened="true" label="dataTable property">
+ <h:panelGrid columns="2" style="top">
+ <h:outputText value="Align:"></h:outputText>
+ <h:selectOneMenu value="#{dataTable.align}">
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right " itemValue="right" />
+ <a4j:support event="onclick" reRender="dataTableID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Border: "></h:outputText>
+ <h:inputText value="#{dataTable.border}">
+ <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Columns Width: "></h:outputText>
+ <h:inputText value="#{dataTable.columnsWidth}">
+ <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{dataTable.width}">
+ <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rendered:" />
+ <h:selectBooleanCheckbox value="#{dataTable.rendered}" onclick="submit();" />
+
+ <h:outputText value=" row 2 rendered" />
+ <h:selectBooleanCheckbox value="#{dataTable.r2rendered}" onclick="submit();" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="StraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="dataTable straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{dataTable.bTest1}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1DataTable}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{dataTable.bTest2}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2DataTable}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{dataTable.bTest3}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3DataTable}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{dataTable.bTest4}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4DataTable}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{dataTable.bTest5}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5DataTable}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Deleted: trunk/test-applications/facelets/src/main/webapp/DradAndDrop/DragAndDrop.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DradAndDrop/DragAndDrop.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/DradAndDrop/DragAndDrop.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,178 +0,0 @@
-<f:subview id="DtadAndDropSubviewID"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:h="http://java.sun.com/jsf/html">
-
- <h:form id="form">
-
- <h:panelGroup id="dragValueText">
- <h:outputText value="#{dndBean.dragValue}" />
- </h:panelGroup>
-
- <h:panelGrid columns="2">
- <h:dataTable var="type" value="#{dndBean.types}">
- <h:column>
- <h:panelGrid styleClass="dropzoneDecoration" id="drag1">
- <h:outputText value="#{type} - drag" />
- <rich:dragSupport dragType="#{type}" dragValue="#{type} - value"
- action="#{dndBean.dragAction}"
- dragListener="#{dndBean.processDrag}">
- </rich:dragSupport>
- </h:panelGrid>
- </h:column>
- </h:dataTable>
-
- <h:dataTable var="type" value="#{dndBean.types}">
- <h:column>
- <h:panelGrid styleClass="dropzoneDecoration" id="drop2">
- <h:outputText value="#{type} - drop" />
- <rich:dropSupport reRender="dragValueText"
- action="#{dndBean.dropAction}" acceptedTypes="#{type}"
- dropListener="#{dndBean.processDrop}" dropValue="#{type} - value">
- </rich:dropSupport>
- </h:panelGrid>
- </h:column>
- </h:dataTable>
- </h:panelGrid>
-
- <rich:dragIndicator id="indicator" acceptClass="accept"
- rejectClass="reject">
- <f:facet name="single">
- <f:verbatim>{marker} <b>{testDrag}</b> {label}</f:verbatim>
- </f:facet>
- <rich:dndParam name="accept" value="ACCEPT:" />
- <rich:dndParam name="reject">
- <f:verbatim>
- <i style="text-decoration: line-through;">REJECT:</i>
- </f:verbatim>
- </rich:dndParam>
- </rich:dragIndicator>
-
- <rich:dragIndicator id="dIndicator" acceptClass="defaultIndicator"
- rejectClass="reject">
- <f:facet name="single">
- <f:verbatim>{marker} <b>{testDrag}</b> {label}</f:verbatim>
- </f:facet>
- <rich:dndParam name="accept" value="ACCEPT:" />
- <rich:dndParam name="reject">
- <f:verbatim>
- <i style="text-decoration: line-through;">REJECT:</i>
- </f:verbatim>
- </rich:dndParam>
- </rich:dragIndicator>
-
- <h:panelGrid columns="1" style="position: relative; left: 140px;">
- <h:panelGrid columns="1"
- style="position: absolute; top: 30px; left: 300px;">
- <rich:dragIndicator id="defaultIndicator">
- </rich:dragIndicator>
- </h:panelGrid>
- </h:panelGrid>
-
- <h:panelGrid columns="4" cellspacing="20">
- <h:panelGrid styleClass="dropzoneDecoration" id="grid1">
- <f:verbatim>Accepts file and folder... Customizes</f:verbatim>
- <rich:dropSupport id="zone1"
- ondrop="var zone = $('form:grid1'); zone.style.borderColor= 'red'; setTimeout( function() { this.style.borderColor= 'navy'; }.bind(zone), 300);"
- acceptedTypes="file, folder" typeMapping="{file: testDrop}">
- <rich:dndParam name="testDrop">
- <h:graphicImage height="16" width="16"
- value="#{icon.iconFileManager}" />
- </rich:dndParam>
- </rich:dropSupport>
- </h:panelGrid>
-
- <h:panelGrid styleClass="dropzoneDecoration" id="grid2">
- <f:verbatim>Accepts none</f:verbatim>
- <rich:dropSupport>
- </rich:dropSupport>
- </h:panelGrid>
-
- <h:panelGrid styleClass="dropzoneDecoration" id="grid3">
- <f:verbatim>Accepts none... Customizes</f:verbatim>
- <rich:dropSupport typeMapping="{file: testDrop}">
- <rich:dndParam name="testDrop">
- <h:graphicImage height="16" width="16"
- value="#{icon.iconFileManagerReject}" />
- </rich:dndParam>
- </rich:dropSupport>
- </h:panelGrid>
-
- <h:panelGrid styleClass="dropzoneDecoration" id="grid4">
- <f:verbatim>Accepts file and folder</f:verbatim>
- <rich:dropSupport acceptedTypes="file, folder">
- <rich:dndParam name="testDrop" value="testDropValue" />
- </rich:dropSupport>
- </h:panelGrid>
-
- <h:panelGrid id="grid5">
- <rich:dragSupport dragType="file">
- <rich:dndParam name="label" value="Label" />
- <rich:dndParam name="testDrag" value="testDragValue" />
- </rich:dragSupport>
- <f:verbatim>File Draggable - no indicator</f:verbatim>
- </h:panelGrid>
-
- <h:panelGrid id="grid6">
- <rich:dragSupport dragType="file" dragIndicator="indicator">
- <rich:dndParam name="label" value="Label" />
- <rich:dndParam name="testDrag" value="testDragValue" />
- </rich:dragSupport>
- <f:verbatim>File Draggable with indicator</f:verbatim>
- </h:panelGrid>
-
- <h:panelGrid id="grid7">
- <rich:dragSupport dragType="folder" dragIndicator="indicator">
- <rich:dndParam name="label" value="Label" />
- <rich:dndParam name="testDrag" value="testDragValue for Folder" />
- </rich:dragSupport>
- <f:verbatim>Folder Draggable with indicator</f:verbatim>
- </h:panelGrid>
-
- <h:outputText />
-
- <h:panelGrid id="grid8">
- <rich:dragSupport dragType="folder">
- <rich:dndParam name="label" value="Label" />
- <rich:dndParam name="testDrag" value="testDragValue for Folder" />
- </rich:dragSupport>
- <f:verbatim>Folder Draggable - no indicator</f:verbatim>
- </h:panelGrid>
-
- <h:panelGrid id="grid9">
- <rich:dragSupport dragType="file" dragIndicator="defaultIndicator">
- <rich:dndParam name="testDrag" value="testDragValue" />
- <rich:dndParam name="marker" value="testMarkerValue" />
- <rich:dndParam name="label" value="testDragValue" />
- </rich:dragSupport>
- <f:verbatim>File Draggable with defaultIndicator</f:verbatim>
- </h:panelGrid>
-
- <h:panelGrid id="grid10">
- <rich:dragSupport dragType="folder" dragIndicator="defaultIndicator">
- <rich:dndParam name="label" value="testDragValue for Folder" />
- </rich:dragSupport>
- <f:verbatim>Folder Draggable with defaultIndicator</f:verbatim>
- </h:panelGrid>
- <h:outputText />
- </h:panelGrid>
-
- <h:panelGrid id="renderedId">
- <rich:dragSupport dragType="file" dragIndicator="defaultIndicator">
- <rich:dndParam name="marker" value="testMarkerValue" />
- <rich:dndParam name="label" value="testDragValue" />
- </rich:dragSupport>
-
- <h:graphicImage id="dragImage" value="/pics/masshtaby_01.jpg"
- width="200px" height="200px" />
- <f:verbatim>dragSupport</f:verbatim>
- </h:panelGrid>
-
- <a4j:status startText="...request..." stopText="stop" />
-
- <a4j:outputPanel ajaxRendered="true">
- <h:messages />
- </a4j:outputPanel>
- </h:form>
-</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,196 @@
+<f:subview id="DtadAndDropSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich" xmlns:h="http://java.sun.com/jsf/html">
+
+ <a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+ </a4j:outputPanel>
+
+ <script>
+ DnD.CLIENT_VALIDATION_OFF = false;
+ </script>
+
+ <h:panelGroup id="dragValueText">
+ <h:outputText value="#{dndBean.dragValue}" />
+ </h:panelGroup>
+
+ <h:panelGrid columns="2">
+ <h:dataTable var="type" value="#{dndBean.types}">
+ <h:column>
+ <h:panelGrid styleClass="dropzoneDecoration" id="drag1">
+ <h:outputText value="#{type} - drag" />
+ <rich:dragSupport dragType="#{type}" dragValue="#{type} - value" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')" action="#{dndBean.dragAction}" dragListener="#{dndBean.processDrag}">
+ </rich:dragSupport>
+ </h:panelGrid>
+ </h:column>
+ </h:dataTable>
+
+ <h:dataTable var="type" value="#{dndBean.types}">
+ <h:column>
+ <h:panelGrid styleClass="dropzoneDecoration" id="drop2">
+ <h:outputText value="#{type} - drop" />
+ <rich:dropSupport reRender="dragValueText" ondragenter="print('InputID', ' work!')" ondragexit="print('InputID', ' work!')"
+ ondrop="print('InputID', ' work!')" ondropend="print('InputID', ' work!')"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')"
+ action="#{dndBean.dropAction}" acceptedTypes="#{type}" dropListener="#{dndBean.processDrop}" dropValue="#{type} - value">
+ </rich:dropSupport>
+ </h:panelGrid>
+ </h:column>
+ </h:dataTable>
+ </h:panelGrid>
+
+ <rich:dragIndicator id="indicator" acceptClass="accept" rejectClass="reject">
+ <f:facet name="single">
+ <f:verbatim>{marker} <b>{testDrag}</b> {label}</f:verbatim>
+ </f:facet>
+ <rich:dndParam name="accept" value="ACCEPT:" />
+ <rich:dndParam name="reject">
+ <f:verbatim>
+ <i style="text-decoration: line-through;">REJECT:</i>
+ </f:verbatim>
+ </rich:dndParam>
+ </rich:dragIndicator>
+
+ <rich:dragIndicator id="dIndicator" acceptClass="defaultIndicator" rejectClass="reject">
+ <f:facet name="single">
+ <f:verbatim>{marker} <b>{testDrag}</b> {label}</f:verbatim>
+ </f:facet>
+ <rich:dndParam name="accept" value="ACCEPT:" />
+ <rich:dndParam name="reject">
+ <f:verbatim>
+ <i style="text-decoration: line-through;">REJECT:</i>
+ </f:verbatim>
+ </rich:dndParam>
+ </rich:dragIndicator>
+
+ <h:panelGrid columns="1" style="position: relative; left: 140px;">
+ <h:panelGrid columns="1" style="position: absolute; top: 30px; left: 300px;">
+ <rich:dragIndicator id="defaultIndicator">
+ </rich:dragIndicator>
+ </h:panelGrid>
+ </h:panelGrid>
+
+ <h:panelGrid columns="4" cellspacing="20">
+ <h:panelGrid styleClass="dropzoneDecoration" id="grid1">
+ <f:verbatim>Accepts file and folder... Customizes</f:verbatim>
+ <rich:dropSupport id="zone1"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')" ondragenter="print('ondragenterInputID', 'ondragenter work!')"
+ ondragexit="print('ondragexitInputID', 'ondragexit work!')" ondropend="print('ondropendInputID', 'ondropend work!')"
+ ondrop="print('ondropInputID', 'ondrop work!')"
+ acceptedTypes="file, folder" typeMapping="{file: testDrop}">
+ <rich:dndParam name="testDrop">
+ <h:graphicImage height="16" width="16"
+ value="#{icon.iconFileManager}" />
+ </rich:dndParam>
+ </rich:dropSupport>
+ </h:panelGrid>
+
+ <h:panelGrid styleClass="dropzoneDecoration" id="grid2">
+ <f:verbatim>Accepts none</f:verbatim>
+ <rich:dropSupport>
+ </rich:dropSupport>
+ </h:panelGrid>
+
+ <h:panelGrid styleClass="dropzoneDecoration" id="grid3">
+ <f:verbatim>Accepts none... Customizes</f:verbatim>
+ <rich:dropSupport typeMapping="{file: testDrop}" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragenter="print('ondragenterInputID', 'ondragenter work!')"
+ ondragexit="print('ondragexitInputID', 'ondragexit work!')"
+ ondrop="print('ondropInputID', 'ondrop work!')" ondropend="print('ondropendInputID', 'ondropend work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+ <rich:dndParam name="testDrop">
+ <h:graphicImage height="16" width="16" value="#{icon.iconFileManagerReject}" />
+ </rich:dndParam>
+ </rich:dropSupport>
+ </h:panelGrid>
+
+ <h:panelGrid styleClass="dropzoneDecoration" id="grid4">
+ <f:verbatim>Accepts file and folder</f:verbatim>
+ <rich:dropSupport acceptedTypes="file, folder" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragenter="print('ondragenterInputID', 'ondragenter work!')"
+ ondragexit="print('ondragexitInputID', 'ondragexit work!')"
+ ondrop="print('ondropInputID', 'ondrop work!')" ondropend="print('ondropendInputID', 'ondropend work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+ <rich:dndParam name="testDrop" value="testDropValue" />
+ </rich:dropSupport>
+ </h:panelGrid>
+
+ <h:panelGrid id="grid5">
+ <rich:dragSupport dragType="file" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+ <rich:dndParam name="label" value="Label" />
+ <rich:dndParam name="testDrag" value="testDragValue" />
+ </rich:dragSupport>
+ <f:verbatim>File Draggable - no indicator</f:verbatim>
+ </h:panelGrid>
+
+ <h:panelGrid id="grid6">
+ <rich:dragSupport dragType="file" dragIndicator="indicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+ <rich:dndParam name="label" value="Label" />
+ <rich:dndParam name="testDrag" value="testDragValue" />
+ </rich:dragSupport>
+ <f:verbatim>File Draggable with indicator</f:verbatim>
+ </h:panelGrid>
+
+ <h:panelGrid id="grid7">
+ <rich:dragSupport dragType="folder" dragIndicator="indicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+ <rich:dndParam name="label" value="Label" />
+ <rich:dndParam name="testDrag" value="testDragValue for Folder" />
+ </rich:dragSupport>
+ <f:verbatim>Folder Draggable with indicator</f:verbatim>
+ </h:panelGrid>
+
+ <h:outputText />
+
+ <h:panelGrid id="grid8">
+ <rich:dragSupport dragType="folder" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+ <rich:dndParam name="label" value="Label" />
+ <rich:dndParam name="testDrag" value="testDragValue for Folder" />
+ </rich:dragSupport>
+ <f:verbatim>Folder Draggable - no indicator</f:verbatim>
+ </h:panelGrid>
+
+ <h:panelGrid id="grid9">
+ <rich:dragSupport dragType="file" dragIndicator="defaultIndicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+ <rich:dndParam name="testDrag" value="testDragValue" />
+ <rich:dndParam name="marker" value="testMarkerValue" />
+ <rich:dndParam name="label" value="testDragValue" />
+ </rich:dragSupport>
+ <f:verbatim>File Draggable with defaultIndicator</f:verbatim>
+ </h:panelGrid>
+
+ <h:panelGrid id="grid10">
+ <rich:dragSupport dragType="folder" dragIndicator="defaultIndicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+ <rich:dndParam name="label" value="testDragValue for Folder" />
+ </rich:dragSupport>
+ <f:verbatim>Folder Draggable with defaultIndicator</f:verbatim>
+ </h:panelGrid>
+ <h:outputText />
+ </h:panelGrid>
+
+ <h:panelGrid id="renderedId">
+ <rich:dragSupport dragType="file" dragIndicator="defaultIndicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+ <rich:dndParam name="marker" value="testMarkerValue" />
+ <rich:dndParam name="label" value="testDragValue" />
+ </rich:dragSupport>
+
+ <h:graphicImage id="dragImage" value="/pics/masshtaby_01.jpg" width="200px" height="200px" />
+ <f:verbatim>dragSupport</f:verbatim>
+ </h:panelGrid>
+</f:subview>
Deleted: trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,154 +0,0 @@
-<f:subview id="DropDownMenuSubviewID"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:c="http://java.sun.com/jsp/jstl/core">
- <h:form>
-
- <h:panelGrid columns="3">
- <h:panelGrid columns="2">
- <h:outputText value="HideDelay (ms):" />
- <h:inputText value="#{dDMenu.hideDelay}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
-
- <h:outputText value="ShowDelay (ms):" />
- <h:inputText value="#{dDMenu.showDelay}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
-
- <h:outputText value="PopupWidth (px):" />
- <h:inputText value="#{dDMenu.popupWidth}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
-
- <h:outputText value="horizontalOffset (px):" />
- <h:inputText value="#{dDMenu.horizontalOffset}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
-
- <h:outputText value="verticalOffset (px):" />
- <h:inputText value="#{dDMenu.verticalOffset}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
-
- <h:outputText value="Mode:" />
- <h:selectOneRadio value="#{dDMenu.mode}">
- <f:selectItem itemLabel="none" itemValue="none"/>
- <f:selectItem itemLabel="ajax" itemValue="ajax"/>
- <f:selectItem itemLabel="server" itemValue="server"/>
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
-
- <h:outputText value="Direction:" />
- <h:selectOneRadio value="#{dDMenu.direction}">
- <f:selectItem itemLabel="top-right" itemValue="top-right" />
- <f:selectItem itemLabel="top-left" itemValue="top-left" />
- <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
- <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
- <f:selectItem itemLabel="auto" itemValue="auto" />
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
-
- <h:outputText value="GroupDirection:" />
- <h:selectOneRadio value="#{dDMenu.groupDirection}">
- <f:selectItem itemLabel="top-up" itemValue="top-up" />
- <f:selectItem itemLabel="top-down" itemValue="top-down" />
- <f:selectItem itemLabel="bottom-up" itemValue="bottom-up" />
- <f:selectItem itemLabel="bottom-down" itemValue="bottom-down" />
- <f:selectItem itemLabel="auto" itemValue="auto" />
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
-
- <h:outputText value="JointPoint:" />
- <h:selectOneRadio value="#{dDMenu.jointPoint}">
- <f:selectItem itemLabel="top-right" itemValue="tr" />
- <f:selectItem itemLabel="top-left" itemValue="tl" />
- <f:selectItem itemLabel="bottom-right" itemValue="br" />
- <f:selectItem itemLabel="bottom-left" itemValue="bl" />
- <f:selectItem itemLabel="auto" itemValue="auto" />
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
-
- <h:outputText value="Menu appearance event:" />
- <h:selectOneRadio value="#{dDMenu.event}" onclick="submit()">
- <f:selectItem itemLabel="onclick" itemValue="onclick" />
- <f:selectItem itemLabel="onmouseover" itemValue="onmouseover" />
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
-
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{dDMenu.rendered}"
- onclick="submit()">
-
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Disable some items:" />
- <h:selectBooleanCheckbox value="#{dDMenu.disabled}">
- <a4j:support reRender="ddmId" event="onclick" />
- </h:selectBooleanCheckbox>
- <h:commandButton action="#{dDMenu.changeIcons}" value="ChangeIcons" />
- </h:panelGrid>
-
- <rich:spacer width="300px"></rich:spacer>
-
- <rich:panel style="width:200px; height:50px;">
- <rich:dropDownMenu id="ddmId" value="DropDownMenu" submitMode="#{dDMenu.mode}"
- hideDelay="#{dDMenu.hideDelay}" direction="#{dDMenu.direction}"
- horizontalOffset="#{dDMenu.horizontalOffset}"
- jointPoint="#{dDMenu.jointPoint}" popupWidth="#{dDMenu.popupWidth}"
- showDelay="#{dDMenu.showDelay}" rendered="#{dDMenu.rendered}"
- verticalOffset="#{dDMenu.verticalOffset}" styleClass="panelpos" event="#{dDMenu.event}">
- <rich:menuItem icon="#{dDMenu.icon}">
- <h:outputText value="Item1" />
- </rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem icon="#{dDMenu.icon}"
- onmousedown="alert('OnMouseDown')" selectClass="mousemove">
- <h:outputText value="OnMouseDown" />
- </rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem>
- <h:outputText value="Item2" />
- </rich:menuItem>
- <rich:menuItem icon="#{dDMenu.icon}">
- <h:outputText value="Item3" />
- </rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem icon="/pics/ajax_process.gif"
- iconDisabled="/pics/ajax_stoped.gif" disabled="#{dDMenu.disabled}">
- <h:outputText value="Image"></h:outputText>
- </rich:menuItem>
- <rich:menuItem disabled="#{dDMenu.disabled}" icon="#{dDMenu.icon}">
- <h:outputText value="Image:" />
- <h:graphicImage value="/pics/ajax_process.gif" />
- </rich:menuItem>
- <rich:menuSeparator />
- <rich:menuGroup value="Second level"
- direction="#{dDMenu.groupDirection}" disabled="#{dDMenu.disabled}"
- icon="#{dDMenu.icon}" iconFolder="#{dDMenu.iconFolder}">
- <rich:menuItem icon="#{dDMenu.icon}">
- <h:outputText value="Item3" />
- </rich:menuItem>
- <rich:menuItem value="Item4">
- <h:selectOneMenu value="#{dDMenu.selectMenu}">
- <f:selectItem itemLabel="Honda Accord" itemValue="accord" />
- <f:selectItem itemLabel="Toyota 4Runner" itemValue="4runner" />
- <f:selectItem itemLabel="Nissan Z350" itemValue="nissan-z" />
- </h:selectOneMenu>
- </rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem icon="#{dDMenu.icon}">
- <h:outputText value="CheckBox " />
- <h:selectBooleanCheckbox value="#{dDMenu.check}" onclick="submit()" />
- </rich:menuItem>
- </rich:menuGroup>
-
- </rich:dropDownMenu>
- </rich:panel>
- </h:panelGrid>
-
- <a4j:log></a4j:log>
- </h:form>
-</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenu.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenu.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,64 @@
+<f:subview id="DropDownMenuSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:c="http://java.sun.com/jsp/jstl/core">
+ <h:panelGrid columns="2">
+ <rich:spacer width="400px" height="400px"></rich:spacer>
+ <rich:panel>
+ <rich:dropDownMenu id="ddmId" value="dropDownMenu" submitMode="#{dDMenu.mode}" hideDelay="#{dDMenu.hideDelay}"
+ direction="#{dDMenu.direction}" horizontalOffset="#{dDMenu.horizontalOffset}" jointPoint="#{dDMenu.jointPoint}"
+ popupWidth="#{dDMenu.popupWidth}" showDelay="#{dDMenu.showDelay}" rendered="#{dDMenu.rendered}"
+ verticalOffset="#{dDMenu.verticalOffset}" styleClass="panelpos" event="#{dDMenu.event}"
+ oncollapse="print('oncollapseInputID', 'oncollapse work!')" onexpand="print('onexpandInputID', 'onexpand work!')"
+ ongroupactivate="print('ongroupactivateInputID', 'ongroupactivate work!')"
+ onitemselect="print('onitemselectInputID', 'onitemselect work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')">
+ <rich:menuItem icon="#{dDMenu.icon}" onclick="print('onclickInputID', 'onclick work (item)!')"
+ oncomplete="print('oncompleteInputID', 'oncomplete work (item)!')" onmousedown="print('onmousedownInputID', 'onmousedown work (item)!')"
+ onmousemove="print('onmousemoveInputID', ' work (item)!')" onmouseout="print('onmouseoutInputID', 'onmouseout work (item)!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work (item)!')" onmouseup="print('onmouseupInputID', 'onmouseup work (item)!')"
+ onselect="print('onselectInputID', 'onselect work (item)!')">
+ <h:outputText value="Item1(test events)" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="#{dDMenu.icon}" onmousedown="alert('OnMouseDown')" selectClass="mousemove">
+ <h:outputText value="OnMouseDown" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem>
+ <h:outputText value="Item2" />
+ </rich:menuItem>
+ <rich:menuItem icon="#{dDMenu.icon}">
+ <h:outputText value="Item3" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/ajax_process.gif" iconDisabled="/pics/ajax_stoped.gif" disabled="#{dDMenu.disabled}">
+ <h:outputText value="Image"></h:outputText>
+ </rich:menuItem>
+ <rich:menuItem disabled="#{dDMenu.disabled}" icon="#{dDMenu.icon}">
+ <h:outputText value="Image:" />
+ <h:graphicImage value="/pics/ajax_process.gif" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuGroup value="Second level" direction="#{dDMenu.groupDirection}" disabled="#{dDMenu.disabled}" icon="#{dDMenu.icon}"
+ iconFolder="#{dDMenu.iconFolder}">
+ <rich:menuItem icon="#{dDMenu.icon}">
+ <h:outputText value="Item3" />
+ </rich:menuItem>
+ <rich:menuItem value="Item4">
+ <h:selectOneMenu value="#{dDMenu.selectMenu}">
+ <f:selectItem itemLabel="Honda Accord" itemValue="accord" />
+ <f:selectItem itemLabel="Toyota 4Runner" itemValue="4runner" />
+ <f:selectItem itemLabel="Nissan Z350" itemValue="nissan-z" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="#{dDMenu.icon}">
+ <h:outputText value="CheckBox " />
+ <h:selectBooleanCheckbox value="#{dDMenu.check}" onclick="submit()" />
+ </rich:menuItem>
+ </rich:menuGroup>
+ </rich:dropDownMenu>
+ </rich:panel>
+ </h:panelGrid>
+ <a4j:log></a4j:log>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,91 @@
+<f:subview id="dropDownMenuPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="ddMenuPropertyID" switchType="client" opened="true" label="dropDownMenu property">
+ <h:panelGrid columns="2">
+ <h:outputText value="HideDelay (ms):" />
+ <h:inputText value="#{dDMenu.hideDelay}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="ShowDelay (ms):" />
+ <h:inputText value="#{dDMenu.showDelay}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="PopupWidth (px):" />
+ <h:inputText value="#{dDMenu.popupWidth}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="horizontalOffset (px):" />
+ <h:inputText value="#{dDMenu.horizontalOffset}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="verticalOffset (px):" />
+ <h:inputText value="#{dDMenu.verticalOffset}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="Mode:" />
+ <h:selectOneRadio value="#{dDMenu.mode}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Direction:" />
+ <h:selectOneRadio value="#{dDMenu.direction}">
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="GroupDirection:" />
+ <h:selectOneRadio value="#{dDMenu.groupDirection}">
+ <f:selectItem itemLabel="top-up" itemValue="top-up" />
+ <f:selectItem itemLabel="top-down" itemValue="top-down" />
+ <f:selectItem itemLabel="bottom-up" itemValue="bottom-up" />
+ <f:selectItem itemLabel="bottom-down" itemValue="bottom-down" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="JointPoint:" />
+ <h:selectOneRadio value="#{dDMenu.jointPoint}">
+ <f:selectItem itemLabel="top-right" itemValue="tr" />
+ <f:selectItem itemLabel="top-left" itemValue="tl" />
+ <f:selectItem itemLabel="bottom-right" itemValue="br" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bl" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Menu appearance event:" />
+ <h:selectOneRadio value="#{dDMenu.event}" onclick="submit()">
+ <f:selectItem itemLabel="onclick" itemValue="onclick" />
+ <f:selectItem itemLabel="onmouseover" itemValue="onmouseover" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dDMenu.rendered}" onclick="submit()">
+
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disable some items:" />
+ <h:selectBooleanCheckbox value="#{dDMenu.disabled}">
+ <a4j:support reRender="ddmId" event="onclick" />
+ </h:selectBooleanCheckbox>
+ <h:commandButton action="#{dDMenu.changeIcons}" value="ChangeIcons" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="dropDownMenuStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="ddMenuStraightforwardID" switchType="client" opened="true" label="dropDownMenu straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{dDMenu.bTest1}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1DDMenu}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{dDMenu.bTest2}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2DDMenu}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{dDMenu.bTest3}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3DDMenu}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{dDMenu.bTest4}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4DDMenu}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{dDMenu.bTest5}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5DDMenu}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -3,7 +3,6 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.ajax4jsf.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
- <h:form>
<rich:panel id="indexID">
<a4j:commandLink value="Hide all" onclick="hideFrm1(),hideFrm2(),hideFrm3(),hideFrm4(),hideFrm5()"></a4j:commandLink>
@@ -295,5 +294,4 @@
<rich:effect for="frm5" name="showFrm5" type="Appear" />
-</h:form>
</f:subview>
Modified: trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -5,8 +5,12 @@
xmlns:c="http://java.sun.com/jstl/core"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
- <h:form>
- <rich:gmap id="gm" lat="37.97" zoom="#{gmap.zoom}" gmapVar="map"
+ <rich:gmap id="gm" lat="37.97" zoom="#{gmap.zoom}" gmapVar="map" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
+ onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"
gmapKey="ABQIAAAAxU6W9QEhFLMNdc3ATIu-VxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxRkrpOGzxH8_ud3inE9pG1845-FCA"
style="width:500px;height:400px"
enableContinuousZoom="#{gmap.continuousZoom}"
@@ -45,29 +49,6 @@
</f:verbatim>
</h:panelGroup>
- <rich:panel>
- <h:panelGrid columns="2">
- <h:outputText value="Dragging:" />
- <h:selectBooleanCheckbox value="#{gmap.dragging}" />
-
- <h:outputText value="Continuous Zoom:" />
- <h:selectBooleanCheckbox value="#{gmap.continuousZoom}" />
-
- <h:outputText value="Double Click Zoom:" />
- <h:selectBooleanCheckbox value="#{gmap.doubleClickZoom}" />
-
- <h:commandLink value="submit" action="submit();"></h:commandLink>
- </h:panelGrid>
- </rich:panel>
-
- <a4j:outputPanel id="zoomer">
- <script>
- function zoomIt() {
- map.setZoom(#{gmap.zoom});
- }
- </script>
- </a4j:outputPanel>
-
<a4j:outputPanel>
<script>
@@ -103,5 +84,4 @@
</script>
</a4j:outputPanel>
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,17 @@
+<f:subview id="GmapPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:panelGrid columns="2">
+ <h:outputText value="Dragging:" />
+ <h:selectBooleanCheckbox value="#{gmap.dragging}" onclick="submit()" />
+
+ <h:outputText value="Continuous Zoom:" />
+ <h:selectBooleanCheckbox value="#{gmap.continuousZoom}" onclick="submit()" />
+
+ <h:outputText value="Double Click Zoom:" />
+ <h:selectBooleanCheckbox value="#{gmap.doubleClickZoom}" onclick="submit()" />
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Insert/Insert.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Insert/Insert.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Insert/Insert.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -4,45 +4,10 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich">
- <h:form>
<h:messages />
<rich:panel id="panelID" header="Highlight: #{insert.highlight}; File: #{insert.src}">
<rich:insert id="insertID" highlight="#{insert.highlight}"
rendered="#{insert.rendered}" src="#{insert.src}"></rich:insert>
</rich:panel>
-
- <h:panelGrid columns="2">
- <h:outputText value="Highlight:" />
- <h:selectOneMenu value="#{insert.highlight}">
- <f:selectItem itemValue="HTML" itemLabel="HTML" />
- <f:selectItem itemValue="GROOVY" itemLabel="GROOVY" />
- <f:selectItem itemValue="JAVA" itemLabel="JAVA" />
- <f:selectItem itemValue="BEANSHELL" itemLabel="BEANSHELL" />
- <f:selectItem itemValue="BSH" itemLabel="BSH" />
- <f:selectItem itemValue="XML" itemLabel="XML" />
- <f:selectItem itemValue="XHTML" itemLabel="XHTML" />
- <f:selectItem itemValue="LZX" itemLabel="LZX" />
- <f:selectItem itemValue="CPP" itemLabel="CPP" />
- <f:selectItem itemValue="CXX" itemLabel="CXX" />
- <a4j:support event="onclick" reRender="panelID,insertID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Select file:" />
- <h:selectOneMenu value="#{insert.src}">
- <f:selectItem itemValue="/Insert/src/test.html" itemLabel="HTML" />
- <f:selectItem itemValue="/Insert/src/test.java" itemLabel="JAVA" />
- <f:selectItem itemValue="/Insert/src/test.groovy" itemLabel="GROOVY" />
- <f:selectItem itemValue="/Insert/src/test.bsh" itemLabel="BEANSHELL,BSH" />
- <f:selectItem itemValue="/Insert/src/test.xml" itemLabel="XML" />
- <f:selectItem itemValue="/Insert/Insert.xhtml" itemLabel="XHTML" />
- <f:selectItem itemValue="/Insert/src/test.lzx" itemLabel="LZX" />
- <f:selectItem itemValue="/Insert/src/test.cpp" itemLabel="CPP,CXX" />
- <a4j:support event="onclick" action="submit();" reRender="panelID,insertID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Rendered" />
- <h:selectBooleanCheckbox value="#{insert.rendered}" onchange="submit();"/>
- </h:panelGrid>
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/Insert/InsertProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Insert/InsertProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Insert/InsertProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,39 @@
+<f:subview id="InsertPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:panelGrid columns="2">
+ <h:outputText value="Highlight:" />
+ <h:selectOneMenu value="#{insert.highlight}">
+ <f:selectItem itemValue="HTML" itemLabel="HTML" />
+ <f:selectItem itemValue="GROOVY" itemLabel="GROOVY" />
+ <f:selectItem itemValue="JAVA" itemLabel="JAVA" />
+ <f:selectItem itemValue="BEANSHELL" itemLabel="BEANSHELL" />
+ <f:selectItem itemValue="BSH" itemLabel="BSH" />
+ <f:selectItem itemValue="XML" itemLabel="XML" />
+ <f:selectItem itemValue="XHTML" itemLabel="XHTML" />
+ <f:selectItem itemValue="LZX" itemLabel="LZX" />
+ <f:selectItem itemValue="CPP" itemLabel="CPP" />
+ <f:selectItem itemValue="CXX" itemLabel="CXX" />
+ <a4j:support event="onclick" reRender="panelID,insertID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Select file:" />
+ <h:selectOneMenu value="#{insert.src}">
+ <f:selectItem itemValue="/Insert/src/test.html" itemLabel="HTML" />
+ <f:selectItem itemValue="/Insert/src/test.java" itemLabel="JAVA" />
+ <f:selectItem itemValue="/Insert/src/test.groovy" itemLabel="GROOVY" />
+ <f:selectItem itemValue="/Insert/src/test.bsh" itemLabel="BEANSHELL,BSH" />
+ <f:selectItem itemValue="/Insert/src/test.xml" itemLabel="XML" />
+ <f:selectItem itemValue="/Insert/Insert.xhtml" itemLabel="XHTML" />
+ <f:selectItem itemValue="/Insert/src/test.lzx" itemLabel="LZX" />
+ <f:selectItem itemValue="/Insert/src/test.cpp" itemLabel="CPP,CXX" />
+ <a4j:support event="onclick" reRender="panelID,insertID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Rendered" />
+ <h:selectBooleanCheckbox value="#{insert.rendered}" onchange="submit();"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,80 @@
+<f:subview id="listShuttleSubviewID" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich">
+ <rich:listShuttle id="listShuttleID" var="item" sourceValue="#{listShuttle.sourceValue}" targetValue="#{listShuttle.targetValue}"
+ bottomControlLabel="#{listShuttle.bottomControlLabel}" copyAllControlLabel="#{listShuttle.copyAllControlLabel}"
+ copyControlLabel="#{listShuttle.copyControlLabel}" downControlLabel="#{listShuttle.downControlLabel}"
+ fastMoveControlsVisible="#{listShuttle.fastMoveControlsVisible}" converter="listShuttleConverter"
+ fastOrderControlsVisible="#{listShuttle.fastOrderControlsVisible}" first="#{listShuttle.first}"
+ moveControlsVisible="#{listShuttle.moveControlsVisible}" orderControlsVisible="#{listShuttle.orderControlsVisible}"
+ removeAllControlLabel="#{listShuttle.removeAllControlLabel}" removeControlLabel="#{listShuttle.removeControlLabel}"
+ sourceSelection="#{listShuttle.sourceSelection}" targetSelection="#{listShuttle.targetSelection}"
+ showButtonLabels="#{listShuttle.showButtonLabels}" switchByClick="#{listShuttle.switchByClick}"
+ targetListWidth="#{listShuttle.targetListWidth}" sourceListWidth="#{listShuttle.sourceListWidth}"
+ listsHeight="#{listShuttle.listsHeight}" sourceCaptionLabel="#{listShuttle.sourceCaptionLabel}"
+ targetCaptionLabel="#{listShuttle.targetCaptionLabel}"
+ topControlLabel="#{listShuttle.topControlLabel}" upControlLabel="#{listShuttle.upControlLabel}">
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{item.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:commandButton onclick="submit();" action="#{listShuttle.cbAction}" value="#{item.str0} submit();"/>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <a4j:commandLink action="#{listShuttle.clAction}" value="#{item.str1} submit()" reRender="listShuttleID"></a4j:commandLink>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:selectOneMenu value="#{item.str2}">
+ <f:selectItem itemLabel="select0" itemValue="select0" />
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <f:selectItem itemLabel="select3" itemValue="select3" />
+ <f:selectItem itemLabel="select4" itemValue="select4" />
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:selectOneMenu>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{item.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:graphicImage value="#{item.str3}" />
+ </h:column>
+ </rich:listShuttle>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,106 @@
+<f:subview id="listShuttlePropertySubviewID" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:panelGrid columns="2">
+ <h:column></h:column>
+ <h:panelGroup>
+ <a4j:commandButton value="reRender" reRender="listShuttleID"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton action="submit();" value="submit();" />
+ <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+ </h:panelGroup>
+
+ <h:outputText value="Enter quantity of lines" />
+ <h:panelGroup>
+ <h:inputText value="#{listShuttle.lenght}" />
+ <a4j:commandButton action="#{listShuttle.addNewItem}" reRender="listShuttleID" value="ok" />
+ </h:panelGroup>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{listShuttle.first}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="showButtonLabels" />
+ <h:selectBooleanCheckbox value="#{listShuttle.showButtonLabels}" onchange="submit();" />
+
+ <h:outputText value="orderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.orderControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="moveControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.moveControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="fastOrderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.fastOrderControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="fastMoveControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.fastMoveControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="switchByClick" />
+ <h:selectBooleanCheckbox value="#{listShuttle.switchByClick}" onchange="submit();" />
+
+ <h:outputText value="sourceCaptionLabel" />
+ <h:inputText value="#{listShuttle.sourceCaptionLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="targetCaptionLabel" />
+ <h:inputText value="#{listShuttle.targetCaptionLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="sourceListWidth" />
+ <h:inputText value="#{listShuttle.sourceListWidth}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="targetListWidth" />
+ <h:inputText value="#{listShuttle.targetListWidth}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="listsHeight" />
+ <h:inputText value="#{listShuttle.listsHeight}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="copyControlLabel" />
+ <h:inputText value="#{listShuttle.copyControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="removeControlLabel" />
+ <h:inputText value="#{listShuttle.removeControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="copyAllControlLabel" />
+ <h:inputText value="#{listShuttle.copyAllControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="removeAllControlLabel" />
+ <h:inputText value="#{listShuttle.removeAllControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="bottomControlLabel" />
+ <h:inputText value="#{listShuttle.bottomControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="downControlLabel" />
+ <h:inputText value="#{listShuttle.downControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="topControlLabel" />
+ <h:inputText value="#{listShuttle.topControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="upControlLabel" />
+ <h:inputText value="#{listShuttle.upControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,144 @@
+<f:subview id="listShuttleStraightforwardSubviewID" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:panelGrid columns="3">
+ <a4j:commandButton value="Show selection (reRender)" reRender="infoLSID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showSelect}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="infoLSID" value="#{listShuttle.info}" var="info" rendered="#{listShuttle.showSelect}" border="1">
+ <h:column>
+ <h:outputText value="#{info}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all source (reRender)" reRender="allInfoLSSourceID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showAllSourceData}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoLSSourceID" value="#{listShuttle.sourceValue}" var="allInfo" rendered="#{listShuttle.showAllSourceData}" border="1">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} submit()" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all target (reRender)" reRender="allInfoLSTargetID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showAllTargetData}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoLSTargetID" value="#{listShuttle.targetValue}" var="allInfo" rendered="#{listShuttle.showAllTargetData}" border="1">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} submit()" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,109 +1,15 @@
-<f:subview id="messageSubviewID"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich">
- <h:form>
+<f:subview id="messageSubviewID" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich">
<rich:panel>
- <h:panelGrid columns="2">
- <h:outputText value="1." />
- <h:selectOneMenu id="select1" value="">
- <f:selectItem itemValue="error" itemLabel="error" />
- <f:selectItem itemValue="fatal" itemLabel="fatal" />
- <f:selectItem itemValue="warn" itemLabel="warning" />
- <f:selectItem itemValue="info" itemLabel="info" />
- <f:selectItem itemValue="passed" itemLabel="passed" />
- <f:validator validatorId="MessageValidator" />
- </h:selectOneMenu>
-
- <h:outputText value="2." />
- <h:selectOneMenu id="select2" value="">
- <f:selectItem itemValue="error" itemLabel="error" />
- <f:selectItem itemValue="fatal" itemLabel="fatal" />
- <f:selectItem itemValue="warn" itemLabel="warning" />
- <f:selectItem itemValue="info" itemLabel="info" />
- <f:selectItem itemValue="passed" itemLabel="passed" />
- <f:validator validatorId="MessageValidator" />
- </h:selectOneMenu>
-
- <h:outputText value="3." />
- <h:selectOneMenu id="select3" value="">
- <f:selectItem itemValue="error" itemLabel="error" />
- <f:selectItem itemValue="fatal" itemLabel="fatal" />
- <f:selectItem itemValue="warn" itemLabel="warning" />
- <f:selectItem itemValue="info" itemLabel="info" />
- <f:selectItem itemValue="passed" itemLabel="passed" />
- <f:validator validatorId="MessageValidator" />
- </h:selectOneMenu>
-
- <h:outputText value="4." />
- <h:selectOneMenu id="select4" value="">
- <f:selectItem itemValue="error" itemLabel="error" />
- <f:selectItem itemValue="fatal" itemLabel="fatal" />
- <f:selectItem itemValue="warn" itemLabel="warning" />
- <f:selectItem itemValue="info" itemLabel="info" />
- <f:selectItem itemValue="passed" itemLabel="passed" />
- <f:validator validatorId="MessageValidator" />
- </h:selectOneMenu>
-
- <h:outputText value="5." />
- <h:selectOneMenu id="select5" value="">
- <f:selectItem itemValue="error" itemLabel="error" />
- <f:selectItem itemValue="fatal" itemLabel="fatal" />
- <f:selectItem itemValue="warn" itemLabel="warning" />
- <f:selectItem itemValue="info" itemLabel="info" />
- <f:selectItem itemValue="passed" itemLabel="passed" />
- <f:validator validatorId="MessageValidator" />
- </h:selectOneMenu>
-
- <h:outputText value="Rich Message Demo:" />
- <h:selectOneMenu value="#{message.msg}">
- <f:selectItem itemValue="no" itemLabel="no" />
- <f:selectItem itemValue="select1" itemLabel="1" />
- <f:selectItem itemValue="select2" itemLabel="2" />
- <f:selectItem itemValue="select3" itemLabel="3" />
- <f:selectItem itemValue="select4" itemLabel="4" />
- <f:selectItem itemValue="select5" itemLabel="5" />
- </h:selectOneMenu>
-
- <h:outputText value="Title:" />
- <h:inputText value="#{message.title}" />
-
- <h:outputText value="Show Detail:" />
- <h:selectBooleanCheckbox value="#{message.showDetail}" />
-
- <h:outputText value="ShowSummary" />
- <h:selectBooleanCheckbox value="#{message.showSummary}" />
-
- <h:outputText value="Tooltip" />
- <h:selectBooleanCheckbox value="#{message.tooltip}" />
-
- <h:outputText value="Layout:" />
- <h:selectOneMenu value="#{message.layout}">
- <f:selectItem itemValue="table" itemLabel="table" />
- <f:selectItem itemValue="list" itemLabel="list" />
- </h:selectOneMenu>
-
- <h:commandButton value="submit" />
- <a4j:commandButton value="submit ajax" />
- </h:panelGrid>
- </rich:panel>
-
- <rich:spacer></rich:spacer>
-
- <rich:panel>
<h:outputText value="Rich Message Demo:" />
<f:verbatim>
<br />
</f:verbatim>
- <rich:message for="#{message.msg}" tooltip="#{message.tooltip}"
- showDetail="#{message.showDetail}"
- showSummary="#{message.showSummary}" passedLabel="No Error"
- errorLabelClass="errorLabel" fatalLabelClass="warnLabel"
- infoLabelClass="infoLabel" warnLabelClass="fatalLabel"
- title="#{message.title}">
+ <rich:message for="#{message.msg}" tooltip="#{message.tooltip}" showDetail="#{message.showDetail}"
+ showSummary="#{message.showSummary}" passedLabel="No Error" errorLabelClass="errorLabel" fatalLabelClass="warnLabel"
+ infoLabelClass="infoLabel" warnLabelClass="fatalLabel" title="#{message.title}">
<f:facet name="errorMarker">
@@ -130,16 +36,11 @@
<rich:separator></rich:separator>
<h:outputText value="Rich Messages Demo" />
- <rich:messages layout="#{message.layout}"
- tooltip="#{message.tooltip}" showDetail="#{message.showDetail}"
- showSummary="#{message.showSummary}" passedLabel="No Error"
- errorLabelClass="errorLabel" fatalLabelClass="warnLabel"
- infoLabelClass="infoLabel" warnLabelClass="fatalLabel"
- warnMarkerClass="markerWarn" infoMarkerClass="markerInfo"
- errorMarkerClass="markerError" fatalMarkerClass="markerFatal"
- errorClass="errorClass" fatalClass="fatalClass"
- warnClass="warnClass" infoClass="infoClass" labelClass="labelClass"
- var="messages" styleClass="class" title="#{message.title}">
+ <rich:messages layout="#{message.layout}" tooltip="#{message.tooltip}" showDetail="#{message.showDetail}"
+ showSummary="#{message.showSummary}" passedLabel="No Error" errorLabelClass="errorLabel" fatalLabelClass="warnLabel"
+ infoLabelClass="infoLabel" warnLabelClass="fatalLabel" warnMarkerClass="markerWarn" infoMarkerClass="markerInfo"
+ errorMarkerClass="markerError" fatalMarkerClass="markerFatal" errorClass="errorClass" fatalClass="fatalClass"
+ warnClass="warnClass" infoClass="infoClass" labelClass="labelClass" styleClass="class" title="#{message.title}">
<f:facet name="errorMarker">
<h:graphicImage url="/pics/error.gif" />
</f:facet>
@@ -159,8 +60,4 @@
</h:outputText>
</rich:messages>
</rich:panel>
- <f:verbatim>
- <br />
- </f:verbatim>
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,91 @@
+<f:subview id="MessagePropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="msgPropertyID" switchType="client" opened="true" label="modalPanel property">
+ <h:panelGrid columns="2">
+ <h:outputText value="1." />
+ <h:selectOneMenu id="select1" value="#{message.select1}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="2." />
+ <h:selectOneMenu id="select2" value="#{message.select2}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="3." />
+ <h:selectOneMenu id="select3" value="#{message.select3}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="4." />
+ <h:selectOneMenu id="select4" value="#{message.select4}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="5." />
+ <h:selectOneMenu id="select5" value="#{message.select5}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="Rich Message Demo:" />
+ <h:selectOneMenu value="#{message.msg}">
+ <f:selectItem itemValue="no" itemLabel="no" />
+ <f:selectItem itemValue="select1" itemLabel="1" />
+ <f:selectItem itemValue="select2" itemLabel="2" />
+ <f:selectItem itemValue="select3" itemLabel="3" />
+ <f:selectItem itemValue="select4" itemLabel="4" />
+ <f:selectItem itemValue="select5" itemLabel="5" />
+ </h:selectOneMenu>
+
+ <h:outputText value="Title:" />
+ <h:inputText value="#{message.title}" />
+
+ <h:outputText value="Show Detail:" />
+ <h:selectBooleanCheckbox value="#{message.showDetail}" />
+
+ <h:outputText value="ShowSummary" />
+ <h:selectBooleanCheckbox value="#{message.showSummary}" />
+
+ <h:outputText value="Tooltip" />
+ <h:selectBooleanCheckbox value="#{message.tooltip}" />
+
+ <h:outputText value="Layout:" />
+ <h:selectOneMenu value="#{message.layout}">
+ <f:selectItem itemValue="table" itemLabel="table" />
+ <f:selectItem itemValue="list" itemLabel="list" />
+ </h:selectOneMenu>
+
+ <h:commandButton value="submit" />
+ <a4j:commandButton value="submit ajax" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/Message/MessageStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Message/MessageStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Message/MessageStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="MessageStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="modalPanel straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{message.bTest1}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Message}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{message.bTest2}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Message}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{message.bTest3}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Message}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{message.bTest4}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Message}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{message.bTest5}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Message}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,68 +1,47 @@
-<f:subview id="modalPanelSubviewID"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich">
-
- <h:form id="MPform">
- <rich:modalPanel id="MPid" minHeight="#{modalPanel.minHeight}"
- minWidth="#{modalPanel.minWidth}" height="#{modalPanel.height}"
- width="#{modalPanel.width}" moveable="#{modalPanel.moveable}"
- resizeable="#{modalPanel.resizeable}" keepVisualState="" visualOptions="" >
-
- <f:facet name="header">
- <h:outputText value="Heder goes here..." />
- </f:facet>
- <h:outputText value="This is Modal Panel example" styleClass="text1" />
- <f:verbatim>
+<f:subview id="modalPanelSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:messages />
+ <rich:modalPanel id="modalPanelID" minHeight="#{modalPanel.minHeight}" minWidth="#{modalPanel.minWidth}"
+ height="#{modalPanel.height}" width="#{modalPanel.width}" moveable="#{modalPanel.moveable}"
+ resizeable="#{modalPanel.resizeable}" keepVisualState="#{modalPanel.keepVisualState}"
+ rendered="#{modalPanel.rendered}" zindex="#{modalPanel.zindex}" autosized="#{modalPanel.autosized}" left="#{modalPanel.left}"
+ top="#{modalPanel.top}" shadowDepth="#{modalPanel.shadowDepth}" shadowOpacity="#{modalPanel.shadowOpacity}"
+ showWhenRendered="#{modalPanel.showWhenRendered}" onhide="print('onhideInputID', 'onhide work!')"
+ onshow="print('onshowInputID', 'onshow work!')">
+ <f:facet name="header">
+ <h:outputText value="Heder goes here..." />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif" onclick="Richfaces.hideModalPanel('modalPanelID');return false;" />
+ </f:facet>
+ <h:outputText value="This is Modal Panel example" styleClass="text1" />
+ <h:inputText value="#{modalPanel.inputTextTest}" />
+ <h:selectOneListbox value="#{modalPanel.selectOneListboxTest}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="2" itemValue="2" />
+ <f:selectItem itemLabel="3" itemValue="3" />
+ </h:selectOneListbox>
+ <f:verbatim>
<br />
<br />
- </f:verbatim>
- <h:outputLink
- onclick="Richfaces.hideModalPanel('MPform:MPid');return false;"
- value="Close">
- <f:verbatim>Close</f:verbatim>
- </h:outputLink>
+ </f:verbatim>
+ <h:outputLink onclick="Richfaces.hideModalPanel('modalPanelID');return false;" value="Close">
+ <f:verbatim>Close</f:verbatim>
+ </h:outputLink>
+ </rich:modalPanel>
- </rich:modalPanel>
-
- <a onclick="Richfaces.showModalPanel('MPform:MPid');" href="#">Show
- MP</a>
-
- <rich:spacer height="20px"></rich:spacer>
-
- <h:panelGrid columns="2">
-
- <h:outputText value="Width:" />
- <h:inputText value="#{modalPanel.width}">
- <a4j:support event="onchange" reRender="MPform:MPid"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height:" />
- <h:inputText value="#{modalPanel.height}">
- <a4j:support event="onchange" reRender="MPform:MPid"></a4j:support>
- </h:inputText>
-
- <h:outputText value="minWidth:" />
- <h:inputText value="#{modalPanel.minWidth}">
- <a4j:support event="onchange" reRender="MPform:MPid"></a4j:support>
- </h:inputText>
-
- <h:outputText value="minHeight:" />
- <h:inputText value="#{modalPanel.minHeight}">
- <a4j:support event="onchange" reRender="MPform:MPid"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Resizeable:" />
- <h:selectBooleanCheckbox value="#{modalPanel.resizeable}">
- <a4j:support event="onclick" reRender="MPform:MPid"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Moveable:" />
- <h:selectBooleanCheckbox value="#{modalPanel.moveable}">
- <a4j:support event="onclick" reRender="MPform:MPid"></a4j:support>
- </h:selectBooleanCheckbox>
-
- </h:panelGrid>
- </h:form>
+ <a onclick="Richfaces.showModalPanel('modalPanelID');" href="#">Show MP</a>
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <h:graphicImage value="/pics/info.gif" onclick="Richfaces.showModalPanel('modalPanelID');" />
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+ <div style="position: relative; font-size: 50px; z-index: 2; color: navy">z-index</div>
+
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,87 @@
+<f:subview id="ModalPanelPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="mpPropertyID" switchType="client" opened="true" label="modalPanel property">
+ <h:panelGrid columns="2">
+ <h:outputText value="shadowDepth" />
+ <h:inputText value="#{modalPanel.shadowDepth}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="shadowOpacity" />
+ <h:inputText value="#{modalPanel.shadowOpacity}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="keepVisualState" />
+ <h:selectBooleanCheckbox value="#{modalPanel.keepVisualState}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="left" />
+ <h:inputText value="#{modalPanel.left}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="top" />
+ <h:inputText value="#{modalPanel.top}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{modalPanel.rendered}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="showWhenRendered" />
+ <h:selectBooleanCheckbox value="#{modalPanel.showWhenRendered}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="zindex" />
+ <h:selectOneRadio value="#{modalPanel.zindex}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="3" itemValue="3" />
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Width:" />
+ <h:inputText value="#{modalPanel.width}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height:" />
+ <h:inputText value="#{modalPanel.height}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="minWidth:" />
+ <h:inputText value="#{modalPanel.minWidth}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="minHeight:" />
+ <h:inputText value="#{modalPanel.minHeight}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="autosized" />
+ <h:selectBooleanCheckbox value="#{modalPanel.autosized}" >
+
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Resizeable:" />
+ <h:selectBooleanCheckbox value="#{modalPanel.resizeable}" onchange="submit();">
+
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Moveable:" />
+ <h:selectBooleanCheckbox value="#{modalPanel.moveable}">
+ <a4j:support event="onclick" reRender="modalPanelID"></a4j:support>
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="ModalPanelStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="modalPanel straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{modalPanel.bTest1}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1ModalPanel}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{modalPanel.bTest2}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2ModalPanel}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{modalPanel.bTest3}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3ModalPanel}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{modalPanel.bTest4}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4ModalPanel}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{modalPanel.bTest5}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5ModalPanel}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingList.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingList.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingList.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,89 @@
+<f:subview id="orderingListSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+ </a4j:outputPanel>
+
+ <rich:orderingList id="orderingListID" value="#{orderingList.list}" var="item" listHeight="#{orderingList.listHeight}"
+ listWidth="#{orderingList.listWidth}" controlsType="#{orderingList.controlsType}" converter="orderingListConverter"
+ bottomControlLabel="#{orderingList.bottomControlLabel}" captionLabel="#{orderingList.captionLabel}"
+ topControlLabel="#{orderingList.topControlLabel}" upControlLabel="#{orderingList.upControlLabel}"
+ controlsHorizontalAlign="#{orderingList.controlsHorizontalAlign}" controlsVerticalAlign="#{orderingList.controlsVerticalAlign}"
+ downControlLabel="#{orderingList.downControlLabel}"
+ orderControlsVisible="#{orderingList.orderControlsVisible}" fastOrderControlsVisible="#{orderingList.fastOrderControlsVisible}"
+ rendered="#{orderingList.rendered}" showButtonLabels="#{orderingList.showButtonLabels}" selection="#{orderingList.selection}"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onorderchanged="print('onorderchangedInputID', 'onorderchanged work!')" ontopclick="print('ontopclickInputID', 'ontopclick work!')" onupclick="print('onupclickInputID', 'onupclick work!')" ondownclick="print('ondownclickInputID', 'ondownclick work!')" onbottomclick="print('onbottomclickInputID', 'onbottomclick work!')" onheaderclick="print('onheaderclickInputID', 'onheaderclick work!')">
+ <f:facet name="header">
+ <h:outputText value="header" />
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="footer" />
+ </f:facet>
+
+ <h:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{item.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str0}" />
+ </h:column>
+
+ <h:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:commandButton onclick="submit();" action="#{orderingList.cbAction}" value="#{item.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <a4j:commandLink action="#{orderingList.clAction}" value="#{item.str1} submit()" reRender="orderingListID"></a4j:commandLink>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:selectOneMenu value="#{item.str2}">
+ <f:selectItem itemLabel="select0" itemValue="select0" />
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <f:selectItem itemLabel="select3" itemValue="select3" />
+ <f:selectItem itemLabel="select4" itemValue="select4" />
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectOneMenu>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{item.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:graphicImage value="#{item.str3}" />
+ </h:column>
+ </rich:orderingList>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,86 @@
+<f:subview id="orderingListPropertySubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich">
+ <h:panelGrid columns="2">
+ <h:outputText value="Enter quantity of lines" />
+ <h:panelGroup>
+ <h:inputText value="#{orderingList.lenght}" />
+ <a4j:commandButton action="#{orderingList.addNewItem}" reRender="orderingListID" value="ok" />
+ </h:panelGroup>
+
+ <h:outputText value="controlsType" />
+ <h:selectOneRadio value="#{orderingList.controlsType}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="button" itemValue="button" />
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="captionLabel" />
+ <h:inputText value="#{orderingList.captionLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="listHeight:" />
+ <h:inputText value="#{orderingList.listHeight}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="listWidth" />
+ <h:inputText value="#{orderingList.listWidth}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="controlsVerticalAlign" />
+ <h:selectOneRadio value="#{orderingList.controlsVerticalAlign}">
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="controlsHorizontalAlign" />
+ <h:selectOneRadio value="#{orderingList.controlsHorizontalAlign}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="upControlLabel" />
+ <h:inputText value="#{orderingList.upControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="bottomControlLabel" />
+ <h:inputText value="#{orderingList.bottomControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="topControlLabel" />
+ <h:inputText value="#{orderingList.topControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="downControlLabel" />
+ <h:inputText value="#{orderingList.downControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="showButtonLabels" />
+ <h:selectBooleanCheckbox value="#{orderingList.showButtonLabels}">
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="fastOrderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{orderingList.fastOrderControlsVisible}">
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="orderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{orderingList.orderControlsVisible}">
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{orderingList.rendered}" onclick="submit();">
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,109 @@
+<f:subview id="orderingListStraightforwardSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{orderingList.bTest1}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1OrderingList}" />
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{orderingList.bTest2}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2OrderingList}" />
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{orderingList.bTest3}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3OrderingList}" />
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{orderingList.bTest4}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4OrderingList}" />
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{orderingList.bTest5}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5OrderingList}" />
+
+ <a4j:commandButton value="Show selection (reRender)" reRender="infoPanelID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{orderingList.showSelect}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="infoPanelID" value="#{orderingList.info}" var="info" rendered="#{orderingList.showSelect}" border="1">
+ <h:column>
+ <h:outputText value="#{info}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all data (reRender)" reRender="allInfoPanelID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{orderingList.showAllData}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoPanelID" value="#{orderingList.list}" var="allInfo" rendered="#{orderingList.showAllData}" border="1">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} submit()" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <h:panelGroup>
+ <a4j:commandButton value="reRender" reRender="orderingListID"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton action="submit();" value="submit();" />
+ <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+ </h:panelGroup>
+ </h:panelGrid>
+
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2D.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2D.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2D.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,93 +1,7 @@
-<f:subview id="paint2DSubviewID"
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich">
- <h:form>
- <rich:paint2D id="paint2d" paint="#{paint2D.paint}"
- data="#{paintData}" width="#{paint2D.width}"
- height="#{paint2D.height}" align="#{paint2D.align}"
- hspace="#{paint2D.hspace}" vspace="#{paint2D.vspace}"
- bgcolor="#{paint2D.bgcolor}" format="#{paint2D.format}"
- title="#{paint2D.title}" styleClass="#{paint2D.styleString}"
- border="#{paint2D.border}" rendered="#{paint2D.rendered}" />
-
- <h:panelGrid columns="2" cellpadding="5px" border="2">
- <h:outputText value="Text"></h:outputText>
- <h:inputText value="#{paintData.text}">
- <a4j:support event="onchange" reRender="paint2d" />
- </h:inputText>
-
- <h:outputText value="Width: "></h:outputText>
- <h:inputText value="#{paint2D.width}">
- <a4j:support event="onchange" reRender="paint2d"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height: "></h:outputText>
- <h:inputText value="#{paint2D.height}">
- <a4j:support event="onchange" reRender="paint2d"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Vertical space: "></h:outputText>
- <h:inputText value="#{paint2D.vspace}">
- <a4j:support event="onchange" reRender="paint2d"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Horizontal space: "></h:outputText>
- <h:inputText value="#{paint2D.hspace}">
- <a4j:support event="onchange" reRender="paint2d"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Align:"></h:outputText>
- <h:selectOneMenu value="#{paint2D.align}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="middle" itemValue="middle" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <f:selectItem itemLabel="bottom" itemValue="bottom" />
- <f:selectItem itemLabel="top" itemValue="top" />
- <a4j:support event="onclick" reRender="paint2d"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Format:"></h:outputText>
- <h:selectOneMenu value="#{paint2D.format}">
- <f:selectItem itemLabel="jpeg" itemValue="jpeg" />
- <f:selectItem itemLabel="gif" itemValue="gif" />
- <f:selectItem itemLabel="png" itemValue="png" />
- <a4j:support event="onclick" reRender="paint2d"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Background Colour"></h:outputText>
- <h:selectOneMenu value="#{paint2D.bgcolor}">
- <f:selectItem itemLabel="aqua" itemValue="aqua" />
- <f:selectItem itemLabel="blue" itemValue="blue" />
- <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
- <f:selectItem itemLabel="gray" itemValue="gray" />
- <f:selectItem itemLabel="lime" itemValue="lime" />
- <f:selectItem itemLabel="maroon" itemValue="maroon" />
- <f:selectItem itemLabel="purple" itemValue="purple" />
- <f:selectItem itemLabel="red" itemValue="red" />
- <f:selectItem itemLabel="silver" itemValue="silver" />
- <f:selectItem itemLabel="teal" itemValue="teal" />
- <f:selectItem itemLabel="yellow" itemValue="yellow" />
- <f:selectItem itemLabel="white" itemValue="white" />
- <a4j:support event="onclick" reRender="paint2d"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Style" />
- <h:selectBooleanCheckbox value="#{paint2D.style}" >
- <a4j:support event="onclick" reRender="paint2d,borderID" />
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Border: "></h:outputText>
- <h:inputText id="borderID" disabled="#{paint2D.style}" value="#{paint2D.border}">
- <a4j:support event="onchange" reRender="paint2d"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{paint2D.rendered}">
- <a4j:support event="onclick" reRender="paint2d"></a4j:support>
- </h:selectBooleanCheckbox>
- </h:panelGrid>
- </h:form>
+<f:subview id="paint2DSubviewID" xmlns="http://www.w3.org/1999/xhtml" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich">
+ <rich:paint2D id="paint2dID" paint="#{paint2D.paint}" data="#{paintData}" width="#{paint2D.width}" height="#{paint2D.height}"
+ align="#{paint2D.align}" hspace="#{paint2D.hspace}" vspace="#{paint2D.vspace}" bgcolor="#{paint2D.bgcolor}"
+ format="#{paint2D.format}" title="#{paint2D.title}" styleClass="#{paint2D.styleString}" border="#{paint2D.border}"
+ rendered="#{paint2D.rendered}" />
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,85 @@
+<f:subview id="Paint2DPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="paint2DPropertyID" switchType="client" opened="true" label="paint2D property">
+ <h:panelGrid columns="2" cellpadding="5px" border="2">
+ <h:outputText value="Text"></h:outputText>
+ <h:inputText value="#{paintData.text}">
+ <a4j:support event="onchange" reRender="paint2dID" />
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{paint2D.width}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{paint2D.height}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Vertical space: "></h:outputText>
+ <h:inputText value="#{paint2D.vspace}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Horizontal space: "></h:outputText>
+ <h:inputText value="#{paint2D.hspace}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Align:"></h:outputText>
+ <h:selectOneMenu value="#{paint2D.align}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="middle" itemValue="middle" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <a4j:support event="onclick" reRender="paint2dID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Format:"></h:outputText>
+ <h:selectOneMenu value="#{paint2D.format}">
+ <f:selectItem itemLabel="jpeg" itemValue="jpeg" />
+ <f:selectItem itemLabel="gif" itemValue="gif" />
+ <f:selectItem itemLabel="png" itemValue="png" />
+ <a4j:support event="onclick" reRender="paint2dID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Background Colour"></h:outputText>
+ <h:selectOneMenu value="#{paint2D.bgcolor}">
+ <f:selectItem itemLabel="aqua" itemValue="aqua" />
+ <f:selectItem itemLabel="blue" itemValue="blue" />
+ <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
+ <f:selectItem itemLabel="gray" itemValue="gray" />
+ <f:selectItem itemLabel="lime" itemValue="lime" />
+ <f:selectItem itemLabel="maroon" itemValue="maroon" />
+ <f:selectItem itemLabel="purple" itemValue="purple" />
+ <f:selectItem itemLabel="red" itemValue="red" />
+ <f:selectItem itemLabel="silver" itemValue="silver" />
+ <f:selectItem itemLabel="teal" itemValue="teal" />
+ <f:selectItem itemLabel="yellow" itemValue="yellow" />
+ <f:selectItem itemLabel="white" itemValue="white" />
+ <a4j:support event="onclick" reRender="paint2dID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Style" />
+ <h:selectBooleanCheckbox value="#{paint2D.style}">
+ <a4j:support event="onclick" reRender="paint2dID,borderID" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Border: "></h:outputText>
+ <h:inputText id="borderID" disabled="#{paint2D.style}" value="#{paint2D.border}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{paint2D.rendered}">
+ <a4j:support event="onclick" reRender="paint2dID"></a4j:support>
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="Paint2DStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="paint2D straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{paint2D.bTest1}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Paint2D}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{paint2D.bTest2}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Paint2D}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{paint2D.bTest3}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Paint2D}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{paint2D.bTest4}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Paint2D}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{paint2D.bTest5}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Paint2D}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Panel/Panel.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Panel/Panel.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Panel/Panel.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,16 +1,10 @@
-<f:subview id="panelSubviewID"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:c="http://java.sun.com/jstl/core">
- <h:form>
+<f:subview id="panelSubviewID" xmlns:rich="http://richfaces.org/rich" xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:c="http://java.sun.com/jstl/core">
- <h:outputText
- value="Panel 1, rendered: #{!panel.rendered}; Panel 2, rendered #{panel.rendered};"></h:outputText>
+ <h:outputText value="Panel 1, rendered: #{!panel.rendered}; Panel 2, rendered #{panel.rendered};"></h:outputText>
- <rich:panel rendered="#{!panel.rendered}" id="p1"
- style="width:#{panel.width};height:#{panel.height};overflow:auto;">
+ <rich:panel rendered="#{!panel.rendered}" id="p1" style="width:#{panel.width};height:#{panel.height};overflow:auto;"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')" onclick="print('onclickInputID', 'onclick work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')">
<f:facet name="header">
<h:outputText id="t1" value="#{panel.title[0]} (Panel 1)" />
</f:facet>
@@ -40,32 +34,11 @@
</rich:panel>
</rich:panel>
- <rich:panel onmousedown="alert('OnMouseDown');" id="panelId"
- onclick="submit()" rendered="#{panel.rendered}"
- style="width:#{panel.width};height:#{panel.height}">
- <f:verbatim>This is panel 2 example...</f:verbatim>
+ <rich:panel id="panelId" rendered="#{panel.rendered}"
+ style="width:#{panel.width};height:#{panel.height}"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')" onclick="print('onclickInputID', 'onclick work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+ <f:verbatim>This is panel 2 example...(Test events)</f:verbatim>
</rich:panel>
-
- <h:panelGrid columns="2" cellpadding="10px">
- <h:outputText value="Title"></h:outputText>
- <h:inputText valueChangeListener="#{panel.makeTitle}">
- <a4j:support event="onchange" reRender="t1,t2,t3,o1,o2"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Width: "></h:outputText>
- <h:inputText value="#{panel.width}">
- <a4j:support event="onchange" reRender="panelId,p1"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height: "></h:outputText>
- <h:inputText value="#{panel.height}">
- <a4j:support event="onchange" reRender="panelId,p1"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{panel.rendered}" onclick="submit()"></h:selectBooleanCheckbox>
- </h:panelGrid>
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/Panel/PanelProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Panel/PanelProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Panel/PanelProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,28 @@
+<f:subview id="PanelPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="panelPropertyID" switchType="client" opened="true" label="panel property">
+ <h:panelGrid columns="2" cellpadding="10px">
+ <h:outputText value="Title"></h:outputText>
+ <h:inputText valueChangeListener="#{panel.makeTitle}">
+ <a4j:support event="onchange" reRender="t1,t2,t3,o1,o2"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{panel.width}">
+ <a4j:support event="onchange" reRender="panelId,p1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{panel.height}">
+ <a4j:support event="onchange" reRender="panelId,p1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panel.rendered}" onclick="submit()"></h:selectBooleanCheckbox>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/Panel/PanelStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Panel/PanelStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Panel/PanelStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="PanelStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="panel straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{panel.bTest1}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Panel}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{panel.bTest2}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Panel}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{panel.bTest3}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Panel}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{panel.bTest4}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Panel}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{panel.bTest5}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Panel}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Panel/panel2.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Panel/panel2.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Panel/panel2.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -4,8 +4,7 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
- <h:form>
- <h:panelGrid columnClasses="panel" border="0" columns="3">
+ <h:panelGrid columnClasses="panel" border="0" columns="3">
<rich:panel styleClass="top">
<f:facet name="header">
<h:panelGroup>
@@ -20,7 +19,7 @@
<f:facet name="header">
<h:outputText value="Header of the Panel" />
</f:facet>
- <f:view>This panel contains custom headerClass and bodyClass</f:view>
+ <f:verbatim>This panel contains custom headerClass and bodyClass</f:verbatim>
</rich:panel>
<rich:panel styleClass="top2" headerClass="hea2" bodyClass="bo2">
<f:facet name="header">
@@ -93,5 +92,4 @@
<h:outputText value="inside the form" />
</h:form>
</rich:panel>
- </h:form>
</f:subview>
Modified: trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBar.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBar.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBar.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,72 +1,33 @@
-<f:subview id="panelBarSubviewID"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:rich="http://richfaces.org/rich">
- <h:form>
+<f:subview id="panelBarSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core" xmlns:rich="http://richfaces.org/rich">
<h:messages></h:messages>
- <rich:panelBar id="pBId" height="#{panelBar.height}"
- width="#{panelBar.width}" contentClass="#{panelBar.contentStyle}"
- styleClass="#{panelBar.style}" selectedPanel="pBiId4">
- <rich:panelBarItem rendered="#{panelBar.rendered}" id="pBiId1"
- label="#{panelBar.label[0]}" headerClass="#{panelBar.headerStyle}">
+ <rich:panelBar id="pBId" height="#{panelBar.height}" width="#{panelBar.width}" contentClass="#{panelBar.contentStyle}"
+ styleClass="#{panelBar.style}" selectedPanel="pBiId4" onclick="print('onclickInputID', 'onclick work!')">
+ <rich:panelBarItem rendered="#{panelBar.rendered}" id="pBiId1" label="#{panelBar.label[0]}"
+ headerClass="#{panelBar.headerStyle}">
<h:outputText value="Some text..."></h:outputText>
</rich:panelBarItem>
- <rich:panelBarItem id="pBiId2" label="#{panelBar.label[1]}"
- headerClass="#{panelBar.headerStyle}">
- <h:graphicImage value="/pics/masshtaby_01.jpg" width="300"
- height="200"></h:graphicImage>
+ <rich:panelBarItem id="pBiId2" label="#{panelBar.label[1]}" headerClass="#{panelBar.headerStyle}">
+ <h:graphicImage value="/pics/masshtaby_01.jpg" width="300" height="200"></h:graphicImage>
</rich:panelBarItem>
- <rich:panelBarItem id="pBiId3" label="#{panelBar.label[2]}"
- headerClass="#{panelBar.headerStyle}">
+ <rich:panelBarItem id="pBiId3" label="#{panelBar.label[2]}" headerClass="#{panelBar.headerStyle}">
<f:facet name="openMarker">
<h:graphicImage value="/pics/ajax_process.gif"></h:graphicImage>
</f:facet>
<f:facet name="closeMarker">
<h:graphicImage value="/pics/ajax_stoped.gif"></h:graphicImage>
</f:facet>
- <h:graphicImage value="/pics/podb109_61.jpg" width="300"
- height="200"></h:graphicImage>
+ <h:graphicImage value="/pics/podb109_61.jpg" width="300" height="200"></h:graphicImage>
</rich:panelBarItem>
- <rich:panelBarItem id="pBiId4" label="#{panelBar.label[3]}"
- headerClass="#{panelBar.headerStyle}">
+ <rich:panelBarItem id="pBiId4" label="#{panelBar.label[3]}" headerClass="#{panelBar.headerStyle}">
<h:outputText value="Select Panel"></h:outputText>
</rich:panelBarItem>
-
</rich:panelBar>
<rich:spacer height="20px"></rich:spacer>
-
- <h:panelGrid columns="2" cellspacing="10px">
- <h:outputText value="Label: "></h:outputText>
- <h:inputText valueChangeListener="#{panelBar.makeLabels}">
- <a4j:support event="onchange" reRender="pBId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Width: "></h:outputText>
- <h:inputText value="#{panelBar.width}">
- <a4j:support event="onchange" reRender="pBId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height: "></h:outputText>
- <h:inputText value="#{panelBar.height}">
- <a4j:support event="onchange" reRender="pBId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{panelBar.rendered}">
- <a4j:support event="onchange" reRender="pBId" />
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Switch Styles:" />
- <h:commandButton action="#{panelBar.doStyles}"
- value="#{panelBar.btnLabel}" />
-
- </h:panelGrid>
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,33 @@
+<f:subview id="panelBarPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="pbPropertyID" switchType="client" opened="true" label="panelBar property">
+ <h:panelGrid columns="2" cellspacing="10px">
+ <h:outputText value="Label: "></h:outputText>
+ <h:inputText valueChangeListener="#{panelBar.makeLabels}">
+ <a4j:support event="onchange" reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{panelBar.width}">
+ <a4j:support event="onchange" reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{panelBar.height}">
+ <a4j:support event="onchange" reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelBar.rendered}">
+ <a4j:support event="onchange" reRender="pBId" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{panelBar.doStyles}" value="#{panelBar.btnLabel}" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="panelBarStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="panelBar straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{panelBar.bTest1}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t1PanelBar}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{panelBar.bTest2}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t2PanelBar}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{panelBar.bTest3}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t3PanelBar}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{panelBar.bTest4}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t4PanelBar}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{panelBar.bTest5}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t5PanelBar}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenu.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenu.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,32 +1,24 @@
-<f:subview id="panelMenuSubviewID"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:rich="http://richfaces.org/rich">
- <h:form>
- <rich:panelMenu id="panelMenuID" disabled="#{panelMenu.disabled}"
- width="#{panelMenu.width}" selectedChild="thisChild"
- expandSingle="#{panelMenu.expandSingle}" mode="#{panelMenu.mode}"
- value="PanelMenu" rendered="#{panelMenu.rendered}"
- iconCollapsedGroup="#{panelMenu.icon.collapsedGroup}"
- iconCollapsedTopGroup="#{panelMenu.icon.collapsedTopGroup}"
- iconDisabledGroup="#{panelMenu.icon.disabledGroup}"
- iconDisabledItem="#{panelMenu.icon.disabledItem}"
- iconExpandedGroup="#{panelMenu.icon.expandedGroup}"
- iconExpandedTopGroup="#{panelMenu.icon.expandedTopGroup}"
- iconItem="#{panelMenu.icon.item}"
- iconTopDisabledItem="#{panelMenu.icon.disabledItem}"
- iconTopDisableGroup="#{panelMenu.icon.disabledGroup}"
- iconTopItem="#{panelMenu.icon.topItem}"
- iconGroupPosition="#{panelMenu.iconGroupPosition}"
- iconGroupTopPosition="#{panelMenu.iconGroupTopPosition}"
- iconItemPosition="#{panelMenu.iconItemPosition}"
- iconItemTopPosition="#{panelMenu.iconItemTopPosition}"
- styleClass="sPanel">
+<f:subview id="panelMenuSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core" xmlns:rich="http://richfaces.org/rich">
+ <rich:panelMenu id="panelMenuID" disabled="#{panelMenu.disabled}" width="#{panelMenu.width}" selectedChild="thisChild"
+ expandSingle="#{panelMenu.expandSingle}" mode="#{panelMenu.mode}" value="PanelMenu" rendered="#{panelMenu.rendered}"
+ iconCollapsedGroup="#{panelMenu.icon.collapsedGroup}" iconCollapsedTopGroup="#{panelMenu.icon.collapsedTopGroup}"
+ iconDisabledGroup="#{panelMenu.icon.disabledGroup}" iconDisabledItem="#{panelMenu.icon.disabledItem}"
+ iconExpandedGroup="#{panelMenu.icon.expandedGroup}" iconExpandedTopGroup="#{panelMenu.icon.expandedTopGroup}"
+ iconItem="#{panelMenu.icon.item}" iconTopDisabledItem="#{panelMenu.icon.disabledItem}"
+ iconTopDisableGroup="#{panelMenu.icon.disabledGroup}" iconTopItem="#{panelMenu.icon.topItem}"
+ iconGroupPosition="#{panelMenu.iconGroupPosition}" iconGroupTopPosition="#{panelMenu.iconGroupTopPosition}"
+ iconItemPosition="#{panelMenu.iconItemPosition}" iconItemTopPosition="#{panelMenu.iconItemTopPosition}" styleClass="sPanel"
+ onclick="" ondblclick="" ongroupcollapse="" ongroupexpand="" onitemhover="" onkeydown="" onkeypress="" onkeyup=""
+ onmousedown="" onmousemove="" onmouseout="" onmouseover="" onmouseup="">
- <rich:panelMenuItem label="Item 1"></rich:panelMenuItem>
- <rich:panelMenuItem disabled="true"
- iconDisabled="/pics/ajax_stoped.gif">
+ <rich:panelMenuItem label="Item 1(Test event)" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')"></rich:panelMenuItem>
+ <rich:panelMenuItem disabled="true" iconDisabled="/pics/ajax_stoped.gif">
<h:outputText value="Disabled Item" />
</rich:panelMenuItem>
<rich:panelMenuItem label="Item Image">
@@ -42,28 +34,22 @@
<h:outputText value="CheckBox 2"></h:outputText>
<h:selectBooleanCheckbox value="false"></h:selectBooleanCheckbox>
</rich:panelMenuItem>
- <rich:panelMenuItem label="Action"
- onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Action" onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
- <rich:panelMenuGroup label="Group 1 (align)"
- align="#{panelMenu.align}">
+ <rich:panelMenuGroup label="Group 1">
<rich:panelMenuItem label="Item 1" disabled="true"></rich:panelMenuItem>
- <rich:panelMenuItem label="Item 1 (action)"
- onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 1 (action)" onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
<rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
- <rich:panelMenuGroup label="Group 1_1 (align)"
- align="#{panelMenu.align}">
+ <rich:panelMenuGroup label="Group 1_1 (align)" align="#{panelMenu.align}">
<rich:panelMenuItem label="Imem 1_1">
<h:inputText value="#{panelMenu.inputText}"></h:inputText>
</rich:panelMenuItem>
<rich:panelMenuItem label="Item 1_2"></rich:panelMenuItem>
- <rich:panelMenuGroup label="Group 1_1_1 (align)"
- align="#{panelMenu.align}">
- <rich:panelMenuItem label="Item 1 (action)"
- onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
+ <rich:panelMenuGroup label="Group 1_1_1">
+ <rich:panelMenuItem label="Item 1 (action)" onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
<rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
</rich:panelMenuGroup>
@@ -75,8 +61,7 @@
</rich:panelMenuGroup>
</rich:panelMenuGroup>
- <rich:panelMenuGroup label="Group 1_2 (disabled, action)"
- disabled="true" onmousedown="alert('Disabled');">
+ <rich:panelMenuGroup label="Group 1_2 (disabled, action)" disabled="true" onmousedown="alert('Disabled');">
<rich:panelMenuItem label="Item 1_2_1"></rich:panelMenuItem>
</rich:panelMenuGroup>
@@ -104,10 +89,12 @@
<rich:panelMenuGroup label="Group 3">
<rich:panelMenuItem label="Item 3_1">
- <br />
- text <br />
- text <br />
- text
+ <f:verbatim>
+ <br />
+ text <br />
+ text <br />
+ text
+ </f:verbatim>
</rich:panelMenuItem>
<rich:panelMenuItem label="Item 3_2">
<h:graphicImage value="/pics/benq.jpg" width="150px" height="100px"></h:graphicImage>
@@ -128,39 +115,29 @@
<br />
</f:verbatim>
- <rich:panelMenu id="panelMenuID2" expandMode="#{panelMenu.mode}"
- disabled="#{!panelMenu.disabled}" width="#{panelMenu.width}"
+ <rich:panelMenu id="panelMenuID2" expandMode="#{panelMenu.mode}" disabled="#{!panelMenu.disabled}" width="#{panelMenu.width}"
selectedChild="thisChild" styleClass="body">
- <rich:panelMenuGroup label="Group 1 (tabIdex, my Image)"
- tabindex="#{panelMenu.tabIndex}" align="#{panelMenu.align}">
- <rich:panelMenuGroup label="Group 1_1 (tabIndex)"
- tabindex="#{panelMenu.tabIndex}">
- <rich:panelMenuGroup label="Group 1_1_1 (tabIndex)"
- tabindex="#{panelMenu.tabIndex}">
+ <rich:panelMenuGroup label="Group 1 (tabIdex, my Image)" tabindex="#{panelMenu.tabIndex}" align="#{panelMenu.align}">
+ <rich:panelMenuGroup label="Group 1_1 (tabIndex)" tabindex="#{panelMenu.tabIndex}">
+ <rich:panelMenuGroup label="Group 1_1_1 (tabIndex)" tabindex="#{panelMenu.tabIndex}">
<rich:panelMenuItem label="Item 1"></rich:panelMenuItem>
<rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
</rich:panelMenuGroup>
</rich:panelMenuGroup>
- <rich:panelMenuGroup label="Group 1_2 (tabIndex)"
- tabindex="#{panelMenu.tabIndex}">
- <rich:panelMenuGroup label="Group 1_2_1 (tabIndex)"
- tabindex="#{panelMenu.tabIndex}">
+ <rich:panelMenuGroup label="Group 1_2 (tabIndex)" tabindex="#{panelMenu.tabIndex}">
+ <rich:panelMenuGroup label="Group 1_2_1 (tabIndex)" tabindex="#{panelMenu.tabIndex}">
<rich:panelMenuItem label="Item (icon)" icon="#{icon.iconItem}"></rich:panelMenuItem>
- <rich:panelMenuItem label="Item (iconDisabled)"
- iconDisabled="#{icon.iconHeader}"></rich:panelMenuItem>
- <rich:panelMenuItem label="Item (icon)" disabled="true"
- icon="#{icon.iconItem}"></rich:panelMenuItem>
- <rich:panelMenuItem label="Item (iconDisabled)" disabled="true"
- iconDisabled="#{icon.iconItem}"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item (iconDisabled)" iconDisabled="#{icon.iconHeader}"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item (icon)" disabled="true" icon="#{icon.iconItem}"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item (iconDisabled)" disabled="true" iconDisabled="#{icon.iconItem}"></rich:panelMenuItem>
</rich:panelMenuGroup>
<rich:panelMenuItem label="Item (icon)" icon="#{icon.iconItem}"></rich:panelMenuItem>
<rich:panelMenuItem label="Item (icon)" icon="#{icon.iconItem}"></rich:panelMenuItem>
<rich:panelMenuItem label="Item "></rich:panelMenuItem>
</rich:panelMenuGroup>
- <rich:panelMenuGroup label="Group 1_3" align="#{panelMenu.align}"
- iconCollapsed="#{icon.iconCollapse}"
+ <rich:panelMenuGroup label="Group 1_3" align="#{panelMenu.align}" iconCollapsed="#{icon.iconCollapse}"
iconExpanded="#{icon.iconExpand}" iconDisabled="#{icon.disabled}">
<rich:panelMenuItem label="Item 1"></rich:panelMenuItem>
<rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
@@ -170,10 +147,8 @@
<!-- triangleUp triangle triangleDown disc chevron chevronUp chevronDown grid -->
<rich:panelMenuItem label="Item (disc)" icon="disc"></rich:panelMenuItem>
<rich:panelMenuItem label="Item (grid)" icon="grid"></rich:panelMenuItem>
- <rich:panelMenuGroup label="Group" iconCollapsed="triangleDown"
- iconExpanded="triangleUp" iconDisabled="triangle">
- <rich:panelMenuGroup label="Group" iconCollapsed="chevronDown"
- iconExpanded="chevronUp" iconDisabled="chevron">
+ <rich:panelMenuGroup label="Group" iconCollapsed="triangleDown" iconExpanded="triangleUp" iconDisabled="triangle">
+ <rich:panelMenuGroup label="Group" iconCollapsed="chevronDown" iconExpanded="chevronUp" iconDisabled="chevron">
<rich:panelMenuItem label="Item (disc)" icon="disc"></rich:panelMenuItem>
<rich:panelMenuItem label="Item (grid)" iconDisabled="grid"></rich:panelMenuItem>
<rich:panelMenuItem label="Item (grid)" icon="grid"></rich:panelMenuItem>
@@ -184,355 +159,11 @@
<rich:panelMenuItem label="Item "></rich:panelMenuItem>
</rich:panelMenuGroup>
- <rich:panelMenuGroup label="Group 1_3" iconCollapsed="chevronDown"
- iconExpanded="chevronUp" iconDisabled="chevron">
+ <rich:panelMenuGroup label="Group 1_3" iconCollapsed="chevronDown" iconExpanded="chevronUp" iconDisabled="chevron">
<rich:panelMenuItem label="Item 1"></rich:panelMenuItem>
<rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
<rich:panelMenuItem label="Item 3"></rich:panelMenuItem>
</rich:panelMenuGroup>
</rich:panelMenuGroup>
</rich:panelMenu>
- <f:verbatim>
- <br />
- <br />
- </f:verbatim>
-
- <h:panelGrid columns="2">
-
- <h:outputText value="Width"></h:outputText>
- <h:inputText value="#{panelMenu.width}">
- <a4j:support event="onchange"
- reRender="panelMenuID,panelMenuID2,info"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Tab Index"></h:outputText>
- <h:inputText value="#{panelMenu.tabIndex}">
- <a4j:support event="onchange"
- reRender="panelMenuID,panelMenuID2,info"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Expand Single"></h:outputText>
- <h:selectBooleanCheckbox value="#{panelMenu.expandSingle}">
- <a4j:support event="onchange" reRender="panelMenuID"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Mode"></h:outputText>
- <h:selectOneRadio value="#{panelMenu.mode}" id="Mode1ID"
- onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <f:selectItem itemLabel="server" itemValue="server" />
- </h:selectOneRadio>
-
- <h:outputText value="Expand mode"></h:outputText>
- <h:selectOneRadio value="#{panelMenu.expandMode}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <f:selectItem itemLabel="server" itemValue="server" />
- </h:selectOneRadio>
-
- <h:outputText value="Align:"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.align}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="middle" itemValue="middle" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <f:selectItem itemLabel="bottom" itemValue="bottom" />
- <f:selectItem itemLabel="top" itemValue="top" />
- <a4j:support event="onclick"
- reRender="panelMenuID,panelMenuID2,info"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Disabled"></h:outputText>
- <h:selectBooleanCheckbox value="#{panelMenu.disabled}">
- <a4j:support event="onchange"
- reRender="panelMenuID,panelMenuID2,info"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{panelMenu.rendered}"
- onchange="submit();"></h:selectBooleanCheckbox>
- </h:panelGrid>
-
- <h:panelGrid columns="4">
- <h:outputText value="Icon"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.icon}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- </h:selectOneMenu>
-
- <h:outputText value="icon Item"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.item}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item " itemValue="#{icon.iconItem}" />
- </h:selectOneMenu>
-
- <h:outputText value="icon Disabled"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.disabled}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Disabled Item"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.disabledItem}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Top Item"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.topItem}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Top Disabled Item"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.topDisabledItem}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Expanded Group"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.expandedGroup}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon CollapsedGroup"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.collapsedGroup}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Disabled Group"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.disabledGroup}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Expanded Top Group"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.expandedTopGroup}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Collapsed Top Group"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.collapsedTopGroup}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Top Disable Group"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.topDisableGroup}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Expanded"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.expanded}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Collapsed"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.collapsed}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process"
- itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped"
- itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager"
- itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject"
- itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
- </h:panelGrid>
- <br />
- <h:panelGrid columns="4">
- <h:outputText value="icon Group Position"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.iconGroupPosition}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Group Top Position"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.iconGroupTopPosition}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Item Position"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.iconItemPosition}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Item Top Position"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.iconItemTopPosition}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
- </h:panelGrid>
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,273 @@
+<f:subview id="panelMenuPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="pmPropertyID" switchType="client" opened="true" label="panelMenu property">
+ <h:panelGrid columns="2">
+ <h:outputText value="Width"></h:outputText>
+ <h:inputText value="#{panelMenu.width}">
+ <a4j:support event="onchange" reRender="panelMenuID,panelMenuID2,info"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Tab Index"></h:outputText>
+ <h:inputText value="#{panelMenu.tabIndex}">
+ <a4j:support event="onchange" reRender="panelMenuID,panelMenuID2,info"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Expand Single"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelMenu.expandSingle}">
+ <a4j:support event="onchange" reRender="panelMenuID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Mode"></h:outputText>
+ <h:selectOneRadio value="#{panelMenu.mode}" id="Mode1ID" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Expand mode"></h:outputText>
+ <h:selectOneRadio value="#{panelMenu.expandMode}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Disabled"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelMenu.disabled}">
+ <a4j:support event="onchange" reRender="panelMenuID,panelMenuID2,info"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelMenu.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
+ </h:panelGrid>
+
+ <h:panelGrid columns="4">
+ <h:outputText value="Icon"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.icon}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Item"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.item}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item " itemValue="#{icon.iconItem}" />
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Disabled"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.disabled}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Disabled Item"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.disabledItem}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Top Item"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.topItem}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Top Disabled Item"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.topDisabledItem}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Expanded Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.expandedGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon CollapsedGroup"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.collapsedGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Disabled Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.disabledGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Expanded Top Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.expandedTopGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Collapsed Top Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.collapsedTopGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Top Disable Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.topDisableGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Expanded"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.expanded}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Collapsed"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.collapsed}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+ </h:panelGrid>
+ <br />
+ <h:panelGrid columns="4">
+ <h:outputText value="icon Group Position"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.iconGroupPosition}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Group Top Position"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.iconGroupTopPosition}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Item Position"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.iconItemPosition}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Item Top Position"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.iconItemTopPosition}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="panelMenuStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="panelMenu straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{panelMenu.bTest1}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t1PanelMenu}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{panelMenu.bTest2}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t2PanelMenu}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{panelMenu.bTest3}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t3PanelMenu}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{panelMenu.bTest4}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t4PanelMenu}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{panelMenu.bTest5}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t5PanelMenu}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Deleted: trunk/test-applications/facelets/src/main/webapp/Rich/RichTest.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Rich/RichTest.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Rich/RichTest.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,126 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:ui="http://java.sun.com/jsf/facelets">
-<f:view>
- <head>
- <title></title>
- </head>
- <body>
- <h:form id="richTestID">
- <ui:include src="/rich/menu.xhtml" />
- <h:panelGrid columns="2">
- <rich:panel>
- <f:facet name="header">
- <h:outputText value="panel" />
- </f:facet>
- <rich:tabPanel switchType="ajax" height="200px" width="300px">
- <rich:tab label="Tab 1">
- <f:facet name="header">
- <h:outputText value="tab1" />
- </f:facet>
- <h:outputText value="Text" />
- <f:verbatim>
- <br />
- </f:verbatim>
- <h:outputText value="Text" />
- <f:verbatim>
- <br />
- </f:verbatim>
- <h:outputText value="Text" />
- <f:verbatim>
- <br />
- </f:verbatim>
- <h:outputText value="Text" />
- </rich:tab>
-
- <rich:tab label="Tab 2">
- <h:outputText value="Image" />
- <h:graphicImage value="/pics/masshtaby_01.jpg" height="150px"
- width="200px" />
- </rich:tab>
-
- <rich:tab label="Tab 3">
- <f:facet name="header">
- <h:outputText value="tab1" />
- </f:facet>
- <f:verbatim>
- <a
- href="javascript:Richfaces.showModalPanel('mp',{width:450, top:200})">Show
- this panel</a>
- </f:verbatim>
- <rich:modalPanel id="mp" minHeight="200" minWidth="450"
- height="200" width="500" zindex="2000">
- <f:facet name="header">
- <h:outputText value="Modal Panel Title" />
- </f:facet>
- <f:facet name="controls">
- <h:graphicImage value="/pics/error.gif" style="cursor:pointer"
- onclick="Richfaces.hideModalPanel('mp')" />
- </f:facet>
- <f:verbatim>
- RichFaces Modal Panel is a container that blocks an operation on the base page when the modal panel is shown.
- <a href="javascript:Richfaces.hideModalPanel('mp')">Hide
- this panel</a>
- </f:verbatim>
- </rich:modalPanel>
- </rich:tab>
-
- <rich:tab label="Tab 4">
- <f:facet name="header">
- <h:outputText value="tab1" />
- </f:facet>
- <h:inputTextarea value="text" cols="30" rows="8"></h:inputTextarea>
- </rich:tab>
-
- <rich:tab label="Tab 5">
- <f:facet name="header">
- <h:outputText value="tab1" />
- </f:facet>
- <rich:panel>
- <f:facet name="header">
- <h:outputText value="Panel" />
- </f:facet>
- <rich:tabPanel switchType="ajax">
- <rich:tab label="tab 1">
- <h:outputText value="text1" />
- </rich:tab>
-
- <rich:tab label="tab 2">
- <h:outputText value="text2" />
- </rich:tab>
- </rich:tabPanel>
- </rich:panel>
- </rich:tab>
-
- <rich:tab label="Tab 6">
- <rich:dataGrid columns="3" elements="12"
- value="#{dataTable.mounths}" var="dt">
- <rich:panel>
- <f:facet name="header">
- <h:outputText value="mmm"></h:outputText>
- </f:facet>
- <h:panelGrid columns="2">
- <h:outputText value="Mounth:" styleClass="label"></h:outputText>
- <h:outputText value="#{dt.mounth}" />
- <h:outputText value="Town:" styleClass="label"></h:outputText>
- <h:outputText value="#{dt.town}" />
- <h:outputText value="Day:" styleClass="label"></h:outputText>
- <h:outputText value="#{dt.day}" />
- <h:outputText value="Number:" styleClass="label"></h:outputText>
- <h:outputText value="#{dt.total}" />
- </h:panelGrid>
- </rich:panel>
- </rich:dataGrid>
- </rich:tab>
- </rich:tabPanel>
- </rich:panel>
- </h:panelGrid>
- <rich:separator></rich:separator>
- </h:form>
- </body>
-</f:view>
-</html>
Deleted: trunk/test-applications/facelets/src/main/webapp/Rich/menu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Rich/menu.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Rich/menu.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,150 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:rich="http://richfaces.org/rich">
-
- <f:subview id="menuTestID">
- <rich:toolBar itemSeparator="disc">
- <rich:dropDownMenu value="File" event="onmouseover" submitMode="ajax">
- <rich:menuItem value="Item 1" ></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 2"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 3"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 4"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 5"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 6"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 7"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuGroup value="menu 1">
- <rich:menuItem value="Item 1" ></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 2"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 3"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 4"></rich:menuItem>
- <rich:menuGroup value="menu 1_1">
- <rich:menuItem value="Item 1" ></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 2"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 3"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 4"></rich:menuItem>
- </rich:menuGroup>
- </rich:menuGroup>
- <rich:menuGroup value="menu 2">
- <rich:menuItem value="Item 1" ></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 2"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 3"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 4"></rich:menuItem>
- </rich:menuGroup>
- </rich:dropDownMenu>
-
- <rich:dropDownMenu value="Edit" event="onmouseover">
- <rich:menuItem value="Item 1" ></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 2"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 3"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 4"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 5"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuSeparator />
- <rich:menuItem value="Item 6"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 7"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 8"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 9"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 10"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 11"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 12"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 13"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 14"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 15"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuGroup value="menu 1">
- <rich:menuItem value="Item 1" ></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 2"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 3"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 4"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuGroup value="menu 1_1">
- <rich:menuItem value="Item 1" ></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 2"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 3"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 4"></rich:menuItem>
- </rich:menuGroup>
- </rich:menuGroup>
- <rich:menuGroup value="menu 2">
- <rich:menuItem value="Item 1" ></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 2"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 3"></rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem value="Item 4"></rich:menuItem>
- </rich:menuGroup>
- </rich:dropDownMenu>
-
- <rich:toolBarGroup>
- <rich:dropDownMenu value="Navigate" event="onmouseover">
- <rich:menuGroup value="menu 1">
- <rich:menuItem value="Item 1" ></rich:menuItem>
- <rich:menuItem value="Item 2"></rich:menuItem>
- <rich:menuItem value="Item 3"></rich:menuItem>
- <rich:menuItem value="Item 4"></rich:menuItem>
- <rich:menuGroup value="menu 1_1">
- <rich:menuItem value="Item 1" ></rich:menuItem>
- <rich:menuItem value="Item 2"></rich:menuItem>
- <rich:menuItem value="Item 3"></rich:menuItem>
- <rich:menuItem value="Item 4"></rich:menuItem>
- </rich:menuGroup>
- </rich:menuGroup>
- <rich:menuGroup value="menu 2">
- <rich:menuItem value="Item 1" ></rich:menuItem>
- <rich:menuItem value="Item 2"></rich:menuItem>
- <rich:menuItem value="Item 3"></rich:menuItem>
- <rich:menuItem value="Item 4"></rich:menuItem>
- </rich:menuGroup>
- <rich:menuItem value="Item 1" ></rich:menuItem>
- <rich:menuItem value="Item 2"></rich:menuItem>
- <rich:menuItem value="Item 3"></rich:menuItem>
- <rich:menuItem value="Item 4"></rich:menuItem>
- <rich:menuItem value="Item 5"></rich:menuItem>
- <rich:menuItem value="Item 6"></rich:menuItem>
- <rich:menuItem value="Item 7"></rich:menuItem>
- <rich:menuItem value="Item 8"></rich:menuItem>
- <rich:menuItem value="Item 9"></rich:menuItem>
- <rich:menuItem value="Item 10"></rich:menuItem>
- </rich:dropDownMenu>
- <h:graphicImage value="/pics/ajax_process.gif"></h:graphicImage>
- </rich:toolBarGroup>
- </rich:toolBar>
- </f:subview>
-</html>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/ModalPanel.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/ModalPanel.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/ModalPanel.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,36 @@
+<f:subview id="modalPanelSubviewID"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:c="http://java.sun.com/jstl/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <h:form id="MPform">
+ <rich:modalPanel id="MP_Calendar" height="500" width="500"
+ moveable="true" resizeable="true" keepVisualState="" visualOptions="">
+
+ <f:facet name="header">
+ <h:outputText value="Calendar" />
+ <h:outputLink
+ action="Richfaces.hideModalPanel('MPform:MP_Calendar');return false;"
+ value="Close">
+ <f:verbatim>Close</f:verbatim>
+ </h:outputLink>
+ </f:facet>
+ <ui:include src="/Calendar/Calendar.xhtml" />
+ <h:outputLink
+ onclick="Richfaces.hideModalPanel('MPform:MP_Calendar');return false;"
+ value="Close">
+ <f:verbatim>Close</f:verbatim>
+ </h:outputLink>
+
+ </rich:modalPanel>
+
+
+ <a onclick="Richfaces.showModalPanel('MPform:MP_Calendar');return false;" href="#">Show
+ Calendar</a>
+ <rich:spacer height="20px"></rich:spacer>
+
+ </h:form>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/RichPanels/Panel/Panel.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/RichPanels/Panel/Panel.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/RichPanels/Panel/Panel.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,289 @@
+<f:subview id="PanelsModalPanelSubviewID" xmlns:rich="http://richfaces.org/rich"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:c="http://java.sun.com/jstl/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+<h:messages showDetail="true"></h:messages>
+
+ <rich:panel rendered="true" id="Calendar"
+ style="width:900px;height:850px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:calendar"></h:outputText>
+ </f:facet>
+ <ui:include src="/Calendar/Calendar.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="DataFilterSlider"
+ style="width:500px;height:500px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:dataFilterSlider"></h:outputText>
+ </f:facet>
+ <ui:include src="/DataFilterSlider/DataFilterSlider.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="DataScroller"
+ style="width:500px;height:500px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:datascroller"></h:outputText>
+ </f:facet>
+ <ui:include src="/DataScroller/DataScroller.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="DataTable"
+ style="width:600px;height:1900px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:dataTable"></h:outputText>
+ </f:facet>
+ <ui:include src="/DataTable/DataTable.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="DragAndDrop"
+ style="width:700px;height:800px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:dragSupport, rich:dropSupport, rich:dragIndicator, rich:dndParam "></h:outputText>
+ </f:facet>
+ <ui:include src="/DragAndDrop/DragAndDrop.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="DropDownMenu"
+ style="500px;height:500px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:dropDownMenu"></h:outputText>
+ </f:facet>
+ <ui:include src="/DropDownMenu/DropDownMenu.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="Effect"
+ style="width:700px;height:500px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:effect"></h:outputText>
+ </f:facet>
+ <ui:include src="/Effect/Effect.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="GMap"
+ style="width:600px;height:800px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:gmap"></h:outputText>
+ </f:facet>
+ <ui:include src="/Gmap/Gmap.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="InputNumberSlider"
+ style="width:400px;height:900px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:inputNumberSlider"></h:outputText>
+ </f:facet>
+ <ui:include src="/InputNumberSlider/InputNumberSlider.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="InputNumberSpinner"
+ style="width:400px;height:700px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:inputNumberSpinner"></h:outputText>
+ </f:facet>
+ <ui:include src="/InputNumberSpinner/InputNumberSpinner.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="Insert"
+ style="width:600px;height:1000px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:insert"></h:outputText>
+ </f:facet>
+ <ui:include src="/Insert/Insert.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="jQuery"
+ style="width:400px;height:600px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:jQuery"></h:outputText>
+ </f:facet>
+ <ui:include src="/jQuery/jQuery.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="message"
+ style="width:400px;height:600px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:message, rich:messages"></h:outputText>
+ </f:facet>
+ <ui:include src="/Message/Message.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="ModalPanel"
+ style="width:400px;height:400px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:modalpanel"></h:outputText>
+ </f:facet>
+ <ui:include src="/ModalPanel/ModalPanel.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="Paint2D"
+ style="width:1000px;height:600px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:paint2D"></h:outputText>
+ </f:facet>
+ <ui:include src="/Paint2D/Paint2D.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="PanelBar"
+ style="width:600px;height:600px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:panelBar"></h:outputText>
+ </f:facet>
+ <ui:include src="/PanelBar/PanelBar.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="PanelMenu"
+ style="width:800px;height:900px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:panelmenu"></h:outputText>
+ </f:facet>
+ <ui:include src="/PanelMenu/PanelMenu.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="ScrollableDataTable"
+ style="width:500px;height:700px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:scrollableDataTable"></h:outputText>
+ </f:facet>
+ <ui:include src="/ScrollableDataTable/ScrollableDataTable.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="Separator"
+ style="width:600px;height:500px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:separator"></h:outputText>
+ </f:facet>
+ <ui:include src="/Separator/Separator.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="SimpleTogglePanel"
+ style="width:600px;height:800px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:simpleTogglePanel"></h:outputText>
+ </f:facet>
+ <ui:include src="/SimpleTogglePanel/SimpleTogglePanel.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="Spacer"
+ style="width:700px;height:400px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:spacer"></h:outputText>
+ </f:facet>
+ <ui:include src="/Spacer/Spacer.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="SuggestionBox"
+ style="width:500px;height:700px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:suggestionbox"></h:outputText>
+ </f:facet>
+ <ui:include src="/SuggestionBox/SuggestionBox.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="TabPanel"
+ style="width:700px;height:700px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:tabPanel"></h:outputText>
+ </f:facet>
+ <ui:include src="/TabPanel/TabPanel.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="TogglePanel"
+ style="width:700px;height:1000px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:togglePanel"></h:outputText>
+ </f:facet>
+ <ui:include src="/TogglePanel/TogglePanel.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="ToolBar"
+ style="width:1000px;height:300px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:toolBar"></h:outputText>
+ </f:facet>
+ <ui:include src="/ToolBar/ToolBar.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="ToolTip"
+ style="width:500px;height:600px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:toolTip"></h:outputText>
+ </f:facet>
+ <ui:include src="/Tooltip/Tooltip.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="Tree"
+ style="width:600px;height:1200px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:tree, rich:treeNode"></h:outputText>
+ </f:facet>
+ <ui:include src="/Tree/Tree.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="VirtualEarth"
+ style="width:1000px;height:600px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:virtualEarth"></h:outputText>
+ </f:facet>
+ <ui:include src="/VirtualEarth/VirtualEarth.xhtml" />
+ </rich:panel>
+
+
+</f:subview>
+
Added: trunk/test-applications/facelets/src/main/webapp/RichPanels/PanelBar/PanelBar.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/RichPanels/PanelBar/PanelBar.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/RichPanels/PanelBar/PanelBar.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,72 @@
+<f:subview id="panelBarSubviewID"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+ <h:form>
+
+ <h:messages></h:messages>
+
+ <rich:panelBar id="pBId" height="#{panelBar.height}"
+ width="#{panelBar.width}" contentClass="#{panelBar.contentStyle}"
+ styleClass="#{panelBar.style}" selectedPanel="pBiId4">
+ <rich:panelBarItem rendered="#{panelBar.rendered}" id="pBiId1"
+ label="#{panelBar.label[0]}" headerClass="#{panelBar.headerStyle}">
+ <h:outputText value="Some text..."></h:outputText>
+ </rich:panelBarItem>
+
+ <rich:panelBarItem id="pBiId2" label="#{panelBar.label[1]}"
+ headerClass="#{panelBar.headerStyle}">
+ <h:graphicImage value="/pics/masshtaby_01.jpg" width="300"
+ height="200"></h:graphicImage>
+ </rich:panelBarItem>
+
+ <rich:panelBarItem id="pBiId3" label="#{panelBar.label[2]}"
+ headerClass="#{panelBar.headerStyle}">
+ <f:facet name="openMarker">
+ <h:graphicImage value="/pics/ajax_process.gif"></h:graphicImage>
+ </f:facet>
+ <f:facet name="closeMarker">
+ <h:graphicImage value="/pics/ajax_stoped.gif"></h:graphicImage>
+ </f:facet>
+ <h:graphicImage value="/pics/podb109_61.jpg" width="300"
+ height="200"></h:graphicImage>
+ </rich:panelBarItem>
+
+ <rich:panelBarItem id="pBiId4" label="#{panelBar.label[3]}"
+ headerClass="#{panelBar.headerStyle}">
+ <h:outputText value="Select Panel"></h:outputText>
+ </rich:panelBarItem>
+
+ </rich:panelBar>
+
+ <rich:spacer height="20px"></rich:spacer>
+
+ <h:panelGrid columns="2" cellspacing="10px">
+ <h:outputText value="Label: "></h:outputText>
+ <h:inputText valueChangeListener="#{panelBar.makeLabels}">
+ <a4j:support event="onchange" reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{panelBar.width}">
+ <a4j:support event="onchange" reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{panelBar.height}">
+ <a4j:support event="onchange" reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelBar.rendered}">
+ <a4j:support event="onchange" reRender="pBId" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{panelBar.doStyles}"
+ value="#{panelBar.btnLabel}" />
+
+ </h:panelGrid>
+ </h:form>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/RichPanels/SimpleTogglePanel/SimpleTogglePanel.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/RichPanels/SimpleTogglePanel/SimpleTogglePanel.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/RichPanels/SimpleTogglePanel/SimpleTogglePanel.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,93 @@
+<f:subview id="simpleTogglePanelSubviewID"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich">
+
+ <h:form>
+ <rich:simpleTogglePanel id="sTP" bodyClass="body" headerClass="head"
+ label="simpleTogglePanel with some text"
+ width="#{simpleTogglePanel.width}"
+ height="#{simpleTogglePanel.height}"
+ switchType="#{simpleTogglePanel.switchType}" opened="false">
+ <f:facet name="closeMarker">
+ <h:outputText value="Close It" />
+ </f:facet>
+ <f:facet name="openMarker">
+ <h:outputText value="Open It" />
+ </f:facet>
+ <f:verbatim>
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ </f:verbatim>
+ </rich:simpleTogglePanel>
+
+ <rich:simpleTogglePanel id="sTP1" headerClass="head"
+ label="simpleTogglePanel wiht image"
+ width="#{simpleTogglePanel.width}"
+ height="#{simpleTogglePanel.height}"
+ rendered="#{simpleTogglePanel.rendered}"
+ switchType="#{simpleTogglePanel.switchType}" opened="false">
+ <h:graphicImage value="/pics/podb109_61.jpg" width="500" height="300"></h:graphicImage>
+ </rich:simpleTogglePanel>
+
+ <rich:simpleTogglePanel id="sTP2" label="Focus simpleTogglePanle"
+ width="#{simpleTogglePanel.width}" ignoreDupResponses="true"
+ focus="#{simpleTogglePanel.focus}">
+ <f:facet name="closeMarker">
+ <h:graphicImage value="/pics/ajax_stoped.gif"></h:graphicImage>
+ </f:facet>
+ <f:facet name="openMarker">
+ <h:graphicImage value="/pics/ajax_process.gif"></h:graphicImage>
+ </f:facet>
+ <rich:simpleTogglePanel id="INsTP">
+ <h:panelGrid columns="2">
+ <h:graphicImage value="/pics/podb109_61.jpg" width="250px" height="200px"></h:graphicImage>
+ <f:verbatim>
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ </f:verbatim>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+ </rich:simpleTogglePanel>
+
+ <rich:spacer height="20px"></rich:spacer>
+
+ <h:panelGrid columns="2" border="1">
+ <h:outputText value="Width:">
+ </h:outputText>
+ <h:inputText value="#{simpleTogglePanel.width}">
+ <a4j:support event="onchange" reRender="sTP, sTP1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height:">
+ </h:outputText>
+ <h:inputText value="#{simpleTogglePanel.height}">
+ <a4j:support event="onchange" reRender="sTP, sTP1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Switch Type:"></h:outputText>
+ <h:selectOneRadio value="#{simpleTogglePanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick" reRender="sTP, sTP1, sTP2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{simpleTogglePanel.rendered}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ </h:panelGrid>
+
+ </h:form>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/RichPanels/TabPanel/TabPanel.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/RichPanels/TabPanel/TabPanel.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/RichPanels/TabPanel/TabPanel.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,112 @@
+<f:subview id="tabPanelSubviewID"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:c="http://java.sun.com/jsp/jstl/core">
+<h:form>
+ <rich:tabPanel id="tabPanelId"
+ headerAlignment="#{tabPanel.headerAlignment}"
+ width="#{tabPanel.width}" height="#{tabPanel.height}"
+ rendered="#{tabPanel.rendered}" title="#{tabPanel.title}"
+ switchType="#{tabPanel.switchType}"
+ headerSpacing="#{tabPanel.headerSpacing}"
+ selectedTab="#{tabPanel.selectedTab}"
+ activeTabClass="#{tabPanel.activeTabStyle}"
+ disabledTabClass="#{tabPanel.disabledTabStyle}"
+ inactiveTabClass="#{tabPanel.inactiveTabStyle}"
+ contentClass="#{tabPanel.contentStyle}">
+
+ <rich:tab id="tabOne" onmousedown="alert('OnMouseDown');"
+ labelWidth="#{tabPanel.labelWidth}" label="#{tabPanel.label}">
+ <h:outputText value="This is tab panel test example"
+ styleClass="text1"></h:outputText>
+ </rich:tab>
+ <rich:tab id="tabTwo" label="Tab with image"
+ disabled="#{tabPanel.disabledTab}">
+ <f:facet name="header">
+ <h:outputText value="client switchType from facet" />
+ </f:facet>
+ <h:graphicImage value="/pics/masshtaby_01.jpg" width="560"
+ height="383"></h:graphicImage>
+ </rich:tab>
+ <rich:tab id="tabThree" label="Tab with some text"
+ disabled="#{tabPanel.disabledTab}">
+ <h:outputText
+ value=" Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text..." />
+ </rich:tab>
+ </rich:tabPanel>
+
+ <rich:spacer height="20px"></rich:spacer>
+
+ <h:panelGrid columns="2" cellspacing="10px">
+ <h:outputText value="Width (px or %):"></h:outputText>
+ <h:inputText value="#{tabPanel.width}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height (px or %):"></h:outputText>
+ <h:inputText value="#{tabPanel.height}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Title:"></h:outputText>
+ <h:inputText value="#{tabPanel.title}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="LabelWidth:"></h:outputText>
+ <h:inputText value="#{tabPanel.labelWidth}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="SwitchType:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Header Alignment:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.headerAlignment}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Header Spacing:"></h:outputText>
+ <h:inputText value="#{tabPanel.headerSpacing}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Selected Tab:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.selectedTab}" onchange="submit();">
+ <f:selectItem itemLabel="1" itemValue="tabOne" />
+ <f:selectItem itemLabel="2" itemValue="tabTwo" />
+ <f:selectItem itemLabel="3" itemValue="tabThr" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tabPanel.rendered}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disable Tab"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tabPanel.disabledTab}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{tabPanel.doStyles}"
+ value="#{tabPanel.btnLabel}" />
+
+
+ </h:panelGrid>
+</h:form>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/RichPanels/TogglePanel/TogglePanel.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/RichPanels/TogglePanel/TogglePanel.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/RichPanels/TogglePanel/TogglePanel.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,203 @@
+<f:subview id="togglePanelSubviewID"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:form id="tooggleTest">
+ <rich:togglePanel id="panel1" switchType="#{togglePanel.switchType}"
+ initialState="asus" stateOrder="asus,blank"
+ style="width:300px!important">
+ <f:facet name="blank">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <rich:toggleControl id="toggleControl_blank"
+ for="tooggleTest:panel1">
+ <h:outputText value="Expand" style="font-weight: bold;" />
+ <h:graphicImage url="/pics/collapse.gif"
+ style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ </rich:panel>
+ </f:facet>
+
+ <f:facet name="asus">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <rich:toggleControl id="toggleControl_panel1"
+ for="tooggleTest:panel1">
+ <h:outputText value="Collapse" style="font-weight: bold;" />
+ <h:graphicImage url="/pics/expand.gif"
+ style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid columns="2" border="0"
+ style="width: 100%;background-color: white;">
+ <h:graphicImage url="/pics/asus.jpg" height="300" width="300"
+ alt="asus.jpg" />
+ <h:panelGroup>
+ <h:outputText style="font: 18px;font-weight: bold;"
+ value="Asus F 3 Tc" />
+ <f:verbatim>
+ Processor: AMD Turion 64 X 2 - 1600 Mhz<br />
+ RAM: 1024 Mb<br />
+ HDD: 100 Gb<br />
+ Screen: 15.4 WXGA<br />
+ Video: NVIDIA GeForce Go 7300<br />
+ Drive: DVD- RW DL<br />
+ </f:verbatim>
+ </h:panelGroup>
+ </h:panelGrid>
+ </rich:panel>
+ </f:facet>
+ </rich:togglePanel>
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <rich:togglePanel id="panel2" switchType="#{togglePanel.switchType}"
+ initialState="#{togglePanel.initialState}"
+ stateOrder="#{togglePanel.stateOrder}">
+ <f:facet name="asus">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText value="Customizable toggle panel"
+ style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_1"
+ for="tooggleTest:panel2">
+ <h:outputText value="Next"></h:outputText>
+ <h:graphicImage url="/pics/expand.gif"
+ style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid columns="2" border="0"
+ style="width: 100%;background-color: white;">
+ <h:graphicImage url="/pics/asus.jpg" height="300" width="300"
+ alt="asus.jpg" />
+ <h:panelGroup>
+ <h:outputText style="font: 18px;font-weight: bold;"
+ value="Asus F 3 Tc" />
+ <f:verbatim>
+ Processor: AMD Turion 64 X 2 - 1600 Mhz<br />
+ RAM: 1024 Mb<br />
+ HDD: 100 Gb<br />
+ Screen: 15.4 WXGA<br />
+ Video: NVIDIA GeForce Go 7300<br />
+ Drive: DVD- RW DL<br />
+ </f:verbatim>
+ </h:panelGroup>
+ </h:panelGrid>
+ </rich:panel>
+ </f:facet>
+
+ <f:facet name="benq">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText value="Customizable toggle panel"
+ style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_2"
+ for="tooggleTest:panel2">
+ <h:outputText value="Next"></h:outputText>
+ <h:graphicImage url="/pics/expand.gif"
+ style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid columns="2" border="0"
+ style="width: 100%;background-color: yellow;">
+ <h:graphicImage url="/pics/benq.jpg" height="300" width="300"
+ alt="benq.jpg" />
+ <h:panelGroup>
+ <h:outputText style="font: 18px;font-weight: bold;"
+ value="BenQ A 52" />
+ <f:verbatim>
+ Processor: Core Duo T2250 (1.73GHz)<br />
+ RAM: 1024 Mb<br />
+ HDD: 100 Gb<br />
+ Screen: 15.4 WXGA<br />
+ Video: ATI Mobility Radeon X 200<br />
+ Drive: DVD- RW D<br />
+ </f:verbatim>
+ </h:panelGroup>
+ </h:panelGrid>
+ </rich:panel>
+ </f:facet>
+
+ <f:facet name="toshiba">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText value="Customizable toggle panel"
+ style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_3"
+ for="tooggleTest:panel2">
+ <h:outputText value="Next"></h:outputText>
+ <h:graphicImage url="/pics/expand.gif"
+ style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid columns="2" border="0"
+ style="width: 100%;background-color: orange;">
+ <h:graphicImage url="/pics/toshiba.jpg" height="300" width="300"
+ alt="toshiba.jpg" />
+ <h:panelGroup>
+ <h:outputText style="font: 18px;font-weight: bold;"
+ value="Toshiba Satellite A 100-784" />
+ <f:verbatim>
+ Processor: Intel Core Duo T2250 - 1.73GHz<br />
+ RAM: 1024 Mb<br />
+ HDD: 100 Gb<br />
+ Screen: 15.4 WXGA<br />
+ Video: Intel Graphics Media 950<br />
+ Drive: DVD- RW DL<br />
+ </f:verbatim>
+ </h:panelGroup>
+ </h:panelGrid>
+ </rich:panel>
+ </f:facet>
+ </rich:togglePanel>
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+ <rich:separator height="5px" width="500px" />
+
+ <h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
+ <h:outputText value="InitialState:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.initialState}">
+ <f:selectItem itemLabel="Asus" itemValue="asus" />
+ <f:selectItem itemLabel="Benq" itemValue="benq" />
+ <f:selectItem itemLabel="toshiba" itemValue="toshiba" />
+ <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="StateOrder:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.stateOrder}">
+ <f:selectItem itemLabel="Asus,Benq,Toshiba"
+ itemValue="asus,benq,toshiba" />
+ <f:selectItem itemLabel="Toshiba, Asus, Benq"
+ itemValue="toshiba,asus,benq" />
+ <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="switchType:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick" reRender="panel1,panel2"></a4j:support>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ <ui:debug hotkey="L"></ui:debug>
+ </h:form>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/RichTest/RichTest.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/RichTest/RichTest.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/RichTest/RichTest.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,126 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+<f:view>
+ <head>
+ <title></title>
+ </head>
+ <body>
+ <h:form id="richTestID">
+ <ui:include src="/rich/menu.xhtml" />
+ <h:panelGrid columns="2">
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="panel" />
+ </f:facet>
+ <rich:tabPanel switchType="ajax" height="200px" width="300px">
+ <rich:tab label="Tab 1">
+ <f:facet name="header">
+ <h:outputText value="tab1" />
+ </f:facet>
+ <h:outputText value="Text" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputText value="Text" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputText value="Text" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputText value="Text" />
+ </rich:tab>
+
+ <rich:tab label="Tab 2">
+ <h:outputText value="Image" />
+ <h:graphicImage value="/pics/masshtaby_01.jpg" height="150px"
+ width="200px" />
+ </rich:tab>
+
+ <rich:tab label="Tab 3">
+ <f:facet name="header">
+ <h:outputText value="tab1" />
+ </f:facet>
+ <f:verbatim>
+ <a
+ href="javascript:Richfaces.showModalPanel('mp',{width:450, top:200})">Show
+ this panel</a>
+ </f:verbatim>
+ <rich:modalPanel id="mp" minHeight="200" minWidth="450"
+ height="200" width="500" zindex="2000">
+ <f:facet name="header">
+ <h:outputText value="Modal Panel Title" />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif" style="cursor:pointer"
+ onclick="Richfaces.hideModalPanel('mp')" />
+ </f:facet>
+ <f:verbatim>
+ RichFaces Modal Panel is a container that blocks an operation on the base page when the modal panel is shown.
+ <a href="javascript:Richfaces.hideModalPanel('mp')">Hide
+ this panel</a>
+ </f:verbatim>
+ </rich:modalPanel>
+ </rich:tab>
+
+ <rich:tab label="Tab 4">
+ <f:facet name="header">
+ <h:outputText value="tab1" />
+ </f:facet>
+ <h:inputTextarea value="text" cols="30" rows="8"></h:inputTextarea>
+ </rich:tab>
+
+ <rich:tab label="Tab 5">
+ <f:facet name="header">
+ <h:outputText value="tab1" />
+ </f:facet>
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="Panel" />
+ </f:facet>
+ <rich:tabPanel switchType="ajax">
+ <rich:tab label="tab 1">
+ <h:outputText value="text1" />
+ </rich:tab>
+
+ <rich:tab label="tab 2">
+ <h:outputText value="text2" />
+ </rich:tab>
+ </rich:tabPanel>
+ </rich:panel>
+ </rich:tab>
+
+ <rich:tab label="Tab 6">
+ <rich:dataGrid columns="3" elements="12"
+ value="#{dataTable.mounths}" var="dt">
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="mmm"></h:outputText>
+ </f:facet>
+ <h:panelGrid columns="2">
+ <h:outputText value="Mounth:" styleClass="label"></h:outputText>
+ <h:outputText value="#{dt.mounth}" />
+ <h:outputText value="Town:" styleClass="label"></h:outputText>
+ <h:outputText value="#{dt.town}" />
+ <h:outputText value="Day:" styleClass="label"></h:outputText>
+ <h:outputText value="#{dt.day}" />
+ <h:outputText value="Number:" styleClass="label"></h:outputText>
+ <h:outputText value="#{dt.total}" />
+ </h:panelGrid>
+ </rich:panel>
+ </rich:dataGrid>
+ </rich:tab>
+ </rich:tabPanel>
+ </rich:panel>
+ </h:panelGrid>
+ <rich:separator></rich:separator>
+ </h:form>
+ </body>
+</f:view>
+</html>
Added: trunk/test-applications/facelets/src/main/webapp/RichTest/menu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/RichTest/menu.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/RichTest/menu.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,149 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+
+ <f:subview id="menuTestID">
+ <rich:toolBar itemSeparator="disc">
+ <rich:dropDownMenu value="File" event="onmouseover" submitMode="ajax">
+ <rich:menuItem value="Item 1" ></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 2"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 3"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 4"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 5"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 6"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 7"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuGroup value="menu 1">
+ <rich:menuItem value="Item 1" ></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 2"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 3"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 4"></rich:menuItem>
+ <rich:menuGroup value="menu 1_1">
+ <rich:menuItem value="Item 1" ></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 2"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 3"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 4"></rich:menuItem>
+ </rich:menuGroup>
+ </rich:menuGroup>
+ <rich:menuGroup value="menu 2">
+ <rich:menuItem value="Item 1" ></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 2"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 3"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 4"></rich:menuItem>
+ </rich:menuGroup>
+ </rich:dropDownMenu>
+
+ <rich:dropDownMenu value="Edit" event="onmouseover">
+ <rich:menuItem value="Item 1" ></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 2"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 3"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 4"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 5"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 6"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 7"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 8"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 9"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 10"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 11"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 12"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 13"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 14"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 15"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuGroup value="menu 1">
+ <rich:menuItem value="Item 1" ></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 2"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 3"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 4"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuGroup value="menu 1_1">
+ <rich:menuItem value="Item 1" ></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 2"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 3"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 4"></rich:menuItem>
+ </rich:menuGroup>
+ </rich:menuGroup>
+ <rich:menuGroup value="menu 2">
+ <rich:menuItem value="Item 1" ></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 2"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 3"></rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem value="Item 4"></rich:menuItem>
+ </rich:menuGroup>
+ </rich:dropDownMenu>
+
+ <rich:toolBarGroup>
+ <rich:dropDownMenu value="Navigate" event="onmouseover">
+ <rich:menuGroup value="menu 1">
+ <rich:menuItem value="Item 1" ></rich:menuItem>
+ <rich:menuItem value="Item 2"></rich:menuItem>
+ <rich:menuItem value="Item 3"></rich:menuItem>
+ <rich:menuItem value="Item 4"></rich:menuItem>
+ <rich:menuGroup value="menu 1_1">
+ <rich:menuItem value="Item 1" ></rich:menuItem>
+ <rich:menuItem value="Item 2"></rich:menuItem>
+ <rich:menuItem value="Item 3"></rich:menuItem>
+ <rich:menuItem value="Item 4"></rich:menuItem>
+ </rich:menuGroup>
+ </rich:menuGroup>
+ <rich:menuGroup value="menu 2">
+ <rich:menuItem value="Item 1" ></rich:menuItem>
+ <rich:menuItem value="Item 2"></rich:menuItem>
+ <rich:menuItem value="Item 3"></rich:menuItem>
+ <rich:menuItem value="Item 4"></rich:menuItem>
+ </rich:menuGroup>
+ <rich:menuItem value="Item 1" ></rich:menuItem>
+ <rich:menuItem value="Item 2"></rich:menuItem>
+ <rich:menuItem value="Item 3"></rich:menuItem>
+ <rich:menuItem value="Item 4"></rich:menuItem>
+ <rich:menuItem value="Item 5"></rich:menuItem>
+ <rich:menuItem value="Item 6"></rich:menuItem>
+ <rich:menuItem value="Item 7"></rich:menuItem>
+ <rich:menuItem value="Item 8"></rich:menuItem>
+ <rich:menuItem value="Item 9"></rich:menuItem>
+ <rich:menuItem value="Item 10"></rich:menuItem>
+ </rich:dropDownMenu>
+ <h:graphicImage value="/pics/ajax_process.gif"></h:graphicImage>
+ </rich:toolBarGroup>
+ </rich:toolBar>
+ </f:subview>
+</html>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -3,16 +3,17 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich">
- <h:form>
- <rich:scrollableDataTable var="sdt" value="#{scrollableDT.data}" rows="30" width="400px" >
- <rich:column width="100px" sortable="false">
+ <rich:scrollableDataTable id="sdt" var="sdt" value="#{scrollableDT.data}" rows="#{scrollableDT.rows}" width="#{scrollableDT.width}"
+ hideWhenScrolling="#{scrollableDT.hideWhenScrolling}" reRender="inputID"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')" onselectionchange="print('onselectionchangeInputID', 'onselectionchange work!')">
+ <rich:column width="100px">
<f:facet name="header">
<h:outputText value="Number" />
</f:facet>
<h:outputText value="#{sdt.data1}" />
</rich:column>
- <rich:column width="100px" sortable="false">
+ <rich:column width="100px">
<f:facet name="header">
<h:outputText value="Name" />
</f:facet>
@@ -21,17 +22,22 @@
<rich:column width="100px" sortable="false">
<f:facet name="header">
- <h:outputText value="Priority" />
+ <h:outputText value="Status" />
</f:facet>
- <h:outputText value="#{sdt.data2}" />
+ <h:selectOneMenu value="#{sdt.data2}">
+ <f:selectItem itemLabel="error" itemValue="error"/>
+ <f:selectItem itemLabel="fatal" itemValue="fatal"/>
+ <f:selectItem itemLabel="info" itemValue="info"/>
+ <f:selectItem itemLabel="passed" itemValue="passed"/>
+ <f:selectItem itemLabel="warn" itemValue="warn"/>
+ </h:selectOneMenu>
</rich:column>
- <rich:column width="100px" sortable="false">
+ <rich:column width="30px" sortable="false">
<f:facet name="header">
- <h:outputText value="Name" />
+ <h:outputText value="Icon" />
</f:facet>
- <h:outputText value="#{sdt.data3}" />
+ <h:graphicImage value="#{sdt.data3}" />
</rich:column>
</rich:scrollableDataTable>
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,18 @@
+<f:subview id="scrollableDataTablePropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:panelGrid columns="2">
+ <h:outputText value="rows" />
+ <h:inputText value="#{scrollableDT.rows}" />
+
+ <h:outputText value="width" />
+ <h:inputText value="#{scrollableDT.width}" />
+
+ <h:outputText value="hideWhenScrolling" />
+ <h:selectBooleanCheckbox value="#{scrollableDT.hideWhenScrolling}" />
+ </h:panelGrid>
+ <a4j:commandButton value="reRender" reRender="sdt"></a4j:commandButton>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Separator/Separator.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Separator/Separator.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Separator/Separator.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,66 +1,14 @@
-<f:subview id="separatorSubviewID"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:scriptfree="http://jakarta.apache.org/taglibs/standard/scriptfree"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:c="http://java.sun.com/jstl/core">
- <h:form>
- <h:messages></h:messages>
- <h:outputText value="Event:"></h:outputText>
- <rich:separator height="20px" width="300px"
- onmousedown="alert('mouse click')"></rich:separator>
-
-
+<f:subview id="separatorSubviewID" xmlns:rich="http://richfaces.org/rich"
+ xmlns:scriptfree="http://jakarta.apache.org/taglibs/standard/scriptfree" xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:c="http://java.sun.com/jstl/core">
<h:outputText value="Some text one..." styleClass="text"></h:outputText>
- <rich:separator id="separatorId" rendered="#{separator.rendered}"
- width="#{separator.width}" height="#{separator.height}"
- title="#{separator.title}" lineType="#{separator.lineType}"
- align="#{separator.align}" styleClass="#{separator.style}"></rich:separator>
+ <rich:separator id="separatorId" rendered="#{separator.rendered}" width="#{separator.width}" height="#{separator.height}"
+ title="#{separator.title}" lineType="#{separator.lineType}" align="#{separator.align}" styleClass="#{separator.style}"
+ onclick="print('onclickInputID', 'onclick work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
+ onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"></rich:separator>
<h:outputText value="Some text two..." styleClass="text"></h:outputText>
<rich:spacer height="20px"></rich:spacer>
- <h:panelGrid columns="2">
- <h:outputText value="Width (px or %): "></h:outputText>
- <h:inputText value="#{separator.width}">
- <a4j:support event="onchange" reRender="separatorId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height (px or %):"></h:outputText>
- <h:inputText value="#{separator.height}">
- <a4j:support event="onchange" reRender="separatorId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="LineType:"></h:outputText>
- <h:selectOneRadio value="#{separator.lineType}"
- layout="pageDirection">
- <f:selectItem itemLabel="beveled" itemValue="beveled" />
- <f:selectItem itemLabel="dotted" itemValue="dotted" />
- <f:selectItem itemLabel="dashed" itemValue="dashed" />
- <f:selectItem itemLabel="double" itemValue="double" />
- <f:selectItem itemLabel="solid" itemValue="solid" />
- <a4j:support event="onclick" reRender="separatorId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Align:"></h:outputText>
- <h:selectOneRadio value="#{separator.align}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="center" itemValue="center" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick" reRender="separatorId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Title:"></h:outputText>
- <h:inputText value="#{separator.title}">
- <a4j:support event="onchange" reRender="separatorId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{separator.rendered}"
- onclick="submit()"></h:selectBooleanCheckbox>
-
- <h:outputText value="Switch Styles:" />
- <h:commandButton action="#{separator.doStyles}"
- value="#{separator.btnLabel}" />
- </h:panelGrid>
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,49 @@
+<f:subview id="SeparatorPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="separatorPropertyID" switchType="client" opened="true" label="separator property">
+ <h:panelGrid columns="2">
+ <h:outputText value="Width (px or %): "></h:outputText>
+ <h:inputText value="#{separator.width}">
+ <a4j:support event="onchange" reRender="separatorId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height (px or %):"></h:outputText>
+ <h:inputText value="#{separator.height}">
+ <a4j:support event="onchange" reRender="separatorId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="LineType:"></h:outputText>
+ <h:selectOneRadio value="#{separator.lineType}" layout="pageDirection">
+ <f:selectItem itemLabel="beveled" itemValue="beveled" />
+ <f:selectItem itemLabel="dotted" itemValue="dotted" />
+ <f:selectItem itemLabel="dashed" itemValue="dashed" />
+ <f:selectItem itemLabel="double" itemValue="double" />
+ <f:selectItem itemLabel="solid" itemValue="solid" />
+ <a4j:support event="onclick" reRender="separatorId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Align:"></h:outputText>
+ <h:selectOneRadio value="#{separator.align}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="separatorId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Title:"></h:outputText>
+ <h:inputText value="#{separator.title}">
+ <a4j:support event="onchange" reRender="separatorId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{separator.rendered}" onclick="submit()"></h:selectBooleanCheckbox>
+
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{separator.doStyles}" value="#{separator.btnLabel}" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="SeparatorStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="separator straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{separator.bTest1}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Separator}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{separator.bTest2}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Separator}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{separator.bTest3}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Separator}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{separator.bTest4}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Separator}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{separator.bTest5}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Separator}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,15 +1,13 @@
-<f:subview id="simpleTogglePanelSubviewID"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich">
-
- <h:form>
- <rich:simpleTogglePanel id="sTP" bodyClass="body" headerClass="head"
- label="simpleTogglePanel with some text"
- width="#{simpleTogglePanel.width}"
- height="#{simpleTogglePanel.height}"
- switchType="#{simpleTogglePanel.switchType}" opened="false">
+<f:subview id="simpleTogglePanelSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich">
+ <rich:simpleTogglePanel id="sTP" bodyClass="body" headerClass="head" label="simpleTogglePanel with some text"
+ width="#{simpleTogglePanel.width}" height="#{simpleTogglePanel.height}" switchType="#{simpleTogglePanel.switchType}"
+ opened="false" onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')">
<f:facet name="closeMarker">
<h:outputText value="Close It" />
</f:facet>
@@ -26,18 +24,24 @@
</f:verbatim>
</rich:simpleTogglePanel>
- <rich:simpleTogglePanel id="sTP1" headerClass="head"
- label="simpleTogglePanel wiht image"
- width="#{simpleTogglePanel.width}"
- height="#{simpleTogglePanel.height}"
- rendered="#{simpleTogglePanel.rendered}"
- switchType="#{simpleTogglePanel.switchType}" opened="false">
+ <rich:simpleTogglePanel id="sTP1" headerClass="head" label="simpleTogglePanel wiht image" width="#{simpleTogglePanel.width}"
+ height="#{simpleTogglePanel.height}" rendered="#{simpleTogglePanel.rendered}" switchType="#{simpleTogglePanel.switchType}"
+ opened="false" onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')">
<h:graphicImage value="/pics/podb109_61.jpg" width="500" height="300"></h:graphicImage>
</rich:simpleTogglePanel>
- <rich:simpleTogglePanel id="sTP2" label="Focus simpleTogglePanle"
- width="#{simpleTogglePanel.width}" ignoreDupResponses="true"
- focus="#{simpleTogglePanel.focus}">
+ <rich:simpleTogglePanel id="sTP2" label="Focus simpleTogglePanle" width="#{simpleTogglePanel.width}" ignoreDupResponses="true"
+ focus="#{simpleTogglePanel.focus}" onclick="print('onclickInputID', 'onclick work!')"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
+ onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')">
<f:facet name="closeMarker">
<h:graphicImage value="/pics/ajax_stoped.gif"></h:graphicImage>
</f:facet>
@@ -60,34 +64,4 @@
</rich:simpleTogglePanel>
<rich:spacer height="20px"></rich:spacer>
-
- <h:panelGrid columns="2" border="1">
- <h:outputText value="Width:">
- </h:outputText>
- <h:inputText value="#{simpleTogglePanel.width}">
- <a4j:support event="onchange" reRender="sTP, sTP1"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height:">
- </h:outputText>
- <h:inputText value="#{simpleTogglePanel.height}">
- <a4j:support event="onchange" reRender="sTP, sTP1"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Switch Type:"></h:outputText>
- <h:selectOneRadio value="#{simpleTogglePanel.switchType}">
- <f:selectItem itemLabel="client" itemValue="client" />
- <f:selectItem itemLabel="server" itemValue="server" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <a4j:support event="onclick" reRender="sTP, sTP1, sTP2"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{simpleTogglePanel.rendered}"
- onclick="submit()">
- </h:selectBooleanCheckbox>
-
- </h:panelGrid>
-
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,34 @@
+<f:subview id="stpPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="stpPropertyID" switchType="client" opened="true" label="spacer property">
+ <h:panelGrid columns="2" border="1">
+ <h:outputText value="Width:">
+ </h:outputText>
+ <h:inputText value="#{simpleTogglePanel.width}">
+ <a4j:support event="onchange" reRender="sTP,sTP1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height:">
+ </h:outputText>
+ <h:inputText value="#{simpleTogglePanel.height}">
+ <a4j:support event="onchange" reRender="sTP,sTP1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Switch Type:"></h:outputText>
+ <h:selectOneRadio value="#{simpleTogglePanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick" reRender="sTP,sTP1,sTP2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{simpleTogglePanel.rendered}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="stpStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="spacer straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest1}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1SimpleTP}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest2}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2SimpleTP}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest3}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3SimpleTP}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest4}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4SimpleTP}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest5}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5SimpleTP}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Spacer/Spacer.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Spacer/Spacer.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Spacer/Spacer.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,57 +1,22 @@
-<f:subview id="spacerSubviewID"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:sql="http://java.sun.com/jsp/jstl/sql">
- <h:form>
-<style type="text/css">
-.text
-{
-font-size:20px;
+<f:subview id="spacerSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:sql="http://java.sun.com/jsp/jstl/sql">
+ <style type="text/css">
+.text {
+ font-size: 20px;
}
-.spacer
-{
-background-color: aqua;
+
+.spacer {
+ background-color: aqua;
}
</style>
- <h:outputText value="Event:"></h:outputText>
- <rich:spacer id="spacerIdEven" rendered="#{spacer.rendered}"
- style="border: 3px solid red; background: blue;"
- styleClass="#{spacer.style}" width="#{spacer.width}"
- height="#{spacer.height}" onmousedown="alert('onmousedown')"
- title="title"></rich:spacer>
- <f:verbatim>
- <br />
- </f:verbatim>
<h:outputText value="Some text one..." styleClass="text"></h:outputText>
- <rich:spacer id="spacerId" width="#{spacer.width}"
- height="#{spacer.height}" rendered="#{spacer.rendered}"
- styleClass="#{spacer.style}">
+ <rich:spacer id="spacerId" width="#{spacer.width}" height="#{spacer.height}" rendered="#{spacer.rendered}"
+ styleClass="#{spacer.style}" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')">
</rich:spacer>
<h:outputText value="Some text two..." styleClass="text"></h:outputText>
-
- <h:panelGrid columns="2">
- <h:outputText value="Width (px or %):"></h:outputText>
- <h:inputText value="#{spacer.width}">
- <a4j:support event="onchange" reRender="spacerId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height (px or %):"></h:outputText>
- <h:inputText value="#{spacer.height}">
- <a4j:support event="onchange" reRender="spacerId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{spacer.rendered}"
- onclick="submit()">
- </h:selectBooleanCheckbox>
-
- </h:panelGrid>
- <a4j:commandButton id="btn" action="#{spacer.doStyle}"
- value="#{spacer.btn}" reRender="spacerId, btn"></a4j:commandButton>
- <f:verbatim>
- <br />
- </f:verbatim>
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,27 @@
+<f:subview id="spacerPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="spacerPropertyID" switchType="client" opened="true" label="spacer property">
+ <h:panelGrid columns="2">
+ <h:outputText value="Width (px or %):"></h:outputText>
+ <h:inputText value="#{spacer.width}">
+ <a4j:support event="onchange" reRender="spacerId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height (px or %):"></h:outputText>
+ <h:inputText value="#{spacer.height}">
+ <a4j:support event="onchange" reRender="spacerId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{spacer.rendered}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Style" />
+ <a4j:commandButton id="btn" action="#{spacer.doStyle}" value="#{spacer.btn}" reRender="spacerId, btn"></a4j:commandButton>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="spacerStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="spacer straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{spacer.bTest1}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Spacer}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{spacer.bTest2}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Spacer}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{spacer.bTest3}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Spacer}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{spacer.bTest4}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Spacer}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{spacer.bTest5}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Spacer}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBox.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBox.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBox.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -3,125 +3,33 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich">
-<h:form id="suggestionbox_form">
+ <h:messages showDetail="true"/>
<f:verbatim>Suggestion Box will suggest you Town's names if it's started with the "a" or "A" letter
<br />
</f:verbatim>
- <h:inputText id="text" />
- <rich:suggestionbox id="suggestionBoxId" for="text"
+ <h:inputText value="#{sb.property}" id="text" />
+ <rich:suggestionbox id="suggestionBoxId" for="text" var="result"
zindex="#{sb.zindex}" rules="#{sb.rules}" styleClass="styleClass"
- suggestionAction="#{sb.autocomplete}" var="result"
+ suggestionAction="#{sb.autocomplete}"
width="#{sb.width}" height="#{sb.height}" border="#{sb.border}"
cellpadding="#{sb.cellpadding}" cellspacing="#{sb.cellspacing}"
- first="#{sb.first}" minChars="#{sb.minchars}" tokens=", ]"
+ first="#{sb.first}" minChars="1" tokens=", ]"
bgcolor="#{sb.bgColor}" focus="#{sb.forcus}" title="#{result.text}"
summary="summary" shadowOpacity="#{sb.shadowOpacity}"
- shadowDepth="#{sb.shadowDepth}" reRender="#{sb.reRender}"
- selectValueClass="mousemove" frequency="#{sb.frequency}" nothingLabel="fdsf">
+ shadowDepth="#{sb.shadowDepth}" selectValueClass="mousemove" frequency="#{sb.frequency}"
+ nothingLabel="nothingLabel work! " oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ onselect="print('onselectInputID', 'onselect work!')" >
<h:column>
- <h:outputText value="#{result.text}" />
+ <h:outputText value="#{result.city}" />
</h:column>
- </rich:suggestionbox>
- <div style="position:relative; font-size:50px; z-index:2; color: navy">z-index</div>
-
- <f:verbatim>
- <br />
- <br />
- </f:verbatim>
-
- <h:panelGrid columns="2" cellpadding="5px">
-
- <h:outputText value="z-index"></h:outputText>
- <h:selectOneRadio value="#{sb.zindex}">
- <f:selectItem itemLabel="1" itemValue="1" />
- <f:selectItem itemLabel="3" itemValue="3" />
- <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
- </h:selectOneRadio>
-
- <f:verbatim>Frequency</f:verbatim>
- <h:inputText value="#{sb.frequency}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
+ <h:column>
+ <h:outputText value="#{result.contry}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{result.flag}" />
+ </h:column>
-
- <f:verbatim>Border</f:verbatim>
- <h:inputText value="#{sb.border}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>Width</f:verbatim>
- <h:inputText value="#{sb.width}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>Height</f:verbatim>
- <h:inputText value="#{sb.height}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>Cellpadding</f:verbatim>
- <h:inputText value="#{sb.cellpadding}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>Cellspacing</f:verbatim>
- <h:inputText value="#{sb.cellspacing}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>First</f:verbatim>
- <h:inputText value="#{sb.first}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>MinChars</f:verbatim>
- <h:inputText value="#{sb.minchars}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Background Colour"></h:outputText>
- <h:selectOneMenu value="#{sb.bgColor}">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="aqua" itemValue="aqua" />
- <f:selectItem itemLabel="blue" itemValue="blue" />
- <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
- <f:selectItem itemLabel="gray" itemValue="gray" />
- <f:selectItem itemLabel="lime" itemValue="lime" />
- <f:selectItem itemLabel="maroon" itemValue="maroon" />
- <f:selectItem itemLabel="purple" itemValue="purple" />
- <f:selectItem itemLabel="red" itemValue="red" />
- <f:selectItem itemLabel="silver" itemValue="silver" />
- <f:selectItem itemLabel="teal" itemValue="teal" />
- <f:selectItem itemLabel="yellow" itemValue="yellow" />
- <f:selectItem itemLabel="white" itemValue="white" />
- <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Shadow Opacity"></h:outputText>
- <h:selectOneRadio value="#{sb.shadowOpacity}">
- <f:selectItem itemLabel="1" itemValue="1" />
- <f:selectItem itemLabel="3" itemValue="2" />
- <f:selectItem itemLabel="5" itemValue="3" />
- <f:selectItem itemLabel="7" itemValue="4" />
- <f:selectItem itemLabel="9" itemValue="5" />
- <f:selectItem itemLabel="11" itemValue="6" />
- <f:selectItem itemLabel="13" itemValue="7" />
- <f:selectItem itemLabel="15" itemValue="8" />
- <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Shadow Depth"></h:outputText>
- <h:selectOneRadio value="#{sb.shadowDepth}">
- <f:selectItem itemLabel="3" itemValue="3" />
- <f:selectItem itemLabel="4" itemValue="4" />
- <f:selectItem itemLabel="5" itemValue="5" />
- <f:selectItem itemLabel="6" itemValue="6" />
- <f:selectItem itemLabel="7" itemValue="6" />
- <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="reRender"></h:outputText>
- <h:selectBooleanCheckbox value="#{sb.reRender}"></h:selectBooleanCheckbox>
- </h:panelGrid>
- </h:form>
+ </rich:suggestionbox>
+ <div
+ style="position: relative; font-size: 50px; z-index: 2; color: navy">z-index</div>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,95 @@
+<f:subview id="suggestionboxPropertySubviewID" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="sbPropertyID" switchType="client" opened="true" label="suggestionBox property">
+ <h:panelGrid columns="2" cellpadding="5px">
+
+ <h:outputText value="z-index"></h:outputText>
+ <h:selectOneRadio value="#{sb.zindex}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="3" itemValue="3" />
+ <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneRadio>
+
+ <f:verbatim>Frequency</f:verbatim>
+ <h:inputText value="#{sb.frequency}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>Border</f:verbatim>
+ <h:inputText value="#{sb.border}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>Width</f:verbatim>
+ <h:inputText value="#{sb.width}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>Height</f:verbatim>
+ <h:inputText value="#{sb.height}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>Cellpadding</f:verbatim>
+ <h:inputText value="#{sb.cellpadding}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>Cellspacing</f:verbatim>
+ <h:inputText value="#{sb.cellspacing}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>First</f:verbatim>
+ <h:inputText value="#{sb.first}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>MinChars</f:verbatim>
+ <h:inputText value="#{sb.minchars}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Background Colour"></h:outputText>
+ <h:selectOneMenu value="#{sb.bgColor}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="aqua" itemValue="aqua" />
+ <f:selectItem itemLabel="blue" itemValue="blue" />
+ <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
+ <f:selectItem itemLabel="gray" itemValue="gray" />
+ <f:selectItem itemLabel="lime" itemValue="lime" />
+ <f:selectItem itemLabel="maroon" itemValue="maroon" />
+ <f:selectItem itemLabel="purple" itemValue="purple" />
+ <f:selectItem itemLabel="red" itemValue="red" />
+ <f:selectItem itemLabel="silver" itemValue="silver" />
+ <f:selectItem itemLabel="teal" itemValue="teal" />
+ <f:selectItem itemLabel="yellow" itemValue="yellow" />
+ <f:selectItem itemLabel="white" itemValue="white" />
+ <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Shadow Opacity"></h:outputText>
+ <h:selectOneRadio value="#{sb.shadowOpacity}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="3" itemValue="2" />
+ <f:selectItem itemLabel="5" itemValue="3" />
+ <f:selectItem itemLabel="7" itemValue="4" />
+ <f:selectItem itemLabel="9" itemValue="5" />
+ <f:selectItem itemLabel="11" itemValue="6" />
+ <f:selectItem itemLabel="13" itemValue="7" />
+ <f:selectItem itemLabel="15" itemValue="8" />
+ <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Shadow Depth"></h:outputText>
+ <h:selectOneRadio value="#{sb.shadowDepth}">
+ <f:selectItem itemLabel="3" itemValue="3" />
+ <f:selectItem itemLabel="4" itemValue="4" />
+ <f:selectItem itemLabel="5" itemValue="5" />
+ <f:selectItem itemLabel="6" itemValue="6" />
+ <f:selectItem itemLabel="7" itemValue="6" />
+ <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,27 @@
+<f:subview id="suggestionboxStraightforwardSubviewID" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <rich:simpleTogglePanel switchType="client" opened="true" label="suggestionBox straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{sb.bTest1}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t1SB}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{sb.bTest2}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t2SB}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{sb.bTest3}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t3SB}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{sb.bTest4}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t4SB}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{sb.bTest5}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t5SB}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanel.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanel.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanel.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,112 +1,53 @@
-<f:subview id="tabPanelSubviewID"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:c="http://java.sun.com/jsp/jstl/core">
-<h:form>
- <rich:tabPanel id="tabPanelId"
- headerAlignment="#{tabPanel.headerAlignment}"
- width="#{tabPanel.width}" height="#{tabPanel.height}"
- rendered="#{tabPanel.rendered}" title="#{tabPanel.title}"
- switchType="#{tabPanel.switchType}"
- headerSpacing="#{tabPanel.headerSpacing}"
- selectedTab="#{tabPanel.selectedTab}"
- activeTabClass="#{tabPanel.activeTabStyle}"
- disabledTabClass="#{tabPanel.disabledTabStyle}"
- inactiveTabClass="#{tabPanel.inactiveTabStyle}"
- contentClass="#{tabPanel.contentStyle}">
+<f:subview id="tabPanelSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:c="http://java.sun.com/jsp/jstl/core">
+ <rich:tabPanel id="tabPanelId" headerAlignment="#{tabPanel.headerAlignment}" width="#{tabPanel.width}"
+ height="#{tabPanel.height}" rendered="#{tabPanel.rendered}" title="#{tabPanel.title}" switchType="#{tabPanel.switchType}"
+ headerSpacing="#{tabPanel.headerSpacing}" selectedTab="#{tabPanel.selectedTab}" activeTabClass="#{tabPanel.activeTabStyle}"
+ disabledTabClass="#{tabPanel.disabledTabStyle}" inactiveTabClass="#{tabPanel.inactiveTabStyle}"
+ contentClass="#{tabPanel.contentStyle}" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')">
- <rich:tab id="tabOne" onmousedown="alert('OnMouseDown');"
- labelWidth="#{tabPanel.labelWidth}" label="#{tabPanel.label}">
- <h:outputText value="This is tab panel test example"
- styleClass="text1"></h:outputText>
- </rich:tab>
- <rich:tab id="tabTwo" label="Tab with image"
- disabled="#{tabPanel.disabledTab}">
- <f:facet name="header">
- <h:outputText value="client switchType from facet" />
- </f:facet>
- <h:graphicImage value="/pics/masshtaby_01.jpg" width="560"
- height="383"></h:graphicImage>
- </rich:tab>
- <rich:tab id="tabThree" label="Tab with some text"
- disabled="#{tabPanel.disabledTab}">
- <h:outputText
- value=" Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ <rich:tab id="tabOne" labelWidth="#{tabPanel.labelWidth}" label="#{tabPanel.label}"
+ onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"
+ ontabenter="print('ontabenterInputID', 'ontabenter work!')" ontableave="print('ontableaveInputID', 'ontableave work!')">
+ <h:outputText value="This is tab panel test example" styleClass="text1"></h:outputText>
+ </rich:tab>
+ <rich:tab id="tabTwo" label="Tab with image" disabled="#{tabPanel.disabledTab}"
+ onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"
+ ontabenter="print('ontabenterInputID', 'ontabenter work!')" ontableave="print('ontableaveInputID', 'ontableave work!')">
+ <f:facet name="header">
+ <h:outputText value="client switchType from facet" />
+ </f:facet>
+ <h:graphicImage value="/pics/masshtaby_01.jpg" width="560" height="383"></h:graphicImage>
+ </rich:tab>
+ <rich:tab id="tabThree" label="Tab with some text" disabled="#{tabPanel.disabledTab}"
+ onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"
+ ontabenter="print('ontabenterInputID', 'ontabenter work!')" ontableave="print('ontableaveInputID', 'ontableave work!')">
+ <h:outputText
+ value=" Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text..." />
- </rich:tab>
- </rich:tabPanel>
+ </rich:tab>
+ </rich:tabPanel>
- <rich:spacer height="20px"></rich:spacer>
-
- <h:panelGrid columns="2" cellspacing="10px">
- <h:outputText value="Width (px or %):"></h:outputText>
- <h:inputText value="#{tabPanel.width}">
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height (px or %):"></h:outputText>
- <h:inputText value="#{tabPanel.height}">
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Title:"></h:outputText>
- <h:inputText value="#{tabPanel.title}">
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="LabelWidth:"></h:outputText>
- <h:inputText value="#{tabPanel.labelWidth}">
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="SwitchType:"></h:outputText>
- <h:selectOneRadio value="#{tabPanel.switchType}">
- <f:selectItem itemLabel="client" itemValue="client" />
- <f:selectItem itemLabel="server" itemValue="server" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Header Alignment:"></h:outputText>
- <h:selectOneRadio value="#{tabPanel.headerAlignment}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="center" itemValue="center" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Header Spacing:"></h:outputText>
- <h:inputText value="#{tabPanel.headerSpacing}">
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Selected Tab:"></h:outputText>
- <h:selectOneRadio value="#{tabPanel.selectedTab}" onchange="submit();">
- <f:selectItem itemLabel="1" itemValue="tabOne" />
- <f:selectItem itemLabel="2" itemValue="tabTwo" />
- <f:selectItem itemLabel="3" itemValue="tabThr" />
- </h:selectOneRadio>
-
- <h:outputText value="Rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{tabPanel.rendered}"
- onclick="submit()">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Disable Tab"></h:outputText>
- <h:selectBooleanCheckbox value="#{tabPanel.disabledTab}"
- onclick="submit()">
- </h:selectBooleanCheckbox>
- <h:outputText value="Switch Styles:" />
- <h:commandButton action="#{tabPanel.doStyles}"
- value="#{tabPanel.btnLabel}" />
-
-
- </h:panelGrid>
-</h:form>
+ <rich:spacer height="20px"></rich:spacer>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,67 @@
+<f:subview id="tabPanelStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="tpPropertyID" switchType="client" opened="true" label="tabPanel property">
+ <h:panelGrid columns="2" cellspacing="10px">
+ <h:outputText value="Width (px or %):"></h:outputText>
+ <h:inputText value="#{tabPanel.width}" onchange="submit();" />
+
+ <h:outputText value="Height (px or %):"></h:outputText>
+ <h:inputText value="#{tabPanel.height}" onchange="submit();" />
+
+ <h:outputText value="Title:"></h:outputText>
+ <h:inputText value="#{tabPanel.title}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="LabelWidth:"></h:outputText>
+ <h:inputText value="#{tabPanel.labelWidth}" onchange="submit();" />
+
+ <h:outputText value="SwitchType:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Header Alignment:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.headerAlignment}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Header Spacing:"></h:outputText>
+ <h:inputText value="#{tabPanel.headerSpacing}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Selected Tab:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.selectedTab}" onchange="submit();">
+ <f:selectItem itemLabel="1" itemValue="tabOne" />
+ <f:selectItem itemLabel="2" itemValue="tabTwo" />
+ <f:selectItem itemLabel="3" itemValue="tabThr" />
+ </h:selectOneRadio>
+
+ <h:outputText value="immediate" />
+ <h:selectBooleanCheckbox value="#{tabPanel.immediate}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tabPanel.rendered}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disable Tab"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tabPanel.disabledTab}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{tabPanel.doStyles}" value="#{tabPanel.btnLabel}" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="tabPanelPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="dataTable straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{tabPanel.bTest1}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t1TabPanel}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{tabPanel.bTest2}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t2TabPanel}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{tabPanel.bTest3}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t3TabPanel}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{tabPanel.bTest4}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t4TabPanel}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{tabPanel.bTest5}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t5TabPanel}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanel.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanel.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanel.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,22 +1,20 @@
-<f:subview id="togglePanelSubviewID"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:ui="http://java.sun.com/jsf/facelets">
- <h:form id="tooggleTest">
- <rich:togglePanel id="panel1" switchType="#{togglePanel.switchType}"
- initialState="asus" stateOrder="asus,blank"
- style="width:300px!important">
+<f:subview id="togglePanelSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <rich:togglePanel id="panel1" switchType="#{togglePanel.switchType}" initialState="asus" stateOrder="asus,blank"
+ style="width:300px!important; overflow: hidden;" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')">
<f:facet name="blank">
<rich:panel>
<f:facet name="header">
<h:panelGroup>
- <rich:toggleControl id="toggleControl_blank"
- for="tooggleTest:panel1">
+ <rich:toggleControl id="toggleControl_blank" for="togglePanelSubviewID:panel1">
<h:outputText value="Expand" style="font-weight: bold;" />
- <h:graphicImage url="/pics/collapse.gif"
- style="border-width: 0px;" />
+ <h:graphicImage url="/pics/collapse.gif" style="border-width: 0px;" />
</rich:toggleControl>
</h:panelGroup>
</f:facet>
@@ -27,21 +25,16 @@
<rich:panel>
<f:facet name="header">
<h:panelGroup>
- <rich:toggleControl id="toggleControl_panel1"
- for="tooggleTest:panel1">
+ <rich:toggleControl id="toggleControl_panel1" for="togglePanelSubviewID:panel1">
<h:outputText value="Collapse" style="font-weight: bold;" />
- <h:graphicImage url="/pics/expand.gif"
- style="border-width: 0px;" />
+ <h:graphicImage url="/pics/expand.gif" style="border-width: 0px;" />
</rich:toggleControl>
</h:panelGroup>
</f:facet>
- <h:panelGrid columns="2" border="0"
- style="width: 100%;background-color: white;">
- <h:graphicImage url="/pics/asus.jpg" height="300" width="300"
- alt="asus.jpg" />
+ <h:panelGrid columns="2" border="0" style="width: 100%;background-color: white;">
+ <h:graphicImage url="/pics/asus.jpg" height="300" width="300" alt="asus.jpg" />
<h:panelGroup>
- <h:outputText style="font: 18px;font-weight: bold;"
- value="Asus F 3 Tc" />
+ <h:outputText style="font: 18px;font-weight: bold;" value="Asus F 3 Tc" />
<f:verbatim>
Processor: AMD Turion 64 X 2 - 1600 Mhz<br />
RAM: 1024 Mb<br />
@@ -55,36 +48,34 @@
</rich:panel>
</f:facet>
</rich:togglePanel>
-
+
<f:verbatim>
<br />
<br />
</f:verbatim>
-
- <rich:togglePanel id="panel2" switchType="#{togglePanel.switchType}"
- initialState="#{togglePanel.initialState}"
- stateOrder="#{togglePanel.stateOrder}">
+
+ <rich:togglePanel id="panel2" switchType="#{togglePanel.switchType}" initialState="#{togglePanel.initialState}"
+ stateOrder="#{togglePanel.stateOrder}" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')">
<f:facet name="asus">
<rich:panel>
<f:facet name="header">
<h:panelGroup>
- <h:outputText value="Customizable toggle panel"
- style="font-weight: bold;" />
- <rich:toggleControl id="toggleControl_panel_1"
- for="tooggleTest:panel2">
+ <h:outputText value="Customizable toggle panel" style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_1" for="togglePanelSubviewID:panel2">
<h:outputText value="Next"></h:outputText>
- <h:graphicImage url="/pics/expand.gif"
- style="border-width: 0px;" />
+ <h:graphicImage url="/pics/expand.gif" style="border-width: 0px;" />
</rich:toggleControl>
</h:panelGroup>
</f:facet>
- <h:panelGrid columns="2" border="0"
- style="width: 100%;background-color: white;">
- <h:graphicImage url="/pics/asus.jpg" height="300" width="300"
- alt="asus.jpg" />
+ <h:panelGrid columns="2" border="0" style="width: 100%;background-color: white;">
+ <h:graphicImage url="/pics/asus.jpg" height="300" width="300" alt="asus.jpg" />
<h:panelGroup>
- <h:outputText style="font: 18px;font-weight: bold;"
- value="Asus F 3 Tc" />
+ <h:outputText style="font: 18px;font-weight: bold;" value="Asus F 3 Tc" />
<f:verbatim>
Processor: AMD Turion 64 X 2 - 1600 Mhz<br />
RAM: 1024 Mb<br />
@@ -102,23 +93,17 @@
<rich:panel>
<f:facet name="header">
<h:panelGroup>
- <h:outputText value="Customizable toggle panel"
- style="font-weight: bold;" />
- <rich:toggleControl id="toggleControl_panel_2"
- for="tooggleTest:panel2">
+ <h:outputText value="Customizable toggle panel" style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_2" for="togglePanelSubviewID:panel2">
<h:outputText value="Next"></h:outputText>
- <h:graphicImage url="/pics/expand.gif"
- style="border-width: 0px;" />
+ <h:graphicImage url="/pics/expand.gif" style="border-width: 0px;" />
</rich:toggleControl>
</h:panelGroup>
</f:facet>
- <h:panelGrid columns="2" border="0"
- style="width: 100%;background-color: yellow;">
- <h:graphicImage url="/pics/benq.jpg" height="300" width="300"
- alt="benq.jpg" />
+ <h:panelGrid columns="2" border="0" style="width: 100%;background-color: yellow;">
+ <h:graphicImage url="/pics/benq.jpg" height="300" width="300" alt="benq.jpg" />
<h:panelGroup>
- <h:outputText style="font: 18px;font-weight: bold;"
- value="BenQ A 52" />
+ <h:outputText style="font: 18px;font-weight: bold;" value="BenQ A 52" />
<f:verbatim>
Processor: Core Duo T2250 (1.73GHz)<br />
RAM: 1024 Mb<br />
@@ -136,23 +121,17 @@
<rich:panel>
<f:facet name="header">
<h:panelGroup>
- <h:outputText value="Customizable toggle panel"
- style="font-weight: bold;" />
- <rich:toggleControl id="toggleControl_panel_3"
- for="tooggleTest:panel2">
+ <h:outputText value="Customizable toggle panel" style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_3" for="togglePanelSubviewID:panel2">
<h:outputText value="Next"></h:outputText>
- <h:graphicImage url="/pics/expand.gif"
- style="border-width: 0px;" />
+ <h:graphicImage url="/pics/expand.gif" style="border-width: 0px;" />
</rich:toggleControl>
</h:panelGroup>
</f:facet>
- <h:panelGrid columns="2" border="0"
- style="width: 100%;background-color: orange;">
- <h:graphicImage url="/pics/toshiba.jpg" height="300" width="300"
- alt="toshiba.jpg" />
+ <h:panelGrid columns="2" border="0" style="width: 100%;background-color: orange;">
+ <h:graphicImage url="/pics/toshiba.jpg" height="300" width="300" alt="toshiba.jpg" />
<h:panelGroup>
- <h:outputText style="font: 18px;font-weight: bold;"
- value="Toshiba Satellite A 100-784" />
+ <h:outputText style="font: 18px;font-weight: bold;" value="Toshiba Satellite A 100-784" />
<f:verbatim>
Processor: Intel Core Duo T2250 - 1.73GHz<br />
RAM: 1024 Mb<br />
@@ -166,38 +145,6 @@
</rich:panel>
</f:facet>
</rich:togglePanel>
- <f:verbatim>
- <br />
- <br />
- </f:verbatim>
- <rich:separator height="5px" width="500px" />
- <h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
- <h:outputText value="InitialState:"></h:outputText>
- <h:selectOneRadio value="#{togglePanel.initialState}">
- <f:selectItem itemLabel="Asus" itemValue="asus" />
- <f:selectItem itemLabel="Benq" itemValue="benq" />
- <f:selectItem itemLabel="toshiba" itemValue="toshiba" />
- <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="StateOrder:"></h:outputText>
- <h:selectOneRadio value="#{togglePanel.stateOrder}">
- <f:selectItem itemLabel="Asus,Benq,Toshiba"
- itemValue="asus,benq,toshiba" />
- <f:selectItem itemLabel="Toshiba, Asus, Benq"
- itemValue="toshiba,asus,benq" />
- <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="switchType:"></h:outputText>
- <h:selectOneRadio value="#{togglePanel.switchType}">
- <f:selectItem itemLabel="client" itemValue="client" />
- <f:selectItem itemLabel="server" itemValue="server" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <a4j:support event="onclick" reRender="panel1,panel2"></a4j:support>
- </h:selectOneRadio>
- </h:panelGrid>
<ui:debug hotkey="L"></ui:debug>
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,33 @@
+<f:subview id="togglePanelPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="tPanelPropertyID" switchType="client" opened="true" label="tooglePanel property">
+ <h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
+ <h:outputText value="InitialState:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.initialState}">
+ <f:selectItem itemLabel="Asus" itemValue="asus" />
+ <f:selectItem itemLabel="Benq" itemValue="benq" />
+ <f:selectItem itemLabel="toshiba" itemValue="toshiba" />
+ <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="StateOrder:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.stateOrder}">
+ <f:selectItem itemLabel="Asus,Benq,Toshiba" itemValue="asus,benq,toshiba" />
+ <f:selectItem itemLabel="Toshiba, Asus, Benq" itemValue="toshiba,asus,benq" />
+ <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="switchType:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick" reRender="panel1,panel2"></a4j:support>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="togglePanelStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="tooglePanel straightforward">
+ <h:panelGrid columns="2">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{togglePanel.bTest1}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1TogglePanel}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{togglePanel.bTest2}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2TogglePanel}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{togglePanel.bTest3}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3TogglePanel}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{togglePanel.bTest4}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4TogglePanel}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{togglePanel.bTest5}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5TogglePanel}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/ToolBar/ToolBar.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ToolBar/ToolBar.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/ToolBar/ToolBar.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -3,7 +3,6 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich">
- <h:form>
<h:messages></h:messages>
<rich:toolBar id="toolBarId" width="#{toolBar.width}"
@@ -33,29 +32,4 @@
</rich:toolBar>
- <h:panelGrid columns="2">
- <h:outputText value="Image location:"></h:outputText>
- <h:selectOneRadio value="#{toolBar.location}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
- </h:selectOneRadio>
-
-
- <h:outputText value="itemSeparator:"></h:outputText>
- <h:selectOneRadio value="#{toolBar.itemSeparator}">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="line" itemValue="line" />
- <f:selectItem itemLabel="square" itemValue="square" />
- <f:selectItem itemLabel="disc" itemValue="disc" />
- <f:selectItem itemLabel="grid" itemValue="grid" />
- <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Switch Styles" />
- <a4j:commandButton id="slBtn" value="#{toolBar.btnLabel}"
- action="#{toolBar.doStyles}" reRender="toolBarId,slBtn">
- </a4j:commandButton>
- </h:panelGrid>
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/ToolBar/ToolBarProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ToolBar/ToolBarProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ToolBar/ToolBarProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,32 @@
+<f:subview id="toolBarPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:panelGrid columns="2">
+ <h:outputText value="Image location:"></h:outputText>
+ <h:selectOneRadio value="#{toolBar.location}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
+ </h:selectOneRadio>
+
+
+ <h:outputText value="itemSeparator:"></h:outputText>
+ <h:selectOneRadio value="#{toolBar.itemSeparator}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="line" itemValue="line" />
+ <f:selectItem itemLabel="square" itemValue="square" />
+ <f:selectItem itemLabel="disc" itemValue="disc" />
+ <f:selectItem itemLabel="grid" itemValue="grid" />
+ <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Switch Styles" />
+ <a4j:commandButton id="slBtn" value="#{toolBar.btnLabel}"
+ action="#{toolBar.doStyles}" reRender="toolBarId,slBtn">
+ </a4j:commandButton>
+ </h:panelGrid>
+
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Tooltip/Tooltip.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Tooltip/Tooltip.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Tooltip/Tooltip.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,9 +1,5 @@
-<f:subview id="tooltipSubviewID"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich">
- <h:form>
+<f:subview id="tooltipSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich">
<h:messages></h:messages>
@@ -13,14 +9,14 @@
<br />
</f:verbatim>
- <h:graphicImage value="/pics/ajax_process.gif" width="15px"
- height="15px">
- <rich:toolTip value="ajax progress">
- </rich:toolTip>
- </h:graphicImage>
-
<h:inputText value="Text" id="inp1" size="50">
- <rich:toolTip value="toolTip for input text">
+ <rich:toolTip value="toolTip for input text" onclick="print('onclickInputID', 'onclick work!')"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ onhide="print('onhideInputID', 'onhide work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')" onshow="print('onshowInputID', 'onshow work!')">
<f:facet name="defaultContent">
<f:verbatim>DEFAULT VALUE</f:verbatim>
</f:facet>
@@ -28,7 +24,13 @@
</h:inputText>
<h:selectOneListbox value="1" id="ddl">
- <rich:toolTip value="1231231">
+ <rich:toolTip value="1231231" onclick="print('onclickInputID', 'onclick work!')"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ onhide="print('onhideInputID', 'onhide work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')" onshow="print('onshowInputID', 'onshow work!')">
<f:facet name="defaultContent">
<f:verbatim>DEFAULT VALUE DropDown</f:verbatim>
</f:facet>
@@ -46,13 +48,16 @@
</f:verbatim>
<rich:panel style="width:50px; height:50px; background-color: gray">
- <rich:toolTip id="tooltipID" value="#{tooltip.value}"
- mode="#{tooltip.mode}" delay="#{tooltip.delay}" layout="#{tooltip.layout}"
- horizontalOffset="#{tooltip.horizontalOffset}"
- verticalOffset="#{tooltip.verticalOffset}"
- followMouse="#{tooltip.followMouse}"
- direction="#{tooltip.direction}" style="#{tooltip.style}"
- disabled="#{tooltip.disabled}" rendered="#{tooltip.rendered}">
+ <rich:toolTip id="tooltipID" value="#{tooltip.value}" mode="#{tooltip.mode}"
+ layout="#{tooltip.layout}" horizontalOffset="#{tooltip.horizontalOffset}" verticalOffset="#{tooltip.verticalOffset}"
+ followMouse="#{tooltip.followMouse}" direction="#{tooltip.direction}" style="#{tooltip.style}" disabled="#{tooltip.disabled}"
+ rendered="#{tooltip.rendered}" onclick="print('onclickInputID', 'onclick work!')"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ onhide="print('onhideInputID', 'onhide work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')" onshow="print('onshowInputID', 'onshow work!')">
<h:graphicImage id="pricsID" value="/pics/ajax_process.gif"></h:graphicImage>
</rich:toolTip>
</rich:panel>
@@ -60,80 +65,5 @@
<f:verbatim>
<br />
</f:verbatim>
-
- <h:panelGrid columns="2">
- <h:outputText value="Text:"></h:outputText>
- <h:inputText value="#{tooltip.value}">
- <a4j:support event="onchange" reRender="tooltipID" />
- </h:inputText>
-
- <h:outputText value="Delay"></h:outputText>
- <h:inputText value="#{tooltip.delay}">
- <a4j:support event="onchange" reRender="tooltipID" />
- </h:inputText>
-
- <h:outputText value="Layout:"></h:outputText>
- <h:selectOneRadio value="#{tooltip.layout}">
- <f:selectItem itemLabel="inline" itemValue="inline" />
- <f:selectItem itemLabel="block" itemValue="block" />
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectOneRadio>
-
- <h:outputText value="Mode:"></h:outputText>
- <h:selectOneRadio value="#{tooltip.mode}">
- <f:selectItem itemLabel="client" itemValue="client" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectOneRadio>
- <h:outputText value="Horizontal offset:"></h:outputText>
- <h:inputText value="#{tooltip.horizontalOffset}">
- <a4j:support event="onchange" reRender="tooltipID" />
- </h:inputText>
-
- <h:outputText value="Vertical offset:"></h:outputText>
- <h:inputText value="#{tooltip.verticalOffset}">
- <a4j:support event="onchange" reRender="tooltipID" />
- </h:inputText>
-
- <h:outputText value="Follow mouse:"></h:outputText>
- <h:selectBooleanCheckbox value="#{tooltip.followMouse}">
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Direction:" />
- <h:selectOneRadio value="#{tooltip.direction}">
- <f:selectItem itemLabel="top-right" itemValue="top-right" />
- <f:selectItem itemLabel="top-left" itemValue="top-left" />
- <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
- <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectOneRadio>
-
- <h:outputText value="Style:"></h:outputText>
- <h:selectOneRadio value="#{tooltip.style}">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="border:3px; font:bold 14px;"
- itemValue="border:3px; font:bold 14px;" />
- <f:selectItem
- itemLabel="border:green 3px solid; background-color:yellow;"
- itemValue="border:green 3px solid; background-color:yellow;" />
- <f:selectItem
- itemLabel="border:green 2px solid; font-family:monospace;"
- itemValue="border:green 2px solid; font-family:monospace;" />
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectOneRadio>
-
- <h:outputText value="Disambled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{tooltip.disabled}">
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{tooltip.rendered}">
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectBooleanCheckbox>
- </h:panelGrid>
-
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,79 @@
+<f:subview id="toolTipStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="toolTipPropertyID" switchType="client" opened="true" label="toolTip property">
+ <h:panelGrid columns="2">
+ <h:outputText value="Text:"></h:outputText>
+ <h:inputText value="#{tooltip.value}">
+ <a4j:support event="onchange" reRender="tooltipID" />
+ </h:inputText>
+
+ <h:outputText value="Delay"></h:outputText>
+ <h:inputText value="#{tooltip.delay}">
+ <a4j:support event="onchange" reRender="tooltipID" />
+ </h:inputText>
+
+ <h:outputText value="Layout:"></h:outputText>
+ <h:selectOneRadio value="#{tooltip.layout}">
+ <f:selectItem itemLabel="inline" itemValue="inline" />
+ <f:selectItem itemLabel="block" itemValue="block" />
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Mode:"></h:outputText>
+ <h:selectOneRadio value="#{tooltip.mode}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Horizontal offset:"></h:outputText>
+ <h:inputText value="#{tooltip.horizontalOffset}">
+ <a4j:support event="onchange" reRender="tooltipID" />
+ </h:inputText>
+
+ <h:outputText value="Vertical offset:"></h:outputText>
+ <h:inputText value="#{tooltip.verticalOffset}">
+ <a4j:support event="onchange" reRender="tooltipID" />
+ </h:inputText>
+
+ <h:outputText value="Follow mouse:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tooltip.followMouse}">
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Direction:" />
+ <h:selectOneRadio value="#{tooltip.direction}">
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Style:"></h:outputText>
+ <h:selectOneRadio value="#{tooltip.style}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="border:3px; font:bold 14px;" itemValue="border:3px; font:bold 14px;" />
+ <f:selectItem itemLabel="border:green 3px solid; background-color:yellow;"
+ itemValue="border:green 3px solid; background-color:yellow;" />
+ <f:selectItem itemLabel="border:green 2px solid; font-family:monospace;"
+ itemValue="border:green 2px solid; font-family:monospace;" />
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Disambled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tooltip.disabled}">
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tooltip.rendered}">
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="toolTipPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="toolTipStraightforwardID" switchType="client" opened="true" label="toolTip straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{tooltip.bTest1}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Tooltip}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{tooltip.bTest2}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Tooltip}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{tooltip.bTest3}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Tooltip}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{tooltip.bTest4}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Tooltip}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{tooltip.bTest5}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Tooltip}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Tree/Tree.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Tree/Tree.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/Tree/Tree.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,29 +1,25 @@
-<f:subview id="treeSubviewID"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:dnd="http://richfaces.ajax4jsf.org/drag-drop">
- <h:form>
+<f:subview id="treeSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:dnd="http://richfaces.ajax4jsf.org/drag-drop">
<a4j:outputPanel ajaxRendered="true">
<h:messages />
</a4j:outputPanel>
-
- <rich:tree id="tree" switchType="#{bean.switchType}"
- value="#{bean.data}" var="data"
- nodeFace="#{data.name != 'param-value' ? 'input' : 'text'}"
- changeExpandListener="#{bean.onExpand}"
- nodeSelectListener="#{bean.onSelect}" binding="#{bean.tree}"
- onselected="window.status='selectedNode: '+event.selectedNode;"
- onexpand="window.status='expandedNode: '+event.expandedNode"
- oncollapse="window.status='collapsedNode: '+ event.collapsedNode"
- ajaxSubmitSelection="true" reRender="outputText, selectOneListbox"
- preserveModel="none" dragIndicator="treeIndicator" immediate="false"
- acceptedTypes="file1" dragType="#{bean.dragOn ? 'file1' : ''}"
- iconCollapsed="#{bean.iconCollapsed}"
- iconExpanded="#{bean.iconExpanded}" iconLeaf="#{bean.iconLeaf}"
- icon="#{bean.icon}" dropListener="#{bean.processDrop}">
+ <rich:tree id="tree" switchType="#{bean.switchType}" value="#{bean.data}" var="data"
+ nodeFace="#{data.name != 'param-value' ? 'input' : 'text'}" changeExpandListener="#{bean.onExpand}"
+ nodeSelectListener="#{bean.onSelect}" binding="#{bean.tree}" onselected="window.status='selectedNode: '+event.selectedNode;"
+ onexpand="window.status='expandedNode: '+event.expandedNode" oncollapse="window.status='collapsedNode: '+ event.collapsedNode"
+ ajaxSubmitSelection="true" reRender="outputText, selectOneListbox" preserveModel="none" dragIndicator="treeIndicator"
+ immediate="false" acceptedTypes="file1" dragType="#{bean.dragOn ? 'file1' : ''}" iconCollapsed="#{bean.iconCollapsed}"
+ iconExpanded="#{bean.iconExpanded}" iconLeaf="#{bean.iconLeaf}" icon="#{bean.icon}" dropListener="#{bean.processDrop}"
+ onclick="print('onclickInputID', 'onclick work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragenter="print('ondragenterInputID', 'ondragenter work!')"
+ ondragexit="print('ondragexitInputID', 'ondragexit work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ ondrop="print('ondropInputID', 'ondrop work!')" ondropend="print('ondropendInputID', 'ondropend work!')"
+ onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
+ onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+
<f:facet name="icon">
<h:outputText value="icon" rendered="#{bean.renderFacets}" />
</f:facet>
@@ -44,27 +40,24 @@
oncollapse="Element.removeClassName(event['treeItem'].getElement(), 'colored')"
onexpand="Element.addClassName(event['treeItem'].getElement(), 'colored')">
<h:outputText value="#{data} : " />
- <h:inputText value="#{data.name}" required="true"
- styleClass="inputs">
+ <h:inputText value="#{data.name}" required="true" styleClass="inputs">
</h:inputText>
<dnd:dndParam name="nodeParam" value="Node Parameter" />
</rich:treeNode>
- <rich:treeNode type="text" nodeClass="customNode"
- acceptedTypes="file2" onselected="return false;">
+ <rich:treeNode type="text" nodeClass="customNode" acceptedTypes="file2" onselected="return false;">
<h:outputText value="#{data}" />
</rich:treeNode>
</rich:tree>
-
+
<f:verbatim>
<br />
</f:verbatim>
<h:outputText value="Enter path to expand:" />
<h:inputText value="#{bean.pathToExpand}">
- <a4j:support event="onchange" reRender="tree"
- action="#{bean.expandNode}" />
+ <a4j:support event="onchange" reRender="tree" action="#{bean.expandNode}" />
</h:inputText>
<rich:separator></rich:separator>
@@ -81,11 +74,9 @@
<h:selectBooleanCheckbox value="#{bean.dragOn}" onchange="submit();"></h:selectBooleanCheckbox>
<h:outputText value="Render facets:" />
- <h:selectBooleanCheckbox value="#{bean.renderFacets}"
- onchange="submit();"></h:selectBooleanCheckbox>
+ <h:selectBooleanCheckbox value="#{bean.renderFacets}" onchange="submit();"></h:selectBooleanCheckbox>
- <h:commandButton value="#{bean.commandButtonCaption}"
- actionListener="#{bean.changeIcons}" />
+ <h:commandButton value="#{bean.commandButtonCaption}" actionListener="#{bean.changeIcons}" />
</h:panelGrid>
<f:verbatim>
@@ -93,8 +84,7 @@
<br />
</f:verbatim>
- <rich:tree id="testTree" var="_data" switchType="ajax"
- ajaxSubmitSelection="true" preserveModel="none" value="#{bean.data1}"
+ <rich:tree id="testTree" var="_data" switchType="ajax" ajaxSubmitSelection="true" preserveModel="none" value="#{bean.data1}"
nodeSelectListener="#{bean.onSelectInc}" nodeFace="node">
<rich:treeNode type="node">
<h:outputText value="#{_data}" />
@@ -104,11 +94,10 @@
<h:outputText value="Tree without treeNode:"></h:outputText>
<rich:separator></rich:separator>
- <rich:tree switchType="client" style="width:300px"
- value="#{pathwayBean.pathwayTree}" var="item" nodeFace="#{item.type}">
+ <rich:tree switchType="client" style="width:300px" value="#{pathwayBean.pathwayTree}" var="item" nodeFace="#{item.type}">
<rich:treeNode type="library">
<h:outputText value="#{item.type}" />
- </rich:treeNode>
+ </rich:treeNode>
<rich:treeNode type="pathway">
<h:outputText value="#{item.name}" />
</rich:treeNode>
@@ -118,5 +107,4 @@
</rich:tree>
<rich:spacer></rich:spacer>
- </h:form>
</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/Tree/TreeProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Tree/TreeProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Tree/TreeProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,8 @@
+<f:subview id="treePropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,59 +1,19 @@
-<f:subview id="virtualEarthSubviewID"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:c="http://java.sun.com/jstl/core"
- xmlns:rich="http://richfaces.org/rich"
+<f:subview id="virtualEarthSubviewID" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:c="http://java.sun.com/jstl/core" xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
- <h:form>
- <h:panelGrid columns="2">
- <rich:virtualEarth style="width:800px;" id="gm" lat="37.97"
- dashboardSize="Normal" zoom="#{virtualEarth.zoom}" mapStyle="Hybrid"
- var="map" />
+ <h:panelGrid columns="2">
+ <rich:virtualEarth style="width:800px;" version="#{virtualEarth.version}" id="gm" lat="37.97" dashboardSize="Normal" zoom="#{virtualEarth.zoom}"
+ mapStyle="Hybrid" var="map" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"/>
- <h:panelGroup>
- <f:verbatim>
- Dashboard:<br />
- <a href="javascript:void(0);"
- onclick="map.HideDashboard();return false;">Remove</a>
- <a href="javascript:void(0);"
- onclick="map.ShowDashboard();return false;">Show</a>
- <br />
- <br />
- Type:<br />
- <a href="javascript:void(0);"
- onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
- <a href="javascript:void(0);"
- onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
- <a href="javascript:void(0);"
- onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
- <a href="javascript:void(0);"
- onclick="map.SetMapStyle(VEMapStyle.Birdseye);return false;">Birdseye</a>
- <br />
- <br />
- Zoom:<br />
- <a href="javascript:void(0);" onclick="map.ZoomIn();return false;">In</a>
- <a href="javascript:void(0);" onclick="map.ZoomOut();return false;">Out</a>
- <br />
- <br />
- <a href="javascript:void(0);" onclick="showExadel();return false;">Show
- Exadel Office</a>
- <br />
- <a href="javascript:void(0);" onclick="showExadelInMinsk();return false;">Show Exadel in
- Belarus</a>
- </f:verbatim>
- </h:panelGroup>
-
- </h:panelGrid>
- <a4j:outputPanel id="zoomer">
- <script>
- function zoomIt() {
- map.setZoom(#{virtualEarth.zoom});
- }
- </script>
- </a4j:outputPanel>
- <a4j:outputPanel>
- <script>
+ </h:panelGrid>
+
+ <a4j:outputPanel>
+ <script>
function createMarker(point,html) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
@@ -72,6 +32,5 @@
map.SetMapStyle(VEMapStyle.Birdseye);
}
</script>
- </a4j:outputPanel>
- </h:form>
-</f:subview>
+ </a4j:outputPanel>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,31 @@
+<f:subview id="virtualEarthPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:panelGroup>
+ <f:verbatim>
+ Dashboard:<br />
+ <a href="javascript:void(0);" onclick="map.HideDashboard();return false;">Remove</a>
+ <a href="javascript:void(0);" onclick="map.ShowDashboard();return false;">Show</a>
+ <br />
+ <br />
+ Type:<br />
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Birdseye);return false;">Birdseye</a>
+ <br />
+ <br />
+ Zoom:<br />
+ <a href="javascript:void(0);" onclick="map.ZoomIn();return false;">In</a>
+ <a href="javascript:void(0);" onclick="map.ZoomOut();return false;">Out</a>
+ <br />
+ <br />
+ <a href="javascript:void(0);" onclick="showExadel();return false;">Show Exadel Office</a>
+ <br />
+ <a href="javascript:void(0);" onclick="showExadelInMinsk();return false;">Show Exadel in Belarus</a>
+ </f:verbatim>
+ </h:panelGroup>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ComponentControl.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ComponentControl.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ComponentControl.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>componentControl</managed-bean-name>
+ <managed-bean-class>componentControl.ComponentControl</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>contextMenu</managed-bean-name>
+ <managed-bean-class>contextMenu.ContextMenu</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Converter.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Converter.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Converter.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <converter>
+ <converter-id>listShuttleConverter</converter-id>
+ <converter-class>util.converter.ListShuttleConverter</converter-class>
+ </converter>
+ <converter>
+ <converter-id>orderingListConverter</converter-id>
+ <converter-class>util.converter.OrderingListConverter</converter-class>
+ </converter>
+</faces-config>
Added: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dataDefinitionList</managed-bean-name>
+ <managed-bean-class>dataDefinitionList.DataDefinitionList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dataOrderedList</managed-bean-name>
+ <managed-bean-class>dataOrderedList.DataOrderedList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Deleted: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DradAbdDrop.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DradAbdDrop.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DradAbdDrop.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,10 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
- "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
-<faces-config>
- <managed-bean>
- <managed-bean-name>dndBean</managed-bean-name>
- <managed-bean-class>dnd.DndBean</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
-</faces-config>
Added: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DragAndDrop.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DragAndDrop.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-DragAndDrop.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dndBean</managed-bean-name>
+ <managed-bean-class>dnd.DndBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ </faces-config>
Modified: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Icon.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Icon.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Icon.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -4,7 +4,7 @@
<faces-config>
<managed-bean>
<managed-bean-name>icon</managed-bean-name>
- <managed-bean-class>style.icon.Icon</managed-bean-class>
+ <managed-bean-class>util.icon.Icon</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>
Added: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>listShuttle</managed-bean-name>
+ <managed-bean-class>listShuttle.ListShuttle</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-OrderingList.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-OrderingList.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-OrderingList.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>orderingList</managed-bean-name>
+ <managed-bean-class>orderingList.OrderingList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-RichPanelsBean.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-RichPanelsBean.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-RichPanelsBean.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>richPanelsBean</managed-bean-name>
+ <managed-bean-class>richPanels.RichPanelsBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Deleted: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-SelectOneMenuPage.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-SelectOneMenuPage.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-SelectOneMenuPage.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,10 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
- "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
-<faces-config>
- <managed-bean>
- <managed-bean-name>somp</managed-bean-name>
- <managed-bean-class>selectOneMenuPage.SelectOneMenuPage</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
-</faces-config>
Modified: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Skin.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Skin.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Skin.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,9 +2,9 @@
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
- <managed-bean>
- <managed-bean-name>skinBean</managed-bean-name>
- <managed-bean-class>skins.Skins</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
+ <managed-bean>
+ <managed-bean-name>skinBean</managed-bean-name>
+ <managed-bean-class>util.skins.Skins</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
</faces-config>
Added: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-jQuery.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-jQuery.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-jQuery.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>jQuery</managed-bean-name>
+ <managed-bean-class>jQuery.JQuery</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Modified: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -10,7 +10,7 @@
</navigation-case>
<navigation-case>
<from-outcome>Spinner</from-outcome>
- <to-view-id>/inputNumberSpinner/inputNumberSpinner.xhtml</to-view-id>
+ <to-view-id>/InputNumberSpinner/InputNumberSpinner.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>Panel</from-outcome>
@@ -46,7 +46,7 @@
</navigation-case>
<navigation-case>
<from-outcome>Slide</from-outcome>
- <to-view-id>/inputNumberSlider/inputNumberSlider.xhtml</to-view-id>
+ <to-view-id>/InputNumberSlider/InputNumberSlider.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>PanelBar</from-outcome>
@@ -66,15 +66,15 @@
</navigation-case>
<navigation-case>
<from-outcome>dnd</from-outcome>
- <to-view-id>/DradAndDrop/DragAndDrop.xhtml</to-view-id>
+ <to-view-id>/DragAndDrop/DragAndDrop.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>DS</from-outcome>
- <to-view-id>/DataScroller/DS.xhtml</to-view-id>
+ <to-view-id>/DataScroller/DataScroller.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>DDMenu</from-outcome>
- <to-view-id>/DropDownMenu/DDMenu.xhtml</to-view-id>
+ <to-view-id>/DropDownMenu/DropDownMenu.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>DFS</from-outcome>
@@ -117,7 +117,7 @@
<to-view-id>/ScrollableDataTable/ScrollableDataTable.xhtml</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>Test</from-outcome>
+ <from-outcome>RichFaces</from-outcome>
<to-view-id>/pages/Rich/Rich.xhtml</to-view-id>
</navigation-case>
<navigation-case>
@@ -126,18 +126,26 @@
</navigation-case>
<navigation-case>
<from-outcome>RichTest</from-outcome>
- <to-view-id>/Rich/RichTest.xhtml</to-view-id>
+ <to-view-id>/RichTest/RichTest.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>CustomizePage</from-outcome>
<to-view-id>/CustomizePage/CustomizePage.xhtml</to-view-id>
</navigation-case>
+ <navigation-case>
+ <from-outcome>RichPanels</from-outcome>
+ <to-view-id>/pages/RichPanels/RichPanels.xhtml</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>jQuery</from-outcome>
+ <to-view-id>/jQuery/jQuery.xhtml</to-view-id>
+ </navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/Panel/Panel.xhtml</from-view-id>
<navigation-case>
<from-outcome>Sample2</from-outcome>
- <to-view-id>/Panel/panel2.xhtml</to-view-id>
+ <to-view-id>/Panel/Panel2.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
@@ -155,9 +163,11 @@
</navigation-case>
</navigation-rule>
<application>
- <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+ <locale-config>
+ <default-locale>en</default-locale>
+ </locale-config>
</application>
<lifecycle>
- <phase-listener id="phaseTracker">demo.PhaseTracker</phase-listener>
+ <phase-listener id="phaseTracker">util.phaseTracker.PhaseTracker</phase-listener>
</lifecycle>
</faces-config>
Modified: trunk/test-applications/facelets/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/web.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/web.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
- <description>Vcp Test app.</description>
- <display-name>vcp-ComponentsTesting_3_0(1.1_F)</display-name>
+ <description>RF Test-Application</description>
+ <display-name>test-application</display-name>
<context-param>
<param-name>org.ajax4jsf.SKIN</param-name>
<param-value>#{skinBean.skin}</param-value>
@@ -33,9 +33,22 @@
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
- <param-value>/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,/WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,/WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,/WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,/WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,/WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,/WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,/WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,/WEB-INF/faces-config-DradAbdDrop.xml,/WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,/WEB-INF/faces-config-VirtualEarth!
.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,/WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,/WEB-INF/faces-config-SelectOneMenuPage.xml,/WEB-INF/faces-config-RichTest.xml</param-value>
+ <param-value>/WEB-INF/faces-config-RichPanelsBean.xml,/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,
+ /WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,
+ /WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,
+ /WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,
+ /WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,
+ /WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,
+ /WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,
+ /WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,
+ /WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,
+ /WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
+ /WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
+ /WEB-INF/faces-config-RichTest.xml,/WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-DragAndDrop.xml,
+ /WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml,
+ /WEB-INF/faces-config-ContextMenu.xml,/WEB-INF/faces-config-ListShuttle.xml,/WEB-INF/faces-config-Converter.xml,/WEB-INF/faces-config-ComponentControl.xml</param-value>
</context-param>
- <context-param>
+ <context-param>
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
<param-value>false</param-value>
</context-param>
Added: trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/InputNumberSliderProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/InputNumberSliderProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/InputNumberSliderProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,106 @@
+<f:subview id="inputNumberSliderPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="iNSliderPropertyID" switchType="client" opened="true" label="inputNumberSlider property">
+ <h:panelGrid columns="2" cellspacing="10px" border="1">
+ <h:outputText value="value" />
+ <h:inputText value="#{inputNumberSlider.value}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="inputPosition"></h:outputText>
+ <h:selectOneRadio value="#{inputNumberSlider.inputPosition}">
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Width:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.width}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Max Value:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.maxValue}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Min Value:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.minValue}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Input Size:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.inputSize}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Input MaxLength:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.maxlength}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Step:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.step}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="tabindex" />
+ <h:inputText value="#{inputNumberSlider.tabindex}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Disabled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.disabled}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.rendered}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Manual Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.enableManualInput}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Boundary Values:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showBoundaryValues}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Show Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showInput}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="showToolTip" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showToolTip}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="required" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.required}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage" />
+ <h:inputText value="#{inputNumberSlider.requiredMessage}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="immediate" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.immediate}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Switch Styles" />
+ <a4j:commandButton id="slBtn" value="#{inputNumberSlider.btnLabel}" action="#{inputNumberSlider.doStyles}"
+ reRender="SliderId,slBtn">
+ </a4j:commandButton>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/InputNumberSliderStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/InputNumberSliderStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/InputNumberSliderStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="inputNumberSliderStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="inputNumberSlider straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest1}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1INSlider}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest2}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2INSlider}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest3}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3INSlider}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest4}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4INSlider}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest5}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5INSlider}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/inputNumberSlider.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/inputNumberSlider.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/inputNumberSlider.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,174 +1,22 @@
-<f:subview id="inputNumberSliderSubviewID"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich">
- <h:form>
+<f:subview id="inputNumberSliderSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich">
<h:panelGrid columns="1">
- <h:outputText value="Event:"></h:outputText>
- <rich:inputNumberSlider minValue="0" maxValue="100" width="300px"
- onmousedown="alert('OnMouseDown');" onblur="" onchange="" onclick=""
- ondblclick="" onerror="" onfocus="" onselect="" onkeydown=""
- onkeypress="" onkeyup="" onmousemove="" onmouseout="" onmouseover=""
- onmouseup=""></rich:inputNumberSlider>
-
- <rich:spacer height="15px" width="300px"></rich:spacer>
-
- <rich:inputNumberSlider id="SliderId"
- immediate="#{inputNumberSlider.immediate}"
- inputPosition="#{inputNumberSlider.inputPosition}"
- showToolTip="#{inputNumberSlider.showToolTip}"
- tabindex="#{inputNumberSlider.tabindex}"
- value="#{inputNumberSlider.value}"
- valueChangeListener="key"
- required="#{inputNumberSlider.rendered}"
- requiredMessage="#{inputNumberSlider.requiredMessage}"
- disabled="#{inputNumberSlider.disabled}"
- enableManualInput="#{inputNumberSlider.enableManualInput}"
- inputSize="#{inputNumberSlider.inputSize}"
- maxValue="#{inputNumberSlider.maxValue}"
- minValue="#{inputNumberSlider.minValue}"
- rendered="#{inputNumberSlider.rendered}"
- showBoundaryValues="#{inputNumberSlider.showBoundaryValues}"
- step="#{inputNumberSlider.step}"
- showInput="#{inputNumberSlider.showInput}"
- width="#{inputNumberSlider.width}"
- barClass="#{inputNumberSlider.barStyle}"
- tipClass="#{inputNumberSlider.tipStyle}"
- inputClass="#{inputNumberSlider.inputStyle}"
- handleClass="#{inputNumberSlider.handleStyle}"
- styleClass="#{inputNumberSlider.tipStyle}"
- maxlength="#{inputNumberSlider.maxlength}">
- <a4j:support action="#{inputNumberSlider.changeListener}" event="onchange" reRender="work"></a4j:support>
+ <rich:inputNumberSlider id="SliderId" immediate="#{inputNumberSlider.immediate}"
+ inputPosition="#{inputNumberSlider.inputPosition}" showToolTip="#{inputNumberSlider.showToolTip}"
+ tabindex="#{inputNumberSlider.tabindex}" value="#{inputNumberSlider.value}" valueChangeListener="#{inputNumberSlider.valueChangeListener}"
+ required="#{inputNumberSlider.rendered}" requiredMessage="#{inputNumberSlider.requiredMessage}"
+ disabled="#{inputNumberSlider.disabled}" enableManualInput="#{inputNumberSlider.enableManualInput}"
+ inputSize="#{inputNumberSlider.inputSize}" maxValue="#{inputNumberSlider.maxValue}" minValue="#{inputNumberSlider.minValue}"
+ rendered="#{inputNumberSlider.rendered}" showBoundaryValues="#{inputNumberSlider.showBoundaryValues}"
+ step="#{inputNumberSlider.step}" showInput="#{inputNumberSlider.showInput}" width="#{inputNumberSlider.width}"
+ barClass="#{inputNumberSlider.barStyle}" tipClass="#{inputNumberSlider.tipStyle}" inputClass="#{inputNumberSlider.inputStyle}"
+ handleClass="#{inputNumberSlider.handleStyle}" styleClass="#{inputNumberSlider.tipStyle}"
+ maxlength="#{inputNumberSlider.maxlength}" onmousedown="print('onmousedownInputID', 'onmousedown work!')" >
</rich:inputNumberSlider>
-
- <h:outputText id="work" value="#{key}" />
+ <h:panelGroup>
+ <a4j:commandButton value="valueChangeListener (show)" reRender="valueCLID" />
+ <h:outputText id="valueCLID" value=" #{inputNumberSlider.valueChangeListener}" />
+ </h:panelGroup>
</h:panelGrid>
-
<rich:spacer height="20px"></rich:spacer>
-
- <rich:simpleTogglePanel switchType="client" opened="true"
- label="inputNumberSlider straightforward">
- <h:panelGrid columns="2">
- <h:outputText value="Test1" />
- <a4j:commandButton action="#{inputNumberSlider.bTest1}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
-
- <h:outputText value="Test2" />
- <a4j:commandButton action="#{inputNumberSlider.bTest2}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
-
- <h:outputText value="Test3" />
- <a4j:commandButton action="#{inputNumberSlider.bTest3}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
-
- <h:outputText value="Test4" />
- <a4j:commandButton action="#{inputNumberSlider.bTest4}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
-
- <h:outputText value="Test5" />
- <a4j:commandButton action="#{inputNumberSlider.bTest5}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
- </h:panelGrid>
- </rich:simpleTogglePanel>
-
- <rich:simpleTogglePanel id="iNSliderPropertyID" switchType="client" opened="true"
- label="inputNumberSlider property">
- <h:panelGrid columns="2" cellspacing="10px" border="1">
- <h:outputText value="value" />
- <h:inputText value="#{inputNumberSlider.value}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="inputPosition"></h:outputText>
- <h:selectOneRadio value="#{inputNumberSlider.inputPosition}">
- <f:selectItem itemLabel="right" itemValue="right" />
- <f:selectItem itemLabel="left" itemValue="left" />
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Width:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.width}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Max Value:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.maxValue}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Min Value:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.minValue}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Input Size:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.inputSize}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Input MaxLength:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.maxlength}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Step:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.step}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="tabindex" />
- <h:inputText value="#{inputNumberSlider.tabindex}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Disabled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.disabled}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.rendered}"
- onclick="submit()">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Manual Input:"></h:outputText>
- <h:selectBooleanCheckbox
- value="#{inputNumberSlider.enableManualInput}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Boundary Values:"></h:outputText>
- <h:selectBooleanCheckbox
- value="#{inputNumberSlider.showBoundaryValues}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Show Input:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.showInput}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="showToolTip" />
- <h:selectBooleanCheckbox value="#{inputNumberSlider.showToolTip}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="required" />
- <h:selectBooleanCheckbox value="#{inputNumberSlider.required}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="requiredMessage" />
- <h:inputText value="#{inputNumberSlider.requiredMessage}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="immediate" />
- <h:selectBooleanCheckbox value="#{inputNumberSlider.immediate}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Switch Styles" />
- <a4j:commandButton id="slBtn" value="#{inputNumberSlider.btnLabel}"
- action="#{inputNumberSlider.doStyles}" reRender="SliderId,slBtn">
- </a4j:commandButton>
- </h:panelGrid>
- </rich:simpleTogglePanel>
- </h:form>
</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/inputNumberSpinner/InputNumberSpinnerProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/inputNumberSpinner/InputNumberSpinnerProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/inputNumberSpinner/InputNumberSpinnerProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,56 @@
+<f:subview id="iNSpinnerPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="iNSpinnerPropertyID" switchType="client" opened="true" label="inputNumberSpinner property">
+ <h:panelGrid columns="2" cellpadding="10px" border="1">
+ <h:outputText value="Max: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.max}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Min: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.min}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Step: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.step}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Size: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.inputSize}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Value: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.value}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Cycled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.cycled}">
+ <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Manual Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.manualInput}">
+ <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disabled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.disabled}">
+ <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.rendered}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{inputNumberSpinner.doStyles}" value="#{inputNumberSpinner.btnLabel}" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/inputNumberSpinner/InputNumberSpinnerStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/inputNumberSpinner/InputNumberSpinnerStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/inputNumberSpinner/InputNumberSpinnerStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<f:subview id="iNSpinnerStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="inputNumberSpinner straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest1}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1INSpinner}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest2}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2INSpinner}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest3}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3INSpinner}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest4}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4INSpinner}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest5}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5INSpinner}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/inputNumberSpinner/inputNumberSpinner.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/inputNumberSpinner/inputNumberSpinner.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/inputNumberSpinner/inputNumberSpinner.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,82 +1,21 @@
-<f:subview id="inputNumberSpinnerSubviewID"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:c="http://java.sun.com/jstl/core"
- xmlns:h="http://java.sun.com/jsf/html"
+<f:subview id="inputNumberSpinnerSubviewID" xmlns:rich="http://richfaces.org/rich" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j" xmlns:c="http://java.sun.com/jstl/core" xmlns:h="http://java.sun.com/jsf/html"
xmlns:scriptfree="http://jakarta.apache.org/taglibs/standard/scriptfree">
- <h:form>
<h:messages></h:messages>
- <h:outputText value="Event:"></h:outputText>
- <rich:inputNumberSpinner minValue="0" maxValue="10"
- onchange="alert('mouse down');"></rich:inputNumberSpinner>
- <rich:spacer height="15px"></rich:spacer>
-
- <rich:inputNumberSpinner id="SpinnerID"
- cycled="#{inputNumberSpinner.cycled}"
- disabled="#{inputNumberSpinner.disabled}"
- maxValue="#{inputNumberSpinner.max}"
- minValue="#{inputNumberSpinner.min}"
- step="#{inputNumberSpinner.step}"
- rendered="#{inputNumberSpinner.rendered}"
- value="#{inputNumberSpinner.value}"
- inputClass="#{inputNumberSpinner.inputStyle}"
- styleClass="#{inputNumberSpinner.style}"
- enableManualInput="#{inputNumberSpinner.manualInput}"
- inputSize="#{inputNumberSpinner.inputSize}"></rich:inputNumberSpinner>
+ <rich:inputNumberSpinner id="SpinnerID" tabindex="#{inputNumberSpinner.tabindex}" cycled="#{inputNumberSpinner.cycled}"
+ disabled="#{inputNumberSpinner.disabled}" maxValue="#{inputNumberSpinner.max}" minValue="#{inputNumberSpinner.min}"
+ step="#{inputNumberSpinner.step}" rendered="#{inputNumberSpinner.rendered}" value="#{inputNumberSpinner.value}"
+ inputClass="#{inputNumberSpinner.inputStyle}" styleClass="#{inputNumberSpinner.style}"
+ enableManualInput="#{inputNumberSpinner.manualInput}" inputSize="#{inputNumberSpinner.inputSize}"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onblur="print('onblurInputID', 'onblur work!')"
+ onchange="print('onchangeInputID', 'onchange work!')" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onerror="print('ondblclickInputID', 'ondblclick work!')"
+ onfocus="print('onfocusInputID', 'onfocus work!')" onselect="print('onselectInputID', 'onselect work!')"
+ onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
+ onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')" ondownclick="print('ondownclickInputID', 'ondownclick work!')"
+ onupclick="print('onupclickInputID', 'onupclick work!')"></rich:inputNumberSpinner>
<rich:spacer height="20px"></rich:spacer>
-
-
- <h:panelGrid columns="2" cellpadding="10px" border="1">
-
- <h:outputText value="Max: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.max}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Min: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.min}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Step: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.step}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Size: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.inputSize}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Value: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.value}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Cycled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.cycled}">
- <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Manual Input:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.manualInput}">
- <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Disabled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.disabled}">
- <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.rendered}"
- onclick="submit()">
- </h:selectBooleanCheckbox>
- <h:outputText value="Switch Styles:" />
- <h:commandButton action="#{inputNumberSpinner.doStyles}"
- value="#{inputNumberSpinner.btnLabel}" />
- </h:panelGrid>
- </h:form>
</f:subview>
Modified: trunk/test-applications/facelets/src/main/webapp/jQuery/jQuery.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/jQuery/jQuery.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/jQuery/jQuery.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,11 +1,11 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
+<f:subview contentType="text/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
+
<style>
.divSize_1 {
width: 150px;
@@ -44,12 +44,7 @@
color: #228B22;
}
</style>
-
-
-<f:view contentType="text/html">
- <body>
- <h:form id="form">
-
+
<h:panelGrid id="panelGridID" columns="2" border="1">
<h:outputText value="add text: [li],work!, e.g. A. one [li],work!" />
<h:panelGroup>
@@ -91,14 +86,10 @@
<rich:jQuery selector="#panelGridID tr" query="mouseout(function(){jQuery(this).removeClass('activeTable')})"/>
<rich:jQuery selector="#div_2_ID" timing="onload" query="mouseover(function(){jQuery(this).fadeOut({height: 'hide'}, 500).text('New text').animate({height: 'show'}, 500)})" />
- <rich:jQuery selector="p" timing="onload" query="find('span').html('text1').end().append('<p class=\'fontColor\'>add text3<p>')"/>
+ <rich:jQuery selector="p" timing="onload" query="find('span').html('text1').end().append('<p class=\'fontColor\'>add text3<p>')"/>
<rich:jQuery selector="#div_1_ID" timing="onload" query="addClass('divSize_1')" />
<rich:jQuery selector=".divSize_1" timing="onload" query="addClass('divColor_1')" />
<rich:jQuery selector="#panelGridID #div_1_ID" timing="onload" query="addClass('divTextSize_1')" />
<rich:jQuery selector="#form\\:panelGridID #div_2_ID" timing="onload" query="addClass('divSize_2')" />
-
- </h:form>
- </body>
-</f:view>
-</html>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,7 @@
+<f:subview id="jQueryPropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,7 @@
+<f:subview id="jQueryStraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/pages/Action/EventInfo.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/Action/EventInfo.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/pages/Action/EventInfo.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,54 @@
+<f:subview id="EventInfoSubview" xmlns="http://www.w3.org/1999/xhtml" xmlns:rich="http://richfaces.org/rich"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
+ <f:verbatim>
+ <div style="position: relative"><input id="onorderchangedInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="ontopclickInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onupclickInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="ondownclickInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onbottomclickInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onheaderclickInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onmousemoveInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="ontabenterInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="ontableaveInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onLoadMapInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onselectionchangeInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="ondownclickInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onupclickInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="oninitInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="ongroupactivateInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onitemselectInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onsubmitInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onRowClickInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onRowDblClickInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onRowMouseDownInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onRowMouseMoveInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onRowMouseOutInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onRowMouseOverInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onRowMouseUpInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onselectInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onchangeInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onfocusInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onblurInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onclickInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="oncollapseInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="oncompleteInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="ondblclickInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="ondragendInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="ondragenterInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="ondragexitInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="ondragstartInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="ondropInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="ondropendInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onexpandInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onkeydownInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onkeypressInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onkeyupInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onmousedownInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onmouseoutInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onmouseupInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onselectedInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onhideInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onmouseupInputID" type="hidden" value="don't work!" size="42" /></div>
+ <div style="position: relative"><input id="onshowInputID" type="hidden" value="don't work!" size="42" /></div>
+ </f:verbatim>
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/pages/Blank/Blank.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/Blank/Blank.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/pages/Blank/Blank.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,5 @@
+<f:subview id="calendarSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich">
+ <h:form>
+ </h:form>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/pages/Blank/BlankProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/Blank/BlankProperty.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/pages/Blank/BlankProperty.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,7 @@
+<f:subview id="PropertySubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/pages/Blank/BlankStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/Blank/BlankStraightforward.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/pages/Blank/BlankStraightforward.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,7 @@
+<f:subview id="StraightforwardSubviewID"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/pages/Div/Div.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/Div/Div.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/pages/Div/Div.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -8,6 +8,22 @@
<f:view>
<head>
<title></title>
+ <script type="text/javascript">
+ function print(elementID, value) {
+ var oldObject = window.document.getElementById(elementID);
+ var newObject = window.document.createElement('input');
+ newObject.type = "text";
+ newObject.size = oldObject.size;
+ newObject.value = value;
+ newObject.id = oldObject.id;
+ //if(oldObject.size) newObject.size = oldObject.size;
+ //if(oldObject.value) newObject.value = value;
+ //if(oldObject.id) newObject.id = oldObject.id;
+ //if(oldObject.name) newObject.name = oldObject.name;
+ //if(oldObject.className) newObject.className = oldObject.className;
+ oldObject.parentNode.replaceChild(newObject,oldObject);
+ }
+ </script>
<link rel="stylesheet"
href="#{facesContext.externalContext.requestContextPath}/styles/styles.css"
type="text/css" />
@@ -19,9 +35,26 @@
<div id="div_1_ID" style="position: relative; left:600px; top:500px; z-index:1;">
<div id="div_2_ID" style="position: absolute; left:-580px; top:-450px;">
- <ui:include src="${richBean.src}" />
+ <h:form>
+ <ui:include src="${richBean.pathComponent}" />
+ <ui:include src="${richBean.pathStraightforward}" />
+ <ui:include src="${richBean.pathProperty}" />
+ </h:form>
+ <rich:modalPanel id="eventInfoID" autosize="true" minHeight="550" minWidth="200" moveable="true" resizeable="true" style="overflow: true;">
+ <f:facet name="header">
+ <h:outputText value="Events ..." />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif" onclick="Richfaces.hideModalPanel('eventInfoID');"/>
+ </f:facet>
+
+ <ui:include src="/pages/Action/EventInfo.xhtml" />
+
+ </rich:modalPanel>
+ <a4j:commandButton value="Show event" onclick="Richfaces.showModalPanel('eventInfoID');return false;"></a4j:commandButton>
</div>
</div>
+
</body>
</f:view>
</html>
Modified: trunk/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,23 +1,57 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:ui="http://java.sun.com/jsf/facelets">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
<f:view>
<head>
+ <f:loadBundle basename="message" var="msg" />
<title></title>
- <link rel="stylesheet"
- href="#{facesContext.externalContext.requestContextPath}/styles/styles.css"
- type="text/css" />
+
+ <script type="text/javascript">
+ function print(elementID, value) {
+ var oldObject = window.document.getElementById(elementID);
+ if(oldObject == null || oldObject.type == "text") return;
+ var newObject = window.document.createElement('input');
+ if(oldObject.type) newObject.type = "text";
+ if(oldObject.size) newObject.size = oldObject.size;
+ if(oldObject.value) newObject.value = value;
+ if(oldObject.id) newObject.id = oldObject.id;
+ oldObject.parentNode.replaceChild(newObject,oldObject);
+ }
+ </script>
+ <link rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/styles/styles.css" type="text/css" />
</head>
<body>
- <div id="divOpthID" align="right" style="z-index: 200">
- <ui:include src="/pages/RichMenu/RichMenu.xhtml"/>
- </div>
+ <div id="divOpthID" align="right" style="z-index: 200"><ui:include src="/pages/RichMenu/RichMenu.xhtml" /></div>
+ <h:form>
+ <h:panelGrid id="richGridID" columns="1">
+ <h:column rendered="#{richBean.reComponent}">
+ <ui:include src="${richBean.pathComponent}" />
+ </h:column>
+ <h:column rendered="#{!richBean.reComponent}"></h:column>
+
+ <h:column rendered="#{richBean.reStraightforward}">
+ <ui:include src="${richBean.pathStraightforward}" />
+ </h:column>
+ <h:column rendered="#{!richBean.reStraightforward}"></h:column>
+
+ <h:column rendered="#{richBean.reProperty}">
+ <ui:include src="${richBean.pathProperty}" />
+ </h:column>
+ <h:column rendered="#{!richBean.reProperty}"></h:column>
+ </h:panelGrid>
+ </h:form>
+ <rich:modalPanel id="eventInfoID" autosized="true" minHeight="550" minWidth="200" moveable="true" style="overflow: true;">
+ <f:facet name="header">
+ <h:outputText value="Events ..." />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif" onclick="Richfaces.hideModalPanel('eventInfoID');" />
+ </f:facet>
- <ui:include src="${richBean.src}" />
+ <ui:include src="/pages/Action/EventInfo.xhtml" />
+
+ </rich:modalPanel>
+ <a4j:commandButton value="Show event" onclick="Richfaces.showModalPanel('eventInfoID');return false;"></a4j:commandButton>
</body>
</f:view>
</html>
Modified: trunk/test-applications/facelets/src/main/webapp/pages/RichMenu/RichMenu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/RichMenu/RichMenu.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/pages/RichMenu/RichMenu.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,46 +1,73 @@
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.org/rich">
+<h:form id="forvDivOpthID" xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j">
+ <h:panelGrid columns="4" border="1">
+ <h:column>
+ <a4j:status startText="WORK!" startStyle="color: red;" stopText="a4j:status"></a4j:status>
+ </h:column>
+ <h:panelGrid columns="1">
+ <h:panelGroup>
+ <h:outputText value="#{richBean.reComponent ? 'Component hide' : 'Component show'}" />
+ <h:selectBooleanCheckbox value="#{richBean.reComponent}" onchange="submit();" />
+ </h:panelGroup>
+ <h:panelGroup>
+ <h:outputText value="#{richBean.reStraightforward ? 'Straightforward hide' : 'Straightforward show'}" />
+ <h:selectBooleanCheckbox value="#{richBean.reStraightforward}" onchange="submit();" />
+ </h:panelGroup>
+ <h:panelGroup>
+ <h:outputText value="#{richBean.reProperty ? 'Property hide' : 'Property show'}" />
+ <h:selectBooleanCheckbox value="#{richBean.reProperty}" onchange="submit();" />
+ </h:panelGroup>
+ </h:panelGrid>
- <h:form id="forvDivOpthID">
- <h:panelGrid columns="2">
- <h:selectOneMenu binding="#{skinBean.component}"></h:selectOneMenu>
- <h:commandLink action="#{skinBean.change}" value="set skin" />
+ <h:panelGrid columns="1">
+ <h:outputText value="Select skin: " />
+ <h:selectOneMenu binding="#{skinBean.component}" onblur="submit();">
+ <a4j:support action="#{skinBean.change}" event="onchange" />
+ </h:selectOneMenu>
+ </h:panelGrid>
- <h:outputText value="Select component:" />
- <h:selectOneMenu value="#{richBean.src}" onchange="submit();">
- <f:selectItem itemValue="/Calendar/Calendar.xhtml" itemLabel="Calendar" />
- <f:selectItem itemValue="/DataFilterSlider/DataFilterSlider.xhtml" itemLabel="Data Filter Slider" />
- <f:selectItem itemValue="/DataScroller/DS.xhtml" itemLabel="Date Scroller" />
- <f:selectItem itemValue="/DataTable/DT.xhtml" itemLabel="Date Table" />
- <f:selectItem itemValue="/DradAndDrop/DragAndDrop.xhtml" itemLabel="Drag And Drop" />
- <f:selectItem itemValue="/DropDownMenu/DDMenu.xhtml" itemLabel="Drop Down Menu" />
- <f:selectItem itemValue="/Effect/Effect.xhtml" itemLabel="Effect" />
- <f:selectItem itemValue="/Gmap/Gmap.xhtml" itemLabel="Gmap" />
- <f:selectItem itemValue="/inputNumberSlider/inputNumberSlider.xhtml" itemLabel="Input Number Slider" />
- <f:selectItem itemValue="/inputNumberSpinner/inputNumberSpinner.xhtml" itemLabel="Input Number Spinner" />
- <f:selectItem itemValue="/Insert/Insert.xhtml" itemLabel="Insert" />
- <f:selectItem itemValue="/Message/Message.xhtml" itemLabel="Message" />
- <f:selectItem itemValue="/ModalPanel/ModalPanel.xhtml" itemLabel="Modal Panel" />
- <f:selectItem itemValue="/Paint2D/Paint2D.xhtml" itemLabel="Paint2D" />
- <f:selectItem itemValue="/Panel/Panel.xhtml" itemLabel="Panel" />
- <f:selectItem itemValue="/Panel/panel2.xhtml" itemLabel="Panel2" />
- <f:selectItem itemValue="/PanelBar/PanelBar.xhtml" itemLabel="Panel Bar" />
- <f:selectItem itemValue="/PanelMenu/PanelMenu.xhtml" itemLabel="Panel Menu" />
- <f:selectItem itemValue="/Separator/Separator.xhtml" itemLabel="Separator" />
- <f:selectItem itemValue="/SimpleTogglePanel/SimpleTogglePanel.xhtml" itemLabel="Simple Toggle Panel" />
- <f:selectItem itemValue="/Spacer/Spacer.xhtml" itemLabel="Spacer" />
- <f:selectItem itemValue="/SuggestionBox/SuggestionBox.xhtml" itemLabel="Suggestion Box" />
- <f:selectItem itemValue="/TabPanel/TabPanel.xhtml" itemLabel="Tab Panel" />
- <f:selectItem itemValue="/TogglePanel/TogglePanel.xhtml" itemLabel="Toggle Panel" />
- <f:selectItem itemValue="/ToolBar/ToolBar.xhtml" itemLabel="Tool Bar" />
- <f:selectItem itemValue="/Tooltip/Tooltip.xhtml" itemLabel="Tooltip" />
- <f:selectItem itemValue="/Tree/Tree.xhtml" itemLabel="Tree" />
- <f:selectItem itemValue="/VirtualEarth/VirtualEarth.xhtml" itemLabel="Virtual Earth" />
- <f:selectItem itemValue="/ScrollableDataTable/ScrollableDataTable.xhtml" itemLabel="ScrollableDataTable" />
- </h:selectOneMenu>
- </h:panelGrid>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
-</html>
\ No newline at end of file
+ <h:panelGrid columns="1">
+ <h:outputText value="Select component:" />
+ <h:selectOneMenu value="#{richBean.src}" onchange="submit();">
+ <f:selectItem itemValue="Blank" itemLabel="Blank" />
+ <f:selectItem itemValue="ComponentControl" itemLabel="ComponentControl" />
+ <f:selectItem itemValue="OrderingList" itemLabel="OrderingList" />
+ <f:selectItem itemValue="ListShuttle" itemLabel="ListShuttle" />
+ <f:selectItem itemValue="ContextMenu" itemLabel="ContextMenu" />
+ <f:selectItem itemValue="Calendar" itemLabel="Calendar" />
+ <f:selectItem itemValue="DataFilterSlider" itemLabel="Data Filter Slider" />
+ <f:selectItem itemValue="DataScroller" itemLabel="Date Scroller" />
+ <f:selectItem itemValue="DataTable" itemLabel="Date Table" />
+ <f:selectItem itemValue="DataDefinitionList" itemLabel="DataDefinitionList" />
+ <f:selectItem itemValue="DataOrderedList" itemLabel="DataOrderedList" />
+ <f:selectItem itemValue="DragAndDrop" itemLabel="Drag And Drop" />
+ <f:selectItem itemValue="DropDownMenu" itemLabel="Drop Down Menu" />
+ <f:selectItem itemValue="Effect" itemLabel="Effect" />
+ <f:selectItem itemValue="Gmap" itemLabel="Gmap" />
+ <f:selectItem itemValue="InputNumberSlider" itemLabel="Input Number Slider" />
+ <f:selectItem itemValue="InputNumberSpinner" itemLabel="Input Number Spinner" />
+ <f:selectItem itemValue="Insert" itemLabel="Insert" />
+ <f:selectItem itemValue="Message" itemLabel="Message" />
+ <f:selectItem itemValue="ModalPanel" itemLabel="Modal Panel" />
+ <f:selectItem itemValue="Paint2D" itemLabel="Paint2D" />
+ <f:selectItem itemValue="Panel" itemLabel="Panel" />
+ <f:selectItem itemValue="Panel2" itemLabel="Panel2" />
+ <f:selectItem itemValue="PanelBar" itemLabel="Panel Bar" />
+ <f:selectItem itemValue="PanelMenu" itemLabel="Panel Menu" />
+ <f:selectItem itemValue="Separator" itemLabel="Separator" />
+ <f:selectItem itemValue="SimpleTogglePanel" itemLabel="Simple Toggle Panel" />
+ <f:selectItem itemValue="Spacer" itemLabel="Spacer" />
+ <f:selectItem itemValue="SuggestionBox" itemLabel="Suggestion Box" />
+ <f:selectItem itemValue="TabPanel" itemLabel="Tab Panel" />
+ <f:selectItem itemValue="TogglePanel" itemLabel="Toggle Panel" />
+ <f:selectItem itemValue="ToolBar" itemLabel="Tool Bar" />
+ <f:selectItem itemValue="Tooltip" itemLabel="Tooltip" />
+ <f:selectItem itemValue="Tree" itemLabel="Tree" />
+ <f:selectItem itemValue="VirtualEarth" itemLabel="Virtual Earth" />
+ <f:selectItem itemValue="ScrollableDataTable" itemLabel="ScrollableDataTable" />
+ <f:selectItem itemValue="jQuery" itemLabel="jQuery" />
+ </h:selectOneMenu>
+ </h:panelGrid>
+ </h:panelGrid>
+ <h:commandLink value="Back" action="main"></h:commandLink>
+</h:form>
Added: trunk/test-applications/facelets/src/main/webapp/pages/RichPanels/RichPanels.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/RichPanels/RichPanels.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/pages/RichPanels/RichPanels.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,55 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+<f:view>
+ <head>
+ <title></title>
+
+ <script type="text/javascript">
+ function print(elementID, value) {
+ var oldObject = window.document.getElementById(elementID);
+ var newObject = window.document.createElement('input');
+ newObject.type = "text";
+ newObject.size = oldObject.size;
+ newObject.value = value;
+ newObject.id = oldObject.id;
+ //if(oldObject.size) newObject.size = oldObject.size;
+ //if(oldObject.value) newObject.value = value;
+ //if(oldObject.id) newObject.id = oldObject.id;
+ //if(oldObject.name) newObject.name = oldObject.name;
+ //if(oldObject.className) newObject.className = oldObject.className;
+ oldObject.parentNode.replaceChild(newObject,oldObject);
+ }
+ </script>
+ <link rel="stylesheet"
+ href="#{facesContext.externalContext.requestContextPath}/styles/styles.css"
+ type="text/css" />
+ </head>
+ <body>
+ <div id="divOpthID" align="right" style="z-index: 200">
+ <ui:include src="/pages/RichPanelsMenu/RichPanelsMenu.xhtml"/>
+ </div>
+ <h:form>
+ <ui:include src="${richPanelsBean.pathComponent}" />
+ <ui:include src="${richPanelsBean.pathStraightforward}" />
+ <ui:include src="${richPanelsBean.pathProperty}" />
+ </h:form>
+ <rich:modalPanel id="eventInfoID" autosize="true" minHeight="550" minWidth="200" moveable="true" resizeable="true" style="overflow: true;">
+ <f:facet name="header">
+ <h:outputText value="Events ..." />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif" onclick="Richfaces.hideModalPanel('eventInfoID');"/>
+ </f:facet>
+
+ <ui:include src="/pages/Action/EventInfo.xhtml" />
+
+ </rich:modalPanel>
+ <a4j:commandButton value="Show event" onclick="Richfaces.showModalPanel('eventInfoID');return false;"></a4j:commandButton>
+ </body>
+</f:view>
+</html>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/pages/RichPanelsMenu/RichPanelsMenu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/RichPanelsMenu/RichPanelsMenu.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/pages/RichPanelsMenu/RichPanelsMenu.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<h:form id="forvDivOpthID" xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j">
+ <rich:toolBar itemSeparator="none" >
+ <rich:toolBarGroup location="right">
+ <h:panelGrid columns="1">
+ <h:outputText value="Select skin: " />
+ <h:selectOneMenu binding="#{skinBean.component}" onblur="submit();">
+ <a4j:support action="#{skinBean.change}" event="onchange"/>
+ </h:selectOneMenu>
+ </h:panelGrid>
+ </rich:toolBarGroup>
+
+ <rich:toolBarGroup location="right">
+ <h:panelGrid columns="1">
+ <h:outputText value="Select component:" />
+ <h:selectOneMenu value="#{richPanelsBean.src}" onchange="submit();">
+ <f:selectItem itemValue="Blank" itemLabel="Blank" />
+ <f:selectItem itemValue="ModalPanel" itemLabel="Modal Panel" />
+ <f:selectItem itemValue="Panel" itemLabel="Panel" />
+ <f:selectItem itemValue="PanelBar" itemLabel="Panel Bar" />
+ <f:selectItem itemValue="SimpleTogglePanel" itemLabel="Simple Toggle Panel" />
+ <f:selectItem itemValue="TabPanel" itemLabel="Tab Panel" />
+ <f:selectItem itemValue="TogglePanel" itemLabel="Toggle Panel" />
+ </h:selectOneMenu>
+ </h:panelGrid>
+ </rich:toolBarGroup>
+ </rich:toolBar>
+ <h:commandLink value="Back" action="main"></h:commandLink>
+</h:form>
+
Modified: trunk/test-applications/facelets/src/main/webapp/pages/Select/Map.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/Select/Map.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/pages/Select/Map.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -8,6 +8,22 @@
<f:view>
<head>
<title></title>
+ <script type="text/javascript">
+ function print(elementID, value) {
+ var oldObject = window.document.getElementById(elementID);
+ var newObject = window.document.createElement('input');
+ newObject.type = "text";
+ newObject.size = oldObject.size;
+ newObject.value = value;
+ newObject.id = oldObject.id;
+ //if(oldObject.size) newObject.size = oldObject.size;
+ //if(oldObject.value) newObject.value = value;
+ //if(oldObject.id) newObject.id = oldObject.id;
+ //if(oldObject.name) newObject.name = oldObject.name;
+ //if(oldObject.className) newObject.className = oldObject.className;
+ oldObject.parentNode.replaceChild(newObject,oldObject);
+ }
+ </script>
<link rel="stylesheet"
href="#{facesContext.externalContext.requestContextPath}/styles/styles.css"
type="text/css" />
@@ -18,12 +34,30 @@
</div>
<div id="divPageID" style="position: absolute; background-color:gray; top:60px; left: 10px; z-index: 2">
- <ui:include src="${richBean.src}" />
+ <h:form>
+ <ui:include src="${richBean.pathComponent}" />\
+ <ui:include src="${richBean.pathStraightforward}" />
+ <ui:include src="${richBean.pathProperty}" />
+ </h:form>
+
+ <rich:modalPanel id="eventInfoID" autosize="true" minHeight="550" minWidth="200" moveable="true" resizeable="true" style="overflow: true;">
+ <f:facet name="header">
+ <h:outputText value="Events ..." />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif" onclick="Richfaces.hideModalPanel('eventInfoID');"/>
+ </f:facet>
+
+ <ui:include src="/pages/Action/EventInfo.xhtml" />
+
+ </rich:modalPanel>
+ <a4j:commandButton value="Show event" onclick="Richfaces.showModalPanel('eventInfoID');return false;"></a4j:commandButton>
</div>
<div id="divID" style="absolute; relative; top:60px; left: 10px; z-index: 1">
<ui:include src="/pages/Select/SelectOneMenuPage.xhtml" />
</div>
+
</body>
</f:view>
</html>
Modified: trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -10,17 +10,23 @@
</head>
<body>
<h:form>
- <div align="center"><h:outputText
- value="VCP Test Application (JSF 1.1RI(1.2RI) with Facelets)"
- style="font-size: 30px"></h:outputText></div>
+ <rich:panel>
+ <f:verbatim><div align="center"><font size="4" color="#191970">RichFaces Test Application (JSF 1.1RI(1.2RI) with Facelets)</font></div></f:verbatim>
+ </rich:panel>
+ <rich:spacer></rich:spacer>
<rich:panel>
<h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
- <h:commandLink value="RichFaces" action="Test"></h:commandLink>
+ <h:commandLink value="RichFaces" action="RichFaces"></h:commandLink>
<h:commandLink value="Div" action="TestDiv"></h:commandLink>
<h:commandLink value="Select" action="Map"></h:commandLink>
<h:commandLink value="Customize page" action="CustomizePage"></h:commandLink>
+ <h:commandLink value="RichPanels" action="RichPanels"></h:commandLink>
</h:panelGrid>
</rich:panel>
+ <rich:spacer></rich:spacer>
+ <rich:panel>
+ <div align="right"><font size="3" color="#000000">RichFace: #{a4j.version}</font></div>
+ </rich:panel>
</h:form>
</body>
</f:view>
Added: trunk/test-applications/facelets/src/main/webapp/styles/app.css
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/styles/app.css (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/styles/app.css 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,29 @@
+.rich-message-label{
+ padding: 0px 10px;
+}
+
+.rich-messages-label{
+ padding: 0px 10px
+}
+
+.rich-message-marker{
+}
+
+.rich-message{
+}
+
+.errorLabel{
+ color: #FF0000;
+}
+
+.warnLabel{
+ color: #0000FF;
+}
+
+.infoLabel{
+ color: #00FF00;
+}
+
+.fatalLabel{
+ color: #FF1493;
+}
Modified: trunk/test-applications/facelets/src/main/webapp/styles/styles.css
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/styles/styles.css 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/facelets/src/main/webapp/styles/styles.css 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,3 +1,7 @@
+/*simple toggle panel (icon position)*/
+.dr-stglpanel-marker {
+ float: right;
+}
/* Message and messages */
.rich-message-label {
padding: 0px 10px;
@@ -25,6 +29,7 @@
.infoLabel {
color: #00FF00;
+width: inherit;
}
.fatalLabel {
Modified: trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -35,18 +35,18 @@
public class CalendarBean {
- private static final String [] WEEK_DAY_SHORT = new String[] { "|>Sun*<|",
- "|>Mon +<|", "|>Tue +<|", "|>Wed +<|", "|>Thu +<|", "|>Fri +<|", "|>Sat*<|" };
- private static final String [] WEEK_DAY = new String[] { "|>Saturday*<|", "|>Monday+<|",
- "|>Tuesday+<|", "|>Wednesday+<|", "|>Thursday+<|", "|>Friday+<|", "|>Sunday*<|"};
- private static final String [] MOUNT_LABELS = new String[] { "January +",
- "February +", "March +", "April +", "May +", "June +", "July +", "August +",
- "September +", "October +", "November +", "December +" };
- private static final String [] MOUNT_LABELS_SHORT = new String[] { "Jan +",
- "Feb +", "Mar +", "Apr +", "May +", "Jun +", "Jul +", "Aug +",
- "Sep +", "Oct +", "Nov +", "Dec +" };
-
+ private static final String [] WEEK_DAY_SHORT = new String[] { "<i>Sun</i>",
+ "Mon +", "Tue +", "Wed +", "Thu +", "Fri +", "Sat*" };
+ private static final String [] WEEK_DAY = new String[] { "*Saturday", "+Monday+",
+ "+Tuesday+", "+Wednesday+", "+Thursday+", "+Friday+", "*Sunday*"};
+ private static final String [] MOUNT_LABELS = new String[] { "<i>January</i>",
+ "February+", "March+", "April+", "May +", "June +", "July +", "August +",
+ "September +", "October +", "November +", "December +" };
+ private static final String [] MOUNT_LABELS_SHORT = new String[] { "+Jan",
+ "+Feb+", "+Mar+", "+Apr+", "+May+", "+Jun+", "+Jul+", "+Aug+",
+ "+Sep+", "+Oct+", "+Nov+", "+Dec+" };
private Locale locale;
+ private TimeZone tZone;
private boolean popup;
private boolean readonly;
private boolean showInput;
@@ -58,12 +58,12 @@
private boolean required;
private Date currentDate;
private Date selectedDate;
+ private String headerFacet;
+ private String mode;
private String preloadDateRangeBegin;
private String preloadDateRangeEnd;
private String weekDay;
private String month;
- private String height;
- private String width;
private String pattern;
private String jointPoint;
private String direction;
@@ -74,8 +74,43 @@
private String timeZone;
private int zindex;
private int counter;
+
+ public CalendarBean() {
+ mode = "client";
+ label = "Button label";
+ locale = new Locale("us","US","");
+ popup = true;
+ pattern = "MMM d, yyyy";
+ jointPoint = "bottom-left";
+ direction = "bottom-right";
+ readonly = true;
+ enableManualInput = false;
+ showInput = true;
+ boundary = "inactive";
+ icon = null;
+ disabled = false;
+ bypassUpdates = false;
+ rendered = true;
+ zindex = 2;
+ toolTipMode = "none";
+ required = false;
+ weekDay = "long";
+ month = "none";
+ timeZone = "Eastern European Time";
+ preloadDateRangeBegin = "10.08.2007"; //d.m.y
+ preloadDateRangeEnd = "11.10.2007";
+ }
-
+ public boolean getRenderedAjax() {
+ if(mode.equalsIgnoreCase("ajax") && rendered) return true;
+ else return false;
+ }
+
+ public boolean getRenderedClient() {
+ if(mode.equalsIgnoreCase("client") && rendered) return true;
+ else return false;
+ }
+
public String getTimeZone() {
return timeZone;
}
@@ -118,32 +153,14 @@
this.pattern = pattern;
}
-
- public CalendarBean() {
- height = "400px";
- width = "400px";
- label = "Button label";
- locale = Locale.US;
- popup = true;
- pattern = "MMM d, yyyy";
- jointPoint = "bottom-left";
- direction = "bottom-right";
- readonly = true;
- enableManualInput = false;
- showInput = true;
- boundary = "inactive";
- icon = null;
- disabled = false;
- bypassUpdates = false;
- rendered = true;
- zindex = 2;
- toolTipMode = "none";
- required = false;
- weekDay = "long";
- month = "none";
- timeZone = "Eastern European Time";
- preloadDateRangeBegin = "10.08.2007"; //d.m.y
- preloadDateRangeEnd = "11.10.2007";
+
+ public void selectLocale(ValueChangeEvent event) {
+ String tLocale = (String) event.getNewValue();
+ if (tLocale != null) {
+ String lang = tLocale.substring(0, 2);
+ String country = tLocale.substring(3);
+ locale = new Locale(lang, country, "");
+ }
}
public Date getPrDateRangeBegin() {
@@ -154,7 +171,6 @@
date.add(Integer.parseInt(st.nextToken()));
}
cal.set(date.get(2), date.get(1) - 1, date.get(0), 12, 0, 0);
- System.out.println("prBegin " + cal.getTime());
return cal.getTime();
}
@@ -166,7 +182,6 @@
date.add(Integer.parseInt(st.nextToken()));
}
cal.set(date.get(2), date.get(1) - 1, date.get(0), 12, 0, 0);
- System.out.println("prEnd " + cal.getTime());
return cal.getTime();
}
@@ -280,7 +295,6 @@
public void dcl(CurrentDateChangeEvent event) {
System.out.println(event.getCurrentDateString());
- System.out.println("ajvhckndskncs");
}
public void ddd(ValueChangeEvent event) {
@@ -325,14 +339,6 @@
this.bypassUpdates = bypassUpdates;
}
- public String getHeight() {
- return height;
- }
-
- public void setHeight(String height) {
- this.height = height;
- }
-
public boolean isRendered() {
return rendered;
}
@@ -357,14 +363,6 @@
this.zindex = zindex;
}
- public String getWidth() {
- return width;
- }
-
- public void setWidth(String width) {
- this.width = width;
- }
-
public boolean isRequired() {
return required;
}
@@ -383,9 +381,7 @@
public TimeZone getTmZone() {
TimeZone tZone = TimeZone.getDefault();
- System.out.println("timeZone" + timeZone + " tZone " + tZone);
tZone.setID(timeZone);
- System.out.println("timeZone" + timeZone + " tZone " + tZone);
return tZone;
}
@@ -412,4 +408,139 @@
public void setWeekDay(String weekDay) {
this.weekDay = weekDay;
}
+
+ public void setMode(String mode) {
+ this.mode = mode;
+ }
+
+ public String getMode() {
+ return mode;
+ }
+ public void bTest1() {
+ setCurrentDate(new Date());
+// setTimeZone();
+ setSelectedDate(new Date());
+ changeIcons();
+ setHeaderFacet("Test 1");
+ setLocale(new Locale("de","DE",""));
+ setDirection("bottom-left");
+ setEnableManualInput(false);
+ setDisabled(false);
+ setJointPoint("top-right");
+ setMonth("long");
+ setPattern("dd-MM-yyyy");
+ setPopup(true);
+ setPreloadDateRangeBegin("10.09.2007");
+ setPreloadDateRangeEnd("11.01.2008");
+ setReadonly(true);
+ setRequired(true);
+ setShowInput(false);
+ setToolTipMode("single");
+ setWeekDay("long");
+ setZindex(3);
+ }
+
+ public void bTest2() {
+// setCurrentDate(new Date());
+// setTimeZone();
+// setSelectedDate();
+ changeIcons();
+ setHeaderFacet("Test 2");
+ setLocale(new Locale("fr","FR",""));
+ setDirection("top-right");
+ setEnableManualInput(true);
+ setDisabled(false);
+ setJointPoint("bottom-left");
+ setMonth("none");
+ setPattern("dd.MM.yyyy");
+ setPopup(true);
+ setPreloadDateRangeBegin("10.09.2007");
+ setPreloadDateRangeEnd("12.01.2008");
+ setReadonly(true);
+ setRequired(true);
+ setShowInput(false);
+ setToolTipMode("single");
+ setWeekDay("none");
+ setZindex(3);
+ }
+
+ public void bTest3() {
+// setCurrentDate(new Date());
+// setTimeZone();
+// setSelectedDate();
+ changeIcons();
+ setHeaderFacet("Test 3");
+ setLocale(new Locale("ru","RU",""));
+ setDirection("bottom-left");
+ setEnableManualInput(false);
+ setDisabled(false);
+ setJointPoint("top-right");
+ setMonth("long");
+ setPattern("dd-MM-yyyy");
+ setPopup(false);
+ setPreloadDateRangeBegin("10.09.2007");
+ setPreloadDateRangeEnd("11.01.2008");
+ setReadonly(false);
+ setRequired(false);
+ setShowInput(false);
+ setToolTipMode("single");
+ setWeekDay("long");
+ setZindex(3);
+ }
+
+ public void bTest4() {
+// setCurrentDate(new Date());
+// setTimeZone();
+// setSelectedDate();
+ changeIcons();
+ setHeaderFacet("Test 4");
+ setLocale(new Locale("de","DE",""));
+ setDirection("bottom-left");
+ setEnableManualInput(false);
+ setDisabled(true);
+ setJointPoint("top-right");
+ setMonth("long");
+ setPattern("dd-MM-yyyy");
+ setPopup(false);
+ setPreloadDateRangeBegin("10.09.2007");
+ setPreloadDateRangeEnd("11.01.2008");
+ setReadonly(false);
+ setRequired(false);
+ setShowInput(false);
+ setToolTipMode("single");
+ setWeekDay("none");
+ setZindex(3);
+ }
+
+ public void bTest5() {
+// setCurrentDate(new Date());
+// setTimeZone();
+// setSelectedDate();
+ changeIcons();
+ setHeaderFacet("Test 5");
+ setLocale(new Locale("de","DE",""));
+ setDirection("bottom-right");
+ setEnableManualInput(false);
+ setDisabled(false);
+ setJointPoint("bottom-left");
+ setMonth("none");
+ setPattern("d/M/yy");
+ setPopup(true);
+ setPreloadDateRangeBegin("09.09.2007");
+ setPreloadDateRangeEnd("10.01.2008");
+ setReadonly(false);
+ setRequired(true);
+ setShowInput(true);
+ setToolTipMode("none");
+ setWeekDay("short");
+ setZindex(1);
+ }
+
+ public String getHeaderFacet() {
+ return headerFacet;
+ }
+
+ public void setHeaderFacet(String headerFacet) {
+ this.headerFacet = headerFacet;
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/calendar/CalendarDataModelItemImpl.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/calendar/CalendarDataModelItemImpl.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/calendar/CalendarDataModelItemImpl.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -33,18 +33,9 @@
private Object data;
private String styleClass;
private Object toolTip;
- private int day;
private boolean enabled = true;
- public int getDay() {
- return day;
- }
-
- public void setDay(int day) {
- this.day = day;
- }
-
/* (non-Javadoc)
* @see org.richfaces.component.CalendarDataModelItem#getData()
*/
@@ -107,5 +98,8 @@
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
-
+
+ public int getDay() {
+ return 0;
+ }
}
Added: trunk/test-applications/jsp/src/main/java/componentControl/ComponentControl.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/componentControl/ComponentControl.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/componentControl/ComponentControl.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,17 @@
+package componentControl;
+
+public class ComponentControl {
+ private boolean calendarPopup;
+
+ public ComponentControl() {
+ calendarPopup = false;
+ }
+
+ public boolean isCalendarPopup() {
+ return calendarPopup;
+ }
+
+ public void setCalendarPopup(boolean calendarPopup) {
+ this.calendarPopup = calendarPopup;
+ }
+}
Added: trunk/test-applications/jsp/src/main/java/contextMenu/ContextMenu.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/contextMenu/ContextMenu.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/contextMenu/ContextMenu.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,142 @@
+package contextMenu;
+
+import java.util.Map;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+public class ContextMenu {
+ private String info;
+ private String inputText;
+ private String submitMode;
+ private String event;
+ private String popupWidth;
+ private String selectOneMenu;
+ private int hideDelay;
+ private int showDelay;
+ private boolean disableDefaultMenu;
+ private boolean rendered;
+ private boolean disamble;
+ private boolean attached;
+
+ public boolean isAttached() {
+ return attached;
+ }
+
+ public void setAttached(boolean attached) {
+ this.attached = attached;
+ }
+
+ public String getInfo() {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ Map params = facesContext.getExternalContext().getRequestParameterMap();
+ String cmdParam = (String) params.get("cmdParam");
+ if (cmdParam != null) info = cmdParam;
+ System.out.println(info);
+ return info;
+ }
+
+ public void actionListener(ActionEvent event) {
+ setInfo("actionListener");
+ }
+
+ public void setInfo(String info) {
+ System.out.println("Info: " + info);
+ this.info = info;
+ }
+
+ public ContextMenu() {
+ this.selectOneMenu = "item1";
+ this.inputText = "inputText";
+ this.submitMode = "none";
+ this.event = "oncontextmenu";
+ this.popupWidth = "300px";
+ this.hideDelay = 3;
+ this.showDelay = 3;
+ this.disableDefaultMenu = true;
+ this.rendered = true;
+ this.disamble = false;
+ this.attached = true;
+ this.info = "";
+ }
+
+ public boolean isDisamble() {
+ return disamble;
+ }
+
+ public void setDisamble(boolean disamble) {
+ this.disamble = disamble;
+ }
+
+ public String getEvent() {
+ return event;
+ }
+
+ public void setEvent(String event) {
+ this.event = event;
+ }
+
+ public String getSubmitMode() {
+ return submitMode;
+ }
+
+ public void setSubmitMode(String submitMode) {
+ this.submitMode = submitMode;
+ }
+
+ public boolean isDisableDefaultMenu() {
+ return disableDefaultMenu;
+ }
+
+ public void setDisableDefaultMenu(boolean disableDefaultMenu) {
+ this.disableDefaultMenu = disableDefaultMenu;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getPopupWidth() {
+ return popupWidth;
+ }
+
+ public void setPopupWidth(String popupWidth) {
+ this.popupWidth = popupWidth;
+ }
+
+ public int getHideDelay() {
+ return hideDelay;
+ }
+
+ public void setHideDelay(int hideDelay) {
+ this.hideDelay = hideDelay;
+ }
+
+ public int getShowDelay() {
+ return showDelay;
+ }
+
+ public void setShowDelay(int showDelay) {
+ this.showDelay = showDelay;
+ }
+
+ public String getInputText() {
+ return inputText;
+ }
+
+ public void setInputText(String inputText) {
+ this.inputText = inputText;
+ }
+
+ public String getSelectOneMenu() {
+ return selectOneMenu;
+ }
+
+ public void setSelectOneMenu(String selectOneMenu) {
+ this.selectOneMenu = selectOneMenu;
+ }
+}
Added: trunk/test-applications/jsp/src/main/java/dataDefinitionList/DataDefinitionList.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dataDefinitionList/DataDefinitionList.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/dataDefinitionList/DataDefinitionList.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,85 @@
+package dataDefinitionList;
+
+import java.util.ArrayList;
+
+import util.data.Data;
+
+public class DataDefinitionList
+{
+ private ArrayList<Data> arr;
+ private int first;
+ private int rows;
+ private boolean rendered;
+ private String title;
+ private String dir;
+ private int mSize;
+
+ public String getDir() {
+ return dir;
+ }
+
+ public void setDir(String dir) {
+ this.dir = dir;
+ }
+
+ public int getMSize() {
+ return mSize;
+ }
+
+ public void setMSize(int size) {
+ mSize = size;
+ }
+
+ public void setArr(ArrayList<Data> arr) {
+ this.arr = arr;
+ }
+
+ public DataDefinitionList(){
+ arr = new ArrayList<Data>();
+ dir ="LTR";
+ rows = 20;
+ rows = 0;
+ first = 0;
+ rendered = true;
+ title = "title";
+ for(int i = 1; i < Data.cityAfrica.length; i++)
+ arr.add(new Data(Data.cityAfrica[i]));
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public int getRows() {
+ return rows;
+ }
+
+ public void setRows(int rows) {
+ this.rows = rows;
+ }
+
+ public ArrayList<Data> getArr() {
+ return arr;
+ }
+
+}
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/java/dataOrderedList/DataOrderedList.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dataOrderedList/DataOrderedList.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/dataOrderedList/DataOrderedList.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,95 @@
+package dataOrderedList;
+
+import java.util.ArrayList;
+
+import util.data.Data;
+
+public class DataOrderedList
+{
+ private ArrayList<Data> arr;
+ private int first;
+ private int rows;
+ private boolean rendered;
+ private String title;
+ private String type;
+ private String dir;
+ private int mSize;
+
+ public String getDir() {
+ return dir;
+ }
+
+ public void setDir(String dir) {
+ this.dir = dir;
+ }
+
+ public int getMSize() {
+ return mSize;
+ }
+
+ public void setMSize(int size) {
+ mSize = size;
+ }
+
+ public void setArr(ArrayList<Data> arr) {
+ this.arr = arr;
+ }
+
+ public DataOrderedList(){
+ arr = new ArrayList<Data>();
+ dir ="LTR";
+ rows = 20;
+ rows = 0;
+ first = 0;
+ rendered = true;
+ title = "title";
+ type = "1";
+ for(int i = 1; i < Data.cityAfrica.length; i++)
+ arr.add(new Data(Data.cityAfrica[i]));
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public int getRows() {
+ return rows;
+ }
+
+ public void setRows(int rows) {
+ this.rows = rows;
+ }
+
+ public ArrayList<Data> getArr() {
+ return arr;
+ }
+
+}
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/java/dataScroller/Data.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dataScroller/Data.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/dataScroller/Data.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -31,7 +31,7 @@
public int getData1() {
return data1;
}
-
+
public String getData2() {
return data2;
}
Modified: trunk/test-applications/jsp/src/main/java/dataScroller/DataScroller.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dataScroller/DataScroller.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/dataScroller/DataScroller.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -51,7 +51,7 @@
dataTable = new ArrayList();
- for(int i=0;i<40;i++)
+ for(int i=0;i<1000;i++)
{
dataTable.add(new Data("Random",i));
}
@@ -129,7 +129,43 @@
this.limitToList = limitToList;
}
-
-
+ public void bTest1(){
+ setAlign("left");
+ setFastControls("auto");
+ setLimitToList(false);
+ setMaxPages(20);
+ setRenderIfSinglePage(true);
+ }
+ public void bTest2(){
+ setAlign("right");
+ setFastControls("show");
+ setLimitToList(false);
+ setMaxPages(30);
+ setRenderIfSinglePage(false);
+ }
+
+ public void bTest3(){
+ setAlign("center");
+ setFastControls("hide");
+ setLimitToList(false);
+ setMaxPages(10);
+ setRenderIfSinglePage(true);
+ }
+
+ public void bTest4(){
+ setAlign("center");
+ setFastControls("auto");
+ setLimitToList(true);
+ setMaxPages(30);
+ setRenderIfSinglePage(false);
+ }
+
+ public void bTest5(){
+ setAlign("left");
+ setFastControls("show");
+ setLimitToList(false);
+ setMaxPages(40);
+ setRenderIfSinglePage(true);
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/dataTable/DataTable.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dataTable/DataTable.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/dataTable/DataTable.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -138,4 +138,44 @@
public void setR2rendered(boolean r2rendered) {
this.r2rendered = r2rendered;
}
+
+ public void bTest1() {
+ setAlign("center");
+ setBorder("4px");
+ setC1rendered(false);
+ setColumnsWidth("300px");
+ setWidth("500px");
+ }
+
+ public void bTest2() {
+ setAlign("left");
+ setBorder("0px");
+ setC1rendered(true);
+ setColumnsWidth("500px");
+ setWidth("300px");
+ }
+
+ public void bTest3() {
+ setAlign("right");
+ setBorder("5px");
+ setC1rendered(true);
+ setColumnsWidth("100px");
+ setWidth("200px");
+ }
+
+ public void bTest4() {
+ setAlign("center");
+ setBorder("4px");
+ setC1rendered(false);
+ setColumnsWidth("500px");
+ setWidth("500px");
+ }
+
+ public void bTest5() {
+ setAlign("center");
+ setBorder("4px");
+ setC1rendered(false);
+ setColumnsWidth("400px");
+ setWidth("800px");
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/ddMenu/DDMenu.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/ddMenu/DDMenu.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/ddMenu/DDMenu.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -22,6 +22,7 @@
private boolean check;
public DDMenu() {
+ selectMenu = "accord";
hideDelay = 0;
showDelay = 0;
verticalOffset = 0;
@@ -177,4 +178,74 @@
public void setMode(String mode) {
this.mode = mode;
}
+
+ public void bTest1(){
+ setDirection("top-right");
+ setEvent("onmouseover");
+ setGroupDirection("top-up");
+ setHideDelay(5);
+ setHorizontalOffset(1);
+ setVerticalOffset(1);
+ setJointPoint("top-left");
+ setMode("none");
+ setPopupWidth("300px");
+ setShowDelay(1);
+ setDisabled(false);
+ }
+
+ public void bTest2(){
+ setDirection("bottom-right");
+ setEvent("onclick");
+ setGroupDirection("bottom-left");
+ setHideDelay(5);
+ setShowDelay(5);
+ setHorizontalOffset(20);
+ setVerticalOffset(20);
+ setJointPoint("bottom-right");
+ setMode("ajax");
+ setPopupWidth("200px");
+ setDisabled(false);
+ }
+
+ public void bTest3(){
+ setDirection("bottom-left");
+ setEvent("onmouseover");
+ setGroupDirection("top-up");
+ setHideDelay(10);
+ setShowDelay(10);
+ setHorizontalOffset(5);
+ setVerticalOffset(5);
+ setJointPoint("top-left");
+ setMode("server");
+ setPopupWidth("50px");
+ setDisabled(false);
+ }
+
+ public void bTest4(){
+ setDirection("top-left");
+ setEvent("onmouseover");
+ setGroupDirection("auto");
+ setHideDelay(0);
+ setShowDelay(0);
+ setHorizontalOffset(0);
+ setVerticalOffset(0);
+ setJointPoint("auto");
+ setMode("ajax");
+ setPopupWidth("auto");
+ setDisabled(true);
+ }
+
+ public void bTest5(){
+ setDirection("auto");
+ setEvent("onmouseover");
+ setGroupDirection("auto");
+ setHideDelay(1);
+ setShowDelay(5);
+ setHorizontalOffset(2);
+ setVerticalOffset(2);
+ setJointPoint("auto");
+ setMode("ajax");
+ setPopupWidth("auto");
+ setDisabled(true);
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/dfs/DataFilterSliderDaoImpl.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dfs/DataFilterSliderDaoImpl.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/dfs/DataFilterSliderDaoImpl.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -170,7 +170,8 @@
return lo + i;
}
- public static String randomstring(int lo, int hi)
+ @SuppressWarnings("deprecation")
+ public static String randomstring(int lo, int hi)
{
int n = rand(lo, hi);
byte b[] = new byte[n];
Modified: trunk/test-applications/jsp/src/main/java/dnd/DndBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dnd/DndBean.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/dnd/DndBean.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -23,12 +23,12 @@
}
public void processDrop(DropEvent event) {
- System.out.println("Bean.processDrop()");
+ System.out.println("Bean.processDrop()" + event.getDropValue());
this.dragValue = event.getDragValue();
}
- public void processDrag(DragEvent dragEvent) {
- System.out.println("Bean.processDrag()");
+ public void processDrag(DragEvent event) {
+ System.out.println("Bean.processDrag()"+ event.getDropValue());
}
public List getTypes() {
Modified: trunk/test-applications/jsp/src/main/java/gmap/Gmap.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/gmap/Gmap.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/gmap/Gmap.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -3,14 +3,14 @@
public class Gmap {
private String zoom;
- private boolean continuousZoom;
- private boolean doubleClickZoom;
- private boolean dragging;
+ private String continuousZoom;
+ private String doubleClickZoom;
+ private String dragging;
public Gmap() {
- continuousZoom = false;
- doubleClickZoom = false;
- dragging = false;
+ continuousZoom = "false";
+ doubleClickZoom = "false";
+ dragging = "false";
}
public String getZoom() {
@@ -27,39 +27,28 @@
return null;
}
- public boolean isContinuousZoom() {
+ public String getContinuousZoom() {
return continuousZoom;
}
- public void setContinuousZoom(boolean continuousZoom) {
+ public void setContinuousZoom(String continuousZoom) {
this.continuousZoom = continuousZoom;
}
- public boolean isDoubleClickZoom() {
+ public String getDoubleClickZoom() {
return doubleClickZoom;
}
- public void setDoubleClickZoom(boolean doubleClickZoom) {
+ public void setDoubleClickZoom(String doubleClickZoom) {
this.doubleClickZoom = doubleClickZoom;
}
- public boolean isDragging() {
+ public String getDragging() {
+
return dragging;
}
- public void setDragging(boolean dragging) {
- this.dragging = dragging;
+ public void setDragging(String dragging) {
+ this.dragging = dragging;
}
-
- public String getContinuousZoomAsString() {
- return String.valueOf(continuousZoom);
- }
-
- public String getDoubleClickZoomAsString() {
- return String.valueOf(continuousZoom);
- }
-
- public String getDraggingAsString() {
- return String.valueOf(continuousZoom);
- }
}
Modified: trunk/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,10 +1,15 @@
package inputNumberSlider;
+import javax.faces.event.ValueChangeEvent;
+
public class InputNumberSlider {
-
private int inputSize;
private int maxlength;
+ private String requiredMessage;
+ private String inputPosition;
+ private String tabindex;
+ private String value;
private String width;
private String minValue;
private String maxValue;
@@ -14,7 +19,10 @@
private String inputStyle;
private String tipStyle;
private String handleStyle;
-
+ private String valueChangeListener;
+ private boolean immediate;
+ private boolean required;
+ private boolean showToolTip;
private boolean disabled;
private boolean showInput;
private boolean rendered;
@@ -22,7 +30,13 @@
private boolean showBoundaryValues;
public InputNumberSlider() {
-
+ immediate = false;
+ rendered = false;
+ showToolTip = false;
+ requiredMessage = "requiredMessage work!";
+ inputPosition = "right";
+ tabindex = "2";
+ value = "30";
inputSize = 5;
maxlength = 3;
width = "300px";
@@ -41,6 +55,9 @@
showBoundaryValues=true;
}
+ public void changeListener(ValueChangeEvent event) {
+ System.out.println("valueChangeListener " + event.toString());
+ }
public boolean isDisabled() {
return disabled;
@@ -200,5 +217,140 @@
public void setMaxlength(int maxlength) {
this.maxlength = maxlength;
}
+
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+ public boolean isRequired() {
+ return required;
+ }
+
+ public void setRequired(boolean required) {
+ this.required = required;
+ }
+
+ public boolean isShowToolTip() {
+ return showToolTip;
+ }
+
+ public void setShowToolTip(boolean showToolTip) {
+ this.showToolTip = showToolTip;
+ }
+
+ public String getRequiredMessage() {
+ return requiredMessage;
+ }
+
+ public void setRequiredMessage(String requiredMessage) {
+ this.requiredMessage = requiredMessage;
+ }
+
+ public String getInputPosition() {
+ return inputPosition;
+ }
+
+ public void setInputPosition(String inputPosition) {
+ this.inputPosition = inputPosition;
+ }
+
+ public String getTabindex() {
+ return tabindex;
+ }
+
+ public void setTabindex(String tabindex) {
+ this.tabindex = tabindex;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+ public void valueChangeListener(ValueChangeEvent event) {
+ valueChangeListener = (String)event.getNewValue();
+ System.out.println("valueChangeListener: " + valueChangeListener);
+ }
+
+ public void bTest1(){
+ setMinValue("0");
+ setMaxValue("9");
+ setInputSize(1);
+ setInputPosition("right");
+ setEnableManualInput(true);
+ setValue("3");
+ setShowInput(true);
+ setStep("1");
+ setShowToolTip(true);
+ setShowBoundaryValues(true);
+ setShowInput(true);
+ setMaxlength(2);
+ }
+
+ public void bTest2(){
+ setMinValue("1000");
+ setMaxValue("99999");
+ setInputSize(10);
+ setInputPosition("left");
+ setEnableManualInput(false);
+ setValue("99999");
+ setShowInput(true);
+ setStep("50");
+ setShowToolTip(false);
+ setShowBoundaryValues(true);
+ setMaxlength(5);
+ }
+
+ public void bTest3(){
+ setMinValue("101");
+ setMaxValue("203");
+ setInputSize(4);
+ setInputPosition("left");
+ setEnableManualInput(false);
+ setValue("102");
+ setShowInput(true);
+ setStep("2");
+ setShowToolTip(false);
+ setShowBoundaryValues(true);
+ setMaxlength(6);
+ }
+
+ public void bTest4(){
+ setMinValue("10");
+ setMaxValue("12");
+ setInputSize(2);
+ setInputPosition("left");
+ setEnableManualInput(false);
+ setValue("102");
+ setShowInput(false);
+ setStep("2");
+ setShowToolTip(false);
+ setShowBoundaryValues(true);
+ setMaxlength(2);
+ }
+
+ public void bTest5(){
+ setMinValue("-99999");
+ setMaxValue("99999");
+ setInputSize(15);
+ setInputPosition("right");
+ setEnableManualInput(true);
+ setValue("103");
+ setShowInput(true);
+ setStep("2");
+ setShowToolTip(false);
+ setShowBoundaryValues(false);
+ setMaxlength(8);
+ }
+
+ public String getValueChangeListener() {
+ return valueChangeListener;
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -4,18 +4,19 @@
// private String size;
// private String controlPosition;
- private int inputSize;
- private String max;
- private String min;
- private String value;
- private String step;
- private String inputStyle;
- private String style;
- private String btnLabel = "ON";
- private boolean cycled;
- private boolean disabled;
- private boolean manualInput;
- private boolean rendered;
+ private int inputSize;
+ private String tabindex;
+ private String max;
+ private String min;
+ private String value;
+ private String step;
+ private String inputStyle;
+ private String style;
+ private String btnLabel = "ON";
+ private boolean cycled;
+ private boolean disabled;
+ private boolean manualInput;
+ private boolean rendered;
public InputNumberSpinner() {
// size= "200";
@@ -47,9 +48,10 @@
}
}
+
/*
- * public String getControlPosition() { return controlPosition; } public void
- * setControlPosition(String controlPosition) { this.controlPosition =
+ * public String getControlPosition() { return controlPosition; } public
+ * void setControlPosition(String controlPosition) { this.controlPosition =
* controlPosition; }
*/
@@ -154,4 +156,66 @@
this.inputSize = inputSize;
}
+ public String getTabindex() {
+ return tabindex;
+ }
+
+ public void setTabindex(String tabindex) {
+ this.tabindex = tabindex;
+ }
+
+ public void bTest1(){
+ setCycled(true);
+ setManualInput(true);
+ setInputSize(5);
+ setMin("0");
+ setMax("20");
+ setStep("1");
+ setTabindex("2");
+ setValue("1");
+ }
+
+ public void bTest2(){
+ setCycled(false);
+ setManualInput(false);
+ setInputSize(10);
+ setMin("1000");
+ setMax("99999");
+ setStep("255");
+ setTabindex("5");
+ setValue("5555");
+ }
+
+ public void bTest3(){
+ setCycled(true);
+ setManualInput(false);
+ setInputSize(3);
+ setMin("101");
+ setMax("202");
+ setStep("2");
+ setTabindex("2");
+ setValue("102");
+ }
+
+ public void bTest4(){
+ setCycled(false);
+ setManualInput(true);
+ setInputSize(4);
+ setMin("33");
+ setMax("66");
+ setStep("11");
+ setTabindex("3");
+ setValue("55");
+ }
+
+ public void bTest5(){
+ setCycled(true);
+ setManualInput(true);
+ setInputSize(15);
+ setMin("-99999");
+ setMax("99999");
+ setStep("33");
+ setTabindex("5");
+ setValue("101");
+ }
}
Added: trunk/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,338 @@
+package listShuttle;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+
+import javax.faces.event.ValueChangeEvent;
+
+import util.data.Data;
+
+public class ListShuttle {
+ private int first;
+ private int lenght;
+ private String [] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
+ private boolean fastMoveControlsVisible;
+ private boolean fastOrderControlsVisible;
+ private boolean moveControlsVisible;
+ private boolean orderControlsVisible;
+ private boolean showButtonLabels;
+ private boolean showSelect;
+ private boolean showAllSourceData;
+ private boolean showAllTargetData;
+ private boolean switchByClick;
+ private ArrayList<Data> sourceValue;
+ private ArrayList<Data> targetValue;
+ private ArrayList<String> info;
+ private Collection sourceSelection;
+ private Collection targetSelection;
+ private String bottomControlLabel;
+ private String copyAllControlLabel;
+ private String copyControlLabel;
+ private String downControlLabel;
+ private String removeAllControlLabel;
+ private String removeControlLabel;
+ private String topControlLabel;
+ private String upControlLabel;
+ private String targetListWidth;
+ private String sourceListWidth;
+ private String listsHeight;
+ private String sourceCaptionLabel;
+ private String targetCaptionLabel;
+
+ public ListShuttle() {
+ this.first = 1;
+ this.lenght = 10;
+ this.showSelect = true;
+ this.showAllSourceData = true;
+ this.showAllTargetData = true;
+ this.fastMoveControlsVisible = true;
+ this.fastOrderControlsVisible = true;
+ this.moveControlsVisible = true;
+ this.orderControlsVisible = true;
+ this.showButtonLabels = true;
+ this.bottomControlLabel = "bottom";
+ this.copyAllControlLabel = "copy all";
+ this.copyControlLabel = "copy";
+ this.downControlLabel = "down";
+ this.removeAllControlLabel = "remove all";
+ this.removeControlLabel = "remove";
+ this.topControlLabel = "top";
+ this.upControlLabel = "up";
+ this.info = new ArrayList<String>();
+ this.switchByClick = false;
+ this.targetListWidth = "300";
+ this.sourceListWidth = "300";
+ this.listsHeight = "400";
+ this.sourceCaptionLabel = "sourceCaptionLabel";
+ this.targetCaptionLabel = "targetCaptionLabel";
+ this.targetValue = new ArrayList<Data>();
+ this.sourceValue = new ArrayList<Data>();
+ addNewItem();
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isFastMoveControlsVisible() {
+ return fastMoveControlsVisible;
+ }
+
+ public void setFastMoveControlsVisible(boolean fastMoveControlsVisible) {
+ this.fastMoveControlsVisible = fastMoveControlsVisible;
+ }
+
+ public boolean isFastOrderControlsVisible() {
+ return fastOrderControlsVisible;
+ }
+
+ public void setFastOrderControlsVisible(boolean fastOrderControlsVisible) {
+ this.fastOrderControlsVisible = fastOrderControlsVisible;
+ }
+
+ public boolean isMoveControlsVisible() {
+ return moveControlsVisible;
+ }
+
+ public void setMoveControlsVisible(boolean moveControlsVisible) {
+ this.moveControlsVisible = moveControlsVisible;
+ }
+
+ public boolean isOrderControlsVisible() {
+ return orderControlsVisible;
+ }
+
+ public void setOrderControlsVisible(boolean orderControlsVisible) {
+ this.orderControlsVisible = orderControlsVisible;
+ }
+
+ public boolean isShowButtonLabels() {
+ return showButtonLabels;
+ }
+
+ public void setShowButtonLabels(boolean showButtonLabels) {
+ this.showButtonLabels = showButtonLabels;
+ }
+
+ public ArrayList<Data> getSourceValue() {
+ return sourceValue;
+ }
+
+ public void setSourceValue(ArrayList<Data> sourceValue) {
+ this.sourceValue = sourceValue;
+ }
+
+ public ArrayList getTargetValue() {
+ return targetValue;
+ }
+
+ public String getBottomControlLabel() {
+ return bottomControlLabel;
+ }
+
+ public void setBottomControlLabel(String bottomControlLabel) {
+ this.bottomControlLabel = bottomControlLabel;
+ }
+
+ public String getCopyAllControlLabel() {
+ return copyAllControlLabel;
+ }
+
+ public void setCopyAllControlLabel(String copyAllControlLabel) {
+ this.copyAllControlLabel = copyAllControlLabel;
+ }
+
+ public String getCopyControlLabel() {
+ return copyControlLabel;
+ }
+
+ public void setCopyControlLabel(String copyControlLabel) {
+ this.copyControlLabel = copyControlLabel;
+ }
+
+ public String getDownControlLabel() {
+ return downControlLabel;
+ }
+
+ public void setDownControlLabel(String downControlLabel) {
+ this.downControlLabel = downControlLabel;
+ }
+
+ public String getRemoveAllControlLabel() {
+ return removeAllControlLabel;
+ }
+
+ public void setRemoveAllControlLabel(String removeAllControlLabel) {
+ this.removeAllControlLabel = removeAllControlLabel;
+ }
+
+ public String getRemoveControlLabel() {
+ return removeControlLabel;
+ }
+
+ public void setRemoveControlLabel(String removeControlLabel) {
+ this.removeControlLabel = removeControlLabel;
+ }
+
+ public String getTopControlLabel() {
+ return topControlLabel;
+ }
+
+ public void setTopControlLabel(String topControlLabel) {
+ this.topControlLabel = topControlLabel;
+ }
+
+ public String getUpControlLabel() {
+ return upControlLabel;
+ }
+
+ public void setUpControlLabel(String upControlLabel) {
+ this.upControlLabel = upControlLabel;
+ }
+
+ public void addNewItem() {
+ if(lenght < 0) lenght = 0;
+ if(sourceValue.size() > lenght)
+ for(int i = lenght; i < sourceValue.size(); )
+ sourceValue.remove(i);
+ else
+ for(int i = sourceValue.size() + 1; i <= lenght; i++)
+ sourceValue.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ }
+
+ public int getLenght() {
+ return lenght;
+ }
+
+ public void setLenght(int lenght) {
+ this.lenght = lenght;
+ }
+
+ public ArrayList<String> getInfo() {
+ info.clear();
+ addSelection(getSourceSelection(), "1. sourceSelection");
+ addSelection(getTargetSelection(), "2. targetSelection");
+ return info;
+ }
+
+ public void setInfo(ArrayList<String> info) {
+ this.info = info;
+ }
+
+ public void setTargetValue(ArrayList<Data> targetValue) {
+ this.targetValue = targetValue;
+ }
+
+ public void cbAction() {
+ info.clear();
+ info.add("commandButton submit();");
+ }
+
+ public void clAction() {
+ info.clear();
+ info.add("commandLink submit();");
+ }
+
+ public boolean isShowSelect() {
+ return showSelect;
+ }
+
+ public void setShowSelect(boolean showSelect) {
+ this.showSelect = showSelect;
+ }
+
+ public boolean isShowAllSourceData() {
+ return showAllSourceData;
+ }
+
+ public void setShowAllSourceData(boolean showAllSourceData) {
+ this.showAllSourceData = showAllSourceData;
+ }
+
+ public boolean isShowAllTargetData() {
+ return showAllTargetData;
+ }
+
+ public void setShowAllTargetData(boolean showAllTargetData) {
+ this.showAllTargetData = showAllTargetData;
+ }
+
+ public Collection getSourceSelection() {
+ return sourceSelection;
+ }
+
+ public void setSourceSelection(Collection sourceSelection) {
+ this.sourceSelection = sourceSelection;
+ }
+
+ public Collection getTargetSelection() {
+ return targetSelection;
+ }
+
+ public void setTargetSelection(Collection targetSelection) {
+ this.targetSelection = targetSelection;
+ }
+
+ public boolean isSwitchByClick() {
+ return switchByClick;
+ }
+
+ public void setSwitchByClick(boolean switchByClick) {
+ this.switchByClick = switchByClick;
+ }
+
+ public String getTargetListWidth() {
+ return targetListWidth;
+ }
+
+ public void setTargetListWidth(String targetListWidth) {
+ this.targetListWidth = targetListWidth;
+ }
+
+ public String getSourceListWidth() {
+ return sourceListWidth;
+ }
+
+ public void setSourceListWidth(String sourceListWidth) {
+ this.sourceListWidth = sourceListWidth;
+ }
+
+ public String getListsHeight() {
+ return listsHeight;
+ }
+
+ public void setListsHeight(String listsHeight) {
+ this.listsHeight = listsHeight;
+ }
+
+ public String getSourceCaptionLabel() {
+ return sourceCaptionLabel;
+ }
+
+ public void setSourceCaptionLabel(String sourceCaptionLabel) {
+ this.sourceCaptionLabel = sourceCaptionLabel;
+ }
+
+ public String getTargetCaptionLabel() {
+ return targetCaptionLabel;
+ }
+
+ public void setTargetCaptionLabel(String targetCaptionLabel) {
+ this.targetCaptionLabel = targetCaptionLabel;
+ }
+
+ private void addSelection(Collection<Data> selection, String description) {
+ if(selection == null) return;
+ Iterator<Data> inter = selection.iterator();
+ Data data = new Data();
+ while (inter.hasNext()) {
+ data = inter.next();
+ info.add(description + ": " + data.getInt0() + "; " + data.getStr0() + "; " + data.getStr0() + "submit(); " + data.getStr1() + "; " + data.getStr1() + "submit(); " + data.getStr2() + "; " + data.getStr3());
+ }
+ }
+}
Modified: trunk/test-applications/jsp/src/main/java/message/Message.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/message/Message.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/message/Message.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -7,8 +7,12 @@
private boolean showDetail;
private boolean showSummary;
private boolean tooltip;
+ private String select1;
+ private String select2;
+ private String select3;
+ private String select4;
+ private String select5;
-
public Message() {
msg = "select1";
layout = "table";
@@ -16,6 +20,11 @@
showDetail = true;
showSummary = false;
tooltip = true;
+ select1 = "error";
+ select2 = "error";
+ select3 = "error";
+ select4 = "error";
+ select5 = "error";
}
public String getMsg() {
@@ -65,4 +74,114 @@
public void setTitle(String title) {
this.title = title;
}
+
+ public String getSelect1() {
+ return select1;
+ }
+
+ public void setSelect1(String select1) {
+ this.select1 = select1;
+ }
+
+ public String getSelect2() {
+ return select2;
+ }
+
+ public void setSelect2(String select2) {
+ this.select2 = select2;
+ }
+
+ public String getSelect3() {
+ return select3;
+ }
+
+ public void setSelect3(String select3) {
+ this.select3 = select3;
+ }
+
+ public String getSelect4() {
+ return select4;
+ }
+
+ public void setSelect4(String select4) {
+ this.select4 = select4;
+ }
+
+ public String getSelect5() {
+ return select5;
+ }
+
+ public void setSelect5(String select5) {
+ this.select5 = select5;
+ }
+
+ public void bTest1(){
+ setLayout("table");
+ setMsg("fatal");
+ setShowDetail(true);
+ setShowSummary(true);
+ setTitle("Test1");
+ setTooltip(true);
+ setSelect1("error");
+ setSelect2("fatal");
+ setSelect3("warn");
+ setSelect4("info");
+ setSelect5("passed");
+ }
+
+ public void bTest2(){
+ setLayout("table");
+ setMsg("error");
+ setShowDetail(false);
+ setShowSummary(true);
+ setTitle("Test2");
+ setTooltip(true);
+ setSelect1("error");
+ setSelect2("fatal");
+ setSelect3("fatal");
+ setSelect4("passed");
+ setSelect5("passed");
+ }
+
+ public void bTest3(){
+ setLayout("table");
+ setMsg("passed");
+ setShowDetail(true);
+ setShowSummary(false);
+ setTitle("Test3");
+ setTooltip(true);
+ setSelect1("error");
+ setSelect2("error");
+ setSelect3("passed");
+ setSelect4("error");
+ setSelect5("passed");
+ }
+
+ public void bTest4(){
+ setLayout("table");
+ setMsg("passed");
+ setShowDetail(true);
+ setShowSummary(true);
+ setTitle("Test4");
+ setTooltip(false);
+ setSelect1("warn");
+ setSelect2("warn");
+ setSelect3("warn");
+ setSelect4("warn");
+ setSelect5("warn");
+ }
+
+ public void bTest5(){
+ setLayout("table");
+ setMsg("warn");
+ setShowDetail(false);
+ setShowSummary(false);
+ setTitle("Test5");
+ setTooltip(false);
+ setSelect1("passed");
+ setSelect2("fatal");
+ setSelect3("error");
+ setSelect4("passed");
+ setSelect5("warn");
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,24 +2,59 @@
public class ModalPanel {
-
+ private boolean autosized;
+ private boolean keepVisualState;
+ private String left;
+ private String top;
+ private boolean rendered;
+ private String shadowDepth;
+ private String shadowOpacity;
+ private boolean showWhenRendered;
+ private int zindex;
private int minHeight;
private int minWidth;
private int height;
private int width;
-
private boolean moveable;
private boolean resizeable;
+ private String inputTextTest;
+ private String selectOneListboxTest;
+
+ public String getInputTextTest() {
+ return inputTextTest;
+ }
+
+ public void setInputTextTest(String inputTextTest) {
+ this.inputTextTest = inputTextTest;
+ }
+
+ public String getSelectOneListboxTest() {
+ return selectOneListboxTest;
+ }
+
+ public void setSelectOneListboxTest(String selectOneListboxTest) {
+ this.selectOneListboxTest = selectOneListboxTest;
+ }
+
public ModalPanel() {
-
- minHeight = 100;
- minWidth = 100;
- height = 300;
- width = 300;
-
- moveable=true;
- resizeable=true;
+ this.inputTextTest = "text";
+ this.selectOneListboxTest = "1";
+ this.minHeight = 100;
+ this.minWidth = 100;
+ this.height = 300;
+ this.width = 300;
+ this.moveable=true;
+ this.resizeable=true;
+ this.autosized = false;
+ this.keepVisualState = false;
+ this.left = "100";
+ this.top = "100";
+ this.rendered = true;
+ this.shadowDepth = "3";
+ this.shadowOpacity = "3";
+ this.zindex = 3;
+ this.showWhenRendered = false;
}
public int getHeight() {
@@ -61,7 +96,12 @@
public void setResizeable(boolean resizeable) {
this.resizeable = resizeable;
}
+
+ public void setAutosized(boolean autosized) {
+ this.autosized = autosized;
+ }
+
public int getWidth() {
return width;
}
@@ -69,5 +109,117 @@
public void setWidth(int width) {
this.width = width;
}
+
+ public void bTest1(){
+ setHeight(300);
+ setWidth(450);
+ setMinHeight(250);
+ setMinWidth(400);
+ setMoveable(false);
+ setResizeable(false);
+ }
+ public void bTest2(){
+ setHeight(350);
+ setWidth(400);
+ setMinHeight(400);
+ setMinWidth(450);
+ setMoveable(true);
+ setResizeable(false);
+ }
+
+ public void bTest3(){
+ setHeight(400);
+ setWidth(300);
+ setMinHeight(400);
+ setMinWidth(300);
+ setMoveable(true);
+ setResizeable(true);
+ }
+
+ public void bTest4(){
+ setHeight(450);
+ setWidth(450);
+ setMinHeight(450);
+ setMinWidth(450);
+ setMoveable(false);
+ setResizeable(true);
+ }
+
+ public void bTest5(){
+ setHeight(900);
+ setWidth(800);
+ setMinHeight(700);
+ setMinWidth(600);
+ setMoveable(true);
+ setResizeable(true);
+ }
+
+ public boolean isAutosized() {
+ return autosized;
+ }
+
+ public boolean isKeepVisualState() {
+ return keepVisualState;
+ }
+
+ public void setKeepVisualState(boolean keepVisualState) {
+ this.keepVisualState = keepVisualState;
+ }
+
+ public String getLeft() {
+ return left;
+ }
+
+ public void setLeft(String left) {
+ this.left = left;
+ }
+
+ public String getTop() {
+ return top;
+ }
+
+ public void setTop(String top) {
+ this.top = top;
+ }
+
+ public boolean getRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getShadowDepth() {
+ return shadowDepth;
+ }
+
+ public void setShadowDepth(String shadowDepth) {
+ this.shadowDepth = shadowDepth;
+ }
+
+ public String getShadowOpacity() {
+ return shadowOpacity;
+ }
+
+ public void setShadowOpacity(String shadowOpacity) {
+ this.shadowOpacity = shadowOpacity;
+ }
+
+ public boolean isShowWhenRendered() {
+ return showWhenRendered;
+ }
+
+ public void setShowWhenRendered(boolean showWhenRendered) {
+ this.showWhenRendered = showWhenRendered;
+ }
+
+ public int getZindex() {
+ return zindex;
+ }
+
+ public void setZindex(int zindex) {
+ this.zindex = zindex;
+ }
}
Added: trunk/test-applications/jsp/src/main/java/orderingList/OrderingList.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/orderingList/OrderingList.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/orderingList/OrderingList.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,355 @@
+package orderingList;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+
+import javax.faces.component.html.HtmlDataTable;
+
+import util.data.Data;
+
+public class OrderingList{
+ private ArrayList<String> info;
+ private ArrayList<Data> list;
+ private String [] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
+ private String captionLabel;
+ private Collection<Data> selection;
+ private String controlsType;
+ private String controlsVerticalAlign;
+ private String controlsHorizontalAlign;
+ private String bottomControlLabel;
+ private String upControlLabel;
+ private String topControlLabel;
+ private String downControlLabel;
+ private String listHeight;
+ private String listWidth;
+ private int lenght;
+ private boolean orderControlsVisible;
+ private boolean fastOrderControlsVisible;
+ private boolean rendered;
+ private boolean showButtonLabels;
+ private boolean facet;
+ private boolean showAllData;
+ private boolean showSelect;
+
+ public boolean isFacet() {
+ return facet;
+ }
+
+ public void setFacet(boolean facet) {
+ this.facet = facet;
+ }
+
+ public Collection<Data> getSelection() {
+ return selection;
+ }
+
+ public void setSelection(Collection<Data> selection) {
+ System.out.println("Selection.out: " + selection);
+ info.clear();
+ addSelection(selection);
+ this.selection = selection;
+ }
+
+ public ArrayList<Data> getList() {
+ return list;
+ }
+
+ public void setList(ArrayList<Data> list) {
+ this.list = list;
+ }
+
+ public void addNewItem() {
+ if(lenght < 0) lenght = 0;
+ if(list.size() > lenght)
+ for(int i = lenght; i < list.size(); )
+ list.remove(i);
+ else
+ for(int i = list.size() + 1; i <= lenght; i++)
+ list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ }
+
+ public OrderingList() {
+ this.info = new ArrayList<String>();
+ this.captionLabel = "captionLabel";
+ this.lenght = 10;
+ this.listHeight = "300";
+ this.listWidth = "800";
+ this.controlsType = "button";
+ this.controlsHorizontalAlign = "right";
+ this.controlsVerticalAlign = "center";
+ this.bottomControlLabel = "bottom label";
+ this.upControlLabel = "up label";
+ this.downControlLabel = "down label";
+ this.topControlLabel = "top label";
+ this.orderControlsVisible = true;
+ this.fastOrderControlsVisible = true;
+ this.rendered = true;
+ this.showButtonLabels = true;
+ this.showAllData = true;
+ this.showSelect = true;
+ this.list = new ArrayList<Data>();
+ addNewItem();
+ }
+
+ public String getListHeight() {
+ return listHeight;
+ }
+
+ public void setListHeight(String listHeight) {
+ this.listHeight = listHeight;
+ }
+
+ public String getListWidth() {
+ return listWidth;
+ }
+
+ public void setListWidth(String listWidth) {
+ this.listWidth = listWidth;
+ }
+
+ public String getControlsType() {
+ return controlsType;
+ }
+
+ public void setControlsType(String controlsType) {
+ this.controlsType = controlsType;
+ }
+
+ public String getBottomControlLabel() {
+ return bottomControlLabel;
+ }
+
+ public void setBottomControlLabel(String bottomControlLabel) {
+ this.bottomControlLabel = bottomControlLabel;
+ }
+
+ public String getCaptionLabel() {
+ return captionLabel;
+ }
+
+ public void setCaptionLabel(String captionLabel) {
+ this.captionLabel = captionLabel;
+ }
+
+ public String getUpControlLabel() {
+ return upControlLabel;
+ }
+
+ public void setUpControlLabel(String upControlLabel) {
+ this.upControlLabel = upControlLabel;
+ }
+
+ public String getTopControlLabel() {
+ return topControlLabel;
+ }
+
+ public void setTopControlLabel(String topControlLabel) {
+ this.topControlLabel = topControlLabel;
+ }
+
+ public String getControlsVerticalAlign() {
+ return controlsVerticalAlign;
+ }
+
+ public void setControlsVerticalAlign(String controlsVerticalAlign) {
+ this.controlsVerticalAlign = controlsVerticalAlign;
+ }
+
+ public String getControlsHorizontalAlign() {
+ return controlsHorizontalAlign;
+ }
+
+ public void setControlsHorizontalAlign(String controlsHorizontalAlign) {
+ this.controlsHorizontalAlign = controlsHorizontalAlign;
+ }
+
+ public String getDownControlLabel() {
+ return downControlLabel;
+ }
+
+ public void setDownControlLabel(String downControlLabel) {
+ this.downControlLabel = downControlLabel;
+ }
+
+ public boolean isOrderControlsVisible() {
+ return orderControlsVisible;
+ }
+
+ public void setOrderControlsVisible(boolean orderControlsVisible) {
+ this.orderControlsVisible = orderControlsVisible;
+ }
+
+ public boolean isFastOrderControlsVisible() {
+ return fastOrderControlsVisible;
+ }
+
+ public void setFastOrderControlsVisible(boolean fastOrderControlsVisible) {
+ this.fastOrderControlsVisible = fastOrderControlsVisible;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public boolean isShowButtonLabels() {
+ return showButtonLabels;
+ }
+
+ public void setShowButtonLabels(boolean showButtonLabels) {
+ this.showButtonLabels = showButtonLabels;
+ }
+
+ public int getLenght() {
+ return lenght;
+ }
+
+ public void setLenght(int lenght) {
+ this.lenght = lenght;
+ }
+
+ public void cbAction() {
+ info.clear();
+ info.add("commandButton submit();");
+ addSelection(getSelection());
+ }
+
+ public void clAction() {
+ info.clear();
+ info.add("commandLink submit();");
+ addSelection(getSelection());
+ }
+
+ public void bTest1(){
+ setCaptionLabel("Caption Test1");
+ setControlsHorizontalAlign("0");
+ setControlsVerticalAlign("0");
+ setControlsType("button");
+ setLenght(40);
+ setListHeight("300");
+ setListWidth("400");
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("t1 top label");
+ setBottomControlLabel("t1 bottom label");
+ setUpControlLabel("t1 up label");
+ setDownControlLabel("t1 down label");
+ addNewItem();
+ }
+
+ public void bTest2(){
+ setCaptionLabel("Caption Test2");
+ setControlsHorizontalAlign("30");
+ setControlsVerticalAlign("50");
+ setControlsType("button");
+ setLenght(40);
+ setListHeight("600");
+ setListWidth("400");
+ setFastOrderControlsVisible(false);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("t2");
+ setBottomControlLabel("t2");
+ setUpControlLabel("t2");
+ setDownControlLabel("t2");
+ addNewItem();
+ }
+
+ public void bTest3(){
+ setCaptionLabel("Caption Test3");
+ setControlsHorizontalAlign("50");
+ setControlsVerticalAlign("10");
+ setControlsType("button");
+ setLenght(40);
+ setListHeight("500");
+ setListWidth("500");
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(false);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("top");
+ setBottomControlLabel("bottom");
+ setUpControlLabel("up");
+ setDownControlLabel("down");
+ addNewItem();
+ }
+
+ public void bTest4(){
+ setCaptionLabel("Caption Test4");
+ setControlsHorizontalAlign("0");
+ setControlsVerticalAlign("0");
+ setControlsType("button");
+ setLenght(10000);
+ setListHeight("500");
+ setListWidth("600");
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(false);
+ setTopControlLabel("");
+ setBottomControlLabel("");
+ setUpControlLabel("");
+ setDownControlLabel("");
+ addNewItem();
+ }
+
+ public void bTest5(){
+ setCaptionLabel("Caption Test5");
+ setControlsHorizontalAlign("20");
+ setControlsVerticalAlign("20");
+ setControlsType("none");
+ setLenght(100);
+ setListHeight("400");
+ setListWidth("500");
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("top");
+ setBottomControlLabel("bottom");
+ setUpControlLabel("up");
+ setDownControlLabel("down");
+ addNewItem();
+ }
+
+ public ArrayList<String> getInfo() {
+ return info;
+ }
+
+ public void setInfo(ArrayList<String> info) {
+ this.info = info;
+ }
+
+ private void addSelection(Collection<Data> selection) {
+ if(selection == null) return;
+ Iterator<Data> inter = selection.iterator();
+ Data data = new Data();
+ while (inter.hasNext()) {
+ data = inter.next();
+ info.add(data.getInt0() + "; " + data.getStr0() + "; " + data.getStr0() + "submit(); " + data.getStr1() + "; " + data.getStr1() + "submit(); " + data.getStr2() + "; " + data.getStr3());
+ }
+ }
+
+ public boolean isShowAllData() {
+ return showAllData;
+ }
+
+ public void setShowAllData(boolean showAllData) {
+ this.showAllData = showAllData;
+ }
+
+ public boolean isShowSelect() {
+ return showSelect;
+ }
+
+ public void setShowSelect(boolean showSelect) {
+ this.showSelect = showSelect;
+ }
+}
Modified: trunk/test-applications/jsp/src/main/java/paint2D/Paint2D.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/paint2D/Paint2D.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/paint2D/Paint2D.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,3 +1,12 @@
+/** @package
+
+ Paint2D.java
+
+ Copyright(c) exadel 2000
+
+ Author: Alex Yanul
+ Created: AY 7/30/2007 12:52:38 PM
+*/
package paint2D;
import java.awt.Color;
@@ -3,12 +12,10 @@
import java.awt.Font;
import java.awt.Graphics2D;
-import java.awt.geom.AffineTransform;
-import java.awt.geom.Rectangle2D;
public class Paint2D {
- private static int size = 100;
private static float location = 150;
-
+
+ PaintData data = new PaintData();
private int width;
private int height;
@@ -22,15 +29,7 @@
private String border;
private boolean rendered;
private boolean style;
-
- public boolean isStyle() {
- return style;
- }
-
- public void setStyle(boolean style) {
- this.style = style;
- }
-
+
public boolean isRerender() {
return rendered;
}
@@ -48,27 +47,27 @@
}
public Paint2D() {
-
+
width = 400;
align = "left";
height = 200;
title = "Pain2D title";
bgcolor = "white";
rendered = true;
- border = "4px";
+ border = "2px";
style = false;
}
-
+
public String getStyleString() {
if(style)
return "style";
else
return "";
}
-
+
public void paint(Graphics2D g2, Object obj) {
- PaintData data = (PaintData) obj;
- int testLenght = data.text.length();
+ data.setText(((PaintData) obj).getText());
+ int testLenght = data.getText().length();
int fontSize = testLenght < 8 ? 40 : 40 - (testLenght - 8);
if (fontSize < 12) fontSize = 12;
Font font = new Font("Serif", Font.HANGING_BASELINE, fontSize);
@@ -79,7 +78,7 @@
g2.translate(x, y);
g2.setPaint(Color.BLUE);
- g2.drawString(data.text, 0, 0);
+ g2.drawString(data.getText(), 0, 0);
}
public int getHeight() {
@@ -154,14 +153,6 @@
this.location = location;
}
- public int getSize() {
- return size;
- }
-
- public void setSize(int size) {
- this.size = size;
- }
-
public boolean isRendered() {
return rendered;
}
@@ -169,4 +160,77 @@
public void setRendered(boolean rendered) {
this.rendered = rendered;
}
+
+ public boolean isStyle() {
+ return style;
+ }
+
+ public void setStyle(boolean style) {
+ this.style = style;
+ }
+
+ public void bTest1(){
+ setAlign("top");
+ setBgcolor("gray");
+ setBorder("3");
+ setFormat("gif");
+ setHeight(300);
+ setWidth(300);
+ setVspace("15");
+ setHspace("15");
+ setTitle("Test1");
+ //data.setText("Test1!");
+ }
+
+ public void bTest2(){
+ setAlign("middle");
+ setBgcolor("yellow");
+ setBorder("1");
+ setFormat("png");
+ setHeight(400);
+ setWidth(300);
+ setVspace("0");
+ setHspace("15");
+ setTitle("Test2");
+ //data.setText("Test2!");
+ }
+
+ public void bTest3(){
+ setAlign("left");
+ setBgcolor("lime");
+ setBorder("10");
+ setFormat("jpeg");
+ setHeight(300);
+ setWidth(400);
+ setVspace("15");
+ setHspace("0");
+ setTitle("Test3");
+ //data.setText("Test3!");
+ }
+
+ public void bTest4(){
+ setAlign("right");
+ setBgcolor("teal");
+ setBorder("3");
+ setFormat("gif");
+ setHeight(400);
+ setWidth(600);
+ setVspace("0");
+ setHspace("0");
+ setTitle("Test4");
+ //data.setText("Test4!");
+ }
+
+ public void bTest5(){
+ setAlign("botton");
+ setBgcolor("fuchsia");
+ setBorder("3");
+ setFormat("png");
+ setHeight(400);
+ setWidth(450);
+ setVspace("-5");
+ setHspace("-5");
+ setTitle("Test5");
+ //data.setText("Test5!");
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/paint2D/PaintData.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/paint2D/PaintData.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/paint2D/PaintData.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -3,7 +3,7 @@
import java.io.Serializable;
public class PaintData implements Serializable{
- String text;
+ private String text;
public PaintData()
{
Modified: trunk/test-applications/jsp/src/main/java/panel/Panel.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/panel/Panel.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/panel/Panel.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -57,6 +57,36 @@
else
for(int i = 0; i < title.length; i++)
title[i] = t + "_" + i;
-
}
+
+ public void bTest1(){
+ setWidth("500px");
+ setHeight("300px");
+ setTitle(new String [] {"Test1", "Test 1", "Test_1", "Test-1"});
+ }
+
+ public void bTest2(){
+ setWidth("500px");
+ setHeight("600px");
+ setTitle(new String [] {"Test2", "Test 2", "Test_2", "Test-2"});
+ }
+
+ public void bTest3(){
+ setWidth("50%");
+ setHeight("300px");
+ setTitle(new String [] {"Test3", "Test 3", "Test_3", "Test-3"});
+ }
+
+ public void bTest4(){
+ setWidth("400px");
+ setHeight("10%");
+ setTitle(new String [] {"Test4", "Test 4", "Test_4", "Test-4"});
+ }
+
+ public void bTest5(){
+ setWidth("400px");
+ setHeight("400px");
+ setTitle(new String [] {"Test5", "Test 5", "Test_5", "Test-5"});
+ }
+
}
Modified: trunk/test-applications/jsp/src/main/java/panelBar/PanelBar.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/panelBar/PanelBar.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/panelBar/PanelBar.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -121,4 +121,33 @@
this.btnLabel = btnLabel;
}
+ public void bTest1(){
+ setWidth("500px");
+ setHeight("300px");
+ setLabel(new String [] {"Test1", "Test 1", "Test_1", "Test-1"});
+ }
+
+ public void bTest2(){
+ setWidth("500px");
+ setHeight("600px");
+ setLabel(new String [] {"Test2", "Test 2", "Test_2", "Test-2"});
+ }
+
+ public void bTest3(){
+ setWidth("50%");
+ setHeight("300px");
+ setLabel(new String [] {"Test3", "Test 3", "Test_3", "Test-3"});
+ }
+
+ public void bTest4(){
+ setWidth("400px");
+ setHeight("10%");
+ setLabel(new String [] {"Test4", "Test 4", "Test_4", "Test-4"});
+ }
+
+ public void bTest5(){
+ setWidth("400px");
+ setHeight("400px");
+ setLabel(new String [] {"Test5", "Test 5", "Test_5", "Test-5"});
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/panelMenu/PanelMenu.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/panelMenu/PanelMenu.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/panelMenu/PanelMenu.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,6 +1,6 @@
package panelMenu;
-import style.icon.Icon;
+import util.icon.Icon;
public class PanelMenu {
@@ -27,12 +27,17 @@
rendered = "true";
disabled = false;
tabIndex = "1";
- iconItemPosition = "left";
- iconItemTopPosition = "left";
iconGroupPosition = "left";
iconGroupTopPosition = "left";
+ iconItemPosition = "left";
+ iconGroupTopPosition = "left";
icon = new Icon();
-
+ icon.setCollapsed(icon.iconCollapse);
+ icon.setExpanded(icon.iconExpand);
+ icon.setItem(icon.iconItem);
+ icon.setIcon(icon.iconFileManager);
+ icon.setCollapsedGroup(icon.iconAjaxProcess);
+ icon.setDisabledGroup(icon.iconAjaxStoped);
}
public boolean isDisabled() {
@@ -63,7 +68,6 @@
return rendered;
}
public void setRendered(String rendered) {
- System.out.println(rendered);
this.rendered = rendered;
}
public Icon getIcon() {
@@ -128,4 +132,112 @@
public void setInputText(String inputText) {
this.inputText = inputText;
}
-}
+
+ public void bTest1(){
+ icon.setCollapsed(icon.iconCollapse);
+ icon.setExpanded(icon.iconExpand);
+ icon.setItem(icon.iconItem);
+ icon.setIcon(icon.iconFileManager);
+ icon.setCollapsedGroup(icon.iconAjaxProcess);
+ icon.setDisabledGroup(icon.iconAjaxStoped);
+
+ setWidth("400px");
+ setAlign("right");
+ setDisabled(false);
+ setExpandMode("ajax");
+ setExpandSingle(false);
+ setIconGroupPosition("left");
+ setIconGroupTopPosition("right");
+ setIconItemPosition("left");
+ setIconItemTopPosition("right");
+ setMode("ajax");
+ setTabIndex("3");
+ }
+
+ public void bTest2(){
+ icon.setCollapsed(icon.iconExpand);
+ icon.setExpanded(icon.iconCollapse);
+ icon.setItem(icon.iconHeader);
+ icon.setIcon(icon.iconFileManagerReject);
+ icon.setCollapsedGroup(icon.iconAjaxStoped);
+ icon.setDisabledGroup(icon.iconAjaxProcess);
+
+ setWidth("250px");
+ setAlign("bottom");
+ setDisabled(false);
+ setExpandMode("server");
+ setExpandSingle(false);
+ setIconGroupPosition("right");
+ setIconGroupTopPosition("left");
+ setIconItemPosition("right");
+ setIconItemTopPosition("left");
+ setMode("server");
+ setTabIndex("2");
+ }
+
+ public void bTest3(){
+ icon.setCollapsed(icon.iconCollapse);
+ icon.setExpanded(icon.iconExpand);
+ icon.setItem(icon.iconItem);
+ icon.setIcon(icon.iconFileManager);
+ icon.setCollapsedGroup(icon.iconAjaxProcess);
+ icon.setDisabledGroup(icon.iconAjaxStoped);
+
+ setWidth("400px");
+ setAlign("middle");
+ setDisabled(false);
+ setExpandMode("server");
+ setExpandSingle(false);
+ setIconGroupPosition("right");
+ setIconGroupTopPosition("right");
+ setIconItemPosition("right");
+ setIconItemTopPosition("left");
+ setMode("none");
+ setTabIndex("2");
+
+ }
+
+ public void bTest4(){
+ icon.setCollapsed(icon.iconExpand);
+ icon.setExpanded(icon.iconCollapse);
+ icon.setItem(icon.iconHeader);
+ icon.setIcon(icon.iconFileManagerReject);
+ icon.setCollapsedGroup(icon.iconAjaxStoped);
+ icon.setDisabledGroup(icon.iconAjaxProcess);
+
+ setWidth("250px");
+ setAlign("top");
+ setDisabled(true);
+ setExpandMode("none");
+ setExpandSingle(false);
+ setIconGroupPosition("left");
+ setIconGroupTopPosition("left");
+ setIconItemPosition("left");
+ setIconItemTopPosition("left");
+ setMode("ajax");
+ setTabIndex("2");
+
+ }
+
+ public void bTest5(){
+ icon.setCollapsed(icon.iconCollapse);
+ icon.setExpanded(icon.iconExpand);
+ icon.setItem(icon.iconItem);
+ icon.setIcon(icon.iconFileManager);
+ icon.setCollapsedGroup(icon.iconAjaxProcess);
+ icon.setDisabledGroup(icon.iconAjaxStoped);
+
+ setWidth("250px");
+ setAlign("right");
+ setDisabled(false);
+ setExpandMode("none");
+ setExpandSingle(true);
+ setIconGroupPosition("right");
+ setIconGroupTopPosition("right");
+ setIconItemPosition("right");
+ setIconItemTopPosition("right");
+ setMode("none");
+ setTabIndex("2");
+
+ }
+}
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/java/rich/MapComponent.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/rich/MapComponent.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/rich/MapComponent.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,21 @@
+package rich;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Map;
+
+public class MapComponent {
+ private Map<String, ArrayList<String>> m;
+
+ public MapComponent() {
+ m = new HashMap<String, ArrayList<String>>();
+ }
+
+ public void add(String component, ArrayList<String> path) {
+ m.put(component, path);
+ }
+
+ public ArrayList<String> get(String key){
+ return m.get(key);
+ }
+}
Modified: trunk/test-applications/jsp/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,19 +2,121 @@
import java.util.ArrayList;
+import org.richfaces.VersionBean;
+
public class RichBean {
-
+ private static final String EXT = ".jsp";
+ private String version = VersionBean.SCM_REVISION;
private String src;
-
+ private MapComponent map;
+ private boolean reComponent;
+ private boolean reProperty;
+ private boolean reStraightforward;
+ //private String [] menu = {"Blank", "Calendar", "DataFilterSlider", "DataScroller", "DataTable", "DragAndDrop", "DropDownMenu", "Effect", "Gmap", "InputNumberSlider", "InputNumberSpinner", "Insert", "Message", "ModalPanel", "Paint2D", "Panel", "Panel2", "PanelBar", "PanelMenu", "Separator", "SimpleTogglePanel", "Spacer", "SuggestionBox", "TabPanel", "TogglePanel", "ToolBar", "Tooltip", "Tree", "VirtualEarth", "ScrollableDataTable", "jQuery", "OrderingList"};
+
public RichBean() {
- src = "";
+ src = "Blank";
+ reComponent = true;
+ reProperty = true;
+ reStraightforward = true;
+ map = new MapComponent();
+ // map.add( value, add( pages_path/name_pages, array<boolean>(Property, Straightforward) );
+ map.add("Blank", add("/pages/Blank/Blank", new boolean [] {true, true}));
+ map.add("Calendar", add("/Calendar/Calendar", new boolean [] {true, true}));
+ map.add("DataFilterSlider", add("/DataFilterSlider/DataFilterSlider", new boolean [] {true, false}));
+ map.add("DataScroller", add("/DataScroller/DataScroller", new boolean [] {true, true}));
+ map.add("DataTable", add("/DataTable/DataTable", new boolean [] {true, true}));
+ map.add("DragAndDrop", add("/DragAndDrop/DragAndDrop", new boolean [] {false, false}));
+ map.add("DropDownMenu", add("/DropDownMenu/DropDownMenu", new boolean [] {true, true}));
+ map.add("Effect", add("/Effect/Effect", new boolean [] {false, false}));
+ map.add("Gmap", add("/Gmap/Gmap", new boolean [] {true, false}));
+ map.add("InputNumberSlider", add("/InputNumberSlider/InputNumberSlider", new boolean [] {true, true}));
+ map.add("InputNumberSpinner", add("/InputNumberSpinner/InputNumberSpinner", new boolean [] {true, true}));
+ map.add("Insert", add("/Insert/Insert", new boolean [] {true, false}));
+ map.add("Message", add("/Message/Message", new boolean [] {true, true}));
+ map.add("ModalPanel", add("/ModalPanel/ModalPanel", new boolean [] {true, true}));
+ map.add("Paint2D", add("/Paint2D/Paint2D", new boolean [] {true, true}));
+ map.add("Panel", add("/Panel/Panel", new boolean [] {true, true}));
+ map.add("Panel2", add("/Panel/Panel2", new boolean [] {false, false}));
+ map.add("PanelBar", add("/PanelBar/PanelBar", new boolean [] {true, true}));
+ map.add("PanelMenu", add("/PanelMenu/PanelMenu", new boolean [] {true, true}));
+ map.add("Separator", add("/Separator/Separator", new boolean [] {true, true}));
+ map.add("SimpleTogglePanel", add("/SimpleTogglePanel/SimpleTogglePanel", new boolean [] {true, true}));
+ map.add("Spacer", add("/Spacer/Spacer", new boolean [] {true, true}));
+ map.add("SuggestionBox", add("/SuggestionBox/SuggestionBox", new boolean [] {true, true}));
+ map.add("TabPanel", add("/TabPanel/TabPanel", new boolean [] {true, true}));
+ map.add("TogglePanel", add("/TogglePanel/TogglePanel", new boolean [] {true, true}));
+ map.add("ToolBar", add("/ToolBar/ToolBar", new boolean [] {true, false}));
+ map.add("Tooltip", add("/Tooltip/Tooltip", new boolean [] {true, true}));
+ map.add("Tree", add("/Tree/Tree", new boolean [] {true, false}));
+ map.add("VirtualEarth", add("/VirtualEarth/VirtualEarth", new boolean [] {true, false}));
+ map.add("ScrollableDataTable", add("/ScrollableDataTable/ScrollableDataTable", new boolean [] {true, false}));
+ map.add("jQuery", add("/jQuery/jQuery", new boolean [] {false, false}));
+ map.add("OrderingList", add("/OrderingList/OrderingList", new boolean [] {true, true}));
+ map.add("DataDefinitionList", add("/DataDefinitionList/DataDefinitionList", new boolean [] {true, false}));
+ map.add("DataOrderedList", add("/DataOrderedList/DataOrderedList", new boolean [] {true, false}));
+ map.add("ContextMenu", add("/ContextMenu/ContextMenu", new boolean [] {true, false}));
+ map.add("ListShuttle", add("/ListShuttle/ListShuttle", new boolean [] {true, true}));
+ map.add("ComponentControl", add("/ComponentControl/ComponentControl", new boolean [] {false, false}));
}
public String getSrc() {
return src;
}
+ public String getPathComponent() {
+ return map.get(src).get(0);
+ }
+
+ public String getPathProperty() {
+ return map.get(src).get(1);
+ }
+
+ public String getPathStraightforward() {
+ return map.get(src).get(2);
+ }
+
public void setSrc(String src) {
this.src = src;
}
+
+ private ArrayList<String> add(String path, boolean [] arr){
+ ArrayList<String> list = new ArrayList<String>();
+ list.add(path + EXT);
+ if(arr[0]) list.add(path + "Property" + EXT); else list.add("/pages/Blank/BlankProperty" + EXT);
+ if(arr[1]) list.add(path + "Straightforward" + EXT); else list.add("/pages/Blank/BlankStraightforward" + EXT);
+ return list;
+ }
+
+ public boolean isReComponent() {
+ return reComponent;
+ }
+
+ public void setReComponent(boolean reComponent) {
+ this.reComponent = reComponent;
+ }
+
+ public boolean isReProperty() {
+ return reProperty;
+ }
+
+ public void setReProperty(boolean reProperty) {
+ this.reProperty = reProperty;
+ }
+
+ public boolean isReStraightforward() {
+ return reStraightforward;
+ }
+
+ public void setReStraightforward(boolean reStraightforward) {
+ this.reStraightforward = reStraightforward;
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
}
Added: trunk/test-applications/jsp/src/main/java/richTest/RichTest.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/richTest/RichTest.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/richTest/RichTest.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,23 @@
+package richTest;
+
+import java.util.ArrayList;
+
+import org.richfaces.component.Dropzone;
+import org.richfaces.event.DropEvent;
+import org.richfaces.event.DropListener;
+
+
+public class RichTest {
+ private String [] items = new String [] {"item 1", "item 2", "item 3", "item 4", "item 5", "item 6", "item 7", "item 8", "item 9", "item 10", "item 11", "item 12", "item 13", "item 14", "item 15"};
+
+ public RichTest() {
+ }
+
+ public String[] getItems() {
+ return items;
+ }
+
+ public void setItems(String[] items) {
+ this.items = items;
+ }
+}
Modified: trunk/test-applications/jsp/src/main/java/sTP/SimpleTogglePanel.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/sTP/SimpleTogglePanel.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/sTP/SimpleTogglePanel.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -5,7 +5,7 @@
private String switchType; // "client", "server"(default), "ajax"
private String width;
private String height;
-
+ private String position = "right";
private boolean focus;
private boolean rendered;
@@ -56,4 +56,42 @@
public void setFocus(boolean focus) {
this.focus = focus;
}
+
+ public void bTest1(){
+ setHeight("80px");
+ setWidth("300px");
+ setSwitchType("ajax");
+ }
+
+ public void bTest2(){
+ setHeight("10%");
+ setWidth("100%");
+ setSwitchType("client");
+ }
+
+ public void bTest3(){
+ setHeight("80px");
+ setWidth("100%");
+ setSwitchType("server");
+ }
+
+ public void bTest4(){
+ setHeight("10%");
+ setWidth("200px");
+ setSwitchType("client");
+ }
+
+ public void bTest5(){
+ setHeight("400px");
+ setWidth("250px");
+ setSwitchType("client");
+ }
+
+ public String getPosition() {
+ return position;
+ }
+
+ public void setPosition(String position) {
+ this.position = position;
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/sb/Data.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/sb/Data.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/sb/Data.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,39 +1,37 @@
package sb;
public class Data {
- private String text;
+ private String city;
+ private String contry;
+ private boolean flag;
- private String label;
-
- private String flag;
-
- public Data(String text, String label){
- this.text = text;
- this.label = label;
- this.flag = "/images/flag.png";
+ public Data(String city, String contry, boolean flag) {
+ this.city = city;
+ this.contry = contry;
+ this.flag = flag;
}
- public String getLabel() {
- return label;
+ public boolean getFlag() {
+ return flag;
}
- public void setLabel(String label) {
- this.label = label;
+ public void setFlag(boolean flag) {
+ this.flag = flag;
}
- public String getText() {
- return text;
+ public String getCity() {
+ return city;
}
- public void setText(String text) {
- this.text = text;
+ public void setCity(String city) {
+ this.city = city;
}
- public String getFlag() {
- return flag;
+ public String getContry() {
+ return contry;
}
- public void setFlag(String flag) {
- this.flag = flag;
+ public void setContry(String contry) {
+ this.contry = contry;
}
}
Modified: trunk/test-applications/jsp/src/main/java/sb/Sb.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/sb/Sb.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/sb/Sb.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,45 +1,60 @@
package sb;
-import java.util.*;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
import org.richfaces.renderkit.html.SuggestionBoxRenderer;
-public class Sb {
+public class Sb implements Serializable {
- private ArrayList cities;
- private ArrayList data;
- private ArrayList tokens;
- private int first;
- private int zindex;
- private String property;
- private String rows;
- private String cellspacing;
- private String cellpadding;
- private String minchars;
- private String frequency;
- private String rules;
- private String border;
- private String width;
- private String height;
- private String shadowOpacity;
- private String bgColor;
- private String shadowDepth;
- private boolean focus;
- private boolean check;
- private boolean reRender;
+ private ArrayList cities;
+ private ArrayList data;
+ private ArrayList tokens;
+ private int first;
+ private int zindex;
+ private double frequency;
+ private String property;
+ private String rows;
+ private String cellspacing;
+ private String cellpadding;
+ private String minchars;
+ private String rules;
+ private String border;
+ private String width;
+ private String height;
+ private String shadowOpacity;
+ private String bgColor;
+ private String shadowDepth;
+ private boolean focus;
- private static final String[] cit = {"Abba", "Abbeville", "Acworth", "Adairsville", "Adel",
- "Adrian", "Ailey", "Alamo", "Alapaha", "Albany", "Allenhurst", "Alma", "Alma",
- "Alpharetta", "Alston", "Amboy", "Ambrose", "Americus", "Appling", "Arlington", "Ashburn",
- "Athens", "Athens-Clarke County", "Atkinson", "Atlanta", "Attapulgus", "Auburn",
- "Augusta", "Augusta-Richmond County", "Austell", "Avondale Estates", "Axson"};
+ /*
+ * private static final String[] cit = { "Abba", "Abbeville", "Acworth",
+ * "Adairsville", "Adel", "Adrian", "Ailey", "Alamo", "Alapaha", "Albany",
+ * "Allenhurst", "Alma", "Alma", "Alpharetta", "Alston", "Amboy", "Ambrose",
+ * "Americus", "Appling", "Arlington", "Ashburn", "Athens", "Athens-Clarke
+ * County", "Atkinson", "Atlanta", "Attapulgus", "Auburn", "Augusta",
+ * "Augusta-Richmond County", "Austell", "Avondale Estates", "Axson" };
+ */
+ private static final String[] cityAfrica = {"Africa", "Algeria", "Angola", "Bassas da India", "Benin", "Botswana", "Burkina Faso", "Burundi", "Cameroon", "Central African Republic", "Chad", "Comoros", "Democratic Republic of the Congo", "Djibouti", "Egypt", "Equatorial Guinea", "Eritrea", "Ethiopia", "Europa Island", "Gabon", "Gambia", "Ghana", "Glorioso Islands", "Guinea", "Guinea-Bissau", "Ivory Coast", "Juan de Nova Island", "Kenya", "Lesotho", "Liberia", "Libya", "Madagascar", "Malawi", "Mali", "Mauritania", "Mauritius Island", "Mayotte", "Morocco", "Mozambique", "Namibia", "Niger", "Nigeria", "Republic of the Congo", "Reunion", "Rwanda", "Saint Helena", "Sao Tome and Principe", "Senegal", "Seychelles", "Sierra Leone", "Somalia", "South Africa", "Sudan", "Swaziland", "Tanzania", "Togo", "Tromelin Island", "Tunisia", "Uganda", "Western Sahara", "Zambia", "Zimbabwe"};
+ private static final String[] cityAsia = {"Asia", "Afghanistan", "Armenia", "Azerbaijan", "Bangladesh", "Bhutan", "China", "Georgia", "India", "Japan", "Kazakhstan", "Korea, North", "Korea, South", "Kyrgyzstan", "Maldives", "Mongolia", "Nepal", "Pakistan", "Russia", "Sri Lanka", "Tajikistan", "Turkmenistan", "Uzbekistan"};
+ private static final String[] cityCAmerica = {"Central America", "Belize", "Costa Rica", "El Salvador", "Guatemala", "Honduras", "Nicaragua", "Panama"};
+ private static final String[] cityEurope = {"Europe", "Albania", "Andorra", "Austria", "Belarus", "Belgium", "Bosnia and Herzegovina", "Bulgaria", "Canary Islands", "Croatia", "Czech Republic", "Denmark", "Estonia", "Faroe Islands", "Finland", "France", "Germany", "Gibraltar", "Greece", "Guernsey", "Hungary", "Iceland", "Ireland", "Isle of Man", "Italy", "Jersey", "Latvia", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Malta", "Moldova", "Monaco", "Montenegro", "Netherlands", "Norway", "Poland", "Portugal", "Romania", "San Marino", "Serbia and Montenegro", "Slovakia", "Slovenia", "Spain", "Sweden", "Switzerland", "Ukraine", "United Kingdom", "Vatican The Holy See"};
+ private static final String[] cityMEast = {"Middle East", "Akrotiri", "Bahrain", "Cyprus", "Dhekelia", "Gaza Strip", "Iran", "Iraq", "Israel", "Jordan", "Kuwait", "Lebanon", "Oman", "Qatar", "Saudi Arabia", "Syria", "Turkey", "United Arab Emirates", "West Bank", "Yemen"};
+ private static final String[] cityNAmerica = {"North America", "Bermuda", "Canada", "Greenland", "Mexico", "Saint Pierre and Miquelon", "United States of America"};
+ private static final String[] cityOceania = {"Oceania", "American Samoa", "Australia", "Baker Island", "Cook Islands", "Coral Sea Islands", "Fiji", "French Polynesia", "Guam", "Howland Island", "Jarvis Island", "Johnston Atoll", "Kingman Reef", "Kiribati", "Marshall Islands", "Micronesia", "Midway Islands", "Nauru", "New Caledonia", "New Zealand", "Niue", "Norfolk Island", "Northern Mariana Islands", "Palau", "Palmyra Atoll", "Papua New Guinea", "Pitcairn Islands", "Samoa", "Solomon Islands", "Tokelau", "Tonga", "Tuvalu", "Vanuatu", "Wake Island", "Wallis and Futuna"};
+ private static final String[] citySAmerica = {"South America","Argentina", "Bolivia", "Brazil", "Chile", "Colombia", "Easter Island", "Ecuador", "Falkland Islands", "French Guiana", "Guyana", "Paraguay", "Peru", "Suriname", "Uruguay", "Venezuela"};
+ private static final String[] citySEAsia = {"SouthEast Asia", "Ashmore and Cartier Islands", "Brunei", "Burma", "Cambodia", "Christmas Island", "Cocos (Keeling) Islands", "East Timor", "Hong Kong", "Indonesia", "Laos", "Malaysia", "Paracel Islands", "Philippines", "Singapore", "Spratly Islands", "Taiwan", "Thailand", "Vietnam"};
+ private static final String[] cityCaribbean = {"The Caribbean", "Anguilla", "Antigua and Barbuda", "Aruba", "Barbados", "British Virgin Islands", "Cayman Islands", "Cuba", "Dominica", "Dominican Republic", "Grenada", "Guadeloupe", "Haiti", "Jamaica", "Martinique", "Montserrat", "Navassa Island", "Netherlands Antilles", "Puerto Rico", "Saint Barthelemy", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "The Bahamas", "Trinidad and Tobago", "Turks and Caicos Islands", "Virgin Islands"};
+
public Sb() {
border = "1";
width = "200";
height = "150";
shadowOpacity = "1";
shadowDepth = Integer.toString(SuggestionBoxRenderer.SHADOW_DEPTH);
- reRender = true;
zindex = 3;
focus = true;
rows = "0";
@@ -47,10 +62,9 @@
cellspacing = "2";
cellpadding = "2";
minchars = "1";
- frequency = "0";
+ frequency = 0;
rules = "none";
setCities(getAllData());
-
}
public List autocomplete(Object event) {
@@ -60,7 +74,8 @@
Iterator iterator = getAllData().iterator();
while (iterator.hasNext()) {
Data elem = (Data) iterator.next();
- if ((elem != null && elem.getText().toLowerCase().indexOf(pref.toLowerCase()) == 0)
+ if ((elem != null && elem.getCity().toLowerCase().indexOf(
+ pref.toLowerCase()) == 0)
|| "".equals(pref)) {
result.add(elem);
}
@@ -76,12 +91,30 @@
this.cities = cities;
}
+ private ArrayList<Data> addData(String[] mStr, ArrayList<Data> arr) {
+ for (int i = 1; i < mStr.length; i++) {
+ Data data = new Data(mStr[i], mStr[0], false);
+ arr.add(data);
+ }
+ return arr;
+ }
+
public ArrayList getAllData() {
- ArrayList result = new ArrayList();
- for (int i = 0; i < cit.length; i++) {
- Data data = new Data(cit[i], String.valueOf(i + 1));
- result.add(data);
- }
+ /*
+ * for (int i = 0; i < cit.length; i++) { Data data = new Data(cit[i],
+ * String.valueOf(i + 1)); result.add(data); }
+ */
+ ArrayList<Data> result = new ArrayList<Data>();
+ result = addData(cityAfrica, result);
+ result = addData(cityAsia, result);
+ result = addData(cityCAmerica, result);
+ result = addData(cityCaribbean, result);
+ result = addData(cityEurope, result);
+ result = addData(cityMEast, result);
+ result = addData(cityNAmerica, result);
+ result = addData(cityOceania, result);
+ result = addData(citySAmerica, result);
+ result = addData(citySEAsia, result);
return result;
}
@@ -117,17 +150,10 @@
this.cellspacing = cellspacing;
}
- public boolean isCheck() {
- return check;
- }
-
- public void setCheck(boolean check) {
- this.check = check;
- }
-
public int getFirst() {
return first;
}
+
public int getIntFirst() {
return first;
}
@@ -136,14 +162,11 @@
this.first = first;
}
- public String getFrequency() {
+ public double getFrequency() {
return frequency;
}
- public double getDoubleFrequency() {
- return Double.parseDouble(getFrequency());
- }
- public void setFrequency(String frequency) {
+ public void setFrequency(double frequency) {
this.frequency = frequency;
}
@@ -158,6 +181,7 @@
public String getRows() {
return rows;
}
+
public int getIntRows() {
return Integer.parseInt(getRows());
}
@@ -181,9 +205,9 @@
public void setTokens(ArrayList tokens) {
this.tokens = tokens;
}
+
public void OnSelect() {
System.out.print("Onselect works!!!");
-
}
public String getBorder() {
@@ -250,12 +274,68 @@
this.shadowDepth = shadowDepth;
}
- public boolean isReRender() {
- return reRender;
+ public void bTest1() {
+ setBorder("2");
+ setCellpadding("0");
+ setCellspacing("0");
+ setFrequency(0);
+ setHeight("150");
+ setWidth("200");
+ setMinchars("1");
+ setShadowDepth("11");
+ setShadowOpacity("3");
+ setZindex(3);
}
- public void setReRender(boolean reRender) {
- this.reRender = reRender;
+ public void bTest2() {
+ setBorder("0");
+ setCellpadding("3");
+ setCellspacing("3");
+ setFrequency(2);
+ setHeight("200");
+ setWidth("200");
+ setMinchars("1");
+ setShadowDepth("1");
+ setShadowOpacity("7");
+ setZindex(3);
}
+ public void bTest3() {
+ setBorder("1");
+ setCellpadding("5");
+ setCellspacing("0");
+ setFrequency(1);
+ setHeight("150");
+ setWidth("200");
+ setMinchars("2");
+ setShadowDepth("1");
+ setShadowOpacity("7");
+ setZindex(3);
+ }
+
+ public void bTest4() {
+ setBorder("1");
+ setCellpadding("0");
+ setCellspacing("5");
+ setFrequency(3);
+ setHeight("150");
+ setWidth("200");
+ setMinchars("2");
+ setShadowDepth("7");
+ setShadowOpacity("1");
+ setZindex(3);
+ }
+
+ public void bTest5() {
+ setBorder("4");
+ setCellpadding("1");
+ setCellspacing("1");
+ setFrequency(5);
+ setHeight("200");
+ setWidth("400");
+ setMinchars("2");
+ setShadowDepth("5");
+ setShadowOpacity("5");
+ setZindex(1);
+ }
}
Added: trunk/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,66 @@
+package scrollableDataTable;
+
+import java.util.ArrayList;
+import java.util.Random;
+
+import dataScroller.Data;
+
+public class ScrollableDataTable
+{
+ private ArrayList<Data> data;
+ private String [] status = {"error", "fatal", "info", "passed", "warn"};
+ private String [] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
+ private String width;
+ private int rows;
+ private String key;
+ private boolean hideWhenScrolling;
+
+ public boolean isHideWhenScrolling() {
+ return hideWhenScrolling;
+ }
+
+ public void setHideWhenScrolling(boolean hideWhenScrolling) {
+ this.hideWhenScrolling = hideWhenScrolling;
+ }
+
+ public ScrollableDataTable() {
+ width = "400px";
+ rows = 30;
+ hideWhenScrolling = false;
+
+ data = new ArrayList<Data>();
+ int k;
+ for(int i = 0; i < 10000; i++) {
+ k = new Random().nextInt(5);
+ data.add(new Data("Bug " + new Random().nextInt(10 + i), i,status[k], statusIcon[k]));
+ }
+ }
+
+ public ArrayList<Data> getData() {
+ return data;
+ }
+
+ public void setData(ArrayList<Data> data) {
+ this.data = data;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public int getRows() {
+ return rows;
+ }
+
+ public void setRows(int rows) {
+ this.rows = rows;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
+}
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/java/separator/Separator.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/separator/Separator.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/separator/Separator.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -132,4 +132,43 @@
this.width = width;
}
+ public void bTest1(){
+ setAlign("left");
+ setHeight("300px");
+ setWidth("10px");
+ setLineType("beveled");
+ setTitle("Test1");
+ }
+
+ public void bTest2(){
+ setAlign("center");
+ setHeight("50px");
+ setWidth("600px");
+ setLineType("dotted");
+ setTitle("Test2");
+ }
+
+ public void bTest3(){
+ setAlign("right");
+ setHeight("150px");
+ setWidth("200px");
+ setLineType("dashed");
+ setTitle("Test3");
+ }
+
+ public void bTest4(){
+ setAlign("left");
+ setHeight("20px");
+ setWidth("300px");
+ setLineType("double");
+ setTitle("Test4");
+ }
+
+ public void bTest5(){
+ setAlign("left");
+ setHeight("100px");
+ setWidth("100px");
+ setLineType("solid");
+ setTitle("Test5");
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/spacer/Spacer.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/spacer/Spacer.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/spacer/Spacer.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -72,5 +72,29 @@
public void setBtn(String btn) {
this.btn = btn;
}
+
+ public void bTest1(){
+ setHeight("100");
+ setWidth("10");
+ }
+ public void bTest2(){
+ setHeight("10");
+ setWidth("100");
+ }
+
+ public void bTest3(){
+ setHeight("5");
+ setWidth("5");
+ }
+
+ public void bTest4(){
+ setHeight("100");
+ setWidth("100");
+ }
+
+ public void bTest5(){
+ setHeight("400");
+ setWidth("200");
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/tabPanel/TabPanel.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/tabPanel/TabPanel.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/tabPanel/TabPanel.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -17,6 +17,7 @@
private String inactiveTabStyle;
private String contentStyle;
private String BtnLabel="ON";
+ private boolean immediate;
private boolean rendered;
@@ -37,6 +38,7 @@
inactiveTabStyle=null;
contentStyle=null;
+ immediate = false;
rendered=true;
disabledTab=false;
@@ -51,7 +53,7 @@
setDisabledTabStyle("disabledTabStyle");
setInactiveTabStyle("inactiveTabStyle");
} else {
- setBtnLabel("OFF");
+ setBtnLabel("ON");
setActiveTabStyle(null);
setContentStyle(null);
setDisabledTabStyle(null);
@@ -185,5 +187,83 @@
public void setBtnLabel(String btnLabel) {
BtnLabel = btnLabel;
}
+
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+ public void bTest1() {
+ setDisabledTab(false);
+ setHeaderAlignment("left");
+ setHeaderSpacing("10px");
+ setHeight("250px");
+ setImmediate(false);
+ setLabel("Test 1");
+ setLabelWidth("10px");
+ setWidth("300px");
+ setSelectedTab("2");
+ setSwitchType("server");
+ setTitle("Title test 1");
+ }
+
+ public void bTest2() {
+ setDisabledTab(true);
+ setHeaderAlignment("right");
+ setHeaderSpacing("40px");
+ setHeight("400px");
+ setImmediate(false);
+ setLabel("Test 2");
+ setLabelWidth("40px");
+ setWidth("40%");
+ setSelectedTab("1");
+ setSwitchType("ajax");
+ setTitle("Title test2");
+ }
+
+ public void bTest3() {
+ setDisabledTab(false);
+ setHeaderAlignment("center");
+ setHeaderSpacing("20px");
+ setHeight("20%");
+ setImmediate(false);
+ setLabel("Test 3");
+ setLabelWidth("400px");
+ setWidth("600px");
+ setSelectedTab("3");
+ setSwitchType("client");
+ setTitle("Title test 3");
+ }
+
+ public void bTest4() {
+ setDisabledTab(true);
+ setHeaderAlignment("left");
+ setHeaderSpacing("300px");
+ setHeight("500px");
+ setImmediate(false);
+ setLabel("Teset 4");
+ setLabelWidth("500px");
+ setWidth("500px");
+ setSelectedTab("2");
+ setSwitchType("server");
+ setTitle("Title test 4");
+ }
+
+ public void bTest5() {
+ setDisabledTab(false);
+ setHeaderAlignment("left");
+ setHeaderSpacing("20px");
+ setHeight("40%");
+ setImmediate(false);
+ setLabel("Test 5");
+ setLabelWidth("40px");
+ setWidth("10%");
+ setSelectedTab("3");
+ setSwitchType("client");
+ setTitle("Title test 5");
+ }
+
}
Modified: trunk/test-applications/jsp/src/main/java/togglePanel/TogglePanel.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/togglePanel/TogglePanel.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/togglePanel/TogglePanel.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -14,40 +14,57 @@
stateOrder="asus,benq,toshiba";
}
-
-
public String getInitialState() {
return initialState;
}
-
-
public void setInitialState(String initialState) {
this.initialState = initialState;
}
-
-
public String getStateOrder() {
return stateOrder;
}
-
-
public void setStateOrder(String stateOrder) {
this.stateOrder = stateOrder;
}
-
-
public String getSwitchType() {
return switchType;
}
-
-
public void setSwitchType(String switchType) {
this.switchType = switchType;
}
+ public void bTest1() {
+ setInitialState("asus");
+ setStateOrder("asus,benq,toshiba");
+ setSwitchType("client");
+ }
+
+ public void bTest2() {
+ setInitialState("benq");
+ setStateOrder("toshiba,asus,benq");
+ setSwitchType("client");
+ }
+
+ public void bTest3() {
+ setInitialState("asus");
+ setStateOrder("asus,benq,toshiba");
+ setSwitchType("server");
+ }
+
+ public void bTest4() {
+ setInitialState("benq");
+ setStateOrder("asus,benq,toshiba");
+ setSwitchType("ajax");
+ }
+
+ public void bTest5() {
+ setInitialState("toshiba");
+ setStateOrder("toshiba,asus,benq");
+ setSwitchType("ajax");
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/tooltip/Tooltip.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/tooltip/Tooltip.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/tooltip/Tooltip.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -116,4 +116,68 @@
this.delay = delay;
}
+ public void bTest1(){
+ setDelay(0);
+ setDirection("top-right");
+ setDisabled(false);
+ setFollowMouse(false);
+ setHorizontalOffset(0);
+ setVerticalOffset(0);
+ setLayout("inline");
+ setMode("client");
+ setValue("Test1");
+ setRendered(true);
+ }
+
+ public void bTest2(){
+ setDelay(0);
+ setDirection("top-left");
+ setDisabled(false);
+ setFollowMouse(false);
+ setHorizontalOffset(5);
+ setVerticalOffset(5);
+ setLayout("block");
+ setMode("ajax");
+ setValue("Test2");
+ setRendered(true);
+ }
+
+ public void bTest3(){
+ setDelay(0);
+ setDirection("bottom-right");
+ setDisabled(false);
+ setFollowMouse(true);
+ setHorizontalOffset(5);
+ setVerticalOffset(0);
+ setLayout("inline");
+ setMode("client");
+ setValue("Test3");
+ setRendered(true);
+ }
+
+ public void bTest4(){
+ setDelay(0);
+ setDirection("bottom-left");
+ setDisabled(false);
+ setFollowMouse(true);
+ setHorizontalOffset(0);
+ setVerticalOffset(5);
+ setLayout("block");
+ setMode("client");
+ setValue("Test4");
+ setRendered(true);
+ }
+
+ public void bTest5(){
+ setDelay(0);
+ setDirection("bottom-right");
+ setDisabled(false);
+ setFollowMouse(true);
+ setHorizontalOffset(-5);
+ setVerticalOffset(-5);
+ setLayout("inline");
+ setMode("ajax");
+ setValue("Test5");
+ setRendered(true);
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/tree/Bean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/tree/Bean.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/tree/Bean.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,24 +1,3 @@
-/**
- * License Agreement.
- *
- * JBoss RichFaces - Ajax4jsf Component Library
- *
- * Copyright (C) 2007 Exadel, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
package tree;
import java.io.IOException;
@@ -47,9 +26,6 @@
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
-/**
- * @author $Autor$
- */
public class Bean {
private String switchType = "client";
private TreeNode data;
@@ -99,9 +75,22 @@
child.setData("Node: " + id);
data1.addChild(id, child);
}
- initData();
+ //initData();
}
+ private void initData() {
+ selectedNodeChildren.clear();
+ if (selectedNode != null) {
+ Iterator iter = selectedNode.getChildren();
+ int i = 0;
+ while (iter.hasNext()) {
+ Map.Entry entry = (Map.Entry) iter.next();
+ selectedNodeChildren
+ .put(((TreeNode) entry.getValue()).getData(), Integer.toString(i++));
+ }
+ }
+ }
+
public String getIcon() {
return icon;
}
@@ -170,6 +159,7 @@
System.out.println("Node selected: " + getTree(event).getRowKey());
if (getTree(event).getTreeNode() != null) {
selectedNode = getTree(event).getTreeNode();
+ data.removeChild(selectedNode.getChildren());
initData();
}
}
@@ -198,19 +188,6 @@
tree.setRowKey(key);
}
- private void initData() {
- selectedNodeChildren.clear();
- if (selectedNode != null) {
- Iterator iter = selectedNode.getChildren();
- int i = 0;
- while (iter.hasNext()) {
- Map.Entry entry = (Map.Entry) iter.next();
- selectedNodeChildren
- .put(((TreeNode) entry.getValue()).getData(), Integer.toString(i++));
- }
- }
- }
-
public void onExpand(NodeExpandedEvent event) {
UITree tree = getTree(event);
System.out.println("Node " + (tree.isExpanded() ? "expanded" : "collapsed") + " "
@@ -222,6 +199,7 @@
try {
tree.queueNodeExpand(new ListRowKey(expandPath));
} catch (IOException e) {
+
e.printStackTrace();
}
}
@@ -254,6 +232,7 @@
try {
this.tree.queueExpandAll();
} catch (IOException e) {
+
e.printStackTrace();
}
return null;
@@ -355,4 +334,4 @@
public void setRenderFacets(boolean renderFacets) {
this.renderFacets = renderFacets;
}
-}
\ No newline at end of file
+}
Deleted: trunk/test-applications/jsp/src/main/java/tree/CachingTreeDataLocator.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/tree/CachingTreeDataLocator.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/tree/CachingTreeDataLocator.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,66 +0,0 @@
-/**
- *
- */
-package tree;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.richfaces.model.TreeRowKey;
-
-
-
-/**
- * @author Nick Belaevski - nbelaevski at exadel.com
- * created 30.12.2006
- *
- */
-public class CachingTreeDataLocator {
-
- private static class CacheEntry {
- private int pid;
- private TreeRowKey key;
- private Object data;
- }
-
- private List cache = new ArrayList();
- private int number = 0;
-
- /* (non-Javadoc)
- * @see com.exadel.jsf.model.preserve.TreeDataLocator#createData(java.lang.Object, com.exadel.jsf.model.TreeRowKey, com.exadel.jsf.model.TreeNode)
- */
- public Object createData(Object locator, TreeRowKey rowKey) {
- for (Iterator iterator = cache.iterator(); iterator.hasNext();) {
- CacheEntry entry = (CacheEntry) iterator.next();
- if (entry.pid == ((Integer) locator).intValue()) {
- return entry.data;
- }
- }
-
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.exadel.jsf.model.preserve.TreeDataLocator#createLocator(java.lang.Object, com.exadel.jsf.model.TreeRowKey, com.exadel.jsf.model.TreeNode)
- */
- public Object createLocator(Object data, TreeRowKey rowKey) {
- for (Iterator iterator = cache.iterator(); iterator.hasNext();) {
- CacheEntry entry = (CacheEntry) iterator.next();
-
- if (entry.key.equals(rowKey)) {
- return Integer.valueOf(entry.pid);
- }
- }
-
- CacheEntry cacheEntry = new CacheEntry();
- cacheEntry.data = data;
- cacheEntry.key = rowKey;
- cacheEntry.pid = number++;
-
- cache.add(cacheEntry);
-
- return Integer.valueOf(cacheEntry.pid);
- }
-
-}
Modified: trunk/test-applications/jsp/src/main/java/tree/Library.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/tree/Library.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/tree/Library.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -13,7 +13,6 @@
private Map pathways = null;
private Object state1;
- // private Object state2;
private List listPathway;
Modified: trunk/test-applications/jsp/src/main/java/tree/test.xml
===================================================================
--- trunk/test-applications/jsp/src/main/java/tree/test.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/tree/test.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,16 +1,17 @@
<?xml version="1.0"?>
-<web-app version="2.4">
- <description>Tree demo</description>
- <display-name>tree-demo</display-name>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <description>RF Test-Application</description>
+ <display-name>test-application</display-name>
<context-param>
+ <param-name>org.ajax4jsf.SKIN</param-name>
+ <param-value>#{skinBean.skin}</param-value>
+ </context-param>
+ <context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
- <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
- <param-value>false</param-value>
- </context-param>
- <context-param>
<param-name>facelets.REFRESH_PERIOD</param-name>
<param-value>2</param-value>
</context-param>
@@ -30,12 +31,29 @@
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config-RichPanelsBean.xml,/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,
+ /WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,
+ /WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,
+ /WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,
+ /WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,
+ /WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,
+ /WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,
+ /WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,
+ /WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,
+ /WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
+ /WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
+ /WEB-INF/faces-config-RichTest.xml,/WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-DragAndDrop.xml,
+ /WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml</param-value>
+ </context-param>
<filter>
- <filter-name>a4j</filter-name>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
- <filter-name>a4j</filter-name>
+ <filter-name>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
Modified: trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,32 +1,95 @@
package util.componentInfo;
+import java.lang.reflect.AccessibleObject;
+import java.lang.reflect.Field;
+import java.util.ArrayList;
+
public class ComponentInfo {
+ private final String beanName;
+ private String description;
private String attribute;
private String property;
+ private boolean print;
- public ComponentInfo() {
-
+ public ComponentInfo(String beanName) {
+ this.beanName = beanName;
+ this.attribute = "";
+ this.property = "";
+ print = true;
}
- public ComponentInfo(String attribute, String property) {
+ public void setComponentInfo(String attribute, String property) {
this.attribute = attribute;
this.property = property;
- System.out.println();
+ this.description = "";
+ if(print) printInfo();
}
+
+ public void setComponentInfo(String attribute, String property, String description) {
+ this.attribute = attribute;
+ this.property = property;
+ this.description = description;
+ if(print) printInfo();
+ }
+
+ public static String toString(Object obj) {
+ Class cl = obj.getClass();
+ String r = cl.getName() + "[";
+ Class sc = cl.getSuperclass();
+ if (!sc.equals(Object.class))
+ r += sc + ",";
+ Field[] fields = cl.getDeclaredFields();
+ try {
+ AccessibleObject.setAccessible(fields, true);
+ } catch (SecurityException e) {
+ }
+ for (int i = 0; i < fields.length; i++) {
+ Field f = fields[i];
+ r += f.getName() + "=";
+ try {
+ Object val = f.get(obj);
+ r += val.toString();
+ } catch (IllegalAccessException e) {
+ r += "???";
+ }
+ if (i < fields.length - 1)
+ r += ",";
+ else
+ r += "]";
+ }
+ return r;
+ }
+ public boolean isPrint() {
+ return print;
+ }
+
+ public void setPrint(boolean print) {
+ this.print = print;
+ }
+
+ public String [] getComponentInfo() {
+ String [] str = {attribute, property};
+ return str;
+ }
+
public String getAttribute() {
return attribute;
}
- public void setAttribute(String attribute) {
- this.attribute = attribute;
- }
-
public String getProperty() {
return property;
}
+
+ private void printInfo() {
+ System.out.println("beanName: " + beanName + "[attribute: " + attribute + "; property: " + property + "; description: " + description + "];");
+ }
- public void setProperty(String property) {
- this.property = property;
+ public String getDescription() {
+ return description;
}
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
}
Added: trunk/test-applications/jsp/src/main/java/util/converter/ListShuttleConverter.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/converter/ListShuttleConverter.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/util/converter/ListShuttleConverter.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,33 @@
+package util.converter;
+import java.util.ArrayList;
+import java.util.StringTokenizer;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+
+import util.data.Data;
+
+public class ListShuttleConverter implements Converter {
+
+ public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
+ String [] str = arg2.split(":");
+ return new Data(Integer.parseInt(str[0]), str[1], str[2], str[3],str[4]);
+ }
+//list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
+ Data data = (Data)arg2;
+ return data.getInt0() + ":" + data.getStr0() + ":" + data.getStr1() + ":" + data.getStr2() + ":" + data.getStr3();
+ }
+
+}
+// public Object getAsObject(FacesContext context, UIComponent component,
+// String value) {
+// int index = value.indexOf(':');
+// return new OptionItem(value.substring(0, index), Integer.valueOf(value.substring(index + 1)));
+// }
+// public String getAsString(FacesContext context, UIComponent component,
+// Object value) {
+// OptionItem optionItem = (OptionItem) value;
+// return optionItem.getName() + ":" + optionItem.getPrice();
+// }
Added: trunk/test-applications/jsp/src/main/java/util/converter/OrderingListConverter.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/converter/OrderingListConverter.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/util/converter/OrderingListConverter.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,33 @@
+package util.converter;
+import java.util.ArrayList;
+import java.util.StringTokenizer;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+
+import util.data.Data;
+
+public class OrderingListConverter implements Converter {
+
+ public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
+ String [] str = arg2.split(":");
+ return new Data(Integer.parseInt(str[0]), str[1], str[2], str[3],str[4]);
+ }
+//list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
+ Data data = (Data)arg2;
+ return data.getInt0() + ":" + data.getStr0() + ":" + data.getStr1() + ":" + data.getStr2() + ":" + data.getStr3();
+ }
+
+}
+// public Object getAsObject(FacesContext context, UIComponent component,
+// String value) {
+// int index = value.indexOf(':');
+// return new OptionItem(value.substring(0, index), Integer.valueOf(value.substring(index + 1)));
+// }
+// public String getAsString(FacesContext context, UIComponent component,
+// Object value) {
+// OptionItem optionItem = (OptionItem) value;
+// return optionItem.getName() + ":" + optionItem.getPrice();
+// }
Added: trunk/test-applications/jsp/src/main/java/util/data/Data.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/data/Data.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/util/data/Data.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,194 @@
+package util.data;
+
+public class Data {
+ public static final String[] cityAfrica = {"Africa", "Algeria", "Angola", "Bassas da India", "Benin", "Botswana", "Burkina Faso", "Burundi", "Cameroon", "Central African Republic", "Chad", "Comoros", "Democratic Republic of the Congo", "Djibouti", "Egypt", "Equatorial Guinea", "Eritrea", "Ethiopia", "Europa Island", "Gabon", "Gambia", "Ghana", "Glorioso Islands", "Guinea", "Guinea-Bissau", "Ivory Coast", "Juan de Nova Island", "Kenya", "Lesotho", "Liberia", "Libya", "Madagascar", "Malawi", "Mali", "Mauritania", "Mauritius Island", "Mayotte", "Morocco", "Mozambique", "Namibia", "Niger", "Nigeria", "Republic of the Congo", "Reunion", "Rwanda", "Saint Helena", "Sao Tome and Principe", "Senegal", "Seychelles", "Sierra Leone", "Somalia", "South Africa", "Sudan", "Swaziland", "Tanzania", "Togo", "Tromelin Island", "Tunisia", "Uganda", "Western Sahara", "Zambia", "Zimbabwe"};
+ public static final String[] cityAsia = {"Asia", "Afghanistan", "Armenia", "Azerbaijan", "Bangladesh", "Bhutan", "China", "Georgia", "India", "Japan", "Kazakhstan", "Korea, North", "Korea, South", "Kyrgyzstan", "Maldives", "Mongolia", "Nepal", "Pakistan", "Russia", "Sri Lanka", "Tajikistan", "Turkmenistan", "Uzbekistan"};
+ public static final String[] cityCAmerica = {"Central America", "Belize", "Costa Rica", "El Salvador", "Guatemala", "Honduras", "Nicaragua", "Panama"};
+ public static final String[] cityEurope = {"Europe", "Albania", "Andorra", "Austria", "Belarus", "Belgium", "Bosnia and Herzegovina", "Bulgaria", "Canary Islands", "Croatia", "Czech Republic", "Denmark", "Estonia", "Faroe Islands", "Finland", "France", "Germany", "Gibraltar", "Greece", "Guernsey", "Hungary", "Iceland", "Ireland", "Isle of Man", "Italy", "Jersey", "Latvia", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Malta", "Moldova", "Monaco", "Montenegro", "Netherlands", "Norway", "Poland", "Portugal", "Romania", "San Marino", "Serbia and Montenegro", "Slovakia", "Slovenia", "Spain", "Sweden", "Switzerland", "Ukraine", "United Kingdom", "Vatican The Holy See"};
+ public static final String[] cityMEast = {"Middle East", "Akrotiri", "Bahrain", "Cyprus", "Dhekelia", "Gaza Strip", "Iran", "Iraq", "Israel", "Jordan", "Kuwait", "Lebanon", "Oman", "Qatar", "Saudi Arabia", "Syria", "Turkey", "United Arab Emirates", "West Bank", "Yemen"};
+ public static final String[] cityNAmerica = {"North America", "Bermuda", "Canada", "Greenland", "Mexico", "Saint Pierre and Miquelon", "United States of America"};
+ public static final String[] cityOceania = {"Oceania", "American Samoa", "Australia", "Baker Island", "Cook Islands", "Coral Sea Islands", "Fiji", "French Polynesia", "Guam", "Howland Island", "Jarvis Island", "Johnston Atoll", "Kingman Reef", "Kiribati", "Marshall Islands", "Micronesia", "Midway Islands", "Nauru", "New Caledonia", "New Zealand", "Niue", "Norfolk Island", "Northern Mariana Islands", "Palau", "Palmyra Atoll", "Papua New Guinea", "Pitcairn Islands", "Samoa", "Solomon Islands", "Tokelau", "Tonga", "Tuvalu", "Vanuatu", "Wake Island", "Wallis and Futuna"};
+ public static final String[] citySAmerica = {"South America","Argentina", "Bolivia", "Brazil", "Chile", "Colombia", "Easter Island", "Ecuador", "Falkland Islands", "French Guiana", "Guyana", "Paraguay", "Peru", "Suriname", "Uruguay", "Venezuela"};
+ public static final String[] citySEAsia = {"SouthEast Asia", "Ashmore and Cartier Islands", "Brunei", "Burma", "Cambodia", "Christmas Island", "Cocos (Keeling) Islands", "East Timor", "Hong Kong", "Indonesia", "Laos", "Malaysia", "Paracel Islands", "Philippines", "Singapore", "Spratly Islands", "Taiwan", "Thailand", "Vietnam"};
+ public static final String[] cityCaribbean = {"The Caribbean", "Anguilla", "Antigua and Barbuda", "Aruba", "Barbados", "British Virgin Islands", "Cayman Islands", "Cuba", "Dominica", "Dominican Republic", "Grenada", "Guadeloupe", "Haiti", "Jamaica", "Martinique", "Montserrat", "Navassa Island", "Netherlands Antilles", "Puerto Rico", "Saint Barthelemy", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "The Bahamas", "Trinidad and Tobago", "Turks and Caicos Islands", "Virgin Islands"};
+
+ private String str0;
+ private String str1;
+ private String str2;
+ private String str3;
+ private int int0;
+ private int int1;
+ private int int2;
+ private int int3;
+ private boolean bool0;
+ private boolean bool1;
+ private boolean bool2;
+ private boolean bool3;
+
+ public Data() {
+ this.str0 = "";
+ this.str1 = "";
+ this.str2 = "";
+ this.str3 = "";
+ this.int0 = 0;
+ this.int1 = 0;
+ this.int2 = 0;
+ this.int3 = 0;
+ this.bool0 = false;
+ this.bool1 = false;
+ this.bool2 = false;
+ this.bool3 = false;
+ }
+
+ public Data(String str0, String str1, String str2, String str3, int int0,
+ int int1, int int2, int int3, boolean bool0, boolean bool1,
+ boolean bool2, boolean bool3) {
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ this.int0 = int0;
+ this.int1 = int1;
+ this.int2 = int2;
+ this.int3 = int3;
+ this.bool0 = bool0;
+ this.bool1 = bool1;
+ this.bool2 = bool2;
+ this.bool3 = bool3;
+ }
+
+ public Data(String str0, String str1, String str2, String str3){
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ }
+
+ public Data(int int0, String str0, String str1, String str2, String str3){
+ this.int0 = int0;
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ }
+
+ public Data(String str0){
+ this.str0 = str0;
+ }
+
+ public Data(int int0) {
+ this.int0 = int0;
+ }
+
+ public Data(String str0, String str1){
+ this.str0 = str0;
+ this.str1 = str1;
+ }
+
+ public Data(String str0, int int0){
+ this.str0 = str0;
+ this.int0 = int0;
+ }
+
+ public Data(String str0, int int0, boolean bool0){
+ this.str0 = str0;
+ this.int0 = int0;
+ this.bool0 = bool0;
+ }
+
+ public String getStr0() {
+ return str0;
+ }
+ public void setStr0(String str0) {
+ this.str0 = str0;
+ }
+ public String getStr1() {
+ return str1;
+ }
+ public void setStr1(String str1) {
+ this.str1 = str1;
+ }
+ public String getStr2() {
+ return str2;
+ }
+ public void setStr2(String str2) {
+ this.str2 = str2;
+ }
+ public String getStr3() {
+ return str3;
+ }
+ public void setStr3(String str3) {
+ this.str3 = str3;
+ }
+ public int getInt0() {
+ return int0;
+ }
+ public void setInt0(int int0) {
+ this.int0 = int0;
+ }
+ public int getInt1() {
+ return int1;
+ }
+ public void setInt1(int int1) {
+ this.int1 = int1;
+ }
+ public int getInt2() {
+ return int2;
+ }
+ public void setInt2(int int2) {
+ this.int2 = int2;
+ }
+ public int getInt3() {
+ return int3;
+ }
+ public void setInt3(int int3) {
+ this.int3 = int3;
+ }
+ public boolean isBool0() {
+ return bool0;
+ }
+ public void setBool0(boolean bool0) {
+ this.bool0 = bool0;
+ }
+ public boolean isBool1() {
+ return bool1;
+ }
+ public void setBool1(boolean bool1) {
+ this.bool1 = bool1;
+ }
+ public boolean isBool2() {
+ return bool2;
+ }
+ public void setBool2(boolean bool2) {
+ this.bool2 = bool2;
+ }
+ public boolean isBool3() {
+ return bool3;
+ }
+ public void setBool3(boolean bool3) {
+ this.bool3 = bool3;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + int0;
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ final Data other = (Data) obj;
+ if (int0 != other.int0)
+ return false;
+ return true;
+ }
+
+}
Added: trunk/test-applications/jsp/src/main/java/util/icon/Icon.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/icon/Icon.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/util/icon/Icon.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,194 @@
+package util.icon;
+
+public class Icon {
+
+ public final String iconAjaxProcess = "/pics/ajax_process.gif";
+ public final String iconAjaxStoped = "/pics/ajax_stoped.gif";
+ public final String iconCollapse = "/pics/collapse.gif";
+ public final String iconExpand = "/pics/expand.gif";
+ public final String iconFileManagerReject = "/pics/file-manager-reject.png";
+ public final String iconFileManager = "/pics/file-manager.png";
+ public final String iconHeader = "/pics/header.png";
+ public final String iconItem = "/pics/item.png";
+ public final String none = "none";
+
+ private String icon;
+ private String item;
+ private String disabled;
+ private String disabledItem;
+ private String topItem;
+ private String topDisabledItem;
+ private String expandedGroup;
+ private String collapsedGroup;
+ private String disabledGroup;
+ private String expandedTopGroup;
+ private String collapsedTopGroup;
+ private String topDisableGroup;
+ private String expanded;
+ private String collapsed;
+
+ public Icon() {
+ icon = "none";
+ item = "none";
+ disabled = "none";
+ disabledItem = "none";
+ topItem = "none";
+ topDisabledItem = "none";
+ expandedGroup = "none";
+ collapsedGroup = "none";
+ disabledGroup = "none";
+ expandedTopGroup = "none";
+ collapsedTopGroup = "none";
+ topDisableGroup = "none";
+ expanded = "none";
+ collapsed = "none";
+ }
+
+ public final String getIconAjaxProcess() {
+ return iconAjaxProcess;
+ }
+
+ public final String getIconAjaxStoped() {
+ return iconAjaxStoped;
+ }
+
+ public final String getIconCollapse() {
+ return iconCollapse;
+ }
+
+ public final String getIconExpand() {
+ return iconExpand;
+ }
+
+ public final String getIconFileManager() {
+ return iconFileManager;
+ }
+
+ public final String getIconFileManagerReject() {
+ return iconFileManagerReject;
+ }
+
+ public final String getIconHeader() {
+ return iconHeader;
+ }
+
+ public final String getIconItem() {
+ return iconItem;
+ }
+
+ public String getCollapsed() {
+ return collapsed;
+ }
+
+ public void setCollapsed(String collapsed) {
+ this.collapsed = collapsed;
+ }
+
+ public String getCollapsedGroup() {
+ return collapsedGroup;
+ }
+
+ public void setCollapsedGroup(String collapsedGroup) {
+ this.collapsedGroup = collapsedGroup;
+ }
+
+ public String getCollapsedTopGroup() {
+ return collapsedTopGroup;
+ }
+
+ public void setCollapsedTopGroup(String collapsedTopGroup) {
+ this.collapsedTopGroup = collapsedTopGroup;
+ }
+
+ public String getDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(String disabled) {
+ this.disabled = disabled;
+ }
+
+ public String getDisabledGroup() {
+ return disabledGroup;
+ }
+
+ public void setDisabledGroup(String disabledGroup) {
+ this.disabledGroup = disabledGroup;
+ }
+
+ public String getDisabledItem() {
+ return disabledItem;
+ }
+
+ public void setDisabledItem(String disabledItem) {
+ this.disabledItem = disabledItem;
+ }
+
+ public String getExpanded() {
+ return expanded;
+ }
+
+ public void setExpanded(String expanded) {
+ this.expanded = expanded;
+ }
+
+ public String getExpandedGroup() {
+ return expandedGroup;
+ }
+
+ public void setExpandedGroup(String expandedGroup) {
+ this.expandedGroup = expandedGroup;
+ }
+
+ public String getExpandedTopGroup() {
+ return expandedTopGroup;
+ }
+
+ public void setExpandedTopGroup(String expandedTopGroup) {
+ this.expandedTopGroup = expandedTopGroup;
+ }
+
+ public String getIcon() {
+ return icon;
+ }
+
+ public void setIcon(String icon) {
+ this.icon = icon;
+ }
+
+ public String getItem() {
+ return item;
+ }
+
+ public void setItem(String item) {
+ this.item = item;
+ }
+
+ public String getTopDisabledItem() {
+ return topDisabledItem;
+ }
+
+ public void setTopDisabledItem(String topDisabledItem) {
+ this.topDisabledItem = topDisabledItem;
+ }
+
+ public String getTopDisableGroup() {
+ return topDisableGroup;
+ }
+
+ public void setTopDisableGroup(String topDisableGroup) {
+ this.topDisableGroup = topDisableGroup;
+ }
+
+ public String getTopItem() {
+ return topItem;
+ }
+
+ public void setTopItem(String topItem) {
+ this.topItem = topItem;
+ }
+
+ public final String getNone() {
+ return none;
+ }
+}
Modified: trunk/test-applications/jsp/src/main/java/util/phaseTracker/PhaseTracker.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/phaseTracker/PhaseTracker.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/util/phaseTracker/PhaseTracker.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -3,6 +3,10 @@
*/
package util.phaseTracker;
+import java.util.Iterator;
+
+import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;
@@ -25,6 +29,12 @@
*/
public void beforePhase(PhaseEvent arg0) {
System.out.println("PhaseTracker.beforePhase()" + arg0.getPhaseId());
+// ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
+// Iterator names = externalContext.getRequestParameterNames();
+// while (names.hasNext()) {
+// System.out.println(names.next());
+// }
+
}
/* (non-Javadoc)
Modified: trunk/test-applications/jsp/src/main/java/util/skins/Skins.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/skins/Skins.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/util/skins/Skins.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -18,7 +18,7 @@
"deepMarine", "DEFAULT", "emeraldTown", "japanCherry", "ruby",
"wine", "plain" };
- private String defaultSkin = "blueSky";
+ private String defaultSkin = "deepMarine";
private String skin = defaultSkin;
Modified: trunk/test-applications/jsp/src/main/java/virtualEarth/VirtualEarth.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/virtualEarth/VirtualEarth.java 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/java/virtualEarth/VirtualEarth.java 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,8 +1,17 @@
package virtualEarth;
public class VirtualEarth {
- String zoom;
+ private String zoom;
+ private String version;
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
public String getZoom() {
return zoom;
}
Added: trunk/test-applications/jsp/src/main/resources/message_en.properties
===================================================================
--- trunk/test-applications/jsp/src/main/resources/message_en.properties (rev 0)
+++ trunk/test-applications/jsp/src/main/resources/message_en.properties 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,100 @@
+t1Calendar=change: Icon/Button; header facet: Test 1; locale: de; direction: bottom-left; manual input: false; disabled: false; jointPoint: top-right; mounth: long; pattern: dd-MM-yyyy; popup: true; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: true; required: true; showinput: false; tooltipmode: single; weekday: long; z-index: 3;
+t2Calendar=change: Icon/Button; header facet: Test 2; locale: fr; direction: top-right; manual input: true; disabled: false; jointPoint: bottom-left; mounth: none; pattern: dd.MM.yyyy; popup: true; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: true; required: true; showinput: true; tooltipmode: single; weekday: none; z-index: 3;
+t3Calendar=change: Icon/Button; header facet: Test 3; locale: ru; direction: bottom-left; manual input: false; disabled: false; jointPoint: top-right; mounth: long; pattern: dd-MM-yyyy; popup: false; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: false; required: false; showinput: false; tooltipmode: single; weekday: long; z-index: 3;
+t4Calendar=change: Icon/Button; header facet: Test 4; locale: de; direction: bottom-left; manual input: false; disabled: true; jointPoint: top-right; mounth: long; pattern: dd-MM-yyyy; popup: false; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: false; required: false; showinput: false; tooltipmode: single; weekday: none; z-index: 3;
+t5Calendar=change: Icon/Button; header facet: Test 5; locale: de; direction: bottom-right; manual input: false; disabled: false; jointPoint: bottom-left; mounth: none; pattern: d/M/yy; popup: true; preloadDateRangeBegin(client only): 09.09.2007; preloadDateRangeEnd(client only): 10.01.2008; readonly: false; required: true; showinput: true; tooltipmode: none; weekday: short; z-index: 1;
+t1DataScroller=align: left; fastcontrols: auto; limittolist: false; maxpages: 20; renderifsinglepage: true;
+t2DataScroller=align: right; fastcontrols: show; limittolist: false; maxpages: 30; renderifsinglepage: false;
+t3DataScroller=align: center; fastcontrols: hide; limittolist: false; maxpages: 10; renderifsinglepage: true;
+t4DataScroller=align: center; fastcontrols: auto; limittolist: true; maxpages: 30; renderifsinglepage: false;
+t5DataScroller=align: left; fastcontrols: show; limittolist: false; maxpages: 40; renderifsinglepage: true;
+t1DataTable=align: center; border: 4px; columns rendered: false; columswidth: 300px; width: 500px;
+t2DataTable=align: left; border: 0px; columns rendered: true; columswidth: 500px; width: 300px;
+t3DataTable=align: right; border: 5px; columns rendered: true; columswidth: 100px; width: 200px;
+t4DataTable=align: center; border: 4px; columns rendered: false; columswidth: 500px; width: 500px;
+t5DataTable=align: center; border: 4px; columns rendered: false; columswidth: 400px; width: 800px;
+t1DDMenu=direction: top-right; event: onmouseover; groupdirection: top-up; hidedelay:5; horizontaloffset:1; verticaloffset: 1; jointpoint: top-left; mode: none; popupwidth: 300px; showdelay: 1; disabled: false;
+t2DDMenu=direction: bottom-right; event: onclick; groupdirection: bottom-left; hidedelay: 5; horizontaloffset:20; verticaloffset: 20; jointpoint: bottom-right; mode: ajax; popupwidth: 200px; showdelay: 5; disabled: false;
+t3DDMenu=direction: bottom-left; event: onmouseover; groupdirection: top-up; hidedelay:10; horizontaloffset: 5; verticaloffset: 5; jointpoint: top-left; mode: server; popupwidth: 50px; showdelay: 10; disabled: false;
+t4DDMenu=direction: top-left; event: onmouseover; groupdirection: auto; hidedelay: 0; horizontaloffset: 0; verticaloffset: 0; jointpoint: auto; mode: ajax; popupwidth: auto; showdelay: 0; disabled: true;
+t5DDMenu=direction: auto; event: onmouseover; groupdirection: auto; hidedelay:1; horizontaloffset:2; verticaloffset: 2; jointpoint: auto; mode: ajax; popupwidth: auto; showdelay: 5; disabled: true;
+t1INSlider=minvalue: 0; maxvalue: 9; inputsize: 1; inputposition: right; manualinput: true; value: 3; showinput: true; step: 1;showtooltip: true; showboundaryvalues: true;
+t2INSlider=minvalue: 1000; maxvalue: 99999; inputsize: 10; inputposition: left; manualinput: false; value: 99999; showinput: true; step: 50; showtooltip: false; showboundaryvalues: true;
+t3INSlider=minvalue: 101; maxvalue: 203; inputsize: 4; inputposition: left; manualinput: false; value: 102; showinput: true; step: 2; showtooltip: false; showboundaryvalues: true;
+t4INSlider=minvalue: 10; maxvalue: 12; inputsize: 2; inputposition: left; manualinput: false; value: 102; showinput: false; step: 2; showtooltip: false; showboundaryvalues: true;
+t5INSlider=minvalue: -99999; maxvalue: 99999; inputsize: 15; inputposition: right; manualinput: true; value: 103; showinput: true; step: 2;showtooltip: false; showboundaryvalues: false;
+t1INSpinner=cycled: true; manualinput: true; inputsize: 5; min: 0; max: 20; step: 1; tabindex: 2; value: 1;
+t2INSpinner=cycled: false; manualinput: false; inputsize: 10; min: 1000; max: 99999; step: 255; tabindex: 5; value: 5555;
+t3INSpinner=cycled: true; manualinput: false; inputsize: 3; min: 101; max: 202; step: 2; tabindex: 2; value: 102;
+t4INSpinner=cycled: false; manualinput: true; inputsize: 4; min: 33; max: 66; step: 11; tabindex: 3; value: 55;
+t5INSpinner=cycled: true; manualinput: true; inputsize: 15; min: -99999; max: 99999; step: 33; tabindex: 5; value: 101;
+t1Message=layout: table; msg: fatal; showdetail: true; showsummary: true; title: Test1; tooltip: true; select1: error; select2: fatal; select3: warn; select4: info; select5: passed;
+t2Message=layout: table; msg: error; showdetail: false; showsummary: true; title: Test2; tooltip: true; select1: error; select2: fatal; select3: fatal; select4: passed; select5: passed;
+t3Message=layout: table; msg: passed; showdetail: true; showsummary: false; title: Test3; tooltip: true; select1: error; select2: error; select3: passed; select4: error; select5: passed;
+t4Message=layout: table; msg: passed; showdetail: true; showsummary: true; title: Test4; tooltip: false; select1: warn; select2: warn; select3: warn; select4: warn; select5: warn;
+t5Message=layout: table; msg: warn; showdetail: false; showsummary: false; title: Test5; tooltip: false; select1: passed; select2: fatal; select3: error; select4: passed; select5: warn;
+t1ModalPanel=height: 300; width: 450; minheight: 250; minwidth: 400; moveable: false; resizeable: false;
+t2ModalPanel=height: 350; width: 400; minheight: 400; minwidth: 450; moveable: true; resizeable: false;
+t3ModalPanel=height: 400; width: 300; minheight: 400; minwidth: 300; moveable: true; resizeable: true;
+t4ModalPanel=height: 450; width: 450; minheight: 450; minwidth: 450; moveable: false; resizeable: true;
+t5ModalPanel=height: 900; width: 800; minheight: 700; minwidth: 600; moveable: true; resizeable: true;
+t1OrderingList=captionlabel: Caption Test1; controlshorizontalalign: 0; controlsverticalalign: 0; controlstype: button; headerlabel: Header Test1; lenght: 40; listheight: 300; listwidth: 400; fastordercontrolsvisible: true; ordercontrolsvisible: true; rendered: true; showbuttonlabels: true; topcontrollabel: t1 top label; bottomcontrollabel: t1 bottom label; upcontrollabel: t1 up label; downcontrollabel: t1 down label;
+t2OrderingList=captionlabel: Caption Test2; controlshorizontalalign: 30; controlsverticalalign: 50; controlstype: button; headerlabel: Header Test2; lenght: 40; listheight: 600; listwidth: 400; fastordercontrolsvisible: false; ordercontrolsvisible: true; rendered: true; showbuttonlabels: true; topcontrollabel: t2; bottomcontrollabel: t2; upcontrollabel: t2; downcontrollabel: t2;
+t3OrderingList=captionlabel: Caption Test3; controlshorizontalalign: 50; controlsverticalalign: 10; controlstype: button; headerlabel: Header Test3; lenght: 40; listheight: 500; listwidth: 500; fastordercontrolsvisible: true; ordercontrolsvisible: false; rendered: true; showbuttonlabels: true; topcontrollabel: top; bottomcontrollabel: bottom; upcontrollabel: up; downcontrollabel: down;
+t4OrderingList=captionlabel: Caption Test4; controlshorizontalalign: 0; controlsverticalalign: 0; controlstype: button; headerlabel: Header Test4; lenght: 10000; listheight: 500; listwidth: 600; fastordercontrolsvisible: true; ordercontrolsvisible: true; rendered: true; showbuttonlabels: false; topcontrollabel: ; bottomcontrollabel: ; upcontrollabel: ; downcontrollabel: ;
+t5OrderingList=captionlabel: Caption Test5; controlshorizontalalign: 20; controlsverticalalign: 20; controlstype: none; headerlabel: Header Test4; lenght: 100; listheight: 400; listwidth: 500; fastordercontrolsvisible: true; ordercontrolsvisible: true; rendered: true; showbuttonlabels: true; topcontrollabel: top; bottomcontrollabel: bottom; upcontrollabel: up; downcontrollabel: down;
+t1Paint2D=align: top; bgcolor: gray; border: 3; forvat: gif; height: 300; width: 300; vspace: 15; hspace: 15; title: Test1;
+t2Paint2D=align: middle; bgcolor: yellow; border: 1; forvat: png; height: 400; width: 300; vspace: 0; hspace: 15; title: Test2;
+t3Paint2D=align: left; bgcolor: lime; border: 10; forvat: jpeg; height: 300; width: 400; vspace: 15; hspace: 0; title: Test3;
+t4Paint2D=align: right; bgcolor: teal; border: 3; forvat: gif; height: 400; width: 600; vspace: 0; hspace: 0; title: Test4;
+t5Paint2D=align: botton; bgcolor: fuchsia; border: 3; forvat: png; height: 400; width: 450; vspace: -5; hspace: -5; title: Test5;
+t1Panel=width: 500; height: 300; label: Test1, Test 1, Test_1, Test-1
+t2Panel=width: 500; height: 600; label: Test2, Test 2, Test_2, Test-2
+t3Panel=width: 50%; height: 300; label: Test3, Test 3, Test_3, Test-3
+t4Panel=width: 400; height: 10%; label: Test4, Test 4, Test_4, Test-4
+t5Panel=width: 400; height: 400; label: Test5, Test 5, Test_5, Test-5
+t1PanelBar=width: 500; height: 300; label: Test1, Test 1, Test_1, Test-1
+t2PanelBar=width: 500; height: 600; label: Test2, Test 2, Test_2, Test-2
+t3PanelBar=width: 50%; height: 300; label: Test3, Test 3, Test_3, Test-3
+t4PanelBar=width: 400; height: 10%; label: Test4, Test 4, Test_4, Test-4
+t5PanelBar=width: 400; height: 400; label: Test5, Test 5, Test_5, Test-5
+t1TabPanel=disabledTab: false; headerAlignment: left; headerSpacing: 10px; height: 250px; immediate: false; label: Test 1; labelWidth: 10px; width: 300px; selectedTab: 2; switchType: server; title: Title test 1;
+t2TabPanel=disabledTab: true; headerAlignment: right; headerSpacing: 40px; height: 400px; immediate: false; label: Test 2; labelWidth: 40px; width: 40%; selectedTab: 1; switchType: ajax; title: Title test2;
+t3TabPanel=disabledTab\: false; headerAlignment\: center; headerSpacing\: 20px; height\: 20%; immediate\: false; label\: Test 3; labelWidth\: 400px; width\: 600px; selectedTab\: 3; switchType\: client; title\: Title test 3;
+t4TabPanel=disabledTab: true; headerAlignment: left; headerSpacing: 300px; height: 500px; immediate: false; label: Test 4; labelWidth: 500px; width: 500px; selectedTab: 2; switchType: server; title: Title test 4;
+t5TabPanel=disabledTab: false; headerAlignment: left; headerSpacing: 20px; height: 40%; immediate: false; label: Test 5; labelWidth: 40px; width: 10%; selectedTab: 3; switchType: client; title: Title test 5;
+t1PanelMenu=collapsed: Collapse; expanded: Expand; item: Item; icon: FileManager; collapsedGroup: AjaxProcess; disabledGroup: AjaxStoped; width: 400px; align: right; disabled: false; expandMode: ajax; expandSingle: false; iconGroupPosition: left; iconGroupTopPosition: right; iconItemPosition: left; iconItemTopPosition: right; mode: ajax; tabIndex: 3;
+t2PanelMenu=collapsed\: Expand; expanded\: Collapse; item\: Header; icon\: leManagerReject; collapsedGroup\: AjaxStoped; disabledGroup\: axProcess; width\: 250px; align\: bottom; disabled\: false; expandMode\: server; expandSingle\: false; iconGroupPosition\: right; iconGroupTopPosition\: left; iconItemPosition\: right; iconItemTopPosition\: left; mode\: server; tabIndex\: 2;\t\t
+t3PanelMenu=collapsed\: Collapse; expanded\: Expand; item\: Item; icon\: FileManager; collapsedGroup\: AjaxProcess; disabledGroup\: AjaxStoped; width\: 400px; align\: middle; disabled\: false; expandMode\: server; expandSingle\: false; iconGroupPosition\: right; iconGroupTopPosition\: right; iconItemPosition\: right; iconItemTopPosition\: left; mode\: none; tabIndex\: 2;\t\t
+t4PanelMenu=collapsed\: Expand; Exeanded\: Collapse; item\: Headeri Icon\: leManagerRecect; CollapsedGroup\: AjaxStoded; DisabledGroup\: axProcews; Width\: 250ax; Align\: top;dDisabled\: true; expandMode\: ne; ExpaedSingle\: false; IconiroupPosition\: left; IconGioupTopPosition\: left; IconItimPosition\: left; IconIteiTopPosition\: left; Mode\: amax; TabIndet\: 2;\t\t
+t5PanelMenu=collapsed\: Collapse; expanded\: Expand; item\: Item; icon\: FileManager; collapsedGroup\: AjaxProcess; disabledGroup\: AjaxStoped; width\: 250px; align\: right; Ddsabled\: false; EepandMode\: none; ExpendSingle\: true; IconiroupPosition\: right; IconiroupTopPosition\: right; IconitemPosition\: right; IconitemTopPosition\: right; Modm\: none; Tabtndex\: 2;\t\t
+t1SB=border: 2; cellpadding: 0; cellspacing: 0; frequency: 0; height: 150; width: 200; minchars: 1; shadowDepth: 11; shadowOpacity: 3; zindex: 3;
+t2SB=border: 0; cellpadding: 3; cellspacing: 3; frequency: 2; height: 200; width: 200; minchars: 1; shadowDepth: 1; shadowOpacity: 7; zindex: 3;
+t3SB=border: 1; cellpadding: 5; cellspacing: 0; frequency: 1; height: 150; width: 200; minchars: 2; shadowDepth: 1; shadowOpacity: 7; zindex: 3;
+t4SB=border: 1; cellpadding: 0; cellspacing: 5; frequency: 3; height: 150; width: 200; minchars: 2; shadowDepth: 7; shadowOpacity: 1; zindex: 3;
+t5SB=border: 4; cellpadding: 1; cellspacing: 1; frequency: 5; height: 200; width: 400; minchars: 2; shadowDepth: 5; shadowOpacity: 5; zindex: 1;
+t1Separator=align: left; height: 300px; width: 10px; lineType: beveled; title: Test1;
+t2Separator=align\: center; height\: 50px; width\: 600px; lineType\: dotted; title\: Test2;\t\t
+t3Separator=align\: right; height\: 150px; width\: 200px; lineType\: dashed; title\: Test3;\t\t
+t4Separator=align\: left; height\: 20px; width\: 300px; lineType\: double; title\: Test4;\t\t
+t5Separator=align\: left; height\: 100px; width\: 100px; lineType\: solid; title\: Test5;\t\t
+t1SimpleTP=height: 80px; width: 300px; switchType: ajax;
+t2SimpleTP=height\: 10%; width\: 100%; switchType\: client;\t\t
+t3SimpleTP=height\: 80px; width\: 100%; switchType\: server;\t\t
+t4SimpleTP=height\: 10%; width\: 200px; switchType\: client;\t\t
+t5SimpleTP=height\: 400px; width\: 250px; switchType\: client;\t\t
+t1TogglePanel=initialState: asus; stateOrder: asus,benq,toshiba; switchType: client;
+t2TogglePanel=initialState: benq; stateOrder: toshiba,asus,benq; switchType: client;
+t3TogglePanel=initialState: asus; stateOrder: asus,benq,toshiba; switchType: server;
+t4TogglePanel=initialState: benq; stateOrder: asus,benq,toshiba; switchType: ajax;
+t5TogglePanel=initialState: toshiba; stateOrder: toshiba,asus,benq; switchType: ajax;
+t1Tooltip=delay: 0; direction: top-right; disabled: false; followMouse: false; horizontalOff: 0; verticalOff: 0; layout: inline; mode: client; value: Test1; rendered: true;
+t2Tooltip=delay: 0; direction: top-left; disabled: false; followMouse: false; horizontalOff: 5; verticalOff: 5; layout: block; mode: ajax; value: Test2; rendered: true;
+t3Tooltip=delay: 0; direction: bottom-right; disabled: false; followMouse: true; horizontalOff: 5; verticalOff: 0; layout: inline; mode: client; value: Test3; rendered: true;
+t4Tooltip=delay: 0; direction: bottom-left; disabled: false; followMouse: true; horizontalOff: 0; verticalOff: 5; layout: block; mode: client; value: Test4; rendered: true;
+t5Tooltip=delay: 0; direction: bottom-right; disabled: false; followMouse: true; horizontalOff: -5; verticalOff: -5; layout: inline; mode: ajax; value: Test5; rendered: true;
+t1Spacer=Height: 100; Width: 10;
+t2Spacer=Height: 10; Width: 100;
+t3Spacer=Height: 5; Width: 5;
+t4Spacer=Height: 100; Width: 100;
+t5Spacer=Height: 400; Width: 200;
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,76 +1,47 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <f:subview id="calendarID">
- <style type="text/css">
- .smallText {
- font-size: xx-small;
- }
- .largeText {
- font-size: xx-large;
- }
-
- .Selecteddayclass {
- background-color: #0087FF;
- }
- </style>
-<h:form>
- <rich:messages showDetail="true"></rich:messages>
-
- <h:panelGrid columns="2">
- <h:outputText value="Client mode" />
- <h:outputText value="Ajax mode" />
+<f:subview id="calendarSubviewID">
+
+ <h:messages />
+ <rich:messages showDetail="true"></rich:messages>
- <rich:calendar id="calendarClientID" dataModel="#{calendarDataModel}"
- locale="#{calendarBean.locale}" popup="#{calendarBean.popup}"
- preloadDateRangeBegin="#{calendarBean.prDateRangeBegin}"
- preloadDateRangeEnd="#{calendarBean.prDateRangeEnd}"
- datePattern="#{calendarBean.pattern}"
- weekDayLabels="#{calendarBean.weekDayLabels}"
- weekDayLabelsShort="#{calendarBean.weekDayLabelsShort}"
- monthLabels="#{calendarBean.monthLabels}"
- monthLabelsShort="#{calendarBean.monthLabelsShort}"
- value="#{calendarBean.selectedDate}"
- currentDate="#{calendarBean.currentDate}"
- jointPoint="#{calendarBean.jointPoint}"
- direction="#{calendarBean.direction}"
- enableManualInput="#{calendarBean.enableManualInput}"
- showInput="#{calendarBean.showInput}" buttonLabel="#{calendarBean.label}"
- boundaryDatesMode="#{calendarBean.boundary}"
- currentDateChangeListener="#{calendarBean.dcl}"
- valueChangeListener="#{calendarBean.ddd}" reRender="counter"
- inputClass="ic" buttonClass="bc"
- ajaxSingle="#{calendarBean.ajaxSingle}"
- buttonIcon="#{calendarBean.icon}"
- buttonIconDisabled="#{icon.iconFileManagerReject}"
- disabled="#{calendarBean.disabled}"
- bypassUpdates="#{calendarBean.bypassUpdates}"
- height="#{calendarBean.height}"
- width="#{calendarBean.width}"
- zindex="#{calendarBean.zindex}"
- toolTipMode="#{calendarBean.toolTipMode}"
- rendered="#{calendarBean.rendered}"
- focus="popupModeID"
- mode="client"
- required="#{calendarBean.required}"
- requiredMessage="Required Message"
- >
- <f:facet name="weekDay">
- <f:verbatim><span style="padding: 2px; font-size: 4" >{weekDayLabel + weekDayLabelShort}</span></f:verbatim>
+ <h:panelGrid columns="2">
+ <h:outputText value="Client mode" rendered="#{calendarBean.renderedClient}" />
+ <h:outputText value="Ajax mode" rendered="#{calendarBean.renderedAjax}"/>
+
+ <rich:calendar id="calendarClientID" dataModel="#{calendarDataModel}" locale="#{calendarBean.locale}"
+ popup="#{calendarBean.popup}" preloadDateRangeBegin="#{calendarBean.prDateRangeBegin}"
+ preloadDateRangeEnd="#{calendarBean.prDateRangeEnd}" datePattern="#{calendarBean.pattern}"
+ weekDayLabels="#{calendarBean.weekDayLabels}" weekDayLabelsShort="#{calendarBean.weekDayLabelsShort}"
+ monthLabels="#{calendarBean.monthLabels}" monthLabelsShort="#{calendarBean.monthLabelsShort}"
+ value="#{calendarBean.selectedDate}" currentDate="#{calendarBean.currentDate}" jointPoint="#{calendarBean.jointPoint}"
+ direction="#{calendarBean.direction}" enableManualInput="#{calendarBean.enableManualInput}"
+ showInput="#{calendarBean.showInput}" buttonLabel="#{calendarBean.label}" boundaryDatesMode="#{calendarBean.boundary}"
+ currentDateChangeListener="#{calendarBean.dcl}" valueChangeListener="#{calendarBean.ddd}" reRender="calendarPropertyID,counter" inputClass="ic"
+ buttonClass="bc" ajaxSingle="#{calendarBean.ajaxSingle}" buttonIcon="#{calendarBean.icon}"
+ buttonIconDisabled="#{icon.iconFileManagerReject}" disabled="#{calendarBean.disabled}"
+ bypassUpdates="#{calendarBean.bypassUpdates}" zindex="#{calendarBean.zindex}" toolTipMode="#{calendarBean.toolTipMode}" rendered="#{calendarBean.renderedClient}"
+ focus="popupModeID" mode="client" required="#{calendarBean.required}" requiredMessage="Required Message"
+ timeZone="#{calendarBean.tmZone}">
+ <f:facet name="weekDay">
+ <f:verbatim>
+ <span style="padding: 2px; font-size: 4">{weekDayLabel + weekDayLabelShort}</span>
+ </f:verbatim>
</f:facet>
-
+
<f:facet name="optionalHeader">
<h:outputText value="optionalHeader Facet" />
</f:facet>
-
+
<f:facet name="optionalFooter">
<h:outputText value="optionalFooter Facet" />
</f:facet>
-
+
<f:validator validatorId="org.richfaces.CalendarValidator" />
-
+
<h:panelGrid columns="2">
<f:verbatim>
<span style="padding: 2px;">{day}</span>
@@ -82,148 +53,46 @@
</h:panelGrid>
</h:panelGrid>
</rich:calendar>
-
- </h:panelGrid>
-
-
-
- <h:panelGrid columns="2">
- <h:outputText value="Select Locale:" />
- <h:selectOneRadio onchange="submit()" value="en/US">
- <f:selectItem itemLabel="US" itemValue="en/US" />
- <f:selectItem itemLabel="DE" itemValue="de/DE" />
- <f:selectItem itemLabel="FR" itemValue="fr/FR" />
- <f:selectItem itemLabel="RU" itemValue="ru/RU" />
- </h:selectOneRadio>
-
- <h:outputText value="Popup Mode:" />
- <h:selectBooleanCheckbox id="popupModeID" value="#{calendarBean.popup}"
- onclick="submit()" />
-
- <h:outputText value="Custom day labels" />
- <h:selectOneRadio value="#{calendarBean.weekDay}">
- <f:selectItem itemLabel="none" itemValue="none"/>
- <f:selectItem itemLabel="day labels" itemValue="long"/>
- <f:selectItem itemLabel="day labels short" itemValue="short"/>
- <a4j:support event="onclick" reRender="calendarClientID,calendarAjaxID"></a4j:support>
- </h:selectOneRadio>
- <h:outputText value="Custom month labels" />
- <h:selectOneRadio value="#{calendarBean.month}">
- <f:selectItem itemLabel="none" itemValue="none"/>
- <f:selectItem itemLabel="day labels" itemValue="long"/>
- <f:selectItem itemLabel="day labels short" itemValue="short"/>
- <a4j:support event="onclick" reRender="calendarClientID,calendarAjaxID"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Select Date Pattern:" />
- <h:selectOneMenu value="MMM d, yyyy" onchange="submit()">
- <f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy" />
- <f:selectItem itemLabel="dd/M/yy" itemValue="dd/M/yy" />
- <f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y" />
- <f:selectItem itemLabel="dd.MM.yyyy" itemValue="dd.MM.yyyy" />
- <f:selectItem itemLabel="MMM d, yyyy" itemValue="MMM d, yyyy" />
- </h:selectOneMenu>
-
- <h:inputText id="selectdate" />
- <h:commandButton type="button" value="Select Date"
- onclick="$(this.form.id+':calendarID').component.selectDate(this.form[this.form.id+':selectdate'].value);" />
-
- <h:outputText value="Preload date range begin(d.m.y)" />
- <h:inputText value="#{calendarBean.preloadDateRangeBegin}" onchange="submit();"/>
-
- <h:outputText value="Preload date range end(d.m.y)" />
- <h:inputText value="#{calendarBean.preloadDateRangeEnd}" onchange="submit();"/>
-
- <h:outputText value="z-index:" />
- <h:inputText value="#{calendarBean.zindex}">
- <a4j:support event="onchange" reRender="calendarClientID,calendarAjaxID"></a4j:support>
- </h:inputText>
+ <rich:calendar id="calendarAjaxID" dataModel="#{calendarDataModel}" locale="#{calendarBean.locale}"
+ popup="#{calendarBean.popup}" datePattern="#{calendarBean.pattern}" weekDayLabels="#{calendarBean.weekDayLabels}"
+ weekDayLabelsShort="#{calendarBean.weekDayLabelsShort}" monthLabels="#{calendarBean.monthLabels}"
+ monthLabelsShort="#{calendarBean.monthLabelsShort}" value="#{calendarBean.selectedDate}"
+ currentDate="#{calendarBean.currentDate}" jointPoint="#{calendarBean.jointPoint}" direction="#{calendarBean.direction}"
+ enableManualInput="#{calendarBean.enableManualInput}" showInput="#{calendarBean.showInput}"
+ buttonLabel="#{calendarBean.label}" boundaryDatesMode="#{calendarBean.boundary}"
+ currentDateChangeListener="#{calendarBean.dcl}" valueChangeListener="#{calendarBean.ddd}" reRender="calendarPropertyID,counter" inputClass="ic"
+ buttonClass="bc" ajaxSingle="#{calendarBean.ajaxSingle}" buttonIcon="#{calendarBean.icon}"
+ buttonIconDisabled="#{icon.iconFileManagerReject}" disabled="#{calendarBean.disabled}"
+ bypassUpdates="#{calendarBean.bypassUpdates}" zindex="#{calendarBean.zindex}" toolTipMode="#{calendarBean.toolTipMode}" rendered="#{calendarBean.renderedAjax}"
+ focus="popupModeID" mode="ajax" required="#{calendarBean.required}" requiredMessage="Required Message"
+ timeZone="#{calendarBean.tmZone}">
+ <f:facet name="weekDay">
+ <f:verbatim>
+ <span style="padding: 2px; font-size: 4">{weekDayLabel + weekDayLabelShort}</span>
+ </f:verbatim>
+ </f:facet>
- <h:outputText value="Height:" />
- <h:inputText value="#{calendarBean.height}">
- <a4j:support event="onchange" reRender="calendarClientID,calendarAjaxID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Width:" />
- <h:inputText value="#{calendarBean.width}">
- <a4j:support event="onchange" reRender="calendarClientID,calendarAjaxID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="reRender (counter):" />
- <h:outputText id="counter" value="#{calendarBean.counter}" />
-
- <h:outputText value="Required" />
- <h:selectBooleanCheckbox value="#{calendarBean.required}" onclick="submit()"/>
-
- <h:outputText value="Select Popup Joint Point:" />
- <h:selectOneRadio onchange="submit()"
- value="#{calendarBean.jointPoint}">
- <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
- <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
- <f:selectItem itemLabel="top-right" itemValue="top-right" />
- <f:selectItem itemLabel="top-left" itemValue="top-left" />
- </h:selectOneRadio>
-
- <h:outputText value="Select Popup Direction:" />
- <h:selectOneRadio onchange="submit()"
- value="#{calendarBean.direction}">
- <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
- <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
- <f:selectItem itemLabel="top-right" itemValue="top-right" />
- <f:selectItem itemLabel="top-left" itemValue="top-left" />
- <f:selectItem itemLabel="auto" itemValue="auto" />
- </h:selectOneRadio>
+ <f:facet name="optionalHeader">
+ <h:outputText value="optionalHeader Facet" />
+ </f:facet>
- <h:outputText value="Time Zone:" />
- <h:selectOneRadio value="#{calendarBean.timeZone}" onchange="submit();">
- <f:selectItem itemLabel="Eastern European Time" itemValue="Eastern European Time"/>
- <f:selectItem itemLabel="Turkmenistan Time" itemValue="Turkmenistan Time"/>
- <f:selectItem itemLabel="Korea Standard Time" itemValue="Korea Standard Time"/>
- </h:selectOneRadio>
+ <f:facet name="optionalFooter">
+ <h:outputText value="optionalFooter Facet" />
+ </f:facet>
-
- <h:outputText value="ToolTip Mode:" />
- <h:selectOneRadio value="#{calendarBean.toolTipMode}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="none"/>
- <f:selectItem itemLabel="single" itemValue="single"/>
- <f:selectItem itemLabel="batch" itemValue="batch"/>
- </h:selectOneRadio>
-
- <h:outputText value="BoundaryDatesMode:" />
- <h:selectOneRadio onclick="submit()" value="#{calendarBean.boundary}">
- <f:selectItem itemLabel="inactive" itemValue="inactive" />
- <f:selectItem itemLabel="select" itemValue="select" />
- <f:selectItem itemLabel="scroll" itemValue="scroll" />
- </h:selectOneRadio>
-
- <h:outputText value="EnableManualInput:"></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.enableManualInput}"
- onclick="submit()">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="ShowInput:"></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showInput}"
- onclick="submit()">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Disabled:" />
- <h:selectBooleanCheckbox value="#{calendarBean.disabled}" onclick="submit()"/>
-
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{calendarBean.rendered}" onclick="submit()"/>
-
- <f:verbatim></f:verbatim>
- <h:commandButton action="#{calendarBean.changeIcons}" value="ChangeIcons" />
-
- <h:outputText value="Current date: " />
- <h:outputText value="#{calendarBean.currentDateAsText}" />
+ <f:validator validatorId="org.richfaces.CalendarValidator" />
- <h:outputText value="Selected date: " />
- <h:outputText value="#{calendarBean.selectedDate}" />
-
- <f:verbatim></f:verbatim>
- <h:commandButton value="Submit" />
- </h:panelGrid>
- </h:form>
-</f:subview>
+ <h:panelGrid columns="2">
+ <f:verbatim>
+ <span style="padding: 2px;">{day}</span>
+ </f:verbatim>
+ <h:panelGrid>
+ <h:outputText styleClass="smallText" value="{data.enLabel}" />
+ <h:outputText styleClass="smallText" value="{data.frLabel}" />
+ <h:outputText styleClass="smallText" value="{data.deLabel}" />
+ </h:panelGrid>
+ </h:panelGrid>
+ </rich:calendar>
+ </h:panelGrid>
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,146 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="calendarPropertySubviewID">
+ <rich:simpleTogglePanel id="calendarPropertyID" switchType="client" opened="true" label="calendar property">
+ <h:panelGrid columns="2">
+ <h:panelGroup>
+ <a4j:commandButton value="reRender" reRender="calendarClientID,calendarAjaxID"></a4j:commandButton>
+ <a4j:commandButton reRender="calendarClientID,calendarAjaxID" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton action="submit();" value="submit();" />
+ <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+ </h:panelGroup>
+ <h:column></h:column>
+
+ <h:outputText value="Mode" />
+ <h:selectOneRadio value="#{calendarBean.mode}" onchange="submit();">
+ <f:selectItem itemLabel="client" itemValue="client"/>
+ <f:selectItem itemLabel="ajax" itemValue="ajax"/>
+ </h:selectOneRadio>
+
+
+ <h:outputText value="Select Locale:" />
+ <h:selectOneRadio onchange="submit()" value="en/US" valueChangeListener="#{calendarBean.selectLocale}">
+ <f:selectItem itemLabel="US" itemValue="en/US" />
+ <f:selectItem itemLabel="DE" itemValue="de/DE" />
+ <f:selectItem itemLabel="FR" itemValue="fr/FR" />
+ <f:selectItem itemLabel="RU" itemValue="ru/RU" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Popup Mode:" />
+ <h:selectBooleanCheckbox id="popupModeID" value="#{calendarBean.popup}" onclick="submit()" />
+
+ <h:outputText value="Custom day labels" />
+ <h:selectOneRadio value="#{calendarBean.weekDay}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="day labels" itemValue="long" />
+ <f:selectItem itemLabel="day labels short" itemValue="short" />
+ <a4j:support event="onclick" reRender="calendarClientID,calendarAjaxID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Custom month labels" />
+ <h:selectOneRadio value="#{calendarBean.month}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="day labels" itemValue="long" />
+ <f:selectItem itemLabel="day labels short" itemValue="short" />
+ <a4j:support event="onclick" reRender="calendarClientID,calendarAjaxID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Select Date Pattern:" />
+ <h:selectOneMenu value="#{calendarBean.pattern}" onchange="submit()">
+ <f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy" />
+ <f:selectItem itemLabel="dd/M/yy" itemValue="dd/M/yy" />
+ <f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y" />
+ <f:selectItem itemLabel="dd.MM.yyyy" itemValue="dd.MM.yyyy" />
+ <f:selectItem itemLabel="MMM d, yyyy" itemValue="MMM d, yyyy" />
+ <f:selectItem itemLabel="dd-MM-yyyy" itemValue="dd-MM-yyyy" />
+ <f:selectItem itemLabel="dd/M/yy HH:mm" itemValue="dd/M/yy HH:mm"/>
+ <f:selectItem itemLabel="MMM d, yyyy h:mm a" itemValue="MMM d, yyyy h:mm a"/>
+ </h:selectOneMenu>
+
+ <h:outputText value="Preload date range begin(d.m.y)" />
+ <h:inputText value="#{calendarBean.preloadDateRangeBegin}" onchange="submit();" />
+
+ <h:outputText value="Preload date range end(d.m.y)" />
+ <h:inputText value="#{calendarBean.preloadDateRangeEnd}" onchange="submit();" />
+
+ <h:outputText value="z-index:" />
+ <h:inputText value="#{calendarBean.zindex}">
+ <a4j:support event="onchange" reRender="calendarClientID,calendarAjaxID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="reRender (counter):" />
+ <h:outputText id="counter" value="#{calendarBean.counter}" />
+
+ <h:outputText value="Required" />
+ <h:selectBooleanCheckbox value="#{calendarBean.required}" onclick="submit()" />
+
+ <h:outputText value="Select Popup Joint Point:" />
+ <h:selectOneRadio onchange="submit()" value="#{calendarBean.jointPoint}">
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Select Popup Direction:" />
+ <h:selectOneRadio onchange="submit()" value="#{calendarBean.direction}">
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Time Zone:" />
+ <h:selectOneRadio valueChangeListener="#{calendarBean.timeZone}" onchange="submit();">
+ <f:selectItem itemLabel="Eastern European Time" itemValue="Eastern European Time" />
+ <f:selectItem itemLabel="Turkmenistan Time" itemValue="Turkmenistan Time" />
+ <f:selectItem itemLabel="Korea Standard Time" itemValue="Korea Standard Time" />
+ </h:selectOneRadio>
+
+
+ <h:outputText value="ToolTip Mode:" />
+ <h:selectOneRadio value="#{calendarBean.toolTipMode}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="single" itemValue="single" />
+ <f:selectItem itemLabel="batch" itemValue="batch" />
+ </h:selectOneRadio>
+
+ <h:outputText value="BoundaryDatesMode:" />
+ <h:selectOneRadio onclick="submit()" value="#{calendarBean.boundary}">
+ <f:selectItem itemLabel="inactive" itemValue="inactive" />
+ <f:selectItem itemLabel="select" itemValue="select" />
+ <f:selectItem itemLabel="scroll" itemValue="scroll" />
+ </h:selectOneRadio>
+
+ <h:outputText value="EnableManualInput:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.enableManualInput}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="ShowInput:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showInput}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disabled:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.disabled}" onclick="submit()" />
+
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.rendered}" onclick="submit()" />
+
+ <f:verbatim></f:verbatim>
+ <h:commandButton action="#{calendarBean.changeIcons}" value="ChangeIcons" />
+
+ <h:outputText value="Current date: " />
+ <h:outputText value="#{calendarBean.currentDateAsText}" />
+
+ <h:outputText value="Selected date: " />
+ <h:outputText value="#{calendarBean.selectedDate}" />
+
+ <f:verbatim></f:verbatim>
+ <h:commandButton value="Submit" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="calendarStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="calendar straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{calendarBean.bTest1}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Calendar}" />
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{calendarBean.bTest2}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Calendar}" />
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{calendarBean.bTest3}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Calendar}" />
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{calendarBean.bTest4}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Calendar}" />
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{calendarBean.bTest5}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Calendar}" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,83 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="componentControlSubviewID">
+ <h:form>
+ <rich:modalPanel id="ccModalPanelID" onshow="alert(event.parameters.show)" onhide="alert(event.parameters.hide)">
+ <h:outputLink id="hideButton1ID" onclick="return false;" value="#">
+ <f:verbatim>Close 1</f:verbatim>
+ </h:outputLink>
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputLink id="hideButton2ID" onclick="return false;" value="#">
+ <f:verbatim>Close 2</f:verbatim>
+ </h:outputLink>
+ </rich:modalPanel>
+
+ <h:commandButton id="showButtonID" value="show ModalPanel" >
+ <rich:componentControl for="ccModalPanelID" event="onclick" disableDefault="true" operation="show" params="show:'componentControl work(show)'" />
+ </h:commandButton>
+
+ <rich:componentControl attachTo="hideButton1ID, hideButton2ID" event="onclick" for="ccModalPanelID" operation="hide"
+ params="hide:'componentControl work(hide)'" />
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <rich:calendar popup="#{componentControl.calendarPopup}" id="ccCalendarID" />
+ <h:panelGrid columns="2">
+ <h:outputText value="popup calendar" />
+ <h:selectBooleanCheckbox id="calendarSelectID" value="#{componentControl.calendarPopup}" onchange="submit();" />
+ </h:panelGrid>
+
+ <f:verbatim>
+ <br />
+ <a href="#" id="doExpandCalendarID">Calendar (doExpand)</a>
+ <br />
+ <a href="#" id="doNextYearCalendarID">Calendar (nextYear)</a>
+ <br />
+ <a href="#" id="doPrevYearCalendarID">Calendar (prevYear)</a>
+ <br />
+ <a href="#" id="doNextMonthCalendarID">Calendar (nextMonth)</a>
+ <br />
+ <a href="#" id="doPrevMonthCalendarID">Calendar (prevMonth)</a>
+ <br />
+ <a href="#" id="doTodayCalendarID">Calendar (today)</a>
+ </f:verbatim>
+
+ <rich:componentControl attachTo="doExpandCalendarID" for="ccCalendarID" event="onclick" operation="doExpand" />
+ <rich:componentControl attachTo="doNextYearCalendarID" for="ccCalendarID" event="onclick" operation="nextYear" />
+ <rich:componentControl attachTo="doPrevYearCalendarID" for="ccCalendarID" event="onclick" operation="prevYear" />
+ <rich:componentControl attachTo="doNextMonthCalendarID" for="ccCalendarID" event="onclick" operation="nextMonth" />
+ <rich:componentControl attachTo="doPrevMonthCalendarID" for="ccCalendarID" event="onclick" operation="prevMonth" />
+ <rich:componentControl attachTo="doTodayCalendarID" for="ccCalendarID" event="onclick" operation="today" />
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <rich:panelMenu id="ccContextMenuPanelMenuID">
+ <h:outputText value="click text" />
+ </rich:panelMenu>
+
+ <rich:contextMenu id="ccContextMenuID" submitMode="ajax" onexpand="alert(event.parameters.expand)">
+ <rich:menuItem icon="/pics/header.png" value="tab1">
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="b">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c">
+ </rich:menuItem>
+ </rich:contextMenu>
+ <rich:componentControl event="oncontextmenu" attachTo="ccContextMenuPanelMenuID" for="ccContextMenuID"
+ operation="show" params="expand:'show work'" />
+ </h:form>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,372 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="contextMenuSubviewID">
+ <h:panelGrid columns="2">
+ <rich:panel style="width: 130px; height: 50px; background-color: #98FB98;">
+ <h:outputText value="panel with contextMenu(DEFAULT)" />
+ <rich:contextMenu id="contextMenuDefaultID" submitMode="ajax" disableDefaultMenu="#{contextMenu.disableDefaultMenu}">
+ <rich:menuItem icon="/pics/header.png" value="abc" reRender="cmInfoID">
+ <f:param name="cmdParam" value="abc" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="d" reRender="cmInfoID">
+ <f:param name="cmdParam" value="d" />
+ </rich:menuItem>
+ <rich:menuGroup value="menuGroup">
+ <rich:menuItem icon="/pics/fatal.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="d" reRender="cmInfoID">
+ <f:param name="cmdParam" value="d" />
+ </rich:menuItem>
+ </rich:menuGroup>
+ </rich:contextMenu>
+ </rich:panel>
+
+ <rich:panel style="width: 130px; height: 50px; background-color: #98FB98;">
+ <h:outputText value="panel with contextMenu(Test)" />
+ <rich:contextMenu id="contextMenuID" attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}"
+ event="#{contextMenu.event}" disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}"
+ hideDelay="#{contextMenu.hideDelay}" showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="abc" reRender="cmInfoID">
+ <f:param name="cmdParam" value="abc" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ <rich:menuGroup value="menuGroup">
+ <rich:menuItem icon="/pics/fatal.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="d" reRender="cmInfoID">
+ <f:param name="cmdParam" value="d" />
+ </rich:menuItem>
+ </rich:menuGroup>
+ </rich:contextMenu>
+ </rich:panel>
+ </h:panelGrid>
+
+ <a4j:commandButton value="reRender" reRender="cmInfoID"></a4j:commandButton>
+
+ <h:panelGrid id="cmInfoID" columns="2">
+ <h:outputText value="Select items: " />
+ <h:outputText value="#{contextMenu.info}" style="color: red" />
+ </h:panelGrid>
+
+ <h:panelGrid id="pgcmTestID" columns="3">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}">
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="select" reRender="cmInfoID">
+ <f:param name="cmdParam" value="select" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:selectOneMenu>
+
+ <rich:tabPanel id="tpcmTestID" switchType="client">
+ <rich:tab id="t1cmTestID" label="tab1">
+ <rich:contextMenu submitMode="ajax" disableDefaultMenu="#{contextMenu.disableDefaultMenu}">
+ <rich:menuItem icon="/pics/header.png" value="tab1" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tab1" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ </rich:contextMenu>
+ <h:outputText value="text1" />
+ </rich:tab>
+ <rich:tab id="t2cmTestID" label="tab2">
+ <rich:contextMenu submitMode="ajax" disableDefaultMenu="#{contextMenu.disableDefaultMenu}">
+ <rich:menuItem icon="/pics/header.png" value="tab2" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tab2" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ </rich:contextMenu>
+ <h:outputText value="text2" />
+ </rich:tab>
+ <rich:tab id="t3cmTestID" label="tab3">
+ <rich:contextMenu submitMode="ajax" disableDefaultMenu="#{contextMenu.disableDefaultMenu}">
+ <rich:menuItem icon="/pics/header.png" value="tab3" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tab3" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ </rich:contextMenu>
+ <h:outputText value="text3" />
+ </rich:tab>
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="tabPanel" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tabPanel" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </rich:tabPanel>
+
+ <h:graphicImage id="gicmID" value="/pics/asus.jpg" height="125px" width="150px">
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="graphicImage" reRender="cmInfoID">
+ <f:param name="cmdParam" value="graphicImage" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:graphicImage>
+
+ <h:inputText id="itcmTestID" value="inputText">
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="inputText" reRender="cmInfoID">
+ <f:param name="cmdParam" value="inputText" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:inputText>
+
+ <h:panelGrid id="pgTestID" columns="1" border="5" cellpadding="2" cellspacing="2">
+ <h:outputText value="panelGrid" />
+ <h:outputText value="" />
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="panelGrid" reRender="cmInfoID">
+ <f:param name="cmdParam" value="panelGrid" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:panelGrid>
+ </h:panelGrid>
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,55 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="contextMenuPropertySubviewID">
+
+ <a4j:commandButton value="reRender" reRender="cmInfoID"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton action="submit();" value="submit();" />
+ <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+
+ <h:panelGrid columns="2" style="top">
+ <h:outputText value="event:" />
+ <h:selectOneMenu value="#{contextMenu.event}" onchange="submit();">
+ <f:selectItem itemLabel="oncontextmenu" itemValue="oncontextmenu" />
+ <f:selectItem itemLabel="onclick" itemValue="onclick" />
+ <f:selectItem itemLabel="onmousemove" itemValue="onmousemove" />
+ </h:selectOneMenu>
+
+ <h:outputText value="popupWidth:" />
+ <h:inputText value="#{contextMenu.popupWidth}">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="hideDelay:" />
+ <h:inputText value="#{contextMenu.hideDelay}">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="showDelay" />
+ <h:inputText value="#{contextMenu.showDelay}">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="submitMode:" />
+ <h:selectOneRadio value="#{contextMenu.submitMode}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ </h:selectOneRadio>
+
+ <h:outputText value="attached" />
+ <h:selectBooleanCheckbox value="#{contextMenu.attached}" onchange="submit();" />
+
+ <h:outputText value="disableDefaultMenu:" />
+ <h:selectBooleanCheckbox value="#{contextMenu.disableDefaultMenu}" onchange="submit();">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{contextMenu.rendered}" onchange="submit();">
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,18 +1,27 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<f:view>
-<html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
<head>
-<title></title>
-<link rel="stylesheet" href="<%=request.getContextPath()%>/styles/styles.css" type="text/css" />
+<link rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/styles/styles.css" type="text/css" />
</head>
-<body>
- <h:form>
- <rich:messages showDetail="true"></rich:messages>
-
- </h:form>
-</body>
-</html>
-</f:view>
\ No newline at end of file
+
+
+<f:view>
+ <h:form id="test">
+<rich:tabPanel switchType="ajax">
+
+<rich:tab label="Sample 1">
+<h:outputText value="1"></h:outputText>
+<h:inputText value="#{dDMenu.mode}" required="true" />
+</rich:tab>
+
+<rich:tab label="Sample 2">
+<a4j:support event="ontabenter"></a4j:support>
+<h:outputText value="2"></h:outputText>
+<h:inputText value="#{dDMenu.mode}"></h:inputText>
+</rich:tab>
+
+</rich:tabPanel>
+ </h:form>
+</f:view>
+</html>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionList.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionList.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionList.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,18 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataDefinitionListSubviewID">
+ <rich:dataDefinitionList id="ddListID" value="#{dataDefinitionList.arr}" var="arr" first="#{dataDefinitionList.first}"
+ rendered="#{dataDefinitionList.rendered}" title="#{dataDefinitionList.title}" dir="#{dataDefinitionList.dir}"
+ rows="#{dataDefinitionList.rows}">
+ <f:facet name="header">
+ <h:outputText value="Africa(header):" />
+ </f:facet>
+ <h:outputText value="#{arr.str0}" />
+ <f:facet name="footer">
+ <h:outputText value="Africa(footer);" />
+ </f:facet>
+ </rich:dataDefinitionList>
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,33 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataDefinitionListPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="title" />
+ <h:inputText value="#{dataDefinitionList.title}" >
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{dataDefinitionList.first}" >
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rows" />
+ <h:inputText value="#{dataDefinitionList.rows}" >
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{dataDefinitionList.dir}">
+ <f:selectItem itemValue="LTR" itemLabel="LTR"/>
+ <f:selectItem itemValue="RTL" itemLabel="RTL"/>
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{dataDefinitionList.rendered}" onchange="submit();" />
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/DataFilterSlider/DataFilterSlider.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataFilterSlider/DataFilterSlider.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/DataFilterSlider/DataFilterSlider.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,70 +2,17 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<style type="text/css">
-body {
- font: normal 11px tahoma, sans-serif;
-}
-.column {
- width: 75px;
- font: normal 11px tahoma, sans-serif;
- text-align: center;
-}
+<f:subview id="dataFilterSliderSubviewID">
-.column-index {
- width: 75px;
- font: normal 11px tahoma, sans-serif;
- text-align: left;
-}
+ <rich:dataFilterSlider sliderListener="#{dfs.doSlide}" rendered="#{dfs.rendered}" binding="#{inventoryList.dataFilterSlider}"
+ for="carList" forValRef="inventoryList.carInventory" filterBy="getMileage" manualInput="true" onSlide="true" onChange="true"
+ storeResults="true" trackStyleClass="track" width="400px" styleClass="slider-container" startRange="10000" endRange="60000"
+ increment="10000" rangeStyleClass="range" trailer="true" trailerStyleClass="trailer" handleStyleClass="handle"
+ handleValue="10000" id="dfsID">
+ </rich:dataFilterSlider>
-.list-row3 {
- background-color: #ececec;
-}
-
-.list-row1 {
- background-color: #f1f6fd;
-}
-
-.list-row2 {
- background-color: #fff;
-}
-
-.list-header {
- font: bold 11px tahoma, sans-serif;
- text-align: center;
-}
-
-.list-table1 {
- border: 1px solid #bed6f8;
-}
-
-.list-table2 {
- border: 1px solid #bed6f8;
-}
-</style>
-
-<f:subview id="dfsID">
-
- <a4j:form id="form1" reRender="list-body" ajaxSubmit="true"
- ignoreDupResponses="true" requestDelay="100">
- <a4j:region id="stat1">
- <a4j:outputPanel id="p1">
- <rich:dataFilterSlider sliderListener="#{dfs.doSlide}" rendered="#{dfs.rendered}"
- binding="#{inventoryList.dataFilterSlider}" for="carList"
- forValRef="inventoryList.carInventory" filterBy="getMileage"
- manualInput="true" onSlide="true" onChange="true"
- storeResults="true" trackStyleClass="track" width="400px"
- styleClass="slider-container" startRange="10000" endRange="60000"
- increment="10000" rangeStyleClass="range" trailer="true"
- trailerStyleClass="trailer" handleStyleClass="handle"
- handleValue="10000" id="slider_1">
- </rich:dataFilterSlider>
- </a4j:outputPanel>
-
-
-
- <a4j:outputPanel id="list-body" style="border: 1px">
+ <h:panelGrid id="list-body">
<h:dataTable id="carIndex" rows="10"
binding="#{inventoryList.carMakeIndexUIData}"
value="#{inventoryList.carMakeIndex}" var="category"
@@ -80,7 +27,6 @@
</a4j:commandLink>
</h:column>
-
</h:dataTable>
<h:dataTable id="carList" rows="10"
@@ -117,15 +63,8 @@
<h:outputText value="#{category.mileage}" />
</h:column>
</h:dataTable>
- </a4j:outputPanel>
- </a4j:region>
- <h:panelGrid columns="2">
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{dfs.rendered}" >
- <a4j:support event="onclick" reRender="p1"></a4j:support>
- </h:selectBooleanCheckbox>
- </h:panelGrid>
- </a4j:form>
+ </h:panelGrid>
+ <h:outputText value="click reRender for update page(RF-1365)" />
+ <h:commandButton value="reRender" />
</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,13 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataFilterSliderPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dfs.rendered}" >
+ <a4j:support event="onclick" reRender="p1"></a4j:support>
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,18 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataOrderedListSubviewID">
+ <rich:dataOrderedList id="doListID" value="#{dataOrderedList.arr}" var="arr" first="#{dataOrderedList.first}"
+ rendered="#{dataOrderedList.rendered}" title="#{dataOrderedList.title}" type="#{dataOrderedList.type}" dir="#{dataOrderedList.dir}"
+ rows="#{dataOrderedList.rows}">
+ <f:facet name="header">
+ <h:outputText value="Africa(header):" />
+ </f:facet>
+ <h:outputText value="#{arr.str0}" />
+ <f:facet name="footer">
+ <h:outputText value="Africa(footer);" />
+ </f:facet>
+ </rich:dataOrderedList>
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedListProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedListProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedListProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,46 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataOrderedListPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="title" />
+ <h:inputText value="#{dataOrderedList.title}" >
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{dataOrderedList.first}" >
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rows" />
+ <h:inputText value="#{dataOrderedList.rows}" >
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{dataOrderedList.dir}">
+ <f:selectItem itemValue="LTR" itemLabel="LTR"/>
+ <f:selectItem itemValue="RTL" itemLabel="RTL"/>
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="type" />
+ <h:selectOneMenu value="#{dataOrderedList.type}">
+ <f:selectItem itemValue="1" itemLabel="1"/>
+ <f:selectItem itemValue="A" itemLabel="A"/>
+ <f:selectItem itemValue="a" itemLabel="a"/>
+ <f:selectItem itemValue="I" itemLabel="I"/>
+ <f:selectItem itemValue="i" itemLabel="i"/>
+ <f:selectItem itemValue="disc" itemLabel="disc"/>
+ <f:selectItem itemValue="circle" itemLabel="circle"/>
+ <f:selectItem itemValue="square" itemLabel="square"/>
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{dataOrderedList.rendered}" onchange="submit();"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Deleted: trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,68 +0,0 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <f:subview id="dataScrollerID">
- <h:form dir="DSform">
-
- <h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
- var="dT" cellpadding="5px" rows="5" border="1">
- <f:facet name="header">
- <rich:datascroller fastControls="#{dataScroller.fastControls}"
- align="#{dataScroller.align}" rendered="#{dataScroller.render}"
- limitToList="#{dataScroller.limitToList}"
- renderIfSinglePage="#{dataScroller.renderIfSinglePage}"
- maxPages="#{dataScroller.maxPages}"
- scrollerListener="#{dataScroller.ScrollerListener}" />
- </f:facet>
- <h:column>
- <h:outputText value="#{dT.data0}" />
- </h:column>
- <h:column>
- <h:outputText value="#{dT.data1}" />
- </h:column>
-
- </h:dataTable>
- <h:commandButton action="#{dataScroller.CutArray}" value="CutArray" />
- <h:commandButton action="#{dataScroller.RestoreArray}"
- value="RestoreArray" />
-
- <h:panelGrid columns="2">
- <h:outputText value="maxPages" />
- <h:inputText value="#{dataScroller.maxPages}">
- <a4j:support event="onchange" reRender="dataScrollerID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{dataScroller.render}"
- onclick="submit();" />
-
- <h:outputText value="renderIfSinglePage:" />
- <h:selectBooleanCheckbox value="#{dataScroller.renderIfSinglePage}"
- onclick="submit();" />
-
- <h:outputText value="limitToList:" />
- <h:selectBooleanCheckbox value="#{dataScroller.limitToList}"
- onclick="submit();" />
-
- <h:outputText value="fastControls" />
- <h:selectOneRadio value="#{dataScroller.fastControls}">
- <f:selectItem itemLabel="auto" itemValue="auto" />
- <f:selectItem itemLabel="show" itemValue="show" />
- <f:selectItem itemLabel="hide" itemValue="hide" />
- <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="align" />
- <h:selectOneRadio value="#{dataScroller.align}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <f:selectItem itemLabel="center" itemValue="center" />
- <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
- </h:selectOneRadio>
-
- </h:panelGrid>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
- </f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScroller.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScroller.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScroller.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="DataScrollerSubviewID">
+ <h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
+ var="dT" cellpadding="5px" rows="5" border="1">
+ <f:facet name="header">
+ <rich:datascroller fastControls="#{dataScroller.fastControls}"
+ align="#{dataScroller.align}" rendered="#{dataScroller.render}"
+ limitToList="#{dataScroller.limitToList}"
+ renderIfSinglePage="#{dataScroller.renderIfSinglePage}"
+ maxPages="#{dataScroller.maxPages}"
+ scrollerListener="#{dataScroller.ScrollerListener}"
+ onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')"
+ onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"/>
+ </f:facet>
+ <h:column>
+ <h:outputText value="#{dT.data0}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{dT.data1}" />
+ </h:column>
+ </h:dataTable>
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,49 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="datascrollerPropertySubviewID">
+ <rich:simpleTogglePanel id="dTablePropertyID" switchType="client" opened="true"
+ label="datascroller property">
+
+ <h:commandButton action="#{dataScroller.CutArray}" value="CutArray" />
+ <h:commandButton action="#{dataScroller.RestoreArray}"
+ value="RestoreArray" />
+
+ <h:panelGrid columns="2">
+ <h:outputText value="maxPages" />
+ <h:inputText value="#{dataScroller.maxPages}">
+ <a4j:support event="onchange" reRender="dataScrollerID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.render}"
+ onclick="submit();" />
+
+ <h:outputText value="renderIfSinglePage:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.renderIfSinglePage}"
+ onclick="submit();" />
+
+ <h:outputText value="limitToList:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.limitToList}"
+ onclick="submit();" />
+
+ <h:outputText value="fastControls" />
+ <h:selectOneRadio value="#{dataScroller.fastControls}">
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <f:selectItem itemLabel="show" itemValue="show" />
+ <f:selectItem itemLabel="hide" itemValue="hide" />
+ <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="align" />
+ <h:selectOneRadio value="#{dataScroller.align}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,31 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="datascrollerStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true"
+ label="datascroller straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{dataScroller.bTest1}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1DataScroller}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{dataScroller.bTest2}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2DataScroller}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{dataScroller.bTest3}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3DataScroller}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{dataScroller.bTest4}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4DataScroller}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{dataScroller.bTest5}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5DataScroller}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Deleted: trunk/test-applications/jsp/src/main/webapp/DataTable/DT.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataTable/DT.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/DataTable/DT.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,106 +0,0 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
- <f:subview id="DataTableID">
- <h:form>
- <rich:dataTable id="dataTableID" var="dataTableID"
- value="#{dataTable.mounths}" rowKeyVar="key" styleClass="table"
- captionClass="caption" rowClasses="rowa,rowb,rowc rowcc"
- headerClass="header" footerClass="footer" cellpadding="" cellspacing=""
- onRowClick="alert('row #{key}')" rendered="#{dataTable.rendered}" align="#{dataTable.align}" bgcolor="red"
- border="#{dataTable.border}" columnsWidth="#{dataTable.columnsWidth}" width="#{dataTable.width}" title="DataTableTite">
- <f:facet name="caption">
- <h:outputText value="caption" />
- </f:facet>
- <f:facet name="header">
- <rich:columnGroup columnClasses="cola, colb ,rowc rowcc">
- <rich:column rowspan="2" rendered="#{dataTable.r2rendered}">
- <h:outputText value="2-row head" />
- </rich:column>
- <h:column rendered="#{dataTable.r2rendered}">
- <h:outputText value="head in UIColumn" />
- </h:column>
- <rich:column breakBefore="true">
- <h:outputText value="2-d row head" />
- </rich:column>
- </rich:columnGroup>
- </f:facet>
- <f:facet name="footer">
- <h:outputText value="table foot" />
- </f:facet>
- <rich:columnGroup>
- <rich:column id="mounth" styleClass="column" rowspan="2"
- headerClass="cheader" footerClass="cfooter">
- <f:facet name="header">
- <h:outputText value="mounth" />
- </f:facet>
- <f:facet name="footer">
- <h:outputText value="-//-" />
- </f:facet>
- <h:outputText value="#{dataTableID.mounth}" />
- </rich:column>
- <rich:column styleClass="column" headerClass="cheader"
- footerClass="cfooter" rendered="#{dataTable.r2rendered}">
- <f:facet name="header">
- <h:outputText value="mounth" />
- </f:facet>
- <f:facet name="footer">
- <h:outputText value="-//-" />
- </f:facet>
- <h:outputText value="#{dataTableID.town}" />
- </rich:column>
- </rich:columnGroup>
- <rich:column styleClass="column" headerClass="cheader"
- footerClass="cfooter" rendered="#{dataTable.r2rendered}">
- <h:outputText value="#{dataTableID.day}" />
- </rich:column>
- <rich:subTable id="detail" var="detail" value="#{dataTableID.detail}">
- <rich:column id="name">
- <h:outputText value="#{detail.name}" />
- </rich:column>
- <rich:column id="qty" rendered="#{dataTable.r2rendered}">
- <h:outputText value="#{detail.qty}" />
- </rich:column>
- </rich:subTable>
- <rich:column id="total" styleClass="total" colspan="2">
- <h:outputText value="#{dataTableID.total}" />
- </rich:column>
- </rich:dataTable>
-
- <h:panelGrid columns="2">
- <h:outputText value="Align:"></h:outputText>
- <h:selectOneMenu value="#{dataTable.align}">
- <f:selectItem itemLabel="center" itemValue="*center" />
- <f:selectItem itemLabel="left" itemValue="*left" />
- <f:selectItem itemLabel="right " itemValue="*right" />
- <a4j:support event="onclick" reRender="dataTableID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Border: "></h:outputText>
- <h:inputText value="#{dataTable.border}">
- <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Columns Width: "></h:outputText>
- <h:inputText value="#{dataTable.columnsWidth}">
- <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Width: "></h:outputText>
- <h:inputText value="#{dataTable.width}">
- <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="rendered:" />
- <h:selectBooleanCheckbox value="#{dataTable.rendered}"
- onclick="submit();" />
-
- <h:outputText value=" row 2 rendered" />
- <h:selectBooleanCheckbox value="#{dataTable.r2rendered}"
- onclick="submit();" />
- </h:panelGrid>
-
- </h:form>
- </f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/DataTable/DataTable.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataTable/DataTable.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DataTable/DataTable.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,76 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="DataTableSubviewID">
+ <rich:dataTable id="dataTableID" var="dataTableID" value="#{dataTable.mounths}" rowKeyVar="key" styleClass="table"
+ captionClass="caption" rowClasses="rowa,rowb,rowc rowcc" headerClass="header" footerClass="footer" onRowClick="print('onRowClickInputID', 'onRowClick work!');alert('row #{key}');" rendered="#{dataTable.rendered}" align="#{dataTable.align}" bgcolor="red"
+ border="#{dataTable.border}" columnsWidth="#{dataTable.columnsWidth}" width="#{dataTable.width}" title="DataTableTite"
+ onRowDblClick="print('onRowDblClickInputID', 'onRowDblClick work!')"
+ onRowMouseDown="print('onRowMouseDownInputID', 'onRowMouseDown work!')"
+ onRowMouseMove="print('onRowMouseMoveInputID', 'onRowMouseMove work!')"
+ onRowMouseOut="print('onRowMouseOutInputID', 'onRowMouseOut work!')"
+ onRowMouseOver="print('onRowMouseOverInputID', 'onRowMouseOver work!')"
+ onRowMouseUp="print('onRowMouseUpInputID', 'onRowMouseUp work!')">
+ <f:facet name="caption">
+ <h:outputText value="caption facet" />
+ </f:facet>
+ <f:facet name="header">
+ <rich:columnGroup columnClasses="cola, colb ,rowc rowcc">
+ <rich:column rowspan="2" rendered="#{dataTable.r2rendered}">
+ <h:outputText value="2-row head" />
+ </rich:column>
+ <h:column rendered="#{dataTable.r2rendered}">
+ <h:outputText value="head in UIColumn" />
+ </h:column>
+ <rich:column breakBefore="true">
+ <h:outputText value="2-d row head" />
+ </rich:column>
+ </rich:columnGroup>
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="table foot" />
+ </f:facet>
+ <rich:columnGroup>
+ <rich:column id="mounth" styleClass="column" rowspan="2" headerClass="cheader" footerClass="cfooter">
+ <f:facet name="header">
+ <h:outputText value="mounth" />
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="-//-" />
+ </f:facet>
+ <h:outputText value="#{dataTableID.mounth}" />
+ </rich:column>
+ <rich:column styleClass="column" headerClass="cheader" footerClass="cfooter" rendered="#{dataTable.r2rendered}">
+ <f:facet name="header">
+ <h:outputText value="mounth" />
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="-//-" />
+ </f:facet>
+ <h:outputText value="#{dataTableID.town}" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:column styleClass="column" headerClass="cheader" footerClass="cfooter" rendered="#{dataTable.r2rendered}">
+ <h:outputText value="#{dataTableID.day}" />
+ </rich:column>
+ <rich:subTable id="detail" var="detail" value="#{dataTableID.detail}">
+ <f:facet name="header">
+ <h:outputText value="facet(header)" />
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="facet(footer)" />
+ </f:facet>
+ <rich:column id="name">
+ <h:outputText value="#{detail.name}" />
+ </rich:column>
+ <rich:column id="qty" rendered="#{dataTable.r2rendered}">
+ <h:outputText value="#{detail.qty}" />
+ </rich:column>
+ </rich:subTable>
+ <rich:column id="total" styleClass="total" colspan="2">
+ <h:outputText value="#{dataTableID.total}" />
+ </rich:column>
+ </rich:dataTable>
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,39 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataTablePropertySubviewID">
+ <rich:simpleTogglePanel id="dtPropertyID" switchType="client" opened="true" label="dataTable property">
+ <h:panelGrid columns="2" style="top">
+ <h:outputText value="Align:"></h:outputText>
+ <h:selectOneMenu value="#{dataTable.align}">
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right " itemValue="right" />
+ <a4j:support event="onclick" reRender="dataTableID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Border: "></h:outputText>
+ <h:inputText value="#{dataTable.border}">
+ <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Columns Width: "></h:outputText>
+ <h:inputText value="#{dataTable.columnsWidth}">
+ <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{dataTable.width}">
+ <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rendered:" />
+ <h:selectBooleanCheckbox value="#{dataTable.rendered}" onclick="submit();" />
+
+ <h:outputText value=" row 2 rendered" />
+ <h:selectBooleanCheckbox value="#{dataTable.r2rendered}" onclick="submit();" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="StraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="dataTable straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{dataTable.bTest1}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1DataTable}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{dataTable.bTest2}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2DataTable}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{dataTable.bTest3}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3DataTable}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{dataTable.bTest4}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4DataTable}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{dataTable.bTest5}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5DataTable}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,24 +2,17 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<style type="text/css">
- .dropzoneDecoration {
- width: 70px; height: 70px; border: 2px dotted navy;
- }
-
- .accept {
- border: 3px dotted green;
- padding: 10px;
- }
- .reject {
- border: 3px dashed red;
- padding: 10px;
- }
- </style>
-
-<f:subview id="dndID">
- <h:form id="form">
+<f:subview id="dataDefinitionListSubviewID">
+
+ <a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+ </a4j:outputPanel>
+
+ <script>
+ DnD.CLIENT_VALIDATION_OFF = false;
+ </script>
+
<h:panelGroup id="dragValueText">
<h:outputText value="#{dndBean.dragValue}" />
</h:panelGroup>
@@ -29,7 +22,9 @@
<h:column>
<h:panelGrid styleClass="dropzoneDecoration" id="drag1">
<h:outputText value="#{type} - drag" />
- <rich:dragSupport dragType="#{type}" dragValue="#{type} - value" action="#{dndBean.dragAction}" dragListener="#{dndBean.processDrag}">
+ <rich:dragSupport dragType="#{type}" dragValue="#{type} - value" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')" action="#{dndBean.dragAction}" dragListener="#{dndBean.processDrag}">
</rich:dragSupport>
</h:panelGrid>
</h:column>
@@ -39,8 +34,11 @@
<h:column>
<h:panelGrid styleClass="dropzoneDecoration" id="drop2">
<h:outputText value="#{type} - drop" />
- <rich:dropSupport reRender="dragValueText" action="#{dndBean.dropAction}" acceptedTypes="#{type}" dropListener="#{dndBean.processDrop}"
- dropValue="#{type} - value">
+ <rich:dropSupport reRender="dragValueText" ondragenter="print('InputID', ' work!')" ondragexit="print('InputID', ' work!')"
+ ondrop="print('InputID', ' work!')" ondropend="print('InputID', ' work!')"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')"
+ action="#{dndBean.dropAction}" acceptedTypes="#{type}" dropListener="#{dndBean.processDrop}" dropValue="#{type} - value">
</rich:dropSupport>
</h:panelGrid>
</h:column>
@@ -82,10 +80,14 @@
<h:panelGrid styleClass="dropzoneDecoration" id="grid1">
<f:verbatim>Accepts file and folder... Customizes</f:verbatim>
<rich:dropSupport id="zone1"
- ondrop="var zone = $('form:grid1'); zone.style.borderColor= 'red'; setTimeout( function() { this.style.borderColor= 'navy'; }.bind(zone), 300);"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')" ondragenter="print('ondragenterInputID', 'ondragenter work!')"
+ ondragexit="print('ondragexitInputID', 'ondragexit work!')" ondropend="print('ondropendInputID', 'ondropend work!')"
+ ondrop="print('ondropInputID', 'ondrop work!')"
acceptedTypes="file, folder" typeMapping="{file: testDrop}">
<rich:dndParam name="testDrop">
- <h:graphicImage height="16" width="16" value="#{icon.iconFileManager}" />
+ <h:graphicImage height="16" width="16"
+ value="#{icon.iconFileManager}" />
</rich:dndParam>
</rich:dropSupport>
</h:panelGrid>
@@ -98,7 +100,11 @@
<h:panelGrid styleClass="dropzoneDecoration" id="grid3">
<f:verbatim>Accepts none... Customizes</f:verbatim>
- <rich:dropSupport typeMapping="{file: testDrop}">
+ <rich:dropSupport typeMapping="{file: testDrop}" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragenter="print('ondragenterInputID', 'ondragenter work!')"
+ ondragexit="print('ondragexitInputID', 'ondragexit work!')"
+ ondrop="print('ondropInputID', 'ondrop work!')" ondropend="print('ondropendInputID', 'ondropend work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
<rich:dndParam name="testDrop">
<h:graphicImage height="16" width="16" value="#{icon.iconFileManagerReject}" />
</rich:dndParam>
@@ -107,13 +113,19 @@
<h:panelGrid styleClass="dropzoneDecoration" id="grid4">
<f:verbatim>Accepts file and folder</f:verbatim>
- <rich:dropSupport acceptedTypes="file, folder">
+ <rich:dropSupport acceptedTypes="file, folder" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragenter="print('ondragenterInputID', 'ondragenter work!')"
+ ondragexit="print('ondragexitInputID', 'ondragexit work!')"
+ ondrop="print('ondropInputID', 'ondrop work!')" ondropend="print('ondropendInputID', 'ondropend work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
<rich:dndParam name="testDrop" value="testDropValue" />
</rich:dropSupport>
</h:panelGrid>
<h:panelGrid id="grid5">
- <rich:dragSupport dragType="file">
+ <rich:dragSupport dragType="file" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
<rich:dndParam name="label" value="Label" />
<rich:dndParam name="testDrag" value="testDragValue" />
</rich:dragSupport>
@@ -121,7 +133,9 @@
</h:panelGrid>
<h:panelGrid id="grid6">
- <rich:dragSupport dragType="file" dragIndicator="indicator">
+ <rich:dragSupport dragType="file" dragIndicator="indicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
<rich:dndParam name="label" value="Label" />
<rich:dndParam name="testDrag" value="testDragValue" />
</rich:dragSupport>
@@ -129,7 +143,9 @@
</h:panelGrid>
<h:panelGrid id="grid7">
- <rich:dragSupport dragType="folder" dragIndicator="indicator">
+ <rich:dragSupport dragType="folder" dragIndicator="indicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
<rich:dndParam name="label" value="Label" />
<rich:dndParam name="testDrag" value="testDragValue for Folder" />
</rich:dragSupport>
@@ -139,7 +155,9 @@
<h:outputText />
<h:panelGrid id="grid8">
- <rich:dragSupport dragType="folder">
+ <rich:dragSupport dragType="folder" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
<rich:dndParam name="label" value="Label" />
<rich:dndParam name="testDrag" value="testDragValue for Folder" />
</rich:dragSupport>
@@ -147,7 +165,9 @@
</h:panelGrid>
<h:panelGrid id="grid9">
- <rich:dragSupport dragType="file" dragIndicator="defaultIndicator">
+ <rich:dragSupport dragType="file" dragIndicator="defaultIndicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
<rich:dndParam name="testDrag" value="testDragValue" />
<rich:dndParam name="marker" value="testMarkerValue" />
<rich:dndParam name="label" value="testDragValue" />
@@ -156,7 +176,9 @@
</h:panelGrid>
<h:panelGrid id="grid10">
- <rich:dragSupport dragType="folder" dragIndicator="defaultIndicator">
+ <rich:dragSupport dragType="folder" dragIndicator="defaultIndicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
<rich:dndParam name="label" value="testDragValue for Folder" />
</rich:dragSupport>
<f:verbatim>Folder Draggable with defaultIndicator</f:verbatim>
@@ -165,7 +187,9 @@
</h:panelGrid>
<h:panelGrid id="renderedId">
- <rich:dragSupport dragType="file" dragIndicator="defaultIndicator">
+ <rich:dragSupport dragType="file" dragIndicator="defaultIndicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ onsubmit="print('onsubmitInputID', 'onsubmit work!')">
<rich:dndParam name="marker" value="testMarkerValue" />
<rich:dndParam name="label" value="testDragValue" />
</rich:dragSupport>
@@ -173,13 +197,4 @@
<h:graphicImage id="dragImage" value="/pics/masshtaby_01.jpg" width="200px" height="200px" />
<f:verbatim>dragSupport</f:verbatim>
</h:panelGrid>
-
- <a4j:status startText="...request..." stopText="stop" />
-
- <a4j:outputPanel ajaxRendered="true">
- <h:messages />
- </a4j:outputPanel>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
</f:subview>
-
Deleted: trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DDMenu.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DDMenu.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DDMenu.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,146 +0,0 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<f:subview id="ddMenuID">
-<h:form>
- <h:panelGrid columns="3">
- <h:panelGrid columns="2">
- <h:outputText value="HideDelay (ms):" />
- <h:inputText value="#{dDMenu.hideDelay}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
-
- <h:outputText value="ShowDelay (ms):" />
- <h:inputText value="#{dDMenu.showDelay}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
-
- <h:outputText value="PopupWidth (px):" />
- <h:inputText value="#{dDMenu.popupWidth}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
-
- <h:outputText value="horizontalOffset (px):" />
- <h:inputText value="#{dDMenu.horizontalOffset}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
-
- <h:outputText value="verticalOffset (px):" />
- <h:inputText value="#{dDMenu.verticalOffset}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
-
- <h:outputText value="Mode:" />
- <h:selectOneRadio value="#{dDMenu.mode}">
- <f:selectItem itemLabel="none" itemValue="none"/>
- <f:selectItem itemLabel="ajax" itemValue="ajax"/>
- <f:selectItem itemLabel="server" itemValue="server"/>
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
-
- <h:outputText value="Direction:" />
- <h:selectOneRadio value="#{dDMenu.direction}">
- <f:selectItem itemLabel="top-right" itemValue="top-right" />
- <f:selectItem itemLabel="top-left" itemValue="top-left" />
- <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
- <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
- <f:selectItem itemLabel="auto" itemValue="auto" />
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
-
- <h:outputText value="GroupDirection:" />
- <h:selectOneRadio value="#{dDMenu.groupDirection}">
- <f:selectItem itemLabel="top-up" itemValue="top-up" />
- <f:selectItem itemLabel="top-down" itemValue="top-down" />
- <f:selectItem itemLabel="bottom-up" itemValue="bottom-up" />
- <f:selectItem itemLabel="bottom-down" itemValue="bottom-down" />
- <f:selectItem itemLabel="auto" itemValue="auto" />
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
-
- <h:outputText value="JointPoint:" />
- <h:selectOneRadio value="#{dDMenu.jointPoint}">
- <f:selectItem itemLabel="top-right" itemValue="tr" />
- <f:selectItem itemLabel="top-left" itemValue="tl" />
- <f:selectItem itemLabel="bottom-right" itemValue="br" />
- <f:selectItem itemLabel="bottom-left" itemValue="bl" />
- <f:selectItem itemLabel="auto" itemValue="auto" />
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
-
- <h:outputText value="Menu appearance event:" />
- <h:selectOneRadio value="#{dDMenu.event}" onclick="submit()">
- <f:selectItem itemLabel="onclick" itemValue="onclick"/>
- <f:selectItem itemLabel="onmouseover" itemValue="onmouseover"/>
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
-
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{dDMenu.rendered}" onclick="submit()">
-
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Disable some items:" />
- <h:selectBooleanCheckbox value="#{dDMenu.disabled}">
- <a4j:support reRender="ddmId" event="onclick" />
- </h:selectBooleanCheckbox>
- <h:commandButton action="#{dDMenu.changeIcons}" value="ChangeIcons" />
- </h:panelGrid>
-
- <rich:spacer width="300px"></rich:spacer>
-
- <rich:panel style="width:200px; height:50px;" >
- <rich:dropDownMenu id="ddmId" value="DropDownMenu"
- hideDelay="#{dDMenu.hideDelay}" direction="#{dDMenu.direction}"
- horizontalOffset="#{dDMenu.horizontalOffset}"
- jointPoint="#{dDMenu.jointPoint}" popupWidth="#{dDMenu.popupWidth}"
- showDelay="#{dDMenu.showDelay}" rendered="#{dDMenu.rendered}" event="#{dDMenu.event}"
- verticalOffset="#{dDMenu.verticalOffset}" styleClass="panelpos">
- <rich:menuItem icon="#{dDMenu.icon}">
- <h:outputText value="Item1" />
- </rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem icon="#{dDMenu.icon}" onmousedown="alert('OnMouseDown')" selectClass="mousemove">
- <h:outputText value="OnMouseDown" />
- </rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem >
- <h:outputText value="Item2" />
- </rich:menuItem>
- <rich:menuItem icon="#{dDMenu.icon}">
- <h:outputText value="Item3" />
- </rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem icon="/pics/ajax_process.gif" iconDisabled="/pics/ajax_stoped.gif" disabled="#{dDMenu.disabled}">
- <h:outputText value="Image"></h:outputText>
- </rich:menuItem>
- <rich:menuItem disabled="#{dDMenu.disabled}" icon="#{dDMenu.icon}" >
- <h:outputText value="Image:" />
- <h:graphicImage value="/pics/ajax_process.gif" />
- </rich:menuItem>
- <rich:menuSeparator />
- <rich:menuGroup value="Second level"
- direction="#{dDMenu.groupDirection}" disabled="#{dDMenu.disabled}" icon="#{dDMenu.icon}" iconFolder="#{dDMenu.iconFolder}">
- <rich:menuItem icon="#{dDMenu.icon}">
- <h:outputText value="Item3" />
- </rich:menuItem>
- <rich:menuItem value="Item4">
- <h:selectOneMenu value="#{dDMenu.selectMenu}">
- <f:selectItem itemLabel="Honda Accord" itemValue="accord" />
- <f:selectItem itemLabel="Toyota 4Runner" itemValue="4runner" />
- <f:selectItem itemLabel="Nissan Z350" itemValue="nissan-z" />
- </h:selectOneMenu>
- </rich:menuItem>
- <rich:menuSeparator />
- <rich:menuItem icon="#{dDMenu.icon}">
- <h:outputText value="Checkbox " />
- <h:selectBooleanCheckbox value="#{dDMenu.check}" onclick="submit()" />
- </rich:menuItem>
- </rich:menuGroup>
- </rich:dropDownMenu>
- </rich:panel>
- </h:panelGrid>
-</h:form>
-</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,68 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="DropDownMenuSubviewID">
+ <h:panelGrid columns="2">
+ <rich:spacer width="400px" height="400px"></rich:spacer>
+ <rich:panel>
+ <rich:dropDownMenu id="ddmId" value="DropDownMenu" submitMode="#{dDMenu.mode}" hideDelay="#{dDMenu.hideDelay}"
+ direction="#{dDMenu.direction}" horizontalOffset="#{dDMenu.horizontalOffset}" jointPoint="#{dDMenu.jointPoint}"
+ popupWidth="#{dDMenu.popupWidth}" showDelay="#{dDMenu.showDelay}" rendered="#{dDMenu.rendered}"
+ verticalOffset="#{dDMenu.verticalOffset}" styleClass="panelpos" event="#{dDMenu.event}"
+ oncollapse="print('oncollapseInputID', 'oncollapse work!')" onexpand="print('onexpandInputID', 'onexpand work!')"
+ ongroupactivate="print('ongroupactivateInputID', 'ongroupactivate work!')"
+ onitemselect="print('onitemselectInputID', 'onitemselect work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')">
+ <rich:menuItem icon="#{dDMenu.icon}" onclick="print('onclickInputID', 'onclick work (item)!')"
+ oncomplete="print('oncompleteInputID', 'oncomplete work (item)!')" onmousedown="print('onmousedownInputID', 'onmousedown work (item)!')"
+ onmousemove="print('onmousemoveInputID', ' work (item)!')" onmouseout="print('onmouseoutInputID', 'onmouseout work (item)!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work (item)!')" onmouseup="print('onmouseupInputID', 'onmouseup work (item)!')"
+ onselect="print('onselectInputID', 'onselect work (item)!')">
+ <h:outputText value="Item1(test events)" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="#{dDMenu.icon}" onmousedown="alert('OnMouseDown')" selectClass="mousemove">
+ <h:outputText value="OnMouseDown" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem>
+ <h:outputText value="Item2" />
+ </rich:menuItem>
+ <rich:menuItem icon="#{dDMenu.icon}">
+ <h:outputText value="Item3" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/ajax_process.gif" iconDisabled="/pics/ajax_stoped.gif" disabled="#{dDMenu.disabled}">
+ <h:outputText value="Image"></h:outputText>
+ </rich:menuItem>
+ <rich:menuItem disabled="#{dDMenu.disabled}" icon="#{dDMenu.icon}">
+ <h:outputText value="Image:" />
+ <h:graphicImage value="/pics/ajax_process.gif" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuGroup value="Second level" direction="#{dDMenu.groupDirection}" disabled="#{dDMenu.disabled}" icon="#{dDMenu.icon}"
+ iconFolder="#{dDMenu.iconFolder}">
+ <rich:menuItem icon="#{dDMenu.icon}">
+ <h:outputText value="Item3" />
+ </rich:menuItem>
+ <rich:menuItem value="Item4">
+ <h:selectOneMenu value="#{dDMenu.selectMenu}">
+ <f:selectItem itemLabel="Honda Accord" itemValue="accord" />
+ <f:selectItem itemLabel="Toyota 4Runner" itemValue="4runner" />
+ <f:selectItem itemLabel="Nissan Z350" itemValue="nissan-z" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="#{dDMenu.icon}">
+ <h:outputText value="CheckBox " />
+ <h:selectBooleanCheckbox value="#{dDMenu.check}" onclick="submit()" />
+ </rich:menuItem>
+ </rich:menuGroup>
+ </rich:dropDownMenu>
+ </rich:panel>
+ </h:panelGrid>
+ <a4j:log></a4j:log>
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,91 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dropDownMenuPropertySubviewID">
+ <rich:simpleTogglePanel id="ddMenuPropertyID" switchType="client" opened="true" label="dropDownMenu property">
+ <h:panelGrid columns="2">
+ <h:outputText value="HideDelay (ms):" />
+ <h:inputText value="#{dDMenu.hideDelay}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="ShowDelay (ms):" />
+ <h:inputText value="#{dDMenu.showDelay}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="PopupWidth (px):" />
+ <h:inputText value="#{dDMenu.popupWidth}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="horizontalOffset (px):" />
+ <h:inputText value="#{dDMenu.horizontalOffset}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="verticalOffset (px):" />
+ <h:inputText value="#{dDMenu.verticalOffset}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="Mode:" />
+ <h:selectOneRadio value="#{dDMenu.mode}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Direction:" />
+ <h:selectOneRadio value="#{dDMenu.direction}">
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="GroupDirection:" />
+ <h:selectOneRadio value="#{dDMenu.groupDirection}">
+ <f:selectItem itemLabel="top-up" itemValue="top-up" />
+ <f:selectItem itemLabel="top-down" itemValue="top-down" />
+ <f:selectItem itemLabel="bottom-up" itemValue="bottom-up" />
+ <f:selectItem itemLabel="bottom-down" itemValue="bottom-down" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="JointPoint:" />
+ <h:selectOneRadio value="#{dDMenu.jointPoint}">
+ <f:selectItem itemLabel="top-right" itemValue="tr" />
+ <f:selectItem itemLabel="top-left" itemValue="tl" />
+ <f:selectItem itemLabel="bottom-right" itemValue="br" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bl" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Menu appearance event:" />
+ <h:selectOneRadio value="#{dDMenu.event}" onclick="submit()">
+ <f:selectItem itemLabel="onclick" itemValue="onclick" />
+ <f:selectItem itemLabel="onmouseover" itemValue="onmouseover" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dDMenu.rendered}" onclick="submit()">
+
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disable some items:" />
+ <h:selectBooleanCheckbox value="#{dDMenu.disabled}">
+ <a4j:support reRender="ddmId" event="onclick" />
+ </h:selectBooleanCheckbox>
+ <h:commandButton action="#{dDMenu.changeIcons}" value="ChangeIcons" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dropDownMenuStraightforwardSubviewID">
+ <rich:simpleTogglePanel id="ddMenuStraightforwardID" switchType="client" opened="true" label="dropDownMenu straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{dDMenu.bTest1}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1DDMenu}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{dDMenu.bTest2}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2DDMenu}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{dDMenu.bTest3}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3DDMenu}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{dDMenu.bTest4}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4DDMenu}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{dDMenu.bTest5}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5DDMenu}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -3,9 +3,8 @@
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <f:subview id="effectID">
- <h:messages />
- <h:form>
+<f:subview id="effectSubviewID">
+
<rich:panel id="indexID">
<a4j:commandLink value="Hide all" onclick="hideFrm1(),hideFrm2(),hideFrm3(),hideFrm4(),hideFrm5()"></a4j:commandLink>
@@ -294,7 +293,6 @@
<rich:effect for="frm5" name="hideFrm5" type="Fade" />
<rich:effect for="frm5" name="showFrm5" type="Appear" />
- </h:form>
- </f:subview>
+</f:subview>
Modified: trunk/test-applications/jsp/src/main/webapp/Gmap/Gmap.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Gmap/Gmap.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Gmap/Gmap.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,28 +2,30 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <f:subview id="gmapID">
- <h:form>
- <rich:gmap id="gm" lat="37.97" zoom="#{gmap.zoom}" gmapVar="map"
+
+<f:subview id="GmapSubviewID">
+ <rich:gmap id="gm" lat="37.97" zoom="#{gmap.zoom}" gmapVar="map" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
+ onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"
gmapKey="ABQIAAAAxU6W9QEhFLMNdc3ATIu-VxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxRkrpOGzxH8_ud3inE9pG1845-FCA"
style="width:500px;height:400px"
- enableContinuousZoom="#{gmap.continuousZoomAsString}"
- enableDoubleClickZoom="#{gmap.doubleClickZoomAsString}"
- enableDragging="#{gmap.draggingAsString}"
- />
+ enableContinuousZoom="#{gmap.continuousZoom}"
+ enableDoubleClickZoom="#{gmap.doubleClickZoom}"
+ enableDragging="#{gmap.dragging}" />
<h:panelGroup>
<f:verbatim>
- Controls:
- <br />
+ Controls:<br />
<a href="javascript:void(0);"
onclick="map.hideControls();return false;">Remove</a>
<a href="javascript:void(0);"
onclick="map.showControls();return false;">Show</a>
<br />
<br />
- Type:
- <br />
+ Type:<br />
<a href="javascript:void(0);"
onclick="map.setMapType(G_NORMAL_MAP);return false;">Normal</a>
<a href="javascript:void(0);"
@@ -32,8 +34,7 @@
onclick="map.setMapType(G_HYBRID_MAP);return false;">Hybrid</a>
<br />
<br />
- Zoom:
- <br />
+ Zoom:<br />
<a href="javascript:void(0);" onclick="map.zoomIn();return false;">In</a>
<a href="javascript:void(0);" onclick="map.zoomOut();return false;">Out</a>
<br />
@@ -47,57 +48,39 @@
</f:verbatim>
</h:panelGroup>
- <rich:panel>
- <h:panelGrid columns="2">
- <h:outputText value="Dragging:" />
- <h:selectBooleanCheckbox value="#{gmap.dragging}" />
-
- <h:outputText value="Continuous Zoom:" />
- <h:selectBooleanCheckbox value="#{gmap.continuousZoom}" />
-
- <h:outputText value="Double Click Zoom:" />
- <h:selectBooleanCheckbox value="#{gmap.doubleClickZoom}" />
-
- <h:commandLink value="submit" action="submit();"></h:commandLink>
- </h:panelGrid>
- </rich:panel>
-
<a4j:outputPanel>
<script>
- function createMarker(point,html) {
- var marker = new GMarker(point);
- GEvent.addListener(marker, "click", function() {
- marker.openInfoWindowHtml(html);
- });
- return marker;
- }
-
- function showExadelInMinsk() {
- var point = new GLatLng(53.92316,27.510737, 53.92316,27.510737);
- map.setCenter(point);
- var marker = createMarker(point,'Go to the <a target="_blank" href="http://www.exadel.com">Exadle Web Site</a>');
- map.setZoom(16);
- map.addOverlay(marker);
- }
-
- function showExadel() {
- var point = new GLatLng(37.9721046, -122.0424842834);
- map.setCenter(point);
- var marker = createMarker(point,'Go to the <a target="_blank" href="http://www.exadel.com">Exadle Web Site</a>');
- map.setZoom(16);
- map.addOverlay(marker);
- }
-
- function setCenter(lag, lat, zoom) {
- map.setCenter(new GLatLng(lag, lat), zoom);
- var ulp = new GPoint(lag,lat);
- var ul = G_NORMAL_MAP.getProjection().fromPixelToLatLng(ulp,zoom);
- }
- </script>
+
+ function createMarker(point,html) {
+ var marker = new GMarker(point);
+ GEvent.addListener(marker, "click", function() {
+ marker.openInfoWindowHtml(html);
+ });
+ return marker;
+ }
+
+ function showExadelInMinsk() {
+ var point = new GLatLng(53.92316,27.510737, 53.92316,27.510737);
+ map.setCenter(point);
+ var marker = createMarker(point,'Go to the <a target="_blank" href="http://www.exadel.com">Exadle Web Site</a>');
+ map.setZoom(16);
+ map.addOverlay(marker);
+ }
+
+ function showExadel() {
+ var point = new GLatLng(37.9721046, -122.0424842834);
+ map.setCenter(point);
+ var marker = createMarker(point,'Go to the <a target="_blank" href="http://www.exadel.com">Exadle Web Site</a>');
+ map.setZoom(16);
+ map.addOverlay(marker);
+ }
+
+ function setCenter(lag, lat, zoom) {
+ map.setCenter(new GLatLng(lag, lat), zoom);
+ var ulp = new GPoint(lag,lat);
+ var ul = G_NORMAL_MAP.getProjection().fromPixelToLatLng(ulp,zoom);
+ }
+ </script>
</a4j:outputPanel>
- </h:form>
- <h:form>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
- </f:subview>
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/Gmap/GmapProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Gmap/GmapProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Gmap/GmapProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,17 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="GmapPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="Dragging:" />
+ <h:selectBooleanCheckbox value="#{gmap.dragging}" onclick="submit()" />
+
+ <h:outputText value="Continuous Zoom:" />
+ <h:selectBooleanCheckbox value="#{gmap.continuousZoom}" onclick="submit()" />
+
+ <h:outputText value="Double Click Zoom:" />
+ <h:selectBooleanCheckbox value="#{gmap.doubleClickZoom}" onclick="submit()" />
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,111 +2,25 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<f:subview id="inputNumgerSliderID">
- <h:messages></h:messages>
- <h:form>
- <h:outputText value="Event:"></h:outputText>
- <rich:inputNumberSlider minValue="0" maxValue="100" width="300px"
- onmousedown="alert('OnMouseDown');"></rich:inputNumberSlider>
-
- <rich:spacer height="15px" width="300px"></rich:spacer>
- <rich:inputNumberSlider id="SliderId" disabled="#{inputNumberSlider.disabled}"
- enableManualInput="#{inputNumberSlider.enableManualInput}"
- inputSize="#{inputNumberSlider.inputSize}"
- maxValue="#{inputNumberSlider.maxValue}"
- minValue="#{inputNumberSlider.minValue}"
- rendered="#{inputNumberSlider.rendered}"
- showBoundaryValues="#{inputNumberSlider.showBoundaryValues}"
- step="#{inputNumberSlider.step}"
- showInput="#{inputNumberSlider.showInput}"
- width="#{inputNumberSlider.width}"
- barClass="#{inputNumberSlider.barStyle}"
- tipClass="#{inputNumberSlider.tipStyle}"
- inputClass="#{inputNumberSlider.inputStyle}"
- handleClass="#{inputNumberSlider.handleStyle}"
- styleClass="#{inputNumberSlider.tipStyle}"
- maxlength="#{inputNumberSlider.maxlength}"></rich:inputNumberSlider>
-<%--
-<style type="text/css">
- .input
- {
- border:3px;
- background-color: maroon;
- }
- </style>
---%>
-
-
- <rich:spacer height="20px"></rich:spacer>
-
- <h:panelGrid columns="2" cellspacing="10px" border="1">
-
- <h:outputText value="Width:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.width}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Max Value:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.maxValue}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Min Value:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.minValue}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Input Size:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.inputSize}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Input MaxLength:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.maxlength}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Step:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.step}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Disabled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.disabled}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.rendered}"
- onclick="submit()">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Manual Input:"></h:outputText>
- <h:selectBooleanCheckbox
- value="#{inputNumberSlider.enableManualInput}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Boundary Values:"></h:outputText>
- <h:selectBooleanCheckbox
- value="#{inputNumberSlider.showBoundaryValues}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Show Input:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.showInput}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Switch Styles" />
- <a4j:commandButton id="slBtn" value="#{inputNumberSlider.btnLabel}"
- action="#{inputNumberSlider.doStyles}" reRender="SliderId,slBtn">
- </a4j:commandButton>
-
+<f:subview id="inputNumberSliderSubviewID">
+ <h:panelGrid columns="1">
+ <rich:inputNumberSlider id="SliderId" immediate="#{inputNumberSlider.immediate}"
+ inputPosition="#{inputNumberSlider.inputPosition}" showToolTip="#{inputNumberSlider.showToolTip}"
+ tabindex="#{inputNumberSlider.tabindex}" value="#{inputNumberSlider.value}" valueChangeListener="#{inputNumberSlider.valueChangeListener}"
+ required="#{inputNumberSlider.rendered}" requiredMessage="#{inputNumberSlider.requiredMessage}"
+ disabled="#{inputNumberSlider.disabled}" enableManualInput="#{inputNumberSlider.enableManualInput}"
+ inputSize="#{inputNumberSlider.inputSize}" maxValue="#{inputNumberSlider.maxValue}" minValue="#{inputNumberSlider.minValue}"
+ rendered="#{inputNumberSlider.rendered}" showBoundaryValues="#{inputNumberSlider.showBoundaryValues}"
+ step="#{inputNumberSlider.step}" showInput="#{inputNumberSlider.showInput}" width="#{inputNumberSlider.width}"
+ barClass="#{inputNumberSlider.barStyle}" tipClass="#{inputNumberSlider.tipStyle}" inputClass="#{inputNumberSlider.inputStyle}"
+ handleClass="#{inputNumberSlider.handleStyle}" styleClass="#{inputNumberSlider.tipStyle}"
+ maxlength="#{inputNumberSlider.maxlength}" onmousedown="print('onmousedownInputID', 'onmousedown work!')" >
+ </rich:inputNumberSlider>
+ <h:panelGroup>
+ <a4j:commandButton value="valueChangeListener (show)" reRender="valueCLID" />
+ <h:outputText id="valueCLID" value=" #{inputNumberSlider.valueChangeListener}" />
+ </h:panelGroup>
</h:panelGrid>
-
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
-</f:subview>
-
+ <rich:spacer height="20px"></rich:spacer>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,106 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="inputNumberSliderPropertySubviewID">
+ <rich:simpleTogglePanel id="iNSliderPropertyID" switchType="client" opened="true" label="inputNumberSlider property">
+ <h:panelGrid columns="2" cellspacing="10px" border="1">
+ <h:outputText value="value" />
+ <h:inputText value="#{inputNumberSlider.value}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="inputPosition"></h:outputText>
+ <h:selectOneRadio value="#{inputNumberSlider.inputPosition}">
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Width:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.width}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Max Value:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.maxValue}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Min Value:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.minValue}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Input Size:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.inputSize}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Input MaxLength:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.maxlength}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Step:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.step}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="tabindex" />
+ <h:inputText value="#{inputNumberSlider.tabindex}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Disabled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.disabled}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.rendered}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Manual Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.enableManualInput}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Boundary Values:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showBoundaryValues}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Show Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showInput}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="showToolTip" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showToolTip}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="required" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.required}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage" />
+ <h:inputText value="#{inputNumberSlider.requiredMessage}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="immediate" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.immediate}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Switch Styles" />
+ <a4j:commandButton id="slBtn" value="#{inputNumberSlider.btnLabel}" action="#{inputNumberSlider.doStyles}"
+ reRender="SliderId,slBtn">
+ </a4j:commandButton>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="inputNumberSliderStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="inputNumberSlider straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest1}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1INSlider}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest2}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2INSlider}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest3}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3INSlider}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest4}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4INSlider}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest5}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5INSlider}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinner.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinner.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinner.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,77 +1,24 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
- <f:subview id="inputNumgerSpinnerID">
- <h:form>
- <h:messages></h:messages>
- <h:outputText value="Event:"></h:outputText>
- <rich:inputNumberSpinner minValue="0" maxValue="10" onchange="alert('mouse down');"></rich:inputNumberSpinner>
-
- <rich:spacer height="15px"></rich:spacer>
- <rich:inputNumberSpinner id="SpinnerID"
- cycled="#{inputNumberSpinner.cycled}"
- disabled="#{inputNumberSpinner.disabled}"
- maxValue="#{inputNumberSpinner.max}"
- minValue="#{inputNumberSpinner.min}"
- step="#{inputNumberSpinner.step}"
- rendered="#{inputNumberSpinner.rendered}"
- value="#{inputNumberSpinner.value}"
- inputClass="#{inputNumberSpinner.inputStyle}"
- styleClass="#{inputNumberSpinner.style}"
- enableManualInput="#{inputNumberSpinner.manualInput}"
- inputSize="#{inputNumberSpinner.inputSize}"></rich:inputNumberSpinner>
- <rich:spacer height="20px"></rich:spacer>
-
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <h:panelGrid columns="2" cellpadding="10px" border="1">
+<f:subview id="inputNumberSpinnerSubviewID">
+ <h:messages></h:messages>
- <h:outputText value="Max: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.max}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Min: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.min}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Step: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.step}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Size: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.inputSize}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Value: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.value}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Cycled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.cycled}">
- <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Manual Input:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.manualInput}">
- <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Disabled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.disabled}">
- <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.rendered}" onclick="submit()">
- </h:selectBooleanCheckbox>
- <h:outputText value="Switch Styles:" />
- <h:commandButton action="#{inputNumberSpinner.doStyles}" value="#{inputNumberSpinner.btnLabel}" />
- </h:panelGrid> <h:commandLink value="Back" action="main"></h:commandLink>
-</h:form>
- </f:subview>
-
+ <rich:inputNumberSpinner id="SpinnerID" tabindex="#{inputNumberSpinner.tabindex}" cycled="#{inputNumberSpinner.cycled}"
+ disabled="#{inputNumberSpinner.disabled}" maxValue="#{inputNumberSpinner.max}" minValue="#{inputNumberSpinner.min}"
+ step="#{inputNumberSpinner.step}" rendered="#{inputNumberSpinner.rendered}" value="#{inputNumberSpinner.value}"
+ inputClass="#{inputNumberSpinner.inputStyle}" styleClass="#{inputNumberSpinner.style}"
+ enableManualInput="#{inputNumberSpinner.manualInput}" inputSize="#{inputNumberSpinner.inputSize}"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onblur="print('onblurInputID', 'onblur work!')"
+ onchange="print('onchangeInputID', 'onchange work!')" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onerror="print('ondblclickInputID', 'ondblclick work!')"
+ onfocus="print('onfocusInputID', 'onfocus work!')" onselect="print('onselectInputID', 'onselect work!')"
+ onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
+ onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')" ondownclick="print('ondownclickInputID', 'ondownclick work!')"
+ onupclick="print('onupclickInputID', 'onupclick work!')"></rich:inputNumberSpinner>
+ <rich:spacer height="20px"></rich:spacer>
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,56 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="iNSpinnerPropertySubviewID">
+ <rich:simpleTogglePanel id="iNSpinnerPropertyID" switchType="client" opened="true" label="inputNumberSpinner property">
+ <h:panelGrid columns="2" cellpadding="10px" border="1">
+ <h:outputText value="Max: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.max}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Min: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.min}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Step: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.step}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Size: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.inputSize}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Value: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.value}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Cycled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.cycled}">
+ <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Manual Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.manualInput}">
+ <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disabled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.disabled}">
+ <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.rendered}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{inputNumberSpinner.doStyles}" value="#{inputNumberSpinner.btnLabel}" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="iNSpinnerStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="inputNumberSpinner straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest1}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1INSpinner}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest2}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2INSpinner}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest3}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3INSpinner}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest4}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4INSpinner}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest5}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5INSpinner}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Insert/Insert.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Insert/Insert.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Insert/Insert.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,48 +2,12 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <f:subview id="insertID">
- <h:form>
+
+<f:subview id="insertSubviewID">
<h:messages />
<rich:panel id="panelID" header="Highlight: #{insert.highlight}; File: #{insert.src}">
<rich:insert id="insertID" highlight="#{insert.highlight}"
rendered="#{insert.rendered}" src="#{insert.src}"></rich:insert>
</rich:panel>
-
- <h:panelGrid columns="2">
- <h:outputText value="Highlight:" />
- <h:selectOneMenu value="#{insert.highlight}">
- <f:selectItem itemValue="HTML" itemLabel="HTML" />
- <f:selectItem itemValue="GROOVY" itemLabel="GROOVY" />
- <f:selectItem itemValue="JAVA" itemLabel="JAVA" />
- <f:selectItem itemValue="BEANSHELL" itemLabel="BEANSHELL" />
- <f:selectItem itemValue="BSH" itemLabel="BSH" />
- <f:selectItem itemValue="XML" itemLabel="XML" />
- <f:selectItem itemValue="XHTML" itemLabel="XHTML" />
- <f:selectItem itemValue="LZX" itemLabel="LZX" />
- <f:selectItem itemValue="CPP" itemLabel="CPP" />
- <f:selectItem itemValue="CXX" itemLabel="CXX" />
- <a4j:support event="onclick" reRender="panelID,insertID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Select file:" />
- <h:selectOneMenu value="#{insert.src}">
- <f:selectItem itemValue="/Insert/src/test.html" itemLabel="HTML" />
- <f:selectItem itemValue="/Insert/src/test.java" itemLabel="JAVA" />
- <f:selectItem itemValue="/Insert/src/test.groovy" itemLabel="GROOVY" />
- <f:selectItem itemValue="/Insert/src/test.bsh" itemLabel="BEANSHELL,BSH" />
- <f:selectItem itemValue="/Insert/src/test.xml" itemLabel="XML" />
- <f:selectItem itemValue="/Insert/Insert.jsp" itemLabel="XHTML" />
- <f:selectItem itemValue="/Insert/src/test.lzx" itemLabel="LZX" />
- <f:selectItem itemValue="/Insert/src/test.cpp" itemLabel="CPP,CXX" />
- <a4j:support event="onclick" action="submit();" reRender="panelID,insertID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Rendered" />
- <h:selectBooleanCheckbox value="#{insert.rendered}" onchange="submit();"/>
- </h:panelGrid>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
- </f:subview>
-
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/Insert/InsertProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Insert/InsertProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Insert/InsertProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,39 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="InsertPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="Highlight:" />
+ <h:selectOneMenu value="#{insert.highlight}">
+ <f:selectItem itemValue="HTML" itemLabel="HTML" />
+ <f:selectItem itemValue="GROOVY" itemLabel="GROOVY" />
+ <f:selectItem itemValue="JAVA" itemLabel="JAVA" />
+ <f:selectItem itemValue="BEANSHELL" itemLabel="BEANSHELL" />
+ <f:selectItem itemValue="BSH" itemLabel="BSH" />
+ <f:selectItem itemValue="XML" itemLabel="XML" />
+ <f:selectItem itemValue="XHTML" itemLabel="XHTML" />
+ <f:selectItem itemValue="LZX" itemLabel="LZX" />
+ <f:selectItem itemValue="CPP" itemLabel="CPP" />
+ <f:selectItem itemValue="CXX" itemLabel="CXX" />
+ <a4j:support event="onclick" reRender="panelID,insertID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Select file:" />
+ <h:selectOneMenu value="#{insert.src}">
+ <f:selectItem itemValue="/Insert/src/test.html" itemLabel="HTML" />
+ <f:selectItem itemValue="/Insert/src/test.java" itemLabel="JAVA" />
+ <f:selectItem itemValue="/Insert/src/test.groovy" itemLabel="GROOVY" />
+ <f:selectItem itemValue="/Insert/src/test.bsh" itemLabel="BEANSHELL,BSH" />
+ <f:selectItem itemValue="/Insert/src/test.xml" itemLabel="XML" />
+ <f:selectItem itemValue="/Insert/Insert.xhtml" itemLabel="XHTML" />
+ <f:selectItem itemValue="/Insert/src/test.lzx" itemLabel="LZX" />
+ <f:selectItem itemValue="/Insert/src/test.cpp" itemLabel="CPP,CXX" />
+ <a4j:support event="onclick" reRender="panelID,insertID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Rendered" />
+ <h:selectBooleanCheckbox value="#{insert.rendered}" onchange="submit();"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,84 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="listShuttleSubviewID">
+ <rich:listShuttle id="listShuttleID" var="item" sourceValue="#{listShuttle.sourceValue}" targetValue="#{listShuttle.targetValue}"
+ bottomControlLabel="#{listShuttle.bottomControlLabel}" copyAllControlLabel="#{listShuttle.copyAllControlLabel}"
+ copyControlLabel="#{listShuttle.copyControlLabel}" downControlLabel="#{listShuttle.downControlLabel}"
+ fastMoveControlsVisible="#{listShuttle.fastMoveControlsVisible}" converter="listShuttleConverter"
+ fastOrderControlsVisible="#{listShuttle.fastOrderControlsVisible}" first="#{listShuttle.first}"
+ moveControlsVisible="#{listShuttle.moveControlsVisible}" orderControlsVisible="#{listShuttle.orderControlsVisible}"
+ removeAllControlLabel="#{listShuttle.removeAllControlLabel}" removeControlLabel="#{listShuttle.removeControlLabel}"
+ sourceSelection="#{listShuttle.sourceSelection}" targetSelection="#{listShuttle.targetSelection}"
+ showButtonLabels="#{listShuttle.showButtonLabels}" switchByClick="#{listShuttle.switchByClick}"
+ targetListWidth="#{listShuttle.targetListWidth}" sourceListWidth="#{listShuttle.sourceListWidth}"
+ listsHeight="#{listShuttle.listsHeight}" sourceCaptionLabel="#{listShuttle.sourceCaptionLabel}"
+ targetCaptionLabel="#{listShuttle.targetCaptionLabel}"
+ topControlLabel="#{listShuttle.topControlLabel}" upControlLabel="#{listShuttle.upControlLabel}">
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{item.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:commandButton onclick="submit();" action="#{listShuttle.cbAction}" value="#{item.str0} submit();"/>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <a4j:commandLink action="#{listShuttle.clAction}" value="#{item.str1} submit()" reRender="listShuttleID"></a4j:commandLink>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:selectOneMenu value="#{item.str2}">
+ <f:selectItem itemLabel="select0" itemValue="select0" />
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <f:selectItem itemLabel="select3" itemValue="select3" />
+ <f:selectItem itemLabel="select4" itemValue="select4" />
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:selectOneMenu>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{item.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:graphicImage value="#{item.str3}" />
+ </h:column>
+ </rich:listShuttle>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,110 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="listShuttlePropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:column></h:column>
+ <h:panelGroup>
+ <a4j:commandButton value="reRender" reRender="listShuttleID"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton action="submit();" value="submit();" />
+ <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+ </h:panelGroup>
+
+ <h:outputText value="Enter quantity of lines" />
+ <h:panelGroup>
+ <h:inputText value="#{listShuttle.lenght}" />
+ <a4j:commandButton action="#{listShuttle.addNewItem}" reRender="listShuttleID" value="ok" />
+ </h:panelGroup>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{listShuttle.first}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="showButtonLabels" />
+ <h:selectBooleanCheckbox value="#{listShuttle.showButtonLabels}" onchange="submit();" />
+
+ <h:outputText value="orderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.orderControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="moveControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.moveControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="fastOrderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.fastOrderControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="fastMoveControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.fastMoveControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="switchByClick" />
+ <h:selectBooleanCheckbox value="#{listShuttle.switchByClick}" onchange="submit();" />
+
+ <h:outputText value="sourceCaptionLabel" />
+ <h:inputText value="#{listShuttle.sourceCaptionLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="targetCaptionLabel" />
+ <h:inputText value="#{listShuttle.targetCaptionLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="sourceListWidth" />
+ <h:inputText value="#{listShuttle.sourceListWidth}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="targetListWidth" />
+ <h:inputText value="#{listShuttle.targetListWidth}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="listsHeight" />
+ <h:inputText value="#{listShuttle.listsHeight}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="copyControlLabel" />
+ <h:inputText value="#{listShuttle.copyControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="removeControlLabel" />
+ <h:inputText value="#{listShuttle.removeControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="copyAllControlLabel" />
+ <h:inputText value="#{listShuttle.copyAllControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="removeAllControlLabel" />
+ <h:inputText value="#{listShuttle.removeAllControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="bottomControlLabel" />
+ <h:inputText value="#{listShuttle.bottomControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="downControlLabel" />
+ <h:inputText value="#{listShuttle.downControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="topControlLabel" />
+ <h:inputText value="#{listShuttle.topControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="upControlLabel" />
+ <h:inputText value="#{listShuttle.upControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,148 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="listShuttleStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <a4j:commandButton value="Show selection (reRender)" reRender="infoLSID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showSelect}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="infoLSID" value="#{listShuttle.info}" var="info" rendered="#{listShuttle.showSelect}" border="1">
+ <h:column>
+ <h:outputText value="#{info}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all source (reRender)" reRender="allInfoLSSourceID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showAllSourceData}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoLSSourceID" value="#{listShuttle.sourceValue}" var="allInfo" rendered="#{listShuttle.showAllSourceData}" border="1">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} submit()" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all target (reRender)" reRender="allInfoLSTargetID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showAllTargetData}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoLSTargetID" value="#{listShuttle.targetValue}" var="allInfo" rendered="#{listShuttle.showAllTargetData}" border="1">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} submit()" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Message/Message.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Message/Message.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Message/Message.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,95 +2,8 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <f:subview id="messageID">
- <h:form>
- <rich:panel>
- <h:panelGrid columns="2">
- <h:outputText value="1." />
- <h:selectOneMenu id="select1" value="">
- <f:selectItem itemValue="error" itemLabel="error" />
- <f:selectItem itemValue="fatal" itemLabel="fatal" />
- <f:selectItem itemValue="warn" itemLabel="warning" />
- <f:selectItem itemValue="info" itemLabel="info" />
- <f:selectItem itemValue="passed" itemLabel="passed" />
- <f:validator validatorId="MessageValidator" />
- </h:selectOneMenu>
- <h:outputText value="2." />
- <h:selectOneMenu id="select2" value="">
- <f:selectItem itemValue="error" itemLabel="error" />
- <f:selectItem itemValue="fatal" itemLabel="fatal" />
- <f:selectItem itemValue="warn" itemLabel="warning" />
- <f:selectItem itemValue="info" itemLabel="info" />
- <f:selectItem itemValue="passed" itemLabel="passed" />
- <f:validator validatorId="MessageValidator" />
- </h:selectOneMenu>
-
- <h:outputText value="3." />
- <h:selectOneMenu id="select3" value="">
- <f:selectItem itemValue="error" itemLabel="error" />
- <f:selectItem itemValue="fatal" itemLabel="fatal" />
- <f:selectItem itemValue="warn" itemLabel="warning" />
- <f:selectItem itemValue="info" itemLabel="info" />
- <f:selectItem itemValue="passed" itemLabel="passed" />
- <f:validator validatorId="MessageValidator" />
- </h:selectOneMenu>
-
- <h:outputText value="4." />
- <h:selectOneMenu id="select4" value="">
- <f:selectItem itemValue="error" itemLabel="error" />
- <f:selectItem itemValue="fatal" itemLabel="fatal" />
- <f:selectItem itemValue="warn" itemLabel="warning" />
- <f:selectItem itemValue="info" itemLabel="info" />
- <f:selectItem itemValue="passed" itemLabel="passed" />
- <f:validator validatorId="MessageValidator" />
- </h:selectOneMenu>
-
- <h:outputText value="5." />
- <h:selectOneMenu id="select5" value="">
- <f:selectItem itemValue="error" itemLabel="error" />
- <f:selectItem itemValue="fatal" itemLabel="fatal" />
- <f:selectItem itemValue="warn" itemLabel="warning" />
- <f:selectItem itemValue="info" itemLabel="info" />
- <f:selectItem itemValue="passed" itemLabel="passed" />
- <f:validator validatorId="MessageValidator" />
- </h:selectOneMenu>
-
- <h:outputText value="Rich Message Demo:" />
- <h:selectOneMenu value="#{message.msg}">
- <f:selectItem itemValue="no" itemLabel="no" />
- <f:selectItem itemValue="select1" itemLabel="1" />
- <f:selectItem itemValue="select2" itemLabel="2" />
- <f:selectItem itemValue="select3" itemLabel="3" />
- <f:selectItem itemValue="select4" itemLabel="4" />
- <f:selectItem itemValue="select5" itemLabel="5" />
- </h:selectOneMenu>
-
- <h:outputText value="Title:" />
- <h:inputText value="#{message.title}" />
-
- <h:outputText value="Show Detail:" />
- <h:selectBooleanCheckbox value="#{message.showDetail}" />
-
- <h:outputText value="ShowSummary" />
- <h:selectBooleanCheckbox value="#{message.showSummary}" />
-
- <h:outputText value="Tooltip" />
- <h:selectBooleanCheckbox value="#{message.tooltip}" />
-
- <h:outputText value="Layout:" />
- <h:selectOneMenu value="#{message.layout}">
- <f:selectItem itemValue="table" itemLabel="table"/>
- <f:selectItem itemValue="list" itemLabel="list"/>
- </h:selectOneMenu>
-
- <h:commandButton value="submit" />
- <a4j:commandButton value="submit ajax" />
- </h:panelGrid>
- </rich:panel>
-
- <rich:spacer></rich:spacer>
-
+<f:subview id="messageSubviewID">
<rich:panel>
<h:outputText value="Rich Message Demo:" />
@@ -98,12 +11,9 @@
<br />
</f:verbatim>
- <rich:message for="#{message.msg}" tooltip="#{message.tooltip}"
- showDetail="#{message.showDetail}"
- showSummary="#{message.showSummary}" passedLabel="No Error"
- errorLabelClass="errorLabel" fatalLabelClass="warnLabel"
- infoLabelClass="infoLabel" warnLabelClass="fatalLabel"
- title="#{message.title}">
+ <rich:message for="#{message.msg}" tooltip="#{message.tooltip}" showDetail="#{message.showDetail}"
+ showSummary="#{message.showSummary}" passedLabel="No Error" errorLabelClass="errorLabel" fatalLabelClass="warnLabel"
+ infoLabelClass="infoLabel" warnLabelClass="fatalLabel" title="#{message.title}">
<f:facet name="errorMarker">
@@ -130,16 +40,11 @@
<rich:separator></rich:separator>
<h:outputText value="Rich Messages Demo" />
- <rich:messages layout="#{message.layout}" tooltip="#{message.tooltip}"
- showDetail="#{message.showDetail}"
- showSummary="#{message.showSummary}" passedLabel="No Error"
- errorLabelClass="errorLabel" fatalLabelClass="warnLabel"
- infoLabelClass="infoLabel" warnLabelClass="fatalLabel"
- warnMarkerClass="markerWarn" infoMarkerClass="markerInfo"
- errorMarkerClass="markerError" fatalMarkerClass="markerFatal"
- errorClass="errorClass" fatalClass="fatalClass"
- warnClass="warnClass" infoClass="infoClass" labelClass="labelClass"
- var="messages" styleClass="class" title="#{message.title}">
+ <rich:messages layout="#{message.layout}" tooltip="#{message.tooltip}" showDetail="#{message.showDetail}"
+ showSummary="#{message.showSummary}" passedLabel="No Error" errorLabelClass="errorLabel" fatalLabelClass="warnLabel"
+ infoLabelClass="infoLabel" warnLabelClass="fatalLabel" warnMarkerClass="markerWarn" infoMarkerClass="markerInfo"
+ errorMarkerClass="markerError" fatalMarkerClass="markerFatal" errorClass="errorClass" fatalClass="fatalClass"
+ warnClass="warnClass" infoClass="infoClass" labelClass="labelClass" styleClass="class" title="#{message.title}">
<f:facet name="errorMarker">
<h:graphicImage url="/pics/error.gif" />
</f:facet>
@@ -159,9 +64,4 @@
</h:outputText>
</rich:messages>
</rich:panel>
- </h:form>
- <h:form>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
- </f:subview>
-
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/Message/MessageProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Message/MessageProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Message/MessageProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,91 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="MessagePropertySubviewID">
+ <rich:simpleTogglePanel id="msgPropertyID" switchType="client" opened="true" label="modalPanel property">
+ <h:panelGrid columns="2">
+ <h:outputText value="1." />
+ <h:selectOneMenu id="select1" value="#{message.select1}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="2." />
+ <h:selectOneMenu id="select2" value="#{message.select2}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="3." />
+ <h:selectOneMenu id="select3" value="#{message.select3}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="4." />
+ <h:selectOneMenu id="select4" value="#{message.select4}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="5." />
+ <h:selectOneMenu id="select5" value="#{message.select5}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="Rich Message Demo:" />
+ <h:selectOneMenu value="#{message.msg}">
+ <f:selectItem itemValue="no" itemLabel="no" />
+ <f:selectItem itemValue="select1" itemLabel="1" />
+ <f:selectItem itemValue="select2" itemLabel="2" />
+ <f:selectItem itemValue="select3" itemLabel="3" />
+ <f:selectItem itemValue="select4" itemLabel="4" />
+ <f:selectItem itemValue="select5" itemLabel="5" />
+ </h:selectOneMenu>
+
+ <h:outputText value="Title:" />
+ <h:inputText value="#{message.title}" />
+
+ <h:outputText value="Show Detail:" />
+ <h:selectBooleanCheckbox value="#{message.showDetail}" />
+
+ <h:outputText value="ShowSummary" />
+ <h:selectBooleanCheckbox value="#{message.showSummary}" />
+
+ <h:outputText value="Tooltip" />
+ <h:selectBooleanCheckbox value="#{message.tooltip}" />
+
+ <h:outputText value="Layout:" />
+ <h:selectOneMenu value="#{message.layout}">
+ <f:selectItem itemValue="table" itemLabel="table" />
+ <f:selectItem itemValue="list" itemLabel="list" />
+ </h:selectOneMenu>
+
+ <h:commandButton value="submit" />
+ <a4j:commandButton value="submit ajax" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/Message/MessageStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Message/MessageStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Message/MessageStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="MessageStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="modalPanel straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{message.bTest1}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Message}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{message.bTest2}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Message}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{message.bTest3}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Message}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{message.bTest4}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Message}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{message.bTest5}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Message}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,72 +1,51 @@
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
-<f:subview id="modalPanel">
- <h:form id="MPform">
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <rich:modalPanel id="MPid"
- minHeight="#{modalPanel.minHeight}" minWidth="#{modalPanel.minWidth}"
- height="#{modalPanel.height}" width="#{modalPanel.width}"
- moveable="#{modalPanel.moveable}" resizeable="#{modalPanel.resizeable}">
+<f:subview id="modalPanelSubviewID">
+ <h:messages />
+ <rich:modalPanel id="modalPanelID" minHeight="#{modalPanel.minHeight}" minWidth="#{modalPanel.minWidth}"
+ height="#{modalPanel.height}" width="#{modalPanel.width}" moveable="#{modalPanel.moveable}"
+ resizeable="#{modalPanel.resizeable}" keepVisualState="#{modalPanel.keepVisualState}"
+ rendered="#{modalPanel.rendered}" zindex="#{modalPanel.zindex}" autosized="#{modalPanel.autosized}" left="#{modalPanel.left}"
+ top="#{modalPanel.top}" shadowDepth="#{modalPanel.shadowDepth}" shadowOpacity="#{modalPanel.shadowOpacity}"
+ showWhenRendered="#{modalPanel.showWhenRendered}" onhide="print('onhideInputID', 'onhide work!')"
+ onshow="print('onshowInputID', 'onshow work!')">
+ <f:facet name="header">
+ <h:outputText value="Heder goes here..." />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif" onclick="Richfaces.hideModalPanel('modalPanelID');return false;" />
+ </f:facet>
+ <h:outputText value="This is Modal Panel example" styleClass="text1" />
+ <h:inputText value="#{modalPanel.inputTextTest}" />
+ <h:selectOneListbox value="#{modalPanel.selectOneListboxTest}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="2" itemValue="2" />
+ <f:selectItem itemLabel="3" itemValue="3" />
+ </h:selectOneListbox>
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+ <h:outputLink onclick="Richfaces.hideModalPanel('modalPanelID');return false;" value="Close">
+ <f:verbatim>Close</f:verbatim>
+ </h:outputLink>
+ </rich:modalPanel>
- <f:facet name="header">
- <h:outputText value="Heder goes here..." />
- </f:facet>
- <h:outputText value="This is Modal Panel example" styleClass="text1" />
-
- <f:verbatim>
- <br/>
- <br/>
- </f:verbatim>
-
- <h:outputLink
- onclick="Richfaces.hideModalPanel('MPform:MPid');return false;"
- value="Close">
- <f:verbatim>Close</f:verbatim>
- </h:outputLink>
-
- </rich:modalPanel>
-
- <a onclick="Richfaces.showModalPanel('MPform:MPid');" href="#">Show MP</a>
-
- <rich:spacer height="20px"></rich:spacer>
-
- <h:panelGrid columns="2" >
-
- <h:outputText value="Width:" />
- <h:inputText value="#{modalPanel.width}">
- <a4j:support event="onchange" reRender="MPform:MPid"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height:" />
- <h:inputText value="#{modalPanel.height}">
- <a4j:support event="onchange" reRender="MPform:MPid"></a4j:support>
- </h:inputText>
-
- <h:outputText value="minWidth:" />
- <h:inputText value="#{modalPanel.minWidth}">
- <a4j:support event="onchange" reRender="MPform:MPid"></a4j:support>
- </h:inputText>
-
- <h:outputText value="minHeight:" />
- <h:inputText value="#{modalPanel.minHeight}">
- <a4j:support event="onchange" reRender="MPform:MPid"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Resizeable:" />
- <h:selectBooleanCheckbox value="#{modalPanel.resizeable}" >
- <a4j:support event="onclick" reRender="MPform:MPid"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Moveable:" />
- <h:selectBooleanCheckbox value="#{modalPanel.moveable}" >
- <a4j:support event="onclick" reRender="MPform:MPid"></a4j:support>
- </h:selectBooleanCheckbox>
-
- </h:panelGrid>
-
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
+ <a onclick="Richfaces.showModalPanel('modalPanelID');" href="#">Show MP</a>
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <h:graphicImage value="/pics/info.gif" onclick="Richfaces.showModalPanel('modalPanelID');" />
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+ <div style="position: relative; font-size: 50px; z-index: 2; color: navy">z-index</div>
+
</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,87 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="ModalPanelPropertySubviewID">
+ <rich:simpleTogglePanel id="mpPropertyID" switchType="client" opened="true" label="modalPanel property">
+ <h:panelGrid columns="2">
+ <h:outputText value="shadowDepth" />
+ <h:inputText value="#{modalPanel.shadowDepth}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="shadowOpacity" />
+ <h:inputText value="#{modalPanel.shadowOpacity}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="keepVisualState" />
+ <h:selectBooleanCheckbox value="#{modalPanel.keepVisualState}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="left" />
+ <h:inputText value="#{modalPanel.left}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="top" />
+ <h:inputText value="#{modalPanel.top}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{modalPanel.rendered}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="showWhenRendered" />
+ <h:selectBooleanCheckbox value="#{modalPanel.showWhenRendered}" >
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="zindex" />
+ <h:selectOneRadio value="#{modalPanel.zindex}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="3" itemValue="3" />
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Width:" />
+ <h:inputText value="#{modalPanel.width}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height:" />
+ <h:inputText value="#{modalPanel.height}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="minWidth:" />
+ <h:inputText value="#{modalPanel.minWidth}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="minHeight:" />
+ <h:inputText value="#{modalPanel.minHeight}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="autosized" />
+ <h:selectBooleanCheckbox value="#{modalPanel.autosized}" >
+
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Resizeable:" />
+ <h:selectBooleanCheckbox value="#{modalPanel.resizeable}" onchange="submit();">
+
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Moveable:" />
+ <h:selectBooleanCheckbox value="#{modalPanel.moveable}">
+ <a4j:support event="onclick" reRender="modalPanelID"></a4j:support>
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="ModalPanelStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="modalPanel straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{modalPanel.bTest1}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1ModalPanel}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{modalPanel.bTest2}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2ModalPanel}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{modalPanel.bTest3}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3ModalPanel}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{modalPanel.bTest4}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4ModalPanel}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{modalPanel.bTest5}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5ModalPanel}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,93 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="orderingListSubviewID">
+
+ <a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+ </a4j:outputPanel>
+
+ <rich:orderingList id="orderingListID" value="#{orderingList.list}" var="item" listHeight="#{orderingList.listHeight}"
+ listWidth="#{orderingList.listWidth}" controlsType="#{orderingList.controlsType}" converter="orderingListConverter"
+ bottomControlLabel="#{orderingList.bottomControlLabel}" captionLabel="#{orderingList.captionLabel}"
+ topControlLabel="#{orderingList.topControlLabel}" upControlLabel="#{orderingList.upControlLabel}"
+ controlsHorizontalAlign="#{orderingList.controlsHorizontalAlign}" controlsVerticalAlign="#{orderingList.controlsVerticalAlign}"
+ downControlLabel="#{orderingList.downControlLabel}"
+ orderControlsVisible="#{orderingList.orderControlsVisible}" fastOrderControlsVisible="#{orderingList.fastOrderControlsVisible}"
+ rendered="#{orderingList.rendered}" showButtonLabels="#{orderingList.showButtonLabels}" selection="#{orderingList.selection}"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onorderchanged="print('onorderchangedInputID', 'onorderchanged work!')" ontopclick="print('ontopclickInputID', 'ontopclick work!')" onupclick="print('onupclickInputID', 'onupclick work!')" ondownclick="print('ondownclickInputID', 'ondownclick work!')" onbottomclick="print('onbottomclickInputID', 'onbottomclick work!')" onheaderclick="print('onheaderclickInputID', 'onheaderclick work!')">
+ <f:facet name="header">
+ <h:outputText value="header" />
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="footer" />
+ </f:facet>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{item.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:commandButton onclick="submit();" action="#{orderingList.cbAction}" value="#{item.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <a4j:commandLink action="#{orderingList.clAction}" value="#{item.str1} submit()" reRender="orderingListID"></a4j:commandLink>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:selectOneMenu value="#{item.str2}" reRender="orderingListID">
+ <f:selectItem itemLabel="select0" itemValue="select0" />
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <f:selectItem itemLabel="select3" itemValue="select3" />
+ <f:selectItem itemLabel="select4" itemValue="select4" />
+ <a4j:support event="onclick" action="submit();"></a4j:support>
+ </h:selectOneMenu>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{item.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:graphicImage value="#{item.str3}" />
+ </h:column>
+ </rich:orderingList>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,90 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="orderingListPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="Enter quantity of lines" />
+ <h:panelGroup>
+ <h:inputText value="#{orderingList.lenght}" />
+ <a4j:commandButton action="#{orderingList.addNewItem}" reRender="orderingListID" value="ok" />
+ </h:panelGroup>
+
+ <h:outputText value="controlsType" />
+ <h:selectOneRadio value="#{orderingList.controlsType}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="button" itemValue="button" />
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="captionLabel" />
+ <h:inputText value="#{orderingList.captionLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="listHeight:" />
+ <h:inputText value="#{orderingList.listHeight}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="listWidth" />
+ <h:inputText value="#{orderingList.listWidth}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="controlsVerticalAlign" />
+ <h:selectOneRadio value="#{orderingList.controlsVerticalAlign}">
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="controlsHorizontalAlign" />
+ <h:selectOneRadio value="#{orderingList.controlsHorizontalAlign}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="upControlLabel" />
+ <h:inputText value="#{orderingList.upControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="bottomControlLabel" />
+ <h:inputText value="#{orderingList.bottomControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="topControlLabel" />
+ <h:inputText value="#{orderingList.topControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="downControlLabel" />
+ <h:inputText value="#{orderingList.downControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="showButtonLabels" />
+ <h:selectBooleanCheckbox value="#{orderingList.showButtonLabels}">
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="fastOrderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{orderingList.fastOrderControlsVisible}">
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="orderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{orderingList.orderControlsVisible}">
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{orderingList.rendered}" onclick="submit();">
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,113 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="orderingListStraightforwardSubviewID">
+
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{orderingList.bTest1}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1OrderingList}" />
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{orderingList.bTest2}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2OrderingList}" />
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{orderingList.bTest3}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3OrderingList}" />
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{orderingList.bTest4}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4OrderingList}" />
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{orderingList.bTest5}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5OrderingList}" />
+
+ <a4j:commandButton value="Show selection (reRender)" reRender="infoPanelID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{orderingList.showSelect}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="infoPanelID" value="#{orderingList.info}" var="info" rendered="#{orderingList.showSelect}" border="1">
+ <h:column>
+ <h:outputText value="#{info}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all data (reRender)" reRender="allInfoPanelID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{orderingList.showAllData}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoPanelID" value="#{orderingList.list}" var="allInfo" rendered="#{orderingList.showAllData}" border="1">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} submit()" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <h:panelGroup>
+ <a4j:commandButton value="reRender" reRender="orderingListID"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton action="submit();" value="submit();" />
+ <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+ </h:panelGroup>
+ </h:panelGrid>
+
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2D.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2D.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2D.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,92 +2,10 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<f:subview id="paint2D">
- <h:form>
- <rich:paint2D id="paint2d" paint="#{paint2D.paint}" data="#{paintData}" width="#{paint2D.width}" height="#{paint2D.height}" align="#{paint2D.align}"
- hspace="#{paint2D.hspace}" vspace="#{paint2D.vspace}" bgcolor="#{paint2D.bgcolor}" format="#{paint2D.format}" title="#{paint2D.title}"
- styleClass="#{paint2D.styleString}" border="#{paint2D.border}" rendered="#{paint2D.rendered}" />
-
- <h:panelGrid columns="2" cellpadding="5px" border="2">
- <h:outputText value="Text"></h:outputText>
- <h:inputText value="#{paintData.text}">
- <a4j:support event="onkeyup" reRender="paint2d" />
- </h:inputText>
-
- <h:outputText value="Width: "></h:outputText>
- <h:inputText value="#{paint2D.width}">
- <a4j:support event="onchange" reRender="paint2d"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height: "></h:outputText>
- <h:inputText value="#{paint2D.height}">
- <a4j:support event="onchange" reRender="paint2d"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Vertical space: "></h:outputText>
- <h:inputText value="#{paint2D.vspace}">
- <a4j:support event="onchange" reRender="paint2d"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Horizontal space: "></h:outputText>
- <h:inputText value="#{paint2D.hspace}">
- <a4j:support event="onchange" reRender="paint2d"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Align:"></h:outputText>
- <h:selectOneMenu value="#{paint2D.align}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="middle" itemValue="middle" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <f:selectItem itemLabel="bottom" itemValue="bottom" />
- <f:selectItem itemLabel="top" itemValue="top" />
- <a4j:support event="onclick" reRender="paint2d"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Format:"></h:outputText>
- <h:selectOneMenu value="#{paint2D.format}">
- <f:selectItem itemLabel="jpeg" itemValue="jpeg" />
- <f:selectItem itemLabel="gif" itemValue="gif" />
- <f:selectItem itemLabel="png" itemValue="png" />
- <a4j:support event="onclick" reRender="paint2d"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Background Colour"></h:outputText>
- <h:selectOneMenu value="#{paint2D.bgcolor}">
- <f:selectItem itemLabel="aqua" itemValue="aqua" />
- <f:selectItem itemLabel="blue" itemValue="blue" />
- <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
- <f:selectItem itemLabel="gray" itemValue="gray" />
- <f:selectItem itemLabel="lime" itemValue="lime" />
- <f:selectItem itemLabel="maroon" itemValue="maroon" />
- <f:selectItem itemLabel="purple" itemValue="purple" />
- <f:selectItem itemLabel="red" itemValue="red" />
- <f:selectItem itemLabel="silver" itemValue="silver" />
- <f:selectItem itemLabel="teal" itemValue="teal" />
- <f:selectItem itemLabel="yellow" itemValue="yellow" />
- <f:selectItem itemLabel="white" itemValue="white" />
- <a4j:support event="onclick" reRender="paint2d"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Style" />
- <h:selectBooleanCheckbox value="#{paint2D.style}" >
- <a4j:support event="onclick" reRender="paint2d,borderID" />
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Border: "></h:outputText>
- <h:inputText id="borderID" disabled="#{paint2D.style}" value="#{paint2D.border}">
- <a4j:support event="onchange" reRender="paint2d"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{paint2D.rendered}">
- <a4j:support event="onclick" reRender="paint2d"></a4j:support>
- </h:selectBooleanCheckbox>
- </h:panelGrid>
- <h:commandLink value="Back" action="main"></h:commandLink>
-
- </h:form>
-
+<f:subview id="paint2DSubviewID">
+ <rich:paint2D id="paint2dID" paint="#{paint2D.paint}" data="#{paintData}" width="#{paint2D.width}" height="#{paint2D.height}"
+ align="#{paint2D.align}" hspace="#{paint2D.hspace}" vspace="#{paint2D.vspace}" bgcolor="#{paint2D.bgcolor}"
+ format="#{paint2D.format}" title="#{paint2D.title}" styleClass="#{paint2D.styleString}" border="#{paint2D.border}"
+ rendered="#{paint2D.rendered}" />
</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,85 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="Paint2DPropertySubviewID">
+ <rich:simpleTogglePanel id="paint2DPropertyID" switchType="client" opened="true" label="paint2D property">
+ <h:panelGrid columns="2" cellpadding="5px" border="2">
+ <h:outputText value="Text"></h:outputText>
+ <h:inputText value="#{paintData.text}">
+ <a4j:support event="onchange" reRender="paint2dID" />
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{paint2D.width}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{paint2D.height}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Vertical space: "></h:outputText>
+ <h:inputText value="#{paint2D.vspace}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Horizontal space: "></h:outputText>
+ <h:inputText value="#{paint2D.hspace}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Align:"></h:outputText>
+ <h:selectOneMenu value="#{paint2D.align}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="middle" itemValue="middle" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <a4j:support event="onclick" reRender="paint2dID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Format:"></h:outputText>
+ <h:selectOneMenu value="#{paint2D.format}">
+ <f:selectItem itemLabel="jpeg" itemValue="jpeg" />
+ <f:selectItem itemLabel="gif" itemValue="gif" />
+ <f:selectItem itemLabel="png" itemValue="png" />
+ <a4j:support event="onclick" reRender="paint2dID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Background Colour"></h:outputText>
+ <h:selectOneMenu value="#{paint2D.bgcolor}">
+ <f:selectItem itemLabel="aqua" itemValue="aqua" />
+ <f:selectItem itemLabel="blue" itemValue="blue" />
+ <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
+ <f:selectItem itemLabel="gray" itemValue="gray" />
+ <f:selectItem itemLabel="lime" itemValue="lime" />
+ <f:selectItem itemLabel="maroon" itemValue="maroon" />
+ <f:selectItem itemLabel="purple" itemValue="purple" />
+ <f:selectItem itemLabel="red" itemValue="red" />
+ <f:selectItem itemLabel="silver" itemValue="silver" />
+ <f:selectItem itemLabel="teal" itemValue="teal" />
+ <f:selectItem itemLabel="yellow" itemValue="yellow" />
+ <f:selectItem itemLabel="white" itemValue="white" />
+ <a4j:support event="onclick" reRender="paint2dID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Style" />
+ <h:selectBooleanCheckbox value="#{paint2D.style}">
+ <a4j:support event="onclick" reRender="paint2dID,borderID" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Border: "></h:outputText>
+ <h:inputText id="borderID" disabled="#{paint2D.style}" value="#{paint2D.border}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{paint2D.rendered}">
+ <a4j:support event="onclick" reRender="paint2dID"></a4j:support>
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2DStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2DStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2DStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="Paint2DStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="paint2D straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{paint2D.bTest1}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Paint2D}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{paint2D.bTest2}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Paint2D}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{paint2D.bTest3}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Paint2D}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{paint2D.bTest4}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Paint2D}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{paint2D.bTest5}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Paint2D}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Panel/Panel.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Panel/Panel.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Panel/Panel.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,62 +1,48 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
- <f:subview id="panelID">
- <h:form>
- <h:messages></h:messages>
- <h:outputText value="Panel 1, rendered: #{!panel.rendered}; Panel 2, rendered #{panel.rendered};"></h:outputText>
-
- <rich:panel rendered="#{!panel.rendered}" id="p1" style="width:#{panel.width};height:#{panel.height};overflow:auto;">
- <f:facet name="header"><h:outputText id="t1" value="#{panel.title[0]} (Panel 1)" /></f:facet>
-
- <rich:panel>
- <f:facet name="header"><h:outputText id="t2" value="#{panel.title[1]}" /></f:facet>
- <h:panelGrid columns="2">
- <h:outputText id="o1" value="width #{panel.title[2]}, eg. 250px"></h:outputText>
- <h:inputText value="#{w}"><a4j:support event="onchange" reRender="p3"></a4j:support></h:inputText>
-
- <h:outputText id="o2" value="height #{panel.title[2]}, eg. 200px"></h:outputText>
- <h:inputText value="#{h}"><a4j:support event="onchange" reRender="p3"></a4j:support></h:inputText>
- </h:panelGrid>
-
- <rich:panel id="p3" style="width:#{w};height:#{h};overflow:auto;">
- <f:facet name="header"><h:outputText id="t3" value="#{panel.title[2]}" /></f:facet>
- <h:graphicImage value="/pics/asus.jpg" width="150" height="100"></h:graphicImage>
- </rich:panel>
- </rich:panel>
- </rich:panel>
-
- <rich:panel onmousedown="alert('OnMouseDown');" id="panelId" onclick="submit()"
- rendered="#{panel.rendered}"
- style="width:#{panel.width};height:#{panel.height}" >
- <f:verbatim>
- This is panel 2 example...
- </f:verbatim>
- </rich:panel>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <h:panelGrid columns="2" cellpadding="10px" >
- <h:outputText value="Title"></h:outputText>
- <h:inputText valueChangeListener="#{panel.makeTitle}">
- <a4j:support event="onchange" reRender="t1,t2,t3,o1,o2"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Width: "></h:outputText>
- <h:inputText value="#{panel.width}" >
- <a4j:support event="onchange" reRender="panelId,p1"></a4j:support>
- </h:inputText>
+<f:subview id="panelSubviewID">
- <h:outputText value="Height: "></h:outputText>
- <h:inputText value="#{panel.height}" >
- <a4j:support event="onchange" reRender="panelId,p1"></a4j:support>
- </h:inputText>
+ <h:outputText value="Panel 1, rendered: #{!panel.rendered}; Panel 2, rendered #{panel.rendered};"></h:outputText>
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{panel.rendered}" onclick="submit()"></h:selectBooleanCheckbox>
- </h:panelGrid>
- <h:commandLink value="Sample 2" action="Sample2"></h:commandLink>
- <br/>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
- </f:subview>
+ <rich:panel rendered="#{!panel.rendered}" id="p1" style="width:#{panel.width};height:#{panel.height};overflow:auto;"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')" onclick="print('onclickInputID', 'onclick work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+ <f:facet name="header">
+ <h:outputText id="t1" value="#{panel.title[0]} (Panel 1)" />
+ </f:facet>
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText id="t2" value="#{panel.title[1]}" />
+ </f:facet>
+ <h:panelGrid columns="2">
+ <h:outputText id="o1" value="width #{panel.title[2]}, eg. 250px"></h:outputText>
+ <h:inputText value="#{w}">
+ <a4j:support event="onchange" reRender="p3"></a4j:support>
+ </h:inputText>
+
+ <h:outputText id="o2" value="height #{panel.title[2]}, eg. 200px"></h:outputText>
+ <h:inputText value="#{h}">
+ <a4j:support event="onchange" reRender="p3"></a4j:support>
+ </h:inputText>
+ </h:panelGrid>
+
+ <rich:panel id="p3" style="width:#{w};height:#{h};overflow:auto;">
+ <f:facet name="header">
+ <h:outputText id="t3" value="#{panel.title[2]}" />
+ </f:facet>
+ <h:graphicImage value="/pics/asus.jpg" width="150" height="100"></h:graphicImage>
+ </rich:panel>
+ </rich:panel>
+ </rich:panel>
+
+ <rich:panel id="panelId" rendered="#{panel.rendered}"
+ style="width:#{panel.width};height:#{panel.height}"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')" onclick="print('onclickInputID', 'onclick work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+ <f:verbatim>This is panel 2 example...(Test events)</f:verbatim>
+
+ </rich:panel>
+</f:subview>
+
Modified: trunk/test-applications/jsp/src/main/webapp/Panel/Panel2.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Panel/Panel2.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Panel/Panel2.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,147 +2,94 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<style>
- .panel {
- vertical-align:top;
- }
- .rich-panel-header {
- color:#F00 !important;
-
- }
- .top {
- width:200px !important;height:100px !important;
- }
- .hea {
- color:#FCC !important;
- }
- .bo {
- color:#F00 !important;
- }
-
- .top2 {
- width:200px !important;height:100px !important;
- border:2px solid #4C9600 !important;
- background-color:#E4FFC8 !important;
- }
-
-
-.hea2 {
- background-image : url() !important;
- background-color : #4C9600 !important;
- height:18px !important;
- text-align:center !important;
- vertical-align:middle !important;
- color:#CFF !important;
- padding:4px 0 !important;
- }
-
- .bo2 {
- color:#4C9600;
- }
- .bo3 {
- height:100px;
- overflow:auto;
- }
-
-</style>
-<f:subview id="Panel2ID">
- <h:panelGrid columnClasses="panel" border="0" columns="3">
- <rich:panel styleClass="top">
- <f:facet name="header">
- <h:panelGroup>
- <h:outputText escape="false" value="dsdsdsdsd <br />sdsd" />
+<f:subview id="panel2SubviewID">
+ <h:panelGrid columnClasses="panel" border="0" columns="3">
+ <rich:panel styleClass="top">
+ <f:facet name="header">
+ <h:panelGroup>
+ <f:verbatim>dsdsdsdsd<br />sdsd </f:verbatim>
+ </h:panelGroup>
- </h:panelGroup>
- </f:facet>
- <h:outputText escape="false" value="This is <b>default</b> panel. content here" />
+ </f:facet>
- </rich:panel>
+ <f:verbatim>This is <b>default</b> panel. content here</f:verbatim>
+ </rich:panel>
+ <rich:panel styleClass="top" headerClass="hea" bodyClass="bo">
+ <f:facet name="header">
+ <h:outputText value="Header of the Panel" />
+ </f:facet>
+ <f:verbatim>This panel contains custom headerClass and bodyClass</f:verbatim>
+ </rich:panel>
+ <rich:panel styleClass="top2" headerClass="hea2" bodyClass="bo2">
+ <f:facet name="header">
+ <h:outputText value="Header of the Panel" />
+ </f:facet>
+ <f:verbatim> This panel also contains custom headerClass and bodyClass. The background is not a 3D anymore.</f:verbatim>
+ </rich:panel>
- <rich:panel styleClass="top" headerClass="hea" bodyClass="bo">
- <f:facet name="header">
- <h:outputText value="Header of the Panel" />
- </f:facet>
- <h:outputText value="This panel contains custom headerClass and bodyClass" />
+ <h:panelGroup>
+ <h:form>
+ <rich:panel
+ onmouseover="document.getElementById(this.id+'_header').style.background='#60BA01';document.getElementById(this.id+'_body').style.background='#F4FFF8'"
+ onmouseout="document.getElementById(this.id+'_header').style.background='#4C9600';document.getElementById(this.id+'_body').style.background='#E4FFC8'"
+ style="width:200px;" headerClass="hea2" bodyClass="bo3">
+ <f:facet name="header">
+ <h:outputText value="Header of the Panel" />
+ </f:facet>
+ <f:verbatim>Base on the previous layout, but form element and javascript behaviour are added</f:verbatim>
+ <br />
+ <h:inputText />
+ </rich:panel>
+ </h:form>
+ </h:panelGroup>
- </rich:panel>
+ <rich:panel style="width:200px;" headerClass="hea" bodyClass="bo3">
+ <f:facet name="header">
+ <h:outputText value="Scrolling Text Panel" />
+ </f:facet>
+ <f:verbatim>
+ Long Text Long Text Long Text
+ Long Text Long Text Long Text
+ Long Text Long Text Long Text
+ Long Text Long Text Long Text
+ Long Text Long Text Long Text
+ Long Text Long Text Long Text
+ Long Text Long Text Long Text
+ Long Text Long Text Long Text
+ Long Text Long Text Long Text
+ Long Text Long Text Long Text
+ Long Text Long Text Long Text
+ Long Text Long Text Long Text
+ Long Text Long Text Long Text
+ </f:verbatim>
+ </rich:panel>
- <rich:panel styleClass="top2" headerClass="hea2" bodyClass="bo2">
+ <rich:panel styleClass="top">
+ <f:verbatim>This is a panel without the header</f:verbatim>
+
+ </rich:panel>
+ </h:panelGrid>
+ <rich:panel style="position: absolute; top: 116px; right: 100px; "
+ styleClass="top">
<f:facet name="header">
<h:outputText value="Header of the Panel" />
</f:facet>
- <h:outputText value="This panel also contains custom headerClass and bodyClass. The background is not a 3D anymore." />
-
+ <f:verbatim>
+ This is a panel with absolute position on the screen.<br />
+ Resize the browser's window for fun.
+ </f:verbatim>
</rich:panel>
-
- <h:panelGroup>
- <h:form>
- <rich:panel
- onmouseover="document.getElementById(this.id+'_header').style.background='#60BA01';document.getElementById(this.id+'_body').style.background='#F4FFF8'"
- onmouseout="document.getElementById(this.id+'_header').style.background='#4C9600';document.getElementById(this.id+'_body').style.background='#E4FFC8'"
- style="width:200px;" headerClass="hea2" bodyClass="bo3">
- <f:facet name="header">
- <h:outputText value="Header of the Panel" />
- </f:facet>
- <h:outputText value="Base on the previous layout, but form element and javascript behaviour are added" />
- <f:verbatim>
- <br />
- </f:verbatim>
- <h:inputText />
- </rich:panel>
- </h:form>
- </h:panelGroup>
-
- <rich:panel style="width:200px;" headerClass="hea" bodyClass="bo3">
+ <rich:panel style="width:#{panel.width};height:#{panel.height}">
<f:facet name="header">
- <h:outputText value="Scrolling Text Panel" />
+ <f:verbatim>
+ Test<br />
+ Test<br />
+ Test<br />
+ </f:verbatim>
</f:facet>
- <f:verbatim>
- Long Text Long Text Long Text
- Long Text Long Text Long Text
- Long Text Long Text Long Text
- Long Text Long Text Long Text
- Long Text Long Text Long Text
- Long Text Long Text Long Text
- Long Text Long Text Long Text
- Long Text Long Text Long Text
- Long Text Long Text Long Text
- Long Text Long Text Long Text
- Long Text Long Text Long Text
- Long Text Long Text Long Text
- Long Text Long Text Long Text
- </f:verbatim>
+ <h:form>
+ <h:outputText value="inside the form" />
+ </h:form>
</rich:panel>
-
- <rich:panel styleClass="top">
- <h:outputText value="This is a panel without the header" />
-
- </rich:panel>
- </h:panelGrid>
-
- <rich:panel style="position: absolute; top: 116px; right: 100px; " styleClass="top">
- <f:facet name="header">
- <h:outputText value="Header of the Panel" />
- </f:facet>
- <h:outputText escape="false" value=" This is a panel with absolute position on the screen.<br />
- Resize the browser's window for fun." />
- </rich:panel>
-
- <rich:panel style="width:#{panel.width};height:#{panel.height}">
- <f:facet name="header">
- <f:verbatim>
- Test<br />
- Test<br />
- Test<br />
- </f:verbatim>
- </f:facet>
- <h:form>
- <h:outputText value="inside the form" />
- </h:form>
- </rich:panel>
- <h:form>
- <h:commandLink value="Back to Panel" action="BackP"></h:commandLink>
- </h:form>
</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/Panel/PanelProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Panel/PanelProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Panel/PanelProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="PanelPropertySubviewID">
+ <rich:simpleTogglePanel id="panelPropertyID" switchType="client" opened="true" label="panel property">
+ <h:panelGrid columns="2" cellpadding="10px">
+ <h:outputText value="Title"></h:outputText>
+ <h:inputText valueChangeListener="#{panel.makeTitle}">
+ <a4j:support event="onchange" reRender="t1,t2,t3,o1,o2"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{panel.width}">
+ <a4j:support event="onchange" reRender="panelId,p1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{panel.height}">
+ <a4j:support event="onchange" reRender="panelId,p1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panel.rendered}" onclick="submit()"></h:selectBooleanCheckbox>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/Panel/PanelStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Panel/PanelStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Panel/PanelStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="PanelStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="panel straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{panel.bTest1}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Panel}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{panel.bTest2}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Panel}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{panel.bTest3}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Panel}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{panel.bTest4}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Panel}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{panel.bTest5}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Panel}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBar.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBar.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBar.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,63 +2,36 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<f:subview id="panelBarID">
- <h:messages></h:messages>
- <h:form>
- <rich:panelBar id="pBId" height="#{panelBar.height}"
- width="#{panelBar.width}"
- contentClass="#{panelBar.contentStyle}"
- styleClass="#{panelBar.style}"
- selectedPanel="pBiId4">
- <rich:panelBarItem rendered="#{panelBar.rendered}" id="pBiId1" label="#{panelBar.label[0]}" headerClass="#{panelBar.headerStyle}">
+
+<f:subview id="panelBarSubviewID">
+
+ <h:messages></h:messages>
+
+ <rich:panelBar id="pBId" height="#{panelBar.height}" width="#{panelBar.width}" contentClass="#{panelBar.contentStyle}"
+ styleClass="#{panelBar.style}" selectedPanel="pBiId4" onclick="print('onclickInputID', 'onclick work!')">
+ <rich:panelBarItem rendered="#{panelBar.rendered}" id="pBiId1" label="#{panelBar.label[0]}"
+ headerClass="#{panelBar.headerStyle}">
<h:outputText value="Some text..."></h:outputText>
</rich:panelBarItem>
<rich:panelBarItem id="pBiId2" label="#{panelBar.label[1]}" headerClass="#{panelBar.headerStyle}">
- <h:graphicImage value="/pics/masshtaby_01.jpg" width="300"
- height="200"></h:graphicImage>
+ <h:graphicImage value="/pics/masshtaby_01.jpg" width="300" height="200"></h:graphicImage>
</rich:panelBarItem>
<rich:panelBarItem id="pBiId3" label="#{panelBar.label[2]}" headerClass="#{panelBar.headerStyle}">
- <f:facet name="openMarker"><h:graphicImage value="/pics/ajax_process.gif"></h:graphicImage> </f:facet>
- <f:facet name="closeMarker"><h:graphicImage value="/pics/ajax_stoped.gif"></h:graphicImage> </f:facet>
- <h:graphicImage value="/pics/podb109_61.jpg" width="300"
- height="200"></h:graphicImage>
+ <f:facet name="openMarker">
+ <h:graphicImage value="/pics/ajax_process.gif"></h:graphicImage>
+ </f:facet>
+ <f:facet name="closeMarker">
+ <h:graphicImage value="/pics/ajax_stoped.gif"></h:graphicImage>
+ </f:facet>
+ <h:graphicImage value="/pics/podb109_61.jpg" width="300" height="200"></h:graphicImage>
</rich:panelBarItem>
<rich:panelBarItem id="pBiId4" label="#{panelBar.label[3]}" headerClass="#{panelBar.headerStyle}">
<h:outputText value="Select Panel"></h:outputText>
</rich:panelBarItem>
-
</rich:panelBar>
<rich:spacer height="20px"></rich:spacer>
-
- <h:panelGrid columns="2" cellspacing="10px">
- <h:outputText value="Label: "></h:outputText>
- <h:inputText valueChangeListener="#{panelBar.makeLabels}">
- <a4j:support event="onchange" reRender="pBId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Width: "></h:outputText>
- <h:inputText value="#{panelBar.width}">
- <a4j:support event="onchange" reRender="pBId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height: "></h:outputText>
- <h:inputText value="#{panelBar.height}">
- <a4j:support event="onchange" reRender="pBId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{panelBar.rendered}">
- <a4j:support event="onchange" reRender="pBId"/>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Switch Styles:" />
- <h:commandButton action="#{panelBar.doStyles}" value="#{panelBar.btnLabel}" />
- </h:panelGrid>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,33 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="panelBarPropertySubviewID">
+ <rich:simpleTogglePanel id="pbPropertyID" switchType="client" opened="true" label="panelBar property">
+ <h:panelGrid columns="2" cellspacing="10px">
+ <h:outputText value="Label: "></h:outputText>
+ <h:inputText valueChangeListener="#{panelBar.makeLabels}">
+ <a4j:support event="onchange" reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{panelBar.width}">
+ <a4j:support event="onchange" reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{panelBar.height}">
+ <a4j:support event="onchange" reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelBar.rendered}">
+ <a4j:support event="onchange" reRender="pBId" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{panelBar.doStyles}" value="#{panelBar.btnLabel}" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="panelBarStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="panelBar straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{panelBar.bTest1}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t1PanelBar}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{panelBar.bTest2}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t2PanelBar}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{panelBar.bTest3}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t3PanelBar}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{panelBar.bTest4}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t4PanelBar}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{panelBar.bTest5}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t5PanelBar}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenu.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenu.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenu.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,31 +2,26 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<style>
- .sPanel
- {
- background: gray;
- }
- .body
- {
- background-color: pink;
- border: green 3px solid;
- background: gray;
- }
- </style>
-<f:subview id="panelMenuID">
- <h:form>
+<f:subview id="panelMenuSubviewID">
<rich:panelMenu id="panelMenuID" disabled="#{panelMenu.disabled}" width="#{panelMenu.width}" selectedChild="thisChild"
expandSingle="#{panelMenu.expandSingle}" mode="#{panelMenu.mode}" value="PanelMenu" rendered="#{panelMenu.rendered}"
iconCollapsedGroup="#{panelMenu.icon.collapsedGroup}" iconCollapsedTopGroup="#{panelMenu.icon.collapsedTopGroup}"
iconDisabledGroup="#{panelMenu.icon.disabledGroup}" iconDisabledItem="#{panelMenu.icon.disabledItem}"
- iconExpandedGroup="#{panelMenu.icon.expandedGroup}" iconExpandedTopGroup="#{panelMenu.icon.expandedTopGroup}" iconItem="#{panelMenu.icon.item}"
- iconTopDisabledItem="#{panelMenu.icon.disabledItem}" iconTopDisableGroup="#{panelMenu.icon.disabledGroup}" iconTopItem="#{panelMenu.icon.topItem}"
+ iconExpandedGroup="#{panelMenu.icon.expandedGroup}" iconExpandedTopGroup="#{panelMenu.icon.expandedTopGroup}"
+ iconItem="#{panelMenu.icon.item}" iconTopDisabledItem="#{panelMenu.icon.disabledItem}"
+ iconTopDisableGroup="#{panelMenu.icon.disabledGroup}" iconTopItem="#{panelMenu.icon.topItem}"
iconGroupPosition="#{panelMenu.iconGroupPosition}" iconGroupTopPosition="#{panelMenu.iconGroupTopPosition}"
- iconItemPosition="#{panelMenu.iconItemPosition}" iconItemTopPosition="#{panelMenu.iconItemTopPosition}" styleClass="sPanel">
+ iconItemPosition="#{panelMenu.iconItemPosition}" iconItemTopPosition="#{panelMenu.iconItemTopPosition}" styleClass="sPanel"
+ onclick="" ondblclick="" ongroupcollapse="" ongroupexpand="" onitemhover="" onkeydown="" onkeypress="" onkeyup=""
+ onmousedown="" onmousemove="" onmouseout="" onmouseover="" onmouseup="">
- <rich:panelMenuItem label="Item 1"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 1(Test event)" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')"></rich:panelMenuItem>
<rich:panelMenuItem disabled="true" iconDisabled="/pics/ajax_stoped.gif">
<h:outputText value="Disabled Item" />
</rich:panelMenuItem>
@@ -45,7 +40,7 @@
</rich:panelMenuItem>
<rich:panelMenuItem label="Action" onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
- <rich:panelMenuGroup label="Group 1 (align)" align="#{panelMenu.align}">
+ <rich:panelMenuGroup label="Group 1">
<rich:panelMenuItem label="Item 1" disabled="true"></rich:panelMenuItem>
<rich:panelMenuItem label="Item 1 (action)" onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
<rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
@@ -57,7 +52,7 @@
<rich:panelMenuItem label="Item 1_2"></rich:panelMenuItem>
- <rich:panelMenuGroup label="Group 1_1_1 (align)" align="#{panelMenu.align}">
+ <rich:panelMenuGroup label="Group 1_1_1">
<rich:panelMenuItem label="Item 1 (action)" onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
<rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
</rich:panelMenuGroup>
@@ -84,7 +79,7 @@
</rich:panelMenuGroup>
- <rich:panelMenuGroup label="Group 2">
+ <rich:panelMenuGroup label="Group 2 ">
<rich:panelMenuItem label="Item 2_1"></rich:panelMenuItem>
<rich:panelMenuGroup label="Group 2_2">
@@ -100,10 +95,10 @@
<rich:panelMenuItem label="Item 3_1">
<f:verbatim>
<br />
- text1 <br />
- text2 <br />
- text3
- </f:verbatim>
+ text <br />
+ text <br />
+ text
+ </f:verbatim>
</rich:panelMenuItem>
<rich:panelMenuItem label="Item 3_2">
<h:graphicImage value="/pics/benq.jpg" width="150px" height="100px"></h:graphicImage>
@@ -146,8 +141,8 @@
<rich:panelMenuItem label="Item "></rich:panelMenuItem>
</rich:panelMenuGroup>
- <rich:panelMenuGroup label="Group 1_3" align="#{panelMenu.align}" iconCollapsed="#{icon.iconCollapse}" iconExpanded="#{icon.iconExpand}"
- iconDisabled="#{icon.disabled}">
+ <rich:panelMenuGroup label="Group 1_3" align="#{panelMenu.align}" iconCollapsed="#{icon.iconCollapse}"
+ iconExpanded="#{icon.iconExpand}" iconDisabled="#{icon.disabled}">
<rich:panelMenuItem label="Item 1"></rich:panelMenuItem>
<rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
<rich:panelMenuItem label="Item 3"></rich:panelMenuItem>
@@ -175,292 +170,4 @@
</rich:panelMenuGroup>
</rich:panelMenuGroup>
</rich:panelMenu>
- <f:verbatim>
- <br />
- <br />
- </f:verbatim>
-
- <h:panelGrid columns="2">
-
- <h:outputText value="Width"></h:outputText>
- <h:inputText value="#{panelMenu.width}">
- <a4j:support event="onchange" reRender="panelMenuID,panelMenuID2,info"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Tab Index"></h:outputText>
- <h:inputText value="#{panelMenu.tabIndex}">
- <a4j:support event="onchange" reRender="panelMenuID,panelMenuID2,info"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Expand Single"></h:outputText>
- <h:selectBooleanCheckbox value="#{panelMenu.expandSingle}">
- <a4j:support event="onchange" reRender="panelMenuID"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Mode"></h:outputText>
- <h:selectOneRadio value="#{panelMenu.mode}" id="Mode1ID" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <f:selectItem itemLabel="server" itemValue="server" />
- </h:selectOneRadio>
-
- <h:outputText value="Expand mode"></h:outputText>
- <h:selectOneRadio value="#{panelMenu.expandMode}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <f:selectItem itemLabel="server" itemValue="server" />
- </h:selectOneRadio>
-
- <h:outputText value="Align:"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.align}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="middle" itemValue="middle" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <f:selectItem itemLabel="bottom" itemValue="bottom" />
- <f:selectItem itemLabel="top" itemValue="top" />
- <a4j:support event="onclick" reRender="panelMenuID,panelMenuID2,info"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Disabled"></h:outputText>
- <h:selectBooleanCheckbox value="#{panelMenu.disabled}">
- <a4j:support event="onchange" reRender="panelMenuID,panelMenuID2,info"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{panelMenu.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
- </h:panelGrid>
-
- <h:panelGrid columns="4">
- <h:outputText value="Icon"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.icon}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- </h:selectOneMenu>
-
- <h:outputText value="icon Item"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.item}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item " itemValue="#{icon.iconItem}" />
- </h:selectOneMenu>
-
- <h:outputText value="icon Disabled"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.disabled}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Disabled Item"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.disabledItem}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Top Item"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.topItem}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Top Disabled Item"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.topDisabledItem}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Expanded Group"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.expandedGroup}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon CollapsedGroup"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.collapsedGroup}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Disabled Group"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.disabledGroup}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Expanded Top Group"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.expandedTopGroup}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Collapsed Top Group"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.collapsedTopGroup}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Top Disable Group"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.topDisableGroup}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Expanded"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.expanded}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Collapsed"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.icon.collapsed}">
- <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
- <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
- <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
- <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
- <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
- <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
- <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
- <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
- <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
- </h:panelGrid>
- <br />
- <h:panelGrid columns="4">
- <h:outputText value="icon Group Position"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.iconGroupPosition}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Group Top Position"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.iconGroupTopPosition}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Item Position"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.iconItemPosition}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="icon Item Top Position"></h:outputText>
- <h:selectOneMenu value="#{panelMenu.iconItemTopPosition}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
- </h:selectOneMenu>
- </h:panelGrid>
-
- <f:verbatim>
- <br />
- </f:verbatim>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
-
</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,273 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="panelMenuPropertySubviewID">
+ <rich:simpleTogglePanel id="pmPropertyID" switchType="client" opened="true" label="panelMenu property">
+ <h:panelGrid columns="2">
+ <h:outputText value="Width"></h:outputText>
+ <h:inputText value="#{panelMenu.width}">
+ <a4j:support event="onchange" reRender="panelMenuID,panelMenuID2,info"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Tab Index"></h:outputText>
+ <h:inputText value="#{panelMenu.tabIndex}">
+ <a4j:support event="onchange" reRender="panelMenuID,panelMenuID2,info"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Expand Single"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelMenu.expandSingle}">
+ <a4j:support event="onchange" reRender="panelMenuID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Mode"></h:outputText>
+ <h:selectOneRadio value="#{panelMenu.mode}" id="Mode1ID" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Expand mode"></h:outputText>
+ <h:selectOneRadio value="#{panelMenu.expandMode}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Disabled"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelMenu.disabled}">
+ <a4j:support event="onchange" reRender="panelMenuID,panelMenuID2,info"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelMenu.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
+ </h:panelGrid>
+
+ <h:panelGrid columns="4">
+ <h:outputText value="Icon"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.icon}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Item"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.item}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item " itemValue="#{icon.iconItem}" />
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Disabled"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.disabled}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Disabled Item"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.disabledItem}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Top Item"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.topItem}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Top Disabled Item"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.topDisabledItem}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Expanded Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.expandedGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon CollapsedGroup"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.collapsedGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Disabled Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.disabledGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Expanded Top Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.expandedTopGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Collapsed Top Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.collapsedTopGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Top Disable Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.topDisableGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Expanded"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.expanded}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Collapsed"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.collapsed}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process" itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped" itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager" itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject" itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+ </h:panelGrid>
+ <br />
+ <h:panelGrid columns="4">
+ <h:outputText value="icon Group Position"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.iconGroupPosition}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Group Top Position"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.iconGroupTopPosition}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Item Position"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.iconItemPosition}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Item Top Position"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.iconItemTopPosition}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="panelMenuStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="panelMenu straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{panelMenu.bTest1}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t1PanelMenu}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{panelMenu.bTest2}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t2PanelMenu}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{panelMenu.bTest3}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t3PanelMenu}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{panelMenu.bTest4}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t4PanelMenu}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{panelMenu.bTest5}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t5PanelMenu}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Deleted: trunk/test-applications/jsp/src/main/webapp/RichTest/Rich.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/RichTest/Rich.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/RichTest/Rich.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,16 +0,0 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<f:view>
-<html>
-<head>
-<title></title>
-<link rel="stylesheet" href="<%=request.getContextPath()%>/styles/styles.css" type="text/css" />
-</head>
-<body>
- <jsp:include page="/pages/RichMenu/RichMenu.jsp" />
- <jsp:include page="${richBean.src}" />
-</body>
-</html>
-</f:view>
\ No newline at end of file
Deleted: trunk/test-applications/jsp/src/main/webapp/Sb.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Sb.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Sb.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,17 +0,0 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
-<html>
- <body>
- <f:view>
- <h:form>
- <h:inputText id="su"></h:inputText>
- <rich:suggestionbox width="200" height="200" for="su" suggestionAction="#{sb.autocomplete}" var="c">
- <h:column>
- <h:outputText value="#{c.text}"></h:outputText>
- </h:column>
- </rich:suggestionbox>
- </h:form>
- </f:view>
- </body>
-</html>
Deleted: trunk/test-applications/jsp/src/main/webapp/Sb.xhtml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Sb.xhtml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Sb.xhtml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,25 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:c="http://java.sun.com/jstl/core"
- xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
- xmlns:rich="http://richfaces.org/rich">
-
-
-
-
- <ui:define name="body">
- <h:form>
- <h:inputText id="su"></h:inputText>
- <rich:suggestionbox width="200" height="200" for="su" suggestionAction="#{sb.autocomplete}" var="c">
- <h:column>
- <h:outputText value="#{c.text}"></h:outputText>
- </h:column>
- </rich:suggestionbox>
- <a4j:log></a4j:log>
- </h:form>
- </ui:define>
-
-</html>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,44 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="scrollableDataTableSubviewID">
+ <rich:scrollableDataTable id="sdt" var="sdt" value="#{scrollableDT.data}" rows="#{scrollableDT.rows}" width="#{scrollableDT.width}"
+ hideWhenScrolling="#{scrollableDT.hideWhenScrolling}" reRender="inputID"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')" onselectionchange="print('onselectionchangeInputID', 'onselectionchange work!')">
+ <rich:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{sdt.data1}" />
+ </rich:column>
+
+ <rich:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Name" />
+ </f:facet>
+ <h:outputText value="#{sdt.data0}" />
+ </rich:column>
+
+ <rich:column width="100px" sortable="false">
+ <f:facet name="header">
+ <h:outputText value="Status" />
+ </f:facet>
+ <h:selectOneMenu value="#{sdt.data2}">
+ <f:selectItem itemLabel="error" itemValue="error"/>
+ <f:selectItem itemLabel="fatal" itemValue="fatal"/>
+ <f:selectItem itemLabel="info" itemValue="info"/>
+ <f:selectItem itemLabel="passed" itemValue="passed"/>
+ <f:selectItem itemLabel="warn" itemValue="warn"/>
+ </h:selectOneMenu>
+ </rich:column>
+
+ <rich:column width="30px" sortable="false">
+ <f:facet name="header">
+ <h:outputText value="Icon" />
+ </f:facet>
+ <h:graphicImage value="#{sdt.data3}" />
+ </rich:column>
+ </rich:scrollableDataTable>
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,18 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="scrollableDataTablePropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="rows" />
+ <h:inputText value="#{scrollableDT.rows}" />
+
+ <h:outputText value="width" />
+ <h:inputText value="#{scrollableDT.width}" />
+
+ <h:outputText value="hideWhenScrolling" />
+ <h:selectBooleanCheckbox value="#{scrollableDT.hideWhenScrolling}" />
+ </h:panelGrid>
+ <a4j:commandButton value="reRender" reRender="sdt"></a4j:commandButton>
+</f:subview>
\ No newline at end of file
Deleted: trunk/test-applications/jsp/src/main/webapp/Select/Map.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Select/Map.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Select/Map.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,22 +0,0 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<f:view>
-<html>
-<head>
-<title></title>
-<link rel="stylesheet" href="<%=request.getContextPath()%>/styles/styles.css" type="text/css" />
-</head>
-<body>
- <jsp:include page="/pages/RichMenu/RichMenu.jsp" />
-
- <div id="divID" style="position: absolute; top:60px; left: 10px; z-index: 1">
- <jsp:include page="SelectOneMenuPage.jsp" />
- </div>
- <div id="divPageID" style="position: absolute; top:110px; left: 10px;">
- <jsp:include page="${richBean.src}" />
- </div>
-</body>
-</html>
-</f:view>
\ No newline at end of file
Deleted: trunk/test-applications/jsp/src/main/webapp/Select/SelectOneMenuPage.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Select/SelectOneMenuPage.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Select/SelectOneMenuPage.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,176 +0,0 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
-
-<f:subview id="selectOneMenuPage">
- <h:panelGrid columns="7" cellpadding="20px" cellspacing="30px">
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
-
- <h:selectOneMenu value="selectItem" >
- <f:selectItem itemLabel="selectItem" itemValue="test" />
- </h:selectOneMenu>
- </h:panelGrid>
-</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Separator/Separator.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Separator/Separator.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Separator/Separator.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,65 +2,16 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<f:subview id="separatorID">
- <h:form>
- <h:messages></h:messages>
- <h:outputText value="Event:"></h:outputText>
- <rich:separator height="20px" width="300px" onmousedown="alert('mouse click')"></rich:separator>
-
- <h:outputText value="Some text one..." styleClass="text">
- </h:outputText>
- <rich:separator id="separatorId" rendered="#{separator.rendered}"
- width="#{separator.width}" height="#{separator.height}"
- title="#{separator.title}" lineType="#{separator.lineType}"
- align="#{separator.align}" styleClass="#{separator.style}"></rich:separator>
+<f:subview id="separatorSubviewID">
+ <h:outputText value="Some text one..." styleClass="text"></h:outputText>
+ <rich:separator id="separatorId" rendered="#{separator.rendered}" width="#{separator.width}" height="#{separator.height}"
+ title="#{separator.title}" lineType="#{separator.lineType}" align="#{separator.align}" styleClass="#{separator.style}"
+ onclick="print('onclickInputID', 'onclick work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
+ onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"></rich:separator>
<h:outputText value="Some text two..." styleClass="text"></h:outputText>
<rich:spacer height="20px"></rich:spacer>
- <h:panelGrid columns="2">
- <h:outputText value="Width (px or %): "></h:outputText>
- <h:inputText value="#{separator.width}">
- <a4j:support event="onchange" reRender="separatorId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height (px or %):"></h:outputText>
- <h:inputText value="#{separator.height}">
- <a4j:support event="onchange" reRender="separatorId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="LineType:"></h:outputText>
- <h:selectOneRadio value="#{separator.lineType}"
- layout="pageDirection">
- <f:selectItem itemLabel="beveled" itemValue="beveled" />
- <f:selectItem itemLabel="dotted" itemValue="dotted" />
- <f:selectItem itemLabel="dashed" itemValue="dashed" />
- <f:selectItem itemLabel="double" itemValue="double" />
- <f:selectItem itemLabel="solid" itemValue="solid" />
- <a4j:support event="onclick" reRender="separatorId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Align:"></h:outputText>
- <h:selectOneRadio value="#{separator.align}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="center" itemValue="center" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick" reRender="separatorId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Title:"></h:outputText>
- <h:inputText value="#{separator.title}">
- <a4j:support event="onchange" reRender="separatorId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{separator.rendered}"
- onclick="submit()"></h:selectBooleanCheckbox>
-
- <h:outputText value="Switch Styles:" />
- <h:commandButton action="#{separator.doStyles}" value="#{separator.btnLabel}" />
- </h:panelGrid>
- <h:commandLink value="Back" action="main"></h:commandLink>
-
- </h:form>
</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,49 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="SeparatorPropertySubviewID">
+ <rich:simpleTogglePanel id="separatorPropertyID" switchType="client" opened="true" label="separator property">
+ <h:panelGrid columns="2">
+ <h:outputText value="Width (px or %): "></h:outputText>
+ <h:inputText value="#{separator.width}">
+ <a4j:support event="onchange" reRender="separatorId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height (px or %):"></h:outputText>
+ <h:inputText value="#{separator.height}">
+ <a4j:support event="onchange" reRender="separatorId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="LineType:"></h:outputText>
+ <h:selectOneRadio value="#{separator.lineType}" layout="pageDirection">
+ <f:selectItem itemLabel="beveled" itemValue="beveled" />
+ <f:selectItem itemLabel="dotted" itemValue="dotted" />
+ <f:selectItem itemLabel="dashed" itemValue="dashed" />
+ <f:selectItem itemLabel="double" itemValue="double" />
+ <f:selectItem itemLabel="solid" itemValue="solid" />
+ <a4j:support event="onclick" reRender="separatorId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Align:"></h:outputText>
+ <h:selectOneRadio value="#{separator.align}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="separatorId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Title:"></h:outputText>
+ <h:inputText value="#{separator.title}">
+ <a4j:support event="onchange" reRender="separatorId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{separator.rendered}" onclick="submit()"></h:selectBooleanCheckbox>
+
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{separator.doStyles}" value="#{separator.btnLabel}" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="SeparatorStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="separator straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{separator.bTest1}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Separator}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{separator.bTest2}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Separator}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{separator.bTest3}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Separator}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{separator.bTest4}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Separator}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{separator.bTest5}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Separator}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,26 +2,16 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<style type="text/css">
- .head
- {
- background-color: aqua;
- }
- .body
- {
- background-color: pink;
- }
-
- </style>
-<f:subview id="simpleTogglePanelID">
- <h:messages></h:messages>
- <h:form>
- <rich:simpleTogglePanel id="sTP" bodyClass="body" headerClass="head"
- label="simpleTogglePanel with some text"
- width="#{simpleTogglePanel.width}"
- height="#{simpleTogglePanel.height}"
- switchType="#{simpleTogglePanel.switchType}" opened="false">
+<f:subview id="simpleTogglePanelSubviewID">
+ <rich:simpleTogglePanel id="sTP" bodyClass="body" headerClass="head" label="simpleTogglePanel with some text"
+ width="#{simpleTogglePanel.width}" height="#{simpleTogglePanel.height}" switchType="#{simpleTogglePanel.switchType}"
+ opened="false" onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')">
<f:facet name="closeMarker">
<h:outputText value="Close It" />
</f:facet>
@@ -38,18 +28,24 @@
</f:verbatim>
</rich:simpleTogglePanel>
- <rich:simpleTogglePanel id="sTP1" headerClass="head"
- label="simpleTogglePanel wiht image"
- width="#{simpleTogglePanel.width}"
- height="#{simpleTogglePanel.height}"
- rendered="#{simpleTogglePanel.rendered}"
- switchType="#{simpleTogglePanel.switchType}" opened="false">
+ <rich:simpleTogglePanel id="sTP1" headerClass="head" label="simpleTogglePanel wiht image" width="#{simpleTogglePanel.width}"
+ height="#{simpleTogglePanel.height}" rendered="#{simpleTogglePanel.rendered}" switchType="#{simpleTogglePanel.switchType}"
+ opened="false" onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')">
<h:graphicImage value="/pics/podb109_61.jpg" width="500" height="300"></h:graphicImage>
</rich:simpleTogglePanel>
- <rich:simpleTogglePanel id="sTP2" label="Focus simpleTogglePanle"
- width="#{simpleTogglePanel.width}" ignoreDupResponses="true"
- focus="#{simpleTogglePanel.focus}">
+ <rich:simpleTogglePanel id="sTP2" label="Focus simpleTogglePanle" width="#{simpleTogglePanel.width}" ignoreDupResponses="true"
+ focus="#{simpleTogglePanel.focus}" onclick="print('onclickInputID', 'onclick work!')"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
+ onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')">
<f:facet name="closeMarker">
<h:graphicImage value="/pics/ajax_stoped.gif"></h:graphicImage>
</f:facet>
@@ -72,34 +68,4 @@
</rich:simpleTogglePanel>
<rich:spacer height="20px"></rich:spacer>
-
- <h:panelGrid columns="2" border="1">
- <h:outputText value="Width:">
- </h:outputText>
- <h:inputText value="#{simpleTogglePanel.width}">
- <a4j:support event="onchange" reRender="sTP, sTP1"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height:">
- </h:outputText>
- <h:inputText value="#{simpleTogglePanel.height}">
- <a4j:support event="onchange" reRender="sTP, sTP1"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Switch Type:"></h:outputText>
- <h:selectOneRadio value="#{simpleTogglePanel.switchType}">
- <f:selectItem itemLabel="client" itemValue="client" />
- <f:selectItem itemLabel="server" itemValue="server" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <a4j:support event="onclick" reRender="sTP, sTP1, sTP2"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{simpleTogglePanel.rendered}"
- onclick="submit()">
- </h:selectBooleanCheckbox>
-
- </h:panelGrid>
- </h:form>
</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,34 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="stpPropertySubviewID">
+ <rich:simpleTogglePanel id="stpPropertyID" switchType="client" opened="true" label="spacer property">
+ <h:panelGrid columns="2" border="1">
+ <h:outputText value="Width:">
+ </h:outputText>
+ <h:inputText value="#{simpleTogglePanel.width}">
+ <a4j:support event="onchange" reRender="sTP,sTP1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height:">
+ </h:outputText>
+ <h:inputText value="#{simpleTogglePanel.height}">
+ <a4j:support event="onchange" reRender="sTP,sTP1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Switch Type:"></h:outputText>
+ <h:selectOneRadio value="#{simpleTogglePanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick" reRender="sTP,sTP1,sTP2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{simpleTogglePanel.rendered}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="stpStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="spacer straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest1}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1SimpleTP}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest2}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2SimpleTP}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest3}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3SimpleTP}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest4}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4SimpleTP}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest5}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5SimpleTP}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Spacer/Spacer.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Spacer/Spacer.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Spacer/Spacer.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,57 +2,25 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<style type="text/css">
-.text
-{
-font-size:20px;
+
+<f:subview id="spacerSubviewID">
+ <style type="text/css">
+.text {
+ font-size: 20px;
}
-.spacer
-{
-background-color: aqua;
+
+.spacer {
+ background-color: aqua;
}
</style>
-<f:subview id="spacerID">
-
- <h:messages></h:messages>
- <h:form>
- <h:outputText value="Event:"></h:outputText>
- <rich:spacer id="spacerIdEven" rendered="#{spacer.rendered}" style="border: 3px solid red; background: blue;" styleClass="#{spacer.style}"
- width="#{spacer.width}" height="#{spacer.height}" onmousedown="alert('onmousedown')" title="title"></rich:spacer>
-
- <f:verbatim>
- <br />
- </f:verbatim>
-
<h:outputText value="Some text one..." styleClass="text"></h:outputText>
- <rich:spacer id="spacerId" width="#{spacer.width}" height="#{spacer.height}" rendered="#{spacer.rendered}" styleClass="#{spacer.style}">
+ <rich:spacer id="spacerId" width="#{spacer.width}" height="#{spacer.height}" rendered="#{spacer.rendered}"
+ styleClass="#{spacer.style}" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')">
</rich:spacer>
<h:outputText value="Some text two..." styleClass="text"></h:outputText>
-
- <h:panelGrid columns="2">
- <h:outputText value="Width (px or %):"></h:outputText>
- <h:inputText value="#{spacer.width}">
- <a4j:support event="onchange" reRender="spacerId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height (px or %):"></h:outputText>
- <h:inputText value="#{spacer.height}">
- <a4j:support event="onchange" reRender="spacerId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{spacer.rendered}" onclick="submit()">
- </h:selectBooleanCheckbox>
-
- </h:panelGrid>
- <a4j:commandButton id="btn" action="#{spacer.doStyle}" value="#{spacer.btn}" reRender="spacerId, btn"></a4j:commandButton>
-
- <f:verbatim>
- <br />
- </f:verbatim>
-
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
</f:subview>
-
-
Added: trunk/test-applications/jsp/src/main/webapp/Spacer/SpacerProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Spacer/SpacerProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Spacer/SpacerProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,27 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="spacerPropertySubviewID">
+ <rich:simpleTogglePanel id="spacerPropertyID" switchType="client" opened="true" label="spacer property">
+ <h:panelGrid columns="2">
+ <h:outputText value="Width (px or %):"></h:outputText>
+ <h:inputText value="#{spacer.width}">
+ <a4j:support event="onchange" reRender="spacerId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height (px or %):"></h:outputText>
+ <h:inputText value="#{spacer.height}">
+ <a4j:support event="onchange" reRender="spacerId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{spacer.rendered}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Style" />
+ <a4j:commandButton id="btn" action="#{spacer.doStyle}" value="#{spacer.btn}" reRender="spacerId, btn"></a4j:commandButton>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="spacerStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="spacer straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{spacer.bTest1}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Spacer}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{spacer.bTest2}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Spacer}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{spacer.bTest3}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Spacer}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{spacer.bTest4}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Spacer}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{spacer.bTest5}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Spacer}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,127 +1,36 @@
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
-<f:subview id="suggestionBoxID">
- <h:form id="suggestionbox_form">
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <f:verbatim>Suggestion Box will suggest you Town's names if it's started with the "a" or
- "A" letter</f:verbatim>
- <f:verbatim>
- <br />
+<f:subview id="suggestionBoxSubviewID">
+ <h:messages showDetail="true"/>
+ <f:verbatim>Suggestion Box will suggest you Town's names if it's started with the "a" or "A" letter
+ <br />
</f:verbatim>
- <h:inputText id="text" />
- <rich:suggestionbox id="suggestionBoxId" for="text"
- zindex="#{sb.zindex}" rules="#{sb.rules}"
- suggestionAction="#{sb.autocomplete}" var="result"
+ <h:inputText value="#{sb.property}" id="text" />
+ <rich:suggestionbox id="suggestionBoxId" for="text" var="result"
+ suggestionAction="#{sb.autocomplete}"
width="#{sb.width}" height="#{sb.height}" border="#{sb.border}"
+ zindex="#{sb.zindex}" rules="#{sb.rules}" styleClass="styleClass"
cellpadding="#{sb.cellpadding}" cellspacing="#{sb.cellspacing}"
- first="#{sb.first}" minChars="#{sb.minchars}" tokens=", ]"
+ first="#{sb.first}" minChars="1" tokens=", ]"
bgcolor="#{sb.bgColor}" focus="#{sb.forcus}" title="#{result.text}"
summary="summary" shadowOpacity="#{sb.shadowOpacity}"
- shadowDepth="#{sb.shadowDepth}" selectValueClass="mousemove" rendered="#{sb.reRender}">
+ shadowDepth="#{sb.shadowDepth}" selectValueClass="mousemove" frequency="#{sb.frequency}"
+ nothingLabel="nothingLabel work! " oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ onselect="print('onselectInputID', 'onselect work!')" >
<h:column>
- <h:outputText value="#{result.text}" />
+ <h:outputText value="#{result.city}" />
</h:column>
+ <h:column>
+ <h:outputText value="#{result.contry}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{result.flag}" />
+ </h:column>
+
</rich:suggestionbox>
- <f:verbatim>
- <div style="position:relative; font-size:50px; z-index:2; color: navy">z-index</div>
- </f:verbatim>
-
- <f:verbatim>
- <br />
- <br />
- </f:verbatim>
- <h:panelGrid columns="2" cellpadding="5px">
-
- <h:outputText value="z-index (1 or 3)"></h:outputText>
- <h:selectOneRadio value="#{sb.zindex}">
- <f:selectItem itemLabel="1" itemValue="1" />
- <f:selectItem itemLabel="3" itemValue="3" />
- <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
- </h:selectOneRadio>
-
-
- <f:verbatim>Border</f:verbatim>
- <h:inputText value="#{sb.border}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>Width</f:verbatim>
- <h:inputText value="#{sb.width}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>Height</f:verbatim>
- <h:inputText value="#{sb.height}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>Cellpadding</f:verbatim>
- <h:inputText value="#{sb.cellpadding}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>Cellspacing</f:verbatim>
- <h:inputText value="#{sb.cellspacing}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>First</f:verbatim>
- <h:inputText value="#{sb.first}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>MinChars</f:verbatim>
- <h:inputText value="#{sb.minchars}">
- <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Background Colour"></h:outputText>
- <h:selectOneMenu value="#{sb.bgColor}">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="aqua" itemValue="aqua" />
- <f:selectItem itemLabel="blue" itemValue="blue" />
- <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
- <f:selectItem itemLabel="gray" itemValue="gray" />
- <f:selectItem itemLabel="lime" itemValue="lime" />
- <f:selectItem itemLabel="maroon" itemValue="maroon" />
- <f:selectItem itemLabel="purple" itemValue="purple" />
- <f:selectItem itemLabel="red" itemValue="red" />
- <f:selectItem itemLabel="silver" itemValue="silver" />
- <f:selectItem itemLabel="teal" itemValue="teal" />
- <f:selectItem itemLabel="yellow" itemValue="yellow" />
- <f:selectItem itemLabel="white" itemValue="white" />
- <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Shadow Opacity"></h:outputText>
- <h:selectOneRadio value="#{sb.shadowOpacity}">
- <f:selectItem itemLabel="1" itemValue="1" />
- <f:selectItem itemLabel="3" itemValue="2" />
- <f:selectItem itemLabel="5" itemValue="3" />
- <f:selectItem itemLabel="7" itemValue="4" />
- <f:selectItem itemLabel="9" itemValue="5" />
- <f:selectItem itemLabel="11" itemValue="6" />
- <f:selectItem itemLabel="13" itemValue="7" />
- <f:selectItem itemLabel="15" itemValue="8" />
- <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Shadow Depth"></h:outputText>
- <h:selectOneRadio value="#{sb.shadowDepth}">
- <f:selectItem itemLabel="3" itemValue="3" />
- <f:selectItem itemLabel="4" itemValue="4" />
- <f:selectItem itemLabel="5" itemValue="5" />
- <f:selectItem itemLabel="6" itemValue="6" />
- <f:selectItem itemLabel="7" itemValue="6" />
- <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Render"></h:outputText>
- <h:selectBooleanCheckbox value="#{sb.reRender}" onchange="submit();"></h:selectBooleanCheckbox>
- </h:panelGrid>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
+ <div
+ style="position: relative; font-size: 50px; z-index: 2; color: navy">z-index</div>
</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,99 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="suggestionboxPropertySubviewID">
+ <rich:simpleTogglePanel id="sbPropertyID" switchType="client" opened="true" label="suggestionBox property">
+ <h:panelGrid columns="2" cellpadding="5px">
+
+ <h:outputText value="z-index"></h:outputText>
+ <h:selectOneRadio value="#{sb.zindex}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="3" itemValue="3" />
+ <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneRadio>
+
+ <f:verbatim>Frequency</f:verbatim>
+ <h:inputText value="#{sb.frequency}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>Border</f:verbatim>
+ <h:inputText value="#{sb.border}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>Width</f:verbatim>
+ <h:inputText value="#{sb.width}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>Height</f:verbatim>
+ <h:inputText value="#{sb.height}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>Cellpadding</f:verbatim>
+ <h:inputText value="#{sb.cellpadding}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>Cellspacing</f:verbatim>
+ <h:inputText value="#{sb.cellspacing}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>First</f:verbatim>
+ <h:inputText value="#{sb.first}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>MinChars</f:verbatim>
+ <h:inputText value="#{sb.minchars}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Background Colour"></h:outputText>
+ <h:selectOneMenu value="#{sb.bgColor}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="aqua" itemValue="aqua" />
+ <f:selectItem itemLabel="blue" itemValue="blue" />
+ <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
+ <f:selectItem itemLabel="gray" itemValue="gray" />
+ <f:selectItem itemLabel="lime" itemValue="lime" />
+ <f:selectItem itemLabel="maroon" itemValue="maroon" />
+ <f:selectItem itemLabel="purple" itemValue="purple" />
+ <f:selectItem itemLabel="red" itemValue="red" />
+ <f:selectItem itemLabel="silver" itemValue="silver" />
+ <f:selectItem itemLabel="teal" itemValue="teal" />
+ <f:selectItem itemLabel="yellow" itemValue="yellow" />
+ <f:selectItem itemLabel="white" itemValue="white" />
+ <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Shadow Opacity"></h:outputText>
+ <h:selectOneRadio value="#{sb.shadowOpacity}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="3" itemValue="2" />
+ <f:selectItem itemLabel="5" itemValue="3" />
+ <f:selectItem itemLabel="7" itemValue="4" />
+ <f:selectItem itemLabel="9" itemValue="5" />
+ <f:selectItem itemLabel="11" itemValue="6" />
+ <f:selectItem itemLabel="13" itemValue="7" />
+ <f:selectItem itemLabel="15" itemValue="8" />
+ <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Shadow Depth"></h:outputText>
+ <h:selectOneRadio value="#{sb.shadowDepth}">
+ <f:selectItem itemLabel="3" itemValue="3" />
+ <f:selectItem itemLabel="4" itemValue="4" />
+ <f:selectItem itemLabel="5" itemValue="5" />
+ <f:selectItem itemLabel="6" itemValue="6" />
+ <f:selectItem itemLabel="7" itemValue="6" />
+ <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,31 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="suggestionboxStraightforwardSubviewID">
+
+ <rich:simpleTogglePanel switchType="client" opened="true" label="suggestionBox straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{sb.bTest1}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t1SB}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{sb.bTest2}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t2SB}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{sb.bTest3}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t3SB}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{sb.bTest4}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t4SB}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{sb.bTest5}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t5SB}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanel.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanel.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanel.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,103 +2,56 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<f:subview id="tabPanelID">
- <h:form>
- <rich:tabPanel id="tabPanelId" headerAlignment="#{tabPanel.headerAlignment}" width="#{tabPanel.width}" height="#{tabPanel.height}"
- rendered="#{tabPanel.rendered}" title="#{tabPanel.title}" switchType="#{tabPanel.switchType}" headerSpacing="#{tabPanel.headerSpacing}"
- selectedTab="#{tabPanel.selectedTab}" activeTabClass="#{tabPanel.activeTabStyle}" disabledTabClass="#{tabPanel.disabledTabStyle}"
- inactiveTabClass="#{tabPanel.inactiveTabStyle}" contentClass="#{tabPanel.contentStyle}">
- <rich:tab id="tab1" labelWidth="#{tabPanel.labelWidth}" label="#{tabPanel.label}">
+
+<f:subview id="tabPanelSubviewID">
+ <rich:tabPanel id="tabPanelId" headerAlignment="#{tabPanel.headerAlignment}" width="#{tabPanel.width}"
+ height="#{tabPanel.height}" rendered="#{tabPanel.rendered}" title="#{tabPanel.title}" switchType="#{tabPanel.switchType}"
+ headerSpacing="#{tabPanel.headerSpacing}" selectedTab="#{tabPanel.selectedTab}" activeTabClass="#{tabPanel.activeTabStyle}"
+ disabledTabClass="#{tabPanel.disabledTabStyle}" inactiveTabClass="#{tabPanel.inactiveTabStyle}"
+ contentClass="#{tabPanel.contentStyle}" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+
+ <rich:tab id="tabOne" labelWidth="#{tabPanel.labelWidth}" label="#{tabPanel.label}"
+ onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"
+ ontabenter="print('ontabenterInputID', 'ontabenter work!')" ontableave="print('ontableaveInputID', 'ontableave work!')">
<h:outputText value="This is tab panel test example" styleClass="text1"></h:outputText>
</rich:tab>
- <rich:tab id="tab2" label="Tab with image" disabled="#{tabPanel.disabledTab}">
+ <rich:tab id="tabTwo" label="Tab with image" disabled="#{tabPanel.disabledTab}"
+ onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"
+ ontabenter="print('ontabenterInputID', 'ontabenter work!')" ontableave="print('ontableaveInputID', 'ontableave work!')">
<f:facet name="header">
<h:outputText value="client switchType from facet" />
</f:facet>
- <f:facet name="openMarker">
- <h:graphicImage value="/pics/ajax_process.gif"></h:graphicImage>
- </f:facet>
- <f:facet name="closeMarker">
- <h:graphicImage value="/pics/ajax_stoped.gif"></h:graphicImage>
- </f:facet>
<h:graphicImage value="/pics/masshtaby_01.jpg" width="560" height="383"></h:graphicImage>
</rich:tab>
- <rich:tab id="tab3" label="Tab with some text" disabled="#{tabPanel.disabledTab}">
- <f:verbatim>
- Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
- Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
- Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
- Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
- Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
- Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
- </f:verbatim>
+ <rich:tab id="tabThree" label="Tab with some text" disabled="#{tabPanel.disabledTab}"
+ onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"
+ ontabenter="print('ontabenterInputID', 'ontabenter work!')" ontableave="print('ontableaveInputID', 'ontableave work!')">
+ <h:outputText
+ value=" Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text..." />
</rich:tab>
</rich:tabPanel>
- <rich:spacer height="20px"></rich:spacer>
- <h:panelGrid columns="2" cellspacing="10px">
- <h:outputText value="Width (px or %):"></h:outputText>
- <h:inputText value="#{tabPanel.width}">
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height (px or %):"></h:outputText>
- <h:inputText value="#{tabPanel.height}">
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Title:"></h:outputText>
- <h:inputText value="#{tabPanel.title}">
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="LabelWidth:"></h:outputText>
- <h:inputText value="#{tabPanel.labelWidth}">
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="SwitchType:"></h:outputText>
- <h:selectOneRadio value="#{tabPanel.switchType}">
- <f:selectItem itemLabel="client" itemValue="client" />
- <f:selectItem itemLabel="server" itemValue="server" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Header Alignment:"></h:outputText>
- <h:selectOneRadio value="#{tabPanel.headerAlignment}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="center" itemValue="center" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Header Spacing:"></h:outputText>
- <h:inputText value="#{tabPanel.headerSpacing}">
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Selected Tab:"></h:outputText>
- <h:selectOneRadio value="#{tabPanel.selectedTab}">
- <f:selectItem itemLabel="1" itemValue="tab1" />
- <f:selectItem itemLabel="2" itemValue="tab2" />
- <f:selectItem itemLabel="3" itemValue="tab3" />
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{tabPanel.rendered}" onclick="submit()">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Disable Tab"></h:outputText>
- <h:selectBooleanCheckbox value="#{tabPanel.disabledTab}" onclick="submit()">
- </h:selectBooleanCheckbox>
- <h:outputText value="Switch Styles:" />
- <h:commandButton action="#{tabPanel.doStyles}" value="#{tabPanel.btnLabel}" />
-
-
- </h:panelGrid>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
+ <rich:spacer height="20px"></rich:spacer>
</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,67 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="tabPanelStraightforwardSubviewID">
+ <rich:simpleTogglePanel id="tpPropertyID" switchType="client" opened="true" label="tabPanel property">
+ <h:panelGrid columns="2" cellspacing="10px">
+ <h:outputText value="Width (px or %):"></h:outputText>
+ <h:inputText value="#{tabPanel.width}" onchange="submit();" />
+
+ <h:outputText value="Height (px or %):"></h:outputText>
+ <h:inputText value="#{tabPanel.height}" onchange="submit();" />
+
+ <h:outputText value="Title:"></h:outputText>
+ <h:inputText value="#{tabPanel.title}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="LabelWidth:"></h:outputText>
+ <h:inputText value="#{tabPanel.labelWidth}" onchange="submit();" />
+
+ <h:outputText value="SwitchType:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Header Alignment:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.headerAlignment}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Header Spacing:"></h:outputText>
+ <h:inputText value="#{tabPanel.headerSpacing}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Selected Tab:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.selectedTab}" onchange="submit();">
+ <f:selectItem itemLabel="1" itemValue="tabOne" />
+ <f:selectItem itemLabel="2" itemValue="tabTwo" />
+ <f:selectItem itemLabel="3" itemValue="tabThr" />
+ </h:selectOneRadio>
+
+ <h:outputText value="immediate" />
+ <h:selectBooleanCheckbox value="#{tabPanel.immediate}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tabPanel.rendered}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disable Tab"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tabPanel.disabledTab}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{tabPanel.doStyles}" value="#{tabPanel.btnLabel}" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="tabPanelPropertySubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="dataTable straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{tabPanel.bTest1}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t1TabPanel}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{tabPanel.bTest2}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t2TabPanel}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{tabPanel.bTest3}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t3TabPanel}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{tabPanel.bTest4}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t4TabPanel}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{tabPanel.bTest5}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t5TabPanel}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanel.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanel.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanel.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,23 +1,24 @@
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
-<f:subview id="togglePanel">
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <h:messages></h:messages>
-<h:form id="tooggleTest">
- <rich:togglePanel id="panel1" switchType="#{togglePanel.switchType}"
- initialState="asus" stateOrder="asus,blank"
- style="width:300px!important">
+<f:subview id="togglePanelSubviewID">
+
+ <rich:togglePanel id="panel1" switchType="#{togglePanel.switchType}" initialState="asus" stateOrder="asus,blank"
+ style="width:300px!important; overflow: hidden;" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')">
<f:facet name="blank">
<rich:panel>
<f:facet name="header">
<h:panelGroup>
- <rich:toggleControl id="toggleControl_blank"
- for="tooggleTest:panel1">
+ <rich:toggleControl id="toggleControl_blank" for="togglePanelSubviewID:panel1">
<h:outputText value="Expand" style="font-weight: bold;" />
- <h:graphicImage url="/pics/collapse.gif"
- style="border-width: 0px;" />
+ <h:graphicImage url="/pics/collapse.gif" style="border-width: 0px;" />
</rich:toggleControl>
</h:panelGroup>
</f:facet>
@@ -28,21 +29,16 @@
<rich:panel>
<f:facet name="header">
<h:panelGroup>
- <rich:toggleControl id="toggleControl_panel1"
- for="tooggleTest:panel1">
+ <rich:toggleControl id="toggleControl_panel1" for="togglePanelSubviewID:panel1">
<h:outputText value="Collapse" style="font-weight: bold;" />
- <h:graphicImage url="/pics/expand.gif"
- style="border-width: 0px;" />
+ <h:graphicImage url="/pics/expand.gif" style="border-width: 0px;" />
</rich:toggleControl>
</h:panelGroup>
</f:facet>
- <h:panelGrid columns="2" border="0"
- style="width: 100%;background-color: white;">
- <h:graphicImage url="/pics/asus.jpg" height="300" width="300"
- alt="asus.jpg" />
+ <h:panelGrid columns="2" border="0" style="width: 100%;background-color: white;">
+ <h:graphicImage url="/pics/asus.jpg" height="300" width="300" alt="asus.jpg" />
<h:panelGroup>
- <h:outputText style="font: 18px;font-weight: bold;"
- value="Asus F 3 Tc" />
+ <h:outputText style="font: 18px;font-weight: bold;" value="Asus F 3 Tc" />
<f:verbatim>
Processor: AMD Turion 64 X 2 - 1600 Mhz<br />
RAM: 1024 Mb<br />
@@ -56,33 +52,34 @@
</rich:panel>
</f:facet>
</rich:togglePanel>
- <br />
- <br />
- <rich:togglePanel id="panel2" switchType="#{togglePanel.switchType}"
- initialState="#{togglePanel.initialState}"
- stateOrder="#{togglePanel.stateOrder}">
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <rich:togglePanel id="panel2" switchType="#{togglePanel.switchType}" initialState="#{togglePanel.initialState}"
+ stateOrder="#{togglePanel.stateOrder}" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')">
<f:facet name="asus">
<rich:panel>
<f:facet name="header">
<h:panelGroup>
- <h:outputText value="Customizable toggle panel"
- style="font-weight: bold;" />
- <rich:toggleControl id="toggleControl_panel_1"
- for="tooggleTest:panel2">
+ <h:outputText value="Customizable toggle panel" style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_1" for="togglePanelSubviewID:panel2">
<h:outputText value="Next"></h:outputText>
- <h:graphicImage url="/pics/expand.gif"
- style="border-width: 0px;" />
+ <h:graphicImage url="/pics/expand.gif" style="border-width: 0px;" />
</rich:toggleControl>
</h:panelGroup>
</f:facet>
- <h:panelGrid columns="2" border="0"
- style="width: 100%;background-color: white;">
- <h:graphicImage url="/pics/asus.jpg" height="300" width="300"
- alt="asus.jpg" />
+ <h:panelGrid columns="2" border="0" style="width: 100%;background-color: white;">
+ <h:graphicImage url="/pics/asus.jpg" height="300" width="300" alt="asus.jpg" />
<h:panelGroup>
- <h:outputText style="font: 18px;font-weight: bold;"
- value="Asus F 3 Tc" />
+ <h:outputText style="font: 18px;font-weight: bold;" value="Asus F 3 Tc" />
<f:verbatim>
Processor: AMD Turion 64 X 2 - 1600 Mhz<br />
RAM: 1024 Mb<br />
@@ -100,23 +97,17 @@
<rich:panel>
<f:facet name="header">
<h:panelGroup>
- <h:outputText value="Customizable toggle panel"
- style="font-weight: bold;" />
- <rich:toggleControl id="toggleControl_panel_2"
- for="tooggleTest:panel2">
+ <h:outputText value="Customizable toggle panel" style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_2" for="togglePanelSubviewID:panel2">
<h:outputText value="Next"></h:outputText>
- <h:graphicImage url="/pics/expand.gif"
- style="border-width: 0px;" />
+ <h:graphicImage url="/pics/expand.gif" style="border-width: 0px;" />
</rich:toggleControl>
</h:panelGroup>
</f:facet>
- <h:panelGrid columns="2" border="0"
- style="width: 100%;background-color: yellow;">
- <h:graphicImage url="/pics/benq.jpg" height="300" width="300"
- alt="benq.jpg" />
+ <h:panelGrid columns="2" border="0" style="width: 100%;background-color: yellow;">
+ <h:graphicImage url="/pics/benq.jpg" height="300" width="300" alt="benq.jpg" />
<h:panelGroup>
- <h:outputText style="font: 18px;font-weight: bold;"
- value="BenQ A 52" />
+ <h:outputText style="font: 18px;font-weight: bold;" value="BenQ A 52" />
<f:verbatim>
Processor: Core Duo T2250 (1.73GHz)<br />
RAM: 1024 Mb<br />
@@ -134,23 +125,17 @@
<rich:panel>
<f:facet name="header">
<h:panelGroup>
- <h:outputText value="Customizable toggle panel"
- style="font-weight: bold;" />
- <rich:toggleControl id="toggleControl_panel_3"
- for="tooggleTest:panel2">
+ <h:outputText value="Customizable toggle panel" style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_3" for="togglePanelSubviewID:panel2">
<h:outputText value="Next"></h:outputText>
- <h:graphicImage url="/pics/expand.gif"
- style="border-width: 0px;" />
+ <h:graphicImage url="/pics/expand.gif" style="border-width: 0px;" />
</rich:toggleControl>
</h:panelGroup>
</f:facet>
- <h:panelGrid columns="2" border="0"
- style="width: 100%;background-color: orange;">
- <h:graphicImage url="/pics/toshiba.jpg" height="300" width="300"
- alt="toshiba.jpg" />
+ <h:panelGrid columns="2" border="0" style="width: 100%;background-color: orange;">
+ <h:graphicImage url="/pics/toshiba.jpg" height="300" width="300" alt="toshiba.jpg" />
<h:panelGroup>
- <h:outputText style="font: 18px;font-weight: bold;"
- value="Toshiba Satellite A 100-784" />
+ <h:outputText style="font: 18px;font-weight: bold;" value="Toshiba Satellite A 100-784" />
<f:verbatim>
Processor: Intel Core Duo T2250 - 1.73GHz<br />
RAM: 1024 Mb<br />
@@ -164,39 +149,6 @@
</rich:panel>
</f:facet>
</rich:togglePanel>
- <f:verbatim>
- <br />
- <br />
- </f:verbatim>
- <rich:separator height="5px" width="500px" />
- <h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
- <h:outputText value="InitialState:"></h:outputText>
- <h:selectOneRadio value="#{togglePanel.initialState}">
- <f:selectItem itemLabel="Asus" itemValue="asus" />
- <f:selectItem itemLabel="Benq" itemValue="benq" />
- <f:selectItem itemLabel="toshiba" itemValue="toshiba" />
- <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="StateOrder:"></h:outputText>
- <h:selectOneRadio value="#{togglePanel.stateOrder}">
- <f:selectItem itemLabel="Asus,Benq,Toshiba"
- itemValue="asus,benq,toshiba" />
- <f:selectItem itemLabel="Toshiba, Asus, Benq"
- itemValue="toshiba,asus,benq" />
- <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="switchType:"></h:outputText>
- <h:selectOneRadio value="#{togglePanel.switchType}">
- <f:selectItem itemLabel="client" itemValue="client" />
- <f:selectItem itemLabel="server" itemValue="server" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <a4j:support event="onclick" reRender="panel1,panel2"></a4j:support>
- </h:selectOneRadio>
- </h:panelGrid>
-
-</h:form>
+ <ui:debug hotkey="L"></ui:debug>
</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,33 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="togglePanelPropertySubviewID">
+ <rich:simpleTogglePanel id="tPanelPropertyID" switchType="client" opened="true" label="tooglePanel property">
+ <h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
+ <h:outputText value="InitialState:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.initialState}">
+ <f:selectItem itemLabel="Asus" itemValue="asus" />
+ <f:selectItem itemLabel="Benq" itemValue="benq" />
+ <f:selectItem itemLabel="toshiba" itemValue="toshiba" />
+ <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="StateOrder:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.stateOrder}">
+ <f:selectItem itemLabel="Asus,Benq,Toshiba" itemValue="asus,benq,toshiba" />
+ <f:selectItem itemLabel="Toshiba, Asus, Benq" itemValue="toshiba,asus,benq" />
+ <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="switchType:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick" reRender="panel1,panel2"></a4j:support>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="togglePanelStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="tooglePanel straightforward">
+ <h:panelGrid columns="2">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{togglePanel.bTest1}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1TogglePanel}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{togglePanel.bTest2}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2TogglePanel}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{togglePanel.bTest3}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3TogglePanel}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{togglePanel.bTest4}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4TogglePanel}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{togglePanel.bTest5}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5TogglePanel}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBar.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBar.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBar.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,15 +2,18 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<f:subview id="toolBarID">
- <h:form>
- <rich:toolBar id="toolBarId" width="#{toolBar.width}"
+<f:subview id="toolBarSubviewID">
+ <h:messages></h:messages>
+
+ <rich:toolBar id="toolBarId" width="#{toolBar.width}"
height="#{toolBar.height}" rendered="#{toolBar.rendered}"
- itemSeparator="#{toolBar.itemSeparator}" contentClass="#{toolBar.contentStyle}" separatorClass="#{toolBar.separatorStyle}" >
+ itemSeparator="#{toolBar.itemSeparator}"
+ contentClass="#{toolBar.contentStyle}"
+ separatorClass="#{toolBar.separatorStyle}">
<h:outputText value="ToolBar" style="font-style: italic"></h:outputText>
- <rich:toolBarGroup >
+ <rich:toolBarGroup>
<h:outputText value="Width:"></h:outputText>
<h:inputText value="#{toolBar.width}">
<a4j:support event="onchange" reRender="toolBarId"></a4j:support>
@@ -30,32 +33,4 @@
</rich:toolBar>
- <h:panelGrid columns="2">
- <h:outputText value="Image location:"></h:outputText>
- <h:selectOneRadio value="#{toolBar.location}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
- </h:selectOneRadio>
-
-
- <h:outputText value="itemSeparator:"></h:outputText>
- <h:selectOneRadio value="#{toolBar.itemSeparator}">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="line" itemValue="line" />
- <f:selectItem itemLabel="square" itemValue="square" />
- <f:selectItem itemLabel="disc" itemValue="disc" />
- <f:selectItem itemLabel="grid" itemValue="grid" />
- <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Switch Styles" />
- <a4j:commandButton id="slBtn" value="#{toolBar.btnLabel}"
- action="#{toolBar.doStyles}" reRender="toolBarId,slBtn">
- </a4j:commandButton>
- </h:panelGrid>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
-
</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,32 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="toolBarPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="Image location:"></h:outputText>
+ <h:selectOneRadio value="#{toolBar.location}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
+ </h:selectOneRadio>
+
+
+ <h:outputText value="itemSeparator:"></h:outputText>
+ <h:selectOneRadio value="#{toolBar.itemSeparator}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="line" itemValue="line" />
+ <f:selectItem itemLabel="square" itemValue="square" />
+ <f:selectItem itemLabel="disc" itemValue="disc" />
+ <f:selectItem itemLabel="grid" itemValue="grid" />
+ <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Switch Styles" />
+ <a4j:commandButton id="slBtn" value="#{toolBar.btnLabel}"
+ action="#{toolBar.doStyles}" reRender="toolBarId,slBtn">
+ </a4j:commandButton>
+ </h:panelGrid>
+
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,8 +2,8 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <f:subview id="tooltipID">
- <h:form>
+
+<f:subview id="tooltipSubviewID">
<h:messages></h:messages>
<h:outputText value="DEFAULT VALUE:"></h:outputText>
@@ -12,14 +12,14 @@
<br />
</f:verbatim>
- <h:graphicImage value="/pics/ajax_process.gif" width="15px"
- height="15px">
- <rich:toolTip value="ajax progress">
- </rich:toolTip>
- </h:graphicImage>
-
<h:inputText value="Text" id="inp1" size="50">
- <rich:toolTip value="toolTip for input text">
+ <rich:toolTip value="toolTip for input text" onclick="print('onclickInputID', 'onclick work!')"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ onhide="print('onhideInputID', 'onhide work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')" onshow="print('onshowInputID', 'onshow work!')">
<f:facet name="defaultContent">
<f:verbatim>DEFAULT VALUE</f:verbatim>
</f:facet>
@@ -27,7 +27,13 @@
</h:inputText>
<h:selectOneListbox value="1" id="ddl">
- <rich:toolTip value="1231231">
+ <rich:toolTip value="1231231" onclick="print('onclickInputID', 'onclick work!')"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ onhide="print('onhideInputID', 'onhide work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')" onshow="print('onshowInputID', 'onshow work!')">
<f:facet name="defaultContent">
<f:verbatim>DEFAULT VALUE DropDown</f:verbatim>
</f:facet>
@@ -45,13 +51,16 @@
</f:verbatim>
<rich:panel style="width:50px; height:50px; background-color: gray">
- <rich:toolTip id="tooltipID" value="#{tooltip.value}"
- mode="#{tooltip.mode}" delay="#{tooltip.delay}" layout="#{tooltip.layout}"
- horizontalOffset="#{tooltip.horizontalOffset}"
- verticalOffset="#{tooltip.verticalOffset}"
- followMouse="#{tooltip.followMouse}"
- direction="#{tooltip.direction}" style="#{tooltip.style}"
- disabled="#{tooltip.disabled}" rendered="#{tooltip.rendered}">
+ <rich:toolTip id="tooltipID" value="#{tooltip.value}" mode="#{tooltip.mode}"
+ layout="#{tooltip.layout}" horizontalOffset="#{tooltip.horizontalOffset}" verticalOffset="#{tooltip.verticalOffset}"
+ followMouse="#{tooltip.followMouse}" direction="#{tooltip.direction}" style="#{tooltip.style}" disabled="#{tooltip.disabled}"
+ rendered="#{tooltip.rendered}" onclick="print('onclickInputID', 'onclick work!')"
+ oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ onhide="print('onhideInputID', 'onhide work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
+ onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
+ onmouseup="print('onmouseupInputID', 'onmouseup work!')" onshow="print('onshowInputID', 'onshow work!')">
<h:graphicImage id="pricsID" value="/pics/ajax_process.gif"></h:graphicImage>
</rich:toolTip>
</rich:panel>
@@ -59,80 +68,5 @@
<f:verbatim>
<br />
</f:verbatim>
-
- <h:panelGrid columns="2">
- <h:outputText value="Text:"></h:outputText>
- <h:inputText value="#{tooltip.value}">
- <a4j:support event="onchange" reRender="tooltipID" />
- </h:inputText>
-
- <h:outputText value="Delay"></h:outputText>
- <h:inputText value="#{tooltip.delay}">
- <a4j:support event="onchange" reRender="tooltipID" />
- </h:inputText>
-
- <h:outputText value="Layout:"></h:outputText>
- <h:selectOneRadio value="#{tooltip.layout}">
- <f:selectItem itemLabel="inline" itemValue="inline" />
- <f:selectItem itemLabel="block" itemValue="block" />
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectOneRadio>
-
- <h:outputText value="Mode:"></h:outputText>
- <h:selectOneRadio value="#{tooltip.mode}">
- <f:selectItem itemLabel="client" itemValue="client" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectOneRadio>
- <h:outputText value="Horizontal offset:"></h:outputText>
- <h:inputText value="#{tooltip.horizontalOffset}">
- <a4j:support event="onchange" reRender="tooltipID" />
- </h:inputText>
-
- <h:outputText value="Vertical offset:"></h:outputText>
- <h:inputText value="#{tooltip.verticalOffset}">
- <a4j:support event="onchange" reRender="tooltipID" />
- </h:inputText>
-
- <h:outputText value="Follow mouse:"></h:outputText>
- <h:selectBooleanCheckbox value="#{tooltip.followMouse}">
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Direction:" />
- <h:selectOneRadio value="#{tooltip.direction}">
- <f:selectItem itemLabel="top-right" itemValue="top-right" />
- <f:selectItem itemLabel="top-left" itemValue="top-left" />
- <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
- <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectOneRadio>
-
- <h:outputText value="Style:"></h:outputText>
- <h:selectOneRadio value="#{tooltip.style}">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="border:3px; font:bold 14px;"
- itemValue="border:3px; font:bold 14px;" />
- <f:selectItem
- itemLabel="border:green 3px solid; background-color:yellow;"
- itemValue="border:green 3px solid; background-color:yellow;" />
- <f:selectItem
- itemLabel="border:green 2px solid; font-family:monospace;"
- itemValue="border:green 2px solid; font-family:monospace;" />
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectOneRadio>
-
- <h:outputText value="Disambled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{tooltip.disabled}">
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{tooltip.rendered}">
- <a4j:support event="onclick" reRender="tooltipID" />
- </h:selectBooleanCheckbox>
- </h:panelGrid>
- </h:form>
- </f:subview>
-
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,79 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="toolTipStraightforwardSubviewID">
+ <rich:simpleTogglePanel id="toolTipPropertyID" switchType="client" opened="true" label="toolTip property">
+ <h:panelGrid columns="2">
+ <h:outputText value="Text:"></h:outputText>
+ <h:inputText value="#{tooltip.value}">
+ <a4j:support event="onchange" reRender="tooltipID" />
+ </h:inputText>
+
+ <h:outputText value="Delay"></h:outputText>
+ <h:inputText value="#{tooltip.delay}">
+ <a4j:support event="onchange" reRender="tooltipID" />
+ </h:inputText>
+
+ <h:outputText value="Layout:"></h:outputText>
+ <h:selectOneRadio value="#{tooltip.layout}">
+ <f:selectItem itemLabel="inline" itemValue="inline" />
+ <f:selectItem itemLabel="block" itemValue="block" />
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Mode:"></h:outputText>
+ <h:selectOneRadio value="#{tooltip.mode}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Horizontal offset:"></h:outputText>
+ <h:inputText value="#{tooltip.horizontalOffset}">
+ <a4j:support event="onchange" reRender="tooltipID" />
+ </h:inputText>
+
+ <h:outputText value="Vertical offset:"></h:outputText>
+ <h:inputText value="#{tooltip.verticalOffset}">
+ <a4j:support event="onchange" reRender="tooltipID" />
+ </h:inputText>
+
+ <h:outputText value="Follow mouse:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tooltip.followMouse}">
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Direction:" />
+ <h:selectOneRadio value="#{tooltip.direction}">
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Style:"></h:outputText>
+ <h:selectOneRadio value="#{tooltip.style}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="border:3px; font:bold 14px;" itemValue="border:3px; font:bold 14px;" />
+ <f:selectItem itemLabel="border:green 3px solid; background-color:yellow;"
+ itemValue="border:green 3px solid; background-color:yellow;" />
+ <f:selectItem itemLabel="border:green 2px solid; font-family:monospace;"
+ itemValue="border:green 2px solid; font-family:monospace;" />
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Disambled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tooltip.disabled}">
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tooltip.rendered}">
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="toolTipPropertySubviewID">
+ <rich:simpleTogglePanel id="toolTipStraightforwardID" switchType="client" opened="true" label="toolTip straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{tooltip.bTest1}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Tooltip}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{tooltip.bTest2}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Tooltip}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{tooltip.bTest3}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Tooltip}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{tooltip.bTest4}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Tooltip}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{tooltip.bTest5}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Tooltip}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Tree/Tree.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Tree/Tree.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/Tree/Tree.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,24 +2,28 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<f:subview id="treeID">
- <h:form>
- <rich:tree id="tree" switchType="#{bean.switchType}"
- value="#{bean.data}" var="data"
- nodeFace="#{data.name != 'param-value' ? 'input' : 'text'}"
- changeExpandListener="#{bean.onExpand}"
- nodeSelectListener="#{bean.onSelect}" binding="#{bean.tree}"
- onselected="window.status='selectedNode: '+event.selectedNode;"
- onexpand="window.status='expandedNode: '+event.expandedNode"
- oncollapse="window.status='collapsedNode: '+ event.collapsedNode"
- ajaxSubmitSelection="true" reRender="outputText, selectOneListbox"
- preserveModel="none" dragIndicator="treeIndicator" immediate="false"
- acceptedTypes="file1" dragType="#{bean.dragOn ? 'file1' : ''}"
- iconCollapsed="#{bean.iconCollapsed}"
- iconExpanded="#{bean.iconExpanded}" iconLeaf="#{bean.iconLeaf}"
- icon="#{bean.icon}" dropListener="#{bean.processDrop}">
+<f:subview id="treeSubviewID">
+ <a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+ </a4j:outputPanel>
+ <rich:tree id="tree" switchType="#{bean.switchType}" value="#{bean.data}" var="data"
+ nodeFace="#{data.name != 'param-value' ? 'input' : 'text'}" changeExpandListener="#{bean.onExpand}"
+ nodeSelectListener="#{bean.onSelect}" binding="#{bean.tree}" onselected="window.status='selectedNode: '+event.selectedNode;"
+ onexpand="window.status='expandedNode: '+event.expandedNode" oncollapse="window.status='collapsedNode: '+ event.collapsedNode"
+ ajaxSubmitSelection="true" reRender="outputText, selectOneListbox" preserveModel="none" dragIndicator="treeIndicator"
+ immediate="false" acceptedTypes="file1" dragType="#{bean.dragOn ? 'file1' : ''}" iconCollapsed="#{bean.iconCollapsed}"
+ iconExpanded="#{bean.iconExpanded}" iconLeaf="#{bean.iconLeaf}" icon="#{bean.icon}" dropListener="#{bean.processDrop}"
+ onclick="print('onclickInputID', 'onclick work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
+ ondragend="print('ondragendInputID', 'ondragend work!')" ondragenter="print('ondragenterInputID', 'ondragenter work!')"
+ ondragexit="print('ondragexitInputID', 'ondragexit work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
+ ondrop="print('ondropInputID', 'ondrop work!')" ondropend="print('ondropendInputID', 'ondropend work!')"
+ onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
+ onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+
<f:facet name="icon">
<h:outputText value="icon" rendered="#{bean.renderFacets}" />
</f:facet>
@@ -40,26 +44,24 @@
oncollapse="Element.removeClassName(event['treeItem'].getElement(), 'colored')"
onexpand="Element.addClassName(event['treeItem'].getElement(), 'colored')">
<h:outputText value="#{data} : " />
- <h:inputText value="#{data.name}" required="true"
- styleClass="inputs">
+ <h:inputText value="#{data.name}" required="true" styleClass="inputs">
</h:inputText>
<dnd:dndParam name="nodeParam" value="Node Parameter" />
</rich:treeNode>
- <rich:treeNode type="text" nodeClass="customNode"
- acceptedTypes="file2" onselected="return false;">
+ <rich:treeNode type="text" nodeClass="customNode" acceptedTypes="file2" onselected="return false;">
<h:outputText value="#{data}" />
</rich:treeNode>
</rich:tree>
+
<f:verbatim>
<br />
</f:verbatim>
<h:outputText value="Enter path to expand:" />
<h:inputText value="#{bean.pathToExpand}">
- <a4j:support event="onchange" reRender="tree"
- action="#{bean.expandNode}" />
+ <a4j:support event="onchange" reRender="tree" action="#{bean.expandNode}" />
</h:inputText>
<rich:separator></rich:separator>
@@ -78,8 +80,7 @@
<h:outputText value="Render facets:" />
<h:selectBooleanCheckbox value="#{bean.renderFacets}" onchange="submit();"></h:selectBooleanCheckbox>
- <h:commandButton value="#{bean.commandButtonCaption}"
- actionListener="#{bean.changeIcons}" />
+ <h:commandButton value="#{bean.commandButtonCaption}" actionListener="#{bean.changeIcons}" />
</h:panelGrid>
<f:verbatim>
@@ -87,8 +88,7 @@
<br />
</f:verbatim>
- <rich:tree id="testTree" var="_data" switchType="ajax"
- ajaxSubmitSelection="true" preserveModel="none" value="#{bean.data1}"
+ <rich:tree id="testTree" var="_data" switchType="ajax" ajaxSubmitSelection="true" preserveModel="none" value="#{bean.data1}"
nodeSelectListener="#{bean.onSelectInc}" nodeFace="node">
<rich:treeNode type="node">
<h:outputText value="#{_data}" />
@@ -98,8 +98,7 @@
<h:outputText value="Tree without treeNode:"></h:outputText>
<rich:separator></rich:separator>
- <rich:tree switchType="client" style="width:300px"
- value="#{pathwayBean.pathwayTree}" var="item" nodeFace="#{item.type}">
+ <rich:tree switchType="client" style="width:300px" value="#{pathwayBean.pathwayTree}" var="item" nodeFace="#{item.type}">
<rich:treeNode type="library">
<h:outputText value="#{item.type}" />
</rich:treeNode>
@@ -110,10 +109,6 @@
<h:outputText value="#{item.name}" />
</rich:treeNode>
</rich:tree>
-
- <rich:spacer></rich:spacer>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
+ <rich:spacer></rich:spacer>
</f:subview>
-
Added: trunk/test-applications/jsp/src/main/webapp/Tree/TreeProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Tree/TreeProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Tree/TreeProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,8 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="treePropertySubviewID">
+
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarth.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarth.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarth.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,56 +2,21 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <f:subview id="virtualEarth">
- <h:form>
- <h:panelGrid columns="2">
- <rich:virtualEarth style="width:800px;" id="gm" lat="37.97"
- dashboardSize="Normal" zoom="#{virtualEarth.zoom}" mapStyle="Hybrid"
- var="map" />
- <h:panelGroup>
- <f:verbatim>
- Dashboard:<br />
- <a href="javascript:void(0);"
- onclick="map.HideDashboard();return false;">Remove</a>
- <a href="javascript:void(0);"
- onclick="map.ShowDashboard();return false;">Show</a>
- <br />
- <br />
- Type:<br />
- <a href="javascript:void(0);"
- onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
- <a href="javascript:void(0);"
- onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
- <a href="javascript:void(0);"
- onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
- <a href="javascript:void(0);"
- onclick="map.SetMapStyle(VEMapStyle.Birdseye);return false;">Birdseye</a>
- <br />
- <br />
- Zoom:<br />
- <a href="javascript:void(0);" onclick="map.ZoomIn();return false;">In</a>
- <a href="javascript:void(0);" onclick="map.ZoomOut();return false;">Out</a>
- <br />
- <br />
- <a href="javascript:void(0);" onclick="showExadel();return false;">Show
- Exadel Office</a>
- <br />
- <a href="javascript:void(0);" onclick="showExadelInMinsk();return false;">Show Exadel in
- Belarus</a>
- </f:verbatim>
- </h:panelGroup>
-
- </h:panelGrid>
- <a4j:outputPanel id="zoomer">
- <script>
- function zoomIt() {
- map.setZoom(#{virtualEarth.zoom});
- }
- </script>
- </a4j:outputPanel>
- <a4j:outputPanel>
- <script>
+<f:subview id="virtualEarthSubviewID">
+ <h:panelGrid columns="2">
+ <rich:virtualEarth style="width:800px;" version="#{virtualEarth.version}" id="gm" lat="37.97" dashboardSize="Normal" zoom="#{virtualEarth.zoom}"
+ mapStyle="Hybrid" var="map" onclick="print('onclickInputID', 'onclick work!')"
+ ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
+ onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
+ onmousedown="print('onmousedownInputID', 'onmousedown work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"/>
+
+ </h:panelGrid>
+
+ <a4j:outputPanel>
+ <script>
function createMarker(point,html) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
@@ -70,10 +35,5 @@
map.SetMapStyle(VEMapStyle.Birdseye);
}
</script>
- </a4j:outputPanel>
- </h:form>
- <h:form>
- <h:commandLink value="Back" action="main"></h:commandLink>
- </h:form>
- </f:subview>
-
+ </a4j:outputPanel>
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarthProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarthProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarthProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,31 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="virtualEarthPropertySubviewID">
+ <h:panelGroup>
+ <f:verbatim>
+ Dashboard:<br />
+ <a href="javascript:void(0);" onclick="map.HideDashboard();return false;">Remove</a>
+ <a href="javascript:void(0);" onclick="map.ShowDashboard();return false;">Show</a>
+ <br />
+ <br />
+ Type:<br />
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Birdseye);return false;">Birdseye</a>
+ <br />
+ <br />
+ Zoom:<br />
+ <a href="javascript:void(0);" onclick="map.ZoomIn();return false;">In</a>
+ <a href="javascript:void(0);" onclick="map.ZoomOut();return false;">Out</a>
+ <br />
+ <br />
+ <a href="javascript:void(0);" onclick="showExadel();return false;">Show Exadel Office</a>
+ <br />
+ <a href="javascript:void(0);" onclick="showExadelInMinsk();return false;">Show Exadel in Belarus</a>
+ </f:verbatim>
+ </h:panelGroup>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ComponentControl.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ComponentControl.xml (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ComponentControl.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>componentControl</managed-bean-name>
+ <managed-bean-class>componentControl.ComponentControl</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>contextMenu</managed-bean-name>
+ <managed-bean-class>contextMenu.ContextMenu</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <converter>
+ <converter-id>listShuttleConverter</converter-id>
+ <converter-class>util.converter.ListShuttleConverter</converter-class>
+ </converter>
+ <converter>
+ <converter-id>orderingListConverter</converter-id>
+ <converter-class>util.converter.OrderingListConverter</converter-class>
+ </converter>
+</faces-config>
Added: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dataDefinitionList</managed-bean-name>
+ <managed-bean-class>dataDefinitionList.DataDefinitionList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataFilterSlider.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataFilterSlider.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataFilterSlider.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -11,7 +11,7 @@
<value>#{inventoryList}</value>
</managed-property>
</managed-bean>
- <managed-bean>
+ <managed-bean>
<managed-bean-name>inventoryList</managed-bean-name>
<managed-bean-class>dfs.DemoInventoryList</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
Added: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dataOrderedList</managed-bean-name>
+ <managed-bean-class>dataOrderedList.DataOrderedList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DragAndDrop.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DragAndDrop.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DragAndDrop.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -7,4 +7,4 @@
<managed-bean-class>dnd.DndBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
-</faces-config>
+ </faces-config>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Gmap.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Gmap.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Gmap.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -2,14 +2,14 @@
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
- <managed-bean>
- <managed-bean-name>gmap</managed-bean-name>
- <managed-bean-class>gmap.Gmap</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- <managed-property>
- <property-name>zoom</property-name>
- <property-class>java.lang.String</property-class>
- <value>10</value>
- </managed-property>
- </managed-bean>
+ <managed-bean>
+ <managed-bean-name>gmap</managed-bean-name>
+ <managed-bean-class>gmap.Gmap</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>zoom</property-name>
+ <property-class>java.lang.String</property-class>
+ <value>10</value>
+ </managed-property>
+ </managed-bean>
</faces-config>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Icon.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Icon.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Icon.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -4,7 +4,7 @@
<faces-config>
<managed-bean>
<managed-bean-name>icon</managed-bean-name>
- <managed-bean-class>style.icon.Icon</managed-bean-class>
+ <managed-bean-class>util.icon.Icon</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>
Added: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>listShuttle</managed-bean-name>
+ <managed-bean-class>listShuttle.ListShuttle</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-OrderingList.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-OrderingList.xml (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-OrderingList.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>orderingList</managed-bean-name>
+ <managed-bean-class>orderingList.OrderingList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-RichTest.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-RichTest.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-RichTest.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,10 +1,10 @@
<?xml version="1.0"?>
-<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
- "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<managed-bean>
- <managed-bean-name>richBean</managed-bean-name>
- <managed-bean-class>rich.RichBean</managed-bean-class>
+ <managed-bean-name>richTest</managed-bean-name>
+ <managed-bean-class>richTest.RichTest</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-TogglePanel.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-TogglePanel.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-TogglePanel.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -7,4 +7,4 @@
<managed-bean-class>togglePanel.TogglePanel</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
-</faces-config>
+</faces-config>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-tooltip.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-tooltip.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-tooltip.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -7,4 +7,4 @@
<managed-bean-class>tooltip.Tooltip</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
-</faces-config>
\ No newline at end of file
+</faces-config>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -5,34 +5,22 @@
<navigation-rule>
<from-view-id>/pages/main.jsp</from-view-id>
<navigation-case>
- <from-outcome>Suggest</from-outcome>
- <to-view-id>/SuggestionBox/SuggestionBox.jsp</to-view-id>
+ <from-outcome>TestDiv</from-outcome>
+ <to-view-id>/pages/Div/Div.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>Spinner</from-outcome>
<to-view-id>/InputNumberSpinner/InputNumberSpinner.jsp</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>Slider</from-outcome>
- <to-view-id>/InputNumberSlider/InputNumberSlider.jsp</to-view-id>
- </navigation-case>
- <navigation-case>
<from-outcome>Panel</from-outcome>
<to-view-id>/Panel/Panel.jsp</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>PanelBar</from-outcome>
- <to-view-id>/PanelBar/PanelBar.jsp</to-view-id>
- </navigation-case>
- <navigation-case>
- <from-outcome>Separator</from-outcome>
+ <from-outcome>Separ</from-outcome>
<to-view-id>/Separator/Separator.jsp</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>Paint2D</from-outcome>
- <to-view-id>/Paint2D/Paint2D.jsp</to-view-id>
- </navigation-case>
- <navigation-case>
<from-outcome>Spacer</from-outcome>
<to-view-id>/Spacer/Spacer.jsp</to-view-id>
</navigation-case>
@@ -45,46 +33,62 @@
<to-view-id>/TabPanel/TabPanel.jsp</to-view-id>
</navigation-case>
<navigation-case>
+ <from-outcome>Suggest</from-outcome>
+ <to-view-id>/SuggestionBox/SuggestionBox.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>Paint</from-outcome>
+ <to-view-id>/Paint2D/Paint2D.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
<from-outcome>Tree</from-outcome>
<to-view-id>/Tree/Tree.jsp</to-view-id>
</navigation-case>
<navigation-case>
+ <from-outcome>Slide</from-outcome>
+ <to-view-id>/InputNumberSlider/InputNumberSlider.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>PanelBar</from-outcome>
+ <to-view-id>/PanelBar/PanelBar.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
<from-outcome>TogglePanel</from-outcome>
<to-view-id>/TogglePanel/TogglePanel.jsp</to-view-id>
</navigation-case>
<navigation-case>
+ <from-outcome>Gmap</from-outcome>
+ <to-view-id>/Gmap/Gmap.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
<from-outcome>ToolBar</from-outcome>
<to-view-id>/ToolBar/ToolBar.jsp</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>DnD</from-outcome>
+ <from-outcome>dnd</from-outcome>
<to-view-id>/DragAndDrop/DragAndDrop.jsp</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>MP</from-outcome>
- <to-view-id>/ModalPanel/ModalPanel.jsp</to-view-id>
- </navigation-case>
- <navigation-case>
<from-outcome>DS</from-outcome>
- <to-view-id>/DataScroller/DS.jsp</to-view-id>
+ <to-view-id>/DataScroller/DataScroller.jsp</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>DT</from-outcome>
- <to-view-id>/DataTable/DT.jsp</to-view-id>
+ <from-outcome>DDMenu</from-outcome>
+ <to-view-id>/DropDownMenu/DropDownMenu.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>DFS</from-outcome>
<to-view-id>/DataFilterSlider/DataFilterSlider.jsp</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>DDM</from-outcome>
- <to-view-id>/DropDownMenu/DDMenu.jsp</to-view-id>
- </navigation-case>
- <navigation-case>
<from-outcome>PanelMenu</from-outcome>
<to-view-id>/PanelMenu/PanelMenu.jsp</to-view-id>
</navigation-case>
<navigation-case>
+ <from-outcome>ModalPanel</from-outcome>
+ <to-view-id>/ModalPanel/ModalPanel.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
<from-outcome>Tooltip</from-outcome>
<to-view-id>/Tooltip/Tooltip.jsp</to-view-id>
</navigation-case>
@@ -93,10 +97,6 @@
<to-view-id>/Calendar/Calendar.jsp</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>Gmap</from-outcome>
- <to-view-id>/Gmap/Gmap.jsp</to-view-id>
- </navigation-case>
- <navigation-case>
<from-outcome>Message</from-outcome>
<to-view-id>/Message/Message.jsp</to-view-id>
</navigation-case>
@@ -113,11 +113,11 @@
<to-view-id>/Insert/Insert.jsp</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>TestDiv</from-outcome>
- <to-view-id>/pages/Div/Div.jsp</to-view-id>
+ <from-outcome>SDT</from-outcome>
+ <to-view-id>/ScrollableDataTable/ScrollableDataTable.jsp</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>RichTest</from-outcome>
+ <from-outcome>RichFaces</from-outcome>
<to-view-id>/pages/Rich/Rich.jsp</to-view-id>
</navigation-case>
<navigation-case>
@@ -128,12 +128,9 @@
<from-outcome>CustomizePage</from-outcome>
<to-view-id>/CustomizePage/CustomizePage.jsp</to-view-id>
</navigation-case>
- </navigation-rule>
- <navigation-rule>
- <from-view-id>*</from-view-id>
<navigation-case>
- <from-outcome>main</from-outcome>
- <to-view-id>/pages/main.jsp</to-view-id>
+ <from-outcome>jQuery</from-outcome>
+ <to-view-id>/jQuery/jQuery.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
@@ -144,12 +141,24 @@
</navigation-case>
</navigation-rule>
<navigation-rule>
- <from-view-id>/Panel/Panel2.jsp</from-view-id>
+ <from-view-id>/Panel/panel2.jsp</from-view-id>
<navigation-case>
<from-outcome>BackP</from-outcome>
<to-view-id>/Panel/Panel.jsp</to-view-id>
</navigation-case>
</navigation-rule>
+ <navigation-rule>
+ <from-view-id>*</from-view-id>
+ <navigation-case>
+ <from-outcome>main</from-outcome>
+ <to-view-id>/pages/main.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <application>
+ <locale-config>
+ <default-locale>en</default-locale>
+ </locale-config>
+ </application>
<lifecycle>
<phase-listener id="phaseTracker">util.phaseTracker.PhaseTracker</phase-listener>
</lifecycle>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/web.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/web.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -13,19 +13,22 @@
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,
- /WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,
- /WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,
- /WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,
- /WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,
- /WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,
- /WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,
- /WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,
- /WEB-INF/faces-config-DragAndDrop.xml,/WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,
- /WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
- /WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
- /WEB-INF/faces-config-jQuery.xml</param-value>
+ /WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,
+ /WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,
+ /WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,
+ /WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,
+ /WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,
+ /WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,
+ /WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,
+ /WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,
+ /WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
+ /WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
+ /WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-DragAndDrop.xml,
+ /WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml,
+ /WEB-INF/faces-config-ContextMenu.xml,/WEB-INF/faces-config-ListShuttle.xml,/WEB-INF/faces-config-Converter.xml,
+ /WEB-INF/faces-config-ComponentControl.xml</param-value>
</context-param>
- <context-param>
+ <context-param>
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
<param-value>false</param-value>
</context-param>
Modified: trunk/test-applications/jsp/src/main/webapp/index.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/index.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/index.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,5 +1,4 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-
<html>
<head>
</head>
Modified: trunk/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,10 +1,8 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
<f:subview id="jQuerySubviewID">
- <h:form id="form">
<style>
.divSize_1 {
width: 150px;
@@ -43,8 +41,6 @@
color: #228B22;
}
</style>
-
- <h:messages />
<h:panelGrid id="panelGridID" columns="2" border="1">
<h:outputText value="add text: [li],work!, e.g. A. one [li],work!" />
<h:panelGroup>
@@ -61,20 +57,18 @@
<f:verbatim> <p><span>Text1 </span>text2</p> </f:verbatim>
<h:panelGroup>
- <f:verbatim>
- Rectangle: size: "150 x 90"; bgcolor: "dodgerblue";
- <br />
- Table: bgcolor: "bisque"
- </f:verbatim>
+ <h:outputText value="Rectangle: size: "150 x 90"; bgcolor: "dodgerblue"" />
+ <f:verbatim><br /></f:verbatim>
+ <h:outputText value="Table: bgcolor: "bisque"" />
</h:panelGroup>
<f:verbatim><div id="div_1_ID">xx-large <br /> text </div></f:verbatim>
<h:panelGroup>
- <f:verbatim>
- Rectangle: size: "90 x 150"; border-color: "red"
- <br />
- effect(mouseover)
- </f:verbatim>
+ <h:outputText value="Rectangle: size: "90 x 150"; border-color "red"" />
+ <f:verbatim><br /></f:verbatim>
+ <h:outputText value="Table: bgcolor: "none"" />
+ <f:verbatim><br /></f:verbatim>
+ <h:outputText value="effect(mouseover)" />
</h:panelGroup>
<f:verbatim><div id="div_2_ID"> normal text</div></f:verbatim>
</h:panelGrid>
@@ -82,16 +76,15 @@
<rich:jQuery selector="li" timing="onload" query="find('ol').end().append('[li],work!')" />
-
+ <rich:jQuery selector="body" timing="onload" query="addClass('body')"/>
<rich:jQuery selector="tr:nth-child(odd)" timing="onload" query="addClass('oddTable')" />
<rich:jQuery selector="#panelGridID tr" query="mouseover(function(){jQuery(this).addClass('activeTable')})"/>
<rich:jQuery selector="#panelGridID tr" query="mouseout(function(){jQuery(this).removeClass('activeTable')})"/>
- <rich:jQuery selector="p" timing="onload" query="find('span').html('text1').end().append('<p class='fontColor'>add text3<p>')"/>
+ <rich:jQuery selector="#div_2_ID" timing="onload" query="mouseover(function(){jQuery(this).fadeOut({height: 'hide'}, 500).text('New text').animate({height: 'show'}, 500)})" />
+ <rich:jQuery selector="p" timing="onload" query="find('span').html('text1').end().append('<p class=\'fontColor\'>add text3<p>')"/>
<rich:jQuery selector="#div_1_ID" timing="onload" query="addClass('divSize_1')" />
<rich:jQuery selector=".divSize_1" timing="onload" query="addClass('divColor_1')" />
<rich:jQuery selector="#panelGridID #div_1_ID" timing="onload" query="addClass('divTextSize_1')" />
<rich:jQuery selector="#form\\:panelGridID #div_2_ID" timing="onload" query="addClass('divSize_2')" />
-
- </h:form>
-</f:subview>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,139 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="EventInfoSubview">
+ <f:verbatim><div style="position: relative">
+ <input id="ontabenterInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="ontableaveInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onLoadMapInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onselectionchangeInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="ondownclickInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onupclickInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="oninitInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="ongroupactivateInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onitemselectInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onsubmitInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onRowClickInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onRowDblClickInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onRowMouseDownInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onRowMouseMoveInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onRowMouseOutInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onRowMouseOverInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onRowMouseUpInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onselectInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onchangeInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onfocusInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onblurInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onclickInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="oncollapseInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="oncompleteInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="ondblclickInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="ondragendInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="ondragenterInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="ondragexitInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="ondragstartInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="ondropInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="ondropendInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onexpandInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onkeydownInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onkeypressInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onkeyupInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onmousedownInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onmousemoveInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onmouseoutInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onmouseoverInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onmouseupInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onselectedInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onhideInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onmouseupInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onshowInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/pages/Blank/Blank.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Blank/Blank.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Blank/Blank.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,7 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="calendarSubviewID">
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/pages/Blank/BlankProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Blank/BlankProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Blank/BlankProperty.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,7 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="PropertySubviewID">
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/pages/Blank/BlankStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Blank/BlankStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Blank/BlankStraightforward.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,7 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="StraightforwardSubviewID">
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/pages/Div/Div.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Div/Div.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Div/Div.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -6,16 +6,47 @@
<html>
<head>
<title></title>
+ <script type="text/javascript">
+ function print(elementID, value) {
+ var oldObject = window.document.getElementById(elementID);
+ var newObject = window.document.createElement('input');
+ newObject.type = "text";
+ newObject.size = oldObject.size;
+ newObject.value = value;
+ newObject.id = oldObject.id;
+ //if(oldObject.size) newObject.size = oldObject.size;
+ //if(oldObject.value) newObject.value = value;
+ //if(oldObject.id) newObject.id = oldObject.id;
+ //if(oldObject.name) newObject.name = oldObject.name;
+ //if(oldObject.className) newObject.className = oldObject.className;
+ oldObject.parentNode.replaceChild(newObject,oldObject);
+ }
+ </script>
<link rel="stylesheet" href="<%=request.getContextPath()%>/styles/styles.css" type="text/css" />
</head>
<body>
<jsp:include page="/pages/RichMenu/RichMenu.jsp" />
-
<div id="div_1_ID" style="position: relative; left:400px; top:400px; border-color: red, 2px;">
<div id="div_2_ID" style="position: absolute; left:-380px; top:-380px; color: blue, 2px;">
- <jsp:include page="${richBean.src}" />
+ <jsp:include page="${richBean.pathComponent}" />
</div>
</div>
+ <h:form>
+ <jsp:include page="${richBean.pathStraightforward}" />
+ <jsp:include page="${richBean.pathProperty}" />
+ </h:form>
+ <rich:modalPanel id="eventInfoID" minHeight="550" minWidth="200" moveable="true" resizeable="true" style="overflow: true;">
+ <f:facet name="header">
+ <h:outputText value="Events ..." />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif" onclick="Richfaces.hideModalPanel('eventInfoID');"/>
+ </f:facet>
+
+ <jsp:include page="/pages/Action/EventInfo.jsp" />
+
+ </rich:modalPanel>
+ <a4j:commandButton value="Show event" onclick="Richfaces.showModalPanel('eventInfoID');return false;"></a4j:commandButton>
</body>
</html>
</f:view>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,3 +1,4 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
@@ -2,13 +3,59 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<html>
<f:view>
-<html>
-<head>
-<title></title>
-<link rel="stylesheet" href="<%=request.getContextPath()%>/styles/styles.css" type="text/css" />
-</head>
-<body>
- <jsp:include page="/pages/RichMenu/RichMenu.jsp" />
- <jsp:include page="${richBean.src}" />
-</body>
+ <head>
+ <f:loadBundle basename="message" var="msg" />
+ <title></title>
+
+ <script type="text/javascript">
+ function print(elementID, value) {
+ var oldObject = window.document.getElementById(elementID);
+ if(oldObject == null || oldObject.type == "text") return;
+ var newObject = window.document.createElement('input');
+ if(oldObject.type) newObject.type = "text";
+ if(oldObject.size) newObject.size = oldObject.size;
+ if(oldObject.value) newObject.value = value;
+ if(oldObject.id) newObject.id = oldObject.id;
+ oldObject.parentNode.replaceChild(newObject,oldObject);
+ }
+ </script>
+ <link rel="stylesheet" href="<%=request.getContextPath()%>/styles/styles.css" type="text/css" />
+ </head>
+ <body>
+ <div id="divOpthID" align="right" style="z-index: 200">
+ <jsp:include page="/pages/RichMenu/RichMenu.jsp" />
+ </div>
+ <h:form>
+ <h:panelGrid id="richGridID" columns="1">
+ <h:column rendered="#{richBean.reComponent}">
+ <jsp:include page="${richBean.pathComponent}" />
+ </h:column>
+ <h:column rendered="#{!richBean.reComponent}"></h:column>
+
+ <h:column rendered="#{richBean.reStraightforward}">
+ <jsp:include page="${richBean.pathStraightforward}" />
+ </h:column>
+ <h:column rendered="#{!richBean.reStraightforward}"></h:column>
+
+ <h:column rendered="#{richBean.reProperty}">
+ <jsp:include page="${richBean.pathProperty}" />
+ </h:column>
+ <h:column rendered="#{!richBean.reProperty}"></h:column>
+ </h:panelGrid>
+ </h:form>
+ <rich:modalPanel id="eventInfoID" autosized="true" minHeight="550" minWidth="200" moveable="true" style="overflow: true;">
+ <f:facet name="header">
+ <h:outputText value="Events ..." />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif" onclick="Richfaces.hideModalPanel('eventInfoID');" />
+ </f:facet>
+
+ <jsp:include page="/pages/Action/EventInfo.jsp" />
+
+ </rich:modalPanel>
+ <a4j:commandButton value="Show event" onclick="Richfaces.showModalPanel('eventInfoID');return false;"></a4j:commandButton>
+ </body>
+</f:view>
</html>
-</f:view>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,47 +1,77 @@
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
-<f:subview id="richMenuID">
- <h:form>
- <h:panelGrid columns="3">
- <rich:spacer width="750px"></rich:spacer>
- <h:selectOneMenu binding="#{skinBean.component}"></h:selectOneMenu>
- <h:commandLink action="#{skinBean.change}" value="set skin" />
-
- <rich:spacer width="750px"></rich:spacer>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<h:form id="forvDivOpthID">
+ <h:panelGrid columns="4" border="1">
+ <h:column>
+ <a4j:status startText="WORK!" startStyle="color: red;" stopText="a4j:status"></a4j:status>
+ </h:column>
+ <h:panelGrid columns="1">
+ <h:panelGroup>
+ <h:outputText value="#{richBean.reComponent ? 'Component hide' : 'Component show'}" />
+ <h:selectBooleanCheckbox value="#{richBean.reComponent}" onchange="submit();" />
+ </h:panelGroup>
+ <h:panelGroup>
+ <h:outputText value="#{richBean.reStraightforward ? 'Straightforward hide' : 'Straightforward show'}" />
+ <h:selectBooleanCheckbox value="#{richBean.reStraightforward}" onchange="submit();" />
+ </h:panelGroup>
+ <h:panelGroup>
+ <h:outputText value="#{richBean.reProperty ? 'Property hide' : 'Property show'}" />
+ <h:selectBooleanCheckbox value="#{richBean.reProperty}" onchange="submit();" />
+ </h:panelGroup>
+ </h:panelGrid>
+
+ <h:panelGrid columns="1">
+ <h:outputText value="Select skin: " />
+ <h:selectOneMenu binding="#{skinBean.component}" onblur="submit();">
+ <a4j:support action="#{skinBean.change}" event="onchange" />
+ </h:selectOneMenu>
+ </h:panelGrid>
+
+ <h:panelGrid columns="1">
<h:outputText value="Select component:" />
<h:selectOneMenu value="#{richBean.src}" onchange="submit();">
- <f:selectItem itemValue="" itemLabel="none" />
- <f:selectItem itemValue="/Calendar/Calendar.jsp" itemLabel="Calendar" />
- <f:selectItem itemValue="/DataFilterSlider/DataFilterSlider.jsp" itemLabel="Data Filter Slider" />
- <f:selectItem itemValue="/DataScroller/DS.jsp" itemLabel="Date Scroller" />
- <f:selectItem itemValue="/DataTable/DT.jsp" itemLabel="Date Table" />
- <f:selectItem itemValue="/DragAndDrop/DragAndDrop.jsp" itemLabel="Drag And Drop" />
- <f:selectItem itemValue="/DropDownMenu/DDMenu.jsp" itemLabel="Drop Down Menu" />
- <f:selectItem itemValue="/Effect/Effect.jsp" itemLabel="Effect" />
- <f:selectItem itemValue="/Gmap/Gmap.jsp" itemLabel="Gmap" />
- <f:selectItem itemValue="/InputNumberSlider/InputNumberSlider.jsp" itemLabel="Input Number Slider" />
- <f:selectItem itemValue="/InputNumberSpinner/InputNumberSpinner.jsp" itemLabel="Input Number Spinner" />
- <f:selectItem itemValue="/Insert/Insert.jsp" itemLabel="Insert" />
- <f:selectItem itemValue="/Message/Message.jsp" itemLabel="Message" />
- <f:selectItem itemValue="/ModalPanel/ModalPanel.jsp" itemLabel="Modal Panel" />
- <f:selectItem itemValue="/Paint2D/Paint2D.jsp" itemLabel="Paint2D" />
- <f:selectItem itemValue="/Panel/Panel.jsp" itemLabel="Panel" />
- <f:selectItem itemValue="/Panel/Panel2.jsp" itemLabel="Panel2" />
- <f:selectItem itemValue="/PanelBar/PanelBar.jsp" itemLabel="Panel Bar" />
- <f:selectItem itemValue="/PanelMenu/PanelMenu.jsp" itemLabel="Panel Menu" />
- <f:selectItem itemValue="/Separator/Separator.jsp" itemLabel="Separator" />
- <f:selectItem itemValue="/SimpleTogglePanel/SimpleTogglePanel.jsp" itemLabel="Simple Toggle Panel" />
- <f:selectItem itemValue="/Spacer/Spacer.jsp" itemLabel="Spacer" />
- <f:selectItem itemValue="/SuggestionBox/SuggestionBox.jsp" itemLabel="Suggestion Box" />
- <f:selectItem itemValue="/TabPanel/TabPanel.jsp" itemLabel="Tab Panel" />
- <f:selectItem itemValue="/TogglePanel/TogglePanel.jsp" itemLabel="Toggle Panel" />
- <f:selectItem itemValue="/ToolBar/ToolBar.jsp" itemLabel="Tool Bar" />
- <f:selectItem itemValue="/Tooltip/Tooltip.jsp" itemLabel="Tooltip" />
- <f:selectItem itemValue="/Tree/Tree.jsp" itemLabel="Tree" />
- <f:selectItem itemValue="/VirtualEarth/VirtualEarth.jsp" itemLabel="Virtual Earth" />
+ <f:selectItem itemValue="Blank" itemLabel="Blank" />
+ <f:selectItem itemValue="ComponentControl" itemLabel="ComponentControl" />
+ <f:selectItem itemValue="OrderingList" itemLabel="OrderingList" />
+ <f:selectItem itemValue="ListShuttle" itemLabel="ListShuttle" />
+ <f:selectItem itemValue="ContextMenu" itemLabel="ContextMenu" />
+ <f:selectItem itemValue="Calendar" itemLabel="Calendar" />
+ <f:selectItem itemValue="DataFilterSlider" itemLabel="Data Filter Slider" />
+ <f:selectItem itemValue="DataScroller" itemLabel="Date Scroller" />
+ <f:selectItem itemValue="DataTable" itemLabel="Date Table" />
+ <f:selectItem itemValue="DataDefinitionList" itemLabel="DataDefinitionList" />
+ <f:selectItem itemValue="DataOrderedList" itemLabel="DataOrderedList" />
+ <f:selectItem itemValue="DragAndDrop" itemLabel="Drag And Drop" />
+ <f:selectItem itemValue="DropDownMenu" itemLabel="Drop Down Menu" />
+ <f:selectItem itemValue="Effect" itemLabel="Effect" />
+ <f:selectItem itemValue="Gmap" itemLabel="Gmap" />
+ <f:selectItem itemValue="InputNumberSlider" itemLabel="Input Number Slider" />
+ <f:selectItem itemValue="InputNumberSpinner" itemLabel="Input Number Spinner" />
+ <f:selectItem itemValue="Insert" itemLabel="Insert" />
+ <f:selectItem itemValue="Message" itemLabel="Message" />
+ <f:selectItem itemValue="ModalPanel" itemLabel="Modal Panel" />
+ <f:selectItem itemValue="Paint2D" itemLabel="Paint2D" />
+ <f:selectItem itemValue="Panel" itemLabel="Panel" />
+ <f:selectItem itemValue="Panel2" itemLabel="Panel2" />
+ <f:selectItem itemValue="PanelBar" itemLabel="Panel Bar" />
+ <f:selectItem itemValue="PanelMenu" itemLabel="Panel Menu" />
+ <f:selectItem itemValue="Separator" itemLabel="Separator" />
+ <f:selectItem itemValue="SimpleTogglePanel" itemLabel="Simple Toggle Panel" />
+ <f:selectItem itemValue="Spacer" itemLabel="Spacer" />
+ <f:selectItem itemValue="SuggestionBox" itemLabel="Suggestion Box" />
+ <f:selectItem itemValue="TabPanel" itemLabel="Tab Panel" />
+ <f:selectItem itemValue="TogglePanel" itemLabel="Toggle Panel" />
+ <f:selectItem itemValue="ToolBar" itemLabel="Tool Bar" />
+ <f:selectItem itemValue="Tooltip" itemLabel="Tooltip" />
+ <f:selectItem itemValue="Tree" itemLabel="Tree" />
+ <f:selectItem itemValue="VirtualEarth" itemLabel="Virtual Earth" />
+ <f:selectItem itemValue="ScrollableDataTable" itemLabel="ScrollableDataTable" />
+ <f:selectItem itemValue="jQuery" itemLabel="jQuery" />
</h:selectOneMenu>
-
</h:panelGrid>
- </h:form>
-</f:subview>
\ No newline at end of file
+ </h:panelGrid>
+ <h:commandLink value="Back" action="main"></h:commandLink>
+</h:form>
Modified: trunk/test-applications/jsp/src/main/webapp/pages/Select/Map.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Select/Map.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Select/Map.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -6,17 +6,48 @@
<html>
<head>
<title></title>
+ <script type="text/javascript">
+ function print(elementID, value) {
+ var oldObject = window.document.getElementById(elementID);
+ var newObject = window.document.createElement('input');
+ newObject.type = "text";
+ newObject.size = oldObject.size;
+ newObject.value = value;
+ newObject.id = oldObject.id;
+ //if(oldObject.size) newObject.size = oldObject.size;
+ //if(oldObject.value) newObject.value = value;
+ //if(oldObject.id) newObject.id = oldObject.id;
+ //if(oldObject.name) newObject.name = oldObject.name;
+ //if(oldObject.className) newObject.className = oldObject.className;
+ oldObject.parentNode.replaceChild(newObject,oldObject);
+ }
+ </script>
<link rel="stylesheet" href="<%=request.getContextPath()%>/styles/styles.css" type="text/css" />
</head>
<body>
<jsp:include page="/pages/RichMenu/RichMenu.jsp" />
-
<div id="divID" style="position: absolute; top:60px; left: 10px; z-index: 1">
<jsp:include page="SelectOneMenuPage.jsp" />
</div>
- <div id="divPageID" style="position: absolute; top:110px; left: 10px;">
- <jsp:include page="${richBean.src}" />
+ <div id="divID" style="position: absolute; top:60px; left: 10px; z-index: 1">
+ <jsp:include page="${richBean.pathComponent}" />
</div>
+ <h:form>
+ <jsp:include page="${richBean.pathStraightforward}" />
+ <jsp:include page="${richBean.pathProperty}" />
+ </h:form>
+ <rich:modalPanel id="eventInfoID" minHeight="550" minWidth="200" moveable="true" resizeable="true" style="overflow: true;">
+ <f:facet name="header">
+ <h:outputText value="Events ..." />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif" onclick="Richfaces.hideModalPanel('eventInfoID');"/>
+ </f:facet>
+
+ <jsp:include page="/pages/Action/EventInfo.jsp" />
+
+ </rich:modalPanel>
+ <a4j:commandButton value="Show event" onclick="Richfaces.showModalPanel('eventInfoID');return false;"></a4j:commandButton>
</body>
</html>
</f:view>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/pages/main.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/main.jsp 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/pages/main.jsp 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,6 +1,6 @@
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<html>
<head>
@@ -9,17 +9,25 @@
</head>
<body>
<f:view>
- <h:form>
- <div align="center"><h:outputText
- value="VCP Test Application (JSF 1.1RI(1.2RI))" styleClass="maintext"></h:outputText></div>
+ <h:form id="mainFormID">
<rich:panel>
- <h:panelGrid columns="2" cellpadding="5px">
- <h:commandLink value="RichFaces" action="RichTest"></h:commandLink>
+ <f:verbatim>
+ <div align="center"><font size="4" color="#191970">RichFaces Test Application (JSF 1.1RI(1.2RI))</font></div>
+ </f:verbatim>
+ </rich:panel>
+ <rich:spacer></rich:spacer>
+ <rich:panel>
+ <h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
+ <h:commandLink value="RichFaces" action="RichFaces"></h:commandLink>
<h:commandLink value="Div" action="TestDiv"></h:commandLink>
<h:commandLink value="Select" action="Map"></h:commandLink>
<h:commandLink value="Customize page" action="CustomizePage"></h:commandLink>
- </h:panelGrid>
+ </h:panelGrid>
</rich:panel>
+ <rich:spacer></rich:spacer>
+ <rich:panel>
+ <h:outputText style="align:right;" value="RichFace: #{a4j.version}" />
+ </rich:panel>
</h:form>
</f:view>
</body>
Added: trunk/test-applications/jsp/src/main/webapp/styles/app.css
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/styles/app.css (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/styles/app.css 2007-12-19 11:44:24 UTC (rev 4914)
@@ -0,0 +1,29 @@
+.rich-message-label{
+ padding: 0px 10px;
+}
+
+.rich-messages-label{
+ padding: 0px 10px
+}
+
+.rich-message-marker{
+}
+
+.rich-message{
+}
+
+.errorLabel{
+ color: #FF0000;
+}
+
+.warnLabel{
+ color: #0000FF;
+}
+
+.infoLabel{
+ color: #00FF00;
+}
+
+.fatalLabel{
+ color: #FF1493;
+}
Modified: trunk/test-applications/jsp/src/main/webapp/styles/styles.css
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/styles/styles.css 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/jsp/src/main/webapp/styles/styles.css 2007-12-19 11:44:24 UTC (rev 4914)
@@ -1,63 +1,252 @@
+/*simple toggle panel (icon position)*/
+.dr-stglpanel-marker {
+ float: right;
+}
+/* Message and messages */
+.rich-message-label {
+ padding: 0px 10px;
+}
+
+.rich-messages-label {
+ padding: 0px 10px
+}
+
+.rich-message-marker {
+
+}
+
+.rich-message {
+
+}
+
+.errorLabel {
+ color: #FF0000;
+}
+
+.warnLabel {
+ color: #0000FF;
+}
+
+.infoLabel {
+ color: #00FF00;
+width: inherit;
+}
+
+.fatalLabel {
+ color: #FF1493;
+}
+
.maintext {
font-size: 30px !important;
}
-.text1{
+
+.text1 {
font-size: 14px !important;
}
-.style{
-background: teal;
-border: solid 3px red;
-font: bold 14px;
+
+.style {
+ background: teal;
+ border: solid 3px red;
+ font: bold 14px;
}
+
/* inputNumderSlider Styles */
-.barStyle{
-background-color: purple !important;
-border: red 3px solid;
+.barStyle {
+ background-color: purple !important;
+ border: red 3px solid;
}
-.inputStyle
-{
-background-color: lime !important;
-border: red 3px solid;
-font-family: monospace;
+
+.inputStyle {
+ background-color: lime !important;
+ border: red 3px solid;
+ font-family: monospace;
}
-.tipStyle{
-border: green 3px solid;
-background-color: yellow;
-font: italic bold 14px;
+
+.tipStyle {
+ border: green 3px solid;
+ background-color: yellow;
+ font: italic bold 14px;
}
-.handleStyle{
-border: green 3px solid;
-background-color: yellow;
+
+.handleStyle {
+ border: green 3px solid;
+ background-color: yellow;
}
+
/* TabPanel Styles */
-.activeTabStyle{
-background: lime;
-border: solid 3px black;
-font: italic 14px;
+.activeTabStyle {
+ background: lime;
+ border: solid 3px black;
+ font: italic 14px;
}
-.inactiveTabStyle{
-background: gray;
-border: solid 3px blue;
-font: bold 14px;
+
+.inactiveTabStyle {
+ background: gray;
+ border: solid 3px blue;
+ font: bold 14px;
}
-.disabledTabStyle{
-background: silver;
-border: dotted 3px blue;
-font: small-caps 14px;
+
+.disabledTabStyle {
+ background: silver;
+ border: dotted 3px blue;
+ font: small-caps 14px;
}
-.contentStyle{
-background: silver;
-border: 1px red;
-font: 20px;
+
+.contentStyle {
+ background: silver;
+ border: 1px red;
+ font: 20px;
}
+
/* inputNumerSpinner Styles*/
-.inputStyle{
-background: aqua ;
-border: thin red;
-font: fantasy 15px;
+.inputStyle {
+ background: aqua;
+ border: thin red;
+ font: fantasy 15px;
}
+
/* ToolBar Styles*/
-.separatorStyle{
-border: 3px solid red;
-background: lime;
+.separatorStyle {
+ border: 3px solid red;
+ background: lime;
}
+
+/*Calendar*/
+.smallText {
+ font-size: xx-small;
+}
+
+.largeText {
+ font-size: xx-large;
+}
+
+.Selecteddayclass {
+ background-color: #0087FF;
+}
+
+/*Data FilterSlider*/
+.column {
+ width: 75px;
+ font: normal 11px tahoma, sans-serif;
+ text-align: center;
+}
+
+.column-index {
+ width: 75px;
+ font: normal 11px tahoma, sans-serif;
+ text-align: left;
+}
+
+.list-row3 {
+ background-color: #ececec;
+}
+
+.list-row1 {
+ background-color: #f1f6fd;
+}
+
+.list-row2 {
+ background-color: #fff;
+}
+
+.list-header {
+ font: bold 11px tahoma, sans-serif;
+ text-align: center;
+}
+
+.list-table1 {
+ border: 1px solid #bed6f8;
+}
+
+.list-table2 {
+ border: 1px solid #bed6f8;
+}
+
+/*Drag and drop*/
+.dropzoneDecoration {
+ width: 70px;
+ height: 70px;
+ border: 2px dotted navy;
+}
+
+.accept {
+ border: 3px dotted green;
+ padding: 10px;
+}
+
+.reject {
+ border: 3px dashed red;
+ padding: 10px;
+}
+
+.mousemove {
+ border: 3px dotted green;
+ padding: 5px;
+}
+
+/*Panel2*/
+.panel {
+ vertical-align: top;
+}
+
+.rich-panel-header {
+ color: #F00 !important;
+}
+
+.top {
+ width: 200px !important;
+ height: 100px !important;
+}
+
+.hea {
+ color: #FCC !important;
+}
+
+.bo {
+ color: #F00 !important;
+}
+
+.top2 {
+ width: 200px !important;
+ height: 100px !important;
+ border: 2px solid #4C9600 !important;
+ background-color: #E4FFC8 !important;
+}
+
+.hea2 {
+ background-image: url() !important;
+ background-color: #4C9600 !important;
+ height: 18px !important;
+ text-align: center !important;
+ vertical-align: middle !important;
+ color: #CFF !important;
+ padding: 4px 0 !important;
+}
+
+.bo2 {
+ color: #4C9600;
+}
+
+.bo3 {
+ height: 100px;
+ overflow: auto;
+}
+
+/*TabPanel*/
+.text {
+ font-size: 20px
+}
+
+.bgc {
+ border: thick;
+ background-color: green
+}
+
+/*SimpleTogglePanel*/
+.head {
+ background-color: aqua;
+}
+
+.body {
+ background-color: pink;
+}
\ No newline at end of file
Modified: trunk/test-applications/pom.xml
===================================================================
--- trunk/test-applications/pom.xml 2007-12-19 11:34:43 UTC (rev 4913)
+++ trunk/test-applications/pom.xml 2007-12-19 11:44:24 UTC (rev 4914)
@@ -6,22 +6,22 @@
<relativePath>../samples</relativePath>
</parent>
- <repositories>
- <repository>
- <releases>
- <enabled>true</enabled>
- </releases>
+ <repositories>
+ <repository>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- </snapshots>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
- <id>maven2-snapshots.exadel.com</id>
- <name>Exadel Repository for Maven Snapshots</name>
- <url>http://maven.exadel.com/</url>
- <layout>default</layout>
- </repository>
+ <id>maven2-snapshots.exadel.com</id>
+ <name>Exadel Repository for Maven Snapshots</name>
+ <url>http://maven.exadel.com/</url>
+ <layout>default</layout>
+ </repository>
<repository>
<releases>
<enabled>true</enabled>
@@ -47,7 +47,7 @@
<name>RichFaces Test Applications</name>
<properties>
- <rfVersion>3.2.0-SNAPSHOT</rfVersion>
+ <rfVersion>3.1.2-SNAPSHOT</rfVersion>
</properties>
<modules>
@@ -74,14 +74,14 @@
<groupId>org.richfaces.ui</groupId>
<version>${rfVersion}</version>
</dependency>
- <dependency>
+ <dependency>
- <groupId>org.richfaces.ui</groupId>
+ <groupId>org.richfaces.ui</groupId>
- <artifactId>core</artifactId>
+ <artifactId>core</artifactId>
<version>${rfVersion}</version>
- <scope>provided</scope>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -148,4 +148,4 @@
</dependencies>
</profile>
</profiles>
-</project>
\ No newline at end of file
+</project>
More information about the richfaces-svn-commits
mailing list