[richfaces-svn-commits] JBoss Rich Faces SVN: r5526 - in branches/3.1.x/test-applications/jsp/src/main: java/contextMenu and 49 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Jan 22 03:42:45 EST 2008


Author: ayanul
Date: 2008-01-22 03:42:45 -0500 (Tue, 22 Jan 2008)
New Revision: 5526

Modified:
   branches/3.1.x/test-applications/jsp/src/main/java/calendar/CalendarBean.java
   branches/3.1.x/test-applications/jsp/src/main/java/calendar/CalendarDataModelImpl.java
   branches/3.1.x/test-applications/jsp/src/main/java/contextMenu/ContextMenu.java
   branches/3.1.x/test-applications/jsp/src/main/java/dataTable/DataTable.java
   branches/3.1.x/test-applications/jsp/src/main/java/dfs/DataFilterSliderDaoImpl.java
   branches/3.1.x/test-applications/jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java
   branches/3.1.x/test-applications/jsp/src/main/java/orderingList/OrderingList.java
   branches/3.1.x/test-applications/jsp/src/main/java/paint2D/Paint2D.java
   branches/3.1.x/test-applications/jsp/src/main/java/rich/MapComponent.java
   branches/3.1.x/test-applications/jsp/src/main/java/rich/RichBean.java
   branches/3.1.x/test-applications/jsp/src/main/java/sb/Data.java
   branches/3.1.x/test-applications/jsp/src/main/java/sb/Sb.java
   branches/3.1.x/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java
   branches/3.1.x/test-applications/jsp/src/main/java/spacer/Spacer.java
   branches/3.1.x/test-applications/jsp/src/main/java/tooltip/Tooltip.java
   branches/3.1.x/test-applications/jsp/src/main/java/util/data/Data.java
   branches/3.1.x/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/DataScroller/DataScroller.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/DataTable/DataTable.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/DataTable/DataTableProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Gmap/Gmap.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinner.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Message/MessageProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Paint2D/Paint2D.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Panel/Panel.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Panel/PanelProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Panel/PanelStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/PanelBar/PanelBar.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenu.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Separator/Separator.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Separator/SeparatorProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Spacer/Spacer.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Spacer/SpacerProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/TabPanel/TabPanel.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanel.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/ToolBar/ToolBar.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/Tree/Tree.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarth.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml
   branches/3.1.x/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Div/Div.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp
   branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Select/Map.jsp
Log:
update

Modified: branches/3.1.x/test-applications/jsp/src/main/java/calendar/CalendarBean.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/calendar/CalendarBean.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/calendar/CalendarBean.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -29,20 +29,21 @@
 import java.util.StringTokenizer;
 import java.util.TimeZone;
 
+import javax.faces.context.FacesContext;
 import javax.faces.event.ValueChangeEvent;
 
 import org.richfaces.event.CurrentDateChangeEvent;
 
 public class CalendarBean {
 
-	private static final String [] WEEK_DAY_SHORT = new String[] { "Sun*",
+	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+",
+	private static final String [] WEEK_DAY = new String[] { "*Saturday", "+Monday+",
 	"+Tuesday+", "+Wednesday+", "+Thursday+", "+Friday+", "*Sunday*"};
-	private static final String [] MOUNT_LABELS = new String[] { "January+",
+	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+",
+	private static final String [] MOUNT_LABELS_SHORT = new String[] { "+Jan",
 		"+Feb+", "+Mar+", "+Apr+", "+May+", "+Jun+", "+Jul+", "+Aug+",
 		"+Sep+", "+Oct+", "+Nov+", "+Dec+" };
 	private Locale locale;
@@ -72,10 +73,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 +123,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: branches/3.1.x/test-applications/jsp/src/main/java/calendar/CalendarDataModelImpl.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/calendar/CalendarDataModelImpl.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/calendar/CalendarDataModelImpl.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/java/contextMenu/ContextMenu.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/contextMenu/ContextMenu.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/contextMenu/ContextMenu.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/java/dataTable/DataTable.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/dataTable/DataTable.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/dataTable/DataTable.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/java/dfs/DataFilterSliderDaoImpl.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/dfs/DataFilterSliderDaoImpl.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/dfs/DataFilterSliderDaoImpl.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -5,7 +5,7 @@
 	// private String size;
 	// private String controlPosition;
 	private int inputSize;
-	private int tabindex;
+	private String tabindex;
 	private String max;
 	private String min;
 	private String value;
@@ -156,11 +156,11 @@
 		this.inputSize = inputSize;
 	}
 
-	public int getTabindex() {
+	public String getTabindex() {
 		return tabindex;
 	}
 
-	public void setTabindex(int tabindex) {
+	public void setTabindex(String tabindex) {
 		this.tabindex = tabindex;
 	}
 
@@ -171,7 +171,7 @@
 		setMin("0");
 		setMax("20");
 		setStep("1");
-		setTabindex(2);
+		setTabindex("2");
 		setValue("1");
 	}
 	
@@ -182,7 +182,7 @@
 		setMin("1000");
 		setMax("99999");
 		setStep("255");
-		setTabindex(5);
+		setTabindex("5");
 		setValue("5555");
 	}
 	
@@ -193,7 +193,7 @@
 		setMin("101");
 		setMax("202");
 		setStep("2");
-		setTabindex(2);
+		setTabindex("2");
 		setValue("102");
 	}
 	
@@ -204,7 +204,7 @@
 		setMin("33");
 		setMax("66");
 		setStep("11");
-		setTabindex(3);
+		setTabindex("3");
 		setValue("55");
 	}
 	
@@ -215,7 +215,7 @@
 		setMin("-99999");
 		setMax("99999");
 		setStep("33");
-		setTabindex(5);
+		setTabindex("5");
 		setValue("101");
 	}
 }

Modified: branches/3.1.x/test-applications/jsp/src/main/java/orderingList/OrderingList.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/orderingList/OrderingList.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/orderingList/OrderingList.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/java/paint2D/Paint2D.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/paint2D/Paint2D.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/paint2D/Paint2D.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -27,6 +27,7 @@
 	private String format; // jpeg|gif|png
 	private String bgcolor;
 	private String border;
+	private boolean cacheable;
 	private boolean rendered;
 	private boolean style;
 	
@@ -47,7 +48,7 @@
 	}
 
 	public Paint2D() {
-                
+		cacheable = false;        
 		width = 400;
 		align = "left";
 		height = 200;
@@ -233,4 +234,12 @@
 		setTitle("Test5");
 		//data.setText("Test5!");
 	}
+
+	public boolean isCacheable() {
+		return cacheable;
+	}
+
+	public void setCacheable(boolean cacheable) {
+		this.cacheable = cacheable;
+	}
 }

Modified: branches/3.1.x/test-applications/jsp/src/main/java/rich/MapComponent.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/rich/MapComponent.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/rich/MapComponent.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -1,14 +1,15 @@
 package rich;
 
 import java.util.ArrayList;
-import java.util.HashMap;
 import java.util.Map;
+import java.util.Set;
+import java.util.TreeMap;
 
 public class MapComponent {
 	private Map<String, ArrayList<String>> m;
 	
 	public MapComponent() {
-		m = new HashMap<String, ArrayList<String>>();
+		m = new TreeMap<String, ArrayList<String>>();
 	}
 	
 	public void add(String component, ArrayList<String> path) {
@@ -18,4 +19,8 @@
 	public ArrayList<String> get(String key){
 		return m.get(key);
 	}
+	
+	public Set getSet() {
+		return m.keySet();
+	}
 }

Modified: branches/3.1.x/test-applications/jsp/src/main/java/rich/RichBean.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/rich/RichBean.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/rich/RichBean.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -1,7 +1,11 @@
 package rich;
 
 import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
 
+import javax.faces.model.SelectItem;
+
 import org.richfaces.VersionBean;
 
 public class RichBean {
@@ -12,13 +16,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}));
@@ -37,7 +43,6 @@
 		map.add("ModalPanel", add("/ModalPanel/ModalPanel", new boolean [] {true, true}));
 		map.add("Paint2D", add("/Paint2D/Paint2D", new boolean [] {true, true}));
 		map.add("Panel", add("/Panel/Panel", new boolean [] {true, true}));
-		map.add("Panel2", add("/Panel/Panel2", new boolean [] {false, false}));
 		map.add("PanelBar", add("/PanelBar/PanelBar", new boolean [] {true, true}));
 		map.add("PanelMenu", add("/PanelMenu/PanelMenu", new boolean [] {true, true}));
 		map.add("Separator", add("/Separator/Separator", new boolean [] {true, true}));
@@ -58,6 +63,7 @@
 		map.add("ContextMenu", add("/ContextMenu/ContextMenu", new boolean [] {true, false}));
 		map.add("ListShuttle", add("/ListShuttle/ListShuttle", new boolean [] {true, true}));
 		map.add("ComponentControl", add("/ComponentControl/ComponentControl", new boolean [] {false, false}));
+		map.add("Columns", add("/Columns/Columns", new boolean [] {true, false}));
 	}
 	
 	public String getSrc() {
@@ -119,4 +125,22 @@
 	public void setVersion(String version) {
 		this.version = version;
 	}
+	
+	public boolean isLog() {
+		return log;
+	}
+
+	public void setLog(boolean log) {
+		this.log = log;
+	}
+	
+	public List<SelectItem> getList(){
+		Iterator<String> iterator = map.getSet().iterator();
+		List<SelectItem> list = new ArrayList<SelectItem>();
+		while(iterator.hasNext()){
+			list.add(new SelectItem(iterator.next()));
+		}
+		return list;
+	}
+	
 }

Modified: branches/3.1.x/test-applications/jsp/src/main/java/sb/Data.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/sb/Data.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/sb/Data.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/java/sb/Sb.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/sb/Sb.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/sb/Sb.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -5,13 +5,13 @@
 import java.util.Iterator;
 import java.util.List;
 
+import org.richfaces.component.html.HtmlSuggestionBox;
 import org.richfaces.renderkit.html.SuggestionBoxRenderer;
 
 public class Sb implements Serializable {
 
 	private ArrayList cities;
 	private ArrayList data;
-	private ArrayList tokens;
 	private int first;
 	private int zindex;
 	private double frequency;
@@ -27,7 +27,14 @@
 	private String shadowOpacity;
 	private String bgColor;
 	private String shadowDepth;
+	private Object tokens;
 	private boolean focus;
+	private boolean ajaxSingle;
+	private boolean rendered;
+	private boolean selfRendered;
+	private String value;
+	private String dir;
+	private int requestDelay;
 
 	/*
 	 * private static final String[] cit = { "Abba", "Abbeville", "Acworth",
@@ -50,6 +57,13 @@
 
 
 	public Sb() {
+		dir = "LTR";
+		ajaxSingle = false;
+		rendered = true;
+		selfRendered = false;
+		value = "a, ";
+		requestDelay = 100;
+		tokens = "[ ,";
 		border = "1";
 		width = "200";
 		height = "150";
@@ -198,14 +212,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 +344,64 @@
 		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;
+	}
+
+	public boolean isAjaxSingle() {
+		return ajaxSingle;
+	}
+
+	public void setAjaxSingle(boolean ajaxSingle) {
+		this.ajaxSingle = ajaxSingle;
+	}
+
+	public boolean isRendered() {
+		return rendered;
+	}
+
+	public void setRendered(boolean rendered) {
+		this.rendered = rendered;
+	}
+
+	public boolean isSelfRendered() {
+		return selfRendered;
+	}
+
+	public void setSelfRendered(boolean selfRendered) {
+		this.selfRendered = selfRendered;
+	}
+
+	public String getValue() {
+		return value;
+	}
+
+	public void setValue(String value) {
+		this.value = value;
+	}
+
+	public int getRequestDelay() {
+		return requestDelay;
+	}
+
+	public void setRequestDelay(int requestDelay) {
+		this.requestDelay = requestDelay;
+	}
+
+	public String getDir() {
+		return dir;
+	}
+
+	public void setDir(String dir) {
+		this.dir = dir;
+	}
 }

Modified: branches/3.1.x/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/java/spacer/Spacer.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/spacer/Spacer.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/spacer/Spacer.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -3,17 +3,14 @@
 public class Spacer {
 
 	private String width;
-
 	private String height;
-
 	private String style;
-
 	private String btn;
-
+	private String title;
 	private boolean rendered;
 
 	public Spacer() {
-
+		title = "title text";
 		height = "50px";
 		width = "300px";
 		rendered = true;
@@ -97,4 +94,12 @@
 		setHeight("400");
 		setWidth("200");
 	}
+
+	public String getTitle() {
+		return title;
+	}
+
+	public void setTitle(String title) {
+		this.title = title;
+	}
 }

Modified: branches/3.1.x/test-applications/jsp/src/main/java/tooltip/Tooltip.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/tooltip/Tooltip.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/tooltip/Tooltip.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -8,12 +8,23 @@
 	private int horizontalOffset;
 	private int verticalOffset;
 	private int delay;
+	private int hideDelay;
+	private int showDelay; 
 	private String value;
 	private String mode;
 	private String direction;
 	private String style;
 	private String layout;
+	private String event;
 		
+	public String getEvent() {
+		return event;
+	}
+
+	public void setEvent(String event) {
+		this.event = event;
+	}
+
 	public String getLayout() {
 		return layout;
 	}
@@ -23,6 +34,9 @@
 	}
 
 	public Tooltip() {
+		event = "onmouseover";
+		showDelay = 100;
+		hideDelay = 10;
 		followMouse = false;
 		rendered = true;
 		disabled = false;
@@ -180,4 +194,20 @@
 		setValue("Test5");		
 		setRendered(true);
 	}
+
+	public int getHideDelay() {
+		return hideDelay;
+	}
+
+	public void setHideDelay(int hideDelay) {
+		this.hideDelay = hideDelay;
+	}
+
+	public int getShowDelay() {
+		return showDelay;
+	}
+
+	public void setShowDelay(int showDelay) {
+		this.showDelay = showDelay;
+	}
 }

Modified: branches/3.1.x/test-applications/jsp/src/main/java/util/data/Data.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/util/data/Data.java	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/java/util/data/Data.java	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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 #{headerFacet}" />
-				</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: branches/3.1.x/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -4,10 +4,17 @@
 <%@ 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:outputText value="Mode" />
+				<h:panelGroup>
+					<a4j:commandButton value="reRender" reRender="calendarClientID,calendarAjaxID"></a4j:commandButton>
+					<a4j:commandButton reRender="calendarClientID,calendarAjaxID" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+					<h:commandButton action="submit();" value="submit();" />
+					<h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+				</h:panelGroup>
+				<h:column></h:column>
+				
+				<h:outputText value="Mode:" />
 				<h:selectOneRadio value="#{calendarBean.mode}" onchange="submit();">
 					<f:selectItem itemLabel="client" itemValue="client"/>
 					<f:selectItem itemLabel="ajax" itemValue="ajax"/>
@@ -15,7 +22,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,22 +30,45 @@
 				</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="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.weekDay}">
+				<h:selectOneRadio value="#{calendarBean.todayControlMode}" onchange="submit();">
+					<f:selectItem itemLabel="scroll" itemValue="scroll" />
+					<f:selectItem itemLabel="select" itemValue="select" />
+					<f:selectItem itemLabel="hidden" itemValue="hidden" />
+				</h:selectOneRadio>
+
+				<h:outputText value="Custom day labels" />
+				<h:selectOneRadio value="#{calendarBean.weekDay}" onchange="submit();">
 					<f:selectItem itemLabel="none" itemValue="none" />
 					<f:selectItem itemLabel="day labels" itemValue="long" />
 					<f:selectItem itemLabel="day labels short" itemValue="short" />
-					<a4j:support event="onclick" reRender="calendarClientID,calendarAjaxID"></a4j:support>
 				</h:selectOneRadio>
 
 				<h:outputText value="Custom month labels" />
-				<h:selectOneRadio value="#{calendarBean.month}">
+				<h:selectOneRadio value="#{calendarBean.month}" onchange="submit();">
 					<f:selectItem itemLabel="none" itemValue="none" />
 					<f:selectItem itemLabel="day labels" itemValue="long" />
 					<f:selectItem itemLabel="day labels short" itemValue="short" />
-					<a4j:support event="onclick" reRender="calendarClientID,calendarAjaxID"></a4j:support>
 				</h:selectOneRadio>
 
 				<h:outputText value="Select Date Pattern:" />
@@ -64,6 +94,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 +174,21 @@
 				<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.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(new Data().setFullYear(2010,0,14)))" value="getSelectedDate"></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.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: branches/3.1.x/test-applications/jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -4,7 +4,6 @@
 <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
 
 <f:subview id="componentControlSubviewID">
-	<h:form>
 		<rich:modalPanel id="ccModalPanelID" onshow="alert(event.parameters.show)" onhide="alert(event.parameters.hide)">
 			<h:outputLink id="hideButton1ID" onclick="return false;" value="#">
 				<f:verbatim>Close 1</f:verbatim>
@@ -24,61 +23,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 />
@@ -88,21 +45,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

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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,14 +42,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: branches/3.1.x/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -1,27 +1,35 @@
 <!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>
+<%@ 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"%>
 
-
+<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: branches/3.1.x/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -5,7 +5,7 @@
 
 <f:subview 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: branches/3.1.x/test-applications/jsp/src/main/webapp/DataScroller/DataScroller.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DataScroller/DataScroller.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DataScroller/DataScroller.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -13,12 +13,12 @@
 					renderIfSinglePage="#{dataScroller.renderIfSinglePage}"
 					maxPages="#{dataScroller.maxPages}" 
 					scrollerListener="#{dataScroller.ScrollerListener}" 
-					onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-					ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-					onkeypress="print('onkeypressInputID', 'onkeypress work!')"
-					onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
-					onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')" 
-					onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"/>
+					onclick="showEvent('onclickInputID', 'onclick work!')" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+					ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+					onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')"
+					onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')" onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')"
+					onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" 
+					onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"/>
 			</f:facet>
 			<h:column>
 				<h:outputText value="#{dT.data0}" />

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/DataTable/DataTable.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DataTable/DataTable.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DataTable/DataTable.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -5,14 +5,14 @@
 
 <f:subview id="DataTableSubviewID">
 		<rich:dataTable id="dataTableID" var="dataTableID" value="#{dataTable.mounths}" rowKeyVar="key" styleClass="table"
-			captionClass="caption" rowClasses="rowa,rowb,rowc rowcc" headerClass="header" footerClass="footer" onRowClick="print('onRowClickInputID', 'onRowClick work!');alert('row #{key}');" rendered="#{dataTable.rendered}" align="#{dataTable.align}" bgcolor="red"
+			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"
-			onRowDblClick="print('onRowDblClickInputID', 'onRowDblClick work!')"
-			onRowMouseDown="print('onRowMouseDownInputID', 'onRowMouseDown work!')"
-			onRowMouseMove="print('onRowMouseMoveInputID', 'onRowMouseMove work!')"
-			onRowMouseOut="print('onRowMouseOutInputID', 'onRowMouseOut work!')"
-			onRowMouseOver="print('onRowMouseOverInputID', 'onRowMouseOver work!')"
-			onRowMouseUp="print('onRowMouseUpInputID', 'onRowMouseUp work!')">
+			onRowDblClick="showEvent('onRowDblClickInputID', 'onRowDblClick work!')"
+			onRowMouseDown="showEvent('onRowMouseDownInputID', 'onRowMouseDown work!')"
+			onRowMouseMove="showEvent('onRowMouseMoveInputID', 'onRowMouseMove work!')"
+			onRowMouseOut="showEvent('onRowMouseOutInputID', 'onRowMouseOut work!')"
+			onRowMouseOver="showEvent('onRowMouseOverInputID', 'onRowMouseOver work!')"
+			onRowMouseUp="showEvent('onRowMouseUpInputID', 'onRowMouseUp work!')">
 			<f:facet name="caption">
 				<h:outputText value="caption facet" />
 			</f:facet>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/DataTable/DataTableProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DataTable/DataTableProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DataTable/DataTableProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -4,7 +4,12 @@
 <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
 
 <f:subview id="dataDefinitionListSubviewID">	
-	<script type="text/javascript">
+		
+	<a4j:outputPanel ajaxRendered="true">
+		<h:messages />
+	</a4j:outputPanel>
+	
+	<script>
 		DnD.CLIENT_VALIDATION_OFF = false;
 	</script>
 	
@@ -17,9 +22,9 @@
 				<h:column>
 					<h:panelGrid styleClass="dropzoneDecoration" id="drag1">
 						<h:outputText value="#{type} - drag" />
-						<rich:dragSupport dragType="#{type}" dragValue="#{type} - value" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-							ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
-							onsubmit="print('onsubmitInputID', 'onsubmit work!')" action="#{dndBean.dragAction}" dragListener="#{dndBean.processDrag}">
+						<rich:dragSupport dragType="#{type}" dragValue="#{type} - value" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+							ondragend="showEvent('ondragendInputID', 'ondragend work!')" ondragstart="showEvent('ondragstartInputID', 'ondragstart work!')"
+							onsubmit="showEvent('onsubmitInputID', 'onsubmit work!')" action="#{dndBean.dragAction}" dragListener="#{dndBean.processDrag}">
 						</rich:dragSupport>
 					</h:panelGrid>
 				</h:column>
@@ -29,10 +34,10 @@
 				<h:column>
 					<h:panelGrid styleClass="dropzoneDecoration" id="drop2">
 						<h:outputText value="#{type} - drop" />
-						<rich:dropSupport reRender="dragValueText" ondragenter="print('InputID', ' work!')" ondragexit="print('InputID', ' work!')"
-							ondrop="print('InputID', ' work!')" ondropend="print('InputID', ' work!')"
-							oncomplete="print('oncompleteInputID', 'oncomplete work!')" 
-							onsubmit="print('onsubmitInputID', 'onsubmit work!')"
+						<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!')" 
+							onsubmit="showEvent('onsubmitInputID', 'onsubmit work!')"
 							action="#{dndBean.dropAction}" acceptedTypes="#{type}" dropListener="#{dndBean.processDrop}" dropValue="#{type} - value">
 						</rich:dropSupport>
 					</h:panelGrid>
@@ -75,10 +80,10 @@
 			<h:panelGrid styleClass="dropzoneDecoration" id="grid1">
 				<f:verbatim>Accepts file and folder... Customizes</f:verbatim>
 				<rich:dropSupport id="zone1"
-					oncomplete="print('oncompleteInputID', 'oncomplete work!')" 
-					onsubmit="print('onsubmitInputID', 'onsubmit work!')" ondragenter="print('ondragenterInputID', 'ondragenter work!')" 
-					ondragexit="print('ondragexitInputID', 'ondragexit work!')" ondropend="print('ondropendInputID', 'ondropend work!')"
-					ondrop="print('ondropInputID', 'ondrop work!')"
+					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!')"
 					acceptedTypes="file, folder" typeMapping="{file: testDrop}">
 					<rich:dndParam name="testDrop">
 						<h:graphicImage height="16" width="16"
@@ -95,11 +100,11 @@
 
 			<h:panelGrid styleClass="dropzoneDecoration" id="grid3">
 				<f:verbatim>Accepts none... Customizes</f:verbatim>
-				<rich:dropSupport typeMapping="{file: testDrop}" oncomplete="print('oncompleteInputID', 'oncomplete work!')" 
-				ondragenter="print('ondragenterInputID', 'ondragenter work!')" 
-				ondragexit="print('ondragexitInputID', 'ondragexit work!')" 
-				ondrop="print('ondropInputID', 'ondrop work!')" ondropend="print('ondropendInputID', 'ondropend work!')" 
-				onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+				<rich:dropSupport typeMapping="{file: testDrop}" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')" 
+				ondragenter="showEvent('ondragenterInputID', 'ondragenter work!')" 
+				ondragexit="showEvent('ondragexitInputID', 'ondragexit work!')" 
+				ondrop="showEvent('ondropInputID', 'ondrop work!')" ondropend="showEvent('ondropendInputID', 'ondropend work!')" 
+				onsubmit="showEvent('onsubmitInputID', 'onsubmit work!')">
 					<rich:dndParam name="testDrop">
 						<h:graphicImage height="16" width="16" value="#{icon.iconFileManagerReject}" />
 					</rich:dndParam>
@@ -108,19 +113,19 @@
 
 			<h:panelGrid styleClass="dropzoneDecoration" id="grid4">
 				<f:verbatim>Accepts file and folder</f:verbatim>
-				<rich:dropSupport acceptedTypes="file, folder" oncomplete="print('oncompleteInputID', 'oncomplete work!')" 
-				ondragenter="print('ondragenterInputID', 'ondragenter work!')"
-				ondragexit="print('ondragexitInputID', 'ondragexit work!')" 
-				ondrop="print('ondropInputID', 'ondrop work!')" ondropend="print('ondropendInputID', 'ondropend work!')" 
-				onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+				<rich:dropSupport acceptedTypes="file, folder" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')" 
+				ondragenter="showEvent('ondragenterInputID', 'ondragenter work!')"
+				ondragexit="showEvent('ondragexitInputID', 'ondragexit work!')" 
+				ondrop="showEvent('ondropInputID', 'ondrop work!')" ondropend="showEvent('ondropendInputID', 'ondropend work!')" 
+				onsubmit="showEvent('onsubmitInputID', 'onsubmit work!')">
 					<rich:dndParam name="testDrop" value="testDropValue" />
 				</rich:dropSupport>
 			</h:panelGrid>
 
 			<h:panelGrid id="grid5">
-				<rich:dragSupport dragType="file" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-							ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
-							onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+				<rich:dragSupport dragType="file" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+							ondragend="showEvent('ondragendInputID', 'ondragend work!')" ondragstart="showEvent('ondragstartInputID', 'ondragstart work!')"
+							onsubmit="showEvent('onsubmitInputID', 'onsubmit work!')">
 					<rich:dndParam name="label" value="Label" />
 					<rich:dndParam name="testDrag" value="testDragValue" />
 				</rich:dragSupport>
@@ -128,9 +133,9 @@
 			</h:panelGrid>
 
 			<h:panelGrid id="grid6">
-				<rich:dragSupport dragType="file" dragIndicator="indicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-							ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
-							onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+				<rich:dragSupport dragType="file" dragIndicator="indicator" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+							ondragend="showEvent('ondragendInputID', 'ondragend work!')" ondragstart="showEvent('ondragstartInputID', 'ondragstart work!')"
+							onsubmit="showEvent('onsubmitInputID', 'onsubmit work!')">
 					<rich:dndParam name="label" value="Label" />
 					<rich:dndParam name="testDrag" value="testDragValue" />
 				</rich:dragSupport>
@@ -138,9 +143,9 @@
 			</h:panelGrid>
 
 			<h:panelGrid id="grid7">
-				<rich:dragSupport dragType="folder" dragIndicator="indicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-							ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
-							onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+				<rich:dragSupport dragType="folder" dragIndicator="indicator" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+							ondragend="showEvent('ondragendInputID', 'ondragend work!')" ondragstart="showEvent('ondragstartInputID', 'ondragstart work!')"
+							onsubmit="showEvent('onsubmitInputID', 'onsubmit work!')">
 					<rich:dndParam name="label" value="Label" />
 					<rich:dndParam name="testDrag" value="testDragValue for Folder" />
 				</rich:dragSupport>
@@ -150,9 +155,9 @@
 			<h:outputText />
 
 			<h:panelGrid id="grid8">
-				<rich:dragSupport dragType="folder" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-							ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
-							onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+				<rich:dragSupport dragType="folder" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+							ondragend="showEvent('ondragendInputID', 'ondragend work!')" ondragstart="showEvent('ondragstartInputID', 'ondragstart work!')"
+							onsubmit="showEvent('onsubmitInputID', 'onsubmit work!')">
 					<rich:dndParam name="label" value="Label" />
 					<rich:dndParam name="testDrag" value="testDragValue for Folder" />
 				</rich:dragSupport>
@@ -160,9 +165,9 @@
 			</h:panelGrid>
 
 			<h:panelGrid id="grid9">
-				<rich:dragSupport dragType="file" dragIndicator="defaultIndicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-							ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
-							onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+				<rich:dragSupport dragType="file" dragIndicator="defaultIndicator" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+							ondragend="showEvent('ondragendInputID', 'ondragend work!')" ondragstart="showEvent('ondragstartInputID', 'ondragstart work!')"
+							onsubmit="showEvent('onsubmitInputID', 'onsubmit work!')">
 					<rich:dndParam name="testDrag" value="testDragValue" />
 					<rich:dndParam name="marker" value="testMarkerValue" />
 					<rich:dndParam name="label" value="testDragValue" />
@@ -171,9 +176,9 @@
 			</h:panelGrid>
 
 			<h:panelGrid id="grid10">
-				<rich:dragSupport dragType="folder" dragIndicator="defaultIndicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-							ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
-							onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+				<rich:dragSupport dragType="folder" dragIndicator="defaultIndicator" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+							ondragend="showEvent('ondragendInputID', 'ondragend work!')" ondragstart="showEvent('ondragstartInputID', 'ondragstart work!')"
+							onsubmit="showEvent('onsubmitInputID', 'onsubmit work!')">
 					<rich:dndParam name="label" value="testDragValue for Folder" />
 				</rich:dragSupport>
 				<f:verbatim>Folder Draggable with defaultIndicator</f:verbatim>
@@ -182,9 +187,9 @@
 		</h:panelGrid>
 
 		<h:panelGrid id="renderedId">
-			<rich:dragSupport dragType="file" dragIndicator="defaultIndicator" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-							ondragend="print('ondragendInputID', 'ondragend work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
-							onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+			<rich:dragSupport dragType="file" dragIndicator="defaultIndicator" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+							ondragend="showEvent('ondragendInputID', 'ondragend work!')" ondragstart="showEvent('ondragstartInputID', 'ondragstart work!')"
+							onsubmit="showEvent('onsubmitInputID', 'onsubmit work!')">
 				<rich:dndParam name="marker" value="testMarkerValue" />
 				<rich:dndParam name="label" value="testDragValue" />
 			</rich:dragSupport>
@@ -192,10 +197,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: branches/3.1.x/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -11,16 +11,16 @@
 					direction="#{dDMenu.direction}" horizontalOffset="#{dDMenu.horizontalOffset}" jointPoint="#{dDMenu.jointPoint}"
 					popupWidth="#{dDMenu.popupWidth}" showDelay="#{dDMenu.showDelay}" rendered="#{dDMenu.rendered}"
 					verticalOffset="#{dDMenu.verticalOffset}" styleClass="panelpos" event="#{dDMenu.event}"
-					oncollapse="print('oncollapseInputID', 'oncollapse work!')" onexpand="print('onexpandInputID', 'onexpand work!')"
-					ongroupactivate="print('ongroupactivateInputID', 'ongroupactivate work!')"
-					onitemselect="print('onitemselectInputID', 'onitemselect work!')"
-					onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
-					onmouseover="print('onmouseoverInputID', 'onmouseover work!')">
-					<rich:menuItem icon="#{dDMenu.icon}" onclick="print('onclickInputID', 'onclick work (item)!')"
-						oncomplete="print('oncompleteInputID', 'oncomplete work (item)!')" onmousedown="print('onmousedownInputID', 'onmousedown work (item)!')"
-						onmousemove="print('onmousemoveInputID', ' work (item)!')" onmouseout="print('onmouseoutInputID', 'onmouseout work (item)!')"
-						onmouseover="print('onmouseoverInputID', 'onmouseover work (item)!')" onmouseup="print('onmouseupInputID', 'onmouseup work (item)!')"
-						onselect="print('onselectInputID', 'onselect work (item)!')">
+					oncollapse="showEvent('oncollapseInputID', 'oncollapse work!')" onexpand="showEvent('onexpandInputID', 'onexpand work!')"
+					ongroupactivate="showEvent('ongroupactivateInputID', 'ongroupactivate work!')"
+					onitemselect="showEvent('onitemselectInputID', 'onitemselect work!')"
+					onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
+					onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')">
+					<rich:menuItem icon="#{dDMenu.icon}" onclick="showEvent('onclickInputID', 'onclick work (item)!')"
+						oncomplete="showEvent('oncompleteInputID', 'oncomplete work (item)!')" onmousedown="showEvent('onmousedownInputID', 'onmousedown work (item)!')"
+						onmousemove="showEvent('onmousemoveInputID', ' work (item)!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work (item)!')"
+						onmouseover="showEvent('onmouseoverInputID', 'onmouseover work (item)!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work (item)!')"
+						onselect="showEvent('onselectInputID', 'onselect work (item)!')">
 						<h:outputText value="Item1(test events)" />
 					</rich:menuItem>
 					<rich:menuSeparator />
@@ -64,5 +64,4 @@
 				</rich:dropDownMenu>
 			</rich:panel>
 		</h:panelGrid>
-		<a4j:log></a4j:log>
 </f:subview>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Effect/Effect.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Effect/Effect.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -58,7 +58,7 @@
 				</span>
 			</f:verbatim>
 			<h:graphicImage value="/pics/fatal.gif"
-				onclick="hidePanel1(), hedeImage1()" />
+				onclick="hidePanel1(), hideImage1()" />
 
 			<f:verbatim>
 				<span onclick="showPanel1(), showImage1()"><font color="blue">Show</font>
@@ -77,7 +77,7 @@
 
 			<h:panelGroup id="form_1a_ID">
 				<h:panelGrid id="panel_1_ID" border="1"
-					style="background-color:#CCC">
+					style="background-color:#696969">
 					<f:facet name="header">
 						<h:outputText value="Panel Header" />
 					</f:facet>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/Gmap/Gmap.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Gmap/Gmap.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Gmap/Gmap.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -4,12 +4,12 @@
 <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
 
 <f:subview id="GmapSubviewID">
-		<rich:gmap id="gm" lat="37.97" zoom="#{gmap.zoom}" gmapVar="map" onclick="print('onclickInputID', 'onclick work!')" 
-		ondblclick="print('ondblclickInputID', 'ondblclick work!')" 
-		onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')" 
-		onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')" 
-		onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')" 
-		onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"
+		<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!')" 
+		onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')" onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')" 
+		onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" 
+		onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"
 			gmapKey="ABQIAAAAxU6W9QEhFLMNdc3ATIu-VxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxRkrpOGzxH8_ud3inE9pG1845-FCA"
 			style="width:500px;height:400px"
 			enableContinuousZoom="#{gmap.continuousZoom}"

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -15,7 +15,7 @@
 				step="#{inputNumberSlider.step}" showInput="#{inputNumberSlider.showInput}" width="#{inputNumberSlider.width}"
 				barClass="#{inputNumberSlider.barStyle}" tipClass="#{inputNumberSlider.tipStyle}" inputClass="#{inputNumberSlider.inputStyle}"
 				handleClass="#{inputNumberSlider.handleStyle}" styleClass="#{inputNumberSlider.tipStyle}" 
-				maxlength="#{inputNumberSlider.maxlength}" onmousedown="print('onmousedownInputID', 'onmousedown work!')"	>
+				maxlength="#{inputNumberSlider.maxlength}" onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')"	>
 			</rich:inputNumberSlider>
 			<h:panelGroup>
 				<a4j:commandButton value="valueChangeListener (show)" reRender="valueCLID" />

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinner.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinner.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinner.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -11,14 +11,14 @@
 			step="#{inputNumberSpinner.step}" rendered="#{inputNumberSpinner.rendered}" value="#{inputNumberSpinner.value}"
 			inputClass="#{inputNumberSpinner.inputStyle}" styleClass="#{inputNumberSpinner.style}"
 			enableManualInput="#{inputNumberSpinner.manualInput}" inputSize="#{inputNumberSpinner.inputSize}"
-			onmousedown="print('onmousedownInputID', 'onmousedown work!')" onblur="print('onblurInputID', 'onblur work!')"
-			onchange="print('onchangeInputID', 'onchange work!')" onclick="print('onclickInputID', 'onclick work!')"
-			ondblclick="print('ondblclickInputID', 'ondblclick work!')" onerror="print('ondblclickInputID', 'ondblclick work!')"
-			onfocus="print('onfocusInputID', 'onfocus work!')" onselect="print('onselectInputID', 'onselect work!')"
-			onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
-			onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
-			onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
-			onmouseup="print('onmouseupInputID', 'onmouseup work!')" ondownclick="print('ondownclickInputID', 'ondownclick work!')"
-			onupclick="print('onupclickInputID', 'onupclick work!')"></rich:inputNumberSpinner>
+			onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')" onblur="showEvent('onblurInputID', 'onblur work!')"
+			onchange="showEvent('onchangeInputID', 'onchange work!')" onclick="showEvent('onclickInputID', 'onclick work!')"
+			ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onerror="showEvent('ondblclickInputID', 'ondblclick work!')"
+			onfocus="showEvent('onfocusInputID', 'onfocus work!')" onselect="showEvent('onselectInputID', 'onselect work!')"
+			onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')" onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')"
+			onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')" onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+			onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')"
+			onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')" ondownclick="showEvent('ondownclickInputID', 'ondownclick work!')"
+			onupclick="showEvent('onupclickInputID', 'onupclick work!')"></rich:inputNumberSpinner>
 		<rich:spacer height="20px"></rich:spacer>
 </f:subview>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/Message/MessageProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Message/MessageProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Message/MessageProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -4,14 +4,14 @@
 <%@ 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}"
 		rendered="#{modalPanel.rendered}" zindex="#{modalPanel.zindex}" autosized="#{modalPanel.autosized}" left="#{modalPanel.left}"
 		top="#{modalPanel.top}" shadowDepth="#{modalPanel.shadowDepth}" shadowOpacity="#{modalPanel.shadowOpacity}"
-		showWhenRendered="#{modalPanel.showWhenRendered}" onhide="print('onhideInputID', 'onhide work!')"
-		onshow="print('onshowInputID', 'onshow work!')">
+		showWhenRendered="#{modalPanel.showWhenRendered}" onhide="showEvent('onhideInputID', 'onhide work!')"
+		onshow="showEvent('onshowInputID', 'onshow work!')">
 		<f:facet name="header">
 			<h:outputText value="Heder goes here..." />
 		</f:facet>
@@ -25,6 +25,7 @@
 			<f:selectItem itemLabel="2" itemValue="2" />
 			<f:selectItem itemLabel="3" itemValue="3" />
 		</h:selectOneListbox>
+		
 		<f:verbatim>
 			<br />
 			<br />

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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}" >
@@ -68,14 +67,12 @@
 					<a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
 				</h:inputText>
 				
-				<h:outputText value="autosized" />
-				<h:selectBooleanCheckbox value="#{modalPanel.autosized}" >
-					
+				<h:outputText value="autosized:" />
+				<h:selectBooleanCheckbox value="#{modalPanel.autosized}"  onchange="submit();">
 				</h:selectBooleanCheckbox>		
 
-				<h:outputText value="Resizeable:" />
+				<h:outputText value="resizeable:" />
 				<h:selectBooleanCheckbox value="#{modalPanel.resizeable}" onchange="submit();">
-					
 				</h:selectBooleanCheckbox>
 
 				<h:outputText value="Moveable:" />
@@ -83,5 +80,4 @@
 					<a4j:support event="onclick" reRender="modalPanelID"></a4j:support>
 				</h:selectBooleanCheckbox>
 			</h:panelGrid>
-		</rich:simpleTogglePanel>
 </f:subview>
\ No newline at end of file

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -17,9 +17,9 @@
 		 downControlLabel="#{orderingList.downControlLabel}"
 		orderControlsVisible="#{orderingList.orderControlsVisible}" fastOrderControlsVisible="#{orderingList.fastOrderControlsVisible}"
 		rendered="#{orderingList.rendered}" showButtonLabels="#{orderingList.showButtonLabels}" selection="#{orderingList.selection}"
-		onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onclick="print('onclickInputID', 'onclick work!')" 
-		ondblclick="print('ondblclickInputID', 'ondblclick work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')" 
-		onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onorderchanged="print('onorderchangedInputID', 'onorderchanged work!')" ontopclick="print('ontopclickInputID', 'ontopclick work!')" onupclick="print('onupclickInputID', 'onupclick work!')" ondownclick="print('ondownclickInputID', 'ondownclick work!')" onbottomclick="print('onbottomclickInputID', 'onbottomclick work!')" onheaderclick="print('onheaderclickInputID', 'onheaderclick work!')">
+		onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onclick="showEvent('onclickInputID', 'onclick work!')" 
+		ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" 
+		onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onorderchanged="showEvent('onorderchangedInputID', 'onorderchanged work!')" ontopclick="showEvent('ontopclickInputID', 'ontopclick work!')" onupclick="showEvent('onupclickInputID', 'onupclick work!')" ondownclick="showEvent('ondownclickInputID', 'ondownclick work!')" onbottomclick="showEvent('onbottomclickInputID', 'onbottomclick work!')" onheaderclick="showEvent('onheaderclickInputID', 'onheaderclick work!')">
 		<f:facet name="header">
 			<h:outputText value="header" />
 		</f:facet>
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/Paint2D/Paint2D.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Paint2D/Paint2D.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Paint2D/Paint2D.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -4,7 +4,7 @@
 <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
 
 <f:subview id="paint2DSubviewID">
-		<rich:paint2D id="paint2dID" paint="#{paint2D.paint}" data="#{paintData}" width="#{paint2D.width}" height="#{paint2D.height}"
+		<rich:paint2D id="paint2dID" cacheable="#{paint2D.cacheable}" paint="#{paint2D.paint}" data="#{paintData}" width="#{paint2D.width}" height="#{paint2D.height}"
 			align="#{paint2D.align}" hspace="#{paint2D.hspace}" vspace="#{paint2D.vspace}" bgcolor="#{paint2D.bgcolor}"
 			format="#{paint2D.format}" title="#{paint2D.title}" styleClass="#{paint2D.styleString}" border="#{paint2D.border}"
 			rendered="#{paint2D.rendered}" />

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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}">
@@ -30,7 +29,10 @@
 				<h:inputText value="#{paint2D.hspace}">
 					<a4j:support event="onchange" reRender="paint2dID"></a4j:support>
 				</h:inputText>
-
+				
+				<h:outputText value="cacheable:"></h:outputText>
+				<h:selectBooleanCheckbox value="#{paint2D.cacheable}" onchange="submit();"/>
+				
 				<h:outputText value="Align:"></h:outputText>
 				<h:selectOneMenu value="#{paint2D.align}">
 					<f:selectItem itemLabel="left" itemValue="left" />
@@ -81,5 +83,4 @@
 					<a4j:support event="onclick" reRender="paint2dID"></a4j:support>
 				</h:selectBooleanCheckbox>
 			</h:panelGrid>
-		</rich:simpleTogglePanel>
 </f:subview>
\ No newline at end of file

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/Panel/Panel.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Panel/Panel.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Panel/Panel.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -4,11 +4,86 @@
 <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
 
 <f:subview id="panelSubviewID">
+    	<h:panelGrid columnClasses="panel" border="0" columns="3">
+			<rich:panel styleClass="top">
+				<f:facet name="header">
+					<h:panelGroup>
+						<f:verbatim>dsdsdsdsd<br />sdsd </f:verbatim>
+					</h:panelGroup>
 
+				</f:facet>
+
+				<f:verbatim>This is <b>default</b> panel. content here</f:verbatim>
+			</rich:panel>
+			<rich:panel styleClass="top" headerClass="hea" bodyClass="bo">
+				<f:facet name="header">
+					<h:outputText value="Header of the Panel" />
+				</f:facet>
+				<f:verbatim>This panel contains custom headerClass and bodyClass</f:verbatim>
+			</rich:panel>
+			<rich:panel styleClass="top2" headerClass="hea2" bodyClass="bo2">
+				<f:facet name="header">
+					<h:outputText value="Header of the Panel" />
+				</f:facet>
+				<f:verbatim> This panel also contains custom headerClass and bodyClass. The background is not a 3D anymore.</f:verbatim>
+			</rich:panel>
+
+			<h:panelGroup>
+				<h:form>
+					<rich:panel
+						onmouseover="document.getElementById(this.id+'_header').style.background='#60BA01';document.getElementById(this.id+'_body').style.background='#F4FFF8'"
+						onmouseout="document.getElementById(this.id+'_header').style.background='#4C9600';document.getElementById(this.id+'_body').style.background='#E4FFC8'"
+						style="width:200px;" headerClass="hea2" bodyClass="bo3">
+						<f:facet name="header">
+							<h:outputText value="Header of the Panel" />
+						</f:facet>
+						<f:verbatim>Base on the previous layout, but form element and javascript behaviour are added</f:verbatim>
+						<br />
+						<h:inputText />
+					</rich:panel>
+				</h:form>
+			</h:panelGroup>
+
+			<rich:panel style="width:200px;" headerClass="hea" bodyClass="bo3">
+				<f:facet name="header">
+					<h:outputText value="Scrolling Text Panel" />
+				</f:facet>
+				<f:verbatim>
+				     Long Text Long Text Long Text
+				     Long Text Long Text Long Text
+				     Long Text Long Text Long Text
+				     Long Text Long Text Long Text
+				     Long Text Long Text Long Text
+				     Long Text Long Text Long Text
+				     Long Text Long Text Long Text
+				     Long Text Long Text Long Text
+				     Long Text Long Text Long Text
+				     Long Text Long Text Long Text
+				     Long Text Long Text Long Text
+				     Long Text Long Text Long Text
+				     Long Text Long Text Long Text
+				 </f:verbatim>
+			</rich:panel>
+
+			<rich:panel styleClass="top">
+				<f:verbatim>This is a panel without the header</f:verbatim>
+
+			</rich:panel>
+		</h:panelGrid>
+		<rich:panel style="position: absolute; top: 116px; right: 100px; "
+			styleClass="top">
+			<f:facet name="header">
+				<h:outputText value="Header of the Panel" />
+			</f:facet>
+			<f:verbatim>
+			    This is a panel with absolute position on the screen.<br />
+			    Resize the browser's window for fun.
+		    </f:verbatim>
+		</rich:panel>
 		<h: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;"
-		ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')" onclick="print('onclickInputID', 'onclick work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+		ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')" onclick="showEvent('onclickInputID', 'onclick work!')" onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')" onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')" onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')">
 			<f:facet name="header">
 				<h:outputText id="t1" value="#{panel.title[0]} (Panel 1)" />
 			</f:facet>
@@ -40,9 +115,8 @@
 
 		<rich:panel id="panelId" rendered="#{panel.rendered}"
 			style="width:#{panel.width};height:#{panel.height}"
-			ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')" onclick="print('onclickInputID', 'onclick work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+			ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')" onclick="showEvent('onclickInputID', 'onclick work!')" onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')" onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')" onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')">
 			<f:verbatim>This is panel 2 example...(Test events)</f:verbatim>
-
 		</rich:panel>
 </f:subview>
 

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/Panel/PanelProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Panel/PanelProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Panel/PanelProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/Panel/PanelStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Panel/PanelStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Panel/PanelStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/PanelBar/PanelBar.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/PanelBar/PanelBar.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/PanelBar/PanelBar.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -8,7 +8,7 @@
 		<h:messages></h:messages>
 
 		<rich:panelBar id="pBId" height="#{panelBar.height}" width="#{panelBar.width}" contentClass="#{panelBar.contentStyle}"
-			styleClass="#{panelBar.style}" selectedPanel="pBiId4" onclick="print('onclickInputID', 'onclick work!')">
+			styleClass="#{panelBar.style}" selectedPanel="pBiId4" onclick="showEvent('onclickInputID', 'onclick work!')">
 			<rich:panelBarItem rendered="#{panelBar.rendered}" id="pBiId1" label="#{panelBar.label[0]}"
 				headerClass="#{panelBar.headerStyle}">
 				<h:outputText value="Some text..."></h:outputText>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenu.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenu.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenu.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -4,7 +4,7 @@
 <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
 
 <f:subview id="panelMenuSubviewID">
-		<rich:panelMenu id="panelMenuID" disabled="#{panelMenu.disabled}" width="#{panelMenu.width}" selectedChild="thisChild"
+		<rich:panelMenu id="panelMenuID"  disabled="#{panelMenu.disabled}" width="#{panelMenu.width}" selectedChild="thisChild"
 			expandSingle="#{panelMenu.expandSingle}" mode="#{panelMenu.mode}" value="PanelMenu" rendered="#{panelMenu.rendered}"
 			iconCollapsedGroup="#{panelMenu.icon.collapsedGroup}" iconCollapsedTopGroup="#{panelMenu.icon.collapsedTopGroup}"
 			iconDisabledGroup="#{panelMenu.icon.disabledGroup}" iconDisabledItem="#{panelMenu.icon.disabledItem}"
@@ -16,12 +16,12 @@
 			onclick="" ondblclick="" ongroupcollapse="" ongroupexpand="" onitemhover="" onkeydown="" onkeypress="" onkeyup=""
 			onmousedown="" onmousemove="" onmouseout="" onmouseover="" onmouseup="">
 
-			<rich:panelMenuItem label="Item 1(Test event)" onclick="print('onclickInputID', 'onclick work!')"
-				ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-				onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-				onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
-				onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
-				onmouseup="print('onmouseupInputID', 'onmouseup work!')"></rich:panelMenuItem>
+			<rich:panelMenuItem label="Item 1(Test event)" onclick="showEvent('onclickInputID', 'onclick work!')"
+				ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+				onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+				onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')" onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+				onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')"
+				onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"></rich:panelMenuItem>
 			<rich:panelMenuItem disabled="true" iconDisabled="/pics/ajax_stoped.gif">
 				<h:outputText value="Disabled Item" />
 			</rich:panelMenuItem>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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,11 @@
 					<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="PanelMenu.doExpand($('formID:panelMenuSubviewID:panelMenuID'));return false;" value="doExpand"></a4j:commandLink>
+			<a4j:commandLink onclick="PanelMenu.doCollapse($('formID:panelMenuSubviewID:panelMenuID'));return false;" value="doCollapse"></a4j:commandLink>
+		</h:panelGrid>
 </f:subview>
\ No newline at end of file

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -4,41 +4,61 @@
 <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
 
 <f:subview id="scrollableDataTableSubviewID">
-		<rich:scrollableDataTable id="sdt" var="sdt" value="#{scrollableDT.data}" rows="#{scrollableDT.rows}" width="#{scrollableDT.width}" 
-		hideWhenScrolling="#{scrollableDT.hideWhenScrolling}" reRender="inputID"  
-		oncomplete="print('oncompleteInputID', 'oncomplete work!')" onselectionchange="print('onselectionchangeInputID', 'onselectionchange work!')">
-			<rich:column width="100px">
-				<f:facet name="header">
-					<h:outputText value="Number" />
-				</f:facet>
-				<h:outputText value="#{sdt.data1}" />
-			</rich:column>
-			
-			<rich:column width="100px">
-				<f:facet name="header">
-					<h:outputText value="Name" />
-				</f:facet>
-				<h:outputText value="#{sdt.data0}" />
-			</rich:column>
+	<rich: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: branches/3.1.x/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/Separator/Separator.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Separator/Separator.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Separator/Separator.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -7,11 +7,11 @@
 		<h:outputText value="Some text one..." styleClass="text"></h:outputText>
 		<rich:separator id="separatorId" rendered="#{separator.rendered}" width="#{separator.width}" height="#{separator.height}"
 			title="#{separator.title}" lineType="#{separator.lineType}" align="#{separator.align}" styleClass="#{separator.style}"
-			onclick="print('onclickInputID', 'onclick work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
-			onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
-			onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
-			onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
-			onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"></rich:separator>
+			onclick="showEvent('onclickInputID', 'onclick work!')" ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')"
+			onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')" onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')"
+			onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')" onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')"
+			onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
+			onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"></rich:separator>
 		<h:outputText value="Some text two..." styleClass="text"></h:outputText>
 		<rich:spacer height="20px"></rich:spacer>
 </f:subview>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/Separator/SeparatorProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Separator/SeparatorProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Separator/SeparatorProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -6,12 +6,12 @@
 <f:subview id="simpleTogglePanelSubviewID">
 		<rich:simpleTogglePanel id="sTP" bodyClass="body" headerClass="head" label="simpleTogglePanel with some text"
 			width="#{simpleTogglePanel.width}" height="#{simpleTogglePanel.height}" switchType="#{simpleTogglePanel.switchType}"
-			opened="false" onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-			ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-			onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-			onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
-			onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
-			onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+			opened="false" onclick="showEvent('onclickInputID', 'onclick work!')" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+			ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+			onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+			onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')" onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+			onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')"
+			onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')">
 			<f:facet name="closeMarker">
 				<h:outputText value="Close It" />
 			</f:facet>
@@ -30,22 +30,22 @@
 
 		<rich:simpleTogglePanel id="sTP1" headerClass="head" label="simpleTogglePanel wiht image" width="#{simpleTogglePanel.width}"
 			height="#{simpleTogglePanel.height}" rendered="#{simpleTogglePanel.rendered}" switchType="#{simpleTogglePanel.switchType}"
-			opened="false" onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-			ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-			onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-			onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
-			onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
-			onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+			opened="false" onclick="showEvent('onclickInputID', 'onclick work!')" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+			ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+			onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+			onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')" onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+			onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')"
+			onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')">
 			<h:graphicImage value="/pics/podb109_61.jpg" width="500" height="300"></h:graphicImage>
 		</rich:simpleTogglePanel>
 
 		<rich:simpleTogglePanel id="sTP2" label="Focus simpleTogglePanle" width="#{simpleTogglePanel.width}" ignoreDupResponses="true"
-			focus="#{simpleTogglePanel.focus}" onclick="print('onclickInputID', 'onclick work!')"
-			oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
-			onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
-			onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
-			onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
-			onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+			focus="#{simpleTogglePanel.focus}" onclick="showEvent('onclickInputID', 'onclick work!')"
+			oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')" ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')"
+			onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')" onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')"
+			onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')" onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')"
+			onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
+			onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')">
 			<f:facet name="closeMarker">
 				<h:graphicImage value="/pics/ajax_stoped.gif"></h:graphicImage>
 			</f:facet>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/Spacer/Spacer.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Spacer/Spacer.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Spacer/Spacer.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -14,13 +14,13 @@
 }
 </style>
 		<h:outputText value="Some text one..." styleClass="text"></h:outputText>
-		<rich:spacer id="spacerId" width="#{spacer.width}" height="#{spacer.height}" rendered="#{spacer.rendered}"
-			styleClass="#{spacer.style}" onclick="print('onclickInputID', 'onclick work!')"
-			ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-			onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-			onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
-			onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
-			onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+		<rich:spacer id="spacerId" title="#{spacer.title}" width="#{spacer.width}" height="#{spacer.height}" rendered="#{spacer.rendered}"
+			styleClass="#{spacer.style}" onclick="showEvent('onclickInputID', 'onclick work!')"
+			ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+			onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+			onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')" onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+			onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')"
+			onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')">
 		</rich:spacer>
 		<h:outputText value="Some text two..." styleClass="text"></h:outputText>
 </f:subview>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/Spacer/SpacerProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Spacer/SpacerProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Spacer/SpacerProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -15,6 +15,11 @@
 				<h:inputText value="#{spacer.height}">
 					<a4j:support event="onchange" reRender="spacerId"></a4j:support>
 				</h:inputText>
+				
+				<h:outputText value="title:"></h:outputText>
+				<h:inputText value="#{spacer.title}">
+					<a4j:support event="onchange" reRender="spacerId"></a4j:support>
+				</h:inputText>
 
 				<h:outputText value="Rendered:"></h:outputText>
 				<h:selectBooleanCheckbox value="#{spacer.rendered}" onclick="submit()">

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -4,33 +4,29 @@
 <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
 
 <f:subview id="suggestionBoxSubviewID">
-		<h:messages showDetail="true"/>
-		<f:verbatim>Suggestion Box will suggest you Town's names if it's started with the "a" or "A" letter
+	<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"
-			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=", ]"
-			bgcolor="#{sb.bgColor}" focus="#{sb.forcus}" title="#{result.text}"
-			summary="summary" shadowOpacity="#{sb.shadowOpacity}"
-			shadowDepth="#{sb.shadowDepth}" selectValueClass="mousemove" frequency="#{sb.frequency}"
-			nothingLabel="nothingLabel work! " oncomplete="print('oncompleteInputID', 'oncomplete work!')" 
-			onselect="print('onselectInputID', 'onselect work!')" >
-			<h:column>
-				<h:outputText value="#{result.city}" />
-			</h:column>
-			<h:column>
-				<h:outputText value="#{result.contry}" />
-			</h:column>
-			<h:column>
-				<h:outputText value="#{result.flag}" />
-			</h:column>
-			
-		</rich:suggestionbox>
-		<div
-			style="position: relative; font-size: 50px; z-index: 2; color: navy">z-index</div>
+	</f:verbatim>
+	<h:inputText value="#{sb.property}" id="text" />
+	<rich:suggestionbox id="suggestionBoxId" eventsQueue="myEventsQueue" ajaxSingle="#{sb.ajaxSingle}" dir="#{sb.dir}"
+		rendered="#{sb.rendered}" requestDelay="#{sb.requestDelay}" selfRendered="#{sb.selfRendered}" value="#{sb.value}" 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="#{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}" nothingLabel="nothingLabel work! "
+		oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')" onselect="showEvent('onselectInputID', 'onselect work!')">
+		<h:column>
+			<h:outputText value="#{result.city}" />
+		</h:column>
+		<h:column>
+			<h:outputText value="#{result.contry}" />
+		</h:column>
+		<h:column>
+			<h:outputText value="#{result.flag}" />
+		</h:column>
+
+	</rich:suggestionbox>
+	<div style="position: relative; font-size: 50px; z-index: 2; color: navy">z-index</div>
 </f:subview>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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>
@@ -14,45 +13,65 @@
 				<a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
 			</h:selectOneRadio>
 
-			<f:verbatim>Frequency</f:verbatim>
+			<h:outputText value="requestDelay"></h:outputText>
+			<h:inputText value="#{sb.requestDelay}">
+				<a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+			</h:inputText>			
+		
+			<h:outputText value="value"/>
+			<h:inputText value="#{sb.value}">
+				<a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+			</h:inputText>
+
+			<h:outputText value="Frequency"/>
 			<h:inputText value="#{sb.frequency}">
 				<a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
 			</h:inputText>
 
-			<f:verbatim>Border</f:verbatim>
+			<h:outputText value="Border"/>
 			<h:inputText value="#{sb.border}">
 				<a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
 			</h:inputText>
 
-			<f:verbatim>Width</f:verbatim>
+			<h:outputText value="Width"/>
 			<h:inputText value="#{sb.width}">
 				<a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
 			</h:inputText>
 
-			<f:verbatim>Height</f:verbatim>
+			<h:outputText value="Height"/>
 			<h:inputText value="#{sb.height}">
 				<a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
 			</h:inputText>
 
-			<f:verbatim>Cellpadding</f:verbatim>
+			<h:outputText value="Cellpadding"/>
 			<h:inputText value="#{sb.cellpadding}">
 				<a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
 			</h:inputText>
 
-			<f:verbatim>Cellspacing</f:verbatim>
+			<h:outputText value="Cellspacing"/>
 			<h:inputText value="#{sb.cellspacing}">
 				<a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
 			</h:inputText>
 
-			<f:verbatim>First</f:verbatim>
+			<h:outputText value="First" />
 			<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}">
 				<a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
 			</h:inputText>
+			
+			<h:outputText value="dir"></h:outputText>
+			<h:selectOneMenu value="#{sb.dir}">
+				<f:selectItem itemLabel="RTL" itemValue="RTL" />
+				<f:selectItem itemLabel="LTR" itemValue="LTR" />
+			</h:selectOneMenu>
+				
 
 			<h:outputText value="Background Colour"></h:outputText>
 			<h:selectOneMenu value="#{sb.bgColor}">
@@ -94,6 +113,14 @@
 				<f:selectItem itemLabel="7" itemValue="6" />
 				<a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
 			</h:selectOneRadio>
+			
+			<h:outputText value="ajaxSingle"></h:outputText>
+			<h:selectBooleanCheckbox value="#{sb.ajaxSingle}" onchange="submit();"></h:selectBooleanCheckbox>
+						
+			<h:outputText value="selfRendered"></h:outputText>
+			<h:selectBooleanCheckbox value="#{sb.selfRendered}" onchange="submit();"></h:selectBooleanCheckbox>
+			
+			<h:outputText value="rendered"></h:outputText>
+			<h:selectBooleanCheckbox value="#{sb.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
 		</h:panelGrid>
-	</rich:simpleTogglePanel>
 </f:subview>
\ No newline at end of file

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/TabPanel/TabPanel.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/TabPanel/TabPanel.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/TabPanel/TabPanel.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -8,41 +8,41 @@
 			height="#{tabPanel.height}" rendered="#{tabPanel.rendered}" title="#{tabPanel.title}" switchType="#{tabPanel.switchType}"
 			headerSpacing="#{tabPanel.headerSpacing}" selectedTab="#{tabPanel.selectedTab}" activeTabClass="#{tabPanel.activeTabStyle}"
 			disabledTabClass="#{tabPanel.disabledTabStyle}" inactiveTabClass="#{tabPanel.inactiveTabStyle}"
-			contentClass="#{tabPanel.contentStyle}" onclick="print('onclickInputID', 'onclick work!')"
-			ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-			onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-			onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
-			onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
-			onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+			contentClass="#{tabPanel.contentStyle}" onclick="showEvent('onclickInputID', 'onclick work!')"
+			ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+			onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+			onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')" onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+			onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')"
+			onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')">
 
 			<rich:tab id="tabOne" labelWidth="#{tabPanel.labelWidth}" label="#{tabPanel.label}"
-				onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-				ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-				onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-				onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
-				onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"
-				ontabenter="print('ontabenterInputID', 'ontabenter work!')" ontableave="print('ontableaveInputID', 'ontableave work!')">
+				onclick="showEvent('onclickInputID', 'onclick work!')" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+				ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+				onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+				onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
+				onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"
+				ontabenter="showEvent('ontabenterInputID', 'ontabenter work!')" ontableave="showEvent('ontableaveInputID', 'ontableave work!')">
 				<h:outputText value="This is tab panel test example" styleClass="text1"></h:outputText>
 			</rich:tab>
 			<rich:tab id="tabTwo" label="Tab with image" disabled="#{tabPanel.disabledTab}"
-				onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-				ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-				onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-				onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
-				onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"
-				ontabenter="print('ontabenterInputID', 'ontabenter work!')" ontableave="print('ontableaveInputID', 'ontableave work!')">
+				onclick="showEvent('onclickInputID', 'onclick work!')" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+				ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+				onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+				onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
+				onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"
+				ontabenter="showEvent('ontabenterInputID', 'ontabenter work!')" ontableave="showEvent('ontableaveInputID', 'ontableave work!')">
 				<f:facet name="header">
 					<h:outputText value="client switchType from facet" />
 				</f:facet>
 				<h:graphicImage value="/pics/masshtaby_01.jpg" width="560" height="383"></h:graphicImage>
 			</rich:tab>
 			<rich:tab id="tabThree" label="Tab with some text" disabled="#{tabPanel.disabledTab}"
-				onclick="print('onclickInputID', 'onclick work!')" oncomplete="print('oncompleteInputID', 'oncomplete work!')"
-				ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-				onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-				onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
-				onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"
-				ontabenter="print('ontabenterInputID', 'ontabenter work!')" ontableave="print('ontableaveInputID', 'ontableave work!')">
+				onclick="showEvent('onclickInputID', 'onclick work!')" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+				ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+				onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+				onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
+				onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"
+				ontabenter="showEvent('ontabenterInputID', 'ontabenter work!')" ontableave="showEvent('ontableaveInputID', 'ontableave work!')">
 				<h:outputText
 					value="   Some text... Some text...  Some text... Some text... Some text... Some text... Some text... Some text...
 				     Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text... 

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanel.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanel.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanel.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -6,12 +6,12 @@
 <f:subview id="togglePanelSubviewID">
 
 		<rich:togglePanel id="panel1" switchType="#{togglePanel.switchType}" initialState="asus" stateOrder="asus,blank"
-			style="width:300px!important; overflow: hidden;" onclick="print('onclickInputID', 'onclick work!')"
-			ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-			onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-			onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
-			onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
-			onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+			style="width:300px!important;" onclick="showEvent('onclickInputID', 'onclick work!')"
+			ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+			onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+			onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')" onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+			onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')"
+			onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')">
 			<f:facet name="blank">
 				<rich:panel>
 					<f:facet name="header">
@@ -26,7 +26,7 @@
 			</f:facet>
 
 			<f:facet name="asus">
-				<rich:panel>
+				<rich:panel style="overflow: auto">
 					<f:facet name="header">
 						<h:panelGroup>
 							<rich:toggleControl id="toggleControl_panel1" for="togglePanelSubviewID:panel1">
@@ -59,12 +59,12 @@
 		</f:verbatim>
 
 		<rich:togglePanel id="panel2" switchType="#{togglePanel.switchType}" initialState="#{togglePanel.initialState}"
-			stateOrder="#{togglePanel.stateOrder}" onclick="print('onclickInputID', 'onclick work!')"
-			ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-			onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-			onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
-			onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
-			onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+			stateOrder="#{togglePanel.stateOrder}" onclick="showEvent('onclickInputID', 'onclick work!')"
+			ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+			onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+			onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')" onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+			onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')"
+			onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')">
 			<f:facet name="asus">
 				<rich:panel>
 					<f:facet name="header">

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/ToolBar/ToolBar.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ToolBar/ToolBar.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ToolBar/ToolBar.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -10,7 +10,8 @@
 			height="#{toolBar.height}" rendered="#{toolBar.rendered}"
 			itemSeparator="#{toolBar.itemSeparator}"
 			contentClass="#{toolBar.contentStyle}"
-			separatorClass="#{toolBar.separatorStyle}">
+			separatorClass="#{toolBar.separatorStyle}" 
+			contentStyle="contentStyle" style="style" styleClass="styleClass">
 			<h:outputText value="ToolBar" style="font-style: italic"></h:outputText>
 
 			<rich:toolBarGroup>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -4,69 +4,83 @@
 <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
 
 <f:subview id="tooltipSubviewID">
-		<h:messages></h:messages>
+	<h:messages></h:messages>
 
-		<h:outputText value="DEFAULT VALUE:"></h:outputText>
+	<h:outputText value="DEFAULT VALUE:"></h:outputText>
 
-		<f:verbatim>
-			<br />
-		</f:verbatim>
+	<f:verbatim>
+		<br />
+	</f:verbatim>
 
-		<h:inputText value="Text" id="inp1" size="50">
-			<rich:toolTip value="toolTip for input text" onclick="print('onclickInputID', 'onclick work!')"
-				oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
-				onhide="print('onhideInputID', 'onhide work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-				onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-				onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
-				onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
-				onmouseup="print('onmouseupInputID', 'onmouseup work!')" onshow="print('onshowInputID', 'onshow work!')">
+	<h:inputText value="Text" id="inp1" size="50">
+		<rich:toolTip id="toolTipID" value="toolTip for input text" onclick="showEvent('onclickInputID', 'onclick work!')"
+
+			oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')" ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')"
+			onhide="showEvent('onhideInputID', 'onhide work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+			onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+			onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')"
+			onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+			onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
+			onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"
+			onshow="showEvent('onshowInputID', 'onshow work!')">
 				<f:facet name="defaultContent">
 					<f:verbatim>DEFAULT VALUE</f:verbatim>
 				</f:facet>
 			</rich:toolTip>
-		</h:inputText>
+	</h:inputText>
+	<h:panelGrid columns="2">
+		<h:outputText value="JavaScript API"></h:outputText>
+		<h:column></h:column>
+		<a4j:commandLink onclick="$('formID:tooltipSubviewID:toolTipID').component.doShow(event)" value="doShow"></a4j:commandLink>
+		<a4j:commandLink onclick="$('formID:tooltipSubviewID:toolTipID').component.doHide(event)" value="doHide"></a4j:commandLink>
+		<a4j:commandLink onclick="$('formID:tooltipSubviewID:toolTipID').component.doEnable" value="doEnable"></a4j:commandLink>
+		<a4j:commandLink onclick="$('formID:tooltipSubviewID:toolTipID').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!')"
+			onhide="showEvent('onhideInputID', 'onhide work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+			onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+			onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')"
+			onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+			onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
+			onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"
+			onshow="showEvent('onshowInputID', 'onshow work!')">
+			<f:facet name="defaultContent">
+				<f:verbatim>DEFAULT VALUE DropDown</f:verbatim>
+			</f:facet>
+		</rich:toolTip>
+	</h:selectOneListbox>
 
-		<h:selectOneListbox value="1" id="ddl">
-			<rich:toolTip value="1231231" onclick="print('onclickInputID', 'onclick work!')"
-				oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
-				onhide="print('onhideInputID', 'onhide work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-				onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-				onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
-				onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
-				onmouseup="print('onmouseupInputID', 'onmouseup work!')" onshow="print('onshowInputID', 'onshow work!')">
-				<f:facet name="defaultContent">
-					<f:verbatim>DEFAULT VALUE DropDown</f:verbatim>
-				</f:facet>
-			</rich:toolTip>
-		</h:selectOneListbox>
+	<f:verbatim>
+		<br />
+		<br />
+	</f:verbatim>
 
-		<f:verbatim>
-			<br />
-			<br />
-		</f:verbatim>
+	<h:outputText value=" Test tooltip:"></h:outputText>
+	<f:verbatim>
+		<br />
+	</f:verbatim>
 
-		<h:outputText value=" Test tooltip:"></h:outputText>
-		<f:verbatim>
-			<br />
-		</f:verbatim>
+	<rich:panel style="width:50px; height:50px; background-color: gray">
+		<rich:toolTip id="tooltipID" value="#{tooltip.value}" mode="#{tooltip.mode}" event="#{tooltip.event}"
+			hideDelay="#{tooltip.hideDelay}" showDelay="#{tooltip.showDelay}" layout="#{tooltip.layout}"
+			horizontalOffset="#{tooltip.horizontalOffset}" verticalOffset="#{tooltip.verticalOffset}" followMouse="#{tooltip.followMouse}"
+			direction="#{tooltip.direction}" style="#{tooltip.style}" disabled="#{tooltip.disabled}" rendered="#{tooltip.rendered}"
+			onclick="showEvent('onclickInputID', 'onclick work!')" oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
+			ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onhide="showEvent('onhideInputID', 'onhide work!')"
+			onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')" onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')"
+			onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')" onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')"
+			onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+			onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
+			onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"
+			onshow="showEvent('onshowInputID', 'onshow work!')">
+			<h:graphicImage id="pricsID" value="/pics/ajax_process.gif"></h:graphicImage>
+		</rich:toolTip>
+	</rich:panel>
 
-		<rich:panel style="width:50px; height:50px; background-color: gray">
-			<rich:toolTip id="tooltipID" value="#{tooltip.value}" mode="#{tooltip.mode}" 
-				layout="#{tooltip.layout}" horizontalOffset="#{tooltip.horizontalOffset}" verticalOffset="#{tooltip.verticalOffset}"
-				followMouse="#{tooltip.followMouse}" direction="#{tooltip.direction}" style="#{tooltip.style}" disabled="#{tooltip.disabled}"
-				rendered="#{tooltip.rendered}" onclick="print('onclickInputID', 'onclick work!')"
-				oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
-				onhide="print('onhideInputID', 'onhide work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-				onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-				onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
-				onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
-				onmouseup="print('onmouseupInputID', 'onmouseup work!')" onshow="print('onshowInputID', 'onshow work!')">
-				<h:graphicImage id="pricsID" value="/pics/ajax_process.gif"></h:graphicImage>
-			</rich:toolTip>
-		</rich:panel>
+	<f:verbatim>
+		<br />
+	</f:verbatim>
 
-		<f:verbatim>
-			<br />
-		</f:verbatim>
-
 </f:subview>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -4,76 +4,91 @@
 <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
 
 <f:subview id="toolTipStraightforwardSubviewID">
-		<rich:simpleTogglePanel id="toolTipPropertyID" switchType="client" opened="true" label="toolTip property">
-			<h:panelGrid columns="2">
-				<h:outputText value="Text:"></h:outputText>
-				<h:inputText value="#{tooltip.value}">
-					<a4j:support event="onchange" reRender="tooltipID" />
-				</h:inputText>
+	<h:panelGrid columns="2">
+		<h:outputText value="Text:"></h:outputText>
+		<h:inputText value="#{tooltip.value}">
+			<a4j:support event="onchange" reRender="tooltipID" />
+		</h:inputText>
 
-				<h:outputText value="Delay"></h:outputText>
-				<h:inputText value="#{tooltip.delay}">
-					<a4j:support event="onchange" reRender="tooltipID" />
-				</h:inputText>
+		<h:outputText value="Delay"></h:outputText>
+		<h:inputText value="#{tooltip.delay}">
+			<a4j:support event="onchange" reRender="tooltipID" />
+		</h:inputText>
 
-				<h:outputText value="Layout:"></h:outputText>
-				<h:selectOneRadio value="#{tooltip.layout}">
-					<f:selectItem itemLabel="inline" itemValue="inline" />
-					<f:selectItem itemLabel="block" itemValue="block" />
-					<a4j:support event="onclick" reRender="tooltipID" />
-				</h:selectOneRadio>
+		<h:outputText value="showDelay"></h:outputText>
+		<h:inputText value="#{tooltip.showDelay}">
+			<a4j:support event="onchange" reRender="tooltipID" />
+		</h:inputText>
 
-				<h:outputText value="Mode:"></h:outputText>
-				<h:selectOneRadio value="#{tooltip.mode}">
-					<f:selectItem itemLabel="client" itemValue="client" />
-					<f:selectItem itemLabel="ajax" itemValue="ajax" />
-					<a4j:support event="onclick" reRender="tooltipID" />
-				</h:selectOneRadio>
+		<h:outputText value="hideDelay"></h:outputText>
+		<h:inputText value="#{tooltip.hideDelay}">
+			<a4j:support event="onchange" reRender="tooltipID" />
+		</h:inputText>
 
-				<h:outputText value="Horizontal offset:"></h:outputText>
-				<h:inputText value="#{tooltip.horizontalOffset}">
-					<a4j:support event="onchange" reRender="tooltipID" />
-				</h:inputText>
+		<h:outputText value="event:" />
+		<h:selectOneMenu value="#{tooltip.event}" onchange="submit();">
+			<f:selectItem itemLabel="onmouseover" itemValue="oncontextmenu" />
+			<f:selectItem itemLabel="onclick" itemValue="onclick" />
+			<f:selectItem itemLabel="onmouseup" itemValue="onmousemove" />
+		</h:selectOneMenu>
 
-				<h:outputText value="Vertical offset:"></h:outputText>
-				<h:inputText value="#{tooltip.verticalOffset}">
-					<a4j:support event="onchange" reRender="tooltipID" />
-				</h:inputText>
+		<h:outputText value="Layout:"></h:outputText>
+		<h:selectOneRadio value="#{tooltip.layout}">
+			<f:selectItem itemLabel="inline" itemValue="inline" />
+			<f:selectItem itemLabel="block" itemValue="block" />
+			<a4j:support event="onclick" reRender="tooltipID" />
+		</h:selectOneRadio>
 
-				<h:outputText value="Follow mouse:"></h:outputText>
-				<h:selectBooleanCheckbox value="#{tooltip.followMouse}">
-					<a4j:support event="onclick" reRender="tooltipID" />
-				</h:selectBooleanCheckbox>
+		<h:outputText value="Mode:"></h:outputText>
+		<h:selectOneRadio value="#{tooltip.mode}">
+			<f:selectItem itemLabel="client" itemValue="client" />
+			<f:selectItem itemLabel="ajax" itemValue="ajax" />
+			<a4j:support event="onclick" reRender="tooltipID" />
+		</h:selectOneRadio>
 
-				<h:outputText value="Direction:" />
-				<h:selectOneRadio value="#{tooltip.direction}">
-					<f:selectItem itemLabel="top-right" itemValue="top-right" />
-					<f:selectItem itemLabel="top-left" itemValue="top-left" />
-					<f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
-					<f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
-					<a4j:support event="onclick" reRender="tooltipID" />
-				</h:selectOneRadio>
+		<h:outputText value="Horizontal offset:"></h:outputText>
+		<h:inputText value="#{tooltip.horizontalOffset}">
+			<a4j:support event="onchange" reRender="tooltipID" />
+		</h:inputText>
 
-				<h:outputText value="Style:"></h:outputText>
-				<h:selectOneRadio value="#{tooltip.style}">
-					<f:selectItem itemLabel="none" itemValue="none" />
-					<f:selectItem itemLabel="border:3px; font:bold 14px;" itemValue="border:3px; font:bold 14px;" />
-					<f:selectItem itemLabel="border:green 3px solid; background-color:yellow;"
-						itemValue="border:green 3px solid; background-color:yellow;" />
-					<f:selectItem itemLabel="border:green 2px solid; font-family:monospace;"
-						itemValue="border:green 2px solid; font-family:monospace;" />
-					<a4j:support event="onclick" reRender="tooltipID" />
-				</h:selectOneRadio>
+		<h:outputText value="Vertical offset:"></h:outputText>
+		<h:inputText value="#{tooltip.verticalOffset}">
+			<a4j:support event="onchange" reRender="tooltipID" />
+		</h:inputText>
 
-				<h:outputText value="Disambled:"></h:outputText>
-				<h:selectBooleanCheckbox value="#{tooltip.disabled}">
-					<a4j:support event="onclick" reRender="tooltipID" />
-				</h:selectBooleanCheckbox>
+		<h:outputText value="Follow mouse:"></h:outputText>
+		<h:selectBooleanCheckbox value="#{tooltip.followMouse}">
+			<a4j:support event="onclick" reRender="tooltipID" />
+		</h:selectBooleanCheckbox>
 
-				<h:outputText value="Rendered:"></h:outputText>
-				<h:selectBooleanCheckbox value="#{tooltip.rendered}">
-					<a4j:support event="onclick" reRender="tooltipID" />
-				</h:selectBooleanCheckbox>
-			</h:panelGrid>
-		</rich:simpleTogglePanel>
+		<h:outputText value="Direction:" />
+		<h:selectOneRadio value="#{tooltip.direction}">
+			<f:selectItem itemLabel="top-right" itemValue="top-right" />
+			<f:selectItem itemLabel="top-left" itemValue="top-left" />
+			<f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+			<f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+			<a4j:support event="onclick" reRender="tooltipID" />
+		</h:selectOneRadio>
+
+		<h:outputText value="Style:"></h:outputText>
+		<h:selectOneRadio value="#{tooltip.style}">
+			<f:selectItem itemLabel="none" itemValue="none" />
+			<f:selectItem itemLabel="border:3px; font:bold 14px;" itemValue="border:3px; font:bold 14px;" />
+			<f:selectItem itemLabel="border:green 3px solid; background-color:yellow;"
+				itemValue="border:green 3px solid; background-color:yellow;" />
+			<f:selectItem itemLabel="border:green 2px solid; font-family:monospace;"
+				itemValue="border:green 2px solid; font-family:monospace;" />
+			<a4j:support event="onclick" reRender="tooltipID" />
+		</h:selectOneRadio>
+
+		<h:outputText value="Disambled:"></h:outputText>
+		<h:selectBooleanCheckbox value="#{tooltip.disabled}">
+			<a4j:support event="onclick" reRender="tooltipID" />
+		</h:selectBooleanCheckbox>
+
+		<h:outputText value="Rendered:"></h:outputText>
+		<h:selectBooleanCheckbox value="#{tooltip.rendered}">
+			<a4j:support event="onclick" reRender="tooltipID" />
+		</h:selectBooleanCheckbox>
+	</h:panelGrid>
 </f:subview>
\ No newline at end of file

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/Tree/Tree.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Tree/Tree.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Tree/Tree.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -15,14 +15,14 @@
 			ajaxSubmitSelection="true" reRender="outputText, selectOneListbox" preserveModel="none" dragIndicator="treeIndicator"
 			immediate="false" acceptedTypes="file1" dragType="#{bean.dragOn ? 'file1' : ''}" iconCollapsed="#{bean.iconCollapsed}"
 			iconExpanded="#{bean.iconExpanded}" iconLeaf="#{bean.iconLeaf}" icon="#{bean.icon}" dropListener="#{bean.processDrop}"
-			onclick="print('onclickInputID', 'onclick work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
-			ondragend="print('ondragendInputID', 'ondragend work!')" ondragenter="print('ondragenterInputID', 'ondragenter work!')"
-			ondragexit="print('ondragexitInputID', 'ondragexit work!')" ondragstart="print('ondragstartInputID', 'ondragstart work!')"
-			ondrop="print('ondropInputID', 'ondrop work!')" ondropend="print('ondropendInputID', 'ondropend work!')"
-			onkeydown="print('onkeydownInputID', 'onkeydown work!')" onkeypress="print('onkeypressInputID', 'onkeypress work!')"
-			onkeyup="print('onkeyupInputID', 'onkeyup work!')" onmousedown="print('onmousedownInputID', 'onmousedown work!')"
-			onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
-			onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')">
+			onclick="showEvent('onclickInputID', 'onclick work!')" ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')"
+			ondragend="showEvent('ondragendInputID', 'ondragend work!')" ondragenter="showEvent('ondragenterInputID', 'ondragenter work!')"
+			ondragexit="showEvent('ondragexitInputID', 'ondragexit work!')" ondragstart="showEvent('ondragstartInputID', 'ondragstart work!')"
+			ondrop="showEvent('ondropInputID', 'ondrop work!')" ondropend="showEvent('ondropendInputID', 'ondropend work!')"
+			onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')" onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')"
+			onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')" onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')"
+			onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
+			onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')">
 
 			<f:facet name="icon">
 				<h:outputText value="icon" rendered="#{bean.renderFacets}" />
@@ -37,8 +37,8 @@
 				<h:outputText value="collapsed" rendered="#{bean.renderFacets}" />
 			</f:facet>
 
-			<dnd:dndParam name="treeParam" value="Tree Parameter" />
-			<dnd:dndParam name="accept" value="accept" />
+			<rich:dndParam name="treeParam" value="Tree Parameter" />
+			<rich:dndParam name="accept" value="accept" />
 
 			<rich:treeNode type="input" dropListener="#{bean.processDrop}"
 				oncollapse="Element.removeClassName(event['treeItem'].getElement(), 'colored')"
@@ -47,7 +47,7 @@
 				<h:inputText value="#{data.name}" required="true" styleClass="inputs">
 				</h:inputText>
 
-				<dnd:dndParam name="nodeParam" value="Node Parameter" />
+				<rich:dndParam name="nodeParam" value="Node Parameter" />
 
 			</rich:treeNode>
 			<rich:treeNode type="text" nodeClass="customNode" acceptedTypes="file2" onselected="return false;">

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarth.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarth.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarth.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -6,12 +6,12 @@
 <f:subview id="virtualEarthSubviewID">
 		<h:panelGrid columns="2">
 			<rich:virtualEarth style="width:800px;" version="#{virtualEarth.version}" id="gm" lat="37.97" dashboardSize="Normal" zoom="#{virtualEarth.zoom}"
-				mapStyle="Hybrid" var="map" onclick="print('onclickInputID', 'onclick work!')"
-				ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
-				onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
-				onmousedown="print('onmousedownInputID', 'onmousedown work!')"
-				onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
-				onmouseover="print('onmouseoverInputID', 'onmouseover work!')" onmouseup="print('onmouseupInputID', 'onmouseup work!')"/>
+				mapStyle="Hybrid" var="map" onclick="showEvent('onclickInputID', 'onclick work!')"
+				ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+				onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+				onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')"
+				onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
+				onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"/>
 
 		</h:panelGrid>
 

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml	2008-01-22 08:42:45 UTC (rev 5526)
@@ -134,20 +134,6 @@
   </navigation-case>
  </navigation-rule>
  <navigation-rule>
-  <from-view-id>/Panel/Panel.jsp</from-view-id>
-  <navigation-case>
-   <from-outcome>Sample2</from-outcome>
-   <to-view-id>/Panel/Panel2.jsp</to-view-id>
-  </navigation-case>
- </navigation-rule>
- <navigation-rule>
-  <from-view-id>/Panel/panel2.jsp</from-view-id>
-  <navigation-case>
-   <from-outcome>BackP</from-outcome>
-   <to-view-id>/Panel/Panel.jsp</to-view-id>
-  </navigation-case>
- </navigation-rule>
- <navigation-rule>
   <from-view-id>*</from-view-id>
   <navigation-case>
    <from-outcome>main</from-outcome>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -76,7 +76,7 @@
 
         <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')})"/>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Div/Div.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Div/Div.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Div/Div.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -7,7 +7,7 @@
 <head>
 <title></title>
 	<script type="text/javascript">
-		function print(elementID, value) {
+		function showEvent(elementID, value) {
 			var oldObject = window.document.getElementById(elementID);
 			var newObject = window.document.createElement('input');
 			newObject.type = "text";

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -11,7 +11,7 @@
 	<title></title>
 
 	<script type="text/javascript">
-		function print(elementID, value) {
+		function showEvent(elementID, value) {
 			var oldObject = window.document.getElementById(elementID);
 			if(oldObject == null || oldObject.type == "text") return;
 			var newObject = window.document.createElement('input');
@@ -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: branches/3.1.x/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -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'}" />
@@ -33,43 +37,7 @@
 		<h:panelGrid columns="1">
 			<h:outputText value="Select component:" />
 			<h:selectOneMenu value="#{richBean.src}" onchange="submit();">
-				<f:selectItem itemValue="Blank" itemLabel="Blank" />
-				<f:selectItem itemValue="ComponentControl" itemLabel="ComponentControl" />
-				<f:selectItem itemValue="OrderingList" itemLabel="OrderingList" />
-				<f:selectItem itemValue="ListShuttle" itemLabel="ListShuttle" />
-				<f:selectItem itemValue="ContextMenu" itemLabel="ContextMenu" />
-				<f:selectItem itemValue="Calendar" itemLabel="Calendar" />
-				<f:selectItem itemValue="DataFilterSlider" itemLabel="Data Filter Slider" />
-				<f:selectItem itemValue="DataScroller" itemLabel="Date Scroller" />
-				<f:selectItem itemValue="DataTable" itemLabel="Date Table" />
-				<f:selectItem itemValue="DataDefinitionList" itemLabel="DataDefinitionList" />
-				<f:selectItem itemValue="DataOrderedList" itemLabel="DataOrderedList" />
-				<f:selectItem itemValue="DragAndDrop" itemLabel="Drag And Drop" />
-				<f:selectItem itemValue="DropDownMenu" itemLabel="Drop Down Menu" />
-				<f:selectItem itemValue="Effect" itemLabel="Effect" />
-				<f:selectItem itemValue="Gmap" itemLabel="Gmap" />
-				<f:selectItem itemValue="InputNumberSlider" itemLabel="Input Number Slider" />
-				<f:selectItem itemValue="InputNumberSpinner" itemLabel="Input Number Spinner" />
-				<f:selectItem itemValue="Insert" itemLabel="Insert" />
-				<f:selectItem itemValue="Message" itemLabel="Message" />
-				<f:selectItem itemValue="ModalPanel" itemLabel="Modal Panel" />
-				<f:selectItem itemValue="Paint2D" itemLabel="Paint2D" />
-				<f:selectItem itemValue="Panel" itemLabel="Panel" />
-				<f:selectItem itemValue="Panel2" itemLabel="Panel2" />
-				<f:selectItem itemValue="PanelBar" itemLabel="Panel Bar" />
-				<f:selectItem itemValue="PanelMenu" itemLabel="Panel Menu" />
-				<f:selectItem itemValue="Separator" itemLabel="Separator" />
-				<f:selectItem itemValue="SimpleTogglePanel" itemLabel="Simple Toggle Panel" />
-				<f:selectItem itemValue="Spacer" itemLabel="Spacer" />
-				<f:selectItem itemValue="SuggestionBox" itemLabel="Suggestion Box" />
-				<f:selectItem itemValue="TabPanel" itemLabel="Tab Panel" />
-				<f:selectItem itemValue="TogglePanel" itemLabel="Toggle Panel" />
-				<f:selectItem itemValue="ToolBar" itemLabel="Tool Bar" />
-				<f:selectItem itemValue="Tooltip" itemLabel="Tooltip" />
-				<f:selectItem itemValue="Tree" itemLabel="Tree" />
-				<f:selectItem itemValue="VirtualEarth" itemLabel="Virtual Earth" />
-				<f:selectItem itemValue="ScrollableDataTable" itemLabel="ScrollableDataTable" />
-				<f:selectItem itemValue="jQuery" itemLabel="jQuery" />
+				<f:selectItems value="#{richBean.list}" />
 			</h:selectOneMenu>
 		</h:panelGrid>
 	</h:panelGrid>

Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Select/Map.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Select/Map.jsp	2008-01-22 08:22:56 UTC (rev 5525)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Select/Map.jsp	2008-01-22 08:42:45 UTC (rev 5526)
@@ -7,7 +7,7 @@
 <head>
 <title></title>
 	<script type="text/javascript">
-		function print(elementID, value) {
+		function showEvent(elementID, value) {
 			var oldObject = window.document.getElementById(elementID);
 			var newObject = window.document.createElement('input');
 			newObject.type = "text";




More information about the richfaces-svn-commits mailing list