JBoss Rich Faces SVN: r5373 - trunk/docs/userguide.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-01-15 06:47:54 -0500 (Tue, 15 Jan 2008)
New Revision: 5373
Modified:
trunk/docs/userguide/pom.xml
Log:
http://jira.jboss.com/jira/browse/RF-1199 - add rich:columns component
Modified: trunk/docs/userguide/pom.xml
===================================================================
--- trunk/docs/userguide/pom.xml 2008-01-15 11:10:49 UTC (rev 5372)
+++ trunk/docs/userguide/pom.xml 2008-01-15 11:47:54 UTC (rev 5373)
@@ -62,12 +62,24 @@
${project.version}
</version>
</artifactItem>
-
+
<artifactItem>
<groupId>
org.richfaces.ui
</groupId>
<artifactId>
+ columns
+ </artifactId>
+ <version>
+ ${project.version}
+ </version>
+ </artifactItem>
+
+ <artifactItem>
+ <groupId>
+ org.richfaces.ui
+ </groupId>
+ <artifactId>
componentControl
</artifactId>
<version>
17 years
JBoss Rich Faces SVN: r5372 - trunk/test-applications/facelets/src/main/webapp/pages/Rich.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2008-01-15 06:10:49 -0500 (Tue, 15 Jan 2008)
New Revision: 5372
Modified:
trunk/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml
Log:
Modified: trunk/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml 2008-01-15 11:08:34 UTC (rev 5371)
+++ trunk/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml 2008-01-15 11:10:49 UTC (rev 5372)
@@ -22,7 +22,7 @@
</head>
<body>
<div id="divOpthID" align="right" style="z-index: 200"><ui:include src="/pages/RichMenu/RichMenu.xhtml" /></div>
- <h:form>
+ <h:form id="formID">
<h:panelGrid id="richGridID" columns="1">
<h:column rendered="#{richBean.reComponent}">
<ui:include src="${richBean.pathComponent}" />
17 years
JBoss Rich Faces SVN: r5371 - trunk/test-applications/facelets/src/main/java/rich.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2008-01-15 06:08:34 -0500 (Tue, 15 Jan 2008)
New Revision: 5371
Modified:
trunk/test-applications/facelets/src/main/java/rich/RichBean.java
Log:
fix bug
Modified: trunk/test-applications/facelets/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/rich/RichBean.java 2008-01-15 08:16:20 UTC (rev 5370)
+++ trunk/test-applications/facelets/src/main/java/rich/RichBean.java 2008-01-15 11:08:34 UTC (rev 5371)
@@ -6,7 +6,7 @@
import org.richfaces.VersionBean;
public class RichBean {
- private static final String EXT = ".jsp";
+ private static final String EXT = ".xhtml";
private String version = VersionBean.SCM_REVISION;
private String src;
private MapComponent map;
17 years
JBoss Rich Faces SVN: r5370 - in trunk/test-applications/facelets/src/main: java/columns and 47 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2008-01-15 03:16:20 -0500 (Tue, 15 Jan 2008)
New Revision: 5370
Added:
trunk/test-applications/facelets/src/main/webapp/ComponentControl/CalendarJSAPI.xhtml
trunk/test-applications/facelets/src/main/webapp/ComponentControl/ContextMenuJSAPI.xhtml
trunk/test-applications/facelets/src/main/webapp/ComponentControl/ListShuttleJSAPI.xhtml
trunk/test-applications/facelets/src/main/webapp/ComponentControl/ModalPanelJSAPI.xhtml
trunk/test-applications/facelets/src/main/webapp/ComponentControl/OrderingListJSAPI.xhtml
trunk/test-applications/facelets/src/main/webapp/ComponentControl/PanelMenuJSAPI.xhtml
trunk/test-applications/facelets/src/main/webapp/ComponentControl/ScrollableDataTableJSAPI.xhtml
trunk/test-applications/facelets/src/main/webapp/ComponentControl/ToolTipJSAPI.xhtml
Removed:
trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryStraightforward.xhtml
Modified:
trunk/test-applications/facelets/src/main/java/calendar/CalendarBean.java
trunk/test-applications/facelets/src/main/java/calendar/CalendarDataModelImpl.java
trunk/test-applications/facelets/src/main/java/columns/Columns.java
trunk/test-applications/facelets/src/main/java/contextMenu/ContextMenu.java
trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java
trunk/test-applications/facelets/src/main/java/dfs/DataFilterSliderDaoImpl.java
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/rich/RichBean.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/util/data/Data.java
trunk/test-applications/facelets/src/main/java/util/phaseTracker/PhaseTracker.java
trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml
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/Columns/Columns.xhtml
trunk/test-applications/facelets/src/main/webapp/Columns/ColumnsProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml
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/CustomizePage/CustomizePage.xhtml
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/DataFilterSlider.xhtml
trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.xhtml
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/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/Effect/Effect.xhtml
trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml
trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSlider.xhtml
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/InputNumberSpinner.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/Insert/Insert.xhtml
trunk/test-applications/facelets/src/main/webapp/Insert/InsertProperty.xhtml
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/Message.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/ModalPanel.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/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/Paint2D.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/Panel.xhtml
trunk/test-applications/facelets/src/main/webapp/Panel/Panel2.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/PanelBar.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/PanelMenu.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/ScrollableDataTable/ScrollableDataTable.xhtml
trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/Separator/Separator.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/SimpleTogglePanel.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/Spacer.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/SuggestionBox.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/TabPanel.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/TogglePanel.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/ToolBar.xhtml
trunk/test-applications/facelets/src/main/webapp/ToolBar/ToolBarProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/Tooltip/Tooltip.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/Tree.xhtml
trunk/test-applications/facelets/src/main/webapp/Tree/TreeProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml
trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/jQuery/jQuery.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/RichMenu/RichMenu.xhtml
Log:
add ja api
update attribute
Modified: trunk/test-applications/facelets/src/main/java/calendar/CalendarBean.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/calendar/CalendarBean.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/calendar/CalendarBean.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -35,16 +35,16 @@
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;
@@ -72,10 +72,32 @@
private String toolTipMode;
private String label;
private String timeZone;
+ private String horizontalOffset;
+ private String verticalOffset;
private int zindex;
private int counter;
+ private String cellHeight;
+ private String cellWidth;
+ private boolean immediate;
+ private boolean isDayEnabled;
+ private boolean showApplyButton;
+ private boolean showScrollerBar;
+ private boolean showWeekDaysBar;
+ private boolean showWeeksBar;
+ private String todayControlMode; // scroll, select, hidden;
public CalendarBean() {
+ horizontalOffset = "0";
+ verticalOffset = "0";
+ isDayEnabled = true;
+ immediate = false;
+ cellHeight = "15";
+ cellWidth = "15";
+ showApplyButton = false;
+ showWeeksBar = false;
+ showWeekDaysBar = false;
+ showScrollerBar = false;
+ todayControlMode = "select";
mode = "client";
label = "Button label";
locale = new Locale("us","US","");
@@ -100,7 +122,96 @@
preloadDateRangeBegin = "10.08.2007"; //d.m.y
preloadDateRangeEnd = "11.10.2007";
}
+
+ public String getHorizontalOffset() {
+ return horizontalOffset;
+ }
+
+ public void setHorizontalOffset(String horizontalOffset) {
+ this.horizontalOffset = horizontalOffset;
+ }
+
+ public String getVerticalOffset() {
+ return verticalOffset;
+ }
+
+ public void setVerticalOffset(String verticalOffset) {
+ this.verticalOffset = verticalOffset;
+ }
+
+ public boolean getImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+ public boolean getIsDayEnabled() {
+ return isDayEnabled;
+ }
+
+ public void setIsDayEnabled(boolean isDayEnabled) {
+ this.isDayEnabled = isDayEnabled;
+ }
+
+ public String getTodayControlMode() {
+ return todayControlMode;
+ }
+
+ public void setTodayControlMode(String todayControlMode) {
+ this.todayControlMode = todayControlMode;
+ }
+
+ public String getCellHeight() {
+ return cellHeight;
+ }
+
+ public void setCellHeight(String cellHeight) {
+ this.cellHeight = cellHeight;
+ }
+
+ public String getCellWidth() {
+ return cellWidth;
+ }
+
+ public void setCellWidth(String cellWidth) {
+ this.cellWidth = cellWidth;
+ }
+
+ public boolean isShowApplyButton() {
+ return showApplyButton;
+ }
+
+ public void setShowApplyButton(boolean showApplyButton) {
+ this.showApplyButton = showApplyButton;
+ }
+
+ public boolean isShowScrollerBar() {
+ return showScrollerBar;
+ }
+
+ public void setShowScrollerBar(boolean showScrollerBar) {
+ this.showScrollerBar = showScrollerBar;
+ }
+
+ public boolean isShowWeekDaysBar() {
+ return showWeekDaysBar;
+ }
+
+ public void setShowWeekDaysBar(boolean showWeekDaysBar) {
+ this.showWeekDaysBar = showWeekDaysBar;
+ }
+
+ public boolean isShowWeeksBar() {
+ return showWeeksBar;
+ }
+
+ public void setShowWeeksBar(boolean showWeeksBar) {
+ this.showWeeksBar = showWeeksBar;
+ }
+
public boolean getRenderedAjax() {
if(mode.equalsIgnoreCase("ajax") && rendered) return true;
else return false;
Modified: trunk/test-applications/facelets/src/main/java/calendar/CalendarDataModelImpl.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/calendar/CalendarDataModelImpl.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/calendar/CalendarDataModelImpl.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -29,6 +29,9 @@
import java.util.Map;
import java.util.Random;
+import javax.faces.application.FacesMessage;
+import javax.faces.validator.ValidatorException;
+
import org.richfaces.model.CalendarDataModel;
import org.richfaces.model.CalendarDataModelItem;
@@ -68,14 +71,21 @@
c.setTime(date);
item.setDay(c.get(Calendar.DAY_OF_MONTH));*/
- if (new Random().nextInt(10) > 5) {
- item.setEnabled(true);
- } else {
- item.setEnabled(false);
- }
+// if (new Random().nextInt(10) > 5) {
+// item.setEnabled(true);
+// } else {
+// item.setEnabled(false);
+// }
item.setData(data);
-
+ if (date != null) {
+ Calendar calendar = Calendar.getInstance();
+ calendar.setTime(date);
+ int d = calendar.get(Calendar.DATE);
+ if (d == 7 || d == 15) {
+ item.setEnabled(false);
+ } else item.setEnabled(true);
+ }
System.out.println(item.getData() + " " + item.isEnabled());
return item;
Modified: trunk/test-applications/facelets/src/main/java/columns/Columns.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/columns/Columns.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/columns/Columns.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -21,16 +21,15 @@
private boolean breakBefore;
private boolean sortable;
private boolean dataTableRendered;
-
public Columns() {
this.columns = "3";
this.begin = "0";
this.end = "10";
this.width = "100";
this.title = "Title columns";
- this.colspan = 5;
- this.rowspan = 5;
- this.breakBefore = true;
+ this.colspan = 1;
+ this.rowspan = 1;
+ this.breakBefore = false;
this.sortable = true;
this.dataTableRendered = true;
this.length1 = 5;
Modified: trunk/test-applications/facelets/src/main/java/contextMenu/ContextMenu.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/contextMenu/ContextMenu.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/contextMenu/ContextMenu.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -32,6 +32,7 @@
Map params = facesContext.getExternalContext().getRequestParameterMap();
String cmdParam = (String) params.get("cmdParam");
if (cmdParam != null) info = cmdParam;
+ System.out.println(info);
return info;
}
@@ -45,17 +46,18 @@
}
public ContextMenu() {
- selectOneMenu = "item1";
- inputText = "inputText";
- submitMode = "none";
- event = "oncontextmenu";
- popupWidth = "300px";
- hideDelay = 3;
- showDelay = 3;
- disableDefaultMenu = true;
- rendered = true;
- disamble = false;
- attached = true;
+ 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() {
Modified: trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -15,11 +15,19 @@
private String align;
private String border;
private String width;
+ private String columns;
private String columnsWidth;
+ private String cellpadding;
+ private String cellspacing;
+ private String rows;
private boolean r2rendered;
private boolean rendered;
public DataTable() {
+ columns = "2";
+ cellpadding = "0";
+ cellspacing = "0";
+ rows = "0";
align = "center";
border = "1";
width = "400px";
@@ -178,4 +186,36 @@
setColumnsWidth("400px");
setWidth("800px");
}
+
+ public String getColumns() {
+ return columns;
+ }
+
+ public void setColumns(String columns) {
+ this.columns = columns;
+ }
+
+ public String getCellpadding() {
+ return cellpadding;
+ }
+
+ public void setCellpadding(String cellpadding) {
+ this.cellpadding = cellpadding;
+ }
+
+ public String getCellspacing() {
+ return cellspacing;
+ }
+
+ public void setCellspacing(String cellspacing) {
+ this.cellspacing = cellspacing;
+ }
+
+ public String getRows() {
+ return rows;
+ }
+
+ public void setRows(String rows) {
+ this.rows = rows;
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/dfs/DataFilterSliderDaoImpl.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dfs/DataFilterSliderDaoImpl.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/dfs/DataFilterSliderDaoImpl.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -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/facelets/src/main/java/orderingList/OrderingList.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/orderingList/OrderingList.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/orderingList/OrderingList.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -11,7 +11,6 @@
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;
@@ -66,7 +65,7 @@
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]));
+ list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), Data.statusIcon[i % 5]));
}
public OrderingList() {
Modified: trunk/test-applications/facelets/src/main/java/rich/MapComponent.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/rich/MapComponent.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/rich/MapComponent.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -3,6 +3,7 @@
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
+import java.util.Set;
public class MapComponent {
private Map<String, ArrayList<String>> m;
@@ -18,4 +19,8 @@
public ArrayList<String> get(String key){
return m.get(key);
}
+
+ public Set getSet() {
+ return m.keySet();
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/rich/RichBean.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/rich/RichBean.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,24 +1,27 @@
package rich;
import java.util.ArrayList;
+import java.util.List;
import org.richfaces.VersionBean;
public class RichBean {
- private static final String EXT = ".xhtml";
+ 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 boolean log;
//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 = "Blank";
reComponent = true;
reProperty = true;
reStraightforward = true;
+ log = false;
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}));
@@ -120,4 +123,12 @@
public void setVersion(String version) {
this.version = version;
}
+
+ public boolean isLog() {
+ return log;
+ }
+
+ public void setLog(boolean log) {
+ this.log = log;
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/sb/Data.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/sb/Data.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/sb/Data.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -34,4 +34,12 @@
public void setContry(String contry) {
this.contry = contry;
}
+
+ public String getText() {
+ return city + " (" + contry + ")";
+ }
+
+ public String toString() {
+ return city + " (" + contry + ")";
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/sb/Sb.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/sb/Sb.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/sb/Sb.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -11,15 +11,14 @@
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 frequency;
private String rules;
private String border;
private String width;
@@ -27,6 +26,7 @@
private String shadowOpacity;
private String bgColor;
private String shadowDepth;
+ private Object tokens;
private boolean focus;
/*
@@ -50,6 +50,7 @@
public Sb() {
+ tokens = "[ ,";
border = "1";
width = "200";
height = "150";
@@ -62,7 +63,7 @@
cellspacing = "2";
cellpadding = "2";
minchars = "1";
- frequency = "0";
+ frequency = 0;
rules = "none";
setCities(getAllData());
}
@@ -162,15 +163,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;
}
@@ -202,14 +199,6 @@
this.rules = rules;
}
- public ArrayList getTokens() {
- return tokens;
- }
-
- public void setTokens(ArrayList tokens) {
- this.tokens = tokens;
- }
-
public void OnSelect() {
System.out.print("Onselect works!!!");
}
@@ -282,7 +271,7 @@
setBorder("2");
setCellpadding("0");
setCellspacing("0");
- setFrequency("0");
+ setFrequency(0);
setHeight("150");
setWidth("200");
setMinchars("1");
@@ -295,7 +284,7 @@
setBorder("0");
setCellpadding("3");
setCellspacing("3");
- setFrequency("2");
+ setFrequency(2);
setHeight("200");
setWidth("200");
setMinchars("1");
@@ -308,7 +297,7 @@
setBorder("1");
setCellpadding("5");
setCellspacing("0");
- setFrequency("1");
+ setFrequency(1);
setHeight("150");
setWidth("200");
setMinchars("2");
@@ -321,7 +310,7 @@
setBorder("1");
setCellpadding("0");
setCellspacing("5");
- setFrequency("3");
+ setFrequency(3);
setHeight("150");
setWidth("200");
setMinchars("2");
@@ -334,7 +323,7 @@
setBorder("4");
setCellpadding("1");
setCellspacing("1");
- setFrequency("5");
+ setFrequency(5);
setHeight("200");
setWidth("400");
setMinchars("2");
@@ -342,4 +331,16 @@
setShadowOpacity("5");
setZindex(1);
}
+
+ public void setTokens(String tokens) {
+ this.tokens = tokens;
+ }
+
+ public Object getTokens() {
+ return tokens;
+ }
+
+ public void setTokens(Object tokens) {
+ this.tokens = tokens;
+ }
}
Modified: trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,20 +1,157 @@
package scrollableDataTable;
import java.util.ArrayList;
-import java.util.Random;
-import dataScroller.Data;
+import org.ajax4jsf.model.DataComponentState;
+import org.richfaces.model.selection.Selection;
+import util.data.Data;
+
+
+/**
+ * @author AYanul
+ *
+ */
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;
+ private int dataLength;
+ private int frozenColCount;
+ private int first;
+ private boolean rendered;
+ private String timeout;
+ private String height;
+ private boolean limitToList;
+ private DataComponentState componentState;
+ private boolean bypassUpdates;
+ private boolean ignoreDupResponses;
+ private String eventsQueue;
+ private String activeRowKey;
+ private Selection selection;
+ private boolean ajaxSingle;
+
+ public ScrollableDataTable() {
+ width = "400px";
+ rows = 30;
+ hideWhenScrolling = false;
+ dataLength = 40;
+ data = new ArrayList<Data>();
+ first = 0;
+ rendered = true;
+ timeout = "10";
+ height = "400px";
+ limitToList = false;
+ bypassUpdates = false;
+ ignoreDupResponses = false;
+ ajaxSingle = false;
+ addNewItem();
+ }
+
+ public Selection getSelection() {
+ return selection;
+ }
+
+ public void setSelection(Selection selection) {
+ this.selection = selection;
+ }
+
+ public int getFrozenColCount() {
+ return frozenColCount;
+ }
+
+ public void setFrozenColCount(int frozenColCount) {
+ this.frozenColCount = frozenColCount;
+ }
+
+ 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 getTimeout() {
+ return timeout;
+ }
+
+ public void setTimeout(String timeout) {
+ this.timeout = timeout;
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public boolean isLimitToList() {
+ return limitToList;
+ }
+
+ public void setLimitToList(boolean limitToList) {
+ this.limitToList = limitToList;
+ }
+
+ public DataComponentState getComponentState() {
+ return componentState;
+ }
+
+ public void setComponentState(DataComponentState componentState) {
+ this.componentState = componentState;
+ }
+
+ public boolean isBypassUpdates() {
+ return bypassUpdates;
+ }
+
+ public void setBypassUpdates(boolean bypassUpdates) {
+ this.bypassUpdates = bypassUpdates;
+ }
+
+ public boolean isIgnoreDupResponses() {
+ return ignoreDupResponses;
+ }
+
+ public void setIgnoreDupResponses(boolean ignoreDupResponses) {
+ this.ignoreDupResponses = ignoreDupResponses;
+ }
+
+ public String getEventsQueue() {
+ return eventsQueue;
+ }
+
+ public void setEventsQueue(String eventsQueue) {
+ this.eventsQueue = eventsQueue;
+ }
+
+ public String getActiveRowKey() {
+ return activeRowKey;
+ }
+
+ public void setActiveRowKey(String activeRowKey) {
+ this.activeRowKey = activeRowKey;
+ }
+
+ public String getKey() {
+ return key;
+ }
+
public boolean isHideWhenScrolling() {
return hideWhenScrolling;
}
@@ -22,20 +159,17 @@
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 void addNewItem() {
+ if(dataLength < 0) dataLength = 0;
+ if(data.size() > dataLength)
+ for(int i = dataLength; i < data.size(); )
+ data.remove(i);
+ else
+ for(int i = data.size() + 1; i <= dataLength; i++)
+ data.add(new Data(i, "Text " + i, "Link " + i, "select" +(i % 5), Data.statusIcon[i % 5]));
}
-
+
public ArrayList<Data> getData() {
return data;
}
@@ -63,4 +197,20 @@
public void setKey(String key) {
this.key = key;
}
+
+ public int getDataLength() {
+ return dataLength;
+ }
+
+ public void setDataLength(int dataLength) {
+ this.dataLength = dataLength;
+ }
+
+ public boolean isAjaxSingle() {
+ return ajaxSingle;
+ }
+
+ public void setAjaxSingle(boolean ajaxSingle) {
+ this.ajaxSingle = ajaxSingle;
+ }
}
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/java/util/data/Data.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/data/Data.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/util/data/Data.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,7 +1,10 @@
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[] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
+ public static final String[] status = {"error", "fatal", "info", "passed", "warn"};
+
+ 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"};
Modified: trunk/test-applications/facelets/src/main/java/util/phaseTracker/PhaseTracker.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/phaseTracker/PhaseTracker.java 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/java/util/phaseTracker/PhaseTracker.java 2008-01-15 08:16:20 UTC (rev 5370)
@@ -21,7 +21,7 @@
* @see javax.faces.event.PhaseListener#afterPhase(javax.faces.event.PhaseEvent)
*/
public void afterPhase(PhaseEvent arg0) {
- //System.out.println("PhaseTracker.afterPhase()" + arg0.getPhaseId());
+ System.out.println("PhaseTracker.afterPhase()" + arg0.getPhaseId());
}
/* (non-Javadoc)
Modified: trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,94 +1,97 @@
-<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:messages />
- <rich:messages showDetail="true"></rich:messages>
-
- <h:panelGrid columns="2">
- <h:outputText value="Client mode" rendered="#{calendarBean.renderedClient}" />
- <h:outputText value="Ajax mode" rendered="#{calendarBean.renderedAjax}"/>
+<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" id="calendarSubviewID">
- <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>
+ <h:messages />
+ <rich:messages showDetail="true"></rich:messages>
- <f:facet name="optionalHeader">
- <h:outputText value="optionalHeader Facet #{headerFacet}" />
- </f:facet>
+ <h:panelGrid columns="2">
+ <h:outputText value="Client mode" rendered="#{calendarBean.renderedClient}" />
+ <h:outputText value="Ajax mode" rendered="#{calendarBean.renderedAjax}" />
- <f:facet name="optionalFooter">
- <h:outputText value="optionalFooter Facet" />
- </f:facet>
+ <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}" cellHeight="#{calendarBean.cellHeight}"
+ cellWidth="#{calendarBean.cellWidth}" showApplyButton="#{calendarBean.showApplyButton}"
+ showScrollerBar="#{calendarBean.showScrollerBar}" showWeekDaysBar="#{calendarBean.showWeekDaysBar}"
+ showWeeksBar="#{calendarBean.showWeeksBar}" todayControlMode="#{calendarBean.todayControlMode}"
+ immediate="#{calendarBean.immediate}">
+ <f:facet name="weekDay">
+ <f:verbatim>
+ <span style="padding: 2px; font-size: 4">{weekDayLabel + weekDayLabelShort}</span>
+ </f:verbatim>
+ </f:facet>
- <f:validator validatorId="org.richfaces.CalendarValidator" />
+ <f:facet name="optionalHeader">
+ <h:outputText value="optionalHeader Facet" />
+ </f:facet>
- <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>
+ <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>
+ </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>
- </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="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:panelGrid>
+ </rich:calendar>
- <f:facet name="optionalHeader">
- <h:outputText value="optionalHeader Facet" />
- </f:facet>
+ <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="optionalFooter">
- <h:outputText value="optionalFooter Facet" />
- </f:facet>
+ <f:facet name="optionalHeader">
+ <h:outputText value="optionalHeader Facet" />
+ </f:facet>
- <f:validator validatorId="org.richfaces.CalendarValidator" />
+ <f:facet name="optionalFooter">
+ <h:outputText value="optionalFooter Facet" />
+ </f:facet>
- <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>
+ <f:validator validatorId="org.richfaces.CalendarValidator" />
+
+ <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>
- </rich:calendar>
- </h:panelGrid>
+ </h:panelGrid>
+ </rich:calendar>
+ </h:panelGrid>
</f:subview>
Modified: trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,12 +1,15 @@
-<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">
+
+<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" id="calendarPropertySubviewID">
+
<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"/>
@@ -15,7 +18,7 @@
<h:outputText value="Select Locale:" />
- <h:selectOneRadio onchange="submit()" valueChangeListener="#{calendarBean.selectLocale}">
+ <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" />
@@ -23,9 +26,38 @@
</h:selectOneRadio>
<h:outputText value="Popup Mode:" />
- <h:selectBooleanCheckbox id="popupModeID" value="#{calendarBean.popup}" onclick="submit()" />
+ <h:selectBooleanCheckbox id="popupModeID" value="#{calendarBean.popup}" onclick="submit();" />
+
+ <h:outputText value="showApplyButton: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showApplyButton}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="showScrollerBar: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showScrollerBar}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="showWeeksBar: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showWeeksBar}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="showWeekDaysBar: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showWeekDaysBar}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="isDayEnabled: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.isDayEnabled}"></h:selectBooleanCheckbox>
+
+ <h:outputText value="cellHeight: "></h:outputText>
+ <h:inputText value="#{calendarBean.cellHeight}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="cellWidth: "></h:outputText>
+ <h:inputText value="#{calendarBean.cellWidth}" onchange="submit();"></h:inputText>
<h:outputText value="Custom day labels" />
+ <h:selectOneRadio value="#{calendarBean.todayControlMode}">
+ <f:selectItem itemLabel="scroll" itemValue="scroll" />
+ <f:selectItem itemLabel="select" itemValue="select" />
+ <f:selectItem itemLabel="hidden" itemValue="hidden" />
+ <a4j:support event="onclick" reRender="calendarClientID,calendarAjaxID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Custom day labels" />
<h:selectOneRadio value="#{calendarBean.weekDay}">
<f:selectItem itemLabel="none" itemValue="none" />
<f:selectItem itemLabel="day labels" itemValue="long" />
@@ -64,6 +96,15 @@
<a4j:support event="onchange" reRender="calendarClientID,calendarAjaxID"></a4j:support>
</h:inputText>
+ <h:outputText value="horizontalOffset: "></h:outputText>
+ <h:inputText value="#{calendarBean.horizontalOffset}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="verticalOffset:"></h:outputText>
+ <h:inputText value="#{calendarBean.verticalOffset}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="immediate: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.immediate}"></h:selectBooleanCheckbox>
+
<h:outputText value="reRender (counter):" />
<h:outputText id="counter" value="#{calendarBean.counter}" />
@@ -135,5 +176,27 @@
<f:verbatim></f:verbatim>
<h:commandButton value="Submit" />
</h:panelGrid>
- </rich:simpleTogglePanel>
+ <h:panelGrid columns="3">
+ <h:column></h:column>
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.doExpand(event)" value="expand"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.enable()" value="enable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.disable()" value="disable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.nextMonth()" value="nextMonth"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.prevMonth()" value="prevMonth"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.nextYear()" value="nextYear"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.prevYear()" value="prevYear"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.today()" value="today"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getSelectedDate())" value="getSelectedDate"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.enableDate" value="enableDate"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.disableDate" value="disableDate"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.enableDates" value="enableDates"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.disableDates" value="disableDates"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.isDateEnabled(new Data))" value="isDateEnabled"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.selectDate(new Data)" value="selectDate"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getData())" value="getData"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentMonth())" value="getCurrentMonth"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentYear())" value="getCurrentYear"></a4j:commandLink>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="calendarStraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{calendarBean.bTest1}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
@@ -26,5 +21,4 @@
<a4j:commandButton action="#{calendarBean.bTest5}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
<h:outputText value="#{msg.t5Calendar}" />
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
Modified: trunk/test-applications/facelets/src/main/webapp/Columns/Columns.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Columns/Columns.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Columns/Columns.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<f:subview id="columnsSubviewID"
- 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 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" id="columnsSubviewID">
<h:selectBooleanCheckbox value="#{columns.dataTableRendered}">
<a4j:support event="onchange" reRender="richGridID"></a4j:support>
</h:selectBooleanCheckbox>
@@ -12,16 +8,28 @@
<rich:dataTable id="richColumnsID" value="#{columns.data1}" var="d1" rendered="#{columns.dataTableRendered}">
<h:column>
+ <f:facet name="header">
+ <h:outputText value="header (h)"></h:outputText>
+ </f:facet>
<h:outputText value="h: #{d1.int0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer (h)"></h:outputText>
+ </f:facet>
</h:column>
-
+
<rich:column>
+ <f:facet name="header">
+ <h:outputText value="header (rich)"></h:outputText>
+ </f:facet>
<h:outputText value="rich: #{d1.int0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer (rich)"></h:outputText>
+ </f:facet>
</rich:column>
<rich:columns value="#{columns.data2}" var="d2" breakBefore="#{columns.breakBefore}" colspan="#{columns.colspan}"
columns="#{columns.columns}" index="index" rowspan="#{columns.rowspan}" sortable="#{columns.sortable}"
- begin="#{columns.begin}" end="100" width="#{columns.width}">
+ begin="#{columns.begin}" end="#{columns.end}" width="#{columns.width}">
<f:facet name="header">
<h:outputText value="header #{d2.int0}"></h:outputText>
</f:facet>
@@ -36,16 +44,28 @@
<h:dataTable id="hColumnsID" value="#{columns.data1}" var="d1" rendered="#{!columns.dataTableRendered}" border="1">
<h:column>
+ <f:facet name="header">
+ <h:outputText value="header (h)"></h:outputText>
+ </f:facet>
<h:outputText value="h: #{d1.int0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer (h)"></h:outputText>
+ </f:facet>
</h:column>
-
+
<rich:column>
+ <f:facet name="header">
+ <h:outputText value="header (rich)"></h:outputText>
+ </f:facet>
<h:outputText value="rich: #{d1.int0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer (rich)"></h:outputText>
+ </f:facet>
</rich:column>
<rich:columns value="#{columns.data2}" var="d2" breakBefore="#{columns.breakBefore}" colspan="#{columns.colspan}"
columns="#{columns.columns}" index="index" rowspan="#{columns.rowspan}" sortable="#{columns.sortable}"
- begin="#{columns.begin}" end="100" width="#{columns.width}">
+ begin="#{columns.begin}" end="#{columns.end}" width="#{columns.width}">
<f:facet name="header">
<h:outputText value="header #{d2.int0}"></h:outputText>
</f:facet>
Modified: trunk/test-applications/facelets/src/main/webapp/Columns/ColumnsProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Columns/ColumnsProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Columns/ColumnsProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,6 @@
-<f:subview id="columnsPropertyID"
- 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:commandButton action="submit();" value="submit"></h:commandButton>
+
+<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" id="columnsPropertyID">
+ <h:commandButton value="submit"></h:commandButton>
<a4j:commandButton value="submit [a4j]" reRender="columnsID"></a4j:commandButton>
<h:panelGrid columns="2">
<f:facet name="header">
Added: trunk/test-applications/facelets/src/main/webapp/ComponentControl/CalendarJSAPI.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ComponentControl/CalendarJSAPI.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ComponentControl/CalendarJSAPI.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -0,0 +1,46 @@
+
+<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" id="calendarJSAPIID">
+ <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>
+ <br />
+ <a href="#" id="doEnableCalendarID">Calendar (enable)</a>
+ <br />
+ <a href="#" id="doDisableCalendarID">Calendar (disable)</a>
+ <br />
+ <a href="#" id="doCurrentYearCalendarID">Calendar (currentYear)</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" />
+ <rich:componentControl attachTo="doEnableCalendarID" for="ccCalendarID" event="onclick" operation="enable" />
+ <rich:componentControl attachTo="doDisableCalendarID" for="ccCalendarID" event="onclick" operation="disable" />
+ <rich:componentControl attachTo="doTodayCalendarID" for="ccCalendarID" event="onclick" operation="disable" />
+ <rich:componentControl attachTo="doCurrentYearCalendarID" for="ccCalendarID" event="onclick" operation="getCurrentYear" />
+ <f:verbatim>
+selectDate(date) Selects the date specified. If the date isn't in current month - performs request to select
+isDateEnabled(date) Checks if given date is selectable
+enableDate(date) Enables date cell control on the calendar
+disableDate(date) Disables date cell control on the calendar
+enableDates(date[]) Enables dates cell controls set on the calendar
+disableDates(date[]) Disables dates cell controls set on the calendar
+getSelectedDate() Returns currently selected date
+Object getData() Returns additional data for the date
+getCurrentMonth() Returns number of the month currently being viewed
+getCurrentYear() Returns number of the year currently being viewed
+</f:verbatim>
+</f:subview>
Modified: trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,5 @@
-<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>
+
+<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" id="componentControlSubviewID">
<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>
@@ -20,61 +19,19 @@
<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" />
+ <rich:calendar popup="#{componentControl.calendarPopup}" id="ccCalendarID" mode="ajax" />
<h:panelGrid columns="2">
<h:outputText value="popup calendar" />
<h:selectBooleanCheckbox id="calendarSelectID" value="#{componentControl.calendarPopup}" onchange="submit();" />
</h:panelGrid>
+<a onclick="$('j_id_jsp_362828066_1:componentControlSubviewID:ccCalendarID').component.Expand()" href="#">Show</a>
- <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 />
@@ -84,21 +41,19 @@
<h:outputText value="click text" />
</rich:panelMenu>
- <rich:contextMenu id="ccContextMenuID" submitMode="ajax">
- <rich:menuItem icon="/pics/header.png" value="tab1" reRender="cmInfoID">
- <f:param name="cmdParam" value="menu" />
+ <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" reRender="cmInfoID">
- <f:param name="cmdParam" value="a" />
+ <rich:menuItem icon="/pics/info.gif" value="a">
</rich:menuItem>
- <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
- <f:param name="cmdParam" value="b" />
+ <rich:menuItem icon="/pics/info.gif" value="b">
</rich:menuItem>
- <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
- <f:param name="cmdParam" value="c" />
+ <rich:menuItem icon="/pics/info.gif" value="c">
</rich:menuItem>
</rich:contextMenu>
- <rich:componentControl event="oncontextmenu" attachTo="ccContextMenuPanelMenuID" for="ccContextMenuID" operation="doShow" />
- </h:form>
+ <rich:componentControl event="oncontextmenu" attachTo="ccContextMenuPanelMenuID" for="ccContextMenuID"
+ operation="show" params="expand:'show work'" />
+
+ <jsp:include page="CalendarJSAPI.jsp" />
</f:subview>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/ComponentControl/ContextMenuJSAPI.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ComponentControl/ContextMenuJSAPI.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ComponentControl/ContextMenuJSAPI.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -0,0 +1,3 @@
+
+<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" id="contextMenuJSAPIID">
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/ComponentControl/ListShuttleJSAPI.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ComponentControl/ListShuttleJSAPI.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ComponentControl/ListShuttleJSAPI.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -0,0 +1,3 @@
+
+<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" id="ListShuttleJSAPIID">
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/ComponentControl/ModalPanelJSAPI.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ComponentControl/ModalPanelJSAPI.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ComponentControl/ModalPanelJSAPI.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -0,0 +1,3 @@
+
+<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" id="modalPanelJSAPIID">
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/ComponentControl/OrderingListJSAPI.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ComponentControl/OrderingListJSAPI.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ComponentControl/OrderingListJSAPI.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -0,0 +1,3 @@
+
+<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" id="orderinJSAPIID">
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/ComponentControl/PanelMenuJSAPI.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ComponentControl/PanelMenuJSAPI.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ComponentControl/PanelMenuJSAPI.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -0,0 +1,3 @@
+
+<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" id="PanelMenuJSAPIID">
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/ComponentControl/ScrollableDataTableJSAPI.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ComponentControl/ScrollableDataTableJSAPI.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ComponentControl/ScrollableDataTableJSAPI.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -0,0 +1,3 @@
+
+<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" id="scrollableDataTableJSAPIID">
+</f:subview>
Added: trunk/test-applications/facelets/src/main/webapp/ComponentControl/ToolTipJSAPI.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ComponentControl/ToolTipJSAPI.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ComponentControl/ToolTipJSAPI.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -0,0 +1,3 @@
+
+<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" id="toolTipJSAPIID">
+</f:subview>
Modified: trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,11 +1,14 @@
-<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">
+
+<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" 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:menuItem icon="/pics/header.png" value="JSAPI Hide" onclick="$(formID:contextMenuSubviewID:contextMenuDefaultID).component.doHide()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="hide" />
</rich:menuItem>
<rich:menuSeparator />
<rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
@@ -35,14 +38,16 @@
</rich:menuItem>
</rich:menuGroup>
</rich:contextMenu>
+ <a4j:commandLink onclick="$(formID:contextMenuSubviewID:contextMenuDefaultID).component.doShow()" value="JSAPI Show"></a4j:commandLink>
</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">
+ <rich:menuItem icon="/pics/header.png" value="abc" reRender="cmInfoID">
<f:param name="cmdParam" value="abc" />
</rich:menuItem>
<rich:menuSeparator />
Modified: trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,6 @@
-<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">
+<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" 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();" />
@@ -30,11 +30,10 @@
</h:inputText>
<h:outputText value="submitMode:" />
- <h:selectOneRadio value="#{contextMenu.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" />
- <a4j:support event="onchange" action="submit();"></a4j:support>
</h:selectOneRadio>
<h:outputText value="attached" />
Modified: trunk/test-applications/facelets/src/main/webapp/CustomizePage/CustomizePage.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/CustomizePage/CustomizePage.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/CustomizePage/CustomizePage.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,27 +1,31 @@
<!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>
-<link rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/styles/styles.css" type="text/css" />
-</head>
-
+<html>
<f:view>
- <h:form id="test">
-<rich:tabPanel switchType="ajax">
+ <head>
+ <f:loadBundle basename="message" var="msg" />
+ <title></title>
-<rich:tab label="Sample 1">
-<h:outputText value="1"></h:outputText>
-<h:inputText value="#{dDMenu.mode}" required="true" />
-</rich:tab>
+ <script type="text/javascript">
+ function showEvent(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>
+ <h:form id="test">
-<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>
+ </h:form>
+ </body>
+</f:view>
+</html>
-</rich:tabPanel>
- </h:form>
-</f:view>
-</html>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionList.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionList.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionList.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,5 +1,5 @@
-<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">
+
+<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" 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}">
Modified: trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<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">
+
+<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" id="dataDefinitionListPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="title" />
<h:inputText value="#{dataDefinitionList.title}" >
Modified: trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSlider.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSlider.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSlider.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,6 @@
-<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">
+<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" id="dataFilterSliderSubviewID">
+
<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"
Modified: trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<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">
+
+<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" id="dataFilterSliderPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="Rendered:" />
<h:selectBooleanCheckbox value="#{dfs.rendered}" >
Modified: trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,7 +1,7 @@
-<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">
+
+<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" id="dataOrderedListSubviewID">
<rich:dataOrderedList id="doListID" value="#{dataOrderedList.arr}" var="arr" first="#{dataOrderedList.first}"
- rendered="#{dataOrderedList.rendered}" title="#{dataOrderedList.title}" type="disc" dir="#{dataOrderedList.dir}"
+ rendered="#{dataOrderedList.rendered}" title="#{dataOrderedList.title}" type="#{dataOrderedList.type}" dir="#{dataOrderedList.dir}"
rows="#{dataOrderedList.rows}">
<f:facet name="header">
<h:outputText value="Africa(header):" />
Modified: trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<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">
+
+<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" id="dataOrderedListPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="title" />
<h:inputText value="#{dataOrderedList.title}" >
Modified: trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<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">
+
+<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" id="DataScrollerSubviewID">
<h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
var="dT" cellpadding="5px" rows="5" border="1">
<f:facet name="header">
Modified: trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,12 +1,6 @@
-<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">
+<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" id="datascrollerPropertySubviewID">
+
<h:commandButton action="#{dataScroller.CutArray}" value="CutArray" />
<h:commandButton action="#{dataScroller.RestoreArray}"
value="RestoreArray" />
@@ -45,5 +39,4 @@
<a4j:support event="onclick" reRender="dataTableId"></a4j:support>
</h:selectOneRadio>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,11 +1,5 @@
-<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">
+
+<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" id="datascrollerStraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{dataScroller.bTest1}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
@@ -27,5 +21,4 @@
<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
Modified: trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,5 +1,5 @@
-<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">
+
+<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" 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="showEvent('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"
Modified: trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="dataTablePropertySubviewID">
<h:panelGrid columns="2" style="top">
<h:outputText value="Align:"></h:outputText>
<h:selectOneMenu value="#{dataTable.align}">
@@ -35,5 +30,4 @@
<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
Modified: trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="StraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{dataTable.bTest1}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
@@ -26,5 +21,4 @@
<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/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,7 +1,11 @@
-<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">
+
+<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" id="dataDefinitionListSubviewID">
+
+ <a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+ </a4j:outputPanel>
- <script type="text/javascript">
+ <script>
DnD.CLIENT_VALIDATION_OFF = false;
</script>
@@ -28,7 +32,7 @@
<h:outputText value="#{type} - drop" />
<rich:dropSupport reRender="dragValueText" ondragenter="showEvent('InputID', ' work!')" ondragexit="showEvent('InputID', ' work!')"
ondrop="showEvent('InputID', ' work!')" ondropend="showEvent('InputID', ' work!')"
- oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+ oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
onsubmit="showEvent('onsubmitInputID', 'onsubmit work!')"
action="#{dndBean.dropAction}" acceptedTypes="#{type}" dropListener="#{dndBean.processDrop}" dropValue="#{type} - value">
</rich:dropSupport>
@@ -72,7 +76,7 @@
<h:panelGrid styleClass="dropzoneDecoration" id="grid1">
<f:verbatim>Accepts file and folder... Customizes</f:verbatim>
<rich:dropSupport id="zone1"
- oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+ oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
onsubmit="showEvent('onsubmitInputID', 'onsubmit work!')" ondragenter="showEvent('ondragenterInputID', 'ondragenter work!')"
ondragexit="showEvent('ondragexitInputID', 'ondragexit work!')" ondropend="showEvent('ondropendInputID', 'ondropend work!')"
ondrop="showEvent('ondropInputID', 'ondrop work!')"
@@ -189,10 +193,4 @@
<h:graphicImage id="dragImage" value="/pics/masshtaby_01.jpg" width="200px" height="200px" />
<f:verbatim>dragSupport</f:verbatim>
</h:panelGrid>
-
-
-
- <a4j:outputPanel ajaxRendered="true">
- <h:messages />
- </a4j:outputPanel>
</f:subview>
Modified: trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenu.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenu.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,9 @@
-<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">
+
+<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" 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}"
+ <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}"
@@ -60,5 +60,4 @@
</rich:dropDownMenu>
</rich:panel>
</h:panelGrid>
- <a4j:log></a4j:log>
</f:subview>
Modified: trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="dropDownMenuPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="HideDelay (ms):" />
<h:inputText value="#{dDMenu.hideDelay}">
@@ -87,5 +82,4 @@
</h:selectBooleanCheckbox>
<h:commandButton action="#{dDMenu.changeIcons}" value="ChangeIcons" />
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="dropDownMenuStraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{dDMenu.bTest1}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
@@ -26,5 +21,4 @@
<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 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,8 +1,5 @@
-<f:subview id="effectSubviewID"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:rich="http://richfaces.ajax4jsf.org/rich"
- xmlns:a4j="http://richfaces.org/a4j">
+
+<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" id="effectSubviewID">
<rich:panel id="indexID">
<a4j:commandLink value="Hide all" onclick="hideFrm1(),hideFrm2(),hideFrm3(),hideFrm4(),hideFrm5()"></a4j:commandLink>
Modified: trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<f:subview id="GmapSubviewID"
- 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">
+
+<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" id="GmapSubviewID">
<rich:gmap id="gm" lat="37.97" zoom="#{gmap.zoom}" gmapVar="map" onclick="showEvent('onclickInputID', 'onclick work!')"
ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')"
onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')" onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')"
Modified: trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<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">
+
+<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" id="GmapPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="Dragging:" />
<h:selectBooleanCheckbox value="#{gmap.dragging}" onclick="submit()" />
Modified: trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSlider.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSlider.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSlider.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,5 +1,5 @@
-<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">
+
+<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" id="inputNumberSliderSubviewID">
<h:panelGrid columns="1">
<rich:inputNumberSlider id="SliderId" immediate="#{inputNumberSlider.immediate}"
inputPosition="#{inputNumberSlider.inputPosition}" showToolTip="#{inputNumberSlider.showToolTip}"
Modified: trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="inputNumberSliderPropertySubviewID">
<h:panelGrid columns="2" cellspacing="10px" border="1">
<h:outputText value="value" />
<h:inputText value="#{inputNumberSlider.value}">
@@ -102,5 +97,4 @@
reRender="SliderId,slBtn">
</a4j:commandButton>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="inputNumberSliderStraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{inputNumberSlider.bTest1}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
@@ -26,5 +21,4 @@
<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/InputNumberSpinner/InputNumberSpinner.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/InputNumberSpinner/InputNumberSpinner.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/InputNumberSpinner/InputNumberSpinner.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,5 @@
-<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">
+
+<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" id="inputNumberSpinnerSubviewID">
<h:messages></h:messages>
<rich:inputNumberSpinner id="SpinnerID" tabindex="#{inputNumberSpinner.tabindex}" cycled="#{inputNumberSpinner.cycled}"
Modified: trunk/test-applications/facelets/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="iNSpinnerPropertySubviewID">
<h:panelGrid columns="2" cellpadding="10px" border="1">
<h:outputText value="Max: "></h:outputText>
<h:inputText value="#{inputNumberSpinner.max}">
@@ -52,5 +47,4 @@
<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
Modified: trunk/test-applications/facelets/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="iNSpinnerStraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{inputNumberSpinner.bTest1}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
@@ -26,5 +21,4 @@
<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/Insert/Insert.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Insert/Insert.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Insert/Insert.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<f:subview id="insertSubviewID"
-
- 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="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" id="insertSubviewID">
<h:messages />
<rich:panel id="panelID" header="Highlight: #{insert.highlight}; File: #{insert.src}">
Modified: trunk/test-applications/facelets/src/main/webapp/Insert/InsertProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Insert/InsertProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Insert/InsertProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<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">
+
+<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" id="InsertPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="Highlight:" />
<h:selectOneMenu value="#{insert.highlight}">
Modified: trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,5 +1,5 @@
-<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">
+
+<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" 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}"
Modified: trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,12 +1,12 @@
-<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">
+
+<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" 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();" />
+ <a4j:commandButton immediate="true" reRender="listShuttleID" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton value="submit();" />
+ <h:commandButton immediate="true" value="immediate submit();" />
</h:panelGroup>
<h:outputText value="Enter quantity of lines" />
@@ -103,4 +103,25 @@
<a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
</h:inputText>
</h:panelGrid>
+ <h:panelGrid columns="3">
+ <h:column></h:column>
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.doHide()" value="Hide"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.doShow()" value="Show"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.isShown)" value="isShown"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.Enable()" value="Enable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.Disable()" value="Disable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.isEnabled()" value="isEnabled"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveUp" value="moveUp"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveDown" value="moveDown"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveTop" value="moveTop"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveBottom" value="moveBottom"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copy" value="copy"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.remove" value="remove"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copyAll" value="copyAll"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.removeAll" value="removeAll"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.getSelection" value="getSelection"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.getItems" value="getItems"></a4j:commandLink>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,5 +1,5 @@
-<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">
+
+<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" id="listShuttleStraightforwardSubviewID">
<h:panelGrid columns="3">
<a4j:commandButton value="Show selection (reRender)" reRender="infoLSID"></a4j:commandButton>
<h:column>
Modified: trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,5 +1,5 @@
-<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">
+
+<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" id="messageSubviewID">
<rich:panel>
<h:outputText value="Rich Message Demo:" />
Modified: trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="MessagePropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="1." />
<h:selectOneMenu id="select1" value="#{message.select1}">
@@ -87,5 +82,4 @@
<h:commandButton value="submit" />
<a4j:commandButton value="submit ajax" />
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Message/MessageStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Message/MessageStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Message/MessageStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<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">
+
+<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" id="MessageStraightforwardSubviewID">
<rich:simpleTogglePanel switchType="client" opened="true" label="modalPanel straightforward">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
Modified: trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,6 @@
-<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 />
+
+<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" 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}"
@@ -21,6 +21,7 @@
<f:selectItem itemLabel="2" itemValue="2" />
<f:selectItem itemLabel="3" itemValue="3" />
</h:selectOneListbox>
+ <jsp:include page="/Calendar/Calendar.jsp" />
<f:verbatim>
<br />
<br />
Modified: trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="ModalPanelPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="shadowDepth" />
<h:inputText value="#{modalPanel.shadowDepth}" >
@@ -83,5 +78,4 @@
<a4j:support event="onclick" reRender="modalPanelID"></a4j:support>
</h:selectBooleanCheckbox>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanelStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="ModalPanelStraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{modalPanel.bTest1}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
@@ -26,5 +21,4 @@
<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
Modified: trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingList.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingList.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingList.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,6 @@
-<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">
+<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" id="orderingListSubviewID">
+
<a4j:outputPanel ajaxRendered="true">
<h:messages />
</a4j:outputPanel>
@@ -10,7 +10,7 @@
bottomControlLabel="#{orderingList.bottomControlLabel}" captionLabel="#{orderingList.captionLabel}"
topControlLabel="#{orderingList.topControlLabel}" upControlLabel="#{orderingList.upControlLabel}"
controlsHorizontalAlign="#{orderingList.controlsHorizontalAlign}" controlsVerticalAlign="#{orderingList.controlsVerticalAlign}"
- downControlLabel="#{orderingList.downControlLabel}"
+ downControlLabel="#{orderingList.downControlLabel}"
orderControlsVisible="#{orderingList.orderControlsVisible}" fastOrderControlsVisible="#{orderingList.fastOrderControlsVisible}"
rendered="#{orderingList.rendered}" showButtonLabels="#{orderingList.showButtonLabels}" selection="#{orderingList.selection}"
onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onclick="showEvent('onclickInputID', 'onclick work!')"
@@ -23,7 +23,7 @@
<h:outputText value="footer" />
</f:facet>
- <h:column width="100px">
+ <h:column>
<f:facet name="header">
<h:outputText value="Number" />
</f:facet>
@@ -37,7 +37,7 @@
<h:inputText value="#{item.str0}" />
</h:column>
- <h:column width="100px">
+ <h:column>
<f:facet name="header">
<h:outputText value="Button" />
</f:facet>
@@ -62,7 +62,7 @@
<f:facet name="header">
<h:outputText value="select" />
</f:facet>
- <h:selectOneMenu value="#{item.str2}">
+ <h:selectOneMenu value="#{item.str2}" >
<f:selectItem itemLabel="select0" itemValue="select0" />
<f:selectItem itemLabel="select1" itemValue="select1" />
<f:selectItem itemLabel="select2" itemValue="select2" />
@@ -86,4 +86,21 @@
<h:graphicImage value="#{item.str3}" />
</h:column>
</rich:orderingList>
+ <h:panelGrid columns="3">
+ <h:column></h:column>
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.doHide()" value="Hide"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.doShow()" value="Show"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:orderingListSubviewID:orderingListID').component.isShown)" value="isShown"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Enable()" value="Enable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Disable()" value="Disable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.isEnabled()" value="isEnabled"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveUp" value="moveUp"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveDown" value="moveDown"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveTop" value="moveTop"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveBottom" value="moveBottom"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.getSelection" value="getSelection"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.getItems" value="getItems"></a4j:commandLink>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,5 +1,5 @@
-<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">
+
+<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" id="orderingListPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="Enter quantity of lines" />
<h:panelGroup>
Modified: trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,5 +1,5 @@
-<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">
+
+<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" id="orderingListStraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
@@ -100,9 +100,9 @@
<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();" />
+ <a4j:commandButton immediate="true" reRender="orderingListID" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton value="submit();" />
+ <h:commandButton immediate="true" value="immediate submit();" />
</h:panelGroup>
</h:panelGrid>
Modified: trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2D.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2D.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2D.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,5 +1,5 @@
-<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">
+
+<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" 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}"
Modified: trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="Paint2DPropertySubviewID">
<h:panelGrid columns="2" cellpadding="5px" border="2">
<h:outputText value="Text"></h:outputText>
<h:inputText value="#{paintData.text}">
@@ -81,5 +76,4 @@
<a4j:support event="onclick" reRender="paint2dID"></a4j:support>
</h:selectBooleanCheckbox>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Paint2D/Paint2DStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<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">
+
+<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" id="Paint2DStraightforwardSubviewID">
<rich:simpleTogglePanel switchType="client" opened="true" label="paint2D straightforward">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
Modified: trunk/test-applications/facelets/src/main/webapp/Panel/Panel.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Panel/Panel.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Panel/Panel.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,6 @@
-<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">
+<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" id="panelSubviewID">
+
<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;"
Modified: trunk/test-applications/facelets/src/main/webapp/Panel/Panel2.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Panel/Panel2.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Panel/Panel2.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<f:subview id="panel2SubviewID"
- 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:rich="http://richfaces.org/rich"
- xmlns:a4j="http://richfaces.org/a4j">
+
+<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" id="panel2SubviewID">
<h:panelGrid columnClasses="panel" border="0" columns="3">
<rich:panel styleClass="top">
<f:facet name="header">
Modified: trunk/test-applications/facelets/src/main/webapp/Panel/PanelProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Panel/PanelProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Panel/PanelProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="PanelPropertySubviewID">
<h:panelGrid columns="2" cellpadding="10px">
<h:outputText value="Title"></h:outputText>
<h:inputText valueChangeListener="#{panel.makeTitle}">
@@ -24,5 +19,4 @@
<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
Modified: trunk/test-applications/facelets/src/main/webapp/Panel/PanelStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Panel/PanelStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Panel/PanelStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="PanelStraightforwardSubviewID">
<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>
@@ -26,5 +21,4 @@
<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/PanelBar/PanelBar.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBar.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBar.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,6 @@
-<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">
+<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" id="panelBarSubviewID">
+
<h:messages></h:messages>
<rich:panelBar id="pBId" height="#{panelBar.height}" width="#{panelBar.width}" contentClass="#{panelBar.contentStyle}"
Modified: trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="panelBarPropertySubviewID">
<h:panelGrid columns="2" cellspacing="10px">
<h:outputText value="Label: "></h:outputText>
<h:inputText valueChangeListener="#{panelBar.makeLabels}">
@@ -29,5 +24,4 @@
<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
Modified: trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/PanelBar/PanelBarStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="panelBarStraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{panelBar.bTest1}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
@@ -26,5 +21,4 @@
<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 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenu.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,5 +1,5 @@
-<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">
+
+<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" 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}"
@@ -166,4 +166,5 @@
</rich:panelMenuGroup>
</rich:panelMenuGroup>
</rich:panelMenu>
+
</f:subview>
Modified: trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="panelMenuPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="Width"></h:outputText>
<h:inputText value="#{panelMenu.width}">
@@ -269,5 +264,14 @@
<a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
</h:selectOneMenu>
</h:panelGrid>
- </rich:simpleTogglePanel>
+ <h:panelGrid columns="3">
+ <h:column></h:column>
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink onclick="$('formID:panelMenuSubviewID:panelMenuID').component.doExpand()" value="doExpand"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:panelMenuSubviewID:panelMenuID').component.doExpand" value="doExpand"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:panelMenuSubviewID:panelMenuID').component.expand" value="doExpand"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:panelMenuSubviewID:panelMenuID').component.doExpand(event)" value="doExpand"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:panelMenuSubviewID:panelMenuID').component.doCollapse()" value="doCollapse"></a4j:commandLink>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/PanelMenu/PanelMenuStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="panelMenuStraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{panelMenu.bTest1}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
@@ -26,5 +21,4 @@
<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
Modified: trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,43 +1,61 @@
-<f:subview id="scrollableDataTableSubviewID"
- 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:scrollableDataTable id="sdt" var="sdt" value="#{scrollableDT.data}" rows="#{scrollableDT.rows}" width="#{scrollableDT.width}"
- hideWhenScrolling="#{scrollableDT.hideWhenScrolling}" reRender="inputID"
- oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')" onselectionchange="showEvent('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>
+<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" id="scrollableDataTableSubviewID">
+
+ <rich:scrollableDataTable id="sdt" var="sdt" rowKeyVar="key" onRowDblClick="alert('row:#{key}')"
+ ajaxSingle="#{scrollableDT.ajaxSingle}"
+ value="#{scrollableDT.data}" rows="#{scrollableDT.rows}"
+ width="#{scrollableDT.width}" height="#{scrollableDT.height}"
+ hideWhenScrolling="#{scrollableDT.hideWhenScrolling}"
+ reRender="inputID" frozenColCount="#{scrollableDT.frozenColCount}"
+ first="#{scrollableDT.first}" ignoreDupResponses="#{scrollableDT.ignoreDupResponses}"
+ bypassUpdates="#{scrollableDT.bypassUpdates}" rendered="#{scrollableDT.rendered}"
+ limitToList="#{scrollableDT.limitToList}"
+ timeout="#{scrollableDT.timeout}"
+ selection="#{scrollableDT.selection}"
+ oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+ onselectionchange="showEvent('onselectionchangeInputID', 'onselectionchange work!')">
+ <f:facet name="header">
+ <h:outputText value="facet header"></h:outputText>
+ </f:facet>
+
+ <rich:column>
+ <f:facet name="header"><h:outputText value="#"/></f:facet>
+ <h:outputText value="#{sdt.int0}"></h:outputText>
+ <f:facet name="footer"><h:outputText value="#"/></f:facet>
+ </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>
+ <rich:column>
+ <f:facet name="header"><h:outputText value="Text"></h:outputText> </f:facet>
+ <h:outputText value="#{sdt.str0}"></h:outputText>
+ <f:facet name="footer"><h:outputText value="Text"></h:outputText> </f:facet>
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header"><h:outputText value="Link"></h:outputText> </f:facet>
+ <a4j:commandLink value="#{sdt.str1}" reRender="sdt"></a4j:commandLink>
+ <f:facet name="footer"><h:outputText value="Link"></h:outputText> </f:facet>
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header"><h:outputText value="Select"></h:outputText> </f:facet>
+ <h:selectOneMenu value="#{sdt.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" />
+ </h:selectOneMenu>
+ <f:facet name="footer"><h:outputText value="Select"></h:outputText> </f:facet>
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header"><h:outputText value="Select"></h:outputText> </f:facet>
+ <h:graphicImage value="#{sdt.str3}"></h:graphicImage>
+ <f:facet name="footer"><h:outputText value="Select"></h:outputText> </f:facet>
+ </rich:column>
+
+ <f:facet name="footer">
+ <h:outputText value="facet footer"></h:outputText>
+ </f:facet>
+ </rich:scrollableDataTable>
</f:subview>
Modified: trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,18 +1,52 @@
-<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">
+
+<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" id="scrollableDataTablePropertySubviewID">
<h:panelGrid columns="2">
- <h:outputText value="rows" />
- <h:inputText value="#{scrollableDT.rows}" />
+ <h:outputText value="length:"></h:outputText>
+ <h:inputText value="#{scrollableDT.dataLength}" onchange="submit();">
+ </h:inputText>
- <h:outputText value="width" />
- <h:inputText value="#{scrollableDT.width}" />
+ <h:outputText value="rows:" />
+ <h:inputText value="#{scrollableDT.rows}" onchange="submit();">
+ </h:inputText>
- <h:outputText value="hideWhenScrolling" />
- <h:selectBooleanCheckbox value="#{scrollableDT.hideWhenScrolling}" />
+ <h:outputText value="first:"></h:outputText>
+ <h:inputText value="#{scrollableDT.first}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="timeout"></h:outputText>
+ <h:inputText value="#{scrollableDT.timeout}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="width:" />
+ <h:inputText value="#{scrollableDT.width}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="height:"></h:outputText>
+ <h:inputText value="#{scrollableDT.height}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="frozenColCount"></h:outputText>
+ <h:inputText value="#{scrollableDT.frozenColCount}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="limitToList"></h:outputText>
+ <h:selectBooleanCheckbox value="#{scrollableDT.limitToList}" onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="bypassUpdates:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{scrollableDT.bypassUpdates}" onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="ajaxSingle:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{scrollableDT.ajaxSingle}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{scrollableDT.rendered}" onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="hideWhenScrolling:" />
+ <h:selectBooleanCheckbox value="#{scrollableDT.hideWhenScrolling}" onchange="submit();">
+ </h:selectBooleanCheckbox>
</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 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Separator/Separator.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,5 @@
-<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">
+
+<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" 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}"
Modified: trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="SeparatorPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="Width (px or %): "></h:outputText>
<h:inputText value="#{separator.width}">
@@ -45,5 +40,4 @@
<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
Modified: trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="SeparatorStraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{separator.bTest1}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
@@ -26,5 +21,4 @@
<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 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,6 @@
-<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"
+
+<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" 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="showEvent('onclickInputID', 'onclick work!')" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
Modified: trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="stpPropertySubviewID">
<h:panelGrid columns="2" border="1">
<h:outputText value="Width:">
</h:outputText>
@@ -30,5 +25,4 @@
<h:selectBooleanCheckbox value="#{simpleTogglePanel.rendered}" onclick="submit()">
</h:selectBooleanCheckbox>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="stpStraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{simpleTogglePanel.bTest1}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
@@ -26,5 +21,4 @@
<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 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Spacer/Spacer.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,5 +1,5 @@
-<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">
+
+<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" id="spacerSubviewID">
<style type="text/css">
.text {
font-size: 20px;
Modified: trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<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">
+
+<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" 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>
Modified: trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="spacerStraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{spacer.bTest1}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
@@ -26,5 +21,4 @@
<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 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBox.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,19 +1,16 @@
-<f:subview id="suggestionBoxSubviewID"
- 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="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" 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 value="#{sb.property}" id="text" />
- <rich:suggestionbox id="suggestionBoxId" for="text" var="result"
+ <rich:suggestionbox id="suggestionBoxId" for="text" var="result"
+ fetchValue="#{result.text}"
+ suggestionAction="#{sb.autocomplete}" width="#{sb.width}" height="#{sb.height}" border="#{sb.border}"
zindex="#{sb.zindex}" rules="#{sb.rules}" styleClass="styleClass"
- suggestionAction="#{sb.autocomplete}"
- width="#{sb.width}" height="#{sb.height}" border="#{sb.border}"
cellpadding="#{sb.cellpadding}" cellspacing="#{sb.cellspacing}"
- first="#{sb.first}" minChars="1" tokens=", ]"
+ first="#{sb.first}" minChars="#{sb.minchars}" tokens="#{sb.tokens}"
bgcolor="#{sb.bgColor}" focus="#{sb.forcus}" title="#{result.text}"
summary="summary" shadowOpacity="#{sb.shadowOpacity}"
shadowDepth="#{sb.shadowDepth}" selectValueClass="mousemove" frequency="#{sb.frequency}"
Modified: trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,5 @@
-<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">
+
+<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" id="suggestionboxPropertySubviewID">
<h:panelGrid columns="2" cellpadding="5px">
<h:outputText value="z-index"></h:outputText>
@@ -44,6 +43,9 @@
<h:inputText value="#{sb.first}">
<a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
</h:inputText>
+
+ <h:outputText value="tokens:"></h:outputText>
+ <h:inputText value="#{sb.tokens}"></h:inputText>
<f:verbatim>MinChars</f:verbatim>
<h:inputText value="#{sb.minchars}">
@@ -91,5 +93,4 @@
<a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
</h:selectOneRadio>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,7 +1,5 @@
-<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">
+<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" id="suggestionboxStraightforwardSubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{sb.bTest1}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
@@ -23,5 +21,4 @@
<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 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanel.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,5 +1,5 @@
-<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">
+
+<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" 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}"
Modified: trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="tabPanelStraightforwardSubviewID">
<h:panelGrid columns="2" cellspacing="10px">
<h:outputText value="Width (px or %):"></h:outputText>
<h:inputText value="#{tabPanel.width}" onchange="submit();" />
@@ -63,5 +58,4 @@
<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
Modified: trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/TabPanel/TabPanelStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="tabPanelPropertySubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{tabPanel.bTest1}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
@@ -26,5 +21,4 @@
<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 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanel.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,6 @@
-<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">
+<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" id="togglePanelSubviewID">
+
<rich:togglePanel id="panel1" switchType="#{togglePanel.switchType}" initialState="asus" stateOrder="asus,blank"
style="width:300px!important; overflow: hidden;" onclick="showEvent('onclickInputID', 'onclick work!')"
ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
Modified: trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="togglePanelPropertySubviewID">
<h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
<h:outputText value="InitialState:"></h:outputText>
<h:selectOneRadio value="#{togglePanel.initialState}">
@@ -29,5 +24,4 @@
<a4j:support event="onclick" reRender="panel1,panel2"></a4j:support>
</h:selectOneRadio>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/TogglePanel/TogglePanelStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,11 +1,6 @@
-<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">
+
+<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" id="togglePanelStraightforwardSubviewID">
+ <h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{togglePanel.bTest1}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
<h:outputText value="#{msg.t1TogglePanel}"/>
@@ -26,5 +21,4 @@
<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 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/ToolBar/ToolBar.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,8 +1,5 @@
-<f:subview id="toolBarSubviewID"
- 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="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" id="toolBarSubviewID">
<h:messages></h:messages>
<rich:toolBar id="toolBarId" width="#{toolBar.width}"
Modified: trunk/test-applications/facelets/src/main/webapp/ToolBar/ToolBarProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ToolBar/ToolBarProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/ToolBar/ToolBarProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<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">
+
+<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" id="toolBarPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="Image location:"></h:outputText>
<h:selectOneRadio value="#{toolBar.location}">
Modified: trunk/test-applications/facelets/src/main/webapp/Tooltip/Tooltip.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Tooltip/Tooltip.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Tooltip/Tooltip.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +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">
+<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" id="tooltipSubviewID">
<h:messages></h:messages>
<h:outputText value="DEFAULT VALUE:"></h:outputText>
@@ -22,7 +21,14 @@
</f:facet>
</rich:toolTip>
</h:inputText>
-
+ <h:panelGrid columns="3">
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink onclick="$('formID:tooltipSubviewID:inp1').component.doShow()" value="doShow"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:tooltipSubviewID:inp1').component.doHide()" value="doHide"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:tooltipSubviewID:inp1').component.doEnable()" value="doEnable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:tooltipSubviewID:inp1').component.doDisable()" value="doDisable"></a4j:commandLink>
+ </h:panelGrid>
<h:selectOneListbox value="1" id="ddl">
<rich:toolTip value="1231231" onclick="showEvent('onclickInputID', 'onclick work!')"
oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')" ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')"
Modified: trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="toolTipStraightforwardSubviewID">
<h:panelGrid columns="2">
<h:outputText value="Text:"></h:outputText>
<h:inputText value="#{tooltip.value}">
@@ -75,5 +70,4 @@
<a4j:support event="onclick" reRender="tooltipID" />
</h:selectBooleanCheckbox>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,10 +1,5 @@
-<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">
+
+<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" id="toolTipPropertySubviewID">
<h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{tooltip.bTest1}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
@@ -26,5 +21,4 @@
<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 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Tree/Tree.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,4 +1,5 @@
-<f:subview 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" id="treeSubviewID">
+
+<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" id="treeSubviewID">
<a4j:outputPanel ajaxRendered="true">
<h:messages />
</a4j:outputPanel>
Modified: trunk/test-applications/facelets/src/main/webapp/Tree/TreeProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Tree/TreeProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/Tree/TreeProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,8 +1,4 @@
-<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 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" id="treePropertySubviewID">
+
</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 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,5 @@
-<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">
+
+<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" 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="showEvent('onclickInputID', 'onclick work!')"
Modified: trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,9 +1,5 @@
-<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">
+
+<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" 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" id="virtualEarthPropertySubviewID">
<h:panelGroup>
<f:verbatim>
Dashboard:<br />
Modified: trunk/test-applications/facelets/src/main/webapp/jQuery/jQuery.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/jQuery/jQuery.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/jQuery/jQuery.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,11 +1,8 @@
-<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">
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+<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" id="jQuerySubviewID">
<style>
.divSize_1 {
width: 150px;
@@ -44,7 +41,6 @@
color: #228B22;
}
</style>
-
<h:panelGrid id="panelGridID" columns="2" border="1">
<h:outputText value="add text: [li],work!, e.g. A. one [li],work!" />
<h:panelGroup>
@@ -80,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="#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')" />
-</f:subview>
-
+</f:subview>
\ No newline at end of file
Deleted: trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryProperty.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryProperty.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,7 +0,0 @@
-<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
Deleted: trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryStraightforward.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryStraightforward.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/jQuery/jQueryStraightforward.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,7 +0,0 @@
-<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
Modified: trunk/test-applications/facelets/src/main/webapp/pages/RichMenu/RichMenu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/RichMenu/RichMenu.xhtml 2008-01-15 08:13:07 UTC (rev 5369)
+++ trunk/test-applications/facelets/src/main/webapp/pages/RichMenu/RichMenu.xhtml 2008-01-15 08:16:20 UTC (rev 5370)
@@ -1,6 +1,10 @@
<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:panelGrid columns="5" border="1">
+ <h:panelGrid columns="1">
+ <h:commandButton value="submit" style="width : 85px; height : 21px;"></h:commandButton>
+ <a4j:commandButton value="submit[a4j]" reRender="richGridID" style="width : 85px; height : 21px;"></a4j:commandButton>
+ </h:panelGrid>
<h:column>
<a4j:status startText="WORK!" startStyle="color: red;" stopText="a4j:status"></a4j:status>
</h:column>
17 years
JBoss Rich Faces SVN: r5369 - in trunk/test-applications/jsp/src/main: java/columns and 33 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2008-01-15 03:13:07 -0500 (Tue, 15 Jan 2008)
New Revision: 5369
Added:
trunk/test-applications/jsp/src/main/webapp/ComponentControl/CalendarJSAPI.jsp
trunk/test-applications/jsp/src/main/webapp/ComponentControl/ContextMenuJSAPI.jsp
trunk/test-applications/jsp/src/main/webapp/ComponentControl/ListShuttleJSAPI.jsp
trunk/test-applications/jsp/src/main/webapp/ComponentControl/ModalPanelJSAPI.jsp
trunk/test-applications/jsp/src/main/webapp/ComponentControl/OrderingListJSAPI.jsp
trunk/test-applications/jsp/src/main/webapp/ComponentControl/PanelMenuJSAPI.jsp
trunk/test-applications/jsp/src/main/webapp/ComponentControl/ScrollableDataTableJSAPI.jsp
trunk/test-applications/jsp/src/main/webapp/ComponentControl/ToolTipJSAPI.jsp
Modified:
trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java
trunk/test-applications/jsp/src/main/java/calendar/CalendarDataModelImpl.java
trunk/test-applications/jsp/src/main/java/columns/Columns.java
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/rich/RichBean.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/scrollableDataTable/ScrollableDataTable.java
trunk/test-applications/jsp/src/main/java/util/data/Data.java
trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
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/Columns/Columns.jsp
trunk/test-applications/jsp/src/main/webapp/Columns/ColumnsProperty.jsp
trunk/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp
trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.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/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/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/ListShuttle/ListShuttleProperty.jsp
trunk/test-applications/jsp/src/main/webapp/Message/MessageProperty.jsp
trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.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/OrderingList.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/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/PanelMenu.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/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/SpacerStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.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/Tooltip/Tooltip.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/pages/Rich/Rich.jsp
trunk/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp
Log:
add ja api
update attribute
Modified: trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java 2008-01-15 08:13:07 UTC (rev 5369)
@@ -72,10 +72,32 @@
private String toolTipMode;
private String label;
private String timeZone;
+ private String horizontalOffset;
+ private String verticalOffset;
private int zindex;
private int counter;
+ private String cellHeight;
+ private String cellWidth;
+ private boolean immediate;
+ private boolean isDayEnabled;
+ private boolean showApplyButton;
+ private boolean showScrollerBar;
+ private boolean showWeekDaysBar;
+ private boolean showWeeksBar;
+ private String todayControlMode; // scroll, select, hidden;
public CalendarBean() {
+ horizontalOffset = "0";
+ verticalOffset = "0";
+ isDayEnabled = true;
+ immediate = false;
+ cellHeight = "15";
+ cellWidth = "15";
+ showApplyButton = false;
+ showWeeksBar = false;
+ showWeekDaysBar = false;
+ showScrollerBar = false;
+ todayControlMode = "select";
mode = "client";
label = "Button label";
locale = new Locale("us","US","");
@@ -100,7 +122,96 @@
preloadDateRangeBegin = "10.08.2007"; //d.m.y
preloadDateRangeEnd = "11.10.2007";
}
+
+ public String getHorizontalOffset() {
+ return horizontalOffset;
+ }
+
+ public void setHorizontalOffset(String horizontalOffset) {
+ this.horizontalOffset = horizontalOffset;
+ }
+
+ public String getVerticalOffset() {
+ return verticalOffset;
+ }
+
+ public void setVerticalOffset(String verticalOffset) {
+ this.verticalOffset = verticalOffset;
+ }
+
+ public boolean getImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+ public boolean getIsDayEnabled() {
+ return isDayEnabled;
+ }
+
+ public void setIsDayEnabled(boolean isDayEnabled) {
+ this.isDayEnabled = isDayEnabled;
+ }
+
+ public String getTodayControlMode() {
+ return todayControlMode;
+ }
+
+ public void setTodayControlMode(String todayControlMode) {
+ this.todayControlMode = todayControlMode;
+ }
+
+ public String getCellHeight() {
+ return cellHeight;
+ }
+
+ public void setCellHeight(String cellHeight) {
+ this.cellHeight = cellHeight;
+ }
+
+ public String getCellWidth() {
+ return cellWidth;
+ }
+
+ public void setCellWidth(String cellWidth) {
+ this.cellWidth = cellWidth;
+ }
+
+ public boolean isShowApplyButton() {
+ return showApplyButton;
+ }
+
+ public void setShowApplyButton(boolean showApplyButton) {
+ this.showApplyButton = showApplyButton;
+ }
+
+ public boolean isShowScrollerBar() {
+ return showScrollerBar;
+ }
+
+ public void setShowScrollerBar(boolean showScrollerBar) {
+ this.showScrollerBar = showScrollerBar;
+ }
+
+ public boolean isShowWeekDaysBar() {
+ return showWeekDaysBar;
+ }
+
+ public void setShowWeekDaysBar(boolean showWeekDaysBar) {
+ this.showWeekDaysBar = showWeekDaysBar;
+ }
+
+ public boolean isShowWeeksBar() {
+ return showWeeksBar;
+ }
+
+ public void setShowWeeksBar(boolean showWeeksBar) {
+ this.showWeeksBar = showWeeksBar;
+ }
+
public boolean getRenderedAjax() {
if(mode.equalsIgnoreCase("ajax") && rendered) return true;
else return false;
Modified: trunk/test-applications/jsp/src/main/java/calendar/CalendarDataModelImpl.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/calendar/CalendarDataModelImpl.java 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/java/calendar/CalendarDataModelImpl.java 2008-01-15 08:13:07 UTC (rev 5369)
@@ -29,6 +29,9 @@
import java.util.Map;
import java.util.Random;
+import javax.faces.application.FacesMessage;
+import javax.faces.validator.ValidatorException;
+
import org.richfaces.model.CalendarDataModel;
import org.richfaces.model.CalendarDataModelItem;
@@ -68,14 +71,21 @@
c.setTime(date);
item.setDay(c.get(Calendar.DAY_OF_MONTH));*/
- if (new Random().nextInt(10) > 5) {
- item.setEnabled(true);
- } else {
- item.setEnabled(false);
- }
+// if (new Random().nextInt(10) > 5) {
+// item.setEnabled(true);
+// } else {
+// item.setEnabled(false);
+// }
item.setData(data);
-
+ if (date != null) {
+ Calendar calendar = Calendar.getInstance();
+ calendar.setTime(date);
+ int d = calendar.get(Calendar.DATE);
+ if (d == 7 || d == 15) {
+ item.setEnabled(false);
+ } else item.setEnabled(true);
+ }
System.out.println(item.getData() + " " + item.isEnabled());
return item;
Modified: trunk/test-applications/jsp/src/main/java/columns/Columns.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/columns/Columns.java 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/java/columns/Columns.java 2008-01-15 08:13:07 UTC (rev 5369)
@@ -27,9 +27,9 @@
this.end = "10";
this.width = "100";
this.title = "Title columns";
- this.colspan = 5;
- this.rowspan = 5;
- this.breakBefore = true;
+ this.colspan = 1;
+ this.rowspan = 1;
+ this.breakBefore = false;
this.sortable = true;
this.dataTableRendered = true;
this.length1 = 5;
Modified: trunk/test-applications/jsp/src/main/java/orderingList/OrderingList.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/orderingList/OrderingList.java 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/java/orderingList/OrderingList.java 2008-01-15 08:13:07 UTC (rev 5369)
@@ -11,7 +11,6 @@
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;
@@ -66,7 +65,7 @@
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]));
+ list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), Data.statusIcon[i % 5]));
}
public OrderingList() {
Modified: trunk/test-applications/jsp/src/main/java/rich/MapComponent.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/rich/MapComponent.java 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/java/rich/MapComponent.java 2008-01-15 08:13:07 UTC (rev 5369)
@@ -3,6 +3,7 @@
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
+import java.util.Set;
public class MapComponent {
private Map<String, ArrayList<String>> m;
@@ -18,4 +19,8 @@
public ArrayList<String> get(String key){
return m.get(key);
}
+
+ public Set getSet() {
+ return m.keySet();
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-01-15 08:13:07 UTC (rev 5369)
@@ -1,6 +1,7 @@
package rich;
import java.util.ArrayList;
+import java.util.List;
import org.richfaces.VersionBean;
@@ -12,13 +13,15 @@
private boolean reComponent;
private boolean reProperty;
private boolean reStraightforward;
+ private boolean log;
//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 = "Blank";
reComponent = true;
reProperty = true;
reStraightforward = true;
+ log = false;
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}));
@@ -120,4 +123,12 @@
public void setVersion(String version) {
this.version = version;
}
+
+ public boolean isLog() {
+ return log;
+ }
+
+ public void setLog(boolean log) {
+ this.log = log;
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/sb/Data.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/sb/Data.java 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/java/sb/Data.java 2008-01-15 08:13:07 UTC (rev 5369)
@@ -34,4 +34,12 @@
public void setContry(String contry) {
this.contry = contry;
}
+
+ public String getText() {
+ return city + " (" + contry + ")";
+ }
+
+ public String toString() {
+ return city + " (" + contry + ")";
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/sb/Sb.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/sb/Sb.java 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/java/sb/Sb.java 2008-01-15 08:13:07 UTC (rev 5369)
@@ -11,7 +11,6 @@
private ArrayList cities;
private ArrayList data;
- private ArrayList tokens;
private int first;
private int zindex;
private double frequency;
@@ -27,6 +26,7 @@
private String shadowOpacity;
private String bgColor;
private String shadowDepth;
+ private Object tokens;
private boolean focus;
/*
@@ -50,6 +50,7 @@
public Sb() {
+ tokens = "[ ,";
border = "1";
width = "200";
height = "150";
@@ -198,14 +199,6 @@
this.rules = rules;
}
- public ArrayList getTokens() {
- return tokens;
- }
-
- public void setTokens(ArrayList tokens) {
- this.tokens = tokens;
- }
-
public void OnSelect() {
System.out.print("Onselect works!!!");
}
@@ -338,4 +331,16 @@
setShadowOpacity("5");
setZindex(1);
}
+
+ public void setTokens(String tokens) {
+ this.tokens = tokens;
+ }
+
+ public Object getTokens() {
+ return tokens;
+ }
+
+ public void setTokens(Object tokens) {
+ this.tokens = tokens;
+ }
}
Modified: trunk/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-01-15 08:13:07 UTC (rev 5369)
@@ -1,20 +1,157 @@
package scrollableDataTable;
import java.util.ArrayList;
-import java.util.Random;
-import dataScroller.Data;
+import org.ajax4jsf.model.DataComponentState;
+import org.richfaces.model.selection.Selection;
+import util.data.Data;
+
+
+/**
+ * @author AYanul
+ *
+ */
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;
+ private int dataLength;
+ private int frozenColCount;
+ private int first;
+ private boolean rendered;
+ private String timeout;
+ private String height;
+ private boolean limitToList;
+ private DataComponentState componentState;
+ private boolean bypassUpdates;
+ private boolean ignoreDupResponses;
+ private String eventsQueue;
+ private String activeRowKey;
+ private Selection selection;
+ private boolean ajaxSingle;
+
+ public ScrollableDataTable() {
+ width = "400px";
+ rows = 30;
+ hideWhenScrolling = false;
+ dataLength = 40;
+ data = new ArrayList<Data>();
+ first = 0;
+ rendered = true;
+ timeout = "10";
+ height = "400px";
+ limitToList = false;
+ bypassUpdates = false;
+ ignoreDupResponses = false;
+ ajaxSingle = false;
+ addNewItem();
+ }
+
+ public Selection getSelection() {
+ return selection;
+ }
+
+ public void setSelection(Selection selection) {
+ this.selection = selection;
+ }
+
+ public int getFrozenColCount() {
+ return frozenColCount;
+ }
+
+ public void setFrozenColCount(int frozenColCount) {
+ this.frozenColCount = frozenColCount;
+ }
+
+ 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 getTimeout() {
+ return timeout;
+ }
+
+ public void setTimeout(String timeout) {
+ this.timeout = timeout;
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public boolean isLimitToList() {
+ return limitToList;
+ }
+
+ public void setLimitToList(boolean limitToList) {
+ this.limitToList = limitToList;
+ }
+
+ public DataComponentState getComponentState() {
+ return componentState;
+ }
+
+ public void setComponentState(DataComponentState componentState) {
+ this.componentState = componentState;
+ }
+
+ public boolean isBypassUpdates() {
+ return bypassUpdates;
+ }
+
+ public void setBypassUpdates(boolean bypassUpdates) {
+ this.bypassUpdates = bypassUpdates;
+ }
+
+ public boolean isIgnoreDupResponses() {
+ return ignoreDupResponses;
+ }
+
+ public void setIgnoreDupResponses(boolean ignoreDupResponses) {
+ this.ignoreDupResponses = ignoreDupResponses;
+ }
+
+ public String getEventsQueue() {
+ return eventsQueue;
+ }
+
+ public void setEventsQueue(String eventsQueue) {
+ this.eventsQueue = eventsQueue;
+ }
+
+ public String getActiveRowKey() {
+ return activeRowKey;
+ }
+
+ public void setActiveRowKey(String activeRowKey) {
+ this.activeRowKey = activeRowKey;
+ }
+
+ public String getKey() {
+ return key;
+ }
+
public boolean isHideWhenScrolling() {
return hideWhenScrolling;
}
@@ -22,20 +159,17 @@
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 void addNewItem() {
+ if(dataLength < 0) dataLength = 0;
+ if(data.size() > dataLength)
+ for(int i = dataLength; i < data.size(); )
+ data.remove(i);
+ else
+ for(int i = data.size() + 1; i <= dataLength; i++)
+ data.add(new Data(i, "Text " + i, "Link " + i, "select" +(i % 5), Data.statusIcon[i % 5]));
}
-
+
public ArrayList<Data> getData() {
return data;
}
@@ -63,4 +197,20 @@
public void setKey(String key) {
this.key = key;
}
+
+ public int getDataLength() {
+ return dataLength;
+ }
+
+ public void setDataLength(int dataLength) {
+ this.dataLength = dataLength;
+ }
+
+ public boolean isAjaxSingle() {
+ return ajaxSingle;
+ }
+
+ public void setAjaxSingle(boolean ajaxSingle) {
+ this.ajaxSingle = ajaxSingle;
+ }
}
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/java/util/data/Data.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/data/Data.java 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/java/util/data/Data.java 2008-01-15 08:13:07 UTC (rev 5369)
@@ -1,7 +1,10 @@
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[] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
+ public static final String[] status = {"error", "fatal", "info", "passed", "warn"};
+
+ 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"};
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -5,94 +5,97 @@
<f:subview id="calendarSubviewID">
- <h:messages />
- <rich:messages showDetail="true"></rich:messages>
-
- <h:panelGrid columns="2">
- <h:outputText value="Client mode" rendered="#{calendarBean.renderedClient}" />
- <h:outputText value="Ajax mode" rendered="#{calendarBean.renderedAjax}"/>
+ <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="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>
+ <h:panelGrid columns="2">
+ <h:outputText value="Client mode" rendered="#{calendarBean.renderedClient}" />
+ <h:outputText value="Ajax mode" rendered="#{calendarBean.renderedAjax}" />
- <f:facet name="optionalHeader">
- <h:outputText value="optionalHeader Facet" />
- </f:facet>
+ <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}" cellHeight="#{calendarBean.cellHeight}"
+ cellWidth="#{calendarBean.cellWidth}" showApplyButton="#{calendarBean.showApplyButton}"
+ showScrollerBar="#{calendarBean.showScrollerBar}" showWeekDaysBar="#{calendarBean.showWeekDaysBar}"
+ showWeeksBar="#{calendarBean.showWeeksBar}" todayControlMode="#{calendarBean.todayControlMode}"
+ immediate="#{calendarBean.immediate}">
+ <f:facet name="weekDay">
+ <f:verbatim>
+ <span style="padding: 2px; font-size: 4">{weekDayLabel + weekDayLabelShort}</span>
+ </f:verbatim>
+ </f:facet>
- <f:facet name="optionalFooter">
- <h:outputText value="optionalFooter Facet" />
- </f:facet>
+ <f:facet name="optionalHeader">
+ <h:outputText value="optionalHeader Facet" />
+ </f:facet>
- <f:validator validatorId="org.richfaces.CalendarValidator" />
+ <f:facet name="optionalFooter">
+ <h:outputText value="optionalFooter Facet" />
+ </f:facet>
- <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>
+ <f:validator validatorId="org.richfaces.CalendarValidator" />
+
+ <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>
- </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="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:panelGrid>
+ </rich:calendar>
- <f:facet name="optionalHeader">
- <h:outputText value="optionalHeader Facet" />
- </f:facet>
+ <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="optionalFooter">
- <h:outputText value="optionalFooter Facet" />
- </f:facet>
+ <f:facet name="optionalHeader">
+ <h:outputText value="optionalHeader Facet" />
+ </f:facet>
- <f:validator validatorId="org.richfaces.CalendarValidator" />
+ <f:facet name="optionalFooter">
+ <h:outputText value="optionalFooter Facet" />
+ </f:facet>
- <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>
+ <f:validator validatorId="org.richfaces.CalendarValidator" />
+
+ <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>
- </rich:calendar>
- </h:panelGrid>
+ </h:panelGrid>
+ </rich:calendar>
+ </h:panelGrid>
</f:subview>
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,7 @@
<%@ 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>
@@ -30,9 +30,38 @@
</h:selectOneRadio>
<h:outputText value="Popup Mode:" />
- <h:selectBooleanCheckbox id="popupModeID" value="#{calendarBean.popup}" onclick="submit()" />
+ <h:selectBooleanCheckbox id="popupModeID" value="#{calendarBean.popup}" onclick="submit();" />
+
+ <h:outputText value="showApplyButton: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showApplyButton}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="showScrollerBar: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showScrollerBar}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="showWeeksBar: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showWeeksBar}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="showWeekDaysBar: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showWeekDaysBar}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="isDayEnabled: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.isDayEnabled}"></h:selectBooleanCheckbox>
+
+ <h:outputText value="cellHeight: "></h:outputText>
+ <h:inputText value="#{calendarBean.cellHeight}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="cellWidth: "></h:outputText>
+ <h:inputText value="#{calendarBean.cellWidth}" onchange="submit();"></h:inputText>
<h:outputText value="Custom day labels" />
+ <h:selectOneRadio value="#{calendarBean.todayControlMode}">
+ <f:selectItem itemLabel="scroll" itemValue="scroll" />
+ <f:selectItem itemLabel="select" itemValue="select" />
+ <f:selectItem itemLabel="hidden" itemValue="hidden" />
+ <a4j:support event="onclick" reRender="calendarClientID,calendarAjaxID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Custom day labels" />
<h:selectOneRadio value="#{calendarBean.weekDay}">
<f:selectItem itemLabel="none" itemValue="none" />
<f:selectItem itemLabel="day labels" itemValue="long" />
@@ -71,6 +100,15 @@
<a4j:support event="onchange" reRender="calendarClientID,calendarAjaxID"></a4j:support>
</h:inputText>
+ <h:outputText value="horizontalOffset: "></h:outputText>
+ <h:inputText value="#{calendarBean.horizontalOffset}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="verticalOffset:"></h:outputText>
+ <h:inputText value="#{calendarBean.verticalOffset}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="immediate: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.immediate}"></h:selectBooleanCheckbox>
+
<h:outputText value="reRender (counter):" />
<h:outputText id="counter" value="#{calendarBean.counter}" />
@@ -142,5 +180,27 @@
<f:verbatim></f:verbatim>
<h:commandButton value="Submit" />
</h:panelGrid>
- </rich:simpleTogglePanel>
+ <h:panelGrid columns="3">
+ <h:column></h:column>
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.doExpand(event)" value="expand"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.enable()" value="enable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.disable()" value="disable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.nextMonth()" value="nextMonth"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.prevMonth()" value="prevMonth"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.nextYear()" value="nextYear"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.prevYear()" value="prevYear"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.today()" value="today"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getSelectedDate())" value="getSelectedDate"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.enableDate" value="enableDate"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.disableDate" value="disableDate"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.enableDates" value="enableDates"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.disableDates" value="disableDates"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.isDateEnabled(new Data))" value="isDateEnabled"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.selectDate(new Data)" value="selectDate"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getData())" value="getData"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentMonth())" value="getCurrentMonth"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentYear())" value="getCurrentYear"></a4j:commandLink>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<a4j:commandButton action="#{calendarBean.bTest5}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
<h:outputText value="#{msg.t5Calendar}" />
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
Modified: trunk/test-applications/jsp/src/main/webapp/Columns/Columns.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Columns/Columns.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Columns/Columns.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -12,16 +12,28 @@
<rich:dataTable id="richColumnsID" value="#{columns.data1}" var="d1" rendered="#{columns.dataTableRendered}">
<h:column>
+ <f:facet name="header">
+ <h:outputText value="header (h)"></h:outputText>
+ </f:facet>
<h:outputText value="h: #{d1.int0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer (h)"></h:outputText>
+ </f:facet>
</h:column>
-
+
<rich:column>
+ <f:facet name="header">
+ <h:outputText value="header (rich)"></h:outputText>
+ </f:facet>
<h:outputText value="rich: #{d1.int0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer (rich)"></h:outputText>
+ </f:facet>
</rich:column>
<rich:columns value="#{columns.data2}" var="d2" breakBefore="#{columns.breakBefore}" colspan="#{columns.colspan}"
- columns="#{columns.columns}" index="index" rowspan="#{columns.rowspan}" sortable="#{columns.sortable}" title="#{columns.title}"
- begin="#{columns.begin}" end="100" width="#{columns.width}">
+ columns="#{columns.columns}" index="index" rowspan="#{columns.rowspan}" sortable="#{columns.sortable}"
+ begin="#{columns.begin}" end="#{columns.end}" width="#{columns.width}">
<f:facet name="header">
<h:outputText value="header #{d2.int0}"></h:outputText>
</f:facet>
@@ -36,16 +48,28 @@
<h:dataTable id="hColumnsID" value="#{columns.data1}" var="d1" rendered="#{!columns.dataTableRendered}" border="1">
<h:column>
+ <f:facet name="header">
+ <h:outputText value="header (h)"></h:outputText>
+ </f:facet>
<h:outputText value="h: #{d1.int0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer (h)"></h:outputText>
+ </f:facet>
</h:column>
-
+
<rich:column>
+ <f:facet name="header">
+ <h:outputText value="header (rich)"></h:outputText>
+ </f:facet>
<h:outputText value="rich: #{d1.int0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer (rich)"></h:outputText>
+ </f:facet>
</rich:column>
<rich:columns value="#{columns.data2}" var="d2" breakBefore="#{columns.breakBefore}" colspan="#{columns.colspan}"
- columns="#{columns.columns}" index="index" rowspan="#{columns.rowspan}" sortable="#{columns.sortable}" title="#{columns.title}"
- begin="#{columns.begin}" end="100" width="#{columns.width}">
+ columns="#{columns.columns}" index="index" rowspan="#{columns.rowspan}" sortable="#{columns.sortable}"
+ begin="#{columns.begin}" end="#{columns.end}" width="#{columns.width}">
<f:facet name="header">
<h:outputText value="header #{d2.int0}"></h:outputText>
</f:facet>
@@ -61,7 +85,7 @@
<f:verbatim><br/></f:verbatim>
<h:outputText value="test columns (*) "></h:outputText>
- <rich:dataTable value="#{columns.data1}" var="data" >
+ <rich:dataTable value="#{columns.data1}" var="data">
<rich:columns columns="#{columns.columns}">
<h:outputText value="#{data.str0}"></h:outputText>
</rich:columns>
Modified: trunk/test-applications/jsp/src/main/webapp/Columns/ColumnsProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Columns/ColumnsProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Columns/ColumnsProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -22,10 +22,6 @@
<h:commandButton action="#{columns.addNewItem2}" value="ok" onclick="submit();"></h:commandButton>
</h:panelGroup>
- <h:outputText value="title:"></h:outputText>
- <h:inputText value="#{columns.title}" onchange="submit();">
- </h:inputText>
-
<h:outputText value="columns (*):"></h:outputText>
<h:inputText value="#{columns.columns}" onchange="submit();">
</h:inputText>
Added: trunk/test-applications/jsp/src/main/webapp/ComponentControl/CalendarJSAPI.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ComponentControl/CalendarJSAPI.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ComponentControl/CalendarJSAPI.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -0,0 +1,50 @@
+<%@ 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="calendarJSAPIID">
+ <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>
+ <br />
+ <a href="#" id="doEnableCalendarID">Calendar (enable)</a>
+ <br />
+ <a href="#" id="doDisableCalendarID">Calendar (disable)</a>
+ <br />
+ <a href="#" id="doCurrentYearCalendarID">Calendar (currentYear)</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" />
+ <rich:componentControl attachTo="doEnableCalendarID" for="ccCalendarID" event="onclick" operation="enable" />
+ <rich:componentControl attachTo="doDisableCalendarID" for="ccCalendarID" event="onclick" operation="disable" />
+ <rich:componentControl attachTo="doTodayCalendarID" for="ccCalendarID" event="onclick" operation="disable" />
+ <rich:componentControl attachTo="doCurrentYearCalendarID" for="ccCalendarID" event="onclick" operation="getCurrentYear" />
+ <f:verbatim>
+selectDate(date) Selects the date specified. If the date isn't in current month - performs request to select
+isDateEnabled(date) Checks if given date is selectable
+enableDate(date) Enables date cell control on the calendar
+disableDate(date) Disables date cell control on the calendar
+enableDates(date[]) Enables dates cell controls set on the calendar
+disableDates(date[]) Disables dates cell controls set on the calendar
+getSelectedDate() Returns currently selected date
+Object getData() Returns additional data for the date
+getCurrentMonth() Returns number of the month currently being viewed
+getCurrentYear() Returns number of the year currently being viewed
+</f:verbatim>
+</f:subview>
Modified: trunk/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -28,34 +28,14 @@
<br />
</f:verbatim>
- <rich:calendar popup="#{componentControl.calendarPopup}" id="ccCalendarID" />
+ <rich:calendar popup="#{componentControl.calendarPopup}" id="ccCalendarID" mode="ajax" />
<h:panelGrid columns="2">
<h:outputText value="popup calendar" />
<h:selectBooleanCheckbox id="calendarSelectID" value="#{componentControl.calendarPopup}" onchange="submit();" />
</h:panelGrid>
+<a onclick="$('j_id_jsp_362828066_1:componentControlSubviewID:ccCalendarID').component.Expand()" href="#">Show</a>
- <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 />
@@ -78,4 +58,6 @@
</rich:contextMenu>
<rich:componentControl event="oncontextmenu" attachTo="ccContextMenuPanelMenuID" for="ccContextMenuID"
operation="show" params="expand:'show work'" />
+
+ <jsp:include page="CalendarJSAPI.jsp" />
</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/ComponentControl/ContextMenuJSAPI.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ComponentControl/ContextMenuJSAPI.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ComponentControl/ContextMenuJSAPI.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -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="contextMenuJSAPIID">
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/ComponentControl/ListShuttleJSAPI.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ComponentControl/ListShuttleJSAPI.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ComponentControl/ListShuttleJSAPI.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -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="ListShuttleJSAPIID">
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/ComponentControl/ModalPanelJSAPI.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ComponentControl/ModalPanelJSAPI.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ComponentControl/ModalPanelJSAPI.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -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="modalPanelJSAPIID">
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/ComponentControl/OrderingListJSAPI.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ComponentControl/OrderingListJSAPI.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ComponentControl/OrderingListJSAPI.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -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="orderinJSAPIID">
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/ComponentControl/PanelMenuJSAPI.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ComponentControl/PanelMenuJSAPI.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ComponentControl/PanelMenuJSAPI.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -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="PanelMenuJSAPIID">
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/ComponentControl/ScrollableDataTableJSAPI.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ComponentControl/ScrollableDataTableJSAPI.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ComponentControl/ScrollableDataTableJSAPI.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -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="scrollableDataTableJSAPIID">
+</f:subview>
Added: trunk/test-applications/jsp/src/main/webapp/ComponentControl/ToolTipJSAPI.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ComponentControl/ToolTipJSAPI.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/ComponentControl/ToolTipJSAPI.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -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="toolTipJSAPIID">
+</f:subview>
Modified: trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -10,6 +10,9 @@
<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:menuItem icon="/pics/header.png" value="JSAPI Hide" onclick="$(formID:contextMenuSubviewID:contextMenuDefaultID).component.doHide()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="hide" />
</rich:menuItem>
<rich:menuSeparator />
<rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
@@ -39,8 +42,10 @@
</rich:menuItem>
</rich:menuGroup>
</rich:contextMenu>
+ <a4j:commandLink onclick="$(formID:contextMenuSubviewID:contextMenuDefaultID).component.doShow()" value="JSAPI Show"></a4j:commandLink>
</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}"
Modified: trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -27,91 +27,7 @@
</head>
<body>
<h:form id="test">
- <rich:dataTable id="richColumnsID" value="#{columns.data1}" var="d1"
- rendered="#{columns.dataTableRendered}">
- <h:column>
- <h:outputText value="h: #{d1.int0}"></h:outputText>
- </h:column>
- <rich:column>
- <h:outputText value="rich: #{d1.int0}"></h:outputText>
- </rich:column>
-
- <rich:columns value="#{columns.data2}" var="d2"
- breakBefore="#{columns.breakBefore}" colspan="#{columns.colspan}"
- columns="#{columns.columns}" index="index"
- rowspan="#{columns.rowspan}" sortable="#{columns.sortable}"
- title="#{columns.title}" begin="#{columns.begin}" end="100"
- width="#{columns.width}">
- <f:facet name="header">
- <h:outputText value="header #{d2.int0}"></h:outputText>
- </f:facet>
- <h:outputText value="#{index}. "></h:outputText>
- <h:outputText value="#{d1.str0}, "></h:outputText>
- <h:outputText value="#{d2.str0}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer #{d2.int0}"></h:outputText>
- </f:facet>
- </rich:columns>
- </rich:dataTable>
- <h:commandButton value="submit"></h:commandButton>
- <a4j:commandButton value="submit [a4j]" reRender="columnsID"></a4j:commandButton>
- <h:panelGrid columns="2">
- <f:facet name="header">
- <h:outputText value="columns"></h:outputText>
- </f:facet>
- <h:outputText value="Enter quantity of lines [data 1]" />
- <h:panelGroup>
- <h:inputText value="#{columns.length1}" />
- <h:commandButton action="#{columns.addNewItem1}" value="ok"
- onclick="submit();"></h:commandButton>
- </h:panelGroup>
-
- <h:outputText value="Enter quantity of lines [data 2]" />
- <h:panelGroup>
- <h:inputText value="#{columns.length2}" />
- <h:commandButton action="#{columns.addNewItem2}" value="ok"
- onclick="submit();"></h:commandButton>
- </h:panelGroup>
-
- <h:outputText value="title:"></h:outputText>
- <h:inputText value="#{columns.title}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="columns (*):"></h:outputText>
- <h:inputText value="#{columns.columns}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="rowspan:"></h:outputText>
- <h:inputText value="#{columns.rowspan}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="colspan:"></h:outputText>
- <h:inputText value="#{columns.colspan}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="begin:"></h:outputText>
- <h:inputText value="#{columns.begin}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="end:"></h:outputText>
- <h:inputText value="#{columns.end}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="width:"></h:outputText>
- <h:inputText value="#{columns.width}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="sortable"></h:outputText>
- <h:selectBooleanCheckbox value="#{columns.sortable}"
- onchange="submit();">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="breakBefore:"></h:outputText>
- <h:selectBooleanCheckbox value="#{columns.breakBefore}"
- onchange="submit();">
- </h:selectBooleanCheckbox>
- </h:panelGrid>
</h:form>
</body>
</f:view>
Modified: trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,8 +4,6 @@
<%@ 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}"
@@ -45,5 +43,4 @@
<a4j:support event="onclick" reRender="dataTableId"></a4j:support>
</h:selectOneRadio>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,8 +4,6 @@
<%@ 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>
@@ -27,5 +25,4 @@
<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
Modified: trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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}">
@@ -35,5 +34,4 @@
<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
Modified: trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<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/DropDownMenu/DropDownMenu.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -64,5 +64,4 @@
</rich:dropDownMenu>
</rich:panel>
</h:panelGrid>
- <a4j:log></a4j:log>
</f:subview>
Modified: trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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}">
@@ -87,5 +86,4 @@
</h:selectBooleanCheckbox>
<h:commandButton action="#{dDMenu.changeIcons}" value="ChangeIcons" />
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<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/InputNumberSlider/InputNumberSliderProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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}">
@@ -102,5 +101,4 @@
reRender="SliderId,slBtn">
</a4j:commandButton>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<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/InputNumberSpinnerProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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}">
@@ -52,5 +51,4 @@
<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
Modified: trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<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/ListShuttle/ListShuttleProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -8,9 +8,9 @@
<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();" />
+ <a4j:commandButton immediate="true" reRender="listShuttleID" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton value="submit();" />
+ <h:commandButton immediate="true" value="immediate submit();" />
</h:panelGroup>
<h:outputText value="Enter quantity of lines" />
@@ -107,4 +107,25 @@
<a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
</h:inputText>
</h:panelGrid>
+ <h:panelGrid columns="3">
+ <h:column></h:column>
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.doHide()" value="Hide"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.doShow()" value="Show"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.isShown)" value="isShown"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.Enable()" value="Enable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.Disable()" value="Disable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.isEnabled()" value="isEnabled"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveUp" value="moveUp"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveDown" value="moveDown"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveTop" value="moveTop"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveBottom" value="moveBottom"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copy" value="copy"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.remove" value="remove"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copyAll" value="copyAll"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.removeAll" value="removeAll"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.getSelection" value="getSelection"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.getItems" value="getItems"></a4j:commandLink>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Message/MessageProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Message/MessageProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Message/MessageProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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}">
@@ -87,5 +86,4 @@
<h:commandButton value="submit" />
<a4j:commandButton value="submit ajax" />
</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 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,7 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="modalPanelSubviewID">
- <h:messages />
+ <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}"
@@ -25,6 +25,7 @@
<f:selectItem itemLabel="2" itemValue="2" />
<f:selectItem itemLabel="3" itemValue="3" />
</h:selectOneListbox>
+ <jsp:include page="/Calendar/Calendar.jsp" />
<f:verbatim>
<br />
<br />
Modified: trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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}" >
@@ -83,5 +82,4 @@
<a4j:support event="onclick" reRender="modalPanelID"></a4j:support>
</h:selectBooleanCheckbox>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<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
Modified: trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -66,13 +66,13 @@
<f:facet name="header">
<h:outputText value="select" />
</f:facet>
- <h:selectOneMenu value="#{item.str2}" reRender="orderingListID">
+ <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" action="submit();"></a4j:support>
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
</h:selectOneMenu>
</h:column>
@@ -90,4 +90,21 @@
<h:graphicImage value="#{item.str3}" />
</h:column>
</rich:orderingList>
+ <h:panelGrid columns="3">
+ <h:column></h:column>
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.doHide()" value="Hide"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.doShow()" value="Show"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:orderingListSubviewID:orderingListID').component.isShown)" value="isShown"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Enable()" value="Enable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Disable()" value="Disable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.isEnabled()" value="isEnabled"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveUp" value="moveUp"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveDown" value="moveDown"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveTop" value="moveTop"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveBottom" value="moveBottom"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.getSelection" value="getSelection"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.getItems" value="getItems"></a4j:commandLink>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -104,9 +104,9 @@
<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();" />
+ <a4j:commandButton immediate="true" reRender="orderingListID" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton value="submit();" />
+ <h:commandButton immediate="true" value="immediate submit();" />
</h:panelGroup>
</h:panelGrid>
Modified: trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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}">
@@ -81,5 +80,4 @@
<a4j:support event="onclick" reRender="paint2dID"></a4j:support>
</h:selectBooleanCheckbox>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Panel/PanelProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Panel/PanelProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Panel/PanelProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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}">
@@ -24,5 +23,4 @@
<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
Modified: trunk/test-applications/jsp/src/main/webapp/Panel/PanelStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Panel/PanelStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Panel/PanelStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<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/PanelBarProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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}">
@@ -29,5 +28,4 @@
<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
Modified: trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<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 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenu.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -170,4 +170,5 @@
</rich:panelMenuGroup>
</rich:panelMenuGroup>
</rich:panelMenu>
+
</f:subview>
Modified: trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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}">
@@ -269,5 +268,14 @@
<a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
</h:selectOneMenu>
</h:panelGrid>
- </rich:simpleTogglePanel>
+ <h:panelGrid columns="3">
+ <h:column></h:column>
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink onclick="$('formID:panelMenuSubviewID:panelMenuID').component.doExpand()" value="doExpand"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:panelMenuSubviewID:panelMenuID').component.doExpand" value="doExpand"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:panelMenuSubviewID:panelMenuID').component.expand" value="doExpand"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:panelMenuSubviewID:panelMenuID').component.doExpand(event)" value="doExpand"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:panelMenuSubviewID:panelMenuID').component.doCollapse()" value="doCollapse"></a4j:commandLink>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<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
Modified: trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,41 +4,62 @@
<%@ 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="showEvent('oncompleteInputID', 'oncomplete work!')" onselectionchange="showEvent('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:scrollableDataTable id="sdt" var="sdt" rowKeyVar="key" onRowDblClick="alert('row:#{key}')"
+ ajaxSingle="#{scrollableDT.ajaxSingle}"
+ value="#{scrollableDT.data}" rows="#{scrollableDT.rows}"
+ width="#{scrollableDT.width}" height="#{scrollableDT.height}"
+ hideWhenScrolling="#{scrollableDT.hideWhenScrolling}"
+ reRender="inputID" frozenColCount="#{scrollableDT.frozenColCount}"
+ first="#{scrollableDT.first}" ignoreDupResponses="#{scrollableDT.ignoreDupResponses}"
+ bypassUpdates="#{scrollableDT.bypassUpdates}" rendered="#{scrollableDT.rendered}"
+ limitToList="#{scrollableDT.limitToList}"
+ timeout="#{scrollableDT.timeout}"
+ selection="#{scrollableDT.selection}"
+ oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+ onselectionchange="showEvent('onselectionchangeInputID', 'onselectionchange work!')">
+ <f:facet name="header">
+ <h:outputText value="facet header"></h:outputText>
+ </f:facet>
+
+ <rich:column>
+ <f:facet name="header"><h:outputText value="#"/></f:facet>
+ <h:outputText value="#{sdt.int0}"></h:outputText>
+ <f:facet name="footer"><h:outputText value="#"/></f:facet>
+ </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>
+ <f:facet name="header"><h:outputText value="Text"></h:outputText> </f:facet>
+ <h:outputText value="#{sdt.str0}"></h:outputText>
+ <f:facet name="footer"><h:outputText value="Text"></h:outputText> </f:facet>
+ </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>
+ <rich:column>
+ <f:facet name="header"><h:outputText value="Link"></h:outputText> </f:facet>
+ <a4j:commandLink value="#{sdt.str1}" reRender="sdt"></a4j:commandLink>
+ <f:facet name="footer"><h:outputText value="Link"></h:outputText> </f:facet>
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header"><h:outputText value="Select"></h:outputText> </f:facet>
+ <h:selectOneMenu value="#{sdt.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" />
+ </h:selectOneMenu>
+ <f:facet name="footer"><h:outputText value="Select"></h:outputText> </f:facet>
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header"><h:outputText value="Select"></h:outputText> </f:facet>
+ <h:graphicImage value="#{sdt.str3}"></h:graphicImage>
+ <f:facet name="footer"><h:outputText value="Select"></h:outputText> </f:facet>
+ </rich:column>
+
+ <f:facet name="footer">
+ <h:outputText value="facet footer"></h:outputText>
+ </f:facet>
+ </rich:scrollableDataTable>
</f:subview>
Modified: trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -5,14 +5,52 @@
<f:subview id="scrollableDataTablePropertySubviewID">
<h:panelGrid columns="2">
- <h:outputText value="rows" />
- <h:inputText value="#{scrollableDT.rows}" />
+ <h:outputText value="length:"></h:outputText>
+ <h:inputText value="#{scrollableDT.dataLength}" onchange="submit();">
+ </h:inputText>
- <h:outputText value="width" />
- <h:inputText value="#{scrollableDT.width}" />
+ <h:outputText value="rows:" />
+ <h:inputText value="#{scrollableDT.rows}" onchange="submit();">
+ </h:inputText>
- <h:outputText value="hideWhenScrolling" />
- <h:selectBooleanCheckbox value="#{scrollableDT.hideWhenScrolling}" />
+ <h:outputText value="first:"></h:outputText>
+ <h:inputText value="#{scrollableDT.first}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="timeout"></h:outputText>
+ <h:inputText value="#{scrollableDT.timeout}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="width:" />
+ <h:inputText value="#{scrollableDT.width}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="height:"></h:outputText>
+ <h:inputText value="#{scrollableDT.height}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="frozenColCount"></h:outputText>
+ <h:inputText value="#{scrollableDT.frozenColCount}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="limitToList"></h:outputText>
+ <h:selectBooleanCheckbox value="#{scrollableDT.limitToList}" onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="bypassUpdates:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{scrollableDT.bypassUpdates}" onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="ajaxSingle:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{scrollableDT.ajaxSingle}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{scrollableDT.rendered}" onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="hideWhenScrolling:" />
+ <h:selectBooleanCheckbox value="#{scrollableDT.hideWhenScrolling}" onchange="submit();">
+ </h:selectBooleanCheckbox>
</h:panelGrid>
<a4j:commandButton value="reRender" reRender="sdt"></a4j:commandButton>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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}">
@@ -45,5 +44,4 @@
<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
Modified: trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<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/SimpleTogglePanelProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -30,5 +29,4 @@
<h:selectBooleanCheckbox value="#{simpleTogglePanel.rendered}" onclick="submit()">
</h:selectBooleanCheckbox>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<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/SpacerStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<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 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -9,12 +9,12 @@
<br />
</f:verbatim>
<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}"
+ <rich:suggestionbox id="suggestionBoxId" for="text" var="result"
+ fetchValue="#{result.text}"
+ 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="1" tokens=", ]"
+ first="#{sb.first}" minChars="#{sb.minchars}" tokens="#{sb.tokens}"
bgcolor="#{sb.bgColor}" focus="#{sb.forcus}" title="#{result.text}"
summary="summary" shadowOpacity="#{sb.shadowOpacity}"
shadowDepth="#{sb.shadowDepth}" selectValueClass="mousemove" frequency="#{sb.frequency}"
Modified: trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -48,6 +47,9 @@
<h:inputText value="#{sb.first}">
<a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
</h:inputText>
+
+ <h:outputText value="tokens:"></h:outputText>
+ <h:inputText value="#{sb.tokens}"></h:inputText>
<f:verbatim>MinChars</f:verbatim>
<h:inputText value="#{sb.minchars}">
@@ -95,5 +97,4 @@
<a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
</h:selectOneRadio>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,8 +4,6 @@
<%@ 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>
@@ -27,5 +25,4 @@
<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/TabPanelProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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();" />
@@ -63,5 +62,4 @@
<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
Modified: trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<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/TogglePanelProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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}">
@@ -29,5 +28,4 @@
<a4j:support event="onclick" reRender="panel1,panel2"></a4j:support>
</h:selectOneRadio>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,8 +4,7 @@
<%@ 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:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{togglePanel.bTest1}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
<h:outputText value="#{msg.t1TogglePanel}"/>
@@ -26,5 +25,4 @@
<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/Tooltip/Tooltip.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -25,7 +25,14 @@
</f:facet>
</rich:toolTip>
</h:inputText>
-
+ <h:panelGrid columns="3">
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink onclick="$('formID:tooltipSubviewID:inp1').component.doShow()" value="doShow"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:tooltipSubviewID:inp1').component.doHide()" value="doHide"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:tooltipSubviewID:inp1').component.doEnable()" value="doEnable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:tooltipSubviewID:inp1').component.doDisable()" value="doDisable"></a4j:commandLink>
+ </h:panelGrid>
<h:selectOneListbox value="1" id="ddl">
<rich:toolTip value="1231231" onclick="showEvent('onclickInputID', 'onclick work!')"
oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')" ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')"
Modified: trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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}">
@@ -75,5 +74,4 @@
<a4j:support event="onclick" reRender="tooltipID" />
</h:selectBooleanCheckbox>
</h:panelGrid>
- </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,7 +4,6 @@
<%@ 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>
@@ -26,5 +25,4 @@
<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/pages/Rich/Rich.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -22,42 +22,45 @@
oldObject.parentNode.replaceChild(newObject,oldObject);
}
</script>
- <link rel="stylesheet" href="<%=request.getContextPath()%>/styles/styles.css" type="text/css" />
+ <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>
+ <div id="divOpthID" align="right" style="z-index: 200"><jsp:include
+ page="/pages/RichMenu/RichMenu.jsp" /></div>
+ <h:form id="formID">
<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;">
+ <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');" />
+ <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>
+ <a4j:commandButton value="Show event"
+ onclick="Richfaces.showModalPanel('eventInfoID');return false;"></a4j:commandButton>
</body>
</f:view>
</html>
Modified: trunk/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp 2008-01-15 00:29:48 UTC (rev 5368)
+++ trunk/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp 2008-01-15 08:13:07 UTC (rev 5369)
@@ -4,10 +4,14 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<h:form id="forvDivOpthID">
- <h:panelGrid columns="4" border="1">
- <h:column>
+ <h:panelGrid columns="5" border="1">
+ <h:panelGrid columns="1">
+ <h:commandButton value="submit" style="width : 85px; height : 21px;"></h:commandButton>
+ <a4j:commandButton value="submit[a4j]" reRender="richGridID" style="width : 85px; height : 21px;"></a4j:commandButton>
+ </h:panelGrid>
+ <h:panelGrid columns="1">
<a4j:status startText="WORK!" startStyle="color: red;" stopText="a4j:status"></a4j:status>
- </h:column>
+ </h:panelGrid>
<h:panelGrid columns="1">
<h:panelGroup>
<h:outputText value="#{richBean.reComponent ? 'Component hide' : 'Component show'}" />
17 years
JBoss Rich Faces SVN: r5368 - trunk/framework/impl/src/main/java/org/ajax4jsf/resource.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-01-14 19:29:48 -0500 (Mon, 14 Jan 2008)
New Revision: 5368
Added:
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/PreprocessingRenderer.java
Removed:
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/PreprocessingRenderer.java
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/InternetResourceBase.java
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java
Log:
http://jira.jboss.com/jira/browse/RF-1676
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/InternetResourceBase.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/InternetResourceBase.java 2008-01-14 20:19:04 UTC (rev 5367)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/InternetResourceBase.java 2008-01-15 00:29:48 UTC (rev 5368)
@@ -30,10 +30,6 @@
import javax.faces.context.FacesContext;
import org.ajax4jsf.Messages;
-import org.ajax4jsf.resource.InternetResource;
-import org.ajax4jsf.resource.InternetResourceBuilder;
-import org.ajax4jsf.resource.ResourceContext;
-import org.ajax4jsf.resource.ResourceRenderer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -183,6 +179,18 @@
*/
public void setRenderer(ResourceRenderer renderer) {
this.renderer = renderer;
+
+ if (renderer instanceof PreprocessingRenderer) {
+ try {
+ if (log.isDebugEnabled()) {
+ log.debug("Preprocessing resource " + this);
+ }
+
+ ((PreprocessingRenderer) renderer).preprocess(this, null);
+ } catch (IOException e) {
+ log.error(e.getLocalizedMessage(), e);
+ }
+ }
}
/**
Deleted: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/PreprocessingRenderer.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/PreprocessingRenderer.java 2008-01-14 20:19:04 UTC (rev 5367)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/PreprocessingRenderer.java 2008-01-15 00:29:48 UTC (rev 5368)
@@ -1,35 +0,0 @@
-/**
- * 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 org.ajax4jsf.resource;
-
-import java.io.IOException;
-
-/**
- *
- * Created 14.01.2008
- * @author Nick Belaevski
- * @since 3.2
- */
-
-public interface PreprocessingRenderer {
- public void preprocess(InternetResource resource, ResourceContext resourceContext) throws IOException;
-}
Added: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/PreprocessingRenderer.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/PreprocessingRenderer.java (rev 0)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/PreprocessingRenderer.java 2008-01-15 00:29:48 UTC (rev 5368)
@@ -0,0 +1,45 @@
+/**
+ * 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 org.ajax4jsf.resource;
+
+import java.io.IOException;
+
+/**
+ * Renderers that wish to provide special handling for resource being associated with <code>this</code>
+ * renderer instance can implement this interface.
+ *
+ * Created 14.01.2008
+ * @author Nick Belaevski
+ * @since 3.2
+ */
+
+public interface PreprocessingRenderer {
+
+ /**
+ * Method is called by resource being associated with <code>this</code> renderer
+ *
+ * @param resource resource that is being associated
+ * @param resourceContext resource context
+ * @throws IOException
+ */
+ public void preprocess(InternetResource resource, ResourceContext resourceContext) throws IOException;
+}
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java 2008-01-14 20:19:04 UTC (rev 5367)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java 2008-01-15 00:29:48 UTC (rev 5368)
@@ -47,6 +47,10 @@
import javax.servlet.ServletContext;
import org.ajax4jsf.Messages;
+import org.ajax4jsf.resource.InternetResource;
+import org.ajax4jsf.resource.InternetResourceBuilder;
+import org.ajax4jsf.resource.ResourceNotFoundException;
+import org.ajax4jsf.resource.ResourceRenderer;
import org.ajax4jsf.util.base64.Codec;
import org.ajax4jsf.webapp.WebXml;
import org.apache.commons.digester.Digester;
@@ -393,27 +397,12 @@
}
}
- private long time = 0;
-
public void addResource(InternetResource resource) {
resources.put(resource.getKey(), resource);
ResourceRenderer renderer = resource.getRenderer(null);
if (renderer == null) {
setRenderer(resource, resource.getKey());
}
-
- renderer = resource.getRenderer(null);
- if (renderer instanceof PreprocessingRenderer) {
- long l = System.currentTimeMillis();
- try {
- ((PreprocessingRenderer) renderer).preprocess(resource, null);
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- time += System.currentTimeMillis() - l;
- System.out.println("ResourceBuilderImpl.addResource() " + time);
- }
}
public void addResource(String key, InternetResource resource) {
17 years
JBoss Rich Faces SVN: r5367 - trunk/framework/impl/src/main/java/org/ajax4jsf/resource.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-01-14 15:19:04 -0500 (Mon, 14 Jan 2008)
New Revision: 5367
Added:
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/PreprocessingRenderer.java
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/TemplateCSSRenderer.java
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/TemplateCSSResource.java
Log:
Resource preregistraion added
Added: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/PreprocessingRenderer.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/PreprocessingRenderer.java (rev 0)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/PreprocessingRenderer.java 2008-01-14 20:19:04 UTC (rev 5367)
@@ -0,0 +1,35 @@
+/**
+ * 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 org.ajax4jsf.resource;
+
+import java.io.IOException;
+
+/**
+ *
+ * Created 14.01.2008
+ * @author Nick Belaevski
+ * @since 3.2
+ */
+
+public interface PreprocessingRenderer {
+ public void preprocess(InternetResource resource, ResourceContext resourceContext) throws IOException;
+}
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java 2008-01-14 20:13:38 UTC (rev 5366)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java 2008-01-14 20:19:04 UTC (rev 5367)
@@ -47,10 +47,6 @@
import javax.servlet.ServletContext;
import org.ajax4jsf.Messages;
-import org.ajax4jsf.resource.InternetResource;
-import org.ajax4jsf.resource.InternetResourceBuilder;
-import org.ajax4jsf.resource.ResourceNotFoundException;
-import org.ajax4jsf.resource.ResourceRenderer;
import org.ajax4jsf.util.base64.Codec;
import org.ajax4jsf.webapp.WebXml;
import org.apache.commons.digester.Digester;
@@ -397,12 +393,27 @@
}
}
+ private long time = 0;
+
public void addResource(InternetResource resource) {
resources.put(resource.getKey(), resource);
ResourceRenderer renderer = resource.getRenderer(null);
if (renderer == null) {
setRenderer(resource, resource.getKey());
}
+
+ renderer = resource.getRenderer(null);
+ if (renderer instanceof PreprocessingRenderer) {
+ long l = System.currentTimeMillis();
+ try {
+ ((PreprocessingRenderer) renderer).preprocess(resource, null);
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ time += System.currentTimeMillis() - l;
+ System.out.println("ResourceBuilderImpl.addResource() " + time);
+ }
}
public void addResource(String key, InternetResource resource) {
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/TemplateCSSRenderer.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/TemplateCSSRenderer.java 2008-01-14 20:13:38 UTC (rev 5366)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/TemplateCSSRenderer.java 2008-01-14 20:19:04 UTC (rev 5367)
@@ -45,7 +45,7 @@
* @author shura
*
*/
-public class TemplateCSSRenderer extends StyleRenderer {
+public class TemplateCSSRenderer extends StyleRenderer implements PreprocessingRenderer {
private static final String COMPILED_TEMPLATE_PROPERTY = "compiled-template";
@@ -157,4 +157,9 @@
return value;
}
+ public void preprocess(InternetResource resource,
+ ResourceContext resourceContext) throws IOException {
+
+ getTemplate(resource, resourceContext);
+ }
}
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/TemplateCSSResource.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/TemplateCSSResource.java 2008-01-14 20:13:38 UTC (rev 5366)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/TemplateCSSResource.java 2008-01-14 20:19:04 UTC (rev 5367)
@@ -29,17 +29,13 @@
import javax.faces.FacesException;
import javax.faces.context.FacesContext;
-import org.ajax4jsf.resource.InternetResource;
-import org.ajax4jsf.resource.InternetResourceBuilder;
-import org.ajax4jsf.resource.ResourceContext;
-import org.ajax4jsf.resource.ResourceRenderer;
-
/**
* Class for create and send resources from template ( at most, used for CSS files )
* @author shura (latest modification by $Author: nick_belaevski $)
* @version $Revision: 1.1.2.2 $ $Date: 2007/01/11 16:52:14 $
*
+ * @deprecated
*/
public class TemplateCSSResource implements InternetResource {
17 years
JBoss Rich Faces SVN: r5366 - in trunk/sandbox/samples/progressBarDemo/src/main: webapp/pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-01-14 15:13:38 -0500 (Mon, 14 Jan 2008)
New Revision: 5366
Modified:
trunk/sandbox/samples/progressBarDemo/src/main/java/org/richfaces/sandbox/samples/Bean.java
trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp
Log:
Mode switching added
Modified: trunk/sandbox/samples/progressBarDemo/src/main/java/org/richfaces/sandbox/samples/Bean.java
===================================================================
--- trunk/sandbox/samples/progressBarDemo/src/main/java/org/richfaces/sandbox/samples/Bean.java 2008-01-14 19:36:19 UTC (rev 5365)
+++ trunk/sandbox/samples/progressBarDemo/src/main/java/org/richfaces/sandbox/samples/Bean.java 2008-01-14 20:13:38 UTC (rev 5366)
@@ -33,6 +33,7 @@
private boolean enabled = false;
private boolean permanent = false;
private boolean determined = true;
+ private boolean ajaxMode;
private Integer value = 0;
@@ -90,7 +91,17 @@
public void setDetermined(boolean determined) {
this.determined = determined;
}
+
+ public boolean isAjaxMode() {
+ return ajaxMode;
+ }
+
+ public void setAjaxMode(boolean ajaxMode) {
+ this.ajaxMode = ajaxMode;
+ }
-
+ public String getModeString() {
+ return ajaxMode ? "ajax" : "client";
+ }
}
\ No newline at end of file
Modified: trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp 2008-01-14 19:36:19 UTC (rev 5365)
+++ trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp 2008-01-14 20:13:38 UTC (rev 5366)
@@ -36,7 +36,7 @@
permanent="#{bean.permanent}"
determined="#{bean.determined}"
reRenderAfterComplete="per2"
- mode="client">
+ mode="#{bean.modeString}">
<f:facet name="initial">
<h:outputText value="Process not started"></h:outputText>
</f:facet>
@@ -65,6 +65,12 @@
Determined: <h:selectBooleanCheckbox value="#{bean.determined}" id="flag2">
<a4j:support event="onclick" reRender="progrs"></a4j:support>
</h:selectBooleanCheckbox>
+ <f:verbatim><br /></f:verbatim>
+
+ Ajax mode: <h:selectBooleanCheckbox value="#{bean.ajaxMode}" id="flag3">
+ <a4j:support event="onclick" reRender="progrs"></a4j:support>
+ </h:selectBooleanCheckbox>
+ <f:verbatim><br /></f:verbatim>
</h:form>
<script>
var pr = new ProgressBar('j_id_jsp_2009877409_1:progrs');
17 years
JBoss Rich Faces SVN: r5365 - trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-01-14 14:36:19 -0500 (Mon, 14 Jan 2008)
New Revision: 5365
Modified:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
Log:
http://jira.jboss.com/jira/browse/RF-1862
Modified: trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
===================================================================
--- trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2008-01-14 18:53:55 UTC (rev 5364)
+++ trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2008-01-14 19:36:19 UTC (rev 5365)
@@ -112,14 +112,19 @@
if (menuLayer.refItem) menuLayer.refItem.highLightGroup(false);
} else if (!visible && visibleFlag) {
var menuLayer = this.layers[menu.id];
- if (menuLayer && menuLayer.eventOnOpen) menuLayer.eventOnOpen();
- if (menuLayer && menuLayer.eventOnExpand) menuLayer.eventOnExpand();
-
- if (menuLayer.level>0) {
- do {
- menuLayer = this.layers[(this.father[menuLayer.id])];
- } while (menuLayer.level > 0)
- if (menuLayer && menuLayer.eventOnGroupActivate) menuLayer.eventOnGroupActivate();
+ if (menuLayer) {
+ if (menuLayer.eventOnOpen) {
+ menuLayer.eventOnOpen();
+ }
+ if (menuLayer.eventOnExpand) {
+ menuLayer.eventOnExpand();
+ }
+ if (menuLayer.level && menuLayer.level > 0) {
+ do {
+ menuLayer = this.layers[(this.father[menuLayer.id])];
+ } while (menuLayer.level > 0)
+ if (menuLayer && menuLayer.eventOnGroupActivate) menuLayer.eventOnGroupActivate();
+ }
}
}
},
@@ -316,7 +321,7 @@
e = window.event;
}
Event.stop(e);
- this.event = e;
+ this.event = Object.clone(e);
this.element = Event.element(e);
this.layer = $(layer);
this.show = function() {
17 years