JBoss Rich Faces SVN: r10925 - in trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt: client/ui and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-10-27 18:58:56 -0400 (Mon, 27 Oct 2008)
New Revision: 10925
Modified:
trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/client/ComponentEntryPoint.java
trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/client/ui/JSFImage.java
trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtCallListener.java
trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtEvent.java
trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListener.java
trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerHandler.java
trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerHelper.java
trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerMethodHelper.java
trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerServiceHelper.java
trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtPhaseListener.java
trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/PageRenderer.java
trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/WidgetRenderer.java
trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/server/GwtFacesServlet.java
Log:
https://jira.jboss.org/jira/browse/RF-4578
Modified: trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/client/ComponentEntryPoint.java
===================================================================
--- trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/client/ComponentEntryPoint.java 2008-10-27 22:55:29 UTC (rev 10924)
+++ trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/client/ComponentEntryPoint.java 2008-10-27 22:58:56 UTC (rev 10925)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.gwt.client;
Modified: trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/client/ui/JSFImage.java
===================================================================
--- trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/client/ui/JSFImage.java 2008-10-27 22:55:29 UTC (rev 10924)
+++ trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/client/ui/JSFImage.java 2008-10-27 22:58:56 UTC (rev 10925)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.gwt.client.ui;
Modified: trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtCallListener.java
===================================================================
--- trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtCallListener.java 2008-10-27 22:55:29 UTC (rev 10924)
+++ trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtCallListener.java 2008-10-27 22:58:56 UTC (rev 10925)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.ajax4jsf.gwt.jsf;
import javax.faces.event.PhaseEvent;
Modified: trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtEvent.java
===================================================================
--- trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtEvent.java 2008-10-27 22:55:29 UTC (rev 10924)
+++ trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtEvent.java 2008-10-27 22:58:56 UTC (rev 10925)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.gwt.jsf;
Modified: trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListener.java
===================================================================
--- trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListener.java 2008-10-27 22:55:29 UTC (rev 10924)
+++ trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListener.java 2008-10-27 22:58:56 UTC (rev 10925)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.gwt.jsf;
Modified: trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerHandler.java
===================================================================
--- trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerHandler.java 2008-10-27 22:55:29 UTC (rev 10924)
+++ trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerHandler.java 2008-10-27 22:58:56 UTC (rev 10925)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.gwt.jsf;
Modified: trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerHelper.java
===================================================================
--- trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerHelper.java 2008-10-27 22:55:29 UTC (rev 10924)
+++ trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerHelper.java 2008-10-27 22:58:56 UTC (rev 10925)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.gwt.jsf;
Modified: trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerMethodHelper.java
===================================================================
--- trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerMethodHelper.java 2008-10-27 22:55:29 UTC (rev 10924)
+++ trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerMethodHelper.java 2008-10-27 22:58:56 UTC (rev 10925)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.gwt.jsf;
Modified: trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerServiceHelper.java
===================================================================
--- trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerServiceHelper.java 2008-10-27 22:55:29 UTC (rev 10924)
+++ trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtListenerServiceHelper.java 2008-10-27 22:58:56 UTC (rev 10925)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.ajax4jsf.gwt.jsf;
import com.google.gwt.user.server.rpc.RPCRequest;
Modified: trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtPhaseListener.java
===================================================================
--- trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtPhaseListener.java 2008-10-27 22:55:29 UTC (rev 10924)
+++ trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/GwtPhaseListener.java 2008-10-27 22:58:56 UTC (rev 10925)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.gwt.jsf;
Modified: trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/PageRenderer.java
===================================================================
--- trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/PageRenderer.java 2008-10-27 22:55:29 UTC (rev 10924)
+++ trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/PageRenderer.java 2008-10-27 22:58:56 UTC (rev 10925)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.gwt.jsf;
Modified: trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/WidgetRenderer.java
===================================================================
--- trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/WidgetRenderer.java 2008-10-27 22:55:29 UTC (rev 10924)
+++ trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/jsf/WidgetRenderer.java 2008-10-27 22:58:56 UTC (rev 10925)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.gwt.jsf;
Modified: trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/server/GwtFacesServlet.java
===================================================================
--- trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/server/GwtFacesServlet.java 2008-10-27 22:55:29 UTC (rev 10924)
+++ trunk/extensions/gwt/src/main/java/org/ajax4jsf/gwt/server/GwtFacesServlet.java 2008-10-27 22:58:56 UTC (rev 10925)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.gwt.server;
16 years, 11 months
JBoss Rich Faces SVN: r10924 - trunk/ui/beanValidator/src/main/java/org/richfaces/component/html.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-10-27 18:55:29 -0400 (Mon, 27 Oct 2008)
New Revision: 10924
Modified:
trunk/ui/beanValidator/src/main/java/org/richfaces/component/html/HtmlInputText.java
trunk/ui/beanValidator/src/main/java/org/richfaces/component/html/HtmlInputTextarea.java
Log:
https://jira.jboss.org/jira/browse/RF-4578
Modified: trunk/ui/beanValidator/src/main/java/org/richfaces/component/html/HtmlInputText.java
===================================================================
--- trunk/ui/beanValidator/src/main/java/org/richfaces/component/html/HtmlInputText.java 2008-10-27 18:44:32 UTC (rev 10923)
+++ trunk/ui/beanValidator/src/main/java/org/richfaces/component/html/HtmlInputText.java 2008-10-27 22:55:29 UTC (rev 10924)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.component.html;
Modified: trunk/ui/beanValidator/src/main/java/org/richfaces/component/html/HtmlInputTextarea.java
===================================================================
--- trunk/ui/beanValidator/src/main/java/org/richfaces/component/html/HtmlInputTextarea.java 2008-10-27 18:44:32 UTC (rev 10923)
+++ trunk/ui/beanValidator/src/main/java/org/richfaces/component/html/HtmlInputTextarea.java 2008-10-27 22:55:29 UTC (rev 10924)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.component.html;
16 years, 11 months
JBoss Rich Faces SVN: r10923 - in trunk/test-applications: auto-jsp and 134 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-10-27 14:44:32 -0400 (Mon, 27 Oct 2008)
New Revision: 10923
Added:
trunk/test-applications/auto-jsp/
trunk/test-applications/auto-jsp/.classpath
trunk/test-applications/auto-jsp/.project
trunk/test-applications/auto-jsp/.settings/
trunk/test-applications/auto-jsp/.settings/org.eclipse.jdt.core.prefs
trunk/test-applications/auto-jsp/.settings/org.eclipse.wst.common.component
trunk/test-applications/auto-jsp/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/test-applications/auto-jsp/pom.xml
trunk/test-applications/auto-jsp/src/
trunk/test-applications/auto-jsp/src/main/
trunk/test-applications/auto-jsp/src/main/java/
trunk/test-applications/auto-jsp/src/main/java/calendar/
trunk/test-applications/auto-jsp/src/main/java/calendar/Bean.java
trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarBean.java
trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarDataModelImpl.java
trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarDataModelItemImpl.java
trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarValidator.java
trunk/test-applications/auto-jsp/src/main/java/columns/
trunk/test-applications/auto-jsp/src/main/java/columns/Columns.java
trunk/test-applications/auto-jsp/src/main/java/combobox/
trunk/test-applications/auto-jsp/src/main/java/combobox/Combobox.java
trunk/test-applications/auto-jsp/src/main/java/componentControl/
trunk/test-applications/auto-jsp/src/main/java/componentControl/ComponentControl.java
trunk/test-applications/auto-jsp/src/main/java/contextMenu/
trunk/test-applications/auto-jsp/src/main/java/contextMenu/ContextMenu.java
trunk/test-applications/auto-jsp/src/main/java/custom/
trunk/test-applications/auto-jsp/src/main/java/custom/Custom.java
trunk/test-applications/auto-jsp/src/main/java/custom/CustomList.java
trunk/test-applications/auto-jsp/src/main/java/custom/UserBean.java
trunk/test-applications/auto-jsp/src/main/java/dataDefinitionList/
trunk/test-applications/auto-jsp/src/main/java/dataDefinitionList/DataDefinitionList.java
trunk/test-applications/auto-jsp/src/main/java/dataGrid/
trunk/test-applications/auto-jsp/src/main/java/dataGrid/Car.java
trunk/test-applications/auto-jsp/src/main/java/dataGrid/DataGrid.java
trunk/test-applications/auto-jsp/src/main/java/dataOrderedList/
trunk/test-applications/auto-jsp/src/main/java/dataOrderedList/DataOrderedList.java
trunk/test-applications/auto-jsp/src/main/java/dataScroller/
trunk/test-applications/auto-jsp/src/main/java/dataScroller/Data.java
trunk/test-applications/auto-jsp/src/main/java/dataScroller/DataScroller.java
trunk/test-applications/auto-jsp/src/main/java/dataTable/
trunk/test-applications/auto-jsp/src/main/java/dataTable/ChildBean.java
trunk/test-applications/auto-jsp/src/main/java/dataTable/Data.java
trunk/test-applications/auto-jsp/src/main/java/dataTable/DataTable.java
trunk/test-applications/auto-jsp/src/main/java/ddMenu/
trunk/test-applications/auto-jsp/src/main/java/ddMenu/DDMenu.java
trunk/test-applications/auto-jsp/src/main/java/dfs/
trunk/test-applications/auto-jsp/src/main/java/dfs/DataFilterSliderDao.java
trunk/test-applications/auto-jsp/src/main/java/dfs/DataFilterSliderDaoImpl.java
trunk/test-applications/auto-jsp/src/main/java/dfs/DemoInventoryItem.java
trunk/test-applications/auto-jsp/src/main/java/dfs/DemoInventoryList.java
trunk/test-applications/auto-jsp/src/main/java/dfs/DemoSliderBean.java
trunk/test-applications/auto-jsp/src/main/java/dnd/
trunk/test-applications/auto-jsp/src/main/java/dnd/DndBean.java
trunk/test-applications/auto-jsp/src/main/java/effect/
trunk/test-applications/auto-jsp/src/main/java/effect/Effect.java
trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/
trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/DemoPatient.java
trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/DemoPatientProvider.java
trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/ExtendedDataTableBB.java
trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/ExtendedDataTableControlBean.java
trunk/test-applications/auto-jsp/src/main/java/fileUpload/
trunk/test-applications/auto-jsp/src/main/java/fileUpload/FileUpload.java
trunk/test-applications/auto-jsp/src/main/java/fileUpload/FileUploadValidator.java
trunk/test-applications/auto-jsp/src/main/java/gmap/
trunk/test-applications/auto-jsp/src/main/java/gmap/Gmap.java
trunk/test-applications/auto-jsp/src/main/java/hotKey/
trunk/test-applications/auto-jsp/src/main/java/hotKey/HotKey.java
trunk/test-applications/auto-jsp/src/main/java/inplaceInput/
trunk/test-applications/auto-jsp/src/main/java/inplaceInput/InplaceInput.java
trunk/test-applications/auto-jsp/src/main/java/inplaceSelect/
trunk/test-applications/auto-jsp/src/main/java/inplaceSelect/InplaceSelect.java
trunk/test-applications/auto-jsp/src/main/java/inputNumberSlider/
trunk/test-applications/auto-jsp/src/main/java/inputNumberSlider/InputNumberSlider.java
trunk/test-applications/auto-jsp/src/main/java/inputNumberSpinner/
trunk/test-applications/auto-jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java
trunk/test-applications/auto-jsp/src/main/java/insert/
trunk/test-applications/auto-jsp/src/main/java/insert/Insert.java
trunk/test-applications/auto-jsp/src/main/java/jQuery/
trunk/test-applications/auto-jsp/src/main/java/jQuery/JQuery.java
trunk/test-applications/auto-jsp/src/main/java/listShuttle/
trunk/test-applications/auto-jsp/src/main/java/listShuttle/ListShuttle.java
trunk/test-applications/auto-jsp/src/main/java/listShuttle/ListShuttleConverter.java
trunk/test-applications/auto-jsp/src/main/java/message/
trunk/test-applications/auto-jsp/src/main/java/message/Message.java
trunk/test-applications/auto-jsp/src/main/java/message/MessageValidator.java
trunk/test-applications/auto-jsp/src/main/java/modalPanel/
trunk/test-applications/auto-jsp/src/main/java/modalPanel/ModalPanel.java
trunk/test-applications/auto-jsp/src/main/java/orderingList/
trunk/test-applications/auto-jsp/src/main/java/orderingList/OrderingList.java
trunk/test-applications/auto-jsp/src/main/java/orderingList/OrderingListConverter.java
trunk/test-applications/auto-jsp/src/main/java/paint2D/
trunk/test-applications/auto-jsp/src/main/java/paint2D/Paint2D.java
trunk/test-applications/auto-jsp/src/main/java/paint2D/PaintData.java
trunk/test-applications/auto-jsp/src/main/java/panel/
trunk/test-applications/auto-jsp/src/main/java/panel/Panel.java
trunk/test-applications/auto-jsp/src/main/java/panelBar/
trunk/test-applications/auto-jsp/src/main/java/panelBar/PanelBar.java
trunk/test-applications/auto-jsp/src/main/java/panelMenu/
trunk/test-applications/auto-jsp/src/main/java/panelMenu/PanelMenu.java
trunk/test-applications/auto-jsp/src/main/java/pickList/
trunk/test-applications/auto-jsp/src/main/java/pickList/PickList.java
trunk/test-applications/auto-jsp/src/main/java/progressBar/
trunk/test-applications/auto-jsp/src/main/java/progressBar/ProgressBar.java
trunk/test-applications/auto-jsp/src/main/java/rich/
trunk/test-applications/auto-jsp/src/main/java/rich/MapComponent.java
trunk/test-applications/auto-jsp/src/main/java/rich/Options.java
trunk/test-applications/auto-jsp/src/main/java/rich/RichBean.java
trunk/test-applications/auto-jsp/src/main/java/richTest/
trunk/test-applications/auto-jsp/src/main/java/richTest/RichTest.java
trunk/test-applications/auto-jsp/src/main/java/sTP/
trunk/test-applications/auto-jsp/src/main/java/sTP/SimpleTogglePanel.java
trunk/test-applications/auto-jsp/src/main/java/sb/
trunk/test-applications/auto-jsp/src/main/java/sb/Data.java
trunk/test-applications/auto-jsp/src/main/java/sb/Sb.java
trunk/test-applications/auto-jsp/src/main/java/scrollableDataTable/
trunk/test-applications/auto-jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java
trunk/test-applications/auto-jsp/src/main/java/separator/
trunk/test-applications/auto-jsp/src/main/java/separator/Separator.java
trunk/test-applications/auto-jsp/src/main/java/skinning/
trunk/test-applications/auto-jsp/src/main/java/skinning/Skinning.java
trunk/test-applications/auto-jsp/src/main/java/sortingAndFiltering/
trunk/test-applications/auto-jsp/src/main/java/sortingAndFiltering/SortingAndFiltering.java
trunk/test-applications/auto-jsp/src/main/java/spacer/
trunk/test-applications/auto-jsp/src/main/java/spacer/Spacer.java
trunk/test-applications/auto-jsp/src/main/java/tabPanel/
trunk/test-applications/auto-jsp/src/main/java/tabPanel/TabPanel.java
trunk/test-applications/auto-jsp/src/main/java/togglePanel/
trunk/test-applications/auto-jsp/src/main/java/togglePanel/TogglePanel.java
trunk/test-applications/auto-jsp/src/main/java/toolBar/
trunk/test-applications/auto-jsp/src/main/java/toolBar/ToolBar.java
trunk/test-applications/auto-jsp/src/main/java/tooltip/
trunk/test-applications/auto-jsp/src/main/java/tooltip/Tooltip.java
trunk/test-applications/auto-jsp/src/main/java/tree/
trunk/test-applications/auto-jsp/src/main/java/tree/Bean.java
trunk/test-applications/auto-jsp/src/main/java/tree/Library.java
trunk/test-applications/auto-jsp/src/main/java/tree/Organism.java
trunk/test-applications/auto-jsp/src/main/java/tree/Pathway.java
trunk/test-applications/auto-jsp/src/main/java/tree/TreeBean.java
trunk/test-applications/auto-jsp/src/main/java/tree/TreeContainer.java
trunk/test-applications/auto-jsp/src/main/java/tree/TreeDndBean.java
trunk/test-applications/auto-jsp/src/main/java/tree/pom_sample.xml
trunk/test-applications/auto-jsp/src/main/java/tree/test.xml
trunk/test-applications/auto-jsp/src/main/java/util/
trunk/test-applications/auto-jsp/src/main/java/util/comparator/
trunk/test-applications/auto-jsp/src/main/java/util/comparator/ColumnsComparator.java
trunk/test-applications/auto-jsp/src/main/java/util/componentInfo/
trunk/test-applications/auto-jsp/src/main/java/util/componentInfo/ComponentAttribute.java
trunk/test-applications/auto-jsp/src/main/java/util/componentInfo/ComponentInfo.java
trunk/test-applications/auto-jsp/src/main/java/util/componentInfo/Info.java
trunk/test-applications/auto-jsp/src/main/java/util/converter/
trunk/test-applications/auto-jsp/src/main/java/util/converter/DataConverter.java
trunk/test-applications/auto-jsp/src/main/java/util/converter/DateValueConverter.java
trunk/test-applications/auto-jsp/src/main/java/util/converter/InplaceInputConverter.java
trunk/test-applications/auto-jsp/src/main/java/util/converter/ListShuttleConverter.java
trunk/test-applications/auto-jsp/src/main/java/util/converter/OrderingListConverter.java
trunk/test-applications/auto-jsp/src/main/java/util/data/
trunk/test-applications/auto-jsp/src/main/java/util/data/Data.java
trunk/test-applications/auto-jsp/src/main/java/util/event/
trunk/test-applications/auto-jsp/src/main/java/util/event/Event.java
trunk/test-applications/auto-jsp/src/main/java/util/icon/
trunk/test-applications/auto-jsp/src/main/java/util/icon/Icon.java
trunk/test-applications/auto-jsp/src/main/java/util/parser/
trunk/test-applications/auto-jsp/src/main/java/util/parser/Attribute.java
trunk/test-applications/auto-jsp/src/main/java/util/parser/TLDParser.java
trunk/test-applications/auto-jsp/src/main/java/util/phaseTracker/
trunk/test-applications/auto-jsp/src/main/java/util/phaseTracker/PhaseTracker.java
trunk/test-applications/auto-jsp/src/main/java/util/phaseTracker/PhaseTrackerComponent.java
trunk/test-applications/auto-jsp/src/main/java/util/ptComponent/
trunk/test-applications/auto-jsp/src/main/java/util/ptComponent/PTComponent.java
trunk/test-applications/auto-jsp/src/main/java/util/skins/
trunk/test-applications/auto-jsp/src/main/java/util/skins/Skins.java
trunk/test-applications/auto-jsp/src/main/java/util/style/
trunk/test-applications/auto-jsp/src/main/java/util/style/Style.java
trunk/test-applications/auto-jsp/src/main/java/validator/
trunk/test-applications/auto-jsp/src/main/java/validator/Bean.java
trunk/test-applications/auto-jsp/src/main/java/validator/DataBean.java
trunk/test-applications/auto-jsp/src/main/java/validator/GraphValidatorBean.java
trunk/test-applications/auto-jsp/src/main/java/validator/LengthBean.java
trunk/test-applications/auto-jsp/src/main/java/validator/MaxBean.java
trunk/test-applications/auto-jsp/src/main/java/validator/MinBean.java
trunk/test-applications/auto-jsp/src/main/java/validator/MinMaxBean.java
trunk/test-applications/auto-jsp/src/main/java/validator/NotEmptyBean.java
trunk/test-applications/auto-jsp/src/main/java/validator/NotNullBean.java
trunk/test-applications/auto-jsp/src/main/java/validator/TestValidable.java
trunk/test-applications/auto-jsp/src/main/java/validator/Validable.java
trunk/test-applications/auto-jsp/src/main/java/validator/ValidatorBean.java
trunk/test-applications/auto-jsp/src/main/java/virtualEarth/
trunk/test-applications/auto-jsp/src/main/java/virtualEarth/VirtualEarth.java
trunk/test-applications/auto-jsp/src/main/resources/
trunk/test-applications/auto-jsp/src/main/resources/ValidatorMessages_en.properties
trunk/test-applications/auto-jsp/src/main/resources/message_en.properties
trunk/test-applications/auto-jsp/src/main/resources/org/
trunk/test-applications/auto-jsp/src/main/resources/org/richfaces/
trunk/test-applications/auto-jsp/src/main/resources/org/richfaces/renderkit/
trunk/test-applications/auto-jsp/src/main/resources/org/richfaces/renderkit/fileUpload.properties
trunk/test-applications/auto-jsp/src/main/resources/org/richfaces/simpleTreeData.properties
trunk/test-applications/auto-jsp/src/main/resources/tree/
trunk/test-applications/auto-jsp/src/main/resources/tree/pom_sample.xml
trunk/test-applications/auto-jsp/src/main/resources/tree/test.xml
trunk/test-applications/auto-jsp/src/main/webapp/
trunk/test-applications/auto-jsp/src/main/webapp/Calendar/
trunk/test-applications/auto-jsp/src/main/webapp/Calendar/Calendar.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Calendar/CalendarDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Calendar/CalendarProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Columns/
trunk/test-applications/auto-jsp/src/main/webapp/Columns/Columns.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Columns/ColumnsProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Combobox/
trunk/test-applications/auto-jsp/src/main/webapp/Combobox/Combobox.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Combobox/ComboboxDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Combobox/ComboboxProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ComponentControl/
trunk/test-applications/auto-jsp/src/main/webapp/ComponentControl/ComponentControl.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ContextMenu/
trunk/test-applications/auto-jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/CustomizePage/
trunk/test-applications/auto-jsp/src/main/webapp/CustomizePage/CustomizePage.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataDefinitionList/
trunk/test-applications/auto-jsp/src/main/webapp/DataDefinitionList/DataDefinitionDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataDefinitionList/DataDefinitionList.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataFilterSlider/
trunk/test-applications/auto-jsp/src/main/webapp/DataFilterSlider/DataFilterSlider.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataGrid/
trunk/test-applications/auto-jsp/src/main/webapp/DataGrid/DataGrid.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataGrid/DataGridProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataOrderedList/
trunk/test-applications/auto-jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataOrderedList/DataOrderedListDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataOrderedList/DataOrderedListProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/
trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScroller.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScrollerDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataTable/
trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTable.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTableDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTableProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DragAndDrop/
trunk/test-applications/auto-jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/
trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenuDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Effect/
trunk/test-applications/auto-jsp/src/main/webapp/Effect/Effect.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/
trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTable.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/FileUpload/
trunk/test-applications/auto-jsp/src/main/webapp/FileUpload/FileUpload.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Gmap/
trunk/test-applications/auto-jsp/src/main/webapp/Gmap/Gmap.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Gmap/GmapDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Gmap/GmapProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/HotKey/
trunk/test-applications/auto-jsp/src/main/webapp/HotKey/HotKey.jsp
trunk/test-applications/auto-jsp/src/main/webapp/InplaceInput/
trunk/test-applications/auto-jsp/src/main/webapp/InplaceInput/InplaceInput.jsp
trunk/test-applications/auto-jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/InplaceSelect/
trunk/test-applications/auto-jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp
trunk/test-applications/auto-jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/
trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp
trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSliderDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/
trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinner.jsp
trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Insert/
trunk/test-applications/auto-jsp/src/main/webapp/Insert/Insert.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Insert/InsertProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/
trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.bsh
trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.cpp
trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.groovy
trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.html
trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.java
trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.lzx
trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.xml
trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/
trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttle.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttleDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/META-INF/
trunk/test-applications/auto-jsp/src/main/webapp/META-INF/MANIFEST.MF
trunk/test-applications/auto-jsp/src/main/webapp/Message/
trunk/test-applications/auto-jsp/src/main/webapp/Message/Message.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Message/MessageProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Message/MessageStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/
trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanelDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/
trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingList.jsp
trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingListDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/
trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2D.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2DDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2DStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Panel/
trunk/test-applications/auto-jsp/src/main/webapp/Panel/Panel.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Panel/PanelDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Panel/PanelProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Panel/PanelStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/
trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBar.jsp
trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBarDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/
trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenu.jsp
trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenuDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/PickList/
trunk/test-applications/auto-jsp/src/main/webapp/PickList/PickList.jsp
trunk/test-applications/auto-jsp/src/main/webapp/PickList/PickListDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/PickList/PickListProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ProgressBar/
trunk/test-applications/auto-jsp/src/main/webapp/ProgressBar/ProgressBar.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ProgressBar/ProgressBarDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ScrollableDataTable/
trunk/test-applications/auto-jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Separator/
trunk/test-applications/auto-jsp/src/main/webapp/Separator/Separator.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Separator/SeparatorDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Separator/SeparatorProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/
trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.jsp
trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Skinning/
trunk/test-applications/auto-jsp/src/main/webapp/Skinning/Skinning.jsp
trunk/test-applications/auto-jsp/src/main/webapp/SortingAndFiltering/
trunk/test-applications/auto-jsp/src/main/webapp/SortingAndFiltering/SortingAndFiltering.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Spacer/
trunk/test-applications/auto-jsp/src/main/webapp/Spacer/Spacer.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Spacer/SpacerDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Spacer/SpacerProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/
trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp
trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBoxDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/
trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanel.jsp
trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanelDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/
trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanel.jsp
trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanelDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ToolBar/
trunk/test-applications/auto-jsp/src/main/webapp/ToolBar/ToolBar.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ToolBar/ToolBarDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/
trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/Tooltip.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/TooltipDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/TooltipProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Tree/
trunk/test-applications/auto-jsp/src/main/webapp/Tree/Tree.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Tree/TreeDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Tree/TreeProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Validator/
trunk/test-applications/auto-jsp/src/main/webapp/Validator/Validator.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Validator/ValidatorDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Validator/ValidatorProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/VirtualEarth/
trunk/test-applications/auto-jsp/src/main/webapp/VirtualEarth/VirtualEarth.jsp
trunk/test-applications/auto-jsp/src/main/webapp/VirtualEarth/VirtualEarthDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/VirtualEarth/VirtualEarthProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Calendar.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Columns.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Combobox.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ComponentControl.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ComponentInfo.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Custom.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DDMenu.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataFilterSlider.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataGrid.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataScroller.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataTable.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DragAndDrop.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Effect.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Event.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ExtendedDataTable.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-FileUpload.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Gmap.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-HotKey.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Icon.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InplaceInput.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InplaceSelect.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InputNumberSlider.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InputNumberSpinner.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Insert.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Message.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ModalPanel.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Options.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-OrderingList.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PTComponent.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Paint2D.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Panel.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PanelBar.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PanelMenu.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PickList.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ProgressBar.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-RichBean.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-RichTest.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ScrollableDataTable.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Separator.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-SimpleTogglePanel.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Skin.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Skinning.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-SortingAndFiltering.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Spacer.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Style.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-SuggestionBox.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-TabPanel.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-TogglePanel.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ToolBar.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Tree.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Validator.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-VirtualEarth.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-jQuery.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-tooltip.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config.xml
trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/web.xml
trunk/test-applications/auto-jsp/src/main/webapp/index.jsp
trunk/test-applications/auto-jsp/src/main/webapp/jQuery/
trunk/test-applications/auto-jsp/src/main/webapp/jQuery/jQuery.jsp
trunk/test-applications/auto-jsp/src/main/webapp/pages/
trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/
trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/Blank.jsp
trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/BlankDefault.jsp
trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/BlankProperty.jsp
trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/BlankStraightforward.jsp
trunk/test-applications/auto-jsp/src/main/webapp/pages/Div/
trunk/test-applications/auto-jsp/src/main/webapp/pages/Div/Div.jsp
trunk/test-applications/auto-jsp/src/main/webapp/pages/Info/
trunk/test-applications/auto-jsp/src/main/webapp/pages/Info/Info.jsp
trunk/test-applications/auto-jsp/src/main/webapp/pages/Rich/
trunk/test-applications/auto-jsp/src/main/webapp/pages/Rich/Rich.jsp
trunk/test-applications/auto-jsp/src/main/webapp/pages/RichMenu/
trunk/test-applications/auto-jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp
trunk/test-applications/auto-jsp/src/main/webapp/pages/Select/
trunk/test-applications/auto-jsp/src/main/webapp/pages/Select/Map.jsp
trunk/test-applications/auto-jsp/src/main/webapp/pages/Select/SelectOneMenuPage.jsp
trunk/test-applications/auto-jsp/src/main/webapp/pages/main.jsp
trunk/test-applications/auto-jsp/src/main/webapp/pics/
trunk/test-applications/auto-jsp/src/main/webapp/pics/458_1_big.gif
trunk/test-applications/auto-jsp/src/main/webapp/pics/458_2_big.jpg
trunk/test-applications/auto-jsp/src/main/webapp/pics/ajax_process.gif
trunk/test-applications/auto-jsp/src/main/webapp/pics/ajax_stoped.gif
trunk/test-applications/auto-jsp/src/main/webapp/pics/asus.jpg
trunk/test-applications/auto-jsp/src/main/webapp/pics/benq.jpg
trunk/test-applications/auto-jsp/src/main/webapp/pics/collapse.gif
trunk/test-applications/auto-jsp/src/main/webapp/pics/error.gif
trunk/test-applications/auto-jsp/src/main/webapp/pics/expand.gif
trunk/test-applications/auto-jsp/src/main/webapp/pics/fatal.gif
trunk/test-applications/auto-jsp/src/main/webapp/pics/file-manager-reject.png
trunk/test-applications/auto-jsp/src/main/webapp/pics/file-manager.png
trunk/test-applications/auto-jsp/src/main/webapp/pics/header.png
trunk/test-applications/auto-jsp/src/main/webapp/pics/info.gif
trunk/test-applications/auto-jsp/src/main/webapp/pics/item.png
trunk/test-applications/auto-jsp/src/main/webapp/pics/masshtaby_01.jpg
trunk/test-applications/auto-jsp/src/main/webapp/pics/passed.gif
trunk/test-applications/auto-jsp/src/main/webapp/pics/podb109_61.jpg
trunk/test-applications/auto-jsp/src/main/webapp/pics/toshiba.jpg
trunk/test-applications/auto-jsp/src/main/webapp/pics/warn.gif
trunk/test-applications/auto-jsp/src/main/webapp/styles/
trunk/test-applications/auto-jsp/src/main/webapp/styles/app.css
trunk/test-applications/auto-jsp/src/main/webapp/styles/styles.css
Log:
auto-jsp is a copy of jsp, intended for automation.
Added: trunk/test-applications/auto-jsp/.classpath
===================================================================
--- trunk/test-applications/auto-jsp/.classpath (rev 0)
+++ trunk/test-applications/auto-jsp/.classpath 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,39 @@
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
+ <classpathentry kind="output" path="target/classes"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var" path="M2_REPO/javax/el/el-api/1.0/el-api-1.0.jar" sourcepath="M2_REPO/javax/el/el-api/1.0/el-api-1.0-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/nekohtml/nekohtml/0.9.5/nekohtml-0.9.5.jar" sourcepath="M2_REPO/nekohtml/nekohtml/0.9.5/nekohtml-0.9.5-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar" sourcepath="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-core/3.3.0.CR1/hibernate-core-3.3.0.CR1.jar" sourcepath="M2_REPO/org/hibernate/hibernate-core/3.3.0.CR1/hibernate-core-3.3.0.CR1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/oro/oro/2.0.8/oro-2.0.8.jar" sourcepath="M2_REPO/oro/oro/2.0.8/oro-2.0.8-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-fileupload/commons-fileupload/1.0/commons-fileupload-1.0.jar" sourcepath="M2_REPO/commons-fileupload/commons-fileupload/1.0/commons-fileupload-1.0-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-validator/3.1.0.CR1/hibernate-validator-3.1.0.CR1.jar" sourcepath="M2_REPO/org/hibernate/hibernate-validator/3.1.0.CR1/hibernate-validator-3.1.0.CR1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar" sourcepath="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" sourcepath="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.2/commons-collections-3.2.jar" sourcepath="M2_REPO/commons-collections/commons-collections/3.2/commons-collections-3.2-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1.jar" sourcepath="M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/uwyn/jhighlight/1.0/jhighlight-1.0.jar" sourcepath="M2_REPO/com/uwyn/jhighlight/1.0/jhighlight-1.0-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.3/commons-codec-1.3.jar" sourcepath="M2_REPO/commons-codec/commons-codec/1.3/commons-codec-1.3-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" sourcepath="M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar" sourcepath="M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/richfaces/framework/richfaces-impl/3.3.0-SNAPSHOT/richfaces-impl-3.3.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/richfaces/framework/richfaces-impl/3.3.0-SNAPSHOT/richfaces-impl-3.3.0-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar" sourcepath="M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/myfaces/core/myfaces-impl/1.2.4/myfaces-impl-1.2.4.jar" sourcepath="M2_REPO/org/apache/myfaces/core/myfaces-impl/1.2.4/myfaces-impl-1.2.4-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-commons-annotations/3.1.0.CR1/hibernate-commons-annotations-3.1.0.CR1.jar" sourcepath="M2_REPO/org/hibernate/hibernate-commons-annotations/3.1.0.CR1/hibernate-commons-annotations-3.1.0.CR1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-discovery/commons-discovery/0.4/commons-discovery-0.4.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/myfaces/core/myfaces-api/1.2.4/myfaces-api-1.2.4.jar" sourcepath="M2_REPO/org/apache/myfaces/core/myfaces-api/1.2.4/myfaces-api-1.2.4-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/richfaces/ui/richfaces-ui/3.3.0-SNAPSHOT/richfaces-ui-3.3.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/richfaces/ui/richfaces-ui/3.3.0-SNAPSHOT/richfaces-ui-3.3.0-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/myfaces/tomahawk/tomahawk/1.1.6/tomahawk-1.1.6.jar" sourcepath="M2_REPO/org/apache/myfaces/tomahawk/tomahawk/1.1.6/tomahawk-1.1.6-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-simple/1.4.2/slf4j-simple-1.4.2.jar" sourcepath="M2_REPO/org/slf4j/slf4j-simple/1.4.2/slf4j-simple-1.4.2-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/richfaces/framework/richfaces-api/3.3.0-SNAPSHOT/richfaces-api-3.3.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/richfaces/framework/richfaces-api/3.3.0-SNAPSHOT/richfaces-api-3.3.0-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/sun/facelets/jsf-facelets/1.1.14/jsf-facelets-1.1.14.jar" sourcepath="M2_REPO/com/sun/facelets/jsf-facelets/1.1.14/jsf-facelets-1.1.14-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar" sourcepath="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/servlet/jstl/1.0/jstl-1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-digester/commons-digester/1.8/commons-digester-1.8.jar" sourcepath="M2_REPO/commons-digester/commons-digester/1.8/commons-digester-1.8-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.1/jta-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-el/commons-el/1.0/commons-el-1.0.jar" sourcepath="M2_REPO/commons-el/commons-el/1.0/commons-el-1.0-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-validator/commons-validator/1.3.1/commons-validator-1.3.1.jar" sourcepath="M2_REPO/commons-validator/commons-validator/1.3.1/commons-validator-1.3.1-sources.jar"/>
+</classpath>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/.project
===================================================================
--- trunk/test-applications/auto-jsp/.project (rev 0)
+++ trunk/test-applications/auto-jsp/.project 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,22 @@
+<projectDescription>
+ <name>auto-jsp</name>
+ <comment/>
+ <projects/>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ </natures>
+</projectDescription>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/test-applications/auto-jsp/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/test-applications/auto-jsp/.settings/org.eclipse.jdt.core.prefs 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,5 @@
+#Mon Oct 27 20:29:42 EET 2008
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
Added: trunk/test-applications/auto-jsp/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/test-applications/auto-jsp/.settings/org.eclipse.wst.common.component (rev 0)
+++ trunk/test-applications/auto-jsp/.settings/org.eclipse.wst.common.component 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,102 @@
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="auto-jsp">
+ <property name="context-root" value="auto-jsp"/>
+ <wb-resource deploy-path="/" source-path="src/main/webapp"/>
+ <property name="java-output-path" value="/target/classes"/>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/nekohtml/nekohtml/0.9.5/nekohtml-0.9.5.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/hibernate-core/3.3.0.CR1/hibernate-core-3.3.0.CR1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/oro/oro/2.0.8/oro-2.0.8.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-fileupload/commons-fileupload/1.0/commons-fileupload-1.0.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/hibernate-validator/3.1.0.CR1/hibernate-validator-3.1.0.CR1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-collections/commons-collections/3.2/commons-collections-3.2.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/com/uwyn/jhighlight/1.0/jhighlight-1.0.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-codec/commons-codec/1.3/commons-codec-1.3.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/richfaces/framework/richfaces-impl/3.3.0-SNAPSHOT/richfaces-impl-3.3.0-SNAPSHOT.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/apache/myfaces/core/myfaces-impl/1.2.4/myfaces-impl-1.2.4.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/hibernate-commons-annotations/3.1.0.CR1/hibernate-commons-annotations-3.1.0.CR1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-discovery/commons-discovery/0.4/commons-discovery-0.4.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/apache/myfaces/core/myfaces-api/1.2.4/myfaces-api-1.2.4.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/richfaces/ui/richfaces-ui/3.3.0-SNAPSHOT/richfaces-ui-3.3.0-SNAPSHOT.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/apache/myfaces/tomahawk/tomahawk/1.1.6/tomahawk-1.1.6.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/slf4j/slf4j-simple/1.4.2/slf4j-simple-1.4.2.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/richfaces/framework/richfaces-api/3.3.0-SNAPSHOT/richfaces-api-3.3.0-SNAPSHOT.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/com/sun/facelets/jsf-facelets/1.1.14/jsf-facelets-1.1.14.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/javax/servlet/jstl/1.0/jstl-1.0.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-digester/commons-digester/1.8/commons-digester-1.8.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/javax/transaction/jta/1.1/jta-1.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-el/commons-el/1.0/commons-el-1.0.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-validator/commons-validator/1.3.1/commons-validator-1.3.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/java"/>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/resources"/>
+ </wb-module>
+</project-modules>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/test-applications/auto-jsp/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ trunk/test-applications/auto-jsp/.settings/org.eclipse.wst.common.project.facet.core.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,6 @@
+<faceted-project>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.web"/>
+ <installed facet="jst.web" version="2.5"/>
+ <installed facet="jst.java" version="5.0"/>
+</faceted-project>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/pom.xml
===================================================================
--- trunk/test-applications/auto-jsp/pom.xml (rev 0)
+++ trunk/test-applications/auto-jsp/pom.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,30 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>test-applications</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.3.0-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.test-applications</groupId>
+ <artifactId>auto-jsp</artifactId>
+ <packaging>war</packaging>
+ <name>RichFaces Test Application (AUTO-JSP)</name>
+ <build>
+ <finalName>auto-jsp</finalName>
+ </build>
+<dependencies>
+ <dependency>
+ <groupId>org.apache.myfaces.tomahawk</groupId>
+ <artifactId>tomahawk</artifactId>
+ <version>1.1.6</version>
+ <scope>runtime</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+</dependencies>
+</project>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/java/calendar/Bean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/calendar/Bean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/calendar/Bean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,29 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package calendar;
+/**
+ * @author $Autor$
+ *
+ */
+public class Bean {
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,806 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package calendar;
+
+import java.text.DateFormat;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.Locale;
+import java.util.StringTokenizer;
+import java.util.TimeZone;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ValueChangeEvent;
+
+import org.richfaces.component.html.HtmlCalendar;
+import org.richfaces.event.CurrentDateChangeEvent;
+
+import util.componentInfo.ComponentInfo;
+
+/**
+ * @author AYanul
+ *
+ */
+public class CalendarBean {
+
+ private static final String [] WEEK_DAY_SHORT = new String[] { "<i>Sun</i>",
+ "Mon +", "Tue +", "Wed +", "Thu +", "Fri +", "Sat*" };
+ private static final String [] WEEK_DAY = new String[] { "*Saturday", "+Monday+",
+ "+Tuesday+", "+Wednesday+", "+Thursday+", "+Friday+", "*Sunday*"};
+ private static final String [] MOUNT_LABELS = new String[] { "<i>January</i>",
+ "February+", "March+", "April+", "May +", "June +", "July +", "August +",
+ "September +", "October +", "November +", "December +" };
+ private static final String [] MOUNT_LABELS_SHORT = new String[] { "+Jan",
+ "+Feb+", "+Mar+", "+Apr+", "+May+", "+Jun+", "+Jul+", "+Aug+",
+ "+Sep+", "+Oct+", "+Nov+", "+Dec+" };
+ private Locale locale;
+ private TimeZone tZone;
+ private boolean popup;
+ private boolean readonly;
+ private boolean showInput;
+ private boolean enableManualInput;
+ private boolean ajaxSingle;
+ private boolean disabled;
+ private boolean bypassUpdates;
+ private boolean rendered;
+ private boolean required;
+ private Date currentDate;
+ private Date selectedDate;
+ private String headerFacet;
+ private String mode;
+ private String preloadDateRangeBegin;
+ private String preloadDateRangeEnd;
+ private String weekDay;
+ private String month;
+ private String pattern;
+ private String jointPoint;
+ private String direction;
+ private String boundary;
+ private int firstWeekDay;
+ private String icon;
+ 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;
+ private boolean limitToList;
+ private String inputSize;
+ private boolean showHeader;
+ private boolean showFooter;
+ private boolean resetTimeOnDateSelect;
+ private String defaultTime;
+ private boolean ignoreDupResponses;
+ private HtmlCalendar htmlCalendar = null;
+
+ public HtmlCalendar getHtmlCalendar() {
+ return htmlCalendar;
+ }
+
+
+ public void setHtmlCalendar(HtmlCalendar htmlCalendar) {
+ this.htmlCalendar = htmlCalendar;
+ }
+
+
+ /**
+ * @return the defaultTime
+ */
+ public String getDefaultTime() {
+ return defaultTime;
+ }
+
+
+ /**
+ * @param defaultTime the defaultTime to set
+ */
+ public void setDefaultTime(String defaultTime) {
+ this.defaultTime = defaultTime;
+ }
+
+
+ /**
+ * @return the showHeader
+ */
+ public boolean isShowHeader() {
+ return showHeader;
+ }
+
+
+ /**
+ * @param showHeader the showHeader to set
+ */
+ public void setShowHeader(boolean showHeader) {
+ this.showHeader = showHeader;
+ }
+
+
+ /**
+ * @return the showFooter
+ */
+ public boolean isShowFooter() {
+ return showFooter;
+ }
+
+
+ /**
+ * @param showFooter the showFooter to set
+ */
+ public void setShowFooter(boolean showFooter) {
+ this.showFooter = showFooter;
+ }
+
+
+ /**
+ * @return the resetTimeOnDateSelect
+ */
+ public boolean isResetTimeOnDateSelect() {
+ return resetTimeOnDateSelect;
+ }
+
+
+ /**
+ * @param resetTimeOnDateSelect the resetTimeOnDateSelect to set
+ */
+ public void setResetTimeOnDateSelect(boolean resetTimeOnDateSelect) {
+ this.resetTimeOnDateSelect = resetTimeOnDateSelect;
+ }
+
+
+ public CalendarBean() {
+ firstWeekDay = 1;
+ defaultTime = "7:30";
+ resetTimeOnDateSelect = false;
+ showFooter = true;
+ showHeader = true;
+ limitToList = false;
+ 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","");
+ popup = true;
+ pattern = "MMM d, yyyy";
+ jointPoint = "bottom-left";
+ direction = "bottom-right";
+ readonly = false;
+ enableManualInput = false;
+ showInput = true;
+ boundary = "inactive";
+ icon = null;
+ disabled = false;
+ bypassUpdates = false;
+ rendered = true;
+ zindex = 2;
+ toolTipMode = "none";
+ required = false;
+ weekDay = "long";
+ month = "none";
+ timeZone = "Eastern European Time";
+ preloadDateRangeBegin = "11.11.2007"; //d.m.y
+ preloadDateRangeEnd = "01.01.2008";
+ ignoreDupResponses = true;
+ }
+
+
+ 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;
+ }
+
+ public boolean getRenderedClient() {
+ if(mode.equalsIgnoreCase("client") && rendered) return true;
+ else return false;
+ }
+
+ public String getTimeZone() {
+ return timeZone;
+ }
+
+ public void setTimeZone(String timeZone) {
+ this.timeZone = timeZone;
+ }
+
+ public void changeIcons() {
+ if (icon != null) {
+ icon = null;
+ label = "Button label";
+ } else {
+ icon = "/pics/item.png";
+ label = null;
+ }
+ }
+
+ public Locale getLocale() {
+ return locale;
+ }
+
+ public void setLocale(Locale locale) {
+ this.locale = locale;
+ }
+
+ public boolean isPopup() {
+ return popup;
+ }
+
+ public void setPopup(boolean popup) {
+ this.popup = popup;
+ }
+
+ public String getPattern() {
+ return pattern;
+ }
+
+ public void setPattern(String pattern) {
+
+ this.pattern = pattern;
+ }
+
+ public void selectLocale(ValueChangeEvent event) {
+ String tLocale = (String) event.getNewValue();
+ if (tLocale != null) {
+ String lang = tLocale.substring(0, 2);
+ String country = tLocale.substring(3);
+ locale = new Locale(lang, country, "");
+ }
+ }
+
+ public Date getPrDateRangeBegin() {
+ Calendar cal = Calendar.getInstance();
+ StringTokenizer st = new StringTokenizer(preloadDateRangeBegin,".");
+ ArrayList<Integer> date = new ArrayList<Integer>();
+ while(st.hasMoreTokens()) {
+ date.add(Integer.parseInt(st.nextToken()));
+ }
+ cal.set(date.get(2), date.get(1) - 1, date.get(0), 12, 0, 0);
+ return cal.getTime();
+ }
+
+ public Date getPrDateRangeEnd() {
+ Calendar cal = Calendar.getInstance();
+ StringTokenizer st = new StringTokenizer(preloadDateRangeEnd, ".");
+ ArrayList<Integer> date = new ArrayList<Integer>();
+ while(st.hasMoreTokens()) {
+ date.add(Integer.parseInt(st.nextToken()));
+ }
+ cal.set(date.get(2), date.get(1) - 1, date.get(0), 12, 0, 0);
+ return cal.getTime();
+ }
+
+ public boolean isShowInput() {
+ return showInput;
+ }
+
+ public void setShowInput(boolean showInput) {
+ this.showInput = showInput;
+ }
+
+ public boolean isEnableManualInput() {
+ return enableManualInput;
+ }
+
+ public void setEnableManualInput(boolean enableManualInput) {
+ this.enableManualInput = enableManualInput;
+ }
+
+ public boolean isReadonly() {
+ return readonly;
+ }
+
+ public void setReadonly(boolean readonly) {
+ this.readonly = readonly;
+ }
+
+ public Object getWeekDayLabels() {
+ if(weekDay.equals("long"))
+ return CalendarBean.WEEK_DAY;
+ else return null;
+ }
+
+ public Object getWeekDayLabelsShort() {
+ if(weekDay.equals("short"))
+ return CalendarBean.WEEK_DAY_SHORT;
+ else return null;
+ }
+
+ public Object getMonthLabels() {
+ if(month.equals("long"))
+ return CalendarBean.MOUNT_LABELS;
+ else return null;
+ }
+
+ public Object getMonthLabelsShort() {
+ if(month.equals("short"))
+ return CalendarBean.MOUNT_LABELS_SHORT;
+ else return null;
+
+ }
+
+ public String getMonth() {
+ return month;
+ }
+
+ public void setMonth(String month) {
+ this.month = month;
+ }
+
+ public String getCurrentDateAsText() {
+ Date currentDate = getCurrentDate();
+ if (currentDate != null) {
+ return DateFormat.getDateInstance(DateFormat.FULL).format(
+ currentDate);
+ }
+
+ return null;
+ }
+
+ public Date getCurrentDate() {
+ return currentDate;
+ }
+
+ public void setCurrentDate(Date currentDate) {
+ this.currentDate = currentDate;
+ }
+
+ public Date getSelectedDate() {
+ return selectedDate;
+ }
+
+ public void setSelectedDate(Date selectedDate) {
+ this.selectedDate = selectedDate;
+ }
+
+ public String getJointPoint() {
+ return jointPoint;
+ }
+
+ public void setJointPoint(String jointPoint) {
+ this.jointPoint = jointPoint;
+ }
+
+
+ public String getDirection() {
+ return direction;
+ }
+
+ public void setDirection(String direction) {
+ this.direction = direction;
+ }
+
+ public String getBoundary() {
+ return boundary;
+ }
+
+ public void setBoundary(String boundary) {
+ this.boundary = boundary;
+ }
+
+ public void dcl(CurrentDateChangeEvent event) {
+ System.out.println(event.getCurrentDateString());
+ }
+
+ public void ddd(ValueChangeEvent event) {
+ System.out.println("=============inside valueChangeListener==========");
+ System.out.println(event.getOldValue());
+ System.out.println(event.getNewValue());
+
+ }
+
+ public int getCounter() {
+ return counter++;
+ }
+
+ public boolean isAjaxSingle() {
+ return ajaxSingle;
+ }
+
+ public void setAjaxSingle(boolean ajaxSingle) {
+ this.ajaxSingle = ajaxSingle;
+ }
+
+ public String getIcon() {
+ return icon;
+ }
+
+ public void setIcon(String icon) {
+ this.icon = icon;
+ }
+
+ public boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ public boolean isBypassUpdates() {
+ return bypassUpdates;
+ }
+
+ public void setBypassUpdates(boolean bypassUpdates) {
+ this.bypassUpdates = bypassUpdates;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getToolTipMode() {
+ return toolTipMode;
+ }
+
+ public void setToolTipMode(String toolTipMode) {
+ this.toolTipMode = toolTipMode;
+ }
+
+ public int getZindex() {
+ return zindex;
+ }
+
+ public void setZindex(int zindex) {
+ this.zindex = zindex;
+ }
+
+ public boolean isRequired() {
+ return required;
+ }
+
+ public void setRequired(boolean required) {
+ this.required = required;
+ }
+
+ public String getLabel() {
+ return label;
+ }
+
+ public void setLabel(String label) {
+ this.label = label;
+ }
+
+ public TimeZone getTmZone() {
+ TimeZone tZone = TimeZone.getDefault();
+ tZone.setID(timeZone);
+ return tZone;
+ }
+
+ public String getPreloadDateRangeBegin() {
+ return preloadDateRangeBegin;
+ }
+
+ public void setPreloadDateRangeBegin(String preloadDateRangeBegin) {
+ this.preloadDateRangeBegin = preloadDateRangeBegin;
+ }
+
+ public String getPreloadDateRangeEnd() {
+ return preloadDateRangeEnd;
+ }
+
+ public void setPreloadDateRangeEnd(String preloadDateRangeEnd) {
+ this.preloadDateRangeEnd = preloadDateRangeEnd;
+ }
+
+ public String getWeekDay() {
+ return weekDay;
+ }
+
+ public void setWeekDay(String weekDay) {
+ this.weekDay = weekDay;
+ }
+
+ public void setMode(String mode) {
+ this.mode = mode;
+ }
+
+ public String getMode() {
+ return mode;
+ }
+ public void bTest1() {
+ setCurrentDate(new Date());
+// setTimeZone();
+ setSelectedDate(new Date());
+ changeIcons();
+ setHeaderFacet("Test 1");
+ setLocale(new Locale("de","DE",""));
+ setDirection("bottom-left");
+ setEnableManualInput(false);
+ setDisabled(false);
+ setJointPoint("top-right");
+ setMonth("long");
+ setPattern("dd-MM-yyyy");
+ setPopup(true);
+ setPreloadDateRangeBegin("10.09.2007");
+ setPreloadDateRangeEnd("11.01.2008");
+ setReadonly(true);
+ setRequired(true);
+ setShowInput(false);
+ setToolTipMode("single");
+ setWeekDay("long");
+ setZindex(3);
+ }
+
+ public void bTest2() {
+// setCurrentDate(new Date());
+// setTimeZone();
+// setSelectedDate();
+ changeIcons();
+ setHeaderFacet("Test 2");
+ setLocale(new Locale("fr","FR",""));
+ setDirection("top-right");
+ setEnableManualInput(true);
+ setDisabled(false);
+ setJointPoint("bottom-left");
+ setMonth("none");
+ setPattern("dd.MM.yyyy");
+ setPopup(true);
+ setPreloadDateRangeBegin("10.09.2007");
+ setPreloadDateRangeEnd("12.01.2008");
+ setReadonly(true);
+ setRequired(true);
+ setShowInput(false);
+ setToolTipMode("single");
+ setWeekDay("none");
+ setZindex(3);
+ }
+
+ public void bTest3() {
+// setCurrentDate(new Date());
+// setTimeZone();
+// setSelectedDate();
+ changeIcons();
+ setHeaderFacet("Test 3");
+ setLocale(new Locale("ru","RU",""));
+ setDirection("bottom-left");
+ setEnableManualInput(false);
+ setDisabled(false);
+ setJointPoint("top-right");
+ setMonth("long");
+ setPattern("dd-MM-yyyy");
+ setPopup(false);
+ setPreloadDateRangeBegin("10.09.2007");
+ setPreloadDateRangeEnd("11.01.2008");
+ setReadonly(false);
+ setRequired(false);
+ setShowInput(false);
+ setToolTipMode("single");
+ setWeekDay("long");
+ setZindex(3);
+ }
+
+ public void bTest4() {
+// setCurrentDate(new Date());
+// setTimeZone();
+// setSelectedDate();
+ changeIcons();
+ setHeaderFacet("Test 4");
+ setLocale(new Locale("de","DE",""));
+ setDirection("bottom-left");
+ setEnableManualInput(false);
+ setDisabled(true);
+ setJointPoint("top-right");
+ setMonth("long");
+ setPattern("dd-MM-yyyy");
+ setPopup(false);
+ setPreloadDateRangeBegin("10.09.2007");
+ setPreloadDateRangeEnd("11.01.2008");
+ setReadonly(false);
+ setRequired(false);
+ setShowInput(false);
+ setToolTipMode("single");
+ setWeekDay("none");
+ setZindex(3);
+ }
+
+ public void bTest5() {
+// setCurrentDate(new Date());
+// setTimeZone();
+// setSelectedDate();
+ changeIcons();
+ setHeaderFacet("Test 5");
+ setLocale(new Locale("de","DE",""));
+ setDirection("bottom-right");
+ setEnableManualInput(false);
+ setDisabled(false);
+ setJointPoint("bottom-left");
+ setMonth("none");
+ setPattern("d/M/yy");
+ setPopup(true);
+ setPreloadDateRangeBegin("09.09.2007");
+ setPreloadDateRangeEnd("10.01.2008");
+ setReadonly(false);
+ setRequired(true);
+ setShowInput(true);
+ setToolTipMode("none");
+ setWeekDay("short");
+ setZindex(1);
+ }
+
+ public String getHeaderFacet() {
+ return headerFacet;
+ }
+
+ public void setHeaderFacet(String headerFacet) {
+ this.headerFacet = headerFacet;
+ }
+
+
+ public boolean isLimitToList() {
+ return limitToList;
+ }
+
+
+ public void setLimitToList(boolean limitToList) {
+ this.limitToList = limitToList;
+ }
+
+ public String getInputSize() {
+ return inputSize;
+ }
+
+
+ public void setInputSize(String inputSize) {
+ this.inputSize = inputSize;
+ }
+
+
+ /**
+ * @return the firstWeekDay
+ */
+ public int getFirstWeekDay() {
+ return firstWeekDay;
+ }
+
+
+ /**
+ * @param firstWeekDay the firstWeekDay to set
+ */
+ public void setFirstWeekDay(int firstWeekDay) {
+ this.firstWeekDay = firstWeekDay;
+ }
+
+ public void addHtmlCalendar(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlCalendar);
+ }
+
+
+ public boolean isIgnoreDupResponses() {
+ return ignoreDupResponses;
+ }
+
+
+ public void setIgnoreDupResponses(boolean ignoreDupResponses) {
+ this.ignoreDupResponses = ignoreDupResponses;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarDataModelImpl.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarDataModelImpl.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarDataModelImpl.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,102 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package calendar;
+
+import java.text.DateFormat;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Locale;
+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;
+
+/**
+ * @author Nick Belaevski - mailto:nbelaevski@exadel.com
+ * created 30.06.2007
+ *
+ */
+public class CalendarDataModelImpl implements CalendarDataModel {
+
+ /* (non-Javadoc)
+ * @see org.richfaces.component.CalendarDataModel#getData(java.util.Date[])
+ */
+ public CalendarDataModelItem[] getData(Date[] dateArray) {
+ if (dateArray == null) {
+ return null;
+ }
+
+ CalendarDataModelItem[] items = new CalendarDataModelItem[dateArray.length];
+ for (int i = 0; i < dateArray.length; i++) {
+ items[i] = createDataModelItem(dateArray[i]);
+ }
+
+ return items;
+ }
+
+ protected CalendarDataModelItem createDataModelItem(Date date) {
+ CalendarDataModelItemImpl item = new CalendarDataModelItemImpl();
+ Map data = new HashMap();
+ DateFormat enFormatter = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.ENGLISH);
+ DateFormat frFormatter = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.FRENCH);
+ DateFormat deFormatter = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.GERMAN);
+ data.put("enLabel", enFormatter.format(date));
+ data.put("frLabel", frFormatter.format(date));
+ data.put("deLabel", deFormatter.format(date));
+ /*Calendar c = Calendar.getInstance();
+ c.setTime(date);
+ item.setDay(c.get(Calendar.DAY_OF_MONTH));*/
+
+// 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;
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.component.CalendarDataModel#getToolTip(java.util.Date)
+ */
+ public Object getToolTip(Date date) {
+
+ return null;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarDataModelItemImpl.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarDataModelItemImpl.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarDataModelItemImpl.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,105 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package calendar;
+
+import org.richfaces.model.CalendarDataModelItem;
+
+/**
+ * @author Nick Belaevski - mailto:nbelaevski@exadel.com
+ * created 04.07.2007
+ *
+ */
+public class CalendarDataModelItemImpl implements CalendarDataModelItem {
+
+ private Object data;
+ private String styleClass;
+ private Object toolTip;
+ private boolean enabled = true;
+
+
+ /* (non-Javadoc)
+ * @see org.richfaces.component.CalendarDataModelItem#getData()
+ */
+ public Object getData() {
+ return data;
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.component.CalendarDataModelItem#getStyleClass()
+ */
+ public String getStyleClass() {
+ return styleClass;
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.component.CalendarDataModelItem#getToolTip()
+ */
+ public Object getToolTip() {
+ return toolTip;
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.component.CalendarDataModelItem#hasToolTip()
+ */
+ public boolean hasToolTip() {
+ return getToolTip() != null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.component.CalendarDataModelItem#isEnabled()
+ */
+ public boolean isEnabled() {
+ return enabled;
+ }
+
+ /**
+ * @param data the data to set
+ */
+ public void setData(Object data) {
+ this.data = data;
+ }
+
+ /**
+ * @param styleClass the styleClass to set
+ */
+ public void setStyleClass(String styleClass) {
+ this.styleClass = styleClass;
+ }
+
+ /**
+ * @param toolTip the toolTip to set
+ */
+ public void setToolTip(Object toolTip) {
+ this.toolTip = toolTip;
+ }
+
+ /**
+ * @param enabled the enabled to set
+ */
+ public void setEnabled(boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ public int getDay() {
+ return 0;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarValidator.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarValidator.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/calendar/CalendarValidator.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,40 @@
+/**
+ *
+ */
+package calendar;
+
+import java.util.Calendar;
+import java.util.Date;
+
+import javax.faces.application.FacesMessage;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.validator.Validator;
+import javax.faces.validator.ValidatorException;
+
+/**
+ * @author Nick Belaevski
+ * mailto:nbelaevski@exadel.com
+ * created 21.07.2007
+ *
+ */
+public class CalendarValidator implements Validator {
+
+ /* (non-Javadoc)
+ * @see javax.faces.validator.Validator#validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)
+ */
+ public void validate(FacesContext context, UIComponent component,
+ Object value) throws ValidatorException {
+
+ Date date = (Date) value;
+ if (date != null) {
+ Calendar calendar = Calendar.getInstance();
+ calendar.setTime(date);
+ int d = calendar.get(Calendar.DATE);
+ if (d == 13 || d == 17) {
+ throw new ValidatorException(new FacesMessage("Test validator: 13th and 17th dates are restricted!"));
+ }
+ }
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/columns/Columns.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/columns/Columns.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/columns/Columns.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,258 @@
+package columns;
+
+import java.util.ArrayList;
+import java.util.Comparator;
+
+import javax.faces.context.FacesContext;
+
+import org.richfaces.model.Ordering;
+import org.richfaces.renderkit.html.images.GradientType;
+
+import util.data.Data;
+
+public class Columns implements Comparator{
+ private String[] statusIcon = { "/pics/error.gif", "/pics/fatal.gif",
+ "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif" };
+ private ArrayList<Data> data1;
+ private ArrayList<Data> data2;
+ private int length1;
+ private int length2;
+ private String columns;
+ private int begin;
+ private int end;
+ private String width;
+ private String title;
+ private Ordering[] orderings = new Ordering[100];
+ private int colspan;
+ private int rowspan;
+ private boolean breakBefore;
+ private boolean sortable;
+ private boolean dataTableRendered;
+ private boolean selfSorted;
+ private String[] filterValue;
+ private String filterInput;
+ private String filterEvent;
+ private String text;
+
+ public String getText() {
+ return text;
+ }
+
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ public String getFilterEvent() {
+ return filterEvent;
+ }
+
+ public void setFilterEvent(String filterEvent) {
+ this.filterEvent = filterEvent;
+ }
+
+ public String getFilterInput() {
+ return filterInput;
+ }
+
+ public void setFilterInput(String filterInput) {
+ this.filterInput = filterInput;
+ }
+
+ public String[] getFilterValue() {
+ return filterValue;
+ }
+
+ public void setFilterValue(String[] filterValue) {
+ this.filterValue = filterValue;
+ }
+
+ public boolean isSelfSorted() {
+ return selfSorted;
+ }
+
+ public void setSelfSorted(boolean selfSorted) {
+ this.selfSorted = selfSorted;
+ }
+
+ public Columns() {
+ this.columns = "3";
+ this.begin = 0;
+ this.end = 10;
+ this.width = "100";
+ this.title = "Title columns";
+ filterInput = "";
+ this.colspan = 1;
+ this.rowspan = 1;
+ this.breakBefore = false;
+ this.sortable = true;
+ this.dataTableRendered = true;
+ this.selfSorted = true;
+ this.length1 = 5;
+ this.length2 = 5;
+ this.data1 = new ArrayList<Data>();
+ this.data2 = new ArrayList<Data>();
+ this.filterValue = new String[length2];
+ this.filterEvent = "onchange";
+ this.text = " locale: " + FacesContext.getCurrentInstance().getViewRoot().getLocale();
+ for (int i = 0; i < length1; i++) {
+ data1.add(new Data(i, "data 1 [" + i + "]", "Button " + i, "Link " + i, "select" + (i % 5)));
+ data2.add(new Data(i, "data 2 [" + i + "]", "Button " + i, "Link " + i, statusIcon[i % 5]));
+ }
+ }
+
+ public boolean filterMethod(Object obj) {
+ Data d = (Data)obj;
+ if(d.getStr0().startsWith(filterInput)) return true;
+ return false;
+ }
+
+ public String getColumns() {
+ return columns;
+ }
+
+ public void setColumns(String columns) {
+ this.columns = columns;
+ }
+
+ public int getBegin() {
+ return begin;
+ }
+
+ public void setBegin(int begin) {
+ this.begin = begin;
+ }
+
+ public int getEnd() {
+ return end;
+ }
+
+ public void setEnd(int end) {
+ this.end = end;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public int getColspan() {
+ return colspan;
+ }
+
+ public void setColspan(int colspan) {
+ this.colspan = colspan;
+ }
+
+ public int getRowspan() {
+ return rowspan;
+ }
+
+ public void setRowspan(int rowspan) {
+ this.rowspan = rowspan;
+ }
+
+ public boolean isBreakBefore() {
+ return breakBefore;
+ }
+
+ public void setBreakBefore(boolean breakBefore) {
+ this.breakBefore = breakBefore;
+ }
+
+ public boolean isSortable() {
+ return sortable;
+ }
+
+ public void setSortable(boolean sortable) {
+ this.sortable = sortable;
+ }
+
+ public void addNewItem1() {
+ if (length1 < 0)
+ length1 = 0;
+ if (data1.size() > length1)
+ for (int i = length1; i < data1.size();)
+ data1.remove(i);
+ else
+ for (int i = data1.size() + 1; i <= length1; i++)
+ data1.add(new Data(i, "data 1 [" + i + "]", "Button " + i, "Link " + i, "select" + (i % 5)));
+ }
+
+ public void addNewItem2() {
+ if (length2 < 0)
+ length2 = 0;
+ if (data2.size() > length2)
+ for (int i = length2; i < data2.size();)
+ data2.remove(i);
+ else
+ for (int i = data1.size() + 1; i <= length2; i++)
+ data2.add(new Data(i, "data 1 [" + i + "]", "Button " + i, "Link " + i, "select" + (i % 5)));
+ }
+
+ public ArrayList<Data> getData2() {
+ return data2;
+ }
+
+ public void setData2(ArrayList<Data> data2) {
+ this.data2 = data2;
+ }
+
+ public ArrayList<Data> getData1() {
+ return data1;
+ }
+
+ public void setData1(ArrayList<Data> data1) {
+ this.data1 = data1;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public int getLength1() {
+ return length1;
+ }
+
+ public void setLength1(int length1) {
+ this.length1 = length1;
+ }
+
+ public int getLength2() {
+ return length2;
+ }
+
+ public void setLength2(int length2) {
+ this.length2 = length2;
+ }
+
+ public boolean isDataTableRendered() {
+ return dataTableRendered;
+ }
+
+ public void setDataTableRendered(boolean dataTableRendered) {
+ this.dataTableRendered = dataTableRendered;
+ }
+
+ public Ordering[] getOrderings() {
+ return orderings;
+ }
+
+ public void setOrderings(Ordering[] orderings) {
+ this.orderings = orderings;
+ }
+
+ public int compare(Object arg0, Object arg1) {
+ System.out.println("=====columns comparator work=====");
+ Data data1 = (Data)arg0;
+ Data data2 = (Data)arg1;
+ return data1.getStr0().compareTo(data2.getStr0());
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/combobox/Combobox.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/combobox/Combobox.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/combobox/Combobox.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,279 @@
+package combobox;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+import org.richfaces.component.html.HtmlComboBox;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+import javax.faces.event.ValueChangeEvent;
+import javax.faces.model.SelectItem;
+
+import util.componentInfo.ComponentInfo;
+import util.data.Data;
+
+public class Combobox {
+ public boolean disabled;
+ public String defaultLabel;
+ public boolean filterNewValues;
+ public String hideDelay;
+ public boolean directInputSuggestions;
+ public boolean immediate;
+ public int inputSize;
+ public String width;
+ public Data value;
+ public int tabindex;
+ public List<Data> suggestionValues;
+ public int size;
+ public String showDelay;
+ public boolean required;
+ public String requiredMessage;
+ public boolean rendered;
+ public boolean selectFirstOnUpdate;
+ public boolean enableManualInput;
+ public String listHeight;
+ public String listWidth;
+ public ArrayList<SelectItem> selectItem;
+ private HtmlComboBox htmlComboBox = null;
+ private String bindLabel;
+ private String align;
+
+
+ public Combobox() {
+ this.disabled = false;
+ this.defaultLabel = "defaultLabel";
+ this.filterNewValues = false;
+ this.hideDelay = "100";
+ this.directInputSuggestions = true;
+ this.immediate = false;
+ this.inputSize = 4;
+ this.width = "300";
+ this.value = new Data("default",0);
+ this.tabindex = 2;
+ this.showDelay = "200";
+ this.required = false;
+ this.requiredMessage = "requiredMessage";
+ this.rendered = true;
+ this.selectFirstOnUpdate = true;
+ this.enableManualInput = true;
+ this.listHeight = "400";
+ this.listWidth = "350";
+ this.suggestionValues = new ArrayList<Data>();
+ this.selectItem = new ArrayList<SelectItem>();
+ this.bindLabel = "Click Binding";
+ this.align = "left";
+ Random r = new Random();
+ for(int i = 0; i < 10; i++){
+ suggestionValues.add(new Data("selectItem", i));
+ selectItem.add(new SelectItem("selectItem"));
+ System.out.println(selectItem.get(i).getValue().toString());
+ }
+ }
+
+ public ArrayList<SelectItem> getSelectItem() {
+ return selectItem;
+ }
+
+ public void setSelectItem(ArrayList<SelectItem> selectItem) {
+ this.selectItem = selectItem;
+ }
+
+ public void valueChangeListener(ValueChangeEvent event) {
+ System.out.println(event.getNewValue());
+ }
+
+ public boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ public String getDefaultLabel() {
+ return defaultLabel;
+ }
+
+ public void setDefaultLabel(String defaultLabel) {
+ this.defaultLabel = defaultLabel;
+ }
+
+ public String getHideDelay() {
+ return hideDelay;
+ }
+
+ public void setHideDelay(String hideDelay) {
+ this.hideDelay = hideDelay;
+ }
+
+ public boolean isDirectInputSuggestions() {
+ return directInputSuggestions;
+ }
+
+ public void setDirectInputSuggestions(boolean directInputSuggestions) {
+ this.directInputSuggestions = directInputSuggestions;
+ }
+
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+ public int getInputSize() {
+ return inputSize;
+ }
+
+ public void setInputSize(int inputSize) {
+ this.inputSize = inputSize;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public Data getValue() {
+ return value;
+ }
+
+ public void setValue(Data value) {
+ this.value = value;
+ }
+
+ public int getTabindex() {
+ return tabindex;
+ }
+
+ public void setTabindex(int tabindex) {
+ this.tabindex = tabindex;
+ }
+
+ public List<Data> getSuggestionValues() {
+ return suggestionValues;
+ }
+
+ public void setSuggestionValues(List<Data> suggestionValues) {
+ this.suggestionValues = suggestionValues;
+ }
+
+ public int getSize() {
+ return size;
+ }
+
+ public void setSize(int size) {
+ this.size = size;
+ }
+
+ public boolean isFilterNewValues() {
+ return filterNewValues;
+ }
+
+ public void setFilterNewValues(boolean filterNewValues) {
+ this.filterNewValues = filterNewValues;
+ }
+
+ public String getShowDelay() {
+ return showDelay;
+ }
+
+ public void setShowDelay(String showDelay) {
+ this.showDelay = showDelay;
+ }
+
+ public boolean isRequired() {
+ return required;
+ }
+
+ public void setRequired(boolean required) {
+ this.required = required;
+ }
+
+ public String getRequiredMessage() {
+ return requiredMessage;
+ }
+
+ public void setRequiredMessage(String requiredMessage) {
+ this.requiredMessage = requiredMessage;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public boolean isSelectFirstOnUpdate() {
+ return selectFirstOnUpdate;
+ }
+
+ public void setSelectFirstOnUpdate(boolean selectFirstOnUpdate) {
+ this.selectFirstOnUpdate = selectFirstOnUpdate;
+ }
+
+ public boolean isEnableManualInput() {
+ return enableManualInput;
+ }
+
+ public void setEnableManualInput(boolean enableManualInput) {
+ this.enableManualInput = enableManualInput;
+ }
+
+ public String getListHeight() {
+ return listHeight;
+ }
+
+ public void setListHeight(String listHeight) {
+ this.listHeight = listHeight;
+ }
+
+ public String getListWidth() {
+ return listWidth;
+ }
+
+ public void setListWidth(String listWidth) {
+ this.listWidth = listWidth;
+ }
+
+ public HtmlComboBox getHtmlComboBox() {
+ return htmlComboBox;
+ }
+
+ public void setHtmlComboBox(HtmlComboBox htmlComboBox) {
+ this.htmlComboBox = htmlComboBox;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = htmlComboBox.getClientId(context);
+ }
+
+ public String getAlign() {
+ return align;
+ }
+
+ public void setAlign(String align) {
+ this.align = align;
+ }
+
+ public void addHtmlCombobox(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlComboBox);
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/componentControl/ComponentControl.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/componentControl/ComponentControl.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/componentControl/ComponentControl.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,31 @@
+package componentControl;
+
+import org.richfaces.component.html.HtmlComponentControl;
+
+import util.componentInfo.ComponentInfo;
+
+public class ComponentControl {
+ private boolean calendarPopup;
+ private HtmlComponentControl htmlComponentControl = null;
+
+
+ public HtmlComponentControl getHtmlComponentControl() {
+ return htmlComponentControl;
+ }
+
+ public void setHtmlComponentControl(HtmlComponentControl htmlComponentControl) {
+ this.htmlComponentControl = htmlComponentControl;
+ }
+
+ public ComponentControl() {
+ calendarPopup = false;
+ }
+
+ public boolean isCalendarPopup() {
+ return calendarPopup;
+ }
+
+ public void setCalendarPopup(boolean calendarPopup) {
+ this.calendarPopup = calendarPopup;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/contextMenu/ContextMenu.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/contextMenu/ContextMenu.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/contextMenu/ContextMenu.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,162 @@
+package contextMenu;
+
+import java.util.Map;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.UIContextMenu;
+import org.richfaces.component.html.HtmlCalendar;
+
+import rich.RichBean;
+import util.componentInfo.ComponentInfo;
+
+public class ContextMenu {
+ private String info;
+ private String inputText;
+ private String submitMode;
+ private String event;
+ private String popupWidth;
+ private String selectOneMenu;
+ private int hideDelay;
+ private int showDelay;
+ private boolean disableDefaultMenu;
+ private boolean rendered;
+ private boolean disamble;
+ private boolean attached;
+ private org.richfaces.component.html.ContextMenu htmlContextMenu = null;
+
+ public org.richfaces.component.html.ContextMenu getHtmlContextMenu() {
+ return htmlContextMenu;
+ }
+
+ public void setHtmlContextMenu(org.richfaces.component.html.ContextMenu htmlContextMenu) {
+ this.htmlContextMenu = htmlContextMenu;
+ }
+
+ public void addHtmlContextMenu(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlContextMenu);
+ }
+
+ public boolean isAttached() {
+ return attached;
+ }
+
+ public void setAttached(boolean attached) {
+ this.attached = attached;
+ }
+
+ public String getInfo() {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ Map params = facesContext.getExternalContext().getRequestParameterMap();
+ String cmdParam = (String) params.get("cmdParam");
+ if (cmdParam != null) info = cmdParam;
+ System.out.println(info);
+ return info;
+ }
+
+ public void actionListener(ActionEvent event) {
+ setInfo("actionListener");
+ }
+
+ public void setInfo(String info) {
+ System.out.println("Info: " + info);
+ this.info = info;
+ }
+
+ public ContextMenu() {
+ this.selectOneMenu = "item1";
+ this.inputText = "inputText";
+ this.submitMode = "none";
+ this.event = "oncontextmenu";
+ this.popupWidth = "300px";
+ this.hideDelay = 3;
+ this.showDelay = 3;
+ this.disableDefaultMenu = true;
+ this.rendered = true;
+ this.disamble = false;
+ this.attached = true;
+ this.info = "";
+ }
+
+ public boolean isDisamble() {
+ return disamble;
+ }
+
+ public void setDisamble(boolean disamble) {
+ this.disamble = disamble;
+ }
+
+ public String getEvent() {
+ return event;
+ }
+
+ public void setEvent(String event) {
+ this.event = event;
+ }
+
+ public String getSubmitMode() {
+ return submitMode;
+ }
+
+ public void setSubmitMode(String submitMode) {
+ this.submitMode = submitMode;
+ }
+
+ public boolean isDisableDefaultMenu() {
+ return disableDefaultMenu;
+ }
+
+ public void setDisableDefaultMenu(boolean disableDefaultMenu) {
+ this.disableDefaultMenu = disableDefaultMenu;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getPopupWidth() {
+ return popupWidth;
+ }
+
+ public void setPopupWidth(String popupWidth) {
+ this.popupWidth = popupWidth;
+ }
+
+ public int getHideDelay() {
+ return hideDelay;
+ }
+
+ public void setHideDelay(int hideDelay) {
+ this.hideDelay = hideDelay;
+ }
+
+ public int getShowDelay() {
+ return showDelay;
+ }
+
+ public void setShowDelay(int showDelay) {
+ this.showDelay = showDelay;
+ }
+
+ public String getInputText() {
+ return inputText;
+ }
+
+ public void setInputText(String inputText) {
+ this.inputText = inputText;
+ }
+
+ public String getSelectOneMenu() {
+ return selectOneMenu;
+ }
+
+ public void setSelectOneMenu(String selectOneMenu) {
+ this.selectOneMenu = selectOneMenu;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/custom/Custom.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/custom/Custom.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/custom/Custom.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,182 @@
+package custom;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.model.SelectItem;
+
+public class Custom {
+
+ private int index;
+ private boolean b0;
+ private boolean b1;
+ private boolean b2;
+ private String s0;
+ private String s1;
+ private String s2;
+ private int i0;
+ private int i1;
+ private int i2;
+ private List<String> results;
+ private ArrayList<SelectItem> itemsList;
+
+ public List<String> getResults() {
+ return results;
+ }
+
+ public void setResults(List<String> results) {
+ System.out.println("PickListBean.setResults()");
+ System.out.println(results.size());
+ this.results = results;
+ }
+
+ public Custom() {
+ this.index = 0;
+ this.b0 = true;
+ this.b1 = true;
+ this.b2 = true;
+ this.s0 = "s0";
+ this.s1 = "s1";
+ this.s2 = "s2";
+ this.i0 = 0;
+ this.i1 = 1;
+ this.i2 = 2;
+ results = new ArrayList();
+ itemsList = new ArrayList();
+
+ for(int i=0;i<10;i++){
+ itemsList.add(new SelectItem("item #" + i));
+ }
+ }
+
+ public Custom(int index) {
+ this.index = index;
+ this.b0 = true;
+ this.b1 = true;
+ this.b2 = true;
+ this.s0 = "s0";
+ this.s1 = "s1";
+ this.s2 = "s2";
+ this.i0 = 0;
+ this.i1 = 1;
+ this.i2 = 2;
+ }
+
+ public Custom(String s0, int i0) {
+ this.s0 = s0;
+ this.i0 = i0;
+ this.index = index;
+ this.b0 = true;
+ this.b1 = true;
+ this.b2 = true;
+ this.s1 = "s1";
+ this.s2 = "s2";
+ this.i1 = 1;
+ this.i2 = 2;
+ }
+
+ public Custom(int index, boolean b0, boolean b1, boolean b2, String s0, String s1,
+ String s2, int i0, int i1, int i2) {
+ this.index = index;
+ this.b0 = b0;
+ this.b1 = b1;
+ this.b2 = b2;
+ this.s0 = s0;
+ this.s1 = s1;
+ this.s2 = s2;
+ this.i0 = i0;
+ this.i1 = i1;
+ this.i2 = i2;
+ }
+
+
+
+ public boolean isB0() {
+ return b0;
+ }
+
+ public void setB0(boolean b0) {
+ this.b0 = b0;
+ }
+
+ public boolean isB1() {
+ return b1;
+ }
+
+ public void setB1(boolean b1) {
+ this.b1 = b1;
+ }
+
+ public boolean isB2() {
+ return b2;
+ }
+
+ public void setB2(boolean b2) {
+ this.b2 = b2;
+ }
+
+ public String getS0() {
+ return s0;
+ }
+
+ public void setS0(String s0) {
+ this.s0 = s0;
+ }
+
+ public String getS1() {
+ return s1;
+ }
+
+ public void setS1(String s1) {
+ this.s1 = s1;
+ }
+
+ public String getS2() {
+ return s2;
+ }
+
+ public void setS2(String s2) {
+ this.s2 = s2;
+ }
+
+ public int getI0() {
+ return i0;
+ }
+
+ public void setI0(int i0) {
+ this.i0 = i0;
+ }
+
+ public int getI1() {
+ return i1;
+ }
+
+ public void setI1(int i1) {
+ this.i1 = i1;
+ }
+
+ public int getI2() {
+ return i2;
+ }
+
+ public void setI2(int i2) {
+ this.i2 = i2;
+ }
+
+ public int getIndex() {
+ return index;
+ }
+
+ public void setIndex(int index) {
+ this.index = index;
+ }
+
+ public ArrayList<SelectItem> getItemsList() {
+ return itemsList;
+ }
+
+ public void setItemsList(ArrayList<SelectItem> itemsList) {
+ this.itemsList = itemsList;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/custom/CustomList.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/custom/CustomList.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/custom/CustomList.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,73 @@
+package custom;
+
+import java.util.ArrayList;
+
+import javax.faces.event.ActionEvent;
+
+public class CustomList {
+ private ArrayList<Custom> customList;
+ private ArrayList<Custom> carsList;
+ private int listSize;
+ private int carsSize;
+
+ public CustomList() {
+ listSize = 12;
+ customList = new ArrayList<Custom>();
+
+ for(int i = 0; i < listSize; i++) {
+ customList.add(new Custom(i));
+ }
+ }
+
+ public void cars(ActionEvent e) {
+ carsList = new ArrayList<Custom>();
+ carsSize = 5;
+
+ carsList.add(new Custom("Ford Fiesta",0));
+ carsList.add(new Custom("Ford Mustang",0));
+ carsList.add(new Custom("Ford Ka",0));
+ carsList.add(new Custom("Ford Mondeo",0));
+ carsList.add(new Custom("Ford Focus",0));
+
+ }
+
+ public void resizeList(int elements){
+ customList.clear();
+ for(int i = 0; i < elements; i++){
+ customList.add(new Custom(i));
+ }
+ }
+
+ public int getListSize() {
+ return listSize;
+ }
+
+ public void setListSize(int listSize) {
+ this.listSize = listSize;
+ }
+
+ public ArrayList<Custom> getCustomList() {
+ return customList;
+ }
+
+ public void setCustomList(ArrayList<Custom> testList) {
+ this.customList = testList;
+ }
+
+ public ArrayList<Custom> getCarsList() {
+ return carsList;
+ }
+
+ public void setCarsList(ArrayList<Custom> carsList) {
+ this.carsList = carsList;
+ }
+
+ public int getCarsSize() {
+ return carsSize;
+ }
+
+ public void setCarsSize(int carsSize) {
+ this.carsSize = carsSize;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/custom/UserBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/custom/UserBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/custom/UserBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,21 @@
+package custom;
+
+public class UserBean {
+ private String name;
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name
+ * the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/dataDefinitionList/DataDefinitionList.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dataDefinitionList/DataDefinitionList.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dataDefinitionList/DataDefinitionList.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,102 @@
+package dataDefinitionList;
+
+import java.util.ArrayList;
+
+import org.richfaces.component.html.HtmlDataDefinitionList;
+
+import util.componentInfo.ComponentInfo;
+import util.data.Data;
+
+public class DataDefinitionList
+{
+ private ArrayList<Data> arr;
+ private int first;
+ private int rows;
+ private boolean rendered;
+ private String title;
+ private String dir;
+ private int mSize;
+ private HtmlDataDefinitionList htmlDataDefinitionList = null;
+
+ public HtmlDataDefinitionList getHtmlDataDefinitionList() {
+ return htmlDataDefinitionList;
+ }
+
+ public void setHtmlDataDefinitionList(HtmlDataDefinitionList htmlDataDefinitionList){
+ this.htmlDataDefinitionList = htmlDataDefinitionList;
+ }
+
+ public void addHtmlDataDefinitionList(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlDataDefinitionList);
+ }
+
+ public String getDir() {
+ return dir;
+ }
+
+ public void setDir(String dir) {
+ this.dir = dir;
+ }
+
+ public int getMSize() {
+ return mSize;
+ }
+
+ public void setMSize(int size) {
+ mSize = size;
+ }
+
+ public void setArr(ArrayList<Data> arr) {
+ this.arr = arr;
+ }
+
+ public DataDefinitionList(){
+ arr = new ArrayList<Data>();
+ dir ="LTR";
+ rows = 20;
+ rows = 0;
+ first = 0;
+ rendered = true;
+ title = "title";
+ for(int i = 1; i < Data.cityAfrica.length; i++)
+ arr.add(new Data(Data.cityAfrica[i]));
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public int getRows() {
+ return rows;
+ }
+
+ public void setRows(int rows) {
+ this.rows = rows;
+ }
+
+ public ArrayList<Data> getArr() {
+ return arr;
+ }
+
+}
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/java/dataGrid/Car.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dataGrid/Car.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dataGrid/Car.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,49 @@
+package dataGrid;
+
+public class Car {
+
+ private String make;
+ private String model;
+ private String mileage;
+ private String price;
+
+ public Car(String make, String model, String mileage, String price) {
+ this.make = make;
+ this.model = model;
+ this.mileage = mileage;
+ this.price = price;
+ }
+
+ public String getMake() {
+ return make;
+ }
+
+ public void setMake(String make) {
+ this.make = make;
+ }
+
+ public String getModel() {
+ return model;
+ }
+
+ public void setModel(String model) {
+ this.model = model;
+ }
+
+ public String getMileage() {
+ return mileage;
+ }
+
+ public void setMileage(String mileage) {
+ this.mileage = mileage;
+ }
+
+ public String getPrice() {
+ return price;
+ }
+
+ public void setPrice(String price) {
+ this.price = price;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/dataGrid/DataGrid.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dataGrid/DataGrid.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dataGrid/DataGrid.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,172 @@
+package dataGrid;
+import java.util.ArrayList;
+import java.util.List;
+import org.richfaces.component.html.HtmlDataGrid;
+
+
+import util.componentInfo.ComponentInfo;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+public class DataGrid {
+
+ public static final String[] carMake = {"Mersedes-Benz", "Audi", "BMW", "Ford", "Ferrari", "Jaguar", "Bently", "Rolls-Royse", "Bugatti", "Porshe"};
+ public static final String[] carModel = {"S65AMG", "RS4", "M6", "GT40", "550 Maranello", "XJ", "Brookland", "Phantom", "Veyron", "Carerra GT"};
+ public static final String[] carMileage = {"0 km", "0 km", "0 km", "0 km", "0 km", "123 km", "0 km", "250 km", "0 km", ""};
+ public static final String[] carPrice = {"125000 eur", "55000 eur", "75000 eur", "255000 eur", "246000 eur", "85000 usd", "430000 eur", "325000 eur", "1200000 eur", "750000 usd"};
+
+ public DataGrid() {
+ border = "2px";
+ dir = "LTR";
+ bindLabel = "not ready";
+ elements = "4";
+ first = "0";
+ columns = "2";
+ cellpadding = "1";
+ cellspacing = "1";
+ rendered = true;
+ width = "";
+
+ for(int i = 0; i < carMake.length; i++) {
+ Car car = new Car(carMake[i], carModel[i], carMileage[i], carPrice[i]);
+ allCars.add(car);
+ }
+ }
+
+ private List<Car> allCars = new ArrayList<Car>();
+ private HtmlDataGrid myDataGrid = null;
+ private String bindLabel;
+ private String elements;
+ private HtmlDataGrid htmlDataGrid = null;
+ private String border;
+ private String dir;
+ private String first;
+ private String columns;
+ private String cellpadding;
+ private String cellspacing;
+ private boolean rendered;
+ private String width;
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ 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 getColumns() {
+ return columns;
+ }
+
+ public void setColumns(String columns) {
+ this.columns = columns;
+ }
+
+ public String getFirst() {
+ return first;
+ }
+
+ public void setFirst(String first) {
+ this.first = first;
+ }
+
+ public void addHtmlDataGrid(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlDataGrid);
+ }
+
+ public String getElements() {
+ return elements;
+ }
+
+ public void setElements(String elements) {
+ this.elements = elements;
+ }
+
+ public String submit() {
+ return null;
+ }
+
+ public void submitAjax() {
+
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myDataGrid.getBaseClientId(context);
+ }
+
+ public List<Car> getAllCars() {
+ return allCars;
+ }
+
+ public void setAllCars(List<Car> allCars) {
+ this.allCars = allCars;
+ }
+
+ public HtmlDataGrid getMyDataGrid() {
+ return myDataGrid;
+ }
+
+ public void setMyDataGrid(HtmlDataGrid myDataGrid) {
+ this.myDataGrid = myDataGrid;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public HtmlDataGrid getHtmlDataGrid() {
+ return htmlDataGrid;
+ }
+
+ public void setHtmlDataGrid(HtmlDataGrid htmlDataGrid) {
+ this.htmlDataGrid = htmlDataGrid;
+ }
+
+ public String getBorder() {
+ return border;
+ }
+
+ public void setBorder(String border) {
+ this.border = border;
+ }
+
+ public String getDir() {
+ return dir;
+ }
+
+ public void setDir(String dir) {
+ this.dir = dir;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/dataOrderedList/DataOrderedList.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dataOrderedList/DataOrderedList.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dataOrderedList/DataOrderedList.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,124 @@
+package dataOrderedList;
+
+import java.util.ArrayList;
+
+import org.richfaces.component.html.HtmlDataOrderedList;
+
+import util.componentInfo.ComponentInfo;
+import util.data.Data;
+
+public class DataOrderedList
+{
+ private ArrayList<Data> arr;
+ private int first;
+ private int rows;
+ private boolean rendered;
+ private String title;
+ private String type;
+ private String dir;
+ private int mSize;
+ private ArrayList defaultArr;
+ private HtmlDataOrderedList htmlDataOrderedList = null;
+
+ public void addHtmlDataOrderedList(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlDataOrderedList);
+ }
+
+ public HtmlDataOrderedList getHtmlDataOrderedList() {
+ return htmlDataOrderedList;
+ }
+
+ public void setHtmlDataOrderedList(HtmlDataOrderedList htmlDataOrderedList){
+ this.htmlDataOrderedList = htmlDataOrderedList;
+ }
+
+ public String getDir() {
+ return dir;
+ }
+
+ public void setDir(String dir) {
+ this.dir = dir;
+ }
+
+ public int getMSize() {
+ return mSize;
+ }
+
+ public void setMSize(int size) {
+ mSize = size;
+ }
+
+ public void setArr(ArrayList<Data> arr) {
+ this.arr = arr;
+ }
+
+ public DataOrderedList(){
+ arr = new ArrayList<Data>();
+ defaultArr = new ArrayList<String>();
+ dir ="LTR";
+ rows = 20;
+ rows = 0;
+ first = 0;
+ rendered = true;
+ title = "title";
+ type = "1";
+ for(int i = 1; i < Data.cityAfrica.length; i++)
+ arr.add(new Data(Data.cityAfrica[i]));
+ for(int i = 0; i < 5; i++)
+ defaultArr.add("text_" + i);
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public int getRows() {
+ return rows;
+ }
+
+ public void setRows(int rows) {
+ this.rows = rows;
+ }
+
+ public ArrayList<Data> getArr() {
+ return arr;
+ }
+
+ public ArrayList getDefaultArr() {
+ return defaultArr;
+ }
+
+ public void setDefaultArr(ArrayList defaultArr) {
+ this.defaultArr = defaultArr;
+ }
+
+}
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/java/dataScroller/Data.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dataScroller/Data.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dataScroller/Data.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,59 @@
+package dataScroller;
+
+import java.util.Random;
+
+public class Data {
+
+ public String data0;
+ public int data1;
+ public String data2;
+ public String data3;
+
+
+ public Data(String data0, int data1) {
+ this.data0 = data0;
+ this.data1 = data1;
+ }
+
+ public Data(String data0, int data1, String data2, String data3) {
+ this(data0, data1);
+ this.data2 = data2;
+ this.data3 = data3;
+ }
+
+ public String getData0() {
+ return data0;
+ }
+
+ public void setData0(String data0) {
+ this.data0 = data0;
+ }
+
+ public int getData1() {
+ return data1;
+ }
+
+ public String getData2() {
+ return data2;
+ }
+
+ public void setData2(String data2) {
+ this.data2 = data2;
+ }
+
+ public String getData3() {
+ return data3;
+ }
+
+ public void setData3(String data3) {
+ this.data3 = data3;
+ }
+
+ public void setData1(int data1) {
+ this.data1 = data1;
+ }
+
+
+
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/dataScroller/DataScroller.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dataScroller/DataScroller.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dataScroller/DataScroller.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,358 @@
+package dataScroller;
+
+import java.util.ArrayList;
+import java.util.Random;
+
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.html.HtmlDatascroller;
+import org.richfaces.event.DataScrollerEvent;
+import org.richfaces.model.Ordering;
+
+import util.componentInfo.ComponentInfo;
+import util.data.Data;
+
+public class DataScroller {
+
+ private ArrayList dataTable;
+ public Data tD;
+ public String align;
+ public String fastControls;
+ public boolean render;
+ public boolean renderIfSinglePage;
+ public boolean limitToList;
+ public boolean renderTable;
+ public int maxPages;
+ private String action;
+ private String actionListener;
+ private boolean ajaxSingle = false;
+ private String boundaryControls = "auto";
+ private HtmlDatascroller htmlDatascroller= null;
+ private String fastStep = "0";
+ private String page = "10";
+ private Object value = null;
+ private String stepControls = "auto";
+ private String sortMode;
+ private boolean selfSorted;
+ private Ordering sortOrder;
+ private String filterValue;
+ private String currentSortOrder;
+
+ public HtmlDatascroller getHtmlDatascroller(){
+ return htmlDatascroller;
+ }
+
+ public void setHtmlDatascroller(HtmlDatascroller htmlDatascroller){
+ this.htmlDatascroller = htmlDatascroller;
+ }
+
+ public void addHtmlDatascroller(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlDatascroller);
+ }
+
+ public String getSortMode() {
+ return sortMode;
+ }
+
+ public void setSortMode(String sortMode) {
+ this.sortMode = sortMode;
+ }
+
+ public boolean isSelfSorted() {
+ return selfSorted;
+ }
+
+ public void setSelfSorted(boolean selfSorted) {
+ this.selfSorted = selfSorted;
+ }
+
+ public String getFilterValue() {
+ return filterValue;
+ }
+
+ public void setFilterValue(String filterValue) {
+ this.filterValue = filterValue;
+ }
+
+ public Ordering getSortOrder() {
+ return sortOrder;
+ }
+
+ public String getCurrentSortOrder() {
+ return currentSortOrder;
+ }
+
+ public String act() {
+ action = "action work!";
+ return null;
+ }
+
+ public String actListener(ActionEvent e) {
+ actionListener = "actionListener work!";
+ return null;
+ }
+
+ public String getAction() {
+ return action;
+ }
+
+ public String getActionListener() {
+ return actionListener;
+ }
+
+ public boolean isRenderTable() {
+ return renderTable;
+ }
+
+ public void setRenderTable(boolean renderTable) {
+ this.renderTable = renderTable;
+ }
+
+ public String getFastControls() {
+ return fastControls;
+ }
+
+ public void setFastControls(String fastControls) {
+ this.fastControls = fastControls;
+ }
+
+ public int getMaxPages() {
+ return maxPages;
+ }
+
+ public void setMaxPages(int maxPages) {
+ this.maxPages = maxPages;
+ }
+
+ public DataScroller() {
+ action = "---";
+ actionListener = "---";
+ fastControls = "auto";
+ render = true;
+ renderIfSinglePage = true;
+ align = "left";
+ maxPages = 20;
+ limitToList = false;
+
+ filterValue = "";
+ sortMode = "single";
+ sortOrder = Ordering.ASCENDING;
+ selfSorted = true;
+ currentSortOrder = "ASCENDING";
+ dataTable = new ArrayList();
+
+ for(int i=0;i<1000;i++)
+ {
+
+ dataTable.add(new Data(Data.Random(6),i));
+ }
+
+ }
+
+ public void setCurrentSortOrder(String currentSortOrder) {
+ if("DESCENDING".equals(currentSortOrder)) this.sortOrder = Ordering.DESCENDING;
+ else if("UNSORTED".equals(currentSortOrder)) this.sortOrder = Ordering.UNSORTED;
+ else if("ASCENDING".equals(currentSortOrder)) this.sortOrder = Ordering.ASCENDING;
+ this.currentSortOrder = currentSortOrder;
+ }
+
+ public void CutArray(){
+ int k = dataTable.size()-1;
+ for(int i = k ;i > (k+1)/2; i--)
+ {
+ dataTable.remove(i);
+ }
+ }
+
+ public void RestoreArray(){
+
+ int k = dataTable.size()-1;
+ for(int i = k;i < (k+1)*2;i++)
+ {
+ dataTable.add(new Data("Random",i));
+ }
+ }
+
+ public ArrayList getDataTable() {
+ return dataTable;
+ }
+
+ public void setDataTable(ArrayList dataTable) {
+ this.dataTable = dataTable;
+ }
+
+ public void ScrollerListener(DataScrollerEvent e){
+
+ System.out.println("NewScrollValue: "+e.getNewScrolVal());
+ System.out.println("OldScrollValue: "+e.getOldScrolVal());
+ }
+
+ public Data getTD() {
+ return tD;
+ }
+
+ public void setTD(Data td) {
+ tD = td;
+ }
+
+ public boolean isRender() {
+ return render;
+ }
+
+ public void setRender(boolean render) {
+ this.render = render;
+ }
+
+ public boolean isRenderIfSinglePage() {
+ return renderIfSinglePage;
+ }
+
+ public void setRenderIfSinglePage(boolean renderIfSinglePage) {
+ this.renderIfSinglePage = renderIfSinglePage;
+ }
+
+ public String getAlign() {
+ return align;
+ }
+
+ public void setAlign(String align) {
+ this.align = align;
+ }
+
+ public boolean isLimitToList() {
+ return limitToList;
+ }
+
+ public void setLimitToList(boolean limitToList) {
+ this.limitToList = limitToList;
+ }
+
+ public void bTest1(){
+ setAlign("left");
+ setFastControls("auto");
+ setLimitToList(false);
+ setMaxPages(20);
+ setRenderIfSinglePage(true);
+ }
+
+ public void bTest2(){
+ setAlign("right");
+ setFastControls("show");
+ setLimitToList(false);
+ setMaxPages(30);
+ setRenderIfSinglePage(false);
+ }
+
+ public void bTest3(){
+ setAlign("center");
+ setFastControls("hide");
+ setLimitToList(false);
+ setMaxPages(10);
+ setRenderIfSinglePage(true);
+ }
+
+ public void bTest4(){
+ setAlign("center");
+ setFastControls("auto");
+ setLimitToList(true);
+ setMaxPages(30);
+ setRenderIfSinglePage(false);
+ }
+
+ public void bTest5(){
+ setAlign("left");
+ setFastControls("show");
+ setLimitToList(false);
+ setMaxPages(40);
+ setRenderIfSinglePage(true);
+ }
+
+ /**
+ * @return the ajaxSingle
+ */
+ public boolean isAjaxSingle() {
+ return ajaxSingle;
+ }
+
+ /**
+ * @param ajaxSingle the ajaxSingle to set
+ */
+ public void setAjaxSingle(boolean ajaxSingle) {
+ this.ajaxSingle = ajaxSingle;
+ }
+
+ /**
+ * @return the boundaryControls
+ */
+ public String getBoundaryControls() {
+ return boundaryControls;
+ }
+
+ /**
+ * @param boundaryControls the boundaryControls to set
+ */
+ public void setBoundaryControls(String boundaryControls) {
+ this.boundaryControls = boundaryControls;
+ }
+
+ /**
+ * @return the fastStep
+ */
+ public String getFastStep() {
+ return fastStep;
+ }
+
+ /**
+ * @param fastStep the fastStep to set
+ */
+ public void setFastStep(String fastStep) {
+ this.fastStep = fastStep;
+ }
+
+ /**
+ * @return the page
+ */
+ public String getPage() {
+ return page;
+ }
+
+ /**
+ * @param page the page to set
+ */
+ public void setPage(String page) {
+ this.page = page;
+ }
+
+ /**
+ * @return the value
+ */
+ public Object getValue() {
+ return value;
+ }
+
+ /**
+ * @param value the value to set
+ */
+ public void setValue(Object value) {
+ this.value = value;
+ }
+
+ /**
+ * @return the stepControls
+ */
+ public String getStepControls() {
+ return stepControls;
+ }
+
+ /**
+ * @param stepControls the stepControls to set
+ */
+ public void setStepControls(String stepControls) {
+ this.stepControls = stepControls;
+ }
+
+ public void setSortOrder(Ordering sortOrder) {
+ this.sortOrder = sortOrder;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/dataTable/ChildBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dataTable/ChildBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dataTable/ChildBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,41 @@
+package dataTable;
+
+/**
+ * @author shura
+ *
+ */
+public class ChildBean {
+
+ private String name;
+
+ private int qty;
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return this.name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * @return the qty
+ */
+ public int getQty() {
+ return this.qty;
+ }
+
+ /**
+ * @param qty the qty to set
+ */
+ public void setQty(int qty) {
+ this.qty = qty;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/dataTable/Data.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dataTable/Data.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dataTable/Data.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,121 @@
+package dataTable;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.event.ValueChangeEvent;
+
+
+public class Data {
+ private List detail = new ArrayList();
+ private String mounth;
+ private String town;
+ private String day;
+ private int total;
+ private int price;
+
+ private boolean checked=true;
+ /**
+ *
+ */
+ public Data() {
+ }
+
+ /**
+ * @return the detail
+ */
+ public List getDetail() {
+ return this.detail;
+ }
+
+ /**
+ * @param detail the detail to set
+ */
+ public void setDetail(List detail) {
+ this.detail = detail;
+ }
+
+ /**
+ * @return the mounth
+ */
+ public String getMounth() {
+ return this.mounth;
+ }
+
+ /**
+ * @param mounth the mounth to set
+ */
+ public void setMounth(String mounth) {
+ this.mounth = mounth;
+ }
+
+ /**
+ * @return the total
+ */
+ public int getTotal() {
+ return this.total;
+ }
+
+ /**
+ * @param total the total to set
+ */
+ public void setTotal(int total) {
+ this.total = total;
+ }
+
+ /**
+ * @return the checked
+ */
+ public boolean isChecked() {
+ System.out.println("Invoke get checked for mounth "+getMounth()+", checked:"+checked);
+ return this.checked;
+ }
+
+ /**
+ * @param checked the checked to set
+ */
+ public void setChecked(boolean checked) {
+ System.out.println("Invoke set checked for mounth "+getMounth()+", checked:"+checked);
+ this.checked = checked;
+ }
+
+ public String check(){
+ checked = !checked;
+ System.out.println("Invoke check action for mounth "+getMounth()+", checked:"+checked);
+ return null;
+ }
+
+ public void checkChanged(ValueChangeEvent event) {
+ System.out.println("Checked changed for mounth "+getMounth());
+ }
+
+ /**
+ * @return the price
+ */
+ public int getPrice() {
+ return price;
+ }
+
+ /**
+ * @param price the price to set
+ */
+ public void setPrice(int price) {
+ this.price = price;
+ }
+
+ public String getTown() {
+ return town;
+ }
+
+ public void setTown(String town) {
+ this.town = town;
+ }
+
+ public String getDay() {
+ return day;
+ }
+
+ public void setDay(String day) {
+ this.day = day;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/dataTable/DataTable.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dataTable/DataTable.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dataTable/DataTable.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,240 @@
+package dataTable;
+
+import java.util.ArrayList;
+import java.util.Enumeration;
+import java.util.List;
+import java.util.Properties;
+
+import org.richfaces.component.html.HtmlDataTable;
+
+import util.componentInfo.ComponentInfo;
+
+public class DataTable {
+
+ private static final String [] mNames={"Jan","Feb","Mar","Apr","May", "Jun", "Jul"};
+ private static final String [] mDay={"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
+ private static final String [] mTtown = {"Adrian", "Ailey", "Alamo", "Alapaha", "Albany", "Allenhurst", "Alma"};
+ private List mounths = new ArrayList();
+ private List numbers = new ArrayList();
+ 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;
+ private HtmlDataTable htmlDataTable = null;
+
+ public void addHtmlDataTable(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlDataTable);
+ }
+
+ public HtmlDataTable getHtmlDataTable() {
+ return htmlDataTable;
+ }
+
+ public void setHtmlDataTable(HtmlDataTable htmlDataTable) {
+ this.htmlDataTable = htmlDataTable;
+ }
+
+ public DataTable() {
+ columns = "2";
+ cellpadding = "0";
+ cellspacing = "0";
+ rows = "0";
+ align = "center";
+ border = "1";
+ width = "400px";
+ columnsWidth = "200px";
+ rendered = true;
+ r2rendered = true;
+
+ Properties properties = System.getProperties();
+ Enumeration keys = properties.keys();
+ for(int i=0;i<7;i++){
+ Data bean = new Data();
+ //int l = (int)(Math.random()*8)+1;
+ int l = 1;
+ bean.setTotal(0);
+ bean.setMounth(DataTable.mNames[i]);
+ bean.setDay(DataTable.mDay[i]);
+ bean.setTown(DataTable.mTtown[i]);
+ mounths.add(bean);
+ for(int j=0;j<l;j++){
+ ChildBean child = new ChildBean();
+ child.setName((String) keys.nextElement());
+ int qty = (int)(Math.random()*10);
+ bean.setTotal(bean.getTotal()+qty);
+ child.setQty(qty);
+ bean.getDetail().add(child);
+ }
+ }
+ for(int i=0;i<1;i++){
+ numbers.add(new Integer(i));
+ }
+ }
+
+ public boolean isC1rendered() {
+ return r2rendered;
+ }
+
+ public void setC1rendered(boolean c1rendered) {
+ this.r2rendered = c1rendered;
+ }
+
+ public String toggleColumn() {
+ this.r2rendered = !this.r2rendered;
+ return null;
+ }
+ /**
+ * @return the numbers
+ */
+ public List getNumbers() {
+ return this.numbers;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ /**
+ * @param numbers the numbers to set
+ */
+ public void setNumbers(List numbers) {
+ this.numbers = numbers;
+ }
+
+ /**
+ * @return the mounths
+ */
+ public List getMounths() {
+ return this.mounths;
+ }
+
+ /**
+ * @param mounths the mounths to set
+ */
+ public void setMounths(List mounths) {
+ this.mounths = mounths;
+ }
+
+ public String getAlign() {
+ return align;
+ }
+
+ public void setAlign(String align) {
+ this.align = align;
+ }
+
+ public String getBorder() {
+ return border;
+ }
+
+ public void setBorder(String border) {
+ this.border = border;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public String getColumnsWidth() {
+ return columnsWidth;
+ }
+
+ public void setColumnsWidth(String columnsWidth) {
+ this.columnsWidth = columnsWidth;
+ }
+
+ public boolean isR2rendered() {
+ return r2rendered;
+ }
+
+ public void setR2rendered(boolean r2rendered) {
+ this.r2rendered = r2rendered;
+ }
+
+ public void bTest1() {
+ setAlign("center");
+ setBorder("4px");
+ setC1rendered(false);
+ setColumnsWidth("300px");
+ setWidth("500px");
+ }
+
+ public void bTest2() {
+ setAlign("left");
+ setBorder("0px");
+ setC1rendered(true);
+ setColumnsWidth("500px");
+ setWidth("300px");
+ }
+
+ public void bTest3() {
+ setAlign("right");
+ setBorder("5px");
+ setC1rendered(true);
+ setColumnsWidth("100px");
+ setWidth("200px");
+ }
+
+ public void bTest4() {
+ setAlign("center");
+ setBorder("4px");
+ setC1rendered(false);
+ setColumnsWidth("500px");
+ setWidth("500px");
+ }
+
+ public void bTest5() {
+ setAlign("center");
+ setBorder("4px");
+ setC1rendered(false);
+ setColumnsWidth("400px");
+ setWidth("800px");
+ }
+
+ 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;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/ddMenu/DDMenu.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/ddMenu/DDMenu.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/ddMenu/DDMenu.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,302 @@
+package ddMenu;
+
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.html.HtmlDropDownMenu;
+
+import util.componentInfo.ComponentInfo;
+
+public class DDMenu {
+
+ private int hideDelay;
+ private int showDelay;
+ private int verticalOffset;
+ private int horizontalOffset;
+ private String event;
+ private String direction = "";
+ private String groupDirection;
+ private String jointPoint = "";
+ private String popupWidth = "";
+ private String icon = null;
+ private String iconFolder = null;
+ private String selectMenu;
+ private String mode;
+ private String action;
+ private String actionListener;
+ private boolean rendered;
+ private boolean disabled;
+ private boolean disabledDDM;
+ private boolean check;
+ private HtmlDropDownMenu htmlDropDownMenu = null;
+
+ public void addHtmlDropDownMenu(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlDropDownMenu);
+ }
+
+ public HtmlDropDownMenu getHtmlDropDownMenu() {
+ return htmlDropDownMenu;
+ }
+
+ public void setHtmlDropDownMenu(HtmlDropDownMenu htmlDropDownMenu) {
+ this.htmlDropDownMenu = htmlDropDownMenu;
+ }
+
+ public DDMenu() {
+ selectMenu = "accord";
+ hideDelay = 0;
+ showDelay = 0;
+ verticalOffset = 0;
+ horizontalOffset = 0;
+ event = "onmouseover";
+ direction = "";
+ groupDirection = "auto";
+ jointPoint = "";
+ popupWidth = "";
+ mode = "none";
+ icon = null;
+ iconFolder = null;
+ rendered = true;
+ disabled = false;
+ disabledDDM = false;
+ check = false;
+ action = "---";
+ actionListener = "---";
+ }
+
+ public String act() {
+ System.out.println("action work!");
+ action = "action work!";
+ return null;
+ }
+
+ public void actListener(ActionEvent e) {
+ System.out.println("actionListener work!");
+ actionListener = "actionListener work!";
+ }
+
+ public String getActionListener() {
+ return actionListener;
+ }
+
+ public String getIcon() {
+ return icon;
+ }
+
+ public void setIcon(String icon) {
+ this.icon = icon;
+ }
+
+ public String getIconFolder() {
+ return iconFolder;
+ }
+
+ public void setIconFolder(String iconFolder) {
+ this.iconFolder = iconFolder;
+ }
+
+ public boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ public String getGroupDirection() {
+ return groupDirection;
+ }
+
+ public void setGroupDirection(String groupDirection) {
+ this.groupDirection = groupDirection;
+ }
+
+ public boolean isCheck() {
+ return check;
+ }
+
+ public void setCheck(boolean check) {
+ this.check = check;
+ }
+
+ public String getDirection() {
+ return direction;
+ }
+
+ public void setDirection(String direction) {
+ this.direction = direction;
+ }
+
+ public int getHideDelay() {
+ return hideDelay;
+ }
+
+ public void setHideDelay(int hideDelay) {
+ this.hideDelay = hideDelay;
+ }
+
+ public int getHorizontalOffset() {
+ return horizontalOffset;
+ }
+
+ public void setHorizontalOffset(int horizontalOffset) {
+ this.horizontalOffset = horizontalOffset;
+ }
+
+ public String getJointPoint() {
+ return jointPoint;
+ }
+
+ public void setJointPoint(String jointPoint) {
+ this.jointPoint = jointPoint;
+ }
+
+ public String getPopupWidth() {
+ return popupWidth;
+ }
+
+ public void setPopupWidth(String popupWidth) {
+ this.popupWidth = popupWidth;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public int getShowDelay() {
+ return showDelay;
+ }
+
+ public void setShowDelay(int showDelay) {
+ this.showDelay = showDelay;
+ }
+
+ public int getVerticalOffset() {
+ return verticalOffset;
+ }
+
+ public void setVerticalOffset(int verticalOffset) {
+ this.verticalOffset = verticalOffset;
+ }
+
+ public void changeIcons() {
+ if (icon != null) {
+ icon = null;
+ iconFolder = null;
+ } else {
+ icon = "/pics/header.png";
+ iconFolder = "/pics/ajax_process.gif";
+
+ }
+ }
+
+ public String getEvent() {
+ return event;
+ }
+
+ public void setEvent(String event) {
+ this.event = event;
+ }
+
+ public String getSelectMenu() {
+ return selectMenu;
+ }
+
+ public void setSelectMenu(String selectMenu) {
+ this.selectMenu = selectMenu;
+ }
+
+ public String getMode() {
+ return mode;
+ }
+
+ public void setMode(String mode) {
+ this.mode = mode;
+ }
+
+ public void bTest1(){
+ setDirection("top-right");
+ setEvent("onmouseover");
+ setGroupDirection("top-up");
+ setHideDelay(5);
+ setHorizontalOffset(1);
+ setVerticalOffset(1);
+ setJointPoint("top-left");
+ setMode("none");
+ setPopupWidth("300px");
+ setShowDelay(1);
+ setDisabled(false);
+ }
+
+ public void bTest2(){
+ setDirection("bottom-right");
+ setEvent("onclick");
+ setGroupDirection("bottom-left");
+ setHideDelay(5);
+ setShowDelay(5);
+ setHorizontalOffset(20);
+ setVerticalOffset(20);
+ setJointPoint("bottom-right");
+ setMode("ajax");
+ setPopupWidth("200px");
+ setDisabled(false);
+ }
+
+ public void bTest3(){
+ setDirection("bottom-left");
+ setEvent("onmouseover");
+ setGroupDirection("top-up");
+ setHideDelay(10);
+ setShowDelay(10);
+ setHorizontalOffset(5);
+ setVerticalOffset(5);
+ setJointPoint("top-left");
+ setMode("server");
+ setPopupWidth("50px");
+ setDisabled(false);
+ }
+
+ public void bTest4(){
+ setDirection("top-left");
+ setEvent("onmouseover");
+ setGroupDirection("auto");
+ setHideDelay(0);
+ setShowDelay(0);
+ setHorizontalOffset(0);
+ setVerticalOffset(0);
+ setJointPoint("auto");
+ setMode("ajax");
+ setPopupWidth("auto");
+ setDisabled(true);
+ }
+
+ public void bTest5(){
+ setDirection("auto");
+ setEvent("onmouseover");
+ setGroupDirection("auto");
+ setHideDelay(1);
+ setShowDelay(5);
+ setHorizontalOffset(2);
+ setVerticalOffset(2);
+ setJointPoint("auto");
+ setMode("ajax");
+ setPopupWidth("auto");
+ setDisabled(true);
+ }
+
+ public boolean isDisabledDDM() {
+ return disabledDDM;
+ }
+
+ public void setDisabledDDM(boolean disabledDDM) {
+ this.disabledDDM = disabledDDM;
+ }
+
+ public String getAction() {
+ return action;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/dfs/DataFilterSliderDao.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dfs/DataFilterSliderDao.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dfs/DataFilterSliderDao.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,34 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package dfs;
+
+import java.util.List;
+
+public interface DataFilterSliderDao {
+
+ public List getCarsById(String id);
+
+ public List getAllCarMakes();
+
+ public int genRand();
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/dfs/DataFilterSliderDaoImpl.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dfs/DataFilterSliderDaoImpl.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dfs/DataFilterSliderDaoImpl.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,183 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package dfs;
+
+import java.util.*;
+import java.math.BigDecimal;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Wesley
+ * Date: Jan 26, 2007
+ * Time: 8:20:38 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class DataFilterSliderDaoImpl implements DataFilterSliderDao {
+
+ private Map itemKeyMap = new HashMap();
+ private static int DECIMALS = 1;
+ private static int ROUNDING_MODE = BigDecimal.ROUND_HALF_UP;
+ private static DataFilterSliderDaoImpl ourInstance = new DataFilterSliderDaoImpl();
+
+ public static DataFilterSliderDaoImpl getInstance() {
+ return ourInstance;
+ }
+
+ private DataFilterSliderDaoImpl() {
+ loadCarList("0");
+ loadCarList("1");
+ loadCarList("2");
+ loadCarList("3");
+ loadCarList("4");
+ loadCarList("5");
+
+ }
+
+ public List getAllCarMakes(){
+ List retVal = new ArrayList();
+
+ retVal.add("Chevrolet");
+ retVal.add("Ford");
+ retVal.add("Nissan");
+ retVal.add("Toyota");
+ retVal.add("GMC");
+ retVal.add("Infiniti");
+
+ return retVal;
+ }
+
+ public List getCarsById(String id){
+ List retVal = new ArrayList();
+
+ retVal = (ArrayList)itemKeyMap.get( id );
+
+ return retVal;
+ }
+
+ public List loadCarList(String id) {
+
+ ArrayList retVal = new ArrayList();
+ if ( itemKeyMap.containsKey( id ) ){
+ retVal = (ArrayList)itemKeyMap.get( id );
+ //log.info("***************************YES we already have this one in cache: " + id);
+ }else{
+ try{
+
+ if (id.equals("0")){
+ retVal.addAll(createCar("Chevrolet","Corvette"));
+ retVal.addAll(createCar("Chevrolet","Malibu"));
+ retVal.addAll(createCar("Chevrolet","S-10"));
+ retVal.addAll(createCar("Chevrolet","Tahoe"));
+ }else if(id.equals("1")){
+ retVal.addAll(createCar("Ford","Taurus"));
+ retVal.addAll(createCar("Ford","Explorer"));
+ }else if(id.equals("2")){
+ retVal.addAll(createCar("Nissan","Maxima"));
+ }else if(id.equals("3")){
+ retVal.addAll(createCar("Toyota","4-Runner"));
+ retVal.addAll(createCar("Toyota","Camry"));
+ retVal.addAll(createCar("Toyota","Avalon"));
+ }else if(id.equals("4")){
+ retVal.addAll(createCar("GMC","Sierra"));
+ retVal.addAll(createCar("GMC","Yukon"));
+ }else if(id.equals("5")){
+ retVal.addAll(createCar("Infiniti","G35"));
+ }
+
+ }catch(Exception e){
+ e.printStackTrace();
+ }
+
+ itemKeyMap.put(id,retVal);
+ }
+
+
+ return retVal;
+ }
+
+ public int genRand() {
+ return rand(1,10000);
+ }
+
+ public List createCar(String make, String model){
+
+ ArrayList iiList = null;
+
+ try{
+ int arrayCount = rand(5,20);
+
+ DemoInventoryItem[] demoInventoryItemArrays = new DemoInventoryItem[arrayCount];
+ //System.out.println("******demoInventoryItemArrays: " + demoInventoryItemArrays.length);
+
+ for (int j = 0; j < demoInventoryItemArrays.length; j++){
+ DemoInventoryItem ii = new DemoInventoryItem();
+
+ ii.setMake(make);
+ ii.setModel(model);
+ ii.setStock(randomstring(6,7));
+ ii.setVin(randomstring(14,15));
+ ii.setMileage(new BigDecimal(rand(5000,80000)).setScale(DECIMALS, ROUNDING_MODE));
+ ii.setMileageMarket(new BigDecimal(rand(25000,45000)).setScale(DECIMALS, ROUNDING_MODE));
+ ii.setPrice(new Integer(rand(15000,55000)));
+ ii.setPriceMarket(new BigDecimal(rand(15000,55000)).setScale(DECIMALS, ROUNDING_MODE));
+ ii.setDaysLive(rand(1,90));
+ ii.setChangeSearches(new BigDecimal(rand(0,5)).setScale(DECIMALS, ROUNDING_MODE));
+ ii.setChangePrice(new BigDecimal(rand(0,5)).setScale(DECIMALS, ROUNDING_MODE));
+ ii.setExposure(new BigDecimal(rand(0,5)).setScale(DECIMALS, ROUNDING_MODE));
+ ii.setActivity(new BigDecimal(rand(0,5)).setScale(DECIMALS, ROUNDING_MODE));
+ ii.setPrinted(new BigDecimal(rand(0,5)).setScale(DECIMALS, ROUNDING_MODE));
+ ii.setInquiries(new BigDecimal(rand(0,5)).setScale(DECIMALS, ROUNDING_MODE));
+ demoInventoryItemArrays[j] = ii;
+
+ }
+
+ iiList = new ArrayList(Arrays.asList(demoInventoryItemArrays));
+
+ }catch(Exception e){
+ e.printStackTrace();
+ }
+ return iiList;
+ }
+
+ public static int rand(int lo, int hi)
+ {
+ Random rn2 = new Random();
+ //System.out.println("**" + lo);
+ //System.out.println("**" + hi);
+ int n = hi - lo + 1;
+ int i = rn2.nextInt() % n;
+ if (i < 0)
+ i = -i;
+ return lo + i;
+ }
+
+ @SuppressWarnings("deprecation")
+ public static String randomstring(int lo, int hi)
+ {
+ int n = rand(lo, hi);
+ byte b[] = new byte[n];
+ for (int i = 0; i < n; i++)
+ b[i] = (byte)rand('A', 'Z');
+ return new String(b, 0);
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/dfs/DemoInventoryItem.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dfs/DemoInventoryItem.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dfs/DemoInventoryItem.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,175 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package dfs;
+
+import java.math.BigDecimal;
+import java.io.Serializable;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Wesley
+ * Date: Jan 26, 2007
+ * Time: 8:21:36 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class DemoInventoryItem implements Serializable {
+
+ String make;
+ String model;
+ String stock;
+ String vin;
+
+ BigDecimal mileage;
+ BigDecimal mileageMarket;
+ Integer price;
+ BigDecimal priceMarket;
+
+ int daysLive;
+ BigDecimal changeSearches;
+ BigDecimal changePrice;
+
+ BigDecimal exposure;
+ BigDecimal activity;
+ BigDecimal printed;
+ BigDecimal inquiries;
+
+
+ public String getMake() {
+ return make;
+ }
+
+ public void setMake(String make) {
+ this.make = make;
+ }
+
+ public String getModel() {
+ return model;
+ }
+
+ public void setModel(String model) {
+ this.model = model;
+ }
+
+ public String getStock() {
+ return stock;
+ }
+
+ public void setStock(String stock) {
+ this.stock = stock;
+ }
+
+ public String getVin() {
+ return vin;
+ }
+
+ public void setVin(String vin) {
+ this.vin = vin;
+ }
+
+ public BigDecimal getMileage() {
+ return mileage;
+ }
+
+ public void setMileage(BigDecimal mileage) {
+ this.mileage = mileage;
+ }
+
+ public BigDecimal getMileageMarket() {
+ return mileageMarket;
+ }
+
+ public void setMileageMarket(BigDecimal mileageMarket) {
+ this.mileageMarket = mileageMarket;
+ }
+
+ public Integer getPrice() {
+ return price;
+ }
+
+ public void setPrice(Integer price) {
+ this.price = price;
+ }
+
+ public BigDecimal getPriceMarket() {
+ return priceMarket;
+ }
+
+ public void setPriceMarket(BigDecimal priceMarket) {
+ this.priceMarket = priceMarket;
+ }
+
+ public int getDaysLive() {
+ return daysLive;
+ }
+
+ public void setDaysLive(int daysLive) {
+ this.daysLive = daysLive;
+ }
+
+ public BigDecimal getChangeSearches() {
+ return changeSearches;
+ }
+
+ public void setChangeSearches(BigDecimal changeSearches) {
+ this.changeSearches = changeSearches;
+ }
+
+ public BigDecimal getChangePrice() {
+ return changePrice;
+ }
+
+ public void setChangePrice(BigDecimal changePrice) {
+ this.changePrice = changePrice;
+ }
+
+ public BigDecimal getExposure() {
+ return exposure;
+ }
+
+ public void setExposure(BigDecimal exposure) {
+ this.exposure = exposure;
+ }
+
+ public BigDecimal getActivity() {
+ return activity;
+ }
+
+ public void setActivity(BigDecimal activity) {
+ this.activity = activity;
+ }
+
+ public BigDecimal getPrinted() {
+ return printed;
+ }
+
+ public void setPrinted(BigDecimal printed) {
+ this.printed = printed;
+ }
+
+ public BigDecimal getInquiries() {
+ return inquiries;
+ }
+
+ public void setInquiries(BigDecimal inquiries) {
+ this.inquiries = inquiries;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/dfs/DemoInventoryList.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dfs/DemoInventoryList.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dfs/DemoInventoryList.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,285 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package dfs;
+
+import org.richfaces.component.UIDataFltrSlider;
+
+import javax.faces.component.UIData;
+import javax.faces.event.ActionEvent;
+import java.util.ArrayList;
+import java.util.List;
+
+public class DemoInventoryList {
+
+ DataFilterSliderDao dataFilterSliderDao = DataFilterSliderDaoImpl.getInstance();
+
+
+ public DemoInventoryList() {
+ loadCarMakeIndex();
+ }
+
+ private List headers;
+ private List members;
+
+ // dataTableColumn Names
+ private static final String mileageColumnName = "Mileage";
+ private static final String mileageMktAvgColumnName = "+/- Mkt Avg";
+ private static final String priceColumnName = "Price";
+ private static final String priceMktAvgColumnName = "+/- Mkt Avg";
+ private static final String daysLiveColumnName = "Days Live";
+ private static final String changeSearchesColumnName = "% Change Searches";
+ private static final String changePriceColumnName = "% Change Price";
+ private static final String exposureColumnName = "Exposure";
+ private static final String activityColumnName = "Activity";
+ private static final String printedColumnName = "Printed";
+ private static final String inquiriesColumnName = "Inquiries";
+
+ private void populateHeaderList(){
+ headers = new ArrayList();
+ //headers.add("");
+ headers.add(mileageColumnName);
+ headers.add(mileageMktAvgColumnName);
+ headers.add(priceColumnName);
+ headers.add(priceMktAvgColumnName);
+ headers.add(daysLiveColumnName);
+ headers.add(changeSearchesColumnName);
+ headers.add(changePriceColumnName);
+ headers.add(exposureColumnName);
+ headers.add(activityColumnName);
+ headers.add(printedColumnName);
+ headers.add(inquiriesColumnName);
+
+
+ }
+
+ private void populateMemberList(){
+ members = new ArrayList();
+ members.add("avgMileage");
+ members.add("avgMileageMarket");
+ members.add("avgPrice");
+ members.add("avgPriceMarket");
+ members.add("avgDaysLive");
+ members.add("avgChangeSearches");
+ members.add("avgChangePrice");
+ members.add("avgExposure");
+ members.add("avgActivity");
+ members.add("avgPrinted");
+ members.add("avgInquiries");
+ }
+
+
+
+ public String getMileageColumnName() {
+ return mileageColumnName;
+ }
+
+
+ public String getMileageMktAvgColumnName() {
+ return mileageMktAvgColumnName;
+ }
+
+ public String getPriceMktAvgColumnName() {
+ return priceMktAvgColumnName;
+ }
+
+ public String getPriceColumnName() {
+ return priceColumnName;
+ }
+
+ public String getDaysLiveColumnName() {
+ return daysLiveColumnName;
+ }
+
+ public String getChangeSearchesColumnName() {
+ return changeSearchesColumnName;
+ }
+
+ public String getChangePriceColumnName() {
+ return changePriceColumnName;
+ }
+
+ public String getExposureColumnName() {
+ return exposureColumnName;
+ }
+
+ public String getActivityColumnName() {
+ return activityColumnName;
+ }
+
+ public String getPrintedColumnName() {
+ return printedColumnName;
+ }
+
+ public String getInquiriesColumnName() {
+ return inquiriesColumnName;
+ }
+
+ private List carMakeIndex;
+
+
+ public List getCarMakeIndex() {
+ return carMakeIndex;
+ }
+
+ public void setCarMakeIndex(List carMakeIndex) {
+ this.carMakeIndex = carMakeIndex;
+ }
+
+ private UIData carMakeIndexUIData;
+
+
+ public UIData getCarMakeIndexUIData() {
+ return carMakeIndexUIData;
+ }
+
+ public void setCarMakeIndexUIData(UIData carMakeIndexUIData) {
+ this.carMakeIndexUIData = carMakeIndexUIData;
+ }
+
+ public Object getCarInventory() {
+
+ if (uiData == null){
+ loadCarTable("1");
+ }
+
+ return getUiData().getValue();
+
+ }
+
+ protected void loadCarMakeIndex() {
+
+ carMakeIndex = dataFilterSliderDao.getAllCarMakes();
+ }
+
+ UIData uiData;
+
+
+ public UIData getUiData() {
+ if(uiData == null){
+ uiData = new UIData();
+ }
+ return uiData;
+ }
+
+ public void setUiData(UIData uiData) {
+ this.uiData = uiData;
+ }
+
+ public void loadCarTable(String id) {
+ try{
+
+ getUiData().setValue(dataFilterSliderDao.getCarsById(id));
+
+ }catch(Exception e){
+ e.printStackTrace();
+ }
+ }
+
+
+ private static final String carMileageColumnName = "Mileage";
+ private static final String carMileageMktAvgColumnName = "MktAvg";
+ private static final String carPriceColumnName = "Price";
+
+
+ public String getCarMileageColumnName() {
+ return carMileageColumnName;
+ }
+
+ public String getCarMileageMktAvgColumnName() {
+ return carMileageMktAvgColumnName;
+ }
+
+ public String getCarPriceColumnName() {
+ return carPriceColumnName;
+ }
+
+ private String filterValue;
+ private String filterRule;
+
+
+ public String getFilterValue() {
+ return filterValue;
+ }
+
+ public void setFilterValue(String filterValue) {
+ this.filterValue = filterValue;
+ }
+
+
+ public String getFilterRule() {
+ return filterRule;
+ }
+
+ public void setFilterRule(String filterRule) {
+ this.filterRule = filterRule;
+
+
+ }//Other Functions---------------------------------------------------------------------------------------
+ public void populateTableFromMake(){
+ loadCarTable(filterValue);
+ }
+
+ UIDataFltrSlider dataFilterSlider;
+
+
+ public UIDataFltrSlider getDataFilterSlider() {
+ return dataFilterSlider;
+ }
+
+ public void setDataFilterSlider(UIDataFltrSlider dataFilterSlider) {
+ this.dataFilterSlider = dataFilterSlider;
+ }
+
+ public void filterCarList(ActionEvent event) {
+
+ UIDataFltrSlider slider = getDataFilterSlider();
+ slider.resetDataTable();
+
+ try{
+ filterValue = String.valueOf(carMakeIndexUIData.getRowIndex());
+ filterRule = getAttribute(event, "filterRule");
+
+ if (filterRule.equals("showTable")){
+ loadCarTable(filterValue);
+ }
+ }catch(Exception e){
+ e.printStackTrace();
+ }
+
+ slider.filterDataTable(slider.getHandleValue());
+ }
+
+ private static String getAttribute(ActionEvent event, String name) {
+ return (String) event.getComponent().getAttributes().get(name);
+ }
+
+ public int genRandom;
+
+
+ public int getGenRandom() {
+ return dataFilterSliderDao.genRand();
+ }
+
+ public void setGenRandom(int genRandom) {
+ this.genRandom = genRandom;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/dfs/DemoSliderBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dfs/DemoSliderBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dfs/DemoSliderBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,121 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package dfs;
+
+import org.richfaces.component.html.HtmlDataFilterSlider;
+import org.richfaces.event.DataFilterSliderEvent;
+
+import util.componentInfo.ComponentInfo;
+
+
+/**
+ * @author $Autor$
+ *
+ */
+public class DemoSliderBean {
+ private boolean rendered;
+ private DemoInventoryList demoInventoryList;
+ private String action;
+ private String actionListener;
+ private boolean storeResults;
+ private Integer startRange;
+ private Integer endRange;
+ private Integer increment;
+ private String trailer;
+ private Integer handleValue;
+ private HtmlDataFilterSlider htmlDataFilterSlider = null;
+
+// " storeResults="true"
+// startRange="10000" endRange="60000" increment="10000"
+// manualInput="true" width="400px"
+// trailer="true" handleValue="10000"
+
+ public void addHtmlDataFilterSlider(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlDataFilterSlider);
+ }
+
+ public HtmlDataFilterSlider getHtmlDataFilterSlider(){
+ return htmlDataFilterSlider;
+ }
+
+ public void setHtmlDataFilterSlider(HtmlDataFilterSlider htmlDataFilterSlider){
+ this.htmlDataFilterSlider = htmlDataFilterSlider;
+ }
+
+ public DemoSliderBean() {
+ rendered = true;
+ action = "---";
+ actionListener = "---";
+ }
+
+ public void setDemoInventoryList(DemoInventoryList demoInventoryList) {
+ this.demoInventoryList = demoInventoryList;
+ }
+
+ public void doSlide(DataFilterSliderEvent event) {
+
+ Integer oldSliderVal = event.getOldSliderVal();
+ Integer newSliderVal = event.getNewSliderVal();
+
+ System.out.println("Old Slider Value = " + oldSliderVal.toString() + " " + "New Slider Value = " + newSliderVal.toString());
+
+ }
+
+ public void doRendered()
+ {
+ if(rendered)
+ rendered = false;
+ else rendered = true;
+ }
+
+ public String getRenderedName() {
+ if(rendered) return "Rendered on";
+ else return "Rendered off";
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String act() {
+ action = "action work!";
+ return null;
+ }
+
+ public String actListener() {
+ actionListener = "actionListener work!";
+ return null;
+ }
+
+ public String getAction() {
+ return action;
+ }
+
+ public String getActionListener() {
+ return actionListener;
+ }
+}
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/java/dnd/DndBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/dnd/DndBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/dnd/DndBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,149 @@
+package dnd;
+
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.html.HtmlDragSupport;
+import org.richfaces.component.html.HtmlDropSupport;
+import org.richfaces.event.DragEvent;
+import org.richfaces.event.DropEvent;
+
+import util.componentInfo.ComponentInfo;
+
+
+
+public class DndBean {
+
+ private List types = new ArrayList();
+ private Object dragValue;
+ private Object testParam;
+ private String actionDrop;
+ private String actionListenerDrop;
+ private String actionDrag;
+ private String actionListenerDrag;
+ private HtmlDragSupport htmlDrag = null;
+ private HtmlDropSupport htmlDrop = null;
+
+ public DndBean() {
+ super();
+
+ types.add("One");
+ types.add("Two");
+
+ actionDrag = "---";
+ actionListenerDrag = "---";
+ actionDrop = "---";
+ actionListenerDrop = "---";
+ }
+
+ public String actListenerDrag(ActionEvent e) {
+ actionListenerDrag = "actionListenerDrag work!";
+ return null;
+ }
+
+ public String actListenerDrop(ActionEvent e) {
+ actionListenerDrop = "actionListenerDrop work!";
+ return null;
+ }
+
+ public void processDrop(DropEvent event) {
+ System.out.println("Bean.processDrop()" + event.getDropValue());
+ this.dragValue = event.getDragValue();
+ }
+
+ public void processDrag(DragEvent event) {
+ System.out.println("Bean.processDrag()"+ event.getDropValue());
+ }
+
+ public List getTypes() {
+ return types;
+ }
+
+ public String dragAction() {
+ System.out.println("Bean.dragAction()");
+ actionDrag = "actionDtag work!";
+ return null;
+ }
+
+ public String dropAction() {
+ System.out.println("Bean.dropAction()");
+ actionDrop = "actionDrop work!";
+ return null;
+ }
+
+ public Object getDragValue() {
+ return dragValue;
+ }
+
+ public Object getTestParam() {
+ return testParam;
+ }
+
+ public void setTestParam(Object testParam) {
+ this.testParam = testParam;
+ System.out.println("Bean.setTestParam()" + testParam);
+ }
+
+ public String getActionDrop() {
+ return actionDrop;
+ }
+
+ public void setActionDrop(String actionDrop) {
+ this.actionDrop = actionDrop;
+ }
+
+ public String getActionListenerDrop() {
+ return actionListenerDrop;
+ }
+
+ public void setActionListenerDrop(String actionListenerDrop) {
+ this.actionListenerDrop = actionListenerDrop;
+ }
+
+ public String getActionDrag() {
+ return actionDrag;
+ }
+
+ public void setActionDrag(String actionDrag) {
+ this.actionDrag = actionDrag;
+ }
+
+ public String getActionListenerDrag() {
+ return actionListenerDrag;
+ }
+
+ public void setActionListenerDrag(String actionListenerDrag) {
+ this.actionListenerDrag = actionListenerDrag;
+ }
+
+ public HtmlDragSupport getHtmlDrag() {
+ return htmlDrag;
+ }
+
+ public void setHtmlDrag(HtmlDragSupport htmlDrag) {
+ this.htmlDrag = htmlDrag;
+ }
+
+ public HtmlDropSupport getHtmlDrop() {
+ return htmlDrop;
+ }
+
+ public void setHtmlDrop(HtmlDropSupport htmlDrop) {
+ this.htmlDrop = htmlDrop;
+ }
+
+ public String add1(){
+ ComponentInfo info1 = ComponentInfo.getInstance();
+ info1.addField(htmlDrag);
+ return null;
+ }
+
+ public String add2(){
+ ComponentInfo info1 = ComponentInfo.getInstance();
+ info1.addField(htmlDrop);
+ return null;
+ }
+}
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/java/effect/Effect.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/effect/Effect.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/effect/Effect.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,76 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package effect;
+
+import org.richfaces.component.html.HtmlEffect;
+
+import util.componentInfo.ComponentInfo;
+
+public class Effect {
+ private double time;
+ private String stateName;
+ private boolean state;
+ private HtmlEffect htmlEffect = null;
+
+ public void addHtmlEffect(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlEffect);
+ }
+
+ public HtmlEffect getHtmlEffect() {
+ return htmlEffect;
+ }
+
+ public void setHtmlEffect(HtmlEffect htmlEffect) {
+ this.htmlEffect = htmlEffect;
+ }
+
+ public Effect() {
+ time = 1.4;
+ state = true;
+ stateName = "buttonID";
+ }
+
+ public double getTime() {
+ return time;
+ }
+
+ public void setTime(double time) {
+ this.time = time;
+ }
+
+ public String getStateName() {
+ return stateName;
+ }
+
+ public void setStateName(String stateName) {
+ this.stateName = stateName;
+ }
+
+ public boolean isState() {
+ return state;
+ }
+
+ public void setState(boolean state) {
+ this.state = state;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/DemoPatient.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/DemoPatient.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/DemoPatient.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,86 @@
+package extendedDataTable;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @author pkawiak
+ */
+
+public class DemoPatient implements Serializable{
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -2265498014894008031L;
+ private Integer id;
+ private String firstName;
+ private String lastName;
+ private Date admissionDate;
+
+ DemoPatient(Integer id, String firstName, String lastName, Date admissionDate) {
+ this.id = id;
+ this.firstName = firstName;
+ this.lastName = lastName;
+ this.admissionDate = admissionDate;
+ }
+
+ /**
+ * @return the id
+ */
+ public Integer getId() {
+ return id;
+ }
+
+ /**
+ * @param id the id to set
+ */
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ /**
+ * @return the firstName
+ */
+ public String getFirstName() {
+ return firstName;
+ }
+
+ /**
+ * @param firstName the firstName to set
+ */
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ /**
+ * @return the lastName
+ */
+ public String getLastName() {
+ return lastName;
+ }
+
+ /**
+ * @param lastName the lastName to set
+ */
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ /**
+ * @return the admissionDate
+ */
+ public Date getAdmissionDate() {
+ return admissionDate;
+ }
+
+ /**
+ * @param admissionDate the admissionDate to set
+ */
+ public void setAdmissionDate(Date admissionDate) {
+ this.admissionDate = admissionDate;
+ }
+
+
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/DemoPatientProvider.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/DemoPatientProvider.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/DemoPatientProvider.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,125 @@
+package extendedDataTable;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.Random;
+
+import org.richfaces.model.DataProvider;
+
+/**
+ * @author pkawiak
+ *
+ */
+
+public class DemoPatientProvider implements DataProvider<DemoPatient>{
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 7038048580234887663L;
+
+ private String allFirstNames[] = {
+ "Aaron", "Abbott", "Abel", "Abner",
+ "Abraham", "Adam", "Addison", "Adler",
+ "Adley", "Adrian", "Aedan", "Aiken",
+ "Alan", "Alastair", "Albern", "Albert",
+ "Albion", "Alden", "Aldis", "Aldrich",
+ "Alexander", "Alfie", "Alfred", "Algernon",
+ "Alston", "Alton", "Alvin", "Ambrose",
+ "Amery", "Amos", "Andrew", "Angus",
+ "Ansel", "Anthony", "Archer", "Archibald",
+ "Arlen", "Arnold", "Arthur", "Arvel",
+ "Atwater", "Atwood", "Aubrey", "Austin",
+ "Małgorzata", "Paweł", "Piotr"
+ };
+
+ private String allLastNames[] = {
+ "Brown", "Smith", "Patel",
+ "Jones", "Williams", "Johnson",
+ "Taylor", "Thomas", "Roberts",
+ "Khan", "Lewis", "Jackson",
+ "Clarke", "James", "Phillips",
+ "Wilson", "Ali", "Mason",
+ "Davies", "Rodriguez", "Cox",
+ "Alexander", "Popiołek", "Buda",
+ "Goławski", "Kawiak", "Mitchel"
+
+ };
+
+ private List<DemoPatient> items;
+ private Integer itemsNumber;
+
+ private Random random = new Random();
+ private long now = new Date().getTime();
+
+
+ public DemoPatientProvider(Integer itemsNumber) {
+ super();
+ this.itemsNumber = itemsNumber;
+ }
+
+ private Date generateRandomDate(){
+ return new Date(Math.abs(random.nextLong()%now));
+ }
+
+ private String generateRandomFirstName() {
+ int rand = Math.abs(random.nextInt());
+ return allFirstNames[rand%(allFirstNames.length)];
+ }
+
+ private String generateRandomLastName() {
+ int rand = Math.abs(random.nextInt());
+ return allLastNames[rand%(allLastNames.length)];
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.model.DataProvider#getItemByKey(java.lang.Object)
+ */
+ public DemoPatient getItemByKey(Object key) {
+ if (key == null)
+ return null;
+ for (DemoPatient entity : getItems()){
+ if (entity.getId().equals(key))
+ return entity;
+ }
+ return null;
+ }
+
+ protected List<DemoPatient> getItems() {
+ if (items == null){
+ int l = itemsNumber;
+ items = new ArrayList<DemoPatient>(l);
+ for (int i=0;i<l;i++) {
+ items.add(new DemoPatient(i,
+ generateRandomFirstName(),
+ generateRandomLastName(),
+ generateRandomDate()));
+ }
+
+ }
+ return items;
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.model.DataProvider#getItemsByRange(int, int)
+ */
+ public List<DemoPatient> getItemsByRange(int firstRow, int lastRow) {
+ return getItems().subList(firstRow, lastRow);
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.model.DataProvider#getKey(java.lang.Object)
+ */
+ public Object getKey(DemoPatient item) {
+ return item.getId();
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.model.DataProvider#getRowCount()
+ */
+ public int getRowCount() {
+ return getItems().size();
+ }
+
+}
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/ExtendedDataTableBB.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/ExtendedDataTableBB.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/ExtendedDataTableBB.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,136 @@
+package extendedDataTable;
+
+import java.util.ArrayList;
+import java.util.Comparator;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.faces.context.FacesContext;
+import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.richfaces.component.html.HtmlExtendedDataTable;
+import org.richfaces.model.ExtendedTableDataModel;
+import org.richfaces.model.selection.SimpleSelection;
+
+import util.data.Data;
+
+/**
+ * @author mvitenkov
+ *
+ */
+public class ExtendedDataTableBB {
+
+ private SimpleSelection selection = new SimpleSelection();
+ private List<DemoPatient> selectedItems;
+ private Comparator<DemoPatient> dateComparator;
+ private String tableState = null;
+ private ExtendedTableDataModel<DemoPatient> dataModel;
+ private Integer patientsNumber = 100;
+ private boolean a4jRendered = true;
+ private HtmlExtendedDataTable extDTable = null;
+
+ public HtmlExtendedDataTable getExtDTable() {
+ return extDTable;
+ }
+
+ public void setExtDTable(HtmlExtendedDataTable extDTable) {
+ this.extDTable = extDTable;
+ }
+
+ public boolean isA4jRendered() {
+ return a4jRendered;
+ }
+
+ public void setA4jRendered(boolean a4jRendered) {
+ this.a4jRendered = a4jRendered;
+ }
+
+ public ExtendedDataTableBB() {
+ }
+
+ public ExtendedTableDataModel<DemoPatient> getDataModel(){
+ if (dataModel == null){
+ dataModel = new ExtendedTableDataModel<DemoPatient>(new DemoPatientProvider(patientsNumber));
+ }
+ return dataModel;
+ }
+
+ public SimpleSelection getSelection() {
+ return selection;
+ }
+
+ public void setSelection(SimpleSelection selection) {
+ this.selection = selection;
+ }
+
+ public String takeSelection() {
+ getSelectedItems().clear();
+ Iterator<Object> iterator = getSelection().getKeys();
+ while (iterator.hasNext()){
+ Object key = iterator.next();
+ selectedItems.add(getDataModel().getObjectByKey(key));
+ }
+ return null;
+ }
+
+ public Integer getPatientsNumber() {
+ return patientsNumber;
+ }
+
+ public void setPatientsNumber(Integer patientsNumber) {
+ if (patientsNumber != this.patientsNumber) {
+ dataModel = new ExtendedTableDataModel<DemoPatient>(new DemoPatientProvider(patientsNumber));
+ }
+ this.patientsNumber = patientsNumber;
+ }
+
+ public List<DemoPatient> getSelectedItems() {
+ if (selectedItems == null){
+ selectedItems = new ArrayList<DemoPatient>();
+ }
+ return selectedItems;
+ }
+
+ public void setSelectedItems(List<DemoPatient> selectedItems) {
+ this.selectedItems = selectedItems;
+ }
+
+ public String getTableState() {
+ if (tableState == null){
+ //try to get state from cookies
+ Cookie[] cookies = ((HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getCookies();
+ if (cookies != null){
+ for (Cookie c : cookies){
+ if (c.getName().equals("g3demoTabelState")){
+ tableState = c.getValue();
+ break;
+ }
+ }
+ }
+ }
+ return tableState;
+ }
+
+ public void setTableState(String tableState) {
+ this.tableState = tableState;
+ //save state in cookies
+ Cookie stateCookie = new Cookie("g3demoTabelState", this.tableState);
+ ((HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse()).addCookie(stateCookie);
+ }
+
+ public Comparator<DemoPatient> getDateComparator(){
+ if (dateComparator == null){
+ dateComparator = new Comparator<DemoPatient>(){
+
+ public int compare(DemoPatient o1, DemoPatient o2) {
+ return o1.getAdmissionDate().compareTo(o2.getAdmissionDate());
+ }
+
+ };
+ }
+ return dateComparator;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/ExtendedDataTableControlBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/ExtendedDataTableControlBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/extendedDataTable/ExtendedDataTableControlBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,215 @@
+package extendedDataTable;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.richfaces.component.html.HtmlExtendedDataTable;
+
+import util.componentInfo.ComponentInfo;
+
+import javax.faces.event.ActionEvent;
+import javax.faces.context.FacesContext;
+import javax.faces.model.SelectItem;
+
+public class ExtendedDataTableControlBean {
+
+ private String width = "100%";
+ private String height = "500px";
+ private List<SelectItem> sortModeSelectItems = new ArrayList<SelectItem>();
+ private List<SelectItem> selectionModeSelectItems = new ArrayList<SelectItem>();
+ private String sortMode;
+ private String selectionMode;
+ private Integer rowsNumber;
+ private boolean paginated = false;
+ private HtmlExtendedDataTable extDTable = null;
+ private String bindLabel;
+ private String border;
+ private String cellpadding;
+ private String cellspacing;
+ private String dir;
+ private int first;
+ private String frame;
+ private String groupingColumn;
+ private boolean rendered;
+ private String sortPriority;
+
+ public String getSortPriority() {
+ return sortPriority;
+ }
+
+ public void setSortPriority(String sortPriority) {
+ this.sortPriority = sortPriority;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getGroupingColumn() {
+ return groupingColumn;
+ }
+
+ public void setGroupingColumn(String groupingColumn) {
+ this.groupingColumn = groupingColumn;
+ }
+
+ public String getFrame() {
+ return frame;
+ }
+
+ public void setFrame(String frame) {
+ this.frame = frame;
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public String getDir() {
+ return dir;
+ }
+
+ public void setDir(String dir) {
+ this.dir = dir;
+ }
+
+ 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 getBorder() {
+ return border;
+ }
+
+ public void setBorder(String border) {
+ this.border = border;
+ }
+
+ public HtmlExtendedDataTable getExtDTable() {
+ return extDTable;
+ }
+
+ public void setExtDTable(HtmlExtendedDataTable extDTable) {
+ this.extDTable = extDTable;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = extDTable.getBaseClientId(context);
+ }
+ public void addExtDTable(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(extDTable);
+ }
+
+ public ExtendedDataTableControlBean() {
+ sortModeSelectItems.add(new SelectItem("single", "single"));
+ sortModeSelectItems.add(new SelectItem("multi", "multi"));
+ selectionModeSelectItems.add(new SelectItem("single", "single"));
+ selectionModeSelectItems.add(new SelectItem("multi", "multi"));
+ selectionModeSelectItems.add(new SelectItem("none", "none"));
+ bindLabel = "click binding";
+ border = "1px";
+ cellpadding = "1px";
+ cellspacing = "1px";
+ dir = "LTR";
+ first = 0;
+ frame = "void";
+ rendered = true;
+ }
+
+ public boolean isPaginated() {
+ return paginated;
+ }
+
+ public void setPaginated(boolean paginated) {
+ this.paginated = paginated;
+ }
+
+ public Integer getRowsNumber() {
+ return rowsNumber;
+ }
+
+ public void setRowsNumber(Integer rowsNumber) {
+ this.rowsNumber = rowsNumber;
+ }
+
+ public List<SelectItem> getSelectionModeSelectItems() {
+ return selectionModeSelectItems;
+ }
+
+ public void setSelectionModeSelectItems(
+ List<SelectItem> selectionModeSelectItems) {
+ this.selectionModeSelectItems = selectionModeSelectItems;
+ }
+
+
+
+ public List<SelectItem> getSortModeSelectItems() {
+ return sortModeSelectItems;
+ }
+
+ public void setSortModeSelectItems(List<SelectItem> sortModeSelectItems) {
+ this.sortModeSelectItems = sortModeSelectItems;
+ }
+
+ public String getSortMode() {
+ return sortMode;
+ }
+
+ public void setSortMode(String sortMode) {
+ this.sortMode = sortMode;
+ }
+
+ public String getSelectionMode() {
+ return selectionMode;
+ }
+
+ public void setSelectionMode(String selectionMode) {
+ this.selectionMode = selectionMode;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/fileUpload/FileUpload.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/fileUpload/FileUpload.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/fileUpload/FileUpload.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,402 @@
+package fileUpload;
+
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+import javax.faces.event.ValueChangeEvent;
+
+import org.richfaces.component.html.HtmlFileUpload;
+import org.richfaces.event.UploadEvent;
+import org.richfaces.model.UploadItem;
+
+import util.componentInfo.ComponentInfo;
+
+public class FileUpload {
+ private boolean disabled;
+ private boolean autoclear;
+ private boolean rendered;
+ private boolean required;
+ private boolean immediateUpload;
+ private String acceptedTypes;
+ private String requiredMessage;
+ private String listHeight;
+ private String listWidth;
+ private String align;
+ private String bindLabel;
+ private String addButtonClass;
+ private String addButtonClassDisabled;
+ private String cancelButtonClass;
+ private String cancelButtonClassDisabled;
+ private String cleanButtonClass;
+ private String cleanButtonClassDisabled;
+ private String fileEntryClass;
+ private String fileEntryControlClass;
+ private String fileEntryControlClassDisabled;
+ private String fileEntryClassDisabled;
+ private String uploadButtonClass;
+ private String uploadButtonClassDisabled;
+ private String uploadListClass;
+ private String uploadListClassDisabled;
+ private String changedLabel;
+ private String allowFlash;
+ private List data;
+ private Integer maxFilesQuantity;
+ private HtmlFileUpload myFileUpload;
+ private boolean noDuplicate;
+ private boolean ajaxSingle;
+ private boolean immediate;
+ private int uploadsAvailable;
+
+ public int getUploadsAvailable() {
+ return uploadsAvailable;
+ }
+
+ public void setUploadsAvailable(int uploadsAvailable) {
+ this.uploadsAvailable = uploadsAvailable;
+ }
+
+ public void addHtmlFileUpload(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(myFileUpload);
+ }
+
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public HtmlFileUpload getMyFileUpload() {
+ return myFileUpload;
+ }
+
+ public void setMyFileUpload(HtmlFileUpload myFileUpload) {
+ this.myFileUpload = myFileUpload;
+ }
+
+ public FileUpload() {
+ data = new ArrayList();
+ disabled = false;
+ autoclear = false;
+ rendered = true;
+ required = false;
+ immediateUpload = false;
+ acceptedTypes = "*";
+ requiredMessage = "requiredMessage";
+ listHeight = "200px";
+ listWidth = "400px";
+ maxFilesQuantity = 3;
+ align = "left";
+ bindLabel = "not ready";
+ changedLabel = "not ready";
+ addButtonClass="test";
+ addButtonClassDisabled="test";
+ cancelButtonClass="test";
+ cancelButtonClassDisabled="test";
+ cleanButtonClass="test";
+ cleanButtonClassDisabled="test";
+ fileEntryClass="test";
+ fileEntryControlClass="test";
+ fileEntryControlClassDisabled="test";
+ fileEntryClassDisabled="test";
+ uploadButtonClass="test";
+ uploadButtonClassDisabled="test";
+ uploadListClass="test";
+ uploadListClassDisabled="test";
+ noDuplicate = false;
+ allowFlash = "false";
+ ajaxSingle = false;
+ immediate = false;
+ uploadsAvailable = 5;
+ }
+
+ public void fileUploadListener(UploadEvent event) throws Exception{
+ UploadItem upload = event.getUploadItem();
+ if (upload.isTempFile()) {
+ File file = upload.getFile();
+ System.out.println("FileUpload.fileUploadListener()");
+ } else {
+ ByteArrayOutputStream b = new ByteArrayOutputStream();
+ b.write(upload.getData());
+ }
+ System.out.println("FileUpload.fileUploadListener()");
+ }
+
+ public void listener(UploadEvent event) throws Exception {
+
+ try {
+ UploadItem item = event.getUploadItem();
+ System.out.println("File : " + item.getFileName() + " was uploaded");
+ uploadsAvailable--;
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myFileUpload.getClientId(context);
+ }
+
+ public boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ public boolean isAutoclear() {
+ return autoclear;
+ }
+
+ public void setAutoclear(boolean autoclear) {
+ this.autoclear = autoclear;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public boolean isRequired() {
+ return required;
+ }
+
+ public void setRequired(boolean required) {
+ this.required = required;
+ }
+
+ public String getRequiredMessage() {
+ return requiredMessage;
+ }
+
+ public void setRequiredMessage(String requiredMessage) {
+ this.requiredMessage = requiredMessage;
+ }
+
+ public Integer getMaxFilesQuantity() {
+ return maxFilesQuantity;
+ }
+
+ public void setMaxFilesQuantity(Integer maxFilesQuantity) {
+ this.maxFilesQuantity = maxFilesQuantity;
+ }
+
+ public String getListHeight() {
+ return listHeight;
+ }
+
+ public void setListHeight(String listHeight) {
+ this.listHeight = listHeight;
+ }
+
+ public String getListWidth() {
+ return listWidth;
+ }
+
+ public void setListWidth(String listWidth) {
+ this.listWidth = listWidth;
+ }
+
+ public String getAcceptedTypes() {
+ return acceptedTypes;
+ }
+
+ public void setAcceptedTypes(String acceptedTypes) {
+ this.acceptedTypes = acceptedTypes;
+ }
+
+ public List getData() {
+ for(int i = 0; i < data.size(); i++)
+ System.out.println(data.get(i));
+ return data;
+ }
+
+ public void setData(List data) {
+ this.data = data;
+ }
+
+ public String getAlign() {
+ return align;
+ }
+
+ public void setAlign(String align) {
+ this.align = align;
+ }
+
+ public String getAddButtonClass() {
+ return addButtonClass;
+ }
+
+ public void setAddButtonClass(String addButtonClass) {
+ this.addButtonClass = addButtonClass;
+ }
+
+ public String getAddButtonClassDisabled() {
+ return addButtonClassDisabled;
+ }
+
+ public void setAddButtonClassDisabled(String addButtonClassDisabled) {
+ this.addButtonClassDisabled = addButtonClassDisabled;
+ }
+
+ public String getCancelButtonClass() {
+ return cancelButtonClass;
+ }
+
+ public void setCancelButtonClass(String cancelButtonClass) {
+ this.cancelButtonClass = cancelButtonClass;
+ }
+
+ public String getCancelButtonClassDisabled() {
+ return cancelButtonClassDisabled;
+ }
+
+ public void setCancelButtonClassDisabled(String cancelButtonClassDisabled) {
+ this.cancelButtonClassDisabled = cancelButtonClassDisabled;
+ }
+
+ public String getCleanButtonClass() {
+ return cleanButtonClass;
+ }
+
+ public void setCleanButtonClass(String cleanButtonClass) {
+ this.cleanButtonClass = cleanButtonClass;
+ }
+
+ public String getCleanButtonClassDisabled() {
+ return cleanButtonClassDisabled;
+ }
+
+ public void setCleanButtonClassDisabled(String cleanButtonClassDisabled) {
+ this.cleanButtonClassDisabled = cleanButtonClassDisabled;
+ }
+
+ public String getFileEntryClass() {
+ return fileEntryClass;
+ }
+
+ public void setFileEntryClass(String fileEntryClass) {
+ this.fileEntryClass = fileEntryClass;
+ }
+
+ public String getFileEntryControlClass() {
+ return fileEntryControlClass;
+ }
+
+ public void setFileEntryControlClass(String fileEntryControlClass) {
+ this.fileEntryControlClass = fileEntryControlClass;
+ }
+
+ public String getFileEntryControlClassDisabled() {
+ return fileEntryControlClassDisabled;
+ }
+
+ public void setFileEntryControlClassDisabled(
+ String fileEntryControlClassDisabled) {
+ this.fileEntryControlClassDisabled = fileEntryControlClassDisabled;
+ }
+
+ public String getFileEntryClassDisabled() {
+ return fileEntryClassDisabled;
+ }
+
+ public void setFileEntryClassDisabled(String fileEntryClassDisabled) {
+ this.fileEntryClassDisabled = fileEntryClassDisabled;
+ }
+
+ public String getUploadButtonClass() {
+ return uploadButtonClass;
+ }
+
+ public void setUploadButtonClass(String uploadButtonClass) {
+ this.uploadButtonClass = uploadButtonClass;
+ }
+
+ public String getUploadButtonClassDisabled() {
+ return uploadButtonClassDisabled;
+ }
+
+ public void setUploadButtonClassDisabled(String uploadButtonClassDisabled) {
+ this.uploadButtonClassDisabled = uploadButtonClassDisabled;
+ }
+
+ public String getUploadListClass() {
+ return uploadListClass;
+ }
+
+ public void setUploadListClass(String uploadListClass) {
+ this.uploadListClass = uploadListClass;
+ }
+
+ public String getUploadListClassDisabled() {
+ return uploadListClassDisabled;
+ }
+
+ public void setUploadListClassDisabled(String uploadListClassDisabled) {
+ this.uploadListClassDisabled = uploadListClassDisabled;
+ }
+
+ public boolean isImmediateUpload() {
+ return immediateUpload;
+ }
+
+ public void setImmediateUpload(boolean immediateUpload) {
+ this.immediateUpload = immediateUpload;
+ }
+
+ public boolean isNoDuplicate() {
+ return noDuplicate;
+ }
+
+ public void setNoDuplicate(boolean noDuplicate) {
+ this.noDuplicate = noDuplicate;
+ }
+ public void valueChangeListener(ValueChangeEvent valueChangeEvent){
+ changedLabel = myFileUpload.getUploadData().toString();
+ }
+
+ public String getChangedLabel() {
+ return changedLabel;
+ }
+
+ public void setChangedLabel(String changedLabel) {
+ this.changedLabel = changedLabel;
+ }
+
+ public String getAllowFlash() {
+ return allowFlash;
+ }
+
+ public void setAllowFlash(String allowFlash) {
+ this.allowFlash = allowFlash;
+ }
+
+ public boolean isAjaxSingle() {
+ return ajaxSingle;
+ }
+
+ public void setAjaxSingle(boolean ajaxSingle) {
+ this.ajaxSingle = ajaxSingle;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/fileUpload/FileUploadValidator.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/fileUpload/FileUploadValidator.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/fileUpload/FileUploadValidator.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,39 @@
+package fileUpload;
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.IOException;
+import javax.faces.application.FacesMessage;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.validator.Validator;
+import javax.faces.validator.ValidatorException;
+import org.richfaces.model.UploadItem;
+
+
+public class FileUploadValidator implements Validator {
+
+ public void validate(FacesContext context, UIComponent component,
+ Object value) throws ValidatorException {
+
+ UploadItem upload = (UploadItem)value;
+
+ if (upload.isTempFile()) {
+ File file = upload.getFile();
+ String name = file.getName();
+ System.out.println("fileName: " + name);
+ if (name == "ExadelMinsk.avi") {
+ throw new ValidatorException(new FacesMessage("Test validator: ExadelMinsk.avi file is restricted!"));
+ }
+ } else {
+ ByteArrayOutputStream b = new ByteArrayOutputStream();
+ try {
+ b.write(upload.getData());
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/gmap/Gmap.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/gmap/Gmap.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/gmap/Gmap.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,182 @@
+package gmap;
+
+import org.richfaces.component.html.HtmlGmap;
+
+import util.componentInfo.ComponentInfo;
+
+/**
+ * @author user
+ *
+ */
+public class Gmap {
+
+ private String continuousZoom;
+ private String doubleClickZoom;
+ private String dragging;
+ private String enableInfoWindow;
+ private String lat;
+ private String lng;
+ private String mapType;
+ private String showGLargeMapControl;
+ private String showGMapTypeControl;
+ private String showGScaleControl;
+ private String warningMessage;
+ private String zoom;
+ private String locale;
+ private boolean rendered;
+ private HtmlGmap htmlGmap = null;
+
+ public void addHtmlGmap(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlGmap);
+ }
+
+ public HtmlGmap getHtmlGmap() {
+ return htmlGmap;
+ }
+
+ public void setHtmlGmap(HtmlGmap htmlGmap) {
+ this.htmlGmap = htmlGmap;
+ }
+
+ public Gmap() {
+ locale = "en";
+ zoom = "17";
+ mapType ="G_NORMAL_MAP";
+ lng = "44.44";
+ lat = "37.37";
+ warningMessage = "warning!!!";
+ showGLargeMapControl = "true";
+ showGMapTypeControl = "true";
+ showGScaleControl = "true";
+ enableInfoWindow = "true";
+ rendered = true;
+ continuousZoom = "false";
+ doubleClickZoom = "false";
+ dragging = "false";
+ }
+
+ public String act() {
+ zoom = "17";
+ System.out.println("zoom=" + zoom);
+ return null;
+ }
+
+ public String getContinuousZoom() {
+ return continuousZoom;
+ }
+
+ public void setContinuousZoom(String continuousZoom) {
+ this.continuousZoom = continuousZoom;
+ }
+
+ public String getDoubleClickZoom() {
+ return doubleClickZoom;
+ }
+
+ public void setDoubleClickZoom(String doubleClickZoom) {
+ this.doubleClickZoom = doubleClickZoom;
+ }
+
+ public String getDragging() {
+ return dragging;
+ }
+
+ public void setDragging(String dragging) {
+ this.dragging = dragging;
+ }
+
+ public String getEnableInfoWindow() {
+ return enableInfoWindow;
+ }
+
+ public void setEnableInfoWindow(String enableInfoWindow) {
+ this.enableInfoWindow = enableInfoWindow;
+ }
+
+ public String getLat() {
+ return lat;
+ }
+
+ public void setLat(String lat) {
+ this.lat = lat;
+ }
+
+ public String getLng() {
+ return lng;
+ }
+
+ public void setLng(String lng) {
+ this.lng = lng;
+ }
+
+ public String getMapType() {
+ return mapType;
+ }
+
+ public void setMapType(String mapType) {
+ this.mapType = mapType;
+ }
+
+ public String getShowGLargeMapControl() {
+ return showGLargeMapControl;
+ }
+
+ public void setShowGLargeMapControl(String showGLargeMapControl) {
+ this.showGLargeMapControl = showGLargeMapControl;
+ }
+
+ public String getShowGMapTypeControl() {
+ return showGMapTypeControl;
+ }
+
+ public void setShowGMapTypeControl(String showGMapTypeControl) {
+ this.showGMapTypeControl = showGMapTypeControl;
+ }
+
+ public String getShowGScaleControl() {
+ return showGScaleControl;
+ }
+
+ public void setShowGScaleControl(String showGScaleControl) {
+ this.showGScaleControl = showGScaleControl;
+ }
+
+ public String getWarningMessage() {
+ return warningMessage;
+ }
+
+ public void setWarningMessage(String warningMessage) {
+ this.warningMessage = warningMessage;
+ }
+
+ public String getZoom() {
+ return zoom;
+ }
+
+ public void setZoom(String zoom) {
+ this.zoom = zoom;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ /**
+ * @return the locale
+ */
+ public String getLocale() {
+ return locale;
+ }
+
+ /**
+ * @param locale the locale to set
+ */
+ public void setLocale(String locale) {
+ this.locale = locale;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/hotKey/HotKey.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/hotKey/HotKey.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/hotKey/HotKey.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,157 @@
+/**
+ *
+ */
+package hotKey;
+
+import java.util.Collection;
+import java.util.Collections;
+
+import javax.faces.context.FacesContext;
+
+import org.richfaces.component.html.HtmlHotKey;
+
+import util.componentInfo.ComponentInfo;
+
+/**
+ * @author AYanul
+ *
+ */
+public class HotKey {
+ private String bindingInfo = "";
+ private String handler = "alert('work')";
+ private String key = "alt+q";
+ private String selector = "";
+ private String timing = "onload";
+ private String type = "onkeydown";
+ private boolean rendered = true;
+ private boolean disableInInput = false;
+ private boolean checkParent = false;
+ private HtmlHotKey htmlHotKey = null;
+ private String disableInInputTypes = "all";
+
+ public String getDisableInInputTypes() {
+ return disableInInputTypes;
+ }
+
+ public void setDisableInInputTypes(String disableInInputTypes) {
+ this.disableInInputTypes = disableInInputTypes;
+ }
+
+ public String add(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlHotKey);
+ return null;
+ }
+
+ public HtmlHotKey getHtmlHotKey() {
+ return htmlHotKey;
+ }
+ public void setHtmlHotKey(HtmlHotKey htmlHotKey) {
+ this.htmlHotKey = htmlHotKey;
+ }
+ /**
+ * @return the handler
+ */
+ public String getHandler() {
+ return handler;
+ }
+ /**
+ * @param handler the handler to set
+ */
+ public void setHandler(String handler) {
+ this.handler = handler;
+ }
+ /**
+ * @return the key
+ */
+ public String getKey() {
+ return key;
+ }
+ /**
+ * @param key the key to set
+ */
+ public void setKey(String key) {
+ this.key = key;
+ }
+ /**
+ * @return the selector
+ */
+ public String getSelector() {
+ return selector;
+ }
+ /**
+ * @param selector the selector to set
+ */
+ public void setSelector(String selector) {
+ this.selector = selector;
+ }
+ /**
+ * @return the timing
+ */
+ public String getTiming() {
+ return timing;
+ }
+ /**
+ * @param timing the timing to set
+ */
+ public void setTiming(String timing) {
+ this.timing = timing;
+ }
+ /**
+ * @return the type
+ */
+ public String getType() {
+ return type;
+ }
+ /**
+ * @param type the type to set
+ */
+ public void setType(String type) {
+ this.type = type;
+ }
+ /**
+ * @return the rendered
+ */
+ public boolean isRendered() {
+ return rendered;
+ }
+ /**
+ * @param rendered the rendered to set
+ */
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+ /**
+ * @return the disableInInput
+ */
+ public boolean isDisableInInput() {
+ return disableInInput;
+ }
+ /**
+ * @param disableInInput the disableInInput to set
+ */
+ public void setDisableInInput(boolean disableInInput) {
+ this.disableInInput = disableInInput;
+ }
+ /**
+ * @return the checkParent
+ */
+ public boolean isCheckParent() {
+ return checkParent;
+ }
+ /**
+ * @param checkParent the checkParent to set
+ */
+ public void setCheckParent(boolean checkParent) {
+ this.checkParent = checkParent;
+ }
+ /**
+ * @return the bindingInfo
+ */
+ public String getBindingInfo() {
+ String b = htmlHotKey.getClientId(FacesContext.getCurrentInstance());
+ if(b != null && b.length() != 0)
+ return "work";
+ return "don't work";
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/inplaceInput/InplaceInput.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/inplaceInput/InplaceInput.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/inplaceInput/InplaceInput.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,195 @@
+package inplaceInput;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+import javax.faces.event.ValueChangeEvent;
+
+import org.richfaces.component.html.HtmlInplaceInput;
+
+import util.componentInfo.ComponentInfo;
+
+public class InplaceInput {
+ private String inputMaxLength;
+ private String inputWidth;
+ private String maxInputWidth;
+ private String minInputWidth;
+ private boolean required;
+ private String requiredMessage;
+ private int tabindex;
+ private String editEvent;
+ private String defaultLabel;
+ private String controlsVerticalPosition;
+ private String controlsHorizontalPosition;
+ private String value;
+ private boolean selectOnEdit;
+ private boolean showControls;
+ private boolean rendered;
+ private boolean immediate;
+ private String valueCL;
+ private HtmlInplaceInput htmlInplaceInput = null;
+ private String bindLabel;
+ private String layout;
+
+ public InplaceInput() {
+ inputMaxLength = "200";
+ inputWidth = "150";
+ maxInputWidth = "250";
+ minInputWidth = "100";
+ required = false;
+ requiredMessage = "requiredMessage";
+ tabindex = 1;
+ editEvent = "onclick";
+ defaultLabel = "defaultLabel";
+ controlsVerticalPosition = "top";
+ controlsHorizontalPosition = "left";
+ value = "errors";
+ selectOnEdit = false;
+ showControls = false;
+ rendered = true;
+ immediate = false;
+ valueCL = "---";
+ bindLabel = "Click Binding";
+ layout = "inline";
+ }
+
+ public HtmlInplaceInput getHtmlInplaceInput() {
+ return htmlInplaceInput;
+ }
+
+ public void setHtmlInplaceInput(HtmlInplaceInput myInplaceInput) {
+ this.htmlInplaceInput = myInplaceInput;
+ }
+
+ public void addHtmlInplaceInput(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlInplaceInput);
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = htmlInplaceInput.getClientId(context);
+ }
+
+ public void valueChangeListener(ValueChangeEvent event){
+ valueCL = "valueChangeListener work!";
+ }
+
+ public String getInputMaxLength() {
+ return inputMaxLength;
+ }
+ public void setInputMaxLength(String inputMaxLength) {
+ this.inputMaxLength = inputMaxLength;
+ }
+ public String getInputWidth() {
+ return inputWidth;
+ }
+ public void setInputWidth(String inputWidth) {
+ this.inputWidth = inputWidth;
+ }
+ public String getMaxInputWidth() {
+ return maxInputWidth;
+ }
+ public void setMaxInputWidth(String maxInputWidth) {
+ this.maxInputWidth = maxInputWidth;
+ }
+ public String getMinInputWidth() {
+ return minInputWidth;
+ }
+ public void setMinInputWidth(String minInputWidth) {
+ this.minInputWidth = minInputWidth;
+ }
+ public boolean isRequired() {
+ return required;
+ }
+ public void setRequired(boolean required) {
+ this.required = required;
+ }
+ public String getRequiredMessage() {
+ return requiredMessage;
+ }
+ public void setRequiredMessage(String requiredMessage) {
+ this.requiredMessage = requiredMessage;
+ }
+ public int getTabindex() {
+ return tabindex;
+ }
+ public void setTabindex(int tabindex) {
+ this.tabindex = tabindex;
+ }
+ public String getEditEvent() {
+ return editEvent;
+ }
+ public void setEditEvent(String editEvent) {
+ this.editEvent = editEvent;
+ }
+ public String getDefaultLabel() {
+ return defaultLabel;
+ }
+ public void setDefaultLabel(String defaultLabel) {
+ this.defaultLabel = defaultLabel;
+ }
+ public String getControlsVerticalPosition() {
+ return controlsVerticalPosition;
+ }
+ public void setControlsVerticalPosition(String controlsVerticalPosition) {
+ this.controlsVerticalPosition = controlsVerticalPosition;
+ }
+ public String getControlsHorizontalPosition() {
+ return controlsHorizontalPosition;
+ }
+ public void setControlsHorizontalPosition(String controlsHorizontalPosition) {
+ this.controlsHorizontalPosition = controlsHorizontalPosition;
+ }
+ public String getValue() {
+ return value;
+ }
+ public void setValue(String value) {
+ this.value = value;
+ }
+ public boolean isSelectOnEdit() {
+ return selectOnEdit;
+ }
+ public void setSelectOnEdit(boolean selectOnEdit) {
+ this.selectOnEdit = selectOnEdit;
+ }
+ public boolean isShowControls() {
+ return showControls;
+ }
+ public void setShowControls(boolean showControls) {
+ this.showControls = showControls;
+ }
+ public boolean isRendered() {
+ return rendered;
+ }
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+ public boolean isImmediate() {
+ return immediate;
+ }
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+ public String getValueCL() {
+ return valueCL;
+ }
+ public void setValueCL(String valueCL) {
+ this.valueCL = valueCL;
+ }
+
+ public String getLayout() {
+ return layout;
+ }
+
+ public void setLayout(String layout) {
+ this.layout = layout;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/inplaceSelect/InplaceSelect.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/inplaceSelect/InplaceSelect.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/inplaceSelect/InplaceSelect.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,283 @@
+package inplaceSelect;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+import javax.faces.event.ValueChangeEvent;
+
+import org.richfaces.component.html.HtmlInplaceSelect;
+
+import util.componentInfo.ComponentInfo;
+
+public class InplaceSelect {
+ private boolean applyFromControlsOnly;
+ private String controlsHorizontalPosition;
+ private String controlsVerticalPosition;
+ private String defaultLabel;
+ private String editEvent;
+ private boolean immediate;
+ private String listHeight;
+ private String listWidth;
+ private String maxSelectWidth;
+ private String minSelectWidth;
+ private boolean openOnEdit;
+ private boolean rendered;
+ private boolean required;
+ private String requiredMessage;
+ private String selectWidth;
+ private boolean showControls;
+ private boolean changedClass;
+ private String changedLabel;
+ private int tabindex;
+ private Object value;
+ private String valueCL;
+ private HtmlInplaceSelect myInplaceSelect = null;
+ private String bindLabel;
+ private String layout;
+
+ public void addHtmlInplaceSelect(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(myInplaceSelect);
+ }
+
+ public InplaceSelect() {
+ valueCL = "---";
+ editEvent = "onclick";
+ maxSelectWidth = "150";
+ minSelectWidth = "85";
+ selectWidth = "170";
+ defaultLabel = "defaultLabel";
+ controlsVerticalPosition = "top";
+ controlsHorizontalPosition = "center";
+ value = "errors";
+ listWidth = "200";
+ listHeight = "150";
+ showControls = false;
+ applyFromControlsOnly = false;
+ openOnEdit = true;
+ rendered = true;
+ immediate = false;
+ bindLabel = "Click Binding";
+ changedLabel = "default";
+ changedClass = false;
+ required = false;
+ requiredMessage="requiredMessage";
+ layout = "inline";
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public String getLayout() {
+ return layout;
+ }
+
+ public void setLayout(String layout) {
+ this.layout = layout;
+ }
+
+ public HtmlInplaceSelect getMyInplaceSelect(){
+ return myInplaceSelect;
+ }
+
+ public void setMyInplaceSelect(HtmlInplaceSelect myInplaceSelect){
+ this.myInplaceSelect = myInplaceSelect;
+ }
+
+ public String getbindLabel(){
+ return bindLabel;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myInplaceSelect.getClientId(context);
+ }
+
+ public void setbindLabel(String bindLabel){
+ this.bindLabel = bindLabel;
+ }
+
+ public void valueChangeListener(ValueChangeEvent event){
+ valueCL = "valueChangeListener work!";
+ }
+
+ public String getControlsHorizontalPosition() {
+ return controlsHorizontalPosition;
+ }
+
+ public String getControlsVerticalPosition() {
+ return controlsVerticalPosition;
+ }
+
+ public int getTabindex() {
+ return tabindex;
+ }
+
+ public void setTabindex(int tabindex) {
+ this.tabindex = tabindex;
+ }
+
+ public String getValueCL() {
+ return valueCL;
+ }
+
+ public void setValueCL(String valueCL) {
+ this.valueCL = valueCL;
+ }
+
+ public String getDefaultLabel() {
+ return defaultLabel;
+ }
+
+ public String getEditEvent() {
+ return editEvent;
+ }
+
+ public String getListHeight() {
+ return listHeight;
+ }
+
+ public String getListWidth() {
+ return listWidth;
+ }
+
+ public String getMaxSelectWidth() {
+ return maxSelectWidth;
+ }
+
+ public String getMinSelectWidth() {
+ return minSelectWidth;
+ }
+
+ public String getSelectWidth() {
+ return selectWidth;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public boolean isApplyFromControlsOnly() {
+ return applyFromControlsOnly;
+ }
+
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public boolean isOpenOnEdit() {
+ return openOnEdit;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public boolean isShowControls() {
+ return showControls;
+ }
+
+ public void setApplyFromControlsOnly(boolean applyFromControlsOnly) {
+ this.applyFromControlsOnly = applyFromControlsOnly;
+ }
+
+ public void setControlsHorizontalPosition(String controlsHorizontalPosition) {
+ this.controlsHorizontalPosition = controlsHorizontalPosition;
+ }
+
+ public void setControlsVerticalPosition(String controlsVerticalPosition) {
+ this.controlsVerticalPosition = controlsVerticalPosition;
+ }
+
+ public void setDefaultLabel(String defaultLabel) {
+ this.defaultLabel = defaultLabel;
+ }
+
+ public void setEditEvent(String editEvent) {
+ this.editEvent = editEvent;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+ public void setListHeight(String listHeight) {
+ this.listHeight = listHeight;
+ }
+
+ public void setListWidth(String listWidth) {
+ this.listWidth = listWidth;
+ }
+
+ public void setMaxSelectWidth(String maxSelectWidth) {
+ this.maxSelectWidth = maxSelectWidth;
+ }
+
+ public void setMinSelectWidth(String minSelectWidth) {
+ this.minSelectWidth = minSelectWidth;
+ }
+
+ public void setOpenOnEdit(boolean openOnEdit) {
+ this.openOnEdit = openOnEdit;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public void setSelectWidth(String selectWidth) {
+ this.selectWidth = selectWidth;
+ }
+
+ public void setShowControls(boolean showControls) {
+ this.showControls = showControls;
+ }
+
+ public void setValue(Object value) {
+ this.value = value;
+ }
+
+ public String getChangedLabel() {
+ return changedLabel;
+ }
+
+ public void setChangedLabel(String changedLabel) {
+ this.changedLabel = changedLabel;
+ }
+
+ public void checkChangedClass(){
+ if (changedClass){
+ setChangedLabel("activeTabStyle");
+ }
+ }
+
+ public boolean isChangedClass() {
+ return changedClass;
+ }
+
+ public void setChangedClass(boolean changedClass) {
+ this.changedClass = changedClass;
+ }
+
+ public boolean isRequired() {
+ return required;
+ }
+
+ public void setRequired(boolean required) {
+ this.required = required;
+ }
+
+ public String getRequiredMessage() {
+ return requiredMessage;
+ }
+
+ public void setRequiredMessage(String requiredMessage) {
+ this.requiredMessage = requiredMessage;
+ }
+
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/inputNumberSlider/InputNumberSlider.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/inputNumberSlider/InputNumberSlider.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/inputNumberSlider/InputNumberSlider.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,374 @@
+package inputNumberSlider;
+
+import javax.faces.event.ValueChangeEvent;
+
+import org.richfaces.component.html.HtmlInputNumberSlider;
+
+import util.componentInfo.ComponentInfo;
+
+public class InputNumberSlider {
+
+ private int inputSize;
+ private int maxlength;
+ private String requiredMessage;
+ private String inputPosition;
+ private String tabindex;
+ private String value;
+ private String width;
+ private String minValue;
+ private String maxValue;
+ private String step;
+ private String btnLabel;
+ private String barStyle;
+ private String inputStyle;
+ private String tipStyle;
+ private String handleStyle;
+ private String valueChangeListener;
+ private boolean immediate;
+ private boolean required;
+ private boolean showToolTip;
+ private boolean disabled;
+ private boolean showInput;
+ private boolean rendered;
+ private boolean enableManualInput;
+ private boolean showBoundaryValues;
+ private HtmlInputNumberSlider htmlInputNumberSlider = null;
+
+ public void addHtmlInputNumberSlider(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlInputNumberSlider);
+ }
+
+ public InputNumberSlider() {
+ immediate = false;
+ rendered = false;
+ showToolTip = false;
+ requiredMessage = "requiredMessage work!";
+ inputPosition = "right";
+ tabindex = "2";
+ value = "30";
+ inputSize = 5;
+ maxlength = 3;
+ width = "300px";
+ minValue="10";
+ maxValue="100";
+ step="5";
+ btnLabel="On";
+ barStyle=null;
+ inputStyle=null;
+ tipStyle=null;
+ handleStyle=null;
+ disabled = false;
+ showInput=true;
+ rendered=true;
+ enableManualInput = true;
+ showBoundaryValues=true;
+ }
+
+ public void changeListener(ValueChangeEvent event) {
+ System.out.println("valueChangeListener " + event.toString());
+ }
+
+ public boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ public boolean isEnableManualInput() {
+ return enableManualInput;
+ }
+
+ public void setEnableManualInput(boolean enableManualInput) {
+ this.enableManualInput = enableManualInput;
+ }
+
+ public int getInputSize() {
+ return inputSize;
+ }
+
+ public void setInputSize(int inputSize) {
+ this.inputSize = inputSize;
+ }
+
+ public String getMaxValue() {
+ return maxValue;
+ }
+
+ public void setMaxValue(String maxValue) {
+ this.maxValue = maxValue;
+ }
+
+ public String getMinValue() {
+ return minValue;
+ }
+
+ public void setMinValue(String minValue) {
+ this.minValue = minValue;
+ }
+
+ public boolean isShowBoundaryValues() {
+ return showBoundaryValues;
+ }
+
+ public void setShowBoundaryValues(boolean showBoundaryValues) {
+ this.showBoundaryValues = showBoundaryValues;
+ }
+
+ public boolean isShowInput() {
+ return showInput;
+ }
+
+ public void setShowInput(boolean showInput) {
+ this.showInput = showInput;
+ }
+
+ public String getStep() {
+ return step;
+ }
+
+ public void setStep(String step) {
+ this.step = step;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public void doStyles()
+ {
+ if (getBarStyle() == null) {
+ setBtnLabel("Off");
+ setBarStyle("barStyle");
+ setInputStyle("inputStyle");
+ setTipStyle("tipStyle");
+ setHandleStyle("handleStyle");
+ } else {
+ setBarStyle(null);
+ setBtnLabel("On");
+ setInputStyle(null);
+ setTipStyle(null);
+ setHandleStyle(null);
+ }
+ }
+
+
+ public String getBarStyle() {
+ return barStyle;
+ }
+
+
+ public void setBarStyle(String barStyle) {
+ this.barStyle = barStyle;
+ }
+
+
+ public String getBtnLabel() {
+ return btnLabel;
+ }
+
+
+ public void setBtnLabel(String btnLabel) {
+ this.btnLabel = btnLabel;
+ }
+
+
+ public String getInputStyle() {
+ return inputStyle;
+ }
+
+
+ public void setInputStyle(String inputStyle) {
+ this.inputStyle = inputStyle;
+ }
+
+
+ public String getTipStyle() {
+ return tipStyle;
+ }
+
+
+ public void setTipStyle(String tipStyle) {
+ this.tipStyle = tipStyle;
+ }
+
+
+ public String getHandleStyle() {
+ return handleStyle;
+ }
+
+
+ public void setHandleStyle(String handleStyle) {
+ this.handleStyle = handleStyle;
+ }
+
+
+ public int getMaxlength() {
+ return maxlength;
+ }
+
+
+ public void setMaxlength(int maxlength) {
+ this.maxlength = maxlength;
+ }
+
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+ public boolean isRequired() {
+ return required;
+ }
+
+ public void setRequired(boolean required) {
+ this.required = required;
+ }
+
+ public boolean isShowToolTip() {
+ return showToolTip;
+ }
+
+ public void setShowToolTip(boolean showToolTip) {
+ this.showToolTip = showToolTip;
+ }
+
+ public String getRequiredMessage() {
+ return requiredMessage;
+ }
+
+ public void setRequiredMessage(String requiredMessage) {
+ this.requiredMessage = requiredMessage;
+ }
+
+ public String getInputPosition() {
+ return inputPosition;
+ }
+
+ public void setInputPosition(String inputPosition) {
+ this.inputPosition = inputPosition;
+ }
+
+ public String getTabindex() {
+ return tabindex;
+ }
+
+ public void setTabindex(String tabindex) {
+ this.tabindex = tabindex;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public void valueChangeListener(ValueChangeEvent event) {
+ valueChangeListener = (String)event.getNewValue();
+ System.out.println("valueChangeListener: " + valueChangeListener);
+ }
+
+ public void bTest1(){
+ setMinValue("0");
+ setMaxValue("9");
+ setInputSize(1);
+ setInputPosition("right");
+ setEnableManualInput(true);
+ setValue("3");
+ setShowInput(true);
+ setStep("1");
+ setShowToolTip(true);
+ setShowBoundaryValues(true);
+ setShowInput(true);
+ setMaxlength(2);
+ }
+
+ public void bTest2(){
+ setMinValue("1000");
+ setMaxValue("99999");
+ setInputSize(10);
+ setInputPosition("left");
+ setEnableManualInput(false);
+ setValue("99999");
+ setShowInput(true);
+ setStep("50");
+ setShowToolTip(false);
+ setShowBoundaryValues(true);
+ setMaxlength(5);
+ }
+
+ public void bTest3(){
+ setMinValue("101");
+ setMaxValue("203");
+ setInputSize(4);
+ setInputPosition("left");
+ setEnableManualInput(false);
+ setValue("102");
+ setShowInput(true);
+ setStep("2");
+ setShowToolTip(false);
+ setShowBoundaryValues(true);
+ setMaxlength(6);
+ }
+
+ public void bTest4(){
+ setMinValue("10");
+ setMaxValue("12");
+ setInputSize(2);
+ setInputPosition("left");
+ setEnableManualInput(false);
+ setValue("102");
+ setShowInput(false);
+ setStep("2");
+ setShowToolTip(false);
+ setShowBoundaryValues(true);
+ setMaxlength(2);
+ }
+
+ public void bTest5(){
+ setMinValue("-99999");
+ setMaxValue("99999");
+ setInputSize(15);
+ setInputPosition("right");
+ setEnableManualInput(true);
+ setValue("103");
+ setShowInput(true);
+ setStep("2");
+ setShowToolTip(false);
+ setShowBoundaryValues(false);
+ setMaxlength(8);
+ }
+
+ public String getValueChangeListener() {
+ return valueChangeListener;
+ }
+
+ public HtmlInputNumberSlider getHtmlInputNumberSlider() {
+ return htmlInputNumberSlider;
+ }
+
+ public void setHtmlInputNumberSlider(HtmlInputNumberSlider htmlInputNumberSlider) {
+ this.htmlInputNumberSlider = htmlInputNumberSlider;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,240 @@
+package inputNumberSpinner;
+
+import org.richfaces.component.html.HtmlInputNumberSpinner;
+
+import util.componentInfo.ComponentInfo;
+
+public class InputNumberSpinner {
+
+ // private String size;
+ // private String controlPosition;
+ private int inputSize;
+ private String tabindex;
+ private String max;
+ private String min;
+ private String value;
+ private String step;
+ private String inputStyle;
+ private String style;
+ private String btnLabel = "ON";
+ private boolean cycled;
+ private boolean disabled;
+ private boolean manualInput;
+ private boolean rendered;
+ private HtmlInputNumberSpinner htmlInputNumberSpinner = null;
+
+ public void addHtmlInputNumberSpinner(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlInputNumberSpinner);
+ }
+
+ public InputNumberSpinner() {
+ // size= "200";
+ inputSize = 2;
+ cycled = false;
+ disabled = false;
+ manualInput = true;
+ max = "100";
+ min = "10";
+ // value="50";
+ // controlPosition="outside";
+ step = "1";
+ rendered = true;
+ style = null;
+ inputStyle = null;
+
+ }
+
+ public void doStyles() {
+ if (getStyle() == null) {
+ setBtnLabel("OFF");
+ setStyle("style");
+ setInputStyle("inputStyle");
+
+ } else {
+ setStyle(null);
+ setBtnLabel("ON");
+ setInputStyle(null);
+
+ }
+ }
+
+ /*
+ * public String getControlPosition() { return controlPosition; } public
+ * void setControlPosition(String controlPosition) { this.controlPosition =
+ * controlPosition; }
+ */
+
+ public boolean isCycled() {
+ return cycled;
+ }
+
+ public void setCycled(boolean cycled) {
+ this.cycled = cycled;
+ }
+
+ public boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ public boolean isManualInput() {
+ return manualInput;
+ }
+
+ public void setManualInput(boolean manualInput) {
+ this.manualInput = manualInput;
+ }
+
+ public String getMax() {
+ return max;
+ }
+
+ public void setMax(String max) {
+ this.max = max;
+ }
+
+ public String getMin() {
+ return min;
+ }
+
+ public void setMin(String min) {
+ this.min = min;
+ }
+
+ /*
+ * public String getSize() { return size; } public void setSize(String size) {
+ * this.size = size; }
+ */
+
+ public String getStep() {
+ return step;
+ }
+
+ public void setStep(String step) {
+ this.step = step;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getInputStyle() {
+ return inputStyle;
+ }
+
+ public void setInputStyle(String inputStyle) {
+ this.inputStyle = inputStyle;
+ }
+
+ public String getStyle() {
+ return style;
+ }
+
+ public void setStyle(String style) {
+ this.style = style;
+ }
+
+ public String getBtnLabel() {
+ return btnLabel;
+ }
+
+ public void setBtnLabel(String btnLabel) {
+ this.btnLabel = btnLabel;
+ }
+
+ public int getInputSize() {
+ return inputSize;
+ }
+
+ public void setInputSize(int inputSize) {
+ this.inputSize = inputSize;
+ }
+
+ public String getTabindex() {
+ return tabindex;
+ }
+
+ public void setTabindex(String tabindex) {
+ this.tabindex = tabindex;
+ }
+
+ public void bTest1(){
+ setCycled(true);
+ setManualInput(true);
+ setInputSize(5);
+ setMin("0");
+ setMax("20");
+ setStep("1");
+ setTabindex("2");
+ setValue("1");
+ }
+
+ public void bTest2(){
+ setCycled(false);
+ setManualInput(false);
+ setInputSize(10);
+ setMin("1000");
+ setMax("99999");
+ setStep("255");
+ setTabindex("5");
+ setValue("5555");
+ }
+
+ public void bTest3(){
+ setCycled(true);
+ setManualInput(false);
+ setInputSize(3);
+ setMin("101");
+ setMax("202");
+ setStep("2");
+ setTabindex("2");
+ setValue("102");
+ }
+
+ public void bTest4(){
+ setCycled(false);
+ setManualInput(true);
+ setInputSize(4);
+ setMin("33");
+ setMax("66");
+ setStep("11");
+ setTabindex("3");
+ setValue("55");
+ }
+
+ public void bTest5(){
+ setCycled(true);
+ setManualInput(true);
+ setInputSize(15);
+ setMin("-99999");
+ setMax("99999");
+ setStep("33");
+ setTabindex("5");
+ setValue("101");
+ }
+
+ public HtmlInputNumberSpinner getHtmlInputNumberSpinner() {
+ return htmlInputNumberSpinner;
+ }
+
+ public void setHtmlInputNumberSpinner(
+ HtmlInputNumberSpinner htmlInputNumberSpinner) {
+ this.htmlInputNumberSpinner = htmlInputNumberSpinner;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/insert/Insert.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/insert/Insert.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/insert/Insert.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,56 @@
+package insert;
+
+import org.richfaces.ui.component.html.HtmlInsert;
+
+import util.componentInfo.ComponentInfo;
+
+public class Insert {
+ private String highlight;
+ private String src;
+ private boolean rendered;
+ private HtmlInsert htmlInsert = null;
+
+ public void addHtmlInsert(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlInsert);
+ }
+
+ public HtmlInsert getHtmlInsert() {
+ return htmlInsert;
+ }
+
+ public void setHtmlInsert(HtmlInsert htmlInsert) {
+ this.htmlInsert = htmlInsert;
+ }
+
+ public Insert() {
+ src = "/Insert/src/test.html";
+ rendered = true;
+ highlight = "HTML";
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getHighlight() {
+ return highlight;
+ }
+
+ public void setHighlight(String highlight) {
+ this.highlight = highlight;
+ }
+
+ public String getSrc() {
+ return src;
+ }
+
+ public void setSrc(String src) {
+ this.src = src;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/jQuery/JQuery.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/jQuery/JQuery.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/jQuery/JQuery.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,25 @@
+package jQuery;
+
+import org.richfaces.component.html.HtmlJQuery;
+
+import util.componentInfo.ComponentInfo;
+
+public class JQuery {
+
+ private HtmlJQuery htmlJQuery = null;
+
+ public JQuery(){
+
+ }
+ public void add(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlJQuery);
+ }
+ public HtmlJQuery getHtmlJQuery() {
+ return htmlJQuery;
+ }
+
+ public void setHtmlJQuery(HtmlJQuery htmlJQuery) {
+ this.htmlJQuery = htmlJQuery;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/listShuttle/ListShuttle.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/listShuttle/ListShuttle.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/listShuttle/ListShuttle.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,353 @@
+package listShuttle;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+
+import org.richfaces.component.html.HtmlListShuttle;
+
+import util.componentInfo.ComponentInfo;
+import util.data.Data;
+
+public class ListShuttle {
+ private int first;
+ private int lenght;
+ private String [] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
+ private boolean fastMoveControlsVisible;
+ private boolean fastOrderControlsVisible;
+ private boolean moveControlsVisible;
+ private boolean orderControlsVisible;
+ private boolean showButtonLabels;
+ private boolean showSelect;
+ private boolean showAllSourceData;
+ private boolean showAllTargetData;
+ private boolean switchByClick;
+ private ArrayList<Data> sourceValue;
+ private ArrayList<Data> targetValue;
+ private ArrayList<String> info;
+ private Collection sourceSelection;
+ private Collection targetSelection;
+ private String bottomControlLabel;
+ private String copyAllControlLabel;
+ private String copyControlLabel;
+ private String downControlLabel;
+ private String removeAllControlLabel;
+ private String removeControlLabel;
+ private String topControlLabel;
+ private String upControlLabel;
+ private String targetListWidth;
+ private String sourceListWidth;
+ private String listsHeight;
+ private String sourceCaptionLabel;
+ private String targetCaptionLabel;
+ private HtmlListShuttle htmlListShuttle = null;
+
+ public void addHtmlListShuttle(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlListShuttle);
+ }
+
+ public HtmlListShuttle getHtmlListShuttle() {
+ return htmlListShuttle;
+ }
+
+ public void setHtmlListShuttle(HtmlListShuttle htmlListShuttle) {
+ this.htmlListShuttle = htmlListShuttle;
+ }
+
+ public ListShuttle() {
+ this.first = 1;
+ this.lenght = 10;
+ this.showSelect = true;
+ this.showAllSourceData = true;
+ this.showAllTargetData = true;
+ this.fastMoveControlsVisible = true;
+ this.fastOrderControlsVisible = true;
+ this.moveControlsVisible = true;
+ this.orderControlsVisible = true;
+ this.showButtonLabels = true;
+ this.bottomControlLabel = "bottom";
+ this.copyAllControlLabel = "copy all";
+ this.copyControlLabel = "copy";
+ this.downControlLabel = "down";
+ this.removeAllControlLabel = "remove all";
+ this.removeControlLabel = "remove";
+ this.topControlLabel = "top";
+ this.upControlLabel = "up";
+ this.info = new ArrayList<String>();
+ this.switchByClick = false;
+ this.targetListWidth = "450";
+ this.sourceListWidth = "450";
+ this.listsHeight = "300";
+ this.sourceCaptionLabel = "sourceCaptionLabel";
+ this.targetCaptionLabel = "targetCaptionLabel";
+ this.targetValue = new ArrayList<Data>();
+ this.sourceValue = new ArrayList<Data>();
+ addNewItem();
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isFastMoveControlsVisible() {
+ return fastMoveControlsVisible;
+ }
+
+ public void setFastMoveControlsVisible(boolean fastMoveControlsVisible) {
+ this.fastMoveControlsVisible = fastMoveControlsVisible;
+ }
+
+ public boolean isFastOrderControlsVisible() {
+ return fastOrderControlsVisible;
+ }
+
+ public void setFastOrderControlsVisible(boolean fastOrderControlsVisible) {
+ this.fastOrderControlsVisible = fastOrderControlsVisible;
+ }
+
+ public boolean isMoveControlsVisible() {
+ return moveControlsVisible;
+ }
+
+ public void setMoveControlsVisible(boolean moveControlsVisible) {
+ this.moveControlsVisible = moveControlsVisible;
+ }
+
+ public boolean isOrderControlsVisible() {
+ return orderControlsVisible;
+ }
+
+ public void setOrderControlsVisible(boolean orderControlsVisible) {
+ this.orderControlsVisible = orderControlsVisible;
+ }
+
+ public boolean isShowButtonLabels() {
+ return showButtonLabels;
+ }
+
+ public void setShowButtonLabels(boolean showButtonLabels) {
+ this.showButtonLabels = showButtonLabels;
+ }
+
+ public ArrayList<Data> getSourceValue() {
+ return sourceValue;
+ }
+
+ public void setSourceValue(ArrayList<Data> sourceValue) {
+ this.sourceValue = sourceValue;
+ }
+
+ public ArrayList getTargetValue() {
+ return targetValue;
+ }
+
+ public String getBottomControlLabel() {
+ return bottomControlLabel;
+ }
+
+ public void setBottomControlLabel(String bottomControlLabel) {
+ this.bottomControlLabel = bottomControlLabel;
+ }
+
+ public String getCopyAllControlLabel() {
+ return copyAllControlLabel;
+ }
+
+ public void setCopyAllControlLabel(String copyAllControlLabel) {
+ this.copyAllControlLabel = copyAllControlLabel;
+ }
+
+ public String getCopyControlLabel() {
+ return copyControlLabel;
+ }
+
+ public void setCopyControlLabel(String copyControlLabel) {
+ this.copyControlLabel = copyControlLabel;
+ }
+
+ public String getDownControlLabel() {
+ return downControlLabel;
+ }
+
+ public void setDownControlLabel(String downControlLabel) {
+ this.downControlLabel = downControlLabel;
+ }
+
+ public String getRemoveAllControlLabel() {
+ return removeAllControlLabel;
+ }
+
+ public void setRemoveAllControlLabel(String removeAllControlLabel) {
+ this.removeAllControlLabel = removeAllControlLabel;
+ }
+
+ public String getRemoveControlLabel() {
+ return removeControlLabel;
+ }
+
+ public void setRemoveControlLabel(String removeControlLabel) {
+ this.removeControlLabel = removeControlLabel;
+ }
+
+ public String getTopControlLabel() {
+ return topControlLabel;
+ }
+
+ public void setTopControlLabel(String topControlLabel) {
+ this.topControlLabel = topControlLabel;
+ }
+
+ public String getUpControlLabel() {
+ return upControlLabel;
+ }
+
+ public void setUpControlLabel(String upControlLabel) {
+ this.upControlLabel = upControlLabel;
+ }
+
+ public void addNewItem() {
+ if(lenght < 0) lenght = 0;
+ if(sourceValue.size() > lenght)
+ for(int i = lenght; i < sourceValue.size(); )
+ sourceValue.remove(i);
+ else
+ for(int i = sourceValue.size() + 1; i <= lenght; i++)
+ sourceValue.add(new Data(i, "Button " + i, "Link " + i, "Select" +(i % 5), statusIcon[i % 5], "Input " + i));
+ }
+
+ public int getLenght() {
+ return lenght;
+ }
+
+ public void setLenght(int lenght) {
+ this.lenght = lenght;
+ }
+
+ public ArrayList<String> getInfo() {
+ info.clear();
+ addSelection(getSourceSelection(), "1. sourceSelection");
+ addSelection(getTargetSelection(), "2. targetSelection");
+ return info;
+ }
+
+ public void setInfo(ArrayList<String> info) {
+ this.info = info;
+ }
+
+ public void setTargetValue(ArrayList<Data> targetValue) {
+ this.targetValue = targetValue;
+ }
+
+ public void cbAction() {
+ info.clear();
+ info.add("commandButton submit();");
+ }
+
+ public void clAction() {
+ info.clear();
+ info.add("commandLink submit();");
+ }
+
+ public boolean isShowSelect() {
+ return showSelect;
+ }
+
+ public void setShowSelect(boolean showSelect) {
+ this.showSelect = showSelect;
+ }
+
+ public boolean isShowAllSourceData() {
+ return showAllSourceData;
+ }
+
+ public void setShowAllSourceData(boolean showAllSourceData) {
+ this.showAllSourceData = showAllSourceData;
+ }
+
+ public boolean isShowAllTargetData() {
+ return showAllTargetData;
+ }
+
+ public void setShowAllTargetData(boolean showAllTargetData) {
+ this.showAllTargetData = showAllTargetData;
+ }
+
+ public Collection getSourceSelection() {
+ return sourceSelection;
+ }
+
+ public void setSourceSelection(Collection sourceSelection) {
+ this.sourceSelection = sourceSelection;
+ }
+
+ public Collection getTargetSelection() {
+ return targetSelection;
+ }
+
+ public void setTargetSelection(Collection targetSelection) {
+ this.targetSelection = targetSelection;
+ }
+
+ public boolean isSwitchByClick() {
+ return switchByClick;
+ }
+
+ public void setSwitchByClick(boolean switchByClick) {
+ this.switchByClick = switchByClick;
+ }
+
+ public String getTargetListWidth() {
+ return targetListWidth;
+ }
+
+ public void setTargetListWidth(String targetListWidth) {
+ this.targetListWidth = targetListWidth;
+ }
+
+ public String getSourceListWidth() {
+ return sourceListWidth;
+ }
+
+ public void setSourceListWidth(String sourceListWidth) {
+ this.sourceListWidth = sourceListWidth;
+ }
+
+ public String getListsHeight() {
+ return listsHeight;
+ }
+
+ public void setListsHeight(String listsHeight) {
+ this.listsHeight = listsHeight;
+ }
+
+ public String getSourceCaptionLabel() {
+ return sourceCaptionLabel;
+ }
+
+ public void setSourceCaptionLabel(String sourceCaptionLabel) {
+ this.sourceCaptionLabel = sourceCaptionLabel;
+ }
+
+ public String getTargetCaptionLabel() {
+ return targetCaptionLabel;
+ }
+
+ public void setTargetCaptionLabel(String targetCaptionLabel) {
+ this.targetCaptionLabel = targetCaptionLabel;
+ }
+
+ private void addSelection(Collection<Data> selection, String description) {
+ if(selection == null) return;
+ Iterator<Data> inter = selection.iterator();
+ Data data = new Data();
+ while (inter.hasNext()) {
+ data = inter.next();
+ info.add(description + ": " + data.getInt0() + "; " + data.getStr0() + "; " + data.getStr0() + "submit(); " + data.getStr1() + "; " + data.getStr1() + "submit(); " + data.getStr2() + "; " + data.getStr3());
+ }
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/listShuttle/ListShuttleConverter.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/listShuttle/ListShuttleConverter.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/listShuttle/ListShuttleConverter.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,33 @@
+package listShuttle;
+import java.util.ArrayList;
+import java.util.StringTokenizer;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+
+import util.data.Data;
+
+public class ListShuttleConverter implements Converter {
+
+ public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
+ String [] str = arg2.split(":");
+ return new Data(Integer.parseInt(str[0]), str[1], str[2], str[3],str[4]);
+ }
+//list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
+ Data data = (Data)arg2;
+ return data.getInt0() + ":" + data.getStr0() + ":" + data.getStr1() + ":" + data.getStr2() + ":" + data.getStr3();
+ }
+
+}
+// public Object getAsObject(FacesContext context, UIComponent component,
+// String value) {
+// int index = value.indexOf(':');
+// return new OptionItem(value.substring(0, index), Integer.valueOf(value.substring(index + 1)));
+// }
+// public String getAsString(FacesContext context, UIComponent component,
+// Object value) {
+// OptionItem optionItem = (OptionItem) value;
+// return optionItem.getName() + ":" + optionItem.getPrice();
+// }
Added: trunk/test-applications/auto-jsp/src/main/java/message/Message.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/message/Message.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/message/Message.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,216 @@
+package message;
+
+import org.richfaces.component.html.HtmlRichMessage;
+import org.richfaces.component.html.HtmlRichMessages;
+
+import util.componentInfo.ComponentInfo;
+
+public class Message {
+ private String msg;
+ private String layout;
+ private String title;
+ private boolean showDetail;
+ private boolean showSummary;
+ private boolean tooltip;
+ private String select1;
+ private String select2;
+ private String select3;
+ private String select4;
+ private String select5;
+ private HtmlRichMessage htmlMessage = null;
+ private HtmlRichMessages htmlMessages = null;
+
+ public void addHtmlMessages(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlMessage);
+ info.addField(htmlMessages);
+ }
+
+ public HtmlRichMessage getHtmlMessage() {
+ return htmlMessage;
+ }
+
+ public void setHtmlMessage(HtmlRichMessage htmlMessage) {
+ this.htmlMessage = htmlMessage;
+ }
+
+ public HtmlRichMessages getHtmlMessages() {
+ return htmlMessages;
+ }
+
+ public void setHtmlMessages(HtmlRichMessages htmlMessages) {
+ this.htmlMessages = htmlMessages;
+ }
+
+ public Message() {
+ msg = "select1";
+ layout = "table";
+ title = "Title";
+ showDetail = true;
+ showSummary = false;
+ tooltip = true;
+ select1 = "error";
+ select2 = "error";
+ select3 = "error";
+ select4 = "error";
+ select5 = "error";
+ }
+
+ public String getMsg() {
+ return msg;
+ }
+
+ public void setMsg(String msg) {
+ this.msg = msg;
+ }
+
+ public String getLayout() {
+ return layout;
+ }
+
+ public void setLayout(String layout) {
+ this.layout = layout;
+ }
+
+ public boolean isShowDetail() {
+ return showDetail;
+ }
+
+ public void setShowDetail(boolean showDetail) {
+ this.showDetail = showDetail;
+ }
+
+ public boolean isShowSummary() {
+ return showSummary;
+ }
+
+ public void setShowSummary(boolean showSummary) {
+ this.showSummary = showSummary;
+ }
+
+ public boolean isTooltip() {
+ return tooltip;
+ }
+
+ public void setTooltip(boolean tooltip) {
+ this.tooltip = tooltip;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getSelect1() {
+ return select1;
+ }
+
+ public void setSelect1(String select1) {
+ this.select1 = select1;
+ }
+
+ public String getSelect2() {
+ return select2;
+ }
+
+ public void setSelect2(String select2) {
+ this.select2 = select2;
+ }
+
+ public String getSelect3() {
+ return select3;
+ }
+
+ public void setSelect3(String select3) {
+ this.select3 = select3;
+ }
+
+ public String getSelect4() {
+ return select4;
+ }
+
+ public void setSelect4(String select4) {
+ this.select4 = select4;
+ }
+
+ public String getSelect5() {
+ return select5;
+ }
+
+ public void setSelect5(String select5) {
+ this.select5 = select5;
+ }
+
+ public void bTest1(){
+ setLayout("table");
+ setMsg("fatal");
+ setShowDetail(true);
+ setShowSummary(true);
+ setTitle("Test1");
+ setTooltip(true);
+ setSelect1("error");
+ setSelect2("fatal");
+ setSelect3("warn");
+ setSelect4("info");
+ setSelect5("passed");
+ }
+
+ public void bTest2(){
+ setLayout("table");
+ setMsg("error");
+ setShowDetail(false);
+ setShowSummary(true);
+ setTitle("Test2");
+ setTooltip(true);
+ setSelect1("error");
+ setSelect2("fatal");
+ setSelect3("fatal");
+ setSelect4("passed");
+ setSelect5("passed");
+ }
+
+ public void bTest3(){
+ setLayout("table");
+ setMsg("passed");
+ setShowDetail(true);
+ setShowSummary(false);
+ setTitle("Test3");
+ setTooltip(true);
+ setSelect1("error");
+ setSelect2("error");
+ setSelect3("passed");
+ setSelect4("error");
+ setSelect5("passed");
+ }
+
+ public void bTest4(){
+ setLayout("table");
+ setMsg("passed");
+ setShowDetail(true);
+ setShowSummary(true);
+ setTitle("Test4");
+ setTooltip(false);
+ setSelect1("warn");
+ setSelect2("warn");
+ setSelect3("warn");
+ setSelect4("warn");
+ setSelect5("warn");
+ }
+
+ public void bTest5(){
+ setLayout("table");
+ setMsg("warn");
+ setShowDetail(false);
+ setShowSummary(false);
+ setTitle("Test5");
+ setTooltip(false);
+ setSelect1("passed");
+ setSelect2("fatal");
+ setSelect3("error");
+ setSelect4("passed");
+ setSelect5("warn");
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/message/MessageValidator.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/message/MessageValidator.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/message/MessageValidator.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,76 @@
+package message;
+
+import javax.faces.application.FacesMessage;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.validator.Validator;
+import javax.faces.validator.ValidatorException;
+
+public class MessageValidator implements Validator {
+
+ public MessageValidator() {
+ }
+
+ public void validate(FacesContext context, UIComponent component,
+ Object value) throws ValidatorException {
+ System.out.println("SelectValidator.validate()");
+
+ String selectedValue = (String) value;
+ String clientId = component.getClientId(context);
+ int componentNum = componentNum(component.getId());
+ if (selectedValue.equals("warn")) {
+
+ FacesMessage message = new FacesMessage();
+ message.setSummary("warning SUMMARY for: " + componentNum
+ + " input");
+ message.setDetail("warning DETAIL for: " + componentNum + " input");
+ message.setSeverity(FacesMessage.SEVERITY_WARN);
+ context.addMessage(clientId, message);
+
+ } else if (selectedValue.equals("error")) {
+
+ FacesMessage message = new FacesMessage();
+ message.setSummary("error SUMMARY for: " + componentNum + " input");
+ message.setDetail("error DETAIL for: " + componentNum + " input");
+ message.setSeverity(FacesMessage.SEVERITY_ERROR);
+
+ context.addMessage(clientId, message);
+
+ } else if (selectedValue.equals("info")) {
+
+ FacesMessage message = new FacesMessage();
+ message.setSummary("info SUMMARY for: " + componentNum + " input");
+ message.setDetail("info DETAIL for: " + componentNum + " input");
+ message.setSeverity(FacesMessage.SEVERITY_INFO);
+
+ context.addMessage(clientId, message);
+
+ } else if (selectedValue.equals("fatal")) {
+
+ FacesMessage message = new FacesMessage();
+ message.setSummary("fatal SUMMARY for: " + componentNum + " input");
+ message.setDetail("fatal DETAIL for:" + componentNum + " input");
+ message.setSeverity(FacesMessage.SEVERITY_FATAL);
+
+ context.addMessage(clientId, message);
+ }
+ }
+
+ public int componentNum(String baseId) {
+ System.out.println("baseId=" + baseId);
+
+ if (baseId.endsWith("1")) {
+ return 1;
+ } else if (baseId.endsWith("2")) {
+ return 2;
+ } else if (baseId.endsWith("3")) {
+ return 3;
+ } else if (baseId.endsWith("4")) {
+ return 4;
+ } else if (baseId.endsWith("5")) {
+ return 5;
+ }
+
+ return -1;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/modalPanel/ModalPanel.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/modalPanel/ModalPanel.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/modalPanel/ModalPanel.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,281 @@
+package modalPanel;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.html.HtmlModalPanel;
+
+import util.componentInfo.ComponentInfo;
+
+public class ModalPanel {
+ private boolean autosized;
+ private boolean keepVisualState;
+ private String left;
+ private String top;
+ private boolean rendered;
+ private String shadowDepth;
+ private String shadowOpacity;
+ private boolean showWhenRendered;
+ private int zindex;
+ private int minHeight;
+ private int minWidth;
+ private int height;
+ private int width;
+ private boolean moveable;
+ private boolean resizeable;
+ private String inputTextTest;
+ private String selectOneListboxTest;
+ private String visualOptions;
+ private String bindLabel;
+ private HtmlModalPanel htmlModalPanel;
+ private boolean trimOverlayedElements;
+
+ public boolean isTrimOverlayedElements() {
+ return trimOverlayedElements;
+ }
+
+ public void setTrimOverlayedElements(boolean trimOverlayedElements) {
+ this.trimOverlayedElements = trimOverlayedElements;
+ }
+
+ public String getVisualOptions() {
+ return visualOptions;
+ }
+
+ public void setVisualOptions(String visualOptions) {
+ this.visualOptions = visualOptions;
+ }
+
+ public String getInputTextTest() {
+ return inputTextTest;
+ }
+
+ public void setInputTextTest(String inputTextTest) {
+ this.inputTextTest = inputTextTest;
+ }
+
+ public String getSelectOneListboxTest() {
+ return selectOneListboxTest;
+ }
+
+ public void setSelectOneListboxTest(String selectOneListboxTest) {
+ this.selectOneListboxTest = selectOneListboxTest;
+ }
+
+ public ModalPanel() {
+ this.visualOptions = "";
+ this.inputTextTest = "text";
+ this.selectOneListboxTest = "1";
+ this.minHeight = 100;
+ this.minWidth = 100;
+ this.height = 300;
+ this.width = 300;
+ this.moveable=true;
+ this.resizeable=true;
+ this.autosized = false;
+ this.keepVisualState = false;
+ this.left = "auto";
+ this.top = "auto";
+ this.rendered = true;
+ this.shadowDepth = "3";
+ this.shadowOpacity = "3";
+ this.zindex = 3;
+ this.showWhenRendered = false;
+ this.bindLabel = "not ready";
+ this.htmlModalPanel = null;
+ this.trimOverlayedElements = false;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = htmlModalPanel.getClientId(context);
+ }
+
+ public int getHeight() {
+ return height;
+ }
+
+ public void setHeight(int height) {
+ this.height = height;
+ }
+
+ public int getMinHeight() {
+ return minHeight;
+ }
+
+ public void setMinHeight(int minHeight) {
+ this.minHeight = minHeight;
+ }
+
+ public int getMinWidth() {
+ return minWidth;
+ }
+
+ public void setMinWidth(int minWidth) {
+ this.minWidth = minWidth;
+ }
+
+ public boolean isMoveable() {
+ return moveable;
+ }
+
+ public void setMoveable(boolean moveable) {
+ this.moveable = moveable;
+ }
+
+ public boolean isResizeable() {
+ return resizeable;
+ }
+
+ public void setResizeable(boolean resizeable) {
+ this.resizeable = resizeable;
+ }
+
+ public void setAutosized(boolean autosized) {
+ this.autosized = autosized;
+ }
+
+
+ public int getWidth() {
+ return width;
+ }
+
+ public void setWidth(int width) {
+ this.width = width;
+ }
+
+ public void bTest1(){
+ setHeight(300);
+ setWidth(450);
+ setMinHeight(250);
+ setMinWidth(400);
+ setMoveable(false);
+ setResizeable(false);
+ }
+
+ public void bTest2(){
+ setHeight(350);
+ setWidth(400);
+ setMinHeight(400);
+ setMinWidth(450);
+ setMoveable(true);
+ setResizeable(false);
+ }
+
+ public void bTest3(){
+ setHeight(400);
+ setWidth(300);
+ setMinHeight(400);
+ setMinWidth(300);
+ setMoveable(true);
+ setResizeable(true);
+ }
+
+ public void bTest4(){
+ setHeight(450);
+ setWidth(450);
+ setMinHeight(450);
+ setMinWidth(450);
+ setMoveable(false);
+ setResizeable(true);
+ }
+
+ public void bTest5(){
+ setHeight(900);
+ setWidth(800);
+ setMinHeight(700);
+ setMinWidth(600);
+ setMoveable(true);
+ setResizeable(true);
+ }
+
+ public boolean isAutosized() {
+ return autosized;
+ }
+
+ public boolean isKeepVisualState() {
+ return keepVisualState;
+ }
+
+ public void setKeepVisualState(boolean keepVisualState) {
+ this.keepVisualState = keepVisualState;
+ }
+
+ public String getLeft() {
+ return left;
+ }
+
+ public void setLeft(String left) {
+ this.left = left;
+ }
+
+ public String getTop() {
+ return top;
+ }
+
+ public void setTop(String top) {
+ this.top = top;
+ }
+
+ public boolean getRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getShadowDepth() {
+ return shadowDepth;
+ }
+
+ public void setShadowDepth(String shadowDepth) {
+ this.shadowDepth = shadowDepth;
+ }
+
+ public String getShadowOpacity() {
+ return shadowOpacity;
+ }
+
+ public void setShadowOpacity(String shadowOpacity) {
+ this.shadowOpacity = shadowOpacity;
+ }
+
+ public boolean isShowWhenRendered() {
+ return showWhenRendered;
+ }
+
+ public void setShowWhenRendered(boolean showWhenRendered) {
+ this.showWhenRendered = showWhenRendered;
+ }
+
+ public int getZindex() {
+ return zindex;
+ }
+
+ public void setZindex(int zindex) {
+ this.zindex = zindex;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public HtmlModalPanel getHtmlModalPanel() {
+ return htmlModalPanel;
+ }
+
+ public void setHtmlModalPanel(HtmlModalPanel myModalPanel) {
+ this.htmlModalPanel = myModalPanel;
+ }
+
+ public void addHtmlModalPanel(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlModalPanel);
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/orderingList/OrderingList.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/orderingList/OrderingList.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/orderingList/OrderingList.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,369 @@
+package orderingList;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+
+import org.richfaces.component.html.HtmlOrderingList;
+
+import util.componentInfo.ComponentInfo;
+import util.data.Data;
+
+public class OrderingList{
+ private ArrayList<String> info;
+ private ArrayList<Data> list;
+ private String captionLabel;
+ private Collection<Data> selection;
+ private String controlsType;
+ private String controlsVerticalAlign;
+ private String controlsHorizontalAlign;
+ private String bottomControlLabel;
+ private String upControlLabel;
+ private String topControlLabel;
+ private String downControlLabel;
+ private String listHeight;
+ private String listWidth;
+ private int lenght;
+ private boolean orderControlsVisible;
+ private boolean fastOrderControlsVisible;
+ private boolean rendered;
+ private boolean showButtonLabels;
+ private boolean facet;
+ private boolean showAllData;
+ private boolean showSelect;
+ private HtmlOrderingList htmlOrderingList = null;
+
+ public void addHtmlOrderingList(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlOrderingList);
+ }
+
+ public HtmlOrderingList getHtmlOrderingList() {
+ return htmlOrderingList;
+ }
+
+ public void setHtmlOrderingList(HtmlOrderingList htmlOrderingList) {
+ this.htmlOrderingList = htmlOrderingList;
+ }
+
+ public boolean isFacet() {
+ return facet;
+ }
+
+ public void setFacet(boolean facet) {
+ this.facet = facet;
+ }
+
+ public Collection<Data> getSelection() {
+ return selection;
+ }
+
+ public void setSelection(Collection<Data> selection) {
+ System.out.println("Selection.out: " + selection);
+ info.clear();
+ addSelection(selection);
+ this.selection = selection;
+ }
+
+ public ArrayList<Data> getList() {
+ return list;
+ }
+
+ public void setList(ArrayList<Data> list) {
+ this.list = list;
+ }
+
+ public void addNewItem() {
+ if(lenght < 0) lenght = 0;
+ if(list.size() > lenght)
+ for(int i = lenght; i < list.size(); )
+ list.remove(i);
+ else
+ for(int i = list.size() + 1; i <= lenght; i++)
+ list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), Data.statusIcon[i % 5]));
+ }
+
+ public OrderingList() {
+ this.info = new ArrayList<String>();
+ this.captionLabel = "captionLabel";
+ this.lenght = 10;
+ this.listHeight = "300";
+ this.listWidth = "800";
+ this.controlsType = "button";
+ this.controlsHorizontalAlign = "right";
+ this.controlsVerticalAlign = "center";
+ this.bottomControlLabel = "bottom label";
+ this.upControlLabel = "up label";
+ this.downControlLabel = "down label";
+ this.topControlLabel = "top label";
+ this.orderControlsVisible = true;
+ this.fastOrderControlsVisible = true;
+ this.rendered = true;
+ this.showButtonLabels = true;
+ this.showAllData = true;
+ this.showSelect = true;
+ this.list = new ArrayList<Data>();
+ addNewItem();
+ }
+
+ public String getListHeight() {
+ return listHeight;
+ }
+
+ public void setListHeight(String listHeight) {
+ this.listHeight = listHeight;
+ }
+
+ public String getListWidth() {
+ return listWidth;
+ }
+
+ public void setListWidth(String listWidth) {
+ this.listWidth = listWidth;
+ }
+
+ public String getControlsType() {
+ return controlsType;
+ }
+
+ public void setControlsType(String controlsType) {
+ this.controlsType = controlsType;
+ }
+
+ public String getBottomControlLabel() {
+ return bottomControlLabel;
+ }
+
+ public void setBottomControlLabel(String bottomControlLabel) {
+ this.bottomControlLabel = bottomControlLabel;
+ }
+
+ public String getCaptionLabel() {
+ return captionLabel;
+ }
+
+ public void setCaptionLabel(String captionLabel) {
+ this.captionLabel = captionLabel;
+ }
+
+ public String getUpControlLabel() {
+ return upControlLabel;
+ }
+
+ public void setUpControlLabel(String upControlLabel) {
+ this.upControlLabel = upControlLabel;
+ }
+
+ public String getTopControlLabel() {
+ return topControlLabel;
+ }
+
+ public void setTopControlLabel(String topControlLabel) {
+ this.topControlLabel = topControlLabel;
+ }
+
+ public String getControlsVerticalAlign() {
+ return controlsVerticalAlign;
+ }
+
+ public void setControlsVerticalAlign(String controlsVerticalAlign) {
+ this.controlsVerticalAlign = controlsVerticalAlign;
+ }
+
+ public String getControlsHorizontalAlign() {
+ return controlsHorizontalAlign;
+ }
+
+ public void setControlsHorizontalAlign(String controlsHorizontalAlign) {
+ this.controlsHorizontalAlign = controlsHorizontalAlign;
+ }
+
+ public String getDownControlLabel() {
+ return downControlLabel;
+ }
+
+ public void setDownControlLabel(String downControlLabel) {
+ this.downControlLabel = downControlLabel;
+ }
+
+ public boolean isOrderControlsVisible() {
+ return orderControlsVisible;
+ }
+
+ public void setOrderControlsVisible(boolean orderControlsVisible) {
+ this.orderControlsVisible = orderControlsVisible;
+ }
+
+ public boolean isFastOrderControlsVisible() {
+ return fastOrderControlsVisible;
+ }
+
+ public void setFastOrderControlsVisible(boolean fastOrderControlsVisible) {
+ this.fastOrderControlsVisible = fastOrderControlsVisible;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public boolean isShowButtonLabels() {
+ return showButtonLabels;
+ }
+
+ public void setShowButtonLabels(boolean showButtonLabels) {
+ this.showButtonLabels = showButtonLabels;
+ }
+
+ public int getLenght() {
+ return lenght;
+ }
+
+ public void setLenght(int lenght) {
+ this.lenght = lenght;
+ }
+
+ public void cbAction() {
+ info.clear();
+ info.add("commandButton submit();");
+ addSelection(getSelection());
+ }
+
+ public void clAction() {
+ info.clear();
+ info.add("commandLink submit();");
+ addSelection(getSelection());
+ }
+
+ public void bTest1(){
+ setCaptionLabel("Caption Test1");
+ setControlsHorizontalAlign("0");
+ setControlsVerticalAlign("0");
+ setControlsType("button");
+ setLenght(40);
+ setListHeight("300");
+ setListWidth("400");
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("t1 top label");
+ setBottomControlLabel("t1 bottom label");
+ setUpControlLabel("t1 up label");
+ setDownControlLabel("t1 down label");
+ addNewItem();
+ }
+
+ public void bTest2(){
+ setCaptionLabel("Caption Test2");
+ setControlsHorizontalAlign("30");
+ setControlsVerticalAlign("50");
+ setControlsType("button");
+ setLenght(40);
+ setListHeight("600");
+ setListWidth("400");
+ setFastOrderControlsVisible(false);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("t2");
+ setBottomControlLabel("t2");
+ setUpControlLabel("t2");
+ setDownControlLabel("t2");
+ addNewItem();
+ }
+
+ public void bTest3(){
+ setCaptionLabel("Caption Test3");
+ setControlsHorizontalAlign("50");
+ setControlsVerticalAlign("10");
+ setControlsType("button");
+ setLenght(40);
+ setListHeight("500");
+ setListWidth("500");
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(false);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("top");
+ setBottomControlLabel("bottom");
+ setUpControlLabel("up");
+ setDownControlLabel("down");
+ addNewItem();
+ }
+
+ public void bTest4(){
+ setCaptionLabel("Caption Test4");
+ setControlsHorizontalAlign("0");
+ setControlsVerticalAlign("0");
+ setControlsType("button");
+ setLenght(10000);
+ setListHeight("500");
+ setListWidth("600");
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(false);
+ setTopControlLabel("");
+ setBottomControlLabel("");
+ setUpControlLabel("");
+ setDownControlLabel("");
+ addNewItem();
+ }
+
+ public void bTest5(){
+ setCaptionLabel("Caption Test5");
+ setControlsHorizontalAlign("20");
+ setControlsVerticalAlign("20");
+ setControlsType("none");
+ setLenght(100);
+ setListHeight("400");
+ setListWidth("500");
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("top");
+ setBottomControlLabel("bottom");
+ setUpControlLabel("up");
+ setDownControlLabel("down");
+ addNewItem();
+ }
+
+ public ArrayList<String> getInfo() {
+ return info;
+ }
+
+ public void setInfo(ArrayList<String> info) {
+ this.info = info;
+ }
+
+ private void addSelection(Collection<Data> selection) {
+ if(selection == null) return;
+ Iterator<Data> inter = selection.iterator();
+ Data data = new Data();
+ while (inter.hasNext()) {
+ data = inter.next();
+ info.add(data.getInt0() + "; " + data.getStr0() + "; " + data.getStr0() + "submit(); " + data.getStr1() + "; " + data.getStr1() + "submit(); " + data.getStr2() + "; " + data.getStr3());
+ }
+ }
+
+ public boolean isShowAllData() {
+ return showAllData;
+ }
+
+ public void setShowAllData(boolean showAllData) {
+ this.showAllData = showAllData;
+ }
+
+ public boolean isShowSelect() {
+ return showSelect;
+ }
+
+ public void setShowSelect(boolean showSelect) {
+ this.showSelect = showSelect;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/orderingList/OrderingListConverter.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/orderingList/OrderingListConverter.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/orderingList/OrderingListConverter.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,33 @@
+package orderingList;
+import java.util.ArrayList;
+import java.util.StringTokenizer;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+
+import util.data.Data;
+
+public class OrderingListConverter implements Converter {
+
+ public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
+ String [] str = arg2.split(":");
+ return new Data(Integer.parseInt(str[0]), str[1], str[2], str[3],str[4]);
+ }
+//list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
+ Data data = (Data)arg2;
+ return data.getInt0() + ":" + data.getStr0() + ":" + data.getStr1() + ":" + data.getStr2() + ":" + data.getStr3();
+ }
+
+}
+// public Object getAsObject(FacesContext context, UIComponent component,
+// String value) {
+// int index = value.indexOf(':');
+// return new OptionItem(value.substring(0, index), Integer.valueOf(value.substring(index + 1)));
+// }
+// public String getAsString(FacesContext context, UIComponent component,
+// Object value) {
+// OptionItem optionItem = (OptionItem) value;
+// return optionItem.getName() + ":" + optionItem.getPrice();
+// }
Added: trunk/test-applications/auto-jsp/src/main/java/paint2D/Paint2D.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/paint2D/Paint2D.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/paint2D/Paint2D.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,263 @@
+/** @package
+
+ Paint2D.java
+
+ Copyright(c) exadel 2000
+
+ Author: Alex Yanul
+ Created: AY 7/30/2007 12:52:38 PM
+*/
+package paint2D;
+
+import java.awt.Color;
+import java.awt.Font;
+import java.awt.Graphics2D;
+
+import org.richfaces.component.html.HtmlPaint2D;
+
+import util.componentInfo.ComponentInfo;
+
+public class Paint2D {
+
+ private static float location = 150;
+
+ PaintData data = new PaintData();
+ private int width;
+ private int height;
+ private String title;
+ private String align; // bottom, middle, top
+ private String hspace;
+ private String vspace;
+ private String format; // jpeg|gif|png
+ private String bgcolor;
+ private String border;
+ private boolean cacheable;
+ private boolean rendered;
+ private boolean style;
+ private HtmlPaint2D htmlPaint2D = null;
+
+ public void addHtmlPaint2D(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlPaint2D);
+ }
+
+ public HtmlPaint2D getHtmlPaint2D() {
+ return htmlPaint2D;
+ }
+
+ public void setHtmlPaint2D(HtmlPaint2D htmlPaint2D) {
+ this.htmlPaint2D = htmlPaint2D;
+ }
+
+ public boolean isRerender() {
+ return rendered;
+ }
+
+ public void setRerender(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getBorder() {
+ return border;
+ }
+
+ public void setBorder(String border) {
+ this.border = border;
+ }
+
+ public Paint2D() {
+ cacheable = false;
+ width = 400;
+ align = "left";
+ height = 200;
+ title = "Pain2D title";
+ bgcolor = "white";
+ rendered = true;
+ border = "2px";
+ style = false;
+ }
+
+ public String getStyleString() {
+ if(style)
+ return "style";
+ else
+ return "";
+ }
+
+ public void paint(Graphics2D g2, Object obj) {
+ data.setText(((PaintData) obj).getText());
+ int testLenght = data.getText().length();
+ int fontSize = testLenght < 8 ? 40 : 40 - (testLenght - 8);
+ if (fontSize < 12) fontSize = 12;
+ Font font = new Font("Serif", Font.HANGING_BASELINE, fontSize);
+ g2.setFont(font);
+
+ int x = 10;
+ int y = fontSize * 5 / 2;
+ g2.translate(x, y);
+
+ g2.setPaint(Color.BLUE);
+ g2.drawString(data.getText(), 0, 0);
+ }
+
+ public int getHeight() {
+ return height;
+ }
+
+ public void setHeight(int height) {
+ this.height = height;
+ }
+
+ public int getWidth() {
+ return width;
+ }
+
+ public void setWidth(int width) {
+ this.width = width;
+ }
+
+ public String getAlign() {
+ return align;
+ }
+
+ public void setAlign(String align) {
+ this.align = align;
+ }
+
+ public String getHspace() {
+ return hspace;
+ }
+
+ public void setHspace(String hspace) {
+ this.hspace = hspace;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getVspace() {
+ return vspace;
+ }
+
+ public void setVspace(String vspace) {
+ this.vspace = vspace;
+ }
+
+ public String getFormat() {
+ return format;
+ }
+
+ public void setFormat(String format) {
+ this.format = format;
+ }
+
+ public String getBgcolor() {
+ return bgcolor;
+ }
+
+ public void setBgcolor(String bgcolor) {
+ this.bgcolor = bgcolor;
+ }
+
+ public float getLocation() {
+ return location;
+ }
+
+ public void setLocation(float location) {
+ this.location = location;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public boolean isStyle() {
+ return style;
+ }
+
+ public void setStyle(boolean style) {
+ this.style = style;
+ }
+
+ public void bTest1(){
+ setAlign("top");
+ setBgcolor("gray");
+ setBorder("3");
+ setFormat("gif");
+ setHeight(300);
+ setWidth(300);
+ setVspace("15");
+ setHspace("15");
+ setTitle("Test1");
+ //data.setText("Test1!");
+ }
+
+ public void bTest2(){
+ setAlign("middle");
+ setBgcolor("yellow");
+ setBorder("1");
+ setFormat("png");
+ setHeight(400);
+ setWidth(300);
+ setVspace("0");
+ setHspace("15");
+ setTitle("Test2");
+ //data.setText("Test2!");
+ }
+
+ public void bTest3(){
+ setAlign("left");
+ setBgcolor("lime");
+ setBorder("10");
+ setFormat("jpeg");
+ setHeight(300);
+ setWidth(400);
+ setVspace("15");
+ setHspace("0");
+ setTitle("Test3");
+ //data.setText("Test3!");
+ }
+
+ public void bTest4(){
+ setAlign("right");
+ setBgcolor("teal");
+ setBorder("3");
+ setFormat("gif");
+ setHeight(400);
+ setWidth(600);
+ setVspace("0");
+ setHspace("0");
+ setTitle("Test4");
+ //data.setText("Test4!");
+ }
+
+ public void bTest5(){
+ setAlign("botton");
+ setBgcolor("fuchsia");
+ setBorder("3");
+ setFormat("png");
+ setHeight(400);
+ setWidth(450);
+ setVspace("-5");
+ setHspace("-5");
+ setTitle("Test5");
+ //data.setText("Test5!");
+ }
+
+ public boolean isCacheable() {
+ return cacheable;
+ }
+
+ public void setCacheable(boolean cacheable) {
+ this.cacheable = cacheable;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/paint2D/PaintData.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/paint2D/PaintData.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/paint2D/PaintData.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,22 @@
+package paint2D;
+
+import java.io.Serializable;
+
+public class PaintData implements Serializable{
+ private String text;
+
+ public PaintData()
+ {
+ text = "Paint2D";
+ }
+
+ public String getText()
+ {
+ return text;
+ }
+ public void setText(String text)
+ {
+ this.text = text;
+ }
+}
+
Added: trunk/test-applications/auto-jsp/src/main/java/panel/Panel.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/panel/Panel.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/panel/Panel.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,110 @@
+package panel;
+
+import javax.faces.event.ValueChangeEvent;
+
+import org.richfaces.component.html.HtmlPanel;
+
+import util.componentInfo.ComponentInfo;
+
+public class Panel {
+
+ private boolean rendered;
+
+ private String width;
+ private String height;
+ private String[] title;
+ private HtmlPanel htmlPanel = null;
+
+ public void addHtmlPanel(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlPanel);
+ }
+
+ public HtmlPanel getHtmlPanel() {
+ return htmlPanel;
+ }
+
+ public void setHtmlPanel(HtmlPanel htmlPanel) {
+ this.htmlPanel = htmlPanel;
+ }
+
+ public Panel() {
+ rendered = false;
+ width = "350px";
+ height = "400px";
+ title = new String[] {"Titles_0", "Titles_1", "Titles_2"};
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public String[] getTitle() {
+ return title;
+ }
+
+ public void setTitle(String[] title) {
+ this.title = title;
+ }
+
+ public void makeTitle(ValueChangeEvent event){
+ String t = event.getNewValue().toString();
+ if(t.equalsIgnoreCase(""))
+ for(int i = 0; i < title.length; i++)
+ title[i] = "Titles_" + i;
+ else
+ for(int i = 0; i < title.length; i++)
+ title[i] = t + "_" + i;
+ }
+
+ public void bTest1(){
+ setWidth("500px");
+ setHeight("300px");
+ setTitle(new String [] {"Test1", "Test 1", "Test_1", "Test-1"});
+ }
+
+ public void bTest2(){
+ setWidth("500px");
+ setHeight("600px");
+ setTitle(new String [] {"Test2", "Test 2", "Test_2", "Test-2"});
+ }
+
+ public void bTest3(){
+ setWidth("50%");
+ setHeight("300px");
+ setTitle(new String [] {"Test3", "Test 3", "Test_3", "Test-3"});
+ }
+
+ public void bTest4(){
+ setWidth("400px");
+ setHeight("10%");
+ setTitle(new String [] {"Test4", "Test 4", "Test_4", "Test-4"});
+ }
+
+ public void bTest5(){
+ setWidth("400px");
+ setHeight("400px");
+ setTitle(new String [] {"Test5", "Test 5", "Test_5", "Test-5"});
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/panelBar/PanelBar.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/panelBar/PanelBar.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/panelBar/PanelBar.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,179 @@
+package panelBar;
+
+import javax.faces.event.ActionEvent;
+import javax.faces.event.ValueChangeEvent;
+
+import org.richfaces.component.html.HtmlPanelBar;
+
+import util.componentInfo.ComponentInfo;
+
+public class PanelBar {
+
+ private String width;
+ private HtmlPanelBar panelBar;
+ private String height;
+ private String contentStyle;
+ private String style=null;
+ private String headerStyle=null;
+ private String btnLabel="ON";
+
+ private String[] label = {"label_0","label_1", "label_2", "label_3"};
+
+ private boolean rendered;
+
+ public void addHtmlPanelBar(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(panelBar);
+ }
+
+ public PanelBar() {
+
+ height = "300px";
+ width = "500px";
+ rendered = true;
+ //contentStyle=null;
+ //style=null;
+ //headerStyle=null;
+ }
+
+ public void actionListener(ActionEvent e) {
+ //Application application = FacesContext.getCurrentInstance().getApplication();
+ String pId = panelBar.getId();
+ if(pId != null){
+ System.out.println("Binding test passed. PanelBar ID = " + pId);
+ }
+ }
+
+ public void doStyles()
+ {
+ if (getContentStyle() == null) {
+ setBtnLabel("OFF");
+ setContentStyle("contentStyle");
+ setHeaderStyle("activeTabStyle");
+ setStyle("style");
+ } else {
+ setBtnLabel("ON");
+ setContentStyle(null);
+ setHeaderStyle(null);
+ setStyle(null);
+ }
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public String getContentStyle() {
+ return contentStyle;
+ }
+
+ public void setContentStyle(String contentStyle) {
+ this.contentStyle = contentStyle;
+ }
+
+ public String getHeaderStyle() {
+ return headerStyle;
+ }
+
+ public void setHeaderStyle(String headerStyle) {
+ this.headerStyle = headerStyle;
+ }
+
+ public String getStyle() {
+ return style;
+ }
+
+ public void setStyle(String style) {
+ this.style = style;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public String[] getLabel() {
+ return label;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public void setLabel(String[] label) {
+
+ this.label = label;
+
+ }
+
+ public void makeLabels(ValueChangeEvent event) {
+ String tlabel = event.getNewValue().toString();
+ if (tlabel.equalsIgnoreCase("")) {
+ for (int i = 0; i < 4; i++) {
+ label[i] = "label_" + i;
+ }
+ } else {
+ for (int i = 0; i < 4; i++) {
+ label[i] = tlabel + "_" + i;
+ }
+ }
+
+ }
+
+ public String getBtnLabel() {
+ return btnLabel;
+ }
+
+ public void setBtnLabel(String btnLabel) {
+ this.btnLabel = btnLabel;
+ }
+
+ public void bTest1(){
+ setWidth("500px");
+ setHeight("300px");
+ setLabel(new String [] {"Test1", "Test 1", "Test_1", "Test-1"});
+ }
+
+ public void bTest2(){
+ setWidth("500px");
+ setHeight("600px");
+ setLabel(new String [] {"Test2", "Test 2", "Test_2", "Test-2"});
+ }
+
+ public void bTest3(){
+ setWidth("50%");
+ setHeight("300px");
+ setLabel(new String [] {"Test3", "Test 3", "Test_3", "Test-3"});
+ }
+
+ public void bTest4(){
+ setWidth("400px");
+ setHeight("10%");
+ setLabel(new String [] {"Test4", "Test 4", "Test_4", "Test-4"});
+ }
+
+ public void bTest5(){
+ setWidth("400px");
+ setHeight("400px");
+ setLabel(new String [] {"Test5", "Test 5", "Test_5", "Test-5"});
+ }
+
+ public HtmlPanelBar getPanelBar() {
+ return panelBar;
+ }
+
+ public void setPanelBar(HtmlPanelBar panelBar) {
+ this.panelBar = panelBar;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/panelMenu/PanelMenu.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/panelMenu/PanelMenu.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/panelMenu/PanelMenu.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,298 @@
+package panelMenu;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.html.HtmlPanelMenu;
+
+import util.componentInfo.ComponentInfo;
+import util.icon.Icon;
+
+public class PanelMenu {
+
+ private HtmlPanelMenu myPanelMenu;
+ private String bindingStatus;
+ private Icon icon;
+ private String width;
+ private String mode;
+ private String align;
+ private boolean rendered;
+ private String iconItemPosition;
+ private String iconItemTopPosition;
+ private String iconGroupPosition;
+ private String iconGroupTopPosition;
+ private String tabIndex;
+ private String expandMode;
+ private String inputText;
+ private boolean disabled;
+ private boolean expandSingle;
+
+ public void addHtmlPanelMenu(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(myPanelMenu);
+ }
+
+ public PanelMenu() {
+ myPanelMenu = new HtmlPanelMenu();
+ bindingStatus = "Ready";
+ width = "500px";
+ mode = "none";
+ expandMode = "none";
+ align = "";
+ rendered = true;
+ disabled = false;
+ tabIndex = "1";
+ iconGroupPosition = "left";
+ iconGroupTopPosition = "left";
+ iconItemPosition = "left";
+ iconGroupTopPosition = "left";
+ icon = new Icon();
+ icon.setCollapsed(icon.iconCollapse);
+ icon.setExpanded(icon.iconExpand);
+ icon.setItem(icon.iconItem);
+ icon.setIcon(icon.iconFileManager);
+ icon.setCollapsedGroup(icon.iconAjaxProcess);
+ icon.setDisabledGroup(icon.iconAjaxStoped);
+ }
+
+ public void panelAction(ActionEvent e) {
+ FacesContext context = FacesContext.getCurrentInstance();
+ if (context != null) {
+ System.out.println("=============");
+ System.out.println(myPanelMenu.getClientId(context));
+ System.out.println("=============");
+ bindingStatus = "Passed";
+ } else {
+ bindingStatus = "Failed";
+ }
+
+ }
+
+ public boolean isDisabled() {
+ return disabled;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public void setDisabled(boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ public boolean isExpandSingle() {
+ return expandSingle;
+ }
+
+ public void setExpandSingle(boolean expandSingle) {
+ this.expandSingle = expandSingle;
+ }
+
+ public String getAlign() {
+ return align;
+ }
+
+ public void setAlign(String align) {
+ this.align = align;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public Icon getIcon() {
+ return icon;
+ }
+
+ public void setIcon(Icon icon) {
+ this.icon = icon;
+ }
+
+ public String getIconGroupPosition() {
+ return iconGroupPosition;
+ }
+
+ public void setIconGroupPosition(String iconGroupPosition) {
+ this.iconGroupPosition = iconGroupPosition;
+ }
+
+ public String getIconGroupTopPosition() {
+ return iconGroupTopPosition;
+ }
+
+ public void setIconGroupTopPosition(String iconGroupTopPosition) {
+ this.iconGroupTopPosition = iconGroupTopPosition;
+ }
+
+ public String getIconItemPosition() {
+ return iconItemPosition;
+ }
+
+ public void setIconItemPosition(String iconItemPosition) {
+ this.iconItemPosition = iconItemPosition;
+ }
+
+ public String getIconItemTopPosition() {
+ return iconItemTopPosition;
+ }
+
+ public void setIconItemTopPosition(String iconItemTopPosition) {
+ this.iconItemTopPosition = iconItemTopPosition;
+ }
+
+ public String getMode() {
+ return mode;
+ }
+
+ public void setMode(String mode) {
+ this.mode = mode;
+ }
+
+ public String getTabIndex() {
+ return tabIndex;
+ }
+
+ public void setTabIndex(String tabIndex) {
+ this.tabIndex = tabIndex;
+ }
+
+ public String getExpandMode() {
+ return expandMode;
+ }
+
+ public void setExpandMode(String expandMode) {
+ this.expandMode = expandMode;
+ }
+
+ public String getInputText() {
+ return inputText;
+ }
+
+ public void setInputText(String inputText) {
+ this.inputText = inputText;
+ }
+
+ public void bTest1() {
+ icon.setCollapsed(icon.iconCollapse);
+ icon.setExpanded(icon.iconExpand);
+ icon.setItem(icon.iconItem);
+ icon.setIcon(icon.iconFileManager);
+ icon.setCollapsedGroup(icon.iconAjaxProcess);
+ icon.setDisabledGroup(icon.iconAjaxStoped);
+
+ setWidth("400px");
+ setAlign("right");
+ setDisabled(false);
+ setExpandMode("ajax");
+ setExpandSingle(false);
+ setIconGroupPosition("left");
+ setIconGroupTopPosition("right");
+ setIconItemPosition("left");
+ setIconItemTopPosition("right");
+ setMode("ajax");
+ setTabIndex("3");
+ }
+
+ public void bTest2() {
+ icon.setCollapsed(icon.iconExpand);
+ icon.setExpanded(icon.iconCollapse);
+ icon.setItem(icon.iconHeader);
+ icon.setIcon(icon.iconFileManagerReject);
+ icon.setCollapsedGroup(icon.iconAjaxStoped);
+ icon.setDisabledGroup(icon.iconAjaxProcess);
+
+ setWidth("250px");
+ setAlign("bottom");
+ setDisabled(false);
+ setExpandMode("server");
+ setExpandSingle(false);
+ setIconGroupPosition("right");
+ setIconGroupTopPosition("left");
+ setIconItemPosition("right");
+ setIconItemTopPosition("left");
+ setMode("server");
+ setTabIndex("2");
+ }
+
+ public void bTest3() {
+ icon.setCollapsed(icon.iconCollapse);
+ icon.setExpanded(icon.iconExpand);
+ icon.setItem(icon.iconItem);
+ icon.setIcon(icon.iconFileManager);
+ icon.setCollapsedGroup(icon.iconAjaxProcess);
+ icon.setDisabledGroup(icon.iconAjaxStoped);
+
+ setWidth("400px");
+ setAlign("middle");
+ setDisabled(false);
+ setExpandMode("server");
+ setExpandSingle(false);
+ setIconGroupPosition("right");
+ setIconGroupTopPosition("right");
+ setIconItemPosition("right");
+ setIconItemTopPosition("left");
+ setMode("none");
+ setTabIndex("2");
+
+ }
+
+ public void bTest4() {
+ icon.setCollapsed(icon.iconExpand);
+ icon.setExpanded(icon.iconCollapse);
+ icon.setItem(icon.iconHeader);
+ icon.setIcon(icon.iconFileManagerReject);
+ icon.setCollapsedGroup(icon.iconAjaxStoped);
+ icon.setDisabledGroup(icon.iconAjaxProcess);
+
+ setWidth("250px");
+ setAlign("top");
+ setDisabled(true);
+ setExpandMode("none");
+ setExpandSingle(false);
+ setIconGroupPosition("left");
+ setIconGroupTopPosition("left");
+ setIconItemPosition("left");
+ setIconItemTopPosition("left");
+ setMode("ajax");
+ setTabIndex("2");
+
+ }
+
+ public void bTest5() {
+ icon.setCollapsed(icon.iconCollapse);
+ icon.setExpanded(icon.iconExpand);
+ icon.setItem(icon.iconItem);
+ icon.setIcon(icon.iconFileManager);
+ icon.setCollapsedGroup(icon.iconAjaxProcess);
+ icon.setDisabledGroup(icon.iconAjaxStoped);
+
+ setWidth("250px");
+ setAlign("right");
+ setDisabled(false);
+ setExpandMode("none");
+ setExpandSingle(true);
+ setIconGroupPosition("right");
+ setIconGroupTopPosition("right");
+ setIconItemPosition("right");
+ setIconItemTopPosition("right");
+ setMode("none");
+ setTabIndex("2");
+
+ }
+
+ public HtmlPanelMenu getMyPanelMenu() {
+ return myPanelMenu;
+ }
+
+ public void setMyPanelMenu(HtmlPanelMenu myPanelMenu) {
+ this.myPanelMenu = myPanelMenu;
+ }
+}
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/java/pickList/PickList.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/pickList/PickList.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/pickList/PickList.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,263 @@
+package pickList;
+
+import java.util.ArrayList;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+import javax.faces.event.ValueChangeEvent;
+import javax.faces.model.SelectItem;
+
+import org.richfaces.component.html.HtmlPickList;
+
+import util.componentInfo.ComponentInfo;
+
+public class PickList {
+ public String copyAllControlLabel;
+ public String copyControlLabel;
+ public boolean disabled;
+ public boolean fastOrderControlsVisible;
+ public boolean immediate;
+ public String listsHeight;
+ public String localValueSet;
+ public String moveControlsVerticalAlign;
+ public String removeAllControlLabel;
+ public String removeControlLabel;
+ public boolean rendered;
+ public boolean showButtonLabels;
+ public String sourceListWidth;
+ public boolean switchByClick;
+ public String targetListWidth;
+ public String title;
+ private ArrayList<SelectItem> data;
+ private boolean required;
+ private String requiredMessage;
+ private Object[] value;
+ private String valueCL;
+ private HtmlPickList myPickList = null;
+ private String bindLabel;
+
+ public void addHtmlPickList(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(myPickList);
+ }
+
+ public PickList() {
+ this.copyAllControlLabel = "copyAllControlLabel";
+ this.copyControlLabel = "copyControlLabel";
+ this.disabled = false;
+ this.fastOrderControlsVisible = true;
+ this.immediate = false;
+ this.listsHeight = "400";
+ this.valueCL = "---";
+ // this.localValueSet = ;
+ this.moveControlsVerticalAlign = "center";
+ this.removeAllControlLabel = "removeAllControlLabel";
+ this.removeControlLabel = "removeControlLabel";
+ this.rendered = true;
+ this.showButtonLabels = true;
+ this.sourceListWidth = "300";
+ this.switchByClick = false;
+ this.targetListWidth = "400";
+ this.title = "title";
+ this.required = false;
+ this.requiredMessage = "requiredMessage";
+ this.bindLabel = "Click Binding";
+ data = new ArrayList<SelectItem>();
+ for (int i = 0; i < 10; i++)
+ data.add(new SelectItem("selectItems " + i));
+ }
+
+ public HtmlPickList getMyPickList() {
+ return myPickList;
+ }
+
+ public void setMyPickList(HtmlPickList myPickList) {
+ this.myPickList = myPickList;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public String getValueCL() {
+ return valueCL;
+ }
+
+ public void setValueCL(String valueCL) {
+ this.valueCL = valueCL;
+ }
+
+ public boolean isRequired() {
+ return required;
+ }
+
+ public void setRequired(boolean required) {
+ this.required = required;
+ }
+
+ public String getRequiredMessage() {
+ return requiredMessage;
+ }
+
+ public void setRequiredMessage(String requiredMessage) {
+ this.requiredMessage = requiredMessage;
+ }
+
+ public void valueChangeListener(ValueChangeEvent event) {
+ valueCL = "valueChangeListener work!";
+ }
+
+ public String getCopyAllControlLabel() {
+ return copyAllControlLabel;
+ }
+
+ public void setCopyAllControlLabel(String copyAllControlLabel) {
+ this.copyAllControlLabel = copyAllControlLabel;
+ }
+
+ public String getCopyControlLabel() {
+ return copyControlLabel;
+ }
+
+ public void setCopyControlLabel(String copyControlLabel) {
+ this.copyControlLabel = copyControlLabel;
+ }
+
+ public boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ public boolean isFastOrderControlsVisible() {
+ return fastOrderControlsVisible;
+ }
+
+ public void setFastOrderControlsVisible(boolean fastOrderControlsVisible) {
+ this.fastOrderControlsVisible = fastOrderControlsVisible;
+ }
+
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+ public String getListsHeight() {
+ return listsHeight;
+ }
+
+ public void setListsHeight(String listsHeight) {
+ this.listsHeight = listsHeight;
+ }
+
+ public String getLocalValueSet() {
+ return localValueSet;
+ }
+
+ public void setLocalValueSet(String localValueSet) {
+ this.localValueSet = localValueSet;
+ }
+
+ public String getMoveControlsVerticalAlign() {
+ return moveControlsVerticalAlign;
+ }
+
+ public void setMoveControlsVerticalAlign(String moveControlsVerticalAlign) {
+ this.moveControlsVerticalAlign = moveControlsVerticalAlign;
+ }
+
+ public String getRemoveAllControlLabel() {
+ return removeAllControlLabel;
+ }
+
+ public void setRemoveAllControlLabel(String removeAllControlLabel) {
+ this.removeAllControlLabel = removeAllControlLabel;
+ }
+
+ public String getRemoveControlLabel() {
+ return removeControlLabel;
+ }
+
+ public void setRemoveControlLabel(String removeControlLabel) {
+ this.removeControlLabel = removeControlLabel;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getSourceListWidth() {
+ return sourceListWidth;
+ }
+
+ public void setSourceListWidth(String sourceListWidth) {
+ this.sourceListWidth = sourceListWidth;
+ }
+
+ public boolean isSwitchByClick() {
+ return switchByClick;
+ }
+
+ public void setSwitchByClick(boolean switchByClick) {
+ this.switchByClick = switchByClick;
+ }
+
+ public String getTargetListWidth() {
+ return targetListWidth;
+ }
+
+ public void setTargetListWidth(String targetListWidth) {
+ this.targetListWidth = targetListWidth;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public boolean isShowButtonLabels() {
+ return showButtonLabels;
+ }
+
+ public void setShowButtonLabels(boolean showButtonLabels) {
+ this.showButtonLabels = showButtonLabels;
+ }
+
+ public ArrayList<SelectItem> getData() {
+ return data;
+ }
+
+ public void setData(ArrayList<SelectItem> data) {
+ this.data = data;
+ }
+
+ public Object[] getValue() {
+ return value;
+ }
+
+ public void setValue(Object[] value) {
+ this.value = value;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myPickList.getClientId(context);
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/progressBar/ProgressBar.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/progressBar/ProgressBar.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/progressBar/ProgressBar.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,181 @@
+package progressBar;
+
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.html.HtmlProgressBar;
+
+import util.componentInfo.ComponentInfo;
+import util.data.Data;
+
+public class ProgressBar {
+ private boolean ajaxSingle;
+ private double value;
+ private boolean enabled;
+ private String mode;
+ private String interval;
+ private String maxValue;
+ private String minValue;
+ private String label;
+ private boolean dualColoredLabel;
+ private boolean rendered;
+ private String listnerInfo;
+ private boolean ignoreDupResponses;
+ private boolean permanent;
+ private boolean immediate;
+ private HtmlProgressBar htmlProgressBar = null;
+
+ public HtmlProgressBar getHtmlProgressBar() {
+ return htmlProgressBar;
+ }
+
+ public void setHtmlProgressBar(HtmlProgressBar htmlProgressBar) {
+ this.htmlProgressBar = htmlProgressBar;
+ }
+
+ public void addHtmlProgressBar(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlProgressBar);
+ }
+
+ public boolean isIgnoreDupResponses() {
+ return ignoreDupResponses;
+ }
+
+ public void setIgnoreDupResponses(boolean ignoreDupResponses) {
+ this.ignoreDupResponses = ignoreDupResponses;
+ }
+
+ public String getListnerInfo() {
+ return listnerInfo;
+ }
+
+ public void setListnerInfo(String listnerInfo) {
+ this.listnerInfo = listnerInfo;
+ }
+
+ public String getLoadInfo() {
+ return Data.cityAfrica[Math.abs((int)value) % 62];
+ }
+
+ public ProgressBar() {
+ immediate = false;
+ label = "label";
+ ajaxSingle = false;
+ value = 0L;
+ enabled = false;
+ mode = "ajax";
+ interval = "500";
+ maxValue = "100";
+ minValue = "0";
+ dualColoredLabel = false;
+ rendered = true;
+ ignoreDupResponses = false;
+ permanent = false;
+ }
+
+ public String action() {
+ System.out.println("action");
+ return null;
+ }
+
+ public void actionListener(ActionEvent actionEvent){
+ System.out.println("actionEvent");
+ }
+
+ public boolean isAjaxSingle() {
+ return ajaxSingle;
+ }
+
+ public void setAjaxSingle(boolean ajaxSingle) {
+ this.ajaxSingle = ajaxSingle;
+ }
+
+ public boolean isEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ public String getMode() {
+ return mode;
+ }
+
+ public void setMode(String mode) {
+ this.mode = mode;
+ }
+
+ public String getInterval() {
+ return interval;
+ }
+
+ public void setInterval(String interval) {
+ this.interval = interval;
+ }
+
+ public String getMaxValue() {
+ return maxValue;
+ }
+
+ public void setMaxValue(String maxValue) {
+ this.maxValue = maxValue;
+ }
+
+ public String getMinValue() {
+ return minValue;
+ }
+
+ public void setMinValue(String minValue) {
+ this.minValue = minValue;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public double getValue() {
+ // without a vodka bottle you will not understand :)
+ return enabled ? (permanent ? new Integer(maxValue) : value++) : value;
+ }
+
+ public void setValue(double value) {
+ this.value = value;
+ }
+
+ public boolean isDualColoredLabel() {
+ return dualColoredLabel;
+ }
+
+ public void setDualColoredLabel(boolean dualColoredLabel) {
+ this.dualColoredLabel = dualColoredLabel;
+ }
+
+ public boolean isPermanent() {
+ return permanent;
+ }
+
+ public void setPermanent(boolean permanent) {
+ this.permanent = permanent;
+ }
+
+ public String getLabel() {
+ return label;
+ }
+
+ public void setLabel(String label) {
+ this.label = label;
+ }
+
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/rich/MapComponent.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/rich/MapComponent.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/rich/MapComponent.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,26 @@
+package rich;
+
+import java.util.ArrayList;
+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 TreeMap<String, ArrayList<String>>();
+ }
+
+ public void add(String component, ArrayList<String> path) {
+ m.put(component, path);
+ }
+
+ public ArrayList<String> get(String key){
+ return m.get(key);
+ }
+
+ public Set getSet() {
+ return m.keySet();
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/rich/Options.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/rich/Options.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/rich/Options.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,68 @@
+package rich;
+
+public class Options {
+ private boolean log;
+ private boolean reDefault ;
+ private boolean reComponent;
+ private boolean reProperty;
+ private boolean reStraightforward;
+ private boolean attribute;
+
+ public boolean isAttribute() {
+ return attribute;
+ }
+
+ public void setAttribute(boolean attribute) {
+ this.attribute = attribute;
+ }
+
+ public Options() {
+ log = false;
+ reDefault = true;
+ reComponent = true;
+ reProperty = true;
+ reStraightforward = true;
+ attribute = false;
+ }
+
+ public boolean isReComponent() {
+ return reComponent;
+ }
+ public void setReComponent(boolean reComponent) {
+ this.reComponent = reComponent;
+ }
+ public boolean isReProperty() {
+ return reProperty;
+ }
+ public void setReProperty(boolean reProperty) {
+ this.reProperty = reProperty;
+ }
+ public boolean isReStraightforward() {
+ return reStraightforward;
+ }
+ public void setReStraightforward(boolean reStraightforward) {
+ this.reStraightforward = reStraightforward;
+ }
+
+ public boolean isReDefault() {
+ return reDefault;
+ }
+
+ public void setReDefault(boolean reDefault) {
+ this.reDefault = reDefault;
+ }
+
+ /**
+ * @return the log
+ */
+ public boolean isLog() {
+ return log;
+ }
+
+ /**
+ * @param log the log to set
+ */
+ public void setLog(boolean log) {
+ this.log = log;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/rich/RichBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/rich/RichBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,156 @@
+package rich;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.faces.context.FacesContext;
+import javax.faces.model.SelectItem;
+
+//import org.richfaces.VersionBean;
+
+public class RichBean {
+ private static final String EXT = ".jsp";
+ private String version = "3.2.2"; //VersionBean.SCM_REVISION;
+ private String src;
+ private String srcContainer;
+ private MapComponent map;
+ private List<SelectItem> list;
+
+
+ public RichBean() {
+ list = new ArrayList<SelectItem>();
+ src = "Blank";
+ srcContainer = "Blank";
+ map = new MapComponent();
+ // map.add( value, add( pages_path/name_pages, array<boolean>(Property, Straightforward) );
+ map.add("Blank", add("/pages/Blank/Blank", new boolean [] {true, true, true}));
+ map.add("Calendar", add("/Calendar/Calendar", new boolean [] {true, true, true}));
+ map.add("DataFilterSlider", add("/DataFilterSlider/DataFilterSlider", new boolean [] {true, true, false}));
+ map.add("DataScroller", add("/DataScroller/DataScroller", new boolean [] {true, true, true}));
+ map.add("DataTable", add("/DataTable/DataTable", new boolean [] {true, true, true}));
+ map.add("DragAndDrop", add("/DragAndDrop/DragAndDrop", new boolean [] {false, false, false}));
+ map.add("DropDownMenu", add("/DropDownMenu/DropDownMenu", new boolean [] {false, true, true}));
+ map.add("Effect", add("/Effect/Effect", new boolean [] {false, false, false}));
+ map.add("Gmap", add("/Gmap/Gmap", new boolean [] {false, true, false}));
+ map.add("InputNumberSlider", add("/InputNumberSlider/InputNumberSlider", new boolean [] {false, true, true}));
+ map.add("InputNumberSpinner", add("/InputNumberSpinner/InputNumberSpinner", new boolean [] {false, true, true}));
+ map.add("Insert", add("/Insert/Insert", new boolean [] {false, true, false}));
+ map.add("Message", add("/Message/Message", new boolean [] {false, true, true}));
+ map.add("ModalPanel", add("/ModalPanel/ModalPanel", new boolean [] {false, true, true}));
+ map.add("Paint2D", add("/Paint2D/Paint2D", new boolean [] {false, true, true}));
+ map.add("Panel", add("/Panel/Panel", new boolean [] {false, true, true}));
+ map.add("PanelBar", add("/PanelBar/PanelBar", new boolean [] {false, true, true}));
+ map.add("PanelMenu", add("/PanelMenu/PanelMenu", new boolean [] {false, true, true}));
+ map.add("Separator", add("/Separator/Separator", new boolean [] {false, true, true}));
+ map.add("SimpleTogglePanel", add("/SimpleTogglePanel/SimpleTogglePanel", new boolean [] {false, true, true}));
+ map.add("Spacer", add("/Spacer/Spacer", new boolean [] {false, true, true}));
+ map.add("SuggestionBox", add("/SuggestionBox/SuggestionBox", new boolean [] {false, true, true}));
+ map.add("TabPanel", add("/TabPanel/TabPanel", new boolean [] {false, true, true}));
+ map.add("TogglePanel", add("/TogglePanel/TogglePanel", new boolean [] {false, true, true}));
+ map.add("ToolBar", add("/ToolBar/ToolBar", new boolean [] {false, true, false}));
+ map.add("Tooltip", add("/Tooltip/Tooltip", new boolean [] {false, true, true}));
+ map.add("Tree", add("/Tree/Tree", new boolean [] {false, true, false}));
+ map.add("VirtualEarth", add("/VirtualEarth/VirtualEarth", new boolean [] {false, true, false}));
+ map.add("ScrollableDataTable", add("/ScrollableDataTable/ScrollableDataTable", new boolean [] {false, true, false}));
+ map.add("jQuery", add("/jQuery/jQuery", new boolean [] {true, false, false}));
+ map.add("OrderingList", add("/OrderingList/OrderingList", new boolean [] {false, true, true}));
+ map.add("DataDefinitionList", add("/DataDefinitionList/DataDefinitionList", new boolean [] {false, true, false}));
+ map.add("DataOrderedList", add("/DataOrderedList/DataOrderedList", new boolean [] {false, true, false}));
+ map.add("ContextMenu", add("/ContextMenu/ContextMenu", new boolean [] {false, true, false}));
+ map.add("ListShuttle", add("/ListShuttle/ListShuttle", new boolean [] {false, true, true}));
+ map.add("ComponentControl", add("/ComponentControl/ComponentControl", new boolean [] {false, false, false}));
+ map.add("Columns", add("/Columns/Columns", new boolean [] {false, true, false}));
+ map.add("PickList", add("/PickList/PickList", new boolean [] {false, true, false}));
+ map.add("Combobox", add("/Combobox/Combobox", new boolean [] {false, true, false}));
+ map.add("ProgressBar", add("/ProgressBar/ProgressBar", new boolean [] {false, false, false}));
+ map.add("SortingAndFiltering", add("/SortingAndFiltering/SortingAndFiltering", new boolean [] {false, false, false}));
+ map.add("FileUpload", add("/FileUpload/FileUpload", new boolean [] {false, false, false}));
+ map.add("InplaceSelect", add("/InplaceSelect/InplaceSelect", new boolean [] {false, true, false}));
+ map.add("InplaceInput", add("/InplaceInput/InplaceInput", new boolean [] {false, true, false}));
+ map.add("Skinning", add("/Skinning/Skinning", new boolean [] {false, false, false}));
+ map.add("HotKey", add("/HotKey/HotKey", new boolean [] {true, false, false}));
+ map.add("Validator", add("/Validator/Validator", new boolean [] {true, true, true}));
+ map.add("DataGrid", add("/DataGrid/DataGrid", new boolean [] {false, true, false}));
+ map.add("ExtendedDataTable", add("/ExtendedDataTable/ExtendedDataTable", new boolean [] {false, true, false}));
+ Iterator<String> iterator = map.getSet().iterator();
+ while(iterator.hasNext()){
+ list.add(new SelectItem(iterator.next()));
+ }
+ }
+
+ public String getSrc() {
+ return src;
+ }
+
+ public String getPathComponent() {
+ return map.get(src).get(0);
+ }
+
+ public String getDefaultPathComponent() {
+ return map.get(src).get(1);
+ }
+
+ public String getPathProperty() {
+ return map.get(src).get(2);
+ }
+
+ public String getPathStraightforward() {
+ return map.get(src).get(3);
+ }
+
+ public void setSrc(String src) {
+ this.src = src;
+ }
+
+ private ArrayList<String> add(String path, boolean [] arr){
+ ArrayList<String> list = new ArrayList<String>();
+ list.add(path + EXT);
+ if(arr[0]) list.add(path + "Default" + EXT); else list.add("/pages/Blank/BlankDefault" + EXT);
+ if(arr[1]) list.add(path + "Property" + EXT); else list.add("/pages/Blank/BlankProperty" + EXT);
+ if(arr[2]) list.add(path + "Straightforward" + EXT); else list.add("/pages/Blank/BlankStraightforward" + EXT);
+ return list;
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ public List<SelectItem> getList(){
+ return list;
+ }
+
+ public String getSrcContainer() {
+ return srcContainer;
+ }
+
+ public void setSrcContainer(String srcContainer) {
+ this.srcContainer = srcContainer;
+ }
+
+ public String getPathComponentContainer() {
+ return map.get(srcContainer).get(0);
+ }
+
+ public List<SelectItem> getListContainer() {
+ Iterator<String> iterator = map.getSet().iterator();
+ List<SelectItem> l = new ArrayList<SelectItem>();
+ String str;
+ while(iterator.hasNext()){
+ str = iterator.next();
+ if(!str.equals(src))
+ l.add(new SelectItem(str));
+ }
+ return l;
+ }
+
+ public String invalidateSession(){
+ FacesContext context = FacesContext.getCurrentInstance();
+ System.out.println("RichBean.invalidateSession()");
+ return "RichFaces";
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/richTest/RichTest.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/richTest/RichTest.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/richTest/RichTest.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,23 @@
+package richTest;
+
+import java.util.ArrayList;
+
+import org.richfaces.component.Dropzone;
+import org.richfaces.event.DropEvent;
+import org.richfaces.event.DropListener;
+
+
+public class RichTest {
+ private String [] items = new String [] {"item 1", "item 2", "item 3", "item 4", "item 5", "item 6", "item 7", "item 8", "item 9", "item 10", "item 11", "item 12", "item 13", "item 14", "item 15"};
+
+ public RichTest() {
+ }
+
+ public String[] getItems() {
+ return items;
+ }
+
+ public void setItems(String[] items) {
+ this.items = items;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/sTP/SimpleTogglePanel.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/sTP/SimpleTogglePanel.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/sTP/SimpleTogglePanel.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,138 @@
+package sTP;
+
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.html.HtmlSimpleTogglePanel;
+
+import util.componentInfo.ComponentInfo;
+
+public class SimpleTogglePanel {
+
+ private String switchType; // "client", "server"(default), "ajax"
+ private String width;
+ private String height;
+ private String position = "right";
+ private boolean focus;
+ private boolean rendered;
+ private String action;
+ private String actionListener;
+ private HtmlSimpleTogglePanel htmlSimpleTogglePanel = null;
+
+ public void addHtmlSimpleTogglePanel(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlSimpleTogglePanel);
+ }
+
+ public HtmlSimpleTogglePanel getHtmlSimpleTogglePanel() {
+ return htmlSimpleTogglePanel;
+ }
+
+ public void setHtmlSimpleTogglePanel(HtmlSimpleTogglePanel htmlSimpleTogglePanel) {
+ this.htmlSimpleTogglePanel = htmlSimpleTogglePanel;
+ }
+
+ public SimpleTogglePanel() {
+ width = "75%";
+ height = "100%";
+ switchType = "server";
+ focus = true;
+ rendered = true;
+ action = "---";
+ actionListener = "---";
+ }
+
+ public String act() {
+ action = "action work!";
+ return null;
+ }
+
+ public void actListener(ActionEvent e){
+ actionListener = "actionListener work!";
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getSwitchType() {
+ return switchType;
+ }
+
+ public void setSwitchType(String switchType) {
+ this.switchType = switchType;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public boolean isFocus() {
+ return focus;
+ }
+
+ public void setFocus(boolean focus) {
+ this.focus = focus;
+ }
+
+ public void bTest1(){
+ setHeight("80px");
+ setWidth("300px");
+ setSwitchType("ajax");
+ }
+
+ public void bTest2(){
+ setHeight("10%");
+ setWidth("100%");
+ setSwitchType("client");
+ }
+
+ public void bTest3(){
+ setHeight("80px");
+ setWidth("100%");
+ setSwitchType("server");
+ }
+
+ public void bTest4(){
+ setHeight("10%");
+ setWidth("200px");
+ setSwitchType("client");
+ }
+
+ public void bTest5(){
+ setHeight("400px");
+ setWidth("250px");
+ setSwitchType("client");
+ }
+
+ public String getPosition() {
+ return position;
+ }
+
+ public void setPosition(String position) {
+ this.position = position;
+ }
+
+ public String getAction() {
+ return action;
+ }
+
+ public String getActionListener() {
+ return actionListener;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/sb/Data.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/sb/Data.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/sb/Data.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,50 @@
+package sb;
+
+public class Data {
+ private String city;
+ private String contry;
+ private boolean flag;
+ private String text;
+
+ public Data(String city, String contry, boolean flag) {
+ this.city = city;
+ this.contry = contry;
+ this.flag = flag;
+ }
+
+ public boolean getFlag() {
+ return flag;
+ }
+
+ public void setFlag(boolean flag) {
+ this.flag = flag;
+ }
+
+ public String getCity() {
+ return city;
+ }
+
+ public void setCity(String city) {
+ this.city = city;
+ }
+
+ public String getContry() {
+ return contry;
+ }
+
+ public void setContry(String contry) {
+ this.contry = contry;
+ }
+
+ public String getText() {
+ return city + " - " + contry;
+ }
+
+ public String toString() {
+ return city + " (" + contry + ")";
+ }
+
+ public void setText(String text) {
+ this.text = text;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/sb/Sb.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/sb/Sb.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/sb/Sb.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,504 @@
+package sb;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.html.HtmlSuggestionBox;
+import org.richfaces.renderkit.html.SuggestionBoxRenderer;
+
+import util.componentInfo.ComponentInfo;
+
+public class Sb implements Serializable {
+
+ private ArrayList cities;
+ private ArrayList data;
+ private String first;
+ private int zindex;
+ private double frequency;
+ private String property;
+ private String rows;
+ private String cellspacing;
+ private String cellpadding;
+ private String minchars;
+ private String rules;
+ private String border;
+ private String width;
+ private String height;
+ private String shadowOpacity;
+ private String bgColor;
+ private String shadowDepth;
+ private Object tokens;
+ private boolean focus;
+ private boolean ajaxSingle;
+ private boolean rendered;
+ private boolean selfRendered;
+ private String value;
+ private String dir;
+ private int requestDelay;
+ private HtmlSuggestionBox mySuggestionBox = null;
+ private String bindLabel;
+ private boolean bypassUpdates;
+ private String frame;
+ private boolean ignoreDupResponses;
+ private boolean immediate;
+ private String nothingLabel;
+ private boolean usingSuggestObjects;
+
+ /*
+ * private static final String[] cit = { "Abba", "Abbeville", "Acworth",
+ * "Adairsville", "Adel", "Adrian", "Ailey", "Alamo", "Alapaha", "Albany",
+ * "Allenhurst", "Alma", "Alma", "Alpharetta", "Alston", "Amboy", "Ambrose",
+ * "Americus", "Appling", "Arlington", "Ashburn", "Athens", "Athens-Clarke
+ * County", "Atkinson", "Atlanta", "Attapulgus", "Auburn", "Augusta",
+ * "Augusta-Richmond County", "Austell", "Avondale Estates", "Axson" };
+ */
+ private static final String[] cityAfrica = {"Africa", "Algeria", "Angola", "Bassas da India", "Benin", "Botswana", "Burkina Faso", "Burundi", "Cameroon", "Central African Republic", "Chad", "Comoros", "Democratic Republic of the Congo", "Djibouti", "Egypt", "Equatorial Guinea", "Eritrea", "Ethiopia", "Europa Island", "Gabon", "Gambia", "Ghana", "Glorioso Islands", "Guinea", "Guinea-Bissau", "Ivory Coast", "Juan de Nova Island", "Kenya", "Lesotho", "Liberia", "Libya", "Madagascar", "Malawi", "Mali", "Mauritania", "Mauritius Island", "Mayotte", "Morocco", "Mozambique", "Namibia", "Niger", "Nigeria", "Republic of the Congo", "Reunion", "Rwanda", "Saint Helena", "Sao Tome and Principe", "Senegal", "Seychelles", "Sierra Leone", "Somalia", "South Africa", "Sudan", "Swaziland", "Tanzania", "Togo", "Tromelin Island", "Tunisia", "Uganda", "Western Sahara", "Zambia", "Zimbabwe"};
+ private static final String[] cityAsia = {"Asia", "Afghanistan", "Armenia", "Azerbaijan", "Bangladesh", "Bhutan", "China", "Georgia", "India", "Japan", "Kazakhstan", "Korea, North", "Korea, South", "Kyrgyzstan", "Maldives", "Mongolia", "Nepal", "Pakistan", "Russia", "Sri Lanka", "Tajikistan", "Turkmenistan", "Uzbekistan"};
+ private static final String[] cityCAmerica = {"Central America", "Belize", "Costa Rica", "El Salvador", "Guatemala", "Honduras", "Nicaragua", "Panama"};
+ private static final String[] cityEurope = {"Europe", "Albania", "Andorra", "Austria", "Belarus", "Belgium", "Bosnia and Herzegovina", "Bulgaria", "Canary Islands", "Croatia", "Czech Republic", "Denmark", "Estonia", "Faroe Islands", "Finland", "France", "Germany", "Gibraltar", "Greece", "Guernsey", "Hungary", "Iceland", "Ireland", "Isle of Man", "Italy", "Jersey", "Latvia", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Malta", "Moldova", "Monaco", "Montenegro", "Netherlands", "Norway", "Poland", "Portugal", "Romania", "San Marino", "Serbia and Montenegro", "Slovakia", "Slovenia", "Spain", "Sweden", "Switzerland", "Ukraine", "United Kingdom", "Vatican The Holy See"};
+ private static final String[] cityMEast = {"Middle East", "Akrotiri", "Bahrain", "Cyprus", "Dhekelia", "Gaza Strip", "Iran", "Iraq", "Israel", "Jordan", "Kuwait", "Lebanon", "Oman", "Qatar", "Saudi Arabia", "Syria", "Turkey", "United Arab Emirates", "West Bank", "Yemen"};
+ private static final String[] cityNAmerica = {"North America", "Bermuda", "Canada", "Greenland", "Mexico", "Saint Pierre and Miquelon", "United States of America"};
+ private static final String[] cityOceania = {"Oceania", "American Samoa", "Australia", "Baker Island", "Cook Islands", "Coral Sea Islands", "Fiji", "French Polynesia", "Guam", "Howland Island", "Jarvis Island", "Johnston Atoll", "Kingman Reef", "Kiribati", "Marshall Islands", "Micronesia", "Midway Islands", "Nauru", "New Caledonia", "New Zealand", "Niue", "Norfolk Island", "Northern Mariana Islands", "Palau", "Palmyra Atoll", "Papua New Guinea", "Pitcairn Islands", "Samoa", "Solomon Islands", "Tokelau", "Tonga", "Tuvalu", "Vanuatu", "Wake Island", "Wallis and Futuna"};
+ private static final String[] citySAmerica = {"South America","Argentina", "Bolivia", "Brazil", "Chile", "Colombia", "Easter Island", "Ecuador", "Falkland Islands", "French Guiana", "Guyana", "Paraguay", "Peru", "Suriname", "Uruguay", "Venezuela"};
+ private static final String[] citySEAsia = {"SouthEast Asia", "Ashmore and Cartier Islands", "Brunei", "Burma", "Cambodia", "Christmas Island", "Cocos (Keeling) Islands", "East Timor", "Hong Kong", "Indonesia", "Laos", "Malaysia", "Paracel Islands", "Philippines", "Singapore", "Spratly Islands", "Taiwan", "Thailand", "Vietnam"};
+ private static final String[] cityCaribbean = {"The Caribbean", "Anguilla", "Antigua and Barbuda", "Aruba", "Barbados", "British Virgin Islands", "Cayman Islands", "Cuba", "Dominica", "Dominican Republic", "Grenada", "Guadeloupe", "Haiti", "Jamaica", "Martinique", "Montserrat", "Navassa Island", "Netherlands Antilles", "Puerto Rico", "Saint Barthelemy", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "The Bahamas", "Trinidad and Tobago", "Turks and Caicos Islands", "Virgin Islands"};
+
+
+ public void addHtmlSuggestionBox(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(mySuggestionBox);
+ }
+
+ public Sb() {
+ ignoreDupResponses = true;
+ immediate = true;
+ dir = "LTR";
+ ajaxSingle = false;
+ rendered = true;
+ selfRendered = false;
+ value = "a, ";
+ requestDelay = 500;
+ tokens = "[ ,";
+ border = "1";
+ width = "200";
+ height = "150";
+ shadowOpacity = "1";
+ shadowDepth = Integer.toString(SuggestionBoxRenderer.SHADOW_DEPTH);
+ zindex = 3;
+ rows = "0";
+ first = "0";
+ cellspacing = "2";
+ cellpadding = "2";
+ minchars = "1";
+ frequency = 0;
+ rules = "none";
+ bindLabel = "Not checked";
+ bypassUpdates = true;
+ frame = "void";
+ nothingLabel = "Nothinf label works!";
+ usingSuggestObjects = true;
+ setCities(getAllData());
+ }
+
+ public void selectValue(ActionEvent actionEvent){
+ System.out.println("----inside selectValue(ActionEvent actionEvent)-----");
+ }
+
+ public void checkBinding(ActionEvent actionEvent) {
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = mySuggestionBox.getClientId(context) + "; param: " + mySuggestionBox.getParam();
+ }
+
+ public List autocomplete(Object event) {
+ String pref = event.toString();
+ ArrayList result = new ArrayList();
+
+ Iterator iterator = getAllData().iterator();
+ while (iterator.hasNext()) {
+ Data elem = (Data) iterator.next();
+ if ((elem != null && elem.getCity().toLowerCase().indexOf(
+ pref.toLowerCase()) == 0)
+ || "".equals(pref)) {
+ result.add(elem);
+ }
+ }
+ return result;
+ }
+
+ public ArrayList getCities() {
+ return cities;
+ }
+
+ public void setCities(ArrayList cities) {
+ this.cities = cities;
+ }
+
+ private ArrayList<Data> addData(String[] mStr, ArrayList<Data> arr) {
+ for (int i = 1; i < mStr.length; i++) {
+ Data data = new Data(mStr[i], mStr[0], false);
+ arr.add(data);
+ }
+ return arr;
+ }
+
+ public ArrayList getAllData() {
+ /*
+ * for (int i = 0; i < cit.length; i++) { Data data = new Data(cit[i],
+ * String.valueOf(i + 1)); result.add(data); }
+ */
+ ArrayList<Data> result = new ArrayList<Data>();
+ result = addData(cityAfrica, result);
+ result = addData(cityAsia, result);
+ result = addData(cityCAmerica, result);
+ result = addData(cityCaribbean, result);
+ result = addData(cityEurope, result);
+ result = addData(cityMEast, result);
+ result = addData(cityNAmerica, result);
+ result = addData(cityOceania, result);
+ result = addData(citySAmerica, result);
+ result = addData(citySEAsia, result);
+ return result;
+ }
+
+ public ArrayList getData() {
+ return data;
+ }
+
+ public void setData(ArrayList data) {
+ this.data = data;
+ }
+
+ public String getProperty() {
+ return property;
+ }
+
+ public void setProperty(String property) {
+ this.property = property;
+ }
+
+ 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 getFirst() {
+ return first;
+ }
+
+ public String getIntFirst() {
+ return first;
+ }
+
+ public void setFirst(String first) {
+ this.first = first;
+ }
+
+ public double getFrequency() {
+ return frequency;
+ }
+
+ public void setFrequency(double frequency) {
+ this.frequency = frequency;
+ }
+
+ public String getMinchars() {
+ return minchars;
+ }
+
+ public void setMinchars(String minchars) {
+ this.minchars = minchars;
+ }
+
+ public String getRows() {
+ return rows;
+ }
+
+ public int getIntRows() {
+ return Integer.parseInt(getRows());
+ }
+
+ public void setRows(String rows) {
+ this.rows = rows;
+ }
+
+ public String getRules() {
+ return rules;
+ }
+
+ public void setRules(String rules) {
+ this.rules = rules;
+ }
+
+ public void OnSelect() {
+ System.out.print("Onselect works!!!");
+ }
+
+ public String getBorder() {
+ return border;
+ }
+
+ public void setBorder(String border) {
+ this.border = border;
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public String getShadowOpacity() {
+ return shadowOpacity;
+ }
+
+ public void setShadowOpacity(String shadowOpacity) {
+ this.shadowOpacity = shadowOpacity;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public String getBgColor() {
+ return bgColor;
+ }
+
+ public void setBgColor(String bgColor) {
+ this.bgColor = bgColor;
+ }
+
+ public boolean isFocus() {
+ return focus;
+ }
+
+ public void setFocus(boolean focus) {
+ this.focus = focus;
+ }
+
+ public int getZindex() {
+ return zindex;
+ }
+
+ public void setZindex(int zindex) {
+ this.zindex = zindex;
+ }
+
+ public String getShadowDepth() {
+ return shadowDepth;
+ }
+
+ public void setShadowDepth(String shadowDepth) {
+ this.shadowDepth = shadowDepth;
+ }
+
+ public void bTest1() {
+ setBorder("2");
+ setCellpadding("0");
+ setCellspacing("0");
+ setFrequency(0);
+ setHeight("150");
+ setWidth("200");
+ setMinchars("1");
+ setShadowDepth("11");
+ setShadowOpacity("3");
+ setZindex(3);
+ }
+
+ public void bTest2() {
+ setBorder("0");
+ setCellpadding("3");
+ setCellspacing("3");
+ setFrequency(2);
+ setHeight("200");
+ setWidth("200");
+ setMinchars("1");
+ setShadowDepth("1");
+ setShadowOpacity("7");
+ setZindex(3);
+ }
+
+ public void bTest3() {
+ setBorder("1");
+ setCellpadding("5");
+ setCellspacing("0");
+ setFrequency(1);
+ setHeight("150");
+ setWidth("200");
+ setMinchars("2");
+ setShadowDepth("1");
+ setShadowOpacity("7");
+ setZindex(3);
+ }
+
+ public void bTest4() {
+ setBorder("1");
+ setCellpadding("0");
+ setCellspacing("5");
+ setFrequency(3);
+ setHeight("150");
+ setWidth("200");
+ setMinchars("2");
+ setShadowDepth("7");
+ setShadowOpacity("1");
+ setZindex(3);
+ }
+
+ public void bTest5() {
+ setBorder("4");
+ setCellpadding("1");
+ setCellspacing("1");
+ setFrequency(5);
+ setHeight("200");
+ setWidth("400");
+ setMinchars("2");
+ setShadowDepth("5");
+ setShadowOpacity("5");
+ setZindex(1);
+ }
+
+ 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;
+ }
+
+ public HtmlSuggestionBox getMySuggestionBox() {
+ return mySuggestionBox;
+ }
+
+ public void setMySuggestionBox(HtmlSuggestionBox mySuggestionBox) {
+ this.mySuggestionBox = mySuggestionBox;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public boolean isBypassUpdates() {
+ return bypassUpdates;
+ }
+
+ public void setBypassUpdates(boolean bypassUpdates) {
+ this.bypassUpdates = bypassUpdates;
+ }
+
+ public String getFrame() {
+ return frame;
+ }
+
+ public void setFrame(String frame) {
+ this.frame = frame;
+ }
+
+ public boolean isIgnoreDupResponses() {
+ return ignoreDupResponses;
+ }
+
+ public void setIgnoreDupResponses(boolean ignoreDupResponses) {
+ this.ignoreDupResponses = ignoreDupResponses;
+ }
+
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+ public String getNothingLabel() {
+ return nothingLabel;
+ }
+
+ public void setNothingLabel(String nothingLabel) {
+ this.nothingLabel = nothingLabel;
+ }
+
+ public boolean isUsingSuggestObjects() {
+ return usingSuggestObjects;
+ }
+
+ public void setUsingSuggestObjects(boolean usingSuggestObjects) {
+ this.usingSuggestObjects = usingSuggestObjects;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,283 @@
+package scrollableDataTable;
+
+import java.util.ArrayList;
+import java.util.GregorianCalendar;
+import java.util.Iterator;
+
+import org.ajax4jsf.model.DataComponentState;
+import org.richfaces.component.html.HtmlScrollableDataTable;
+import org.richfaces.model.selection.SimpleSelection;
+
+import util.componentInfo.ComponentInfo;
+import util.data.Data;
+
+/**
+ * @author AYanul
+ *
+ */
+public class ScrollableDataTable {
+ private ArrayList<Data> data;
+ private ArrayList<Data> selectedRows;
+ private String width;
+ private int rows;
+ private String key;
+ private boolean hideWhenScrolling;
+ private int dataLength;
+ private int frozenColCount;
+ private String sortMode;
+ private int first;
+ private boolean rendered;
+ private int timeout;
+ private String height;
+ private boolean limitToList;
+ private DataComponentState componentState;
+ private boolean bypassUpdates;
+ private boolean ignoreDupResponses;
+ private String eventsQueue;
+ private String activeRowKey;
+ private SimpleSelection selection;
+ private boolean ajaxSingle;
+ private GregorianCalendar date;
+ private HtmlScrollableDataTable htmlScrollableDataTable = null;
+
+ public void addHtmlScrollableDataTable() {
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlScrollableDataTable);
+ }
+
+ public HtmlScrollableDataTable getHtmlScrollableDataTable() {
+ return htmlScrollableDataTable;
+ }
+
+ public void setHtmlScrollableDataTable(
+ HtmlScrollableDataTable htmlScrollableDataTable) {
+ this.htmlScrollableDataTable = htmlScrollableDataTable;
+ }
+
+ public GregorianCalendar getDate() {
+ return date;
+ }
+
+ public void setDate(GregorianCalendar date) {
+ this.date = date;
+ }
+
+ public ScrollableDataTable() {
+ sortMode = "single";
+ width = "750px";
+ rows = 30;
+ hideWhenScrolling = true;
+ dataLength = 40;
+ data = new ArrayList<Data>();
+ selectedRows = new ArrayList<Data>();
+ first = 0;
+ rendered = true;
+ timeout = 0;
+ height = "400px";
+ limitToList = false;
+ bypassUpdates = false;
+ ignoreDupResponses = false;
+ ajaxSingle = false;
+ date = new GregorianCalendar();
+ addNewItem();
+ }
+
+ public void takeSelection() {
+ getSelectedRows().clear();
+ if (getSelection().isSelectAll()) {
+ getSelectedRows().addAll(data);
+ } else {
+ Iterator<Object> iterator = getSelection().getKeys();
+ while (iterator.hasNext()) {
+ Object key = iterator.next();
+ htmlScrollableDataTable.setRowKey(key);
+ if (htmlScrollableDataTable.isRowAvailable()) {
+ getSelectedRows().add(
+ (Data) htmlScrollableDataTable.getRowData());
+ }
+ }
+ }
+ }
+
+ public SimpleSelection getSelection() {
+ return selection;
+ }
+
+ public void setSelection(SimpleSelection 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 int getTimeout() {
+ return timeout;
+ }
+
+ public void setTimeout(int 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;
+ }
+
+ public void setHideWhenScrolling(boolean hideWhenScrolling) {
+ this.hideWhenScrolling = hideWhenScrolling;
+ }
+
+ public void addNewItem() {
+ if (dataLength < 0)
+ dataLength = 0;
+ if (data.size() > dataLength)
+ for (int i = data.size() - 1; i >= dataLength; i--)
+ data.remove(i);
+ else
+ for (int i = data.size(); i < dataLength; i++) {
+ date.set(2008, 5, 14, 3, i);
+ data.add(new Data(i, "Text " + i, "Link " + i, "select"
+ + (i % 5), Data.statusIcon[i % 5], date.getTime()));
+ }
+ }
+
+ public ArrayList<Data> getData() {
+ return data;
+ }
+
+ public void setData(ArrayList<Data> data) {
+ this.data = data;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public int getRows() {
+ return rows;
+ }
+
+ public void setRows(int rows) {
+ this.rows = rows;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
+
+ 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;
+ }
+
+ public String getSortMode() {
+ return sortMode;
+ }
+
+ public void setSortMode(String sortMode) {
+ this.sortMode = sortMode;
+ }
+
+ public ArrayList<Data> getSelectedRows() {
+ return selectedRows;
+ }
+
+ public void setSelectedRows(ArrayList<Data> selectedRows) {
+ this.selectedRows = selectedRows;
+ }
+}
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/java/separator/Separator.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/separator/Separator.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/separator/Separator.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,189 @@
+package separator;
+
+import org.richfaces.component.html.HtmlSeparator;
+
+import util.componentInfo.ComponentInfo;
+
+public class Separator {
+
+
+
+ private String width;
+ private String title;
+ private String height;
+ private String lineType;
+ private String align;
+ private String btnLabel="ON";
+ private String style;
+ private HtmlSeparator htmlSeparator = null;
+ private boolean rendered;
+
+ public void addHtmlSeparator(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlSeparator);
+ }
+
+ public String getBtnLabel() {
+ return btnLabel;
+ }
+
+
+
+ public void setBtnLabel(String btnLabel) {
+ this.btnLabel = btnLabel;
+ }
+
+
+
+ public String getStyle() {
+ return style;
+ }
+
+
+
+ public void setStyle(String style) {
+ this.style = style;
+ }
+
+
+
+ public Separator() {
+ width="300px";
+ height="10px";
+ title="title goes here";
+ rendered=true;
+ lineType="beveled";//beveled (default), dotted, dashed, double and solid
+ align="left"; //left|center|right
+ style=null;
+ }
+
+ public void doStyles() {
+ if (getStyle() == null) {
+ setBtnLabel("OFF");
+ setStyle("style");
+ } else {
+ setStyle(null);
+ setBtnLabel("ON");
+ }
+
+ }
+
+
+ public String getAlign() {
+ return align;
+ }
+
+
+
+ public void setAlign(String align) {
+ this.align = align;
+ }
+
+
+
+ public String getHeight() {
+ return height;
+ }
+
+
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+
+
+ public String getLineType() {
+ return lineType;
+ }
+
+
+
+ public void setLineType(String lineType) {
+ this.lineType = lineType;
+ }
+
+
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+
+
+ public String getTitle() {
+ return title;
+ }
+
+
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+
+
+ public String getWidth() {
+ return width;
+ }
+
+
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public void bTest1(){
+ setAlign("left");
+ setHeight("300px");
+ setWidth("10px");
+ setLineType("beveled");
+ setTitle("Test1");
+ }
+
+ public void bTest2(){
+ setAlign("center");
+ setHeight("50px");
+ setWidth("600px");
+ setLineType("dotted");
+ setTitle("Test2");
+ }
+
+ public void bTest3(){
+ setAlign("right");
+ setHeight("150px");
+ setWidth("200px");
+ setLineType("dashed");
+ setTitle("Test3");
+ }
+
+ public void bTest4(){
+ setAlign("left");
+ setHeight("20px");
+ setWidth("300px");
+ setLineType("double");
+ setTitle("Test4");
+ }
+
+ public void bTest5(){
+ setAlign("left");
+ setHeight("100px");
+ setWidth("100px");
+ setLineType("solid");
+ setTitle("Test5");
+ }
+
+ public HtmlSeparator getHtmlSeparator() {
+ return htmlSeparator;
+ }
+
+ public void setHtmlSeparator(HtmlSeparator htmlSeparator) {
+ this.htmlSeparator = htmlSeparator;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/skinning/Skinning.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/skinning/Skinning.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/skinning/Skinning.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,278 @@
+package skinning;
+
+import java.util.ArrayList;
+import java.util.EnumMap;
+
+import javax.faces.model.SelectItem;
+
+public class Skinning {
+ private ArrayList<SelectItem> list = new ArrayList<SelectItem>();
+ private ArrayList<SelectItem> enableStyle = new ArrayList<SelectItem>();
+ private ArrayList<SelectItem> disabledStyle = new ArrayList<SelectItem>();
+ private final int MAX_SIZE = 5;
+ private String selectSkinning = "none";
+ private String skinning = "disable";
+ private String skinningClass = "disable";
+ private String commandButton = "rich-button";
+ private String commandLink = "rich-link";
+ private String dataTable = "rich-isindex";
+ private String inputSecret = "inputSecret";
+ private String inputSecretStyleClass = "rich-input";
+ private String inputTextStyleClass = "rich-input";
+ private String inputText = "inputText";
+ private String inputTextarea = "inputTextarea\nRichFaces";
+ private String inputTextareaStyleClass = "rich-textarea";
+ private String outputLink = "rich-link";
+ private String outputText = "rich-link";
+ private String selectBooleanCheckboxStyleClass = "rich-select";
+ private boolean selectBooleanCheckbox1 = true;
+ private boolean selectBooleanCheckbox2 = false;
+ private String selectManyCheckbox = "rich-select";
+ private String selectManyListbox = "rich-select";
+ private String selectManyListBox = "rich-select";
+ private String selectManyMenu = "rich-select";
+ private String selectOneListbox = "rich-select";
+ private String selectOneMenu = "rich-select";
+ private String selectOneRadio = "rich-select";
+
+ public Skinning() {
+ for(int i = 0; i < MAX_SIZE; i++){
+ list.add(new SelectItem("item " + i));
+ }
+ }
+
+ public String getCommandButton() {
+ return commandButton;
+ }
+
+ public void setCommandButton(String commandButton) {
+ this.commandButton = commandButton;
+ }
+
+ public String getCommandLink() {
+ return commandLink;
+ }
+
+ public void setOmmandLink(String commandLink) {
+ this.commandLink = commandLink;
+ }
+
+ public String getDataTable() {
+ return dataTable;
+ }
+
+ public void setDataTable(String dataTable) {
+ this.dataTable = dataTable;
+ }
+
+ public String getInputSecret() {
+ return inputSecret;
+ }
+
+ public void setInputSecret(String inputSecret) {
+ this.inputSecret = inputSecret;
+ }
+
+ public String getInputTextStyleClass() {
+ return inputTextStyleClass;
+ }
+
+ public void setInputTextStyleClass(String inputTextStyleClass) {
+ this.inputTextStyleClass = inputTextStyleClass;
+ }
+
+ public String getInputTextarea() {
+ return inputTextarea;
+ }
+
+ public void setInputTextarea(String inputTextarea) {
+ this.inputTextarea = inputTextarea;
+ }
+
+ public String getOutputLink() {
+ return outputLink;
+ }
+
+ public void setOutputLink(String outputLink) {
+ this.outputLink = outputLink;
+ }
+
+ public String getOutputText() {
+ return outputText;
+ }
+
+ public void setOutputText(String outputText) {
+ this.outputText = outputText;
+ }
+
+ public String getSelectBooleanCheckboxStyleClass() {
+ return selectBooleanCheckboxStyleClass;
+ }
+
+ public void setSelectBooleanCheckboxStyleClass(String selectBooleanCheckboxStyleClass) {
+ this.selectBooleanCheckboxStyleClass = selectBooleanCheckboxStyleClass;
+ }
+
+ public String getSelectManyListBox() {
+ return selectManyListBox;
+ }
+
+ public void setSelectManyListBox(String selectManyListBox) {
+ this.selectManyListBox = selectManyListBox;
+ }
+
+ public String getSelectManyMenu() {
+ return selectManyMenu;
+ }
+
+ public void setSelectManyMenu(String selectManyMenu) {
+ this.selectManyMenu = selectManyMenu;
+ }
+
+ public String getSelectOneListbox() {
+ return selectOneListbox;
+ }
+
+ public void setSelectOneListbox(String selectOneListbox) {
+ this.selectOneListbox = selectOneListbox;
+ }
+
+ public String getSelectOneMenu() {
+ return selectOneMenu;
+ }
+
+ public void setSelectOneMenu(String selectOneMenu) {
+ this.selectOneMenu = selectOneMenu;
+ }
+
+ public String getSelectOneRadio() {
+ return selectOneRadio;
+ }
+
+ public void setSelectOneRadio(String selectOneRadio) {
+ this.selectOneRadio = selectOneRadio;
+ }
+
+ public String getSelectManyCheckbox() {
+ return selectManyCheckbox;
+ }
+
+ public void setSelectManyCheckbox(String selectManyCheckbox) {
+ this.selectManyCheckbox = selectManyCheckbox;
+ }
+
+ public void setCommandLink(String commandLink) {
+ this.commandLink = commandLink;
+ }
+
+ public String getSelectSkinning() {
+ return selectSkinning;
+ }
+
+ public String getSkinning() {
+ return skinning;
+ }
+
+ public void setSkinning(String skinning) {
+ this.skinning = skinning;
+ }
+
+ public String getSkinningClass() {
+ return skinningClass;
+ }
+
+ public void setSkinningClass(String skinningClass) {
+ this.skinningClass = skinningClass;
+ }
+
+ public void setSelectSkinning(String selectSkinning) {
+ if (selectSkinning.equals("SKINNING")) {
+ setSkinning("enable");
+ } else if (selectSkinning.equals("SKINNING_CLASSES")) {
+ setSkinning("disable");
+ setSkinningClass("enable");
+ } else {
+ setSkinning("disable");
+ setSkinningClass("disable");
+ }
+ this.selectSkinning = selectSkinning;
+ }
+
+ /**
+ * @return the list
+ */
+ public ArrayList<SelectItem> getList() {
+ return list;
+ }
+
+ /**
+ * @param list the list to set
+ */
+ public void setList(ArrayList<SelectItem> list) {
+ this.list = list;
+ }
+
+ public String getInputText() {
+ return inputText;
+ }
+
+ public void setInputText(String inputText) {
+ this.inputText = inputText;
+ }
+
+ public ArrayList<SelectItem> getEnableStyle() {
+ return enableStyle;
+ }
+
+ public void setEnableStyle(ArrayList<SelectItem> enableStyle) {
+ this.enableStyle = enableStyle;
+ }
+
+ public ArrayList<SelectItem> getDisabledStyle() {
+ return disabledStyle;
+ }
+
+ public void setDisabledStyle(ArrayList<SelectItem> disabledStyle) {
+ this.disabledStyle = disabledStyle;
+ }
+
+ public String getInputSecretStyleClass() {
+ return inputSecretStyleClass;
+ }
+
+ public void setInputSecretStyleClass(String inputSecretStyleClass) {
+ this.inputSecretStyleClass = inputSecretStyleClass;
+ }
+
+ public String getInputTextareaStyleClass() {
+ return inputTextareaStyleClass;
+ }
+
+ public void setInputTextareaStyleClass(String inputTextareaStyleClass) {
+ this.inputTextareaStyleClass = inputTextareaStyleClass;
+ }
+
+ public boolean getSelectBooleanCheckbox1() {
+ return selectBooleanCheckbox1;
+ }
+
+ public void setSelectBooleanCheckbox1(boolean selectBooleanCheckbox1) {
+ this.selectBooleanCheckbox1 = selectBooleanCheckbox1;
+ }
+
+ public boolean getSelectBooleanCheckbox2() {
+ return selectBooleanCheckbox2;
+ }
+
+ public void setSelectBooleanCheckbox2(boolean selectBooleanCheckbox2) {
+ this.selectBooleanCheckbox2 = selectBooleanCheckbox2;
+ }
+
+ public String getSelectManyListbox() {
+ return selectManyListbox;
+ }
+
+ public void setSelectManyListbox(String selectManyListbox) {
+ this.selectManyListbox = selectManyListbox;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/sortingAndFiltering/SortingAndFiltering.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/sortingAndFiltering/SortingAndFiltering.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/sortingAndFiltering/SortingAndFiltering.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,183 @@
+
+package sortingAndFiltering;
+
+import java.util.ArrayList;
+import java.util.Comparator;
+import java.util.Random;
+import javax.faces.model.ListDataModel;
+import org.richfaces.model.Ordering;
+import org.richfaces.component.html.HtmlDataTable;
+import util.data.Data;
+
+public class SortingAndFiltering {
+ private ArrayList<Data> data;
+ private String sortMode;
+ private boolean selfSorted;
+ private boolean sortable;
+ private String sortExpression;
+ private Ordering sortOrder;
+ private String currentSortOrder;
+ private String filterInput;
+ private String filterValue;
+ private boolean rendered;
+ private ListDataModel dataModel;
+ private HtmlDataTable myDataTable = new HtmlDataTable();
+ private Data selectedItem;
+
+ private final Comparator<Data> comparator = new Comparator<Data> () {
+ public int compare(Data o1, Data o2) {
+ if ((o1.getStr1() == null) && (o2.getStr1() == null))
+ return 0;
+ else if((o1.getStr1() != null) && (o2.getStr1() == null))
+ return 1;
+ else if((o1.getStr1() == null) && (o2.getStr1() != null))
+ return -1;
+ else
+ return o1.getStr1().length() - o2.getStr1().length();
+ }
+ };
+
+ public String getFilterValue() {
+ return filterValue;
+ }
+
+ public void setFilterValue(String filterValue) {
+ this.filterValue = filterValue;
+ }
+
+ public String getFilterInput() {
+ return filterInput;
+ }
+
+ public void setFilterInput(String filterInput) {
+ this.filterInput = filterInput;
+ }
+
+ public SortingAndFiltering() {
+ filterValue = "";
+ filterInput = "";
+ data = new ArrayList<Data>();
+ sortMode = "single";
+ sortOrder = Ordering.ASCENDING;
+ currentSortOrder = "ASCENDING";
+ rendered = true;
+ boolean b = true;
+ Random r = new Random();
+ for(int i = 0; i < 10; i++)
+ data.add(new Data(i, r.nextInt(1000), Data.Random(6), r.nextInt(10000) + 98389, Data.Random(r.nextInt(10) + 1), r.nextInt(500000), Data.statusIcon[i % 5], Data.Random(3), false)); //new Data(i, Data.Random(5), Data.statusIcon[i % 5], Data.Random(6), false));
+
+ data.get(0).setStr0(null);
+ data.get(1).setStr1(null);
+ data.get(2).setStr2(null);
+ data.get(3).setStr3(null);
+ dataModel = new ListDataModel(data);
+ }
+
+
+ public String getSortMode() {
+ return sortMode;
+ }
+
+ public void setSortMode(String sortMode) {
+ this.sortMode = sortMode;
+ }
+
+ public boolean isSelfSorted() {
+ return selfSorted;
+ }
+
+ public void setSelfSorted(boolean selfSorted) {
+ this.selfSorted = selfSorted;
+ }
+
+ public String getSortExpression() {
+ return sortExpression;
+ }
+
+ public void setSortExpression(String sortExpression) {
+ this.sortExpression = sortExpression;
+ }
+
+ public ArrayList<Data> getData() {
+ return data;
+ }
+
+ public void setData(ArrayList<Data> data) {
+ this.data = data;
+ }
+
+ public boolean isSortable() {
+ return sortable;
+ }
+
+ public void setSortable(boolean sortable) {
+ this.sortable = sortable;
+ }
+
+ public Ordering getSortOrder() {
+ return sortOrder;
+ }
+
+ public void setSortOrder(Ordering sortOrder) {
+ this.sortOrder = sortOrder;
+ }
+
+ public String getCurrentSortOrder() {
+ return currentSortOrder;
+ }
+
+ public void setCurrentSortOrder(String currentSortOrder) {
+ if("DESCENDING".equals(currentSortOrder)) this.sortOrder = Ordering.DESCENDING;
+ else if("UNSORTED".equals(currentSortOrder)) this.sortOrder = Ordering.UNSORTED;
+ else if("ASCENDING".equals(currentSortOrder)) this.sortOrder = Ordering.ASCENDING;
+ this.currentSortOrder = currentSortOrder;
+ }
+
+ public boolean filterMethod(Object obj) {
+ String value = ((Data) obj).getStr0();
+ if (null == value) {
+ return (null == filterInput);
+ }
+ return value.startsWith(filterInput);
+ }
+
+ public Comparator<Data> getComparator() {
+ return comparator;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public ListDataModel getDataModel() {
+ return dataModel;
+ }
+
+ public void setDataModel(ListDataModel dataModel) {
+ this.dataModel = dataModel;
+ }
+
+ public HtmlDataTable getMyDataTable() {
+ return myDataTable;
+ }
+
+ public void setMyDataTable(HtmlDataTable myDataTable) {
+ this.myDataTable = myDataTable;
+ }
+ public void select() {
+ selectedItem = (Data)dataModel.getRowData();
+ }
+
+ public Data getSelectedItem() {
+ return selectedItem;
+ }
+
+ public void setSelectedItem(Data selectedItem) {
+ this.selectedItem = selectedItem;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/spacer/Spacer.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/spacer/Spacer.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/spacer/Spacer.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,123 @@
+package spacer;
+
+import org.richfaces.component.html.HtmlSpacer;
+
+import util.componentInfo.ComponentInfo;
+
+public class Spacer {
+
+ private String width;
+ private String height;
+ private String style;
+ private String btn;
+ private String title;
+ private boolean rendered;
+ private HtmlSpacer htmlSpacer = null;
+
+ public void addHtmlSpacer(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlSpacer);
+ }
+
+ public HtmlSpacer getHtmlSpacer() {
+ return htmlSpacer;
+ }
+
+ public void setHtmlSpacer(HtmlSpacer htmlSpacer) {
+ this.htmlSpacer = htmlSpacer;
+ }
+
+ public Spacer() {
+ title = "title text";
+ height = "50px";
+ width = "300px";
+ rendered = true;
+ style = null;
+ btn = "Switch on styleClass";
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public String getStyle() {
+ return style;
+ }
+
+ public void setStyle(String style) {
+ this.style = style;
+ }
+
+ public String doStyle() {
+ if (getStyle() == null) {
+ setBtn("Switch off styleClass");
+ setStyle("spacer");
+ } else {
+ setStyle(null);
+ setBtn("Switch on styleClass");
+ }
+ // if("spacer".equals(getStyle())) setStyle(null);
+ return null;
+ }
+
+ public String getBtn() {
+ return btn;
+ }
+
+ public void setBtn(String btn) {
+ this.btn = btn;
+ }
+
+ public void bTest1(){
+ setHeight("100");
+ setWidth("10");
+ }
+
+ public void bTest2(){
+ setHeight("10");
+ setWidth("100");
+ }
+
+ public void bTest3(){
+ setHeight("5");
+ setWidth("5");
+ }
+
+ public void bTest4(){
+ setHeight("100");
+ setWidth("100");
+ }
+
+ public void bTest5(){
+ setHeight("400");
+ setWidth("200");
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/tabPanel/TabPanel.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/tabPanel/TabPanel.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/tabPanel/TabPanel.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,297 @@
+package tabPanel;
+
+import org.richfaces.component.html.HtmlTab;
+import org.richfaces.component.html.HtmlTabPanel;
+
+import util.componentInfo.ComponentInfo;
+
+public class TabPanel {
+
+ private String width;
+ private String height;
+ private String title;
+ private String switchType; //"client", "server"(default), "ajax"
+ private String headerAlignment; //"left", "center" and "right".
+ private String headerSpacing;
+ private String selectedTab;
+ //private String timeout;
+ private String labelWidth;
+ private String label;
+ private String activeTabStyle;
+ private String disabledTabStyle;
+ private String inactiveTabStyle;
+ private String contentStyle;
+ private String BtnLabel="ON";
+ private boolean immediate;
+ private HtmlTabPanel htmlTabPanel = null;
+ private HtmlTab htmlTab = null;
+ private boolean rendered;
+ private boolean disabledTab;
+
+ public void addHtmlTabPanel(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlTabPanel);
+ info.addField(htmlTab);
+ }
+
+ public TabPanel() {
+ width="75%";
+ height="200px";
+ title="title goes here...";
+ switchType="server";
+ headerAlignment="center";
+ headerSpacing="20px";
+ label="Tab Label";
+ labelWidth="150px";
+ selectedTab = "tabTwo";
+
+ activeTabStyle=null;
+ disabledTabStyle=null;
+ inactiveTabStyle=null;
+ contentStyle=null;
+
+ immediate = false;
+ rendered=true;
+ disabledTab=false;
+
+ }
+
+ public void doStyles()
+ {
+ if (getContentStyle() == null) {
+ setBtnLabel("Off");
+ setActiveTabStyle("activeTabStyle");
+ setContentStyle("contentStyle");
+ setDisabledTabStyle("disabledTabStyle");
+ setInactiveTabStyle("inactiveTabStyle");
+ } else {
+ setBtnLabel("ON");
+ setActiveTabStyle(null);
+ setContentStyle(null);
+ setDisabledTabStyle(null);
+ setInactiveTabStyle(null);
+ }
+ }
+ public String getHeaderAlignment() {
+ return headerAlignment;
+ }
+
+ public void setHeaderAlignment(String headerAlignment) {
+ this.headerAlignment = headerAlignment;
+ }
+
+ public String getHeaderSpacing() {
+ return headerSpacing;
+ }
+
+ public void setHeaderSpacing(String headerSpacing) {
+ this.headerSpacing = headerSpacing;
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public String getLabel() {
+ return label;
+ }
+
+ public void setLabel(String label) {
+ this.label = label;
+ }
+
+ public String getLabelWidth() {
+ return labelWidth;
+ }
+
+ public void setLabelWidth(String labelWidth) {
+ this.labelWidth = labelWidth;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getSelectedTab() {
+ return selectedTab;
+ }
+
+ public void setSelectedTab(String selectedTab) {
+ this.selectedTab = selectedTab;
+ }
+
+ public String getSwitchType() {
+ return switchType;
+ }
+
+ public void setSwitchType(String switchType) {
+ this.switchType = switchType;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public boolean isDisabledTab() {
+ return disabledTab;
+ }
+
+ public void setDisabledTab(boolean disabledTab) {
+ this.disabledTab = disabledTab;
+ }
+
+ public String getActiveTabStyle() {
+ return activeTabStyle;
+ }
+
+ public void setActiveTabStyle(String activeTabStyle) {
+ this.activeTabStyle = activeTabStyle;
+ }
+
+ public String getContentStyle() {
+ return contentStyle;
+ }
+
+ public void setContentStyle(String contentStyle) {
+ this.contentStyle = contentStyle;
+ }
+
+ public String getDisabledTabStyle() {
+ return disabledTabStyle;
+ }
+
+ public void setDisabledTabStyle(String disabledTabStyl) {
+ this.disabledTabStyle = disabledTabStyl;
+ }
+
+ public String getInactiveTabStyle() {
+ return inactiveTabStyle;
+ }
+
+ public void setInactiveTabStyle(String inactiveTabStyle) {
+ this.inactiveTabStyle = inactiveTabStyle;
+ }
+
+ public String getBtnLabel() {
+ return BtnLabel;
+ }
+
+ public void setBtnLabel(String btnLabel) {
+ BtnLabel = btnLabel;
+ }
+
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+ public void bTest1() {
+ setDisabledTab(false);
+ setHeaderAlignment("left");
+ setHeaderSpacing("10px");
+ setHeight("250px");
+ setImmediate(false);
+ setLabel("Test 1");
+ setLabelWidth("10px");
+ setWidth("300px");
+ setSelectedTab("2");
+ setSwitchType("server");
+ setTitle("Title test 1");
+ }
+
+ public void bTest2() {
+ setDisabledTab(true);
+ setHeaderAlignment("right");
+ setHeaderSpacing("40px");
+ setHeight("400px");
+ setImmediate(false);
+ setLabel("Test 2");
+ setLabelWidth("40px");
+ setWidth("40%");
+ setSelectedTab("1");
+ setSwitchType("ajax");
+ setTitle("Title test2");
+ }
+
+ public void bTest3() {
+ setDisabledTab(false);
+ setHeaderAlignment("center");
+ setHeaderSpacing("20px");
+ setHeight("20%");
+ setImmediate(false);
+ setLabel("Test 3");
+ setLabelWidth("400px");
+ setWidth("600px");
+ setSelectedTab("3");
+ setSwitchType("client");
+ setTitle("Title test 3");
+ }
+
+ public void bTest4() {
+ setDisabledTab(true);
+ setHeaderAlignment("left");
+ setHeaderSpacing("300px");
+ setHeight("500px");
+ setImmediate(false);
+ setLabel("Teset 4");
+ setLabelWidth("500px");
+ setWidth("500px");
+ setSelectedTab("2");
+ setSwitchType("server");
+ setTitle("Title test 4");
+ }
+
+ public void bTest5() {
+ setDisabledTab(false);
+ setHeaderAlignment("left");
+ setHeaderSpacing("20px");
+ setHeight("40%");
+ setImmediate(false);
+ setLabel("Test 5");
+ setLabelWidth("40px");
+ setWidth("10%");
+ setSelectedTab("3");
+ setSwitchType("client");
+ setTitle("Title test 5");
+ }
+
+ public HtmlTabPanel getHtmlTabPanel() {
+ return htmlTabPanel;
+ }
+
+ public void setHtmlTabPanel(HtmlTabPanel htmlTabPanel) {
+ this.htmlTabPanel = htmlTabPanel;
+ }
+
+ public HtmlTab getHtmlTab() {
+ return htmlTab;
+ }
+
+ public void setHtmlTab(HtmlTab htmlTab) {
+ this.htmlTab = htmlTab;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/togglePanel/TogglePanel.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/togglePanel/TogglePanel.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/togglePanel/TogglePanel.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,86 @@
+package togglePanel;
+
+import org.richfaces.component.html.HtmlTogglePanel;
+
+import util.componentInfo.ComponentInfo;
+
+public class TogglePanel {
+
+ private String initialState;
+ private String stateOrder;
+ private String switchType;
+ private HtmlTogglePanel htmlTogglePanel = null;
+
+ public void addHtmlTogglePanel(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlTogglePanel);
+ }
+
+ public TogglePanel() {
+ initialState="asus";
+ switchType="server";
+ stateOrder="asus,benq,toshiba";
+ }
+
+ public String getInitialState() {
+ return initialState;
+ }
+
+ public void setInitialState(String initialState) {
+ this.initialState = initialState;
+ }
+
+ public String getStateOrder() {
+ return stateOrder;
+ }
+
+ public void setStateOrder(String stateOrder) {
+ this.stateOrder = stateOrder;
+ }
+
+ public String getSwitchType() {
+ return switchType;
+ }
+
+ public void setSwitchType(String switchType) {
+ this.switchType = switchType;
+ }
+
+ public void bTest1() {
+ setInitialState("asus");
+ setStateOrder("asus,benq,toshiba");
+ setSwitchType("client");
+ }
+
+ public void bTest2() {
+ setInitialState("benq");
+ setStateOrder("toshiba,asus,benq");
+ setSwitchType("client");
+ }
+
+ public void bTest3() {
+ setInitialState("asus");
+ setStateOrder("asus,benq,toshiba");
+ setSwitchType("server");
+ }
+
+ public void bTest4() {
+ setInitialState("benq");
+ setStateOrder("asus,benq,toshiba");
+ setSwitchType("ajax");
+ }
+
+ public void bTest5() {
+ setInitialState("toshiba");
+ setStateOrder("toshiba,asus,benq");
+ setSwitchType("ajax");
+ }
+
+ public HtmlTogglePanel getHtmlTogglePanel() {
+ return htmlTogglePanel;
+ }
+
+ public void setHtmlTogglePanel(HtmlTogglePanel htmlTogglePanel) {
+ this.htmlTogglePanel = htmlTogglePanel;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/toolBar/ToolBar.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/toolBar/ToolBar.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/toolBar/ToolBar.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,164 @@
+package toolBar;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.html.HtmlToolBar;
+
+import util.componentInfo.ComponentInfo;
+
+public class ToolBar {
+
+ private String width;
+ private String height;
+ private String itemSeparator;//none, line, square, disc and grid
+ private String location;//A location of a group on a menu bar. Possible values are left and right
+ private HtmlToolBar htmlToolBar = null;
+ private String contentClass;
+ private String separatorClass;
+ private String btnLabel="ON";
+ private boolean rendered;
+ private String bindLabel="not checked";
+
+ public void addHtmlToolBar(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlToolBar);
+ }
+
+ public HtmlToolBar getHtmlToolBar() {
+ return htmlToolBar;
+ }
+
+
+ public void setHtmlToolBar(HtmlToolBar htmlToolBar) {
+ this.htmlToolBar = htmlToolBar;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = htmlToolBar.getClientId(context);
+ }
+
+ public ToolBar() {
+ rendered=true;
+ width="75%";
+ height="50px";
+ itemSeparator="line";
+ location="left";
+ contentClass=null;
+ separatorClass=null;
+ }
+
+ public void doStyles()
+ {
+ if (getSeparatorClass() == null) {
+ setBtnLabel("OFF");
+ setContentClass("contentClass");
+ setSeparatorClass("separatorClass");
+
+ } else {
+ setBtnLabel("ON");
+ setContentClass(null);
+ setSeparatorClass(null);
+ }
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+
+
+ public String getItemSeparator() {
+ return itemSeparator;
+ }
+
+ public void setItemSeparator(String itemSeparator) {
+ this.itemSeparator = itemSeparator;
+ }
+
+
+
+ public String getLocation() {
+ return location;
+ }
+
+
+
+ public void setLocation(String location) {
+ this.location = location;
+ }
+
+
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+
+
+ public String getWidth() {
+ return width;
+ }
+
+
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+
+
+ public String getContentClass() {
+ return contentClass;
+ }
+
+
+
+ public void setContentClass(String contentClass) {
+ this.contentClass = contentClass;
+ }
+
+
+
+ public String getSeparatorClass() {
+ return separatorClass;
+ }
+
+
+
+ public void setSeparatorClass(String separatorClass) {
+ this.separatorClass = separatorClass;
+ }
+
+
+ public String getBtnLabel() {
+ return btnLabel;
+ }
+
+
+ public void setBtnLabel(String btnLabel) {
+ this.btnLabel = btnLabel;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/tooltip/Tooltip.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/tooltip/Tooltip.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/tooltip/Tooltip.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,231 @@
+package tooltip;
+
+import org.richfaces.component.html.HtmlToolTip;
+
+import util.componentInfo.ComponentInfo;
+
+public class Tooltip {
+
+ private boolean followMouse;
+ private boolean rendered;
+ private boolean disabled;
+ 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;
+ private HtmlToolTip htmlToolTip = null;
+
+ public void addHtmlToolTip(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlToolTip);
+ }
+
+ public String getEvent() {
+ return event;
+ }
+
+ public void setEvent(String event) {
+ this.event = event;
+ }
+
+ public String getLayout() {
+ return layout;
+ }
+
+ public void setLayout(String layout) {
+ this.layout = layout;
+ }
+
+ public Tooltip() {
+ event = "onmouseover";
+ showDelay = 100;
+ hideDelay = 10;
+ followMouse = false;
+ rendered = true;
+ disabled = false;
+ value = "tooltip";
+ mode = "client";
+ direction = "top-right";
+ horizontalOffset = 0;
+ verticalOffset = 0;
+ delay = 0;
+ style = "none";
+ layout = "inline";
+ }
+
+ public String getDirection() {
+ return direction;
+ }
+
+ public void setDirection(String direction) {
+ this.direction = direction;
+ }
+
+ public boolean isFollowMouse() {
+ return followMouse;
+ }
+
+ public void setFollowMouse(boolean followMouse) {
+ this.followMouse = followMouse;
+ }
+
+ public int getHorizontalOffset() {
+ return horizontalOffset;
+ }
+
+ public void setHorizontalOffset(int horizontalOffset) {
+ this.horizontalOffset = horizontalOffset;
+ }
+
+ public boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ public String getMode() {
+ return mode;
+ }
+
+ public void setMode(String mode) {
+ this.mode = mode;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public int getVerticalOffset() {
+ return verticalOffset;
+ }
+
+ public void setVerticalOffset(int verticalOffset) {
+ this.verticalOffset = verticalOffset;
+ }
+
+ public String getStyle() {
+ return style;
+ }
+
+ public void setStyle(String style) {
+ this.style = style;
+ }
+
+ public int getDelay() {
+ return delay;
+ }
+
+ public void setDelay(int delay) {
+ this.delay = delay;
+ }
+
+ public void bTest1(){
+ setDelay(0);
+ setDirection("top-right");
+ setDisabled(false);
+ setFollowMouse(false);
+ setHorizontalOffset(0);
+ setVerticalOffset(0);
+ setLayout("inline");
+ setMode("client");
+ setValue("Test1");
+ setRendered(true);
+ }
+
+ public void bTest2(){
+ setDelay(0);
+ setDirection("top-left");
+ setDisabled(false);
+ setFollowMouse(false);
+ setHorizontalOffset(5);
+ setVerticalOffset(5);
+ setLayout("block");
+ setMode("ajax");
+ setValue("Test2");
+ setRendered(true);
+ }
+
+ public void bTest3(){
+ setDelay(0);
+ setDirection("bottom-right");
+ setDisabled(false);
+ setFollowMouse(true);
+ setHorizontalOffset(5);
+ setVerticalOffset(0);
+ setLayout("inline");
+ setMode("client");
+ setValue("Test3");
+ setRendered(true);
+ }
+
+ public void bTest4(){
+ setDelay(0);
+ setDirection("bottom-left");
+ setDisabled(false);
+ setFollowMouse(true);
+ setHorizontalOffset(0);
+ setVerticalOffset(5);
+ setLayout("block");
+ setMode("client");
+ setValue("Test4");
+ setRendered(true);
+ }
+
+ public void bTest5(){
+ setDelay(0);
+ setDirection("bottom-right");
+ setDisabled(false);
+ setFollowMouse(true);
+ setHorizontalOffset(-5);
+ setVerticalOffset(-5);
+ setLayout("inline");
+ setMode("ajax");
+ setValue("Test5");
+ setRendered(true);
+ }
+
+ public int getHideDelay() {
+ return hideDelay;
+ }
+
+ public void setHideDelay(int hideDelay) {
+ this.hideDelay = hideDelay;
+ }
+
+ public int getShowDelay() {
+ return showDelay;
+ }
+
+ public void setShowDelay(int showDelay) {
+ this.showDelay = showDelay;
+ }
+
+ public HtmlToolTip getHtmlToolTip() {
+ return htmlToolTip;
+ }
+
+ public void setHtmlToolTip(HtmlToolTip htmlToolTip) {
+ this.htmlToolTip = htmlToolTip;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/tree/Bean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/tree/Bean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/tree/Bean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,353 @@
+package tree;
+
+import java.io.IOException;
+import java.util.Iterator;
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import javax.faces.FacesException;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.event.FacesEvent;
+
+import org.ajax4jsf.context.AjaxContext;
+import org.richfaces.component.UITree;
+import org.richfaces.component.UITreeNode;
+import org.richfaces.component.html.HtmlTree;
+import org.richfaces.component.xml.XmlTreeDataBuilder;
+import org.richfaces.event.DropEvent;
+import org.richfaces.event.NodeExpandedEvent;
+import org.richfaces.event.NodeSelectedEvent;
+import org.richfaces.model.ListRowKey;
+import org.richfaces.model.TreeNode;
+import org.richfaces.model.TreeNodeImpl;
+import org.richfaces.model.TreeRowKey;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+import util.componentInfo.ComponentInfo;
+
+public class Bean {
+ private String switchType = "client";
+ private TreeNode data;
+ private TreeNode selectedNode = null;
+ private Map selectedNodeChildren = new LinkedHashMap();
+ private String commandButtonCaption = "Set user icons";
+ private String iconCollapsed = null;
+ private String iconExpanded = null;
+ private String iconLeaf = null;
+ private String icon = null;
+ private boolean renderFacets = false;
+ private String pathToExpand;
+ private boolean dragOn = true;
+ private TreeNodeImpl data1;
+ private int counter = 0;
+ private String expandPath;
+ private UITree tree;
+ private Boolean adviseNodeSelected;
+ private Boolean adviseNodeOpened;
+
+ public void addHtmlTree(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(tree);
+ }
+ public Bean() {
+ try {
+ FacesContext context = FacesContext.getCurrentInstance();
+ data = XmlTreeDataBuilder
+ .build(new InputSource(getClass().getResourceAsStream("test.xml")));
+ TreeNode pomData = XmlTreeDataBuilder.build(new InputSource(getClass()
+ .getResourceAsStream("pom_sample.xml")));
+ Iterator children = pomData.getChildren();
+ while (children.hasNext()) {
+ Map.Entry entry = (Map.Entry) children.next();
+ data.addChild(new Long(1), (TreeNode) entry.getValue());
+ }
+ } catch (SAXException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+
+
+ data1 = new TreeNodeImpl();
+ data1.setData("Root node");
+ for (int i = 0; i < 10; i++) {
+ TreeNodeImpl child = new TreeNodeImpl() {
+
+ public Object getData() {
+ return super.getData() + " " + counter;
+ }
+ };
+ String id = Integer.toString(i);
+ child.setData("Node: " + id);
+ data1.addChild(id, child);
+ }
+ //initData();
+ }
+
+ private void initData() {
+ selectedNodeChildren.clear();
+ if (selectedNode != null) {
+ Iterator iter = selectedNode.getChildren();
+ int i = 0;
+ while (iter.hasNext()) {
+ Map.Entry entry = (Map.Entry) iter.next();
+ selectedNodeChildren
+ .put(((TreeNode) entry.getValue()).getData(), Integer.toString(i++));
+ }
+ }
+ }
+
+ public Boolean adviseNodeSelected(UITree tree){
+ System.out.println("Bean.adviseNodeSelected()");
+ return Boolean.FALSE;
+ }
+ public Boolean adviseNodeOpened(UITree tree){
+ System.out.println("Bean.adviseNodeOpened()");
+ return Boolean.FALSE;
+ }
+ public String getIcon() {
+ return icon;
+ }
+
+ public void setIcon(String icon) {
+ this.icon = icon;
+ }
+
+ public String getCommandButtonCaption() {
+ return commandButtonCaption;
+ }
+
+ public void setCommandButtonCaption(String commandButtonCaption) {
+ this.commandButtonCaption = commandButtonCaption;
+ }
+
+ public void changeIcons(javax.faces.event.ActionEvent event) {
+
+ if ("".equals(icon)) {
+ iconCollapsed = "/pics/header.png";
+ iconExpanded = "/pics/item.png";
+ iconLeaf = "/pics/ajax_process.gif";
+ icon = "/pics/ajax_stoped.gif";
+ commandButtonCaption = "Set defoult icons";
+ } else {
+ iconCollapsed = "";
+ iconExpanded = "";
+ iconLeaf = "";
+ icon = "";
+ commandButtonCaption = "Set user icons";
+ }
+ }
+
+ public TreeNode getData() {
+ return data;
+ }
+
+ public String getSwitchType() {
+ return switchType;
+ }
+
+ public void setSwitchType(String switchType) {
+ this.switchType = switchType;
+ }
+
+ private UITree getTree(FacesEvent event) {
+ UIComponent component = event.getComponent();
+ if (component instanceof UITree) {
+ return ((UITree) component);
+ }
+
+ if (component instanceof UITreeNode) {
+ return ((UITree) component.getParent());
+ }
+
+ return null;
+ }
+
+ public void up() {
+ if (selectedNode.getParent() != null) {
+ selectedNode = selectedNode.getParent();
+ }
+ initData();
+ }
+
+ public void onSelect(NodeSelectedEvent event) {
+ System.out.println("Node selected: " + getTree(event).getRowKey());
+ if (getTree(event).getTreeNode() != null) {
+ selectedNode = getTree(event).getTreeNode();
+ data.removeChild(selectedNode.getChildren());
+ initData();
+ }
+ }
+
+ public void onSelectInc(NodeSelectedEvent event) {
+ counter++;
+
+ UITree tree = getTree(event);
+ TreeRowKey key = (TreeRowKey) tree.getRowKey();
+
+ AjaxContext ajaxCtx = AjaxContext.getCurrentInstance();
+ FacesContext fctx = FacesContext.getCurrentInstance();
+ tree.setRowKey(null);
+ // Force more than one node to update here:
+ for (int i = 0; i < 5; i++) {
+ ListRowKey dirtyKey = new ListRowKey(Integer.toString(i));
+ tree.addRequestKey(dirtyKey);
+ tree.setRowKey(dirtyKey);
+ ajaxCtx.addComponentToAjaxRender(tree.getParent(), tree.getClientId(fctx));
+ }
+ tree.setRowKey(key);
+ }
+
+ public void onExpand(NodeExpandedEvent event) {
+ UITree tree = getTree(event);
+ System.out.println("Node " + (tree.isExpanded() ? "expanded" : "collapsed") + " "
+ + tree.getRowKey());
+ }
+
+ public String expand() {
+ if (expandPath != null && expandPath.length() != 0) {
+ try {
+ tree.queueNodeExpand(new ListRowKey(expandPath));
+ } catch (IOException e) {
+
+ e.printStackTrace();
+ }
+ }
+
+ return null;
+ }
+
+ public String getExpandPath() {
+ return expandPath;
+ }
+
+ public void setExpandPath(String expandPath) {
+ this.expandPath = expandPath;
+ }
+
+ public UIComponent getTree() {
+ return tree;
+ }
+
+ public void setTree(UIComponent tree) {
+ this.tree = (UITree) tree;
+ }
+
+ public String collapseAll() throws IOException {
+ this.tree.queueCollapseAll();
+ return null;
+ }
+
+ public String expandAll() {
+ try {
+ this.tree.queueExpandAll();
+ } catch (IOException e) {
+
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+ public Map getSelectedNodeChildren() {
+ return selectedNodeChildren;
+ }
+
+ public void setSelectedNodeChildren(Map selectedNodeChildren) {
+ this.selectedNodeChildren = selectedNodeChildren;
+ }
+
+ public TreeNode getSelectedNode() {
+ return selectedNode;
+ }
+
+ public void setSelectedNode(TreeNode selectedNode) {
+ this.selectedNode = selectedNode;
+ }
+
+ public void processDrop(DropEvent dropEvent) {
+ System.out.println("Should be printed twice per event!!!");
+ System.out.println(dropEvent);
+ System.out.println("DragValue: " + dropEvent.getDragValue());
+ System.out.println("DropValue: " + dropEvent.getDropValue());
+ System.out.println("Drag row data: "
+ + getTree(dropEvent).getRowData(dropEvent.getDragValue()));
+ System.out.println("Drop row data: "
+ + getTree(dropEvent).getRowData(dropEvent.getDropValue()));
+ System.out.println("+++++");
+ }
+
+ public String getIconCollapsed() {
+ return iconCollapsed;
+ }
+
+ public void setIconCollapsed(String iconCollapsed) {
+ this.iconCollapsed = iconCollapsed;
+ }
+
+ public String getIconExpanded() {
+ return iconExpanded;
+ }
+
+ public void setIconExpanded(String iconExpanded) {
+ this.iconExpanded = iconExpanded;
+ }
+
+ public String getIconLeaf() {
+ return iconLeaf;
+ }
+
+ public void setIconLeaf(String iconLeaf) {
+ this.iconLeaf = iconLeaf;
+ }
+
+ public String getPathToExpand() {
+ return pathToExpand;
+ }
+
+ public void setPathToExpand(String pathToExpand) {
+ this.pathToExpand = pathToExpand;
+ }
+
+ public String expandNode() {
+ String pathToExpand = getPathToExpand();
+ if (pathToExpand != null && pathToExpand.trim().length() != 0) {
+ try {
+ ((UITree) getTree()).queueNodeExpand(new ListRowKey(pathToExpand));
+ } catch (IOException e) {
+ throw new FacesException(e);
+ }
+ }
+
+ return null;
+ }
+
+ public boolean isDragOn() {
+ return dragOn;
+ }
+
+ public void setDragOn(boolean dragOn) {
+ this.dragOn = dragOn;
+ }
+
+ public TreeNodeImpl getData1() {
+ return data1;
+ }
+
+ public void setData1(TreeNodeImpl data1) {
+ this.data1 = data1;
+ }
+
+ public boolean isRenderFacets() {
+ return renderFacets;
+ }
+
+ public void setRenderFacets(boolean renderFacets) {
+ this.renderFacets = renderFacets;
+ }
+
+
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/tree/Library.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/tree/Library.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/tree/Library.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,116 @@
+package tree;
+
+
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.richfaces.model.TreeNode;
+
+public class Library implements TreeNode {
+
+ private Map pathways = null;
+ private Object state1;
+
+ private List listPathway;
+
+ public Library() {
+ }
+
+ public Library(List l) {
+ this.listPathway = l;
+ }
+
+ private Map getPathways() {
+ if (this.pathways == null) {
+ initData();
+ }
+ return this.pathways;
+ }
+
+ public void addPathway(Pathway pw) {
+ addChild(Long.toString(pw.getId()), pw);
+ pw.setParent(this);
+ }
+
+ public void addChild(Object identifier, TreeNode child) {
+ getPathways().put(identifier, child);
+ }
+
+ public TreeNode getChild(Object id) {
+ return (TreeNode) getPathways().get(id);
+ }
+
+ public Iterator getChildren() {
+ return getPathways().entrySet().iterator();
+ }
+
+ public Object getData() {
+ return this;
+ }
+
+ public TreeNode getParent() {
+ return null;
+ }
+
+ public boolean isLeaf() {
+ return getPathways().isEmpty();
+ }
+
+ public void removeChild(Object id) {
+ getPathways().remove(id);
+ }
+
+ public void setData(Object data) {
+ }
+
+ public void setParent(TreeNode parent) {
+ }
+
+ public String getType() {
+ return "library";
+ }
+
+ private long nextId = 0;
+
+ private long getNextId() {
+ return nextId++;
+ }
+
+ private Map pathCache = new HashMap();
+
+ private Pathway getPathwayByName(String name, Library library) {
+ Pathway pathway = (Pathway) pathCache.get(name);
+ if (pathway == null) {
+ pathway = new Pathway(getNextId());
+ pathway.setName(name);
+ pathCache.put(name, pathway);
+ library.addPathway(pathway);
+ }
+ return pathway;
+ }
+
+ private void initData() {
+ pathways = new HashMap();
+
+ for (int i = 0; i < 15; i++) {
+ Pathway path = getPathwayByName("PATH_" + i, this);
+ for (int j = 0; j < 20; j++) {
+ Organism org = new Organism(getNextId());
+ org.setName("ORG_" + i + "." + j);
+ path.addOrganism(org);
+ }
+ }
+
+ }
+
+ public Object getState1() {
+ return state1;
+ }
+
+ public void setState1(Object state1) {
+ this.state1 = state1;
+ }
+}
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/java/tree/Organism.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/tree/Organism.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/tree/Organism.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,77 @@
+package tree;
+
+
+
+import java.util.ArrayList;
+import java.util.Iterator;
+
+import org.richfaces.model.TreeNode;
+
+public class Organism implements TreeNode {
+ private long id;
+ private String name;
+ private Pathway pathway;
+
+ public Organism(long id) {
+ this.id = id;
+ }
+
+ public void addChild(Object identifier, TreeNode child) {
+ throw new UnsupportedOperationException("Organisms do not have children");
+ }
+
+ public TreeNode getChild(Object id) {
+ throw new UnsupportedOperationException("Organisms do not have children");
+ }
+
+ public Iterator getChildren() {
+ // TODO: Fix me!
+ return new ArrayList().iterator(); // work around limitation for TreeNode
+ }
+
+ public Object getData() {
+ return this;
+ }
+
+ public TreeNode getParent() {
+ return pathway;
+ }
+
+ public boolean isLeaf() {
+ return true;
+ }
+
+ public void removeChild(Object id) {
+ throw new UnsupportedOperationException("Organisms do not have children");
+ }
+
+ public void setData(Object data) {
+ }
+
+ public void setParent(TreeNode parent) {
+ this.pathway = (Pathway) parent;
+ }
+
+ public Pathway getPathway() {
+ return pathway;
+ }
+
+ public void setPathway(Pathway artist) {
+ this.pathway = artist;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String title) {
+ this.name = title;
+ }
+
+ public long getId() {
+ return id;
+ }
+ public String getType() {
+ return "organism";
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/tree/Pathway.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/tree/Pathway.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/tree/Pathway.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,85 @@
+package tree;
+
+
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+import org.richfaces.model.TreeNode;
+
+public class Pathway implements TreeNode {
+
+ private long id;
+ private Map organisms = new HashMap();
+ private String name;
+ private Library library;
+
+
+ public Pathway(long id) {
+ this.id = id;
+ }
+
+ public void addOrganism(Organism org) {
+ addChild(Long.toString(org.getId()), org);
+ org.setParent(this);
+ }
+
+ public void addChild(Object identifier, TreeNode child) {
+ organisms.put(identifier, child);
+ }
+
+ public TreeNode getChild(Object id) {
+ return (TreeNode) organisms.get(id);
+ }
+
+ public Iterator getChildren() {
+ return organisms.entrySet().iterator();
+ }
+
+ public Object getData() {
+ return this;
+ }
+
+ public TreeNode getParent() {
+ return library;
+ }
+
+ public boolean isLeaf() {
+ return organisms.isEmpty();
+ }
+
+ public void removeChild(Object id) {
+ organisms.remove(id);
+ }
+
+ public void setData(Object data) {
+ }
+
+ public void setParent(TreeNode parent) {
+ library = (Library) parent;
+ }
+
+ public long getId() {
+ return id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Library getLibrary() {
+ return library;
+ }
+
+ public void setLibrary(Library library) {
+ this.library = library;
+ }
+ public String getType() {
+ return "pathway";
+ }
+}
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/java/tree/TreeBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/tree/TreeBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/tree/TreeBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,7 @@
+package tree;
+
+public class TreeBean {
+ public Object getPathwayTree() {
+ return new Library();
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/tree/TreeContainer.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/tree/TreeContainer.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/tree/TreeContainer.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,44 @@
+/**
+ *
+ */
+package tree;
+
+import javax.faces.component.UIComponent;
+import javax.faces.event.FacesEvent;
+
+import org.richfaces.component.UITree;
+import org.richfaces.component.UITreeNode;
+
+/**
+ * @author dmorozov
+ *
+ */
+public class TreeContainer {
+
+ /**
+ * Get tree component from event
+ *
+ * @param event tree event
+ * @return tree component
+ */
+ protected UITree getTree(FacesEvent event) {
+ return getTree(event.getComponent());
+ }
+
+ /**
+ * Safe getter of tree component
+ * @param component component to process
+ * @return tree component
+ */
+ protected UITree getTree(UIComponent component) {
+ if (component instanceof UITree) {
+ return ((UITree) component);
+ }
+
+ if (component instanceof UITreeNode) {
+ return ((UITree) component.getParent());
+ }
+
+ return null;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/tree/TreeDndBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/tree/TreeDndBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/tree/TreeDndBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,333 @@
+/**
+ *
+ */
+package tree;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Properties;
+
+import javax.faces.FacesException;
+import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
+
+import org.ajax4jsf.context.AjaxContext;
+import org.richfaces.component.UITree;
+import org.richfaces.component.UITreeNode;
+import org.richfaces.event.DragEvent;
+import org.richfaces.event.DropEvent;
+import org.richfaces.event.NodeExpandedEvent;
+import org.richfaces.event.NodeSelectedEvent;
+import org.richfaces.model.TreeNode;
+import org.richfaces.model.TreeNodeImpl;
+import org.richfaces.model.TreeRowKey;
+
+/**
+ * @author dmorozov
+ *
+ */
+public class TreeDndBean extends TreeContainer {
+ private static final String DATA_PATH1 = "org/richfaces/simpleTreeData.properties";
+
+ private TreeNode<String> treeNodeLeft;
+
+ private TreeNode<String> treeNodeRight;
+
+ private String leftSelectedNodeTitle;
+
+ private String rightSelectedNodeTitle;
+
+ private UITree leftTree;
+
+ private UITree rightTree;
+
+ /**
+ * Helper tree model creation method from properties object
+ *
+ * @param path node path
+ * @param node parent node
+ * @param properties properties object
+ */
+ private void addNodes(String path, TreeNode<String> node, Properties properties) {
+ boolean end = false;
+ int counter = 1;
+ while (!end) {
+ String key = path != null ? path + '.' + counter : String.valueOf(counter);
+ String value = properties.getProperty(key);
+ if (value != null) {
+ TreeNodeImpl<String> nodeImpl = new TreeNodeImpl<String>();
+ nodeImpl.setData(value);
+ node.addChild(new Integer(counter), nodeImpl);
+ addNodes(key, nodeImpl, properties);
+ counter++;
+ } else {
+ end = true;
+ }
+ }
+ }
+
+ /**
+ * Init sample tree model
+ *
+ * @return tree model
+ */
+ private TreeNode<String> initPaneTree() {
+ TreeNode<String> rootNode = null;
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ ExternalContext externalContext = facesContext.getExternalContext();
+
+ InputStream dataStream = this.getClass().getClassLoader().getResourceAsStream(DATA_PATH1);
+
+ try {
+ Properties properties = new Properties();
+ properties.load(dataStream);
+ rootNode = new TreeNodeImpl<String>();
+ addNodes(null, rootNode, properties);
+ } catch (IOException e) {
+
+ throw new FacesException(e.getMessage(), e);
+
+ } finally {
+ if (dataStream != null) {
+ try {
+ dataStream.close();
+ } catch (IOException e) {
+ externalContext.log(e.getMessage(), e);
+ }
+ }
+ }
+
+ return rootNode;
+ }
+
+ /**
+ * Left tree demo selection handler.
+ * @param event node selection event
+ */
+ public void processLSelection(NodeSelectedEvent event) {
+ UITree tree = (UITree) event.getComponent();
+ leftSelectedNodeTitle = (String) tree.getRowData();
+ }
+
+ /**
+ * Right tree demo selection handler.
+ * @param event node selection event
+ */
+ public void processRSelection(NodeSelectedEvent event) {
+ UITree tree = (UITree) event.getComponent();
+ if (tree != null) {
+ rightSelectedNodeTitle = (String) tree.getRowData();
+ }
+ }
+
+ /**
+ * Left tree value binding
+ * @return the treeNodeLeft
+ */
+ public TreeNode<String> getTreeNodeLeft() {
+ if (treeNodeLeft == null) {
+ treeNodeLeft = initPaneTree();
+ }
+ return treeNodeLeft;
+ }
+
+ /**
+ * Left tree value binding
+ * @param treeNodeLeft
+ * the treeNodeLeft to set
+ */
+ public void setTreeNodeLeft(TreeNode<String> treeNodeLeft) {
+ this.treeNodeLeft = treeNodeLeft;
+ }
+
+ /**
+ * @return the leftSelectedNodeTitle
+ */
+ public String getLeftSelectedNodeTitle() {
+ return leftSelectedNodeTitle;
+ }
+
+ /**
+ * @param leftSelectedNodeTitle
+ * the leftSelectedNodeTitle to set
+ */
+ public void setLeftSelectedNodeTitle(String leftSelectedNodeTitle) {
+ this.leftSelectedNodeTitle = leftSelectedNodeTitle;
+ }
+
+ /**
+ * @return the rightSelectedNodeTitle
+ */
+ public String getRightSelectedNodeTitle() {
+ return rightSelectedNodeTitle;
+ }
+
+ /**
+ * @param rightSelectedNodeTitle
+ * the rightSelectedNodeTitle to set
+ */
+ public void setRightSelectedNodeTitle(String rightSelectedNodeTitle) {
+ this.rightSelectedNodeTitle = rightSelectedNodeTitle;
+ }
+
+ /**
+ * Right tree value binding
+ * @return the treeNodeRight
+ */
+ public TreeNode<String> getTreeNodeRight() {
+ if (treeNodeRight == null) {
+ treeNodeRight = initPaneTree();
+ }
+ return treeNodeRight;
+ }
+
+ /**
+ * Right tree value binding
+ * @param treeNodeRight
+ * the treeNodeRight to set
+ */
+ public void setTreeNodeRight(TreeNode<String> treeNodeRight) {
+ this.treeNodeRight = treeNodeRight;
+ }
+
+ /**
+ * Left tree binding
+ * @return the leftTree
+ */
+ public UITree getLeftTree() {
+ return leftTree;
+ }
+
+ /**
+ * Left tree binding
+ * @param leftTree
+ * the leftTree to set
+ */
+ public void setLeftTree(UITree leftTree) {
+ this.leftTree = leftTree;
+ }
+
+ /**
+ * Right tree binding
+ * @return the rightTree
+ */
+ public UITree getRightTree() {
+ return rightTree;
+ }
+
+ /**
+ * Right tree binding
+ * @param rightTree
+ * the rightTree to set
+ */
+ public void setRightTree(UITree rightTree) {
+ this.rightTree = rightTree;
+ }
+
+ /**
+ * Expand event handler
+ * @param event expand event
+ */
+ public void onExpand(NodeExpandedEvent event) {
+ UITree tree = getTree(event);
+ System.out.println("Tree ('"+tree.getId()+"') node " + (tree.isExpanded() ? "expanded" : "collapsed") + " " + tree.getRowKey());
+ }
+
+ /**
+ * Drag event handler
+ * @param dragEvent event handler
+ */
+ public void onDrag(DragEvent dragEvent) {
+ System.out.println("onDrag occured.");
+ System.out.println("DragValue: " + dragEvent.getDragValue());
+ System.out.println("DropValue: " + dragEvent.getDropValue());
+ }
+
+ /**
+ * Sample unique subnode identifier generation
+ *
+ * @param parentNode parent node
+ * @return unique subnode identifier
+ */
+ private Object getNewId(TreeNode parentNode) {
+ Map<Object, TreeNode> childs = new HashMap<Object, TreeNode>();
+ Iterator<Map.Entry<Object, TreeNode>> iter = parentNode.getChildren();
+ while (iter != null && iter.hasNext()) {
+ Map.Entry<Object, TreeNode> entry = iter.next();
+ childs.put(entry.getKey(), entry.getValue());
+ }
+
+ Integer index = 1;
+ while (childs.containsKey(index)) {
+ index++;
+ }
+ return index;
+ }
+
+ /**
+ * Drop event handler
+ * @param dropEvent Drop event
+ */
+ public void onDrop(DropEvent dropEvent) {
+ System.out.println("onDrop occured.");
+ System.out.println("DragValue: " + dropEvent.getDragValue());
+ System.out.println("DropValue: " + dropEvent.getDropValue());
+
+ // resolve drag source attributes
+ UITreeNode srcNode = (dropEvent.getDraggableSource() instanceof UITreeNode) ? (UITreeNode) dropEvent.getDraggableSource() : null;
+ UITree srcTree = srcNode != null ? srcNode.getUITree() : null;
+ TreeRowKey dragNodeKey = (dropEvent.getDragValue() instanceof TreeRowKey) ? (TreeRowKey) dropEvent.getDragValue() : null;
+
+ // resolve drag destination attributes
+ UITreeNode destNode = (dropEvent.getSource() instanceof UITreeNode) ? (UITreeNode) dropEvent.getSource() : null;
+ UITree destTree = destNode != null ? destNode.getUITree() : getTree(dropEvent);
+ TreeRowKey dropNodeKey = (dropEvent.getDropValue() instanceof TreeRowKey) ? (TreeRowKey) dropEvent.getDropValue() : null;
+
+ FacesContext context = FacesContext.getCurrentInstance();
+
+ if (dropNodeKey != null) {
+ // add destination node for rerender
+ destTree.addRequestKey(dropNodeKey);
+
+ Object state = null;
+ TreeNode draggedNode = null;
+ if (dragNodeKey != null) { // Drag from this or other tree
+ draggedNode = srcTree.getModelTreeNode(dragNodeKey);
+
+ TreeNode parentNode = draggedNode.getParent();
+ // 1. remove node from tree
+ state = srcTree.removeNode(dragNodeKey);
+ // 2. add parent for rerender
+ Object rowKey = srcTree.getTreeNodeRowKey(parentNode);
+ srcTree.addRequestKey(rowKey);
+ } else if (dropEvent.getDragValue() != null) { // Drag from some drag source
+ draggedNode = new TreeNodeImpl<String>();
+ draggedNode.setData(dropEvent.getDragValue().toString());
+ }
+
+ // generate new node id
+ Object id = getNewId(destTree.getTreeNode(dropNodeKey));
+ destTree.addNode(dropNodeKey, draggedNode, id, state);
+ }
+
+ AjaxContext ac = AjaxContext.getCurrentInstance();
+ // Add destination tree to reRender
+ try {
+ ac.addComponentToAjaxRender(destTree);
+ } catch (Exception e) {
+ System.err.print(e.getMessage());
+ }
+
+ // Add source tree to reRender
+ try {
+ ac.addComponentToAjaxRender(srcTree);
+ } catch (Exception e) {
+ System.err.print(e.getMessage());
+ }
+
+ System.out.println("+++++");
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/tree/pom_sample.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/tree/pom_sample.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/tree/pom_sample.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,102 @@
+<?xml version="1.0"?>
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>tree</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.ajax4jsf.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces</prefix>
+ <taglib>
+ <shortName>tree</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <repositories>
+ <repository>
+ <releases />
+ <snapshots>
+ <enabled>false</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ <id>maven2-repository.dev.java.net</id>
+ <name>Java.net Repository for Maven</name>
+ <url>https://maven2-repository.dev.java.net/nonav/repository</url>
+ </repository>
+ <repository>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+ <id>maven2-snapshots.ajax4jsf.org</id>
+ <name>Ajax4jsf Repository for Maven Snapshots</name>
+ <url>https://ajax4jsf.dev.java.net/nonav/snapshots</url>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+ <id>maven2-snapshots.ajax4jsf.org</id>
+ <name>Ajax4jsf Repository for Maven Snapshots</name>
+ <url>https://ajax4jsf.dev.java.net/nonav/snapshots</url>
+ </pluginRepository>
+ </pluginRepositories>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>1.1.6</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>1.1_02</version>
+ </dependency>
+ <dependency>
+ <groupId>org.ajax4jsf</groupId>
+ <artifactId>framework</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/java/tree/test.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/tree/test.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/tree/test.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <description>RF Test-Application</description>
+ <display-name>test-application</display-name>
+ <context-param>
+ <param-name>org.ajax4jsf.SKIN</param-name>
+ <param-value>#{skinBean.skin}</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.REFRESH_PERIOD</param-name>
+ <param-value>2</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>client</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.validateXml</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.verifyObjects</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config-RichPanelsBean.xml,/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,
+ /WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,
+ /WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,
+ /WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,
+ /WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,
+ /WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,
+ /WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,
+ /WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,
+ /WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,
+ /WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
+ /WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
+ /WEB-INF/faces-config-RichTest.xml,/WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-DragAndDrop.xml,
+ /WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml</param-value>
+ </context-param>
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Added: trunk/test-applications/auto-jsp/src/main/java/util/comparator/ColumnsComparator.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/comparator/ColumnsComparator.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/comparator/ColumnsComparator.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,21 @@
+package util.comparator;
+
+import java.util.Comparator;
+
+public class ColumnsComparator implements Comparator {
+
+ public int compare(Object o1, Object o2) {
+ String[] str1 = o1.toString().split(":");
+ String[] str2 = o2.toString().split(":");
+ int k = 0;
+ for (int i=0;i<str1.length;i++){
+ try {
+ k += str1[i].compareTo(str2[i]);
+ } catch (NullPointerException e) {
+ e.printStackTrace();
+ }
+ }
+ return k;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/componentInfo/ComponentAttribute.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/componentInfo/ComponentAttribute.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/componentInfo/ComponentAttribute.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,60 @@
+/**
+ *
+ */
+package util.componentInfo;
+
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @author user
+ *
+ */
+public class ComponentAttribute {
+ private Map<String, String> attribute = new HashMap<String, String>();
+ private Map<String, String> event = new HashMap<String, String>();
+ private Map<String, String> style = new HashMap<String, String>();
+
+ public String putAttribute(String attribute, String value) {
+ return this.attribute.put(attribute, value);
+ }
+
+ public String putEvent(String event, String value){
+ return this.event.put(event, value);
+ }
+
+ public String putStyle(String style, String value) {
+ return this.style.put(style, value);
+ }
+
+ public String removeAttribute(String attribute) {
+ return this.attribute.remove(attribute);
+ }
+
+ public String removeEvent(String event) {
+ return this.attribute.remove(event);
+ }
+
+ public String removeStyle(String style) {
+ return this.attribute.remove(style);
+ }
+
+ public void cleanAll() {
+ this.attribute.clear();
+ this.event.clear();
+ this.style.clear();
+ }
+
+ public Set<Map.Entry<String, String>> getAttributeEntry() {
+ return attribute.entrySet();
+ }
+
+ public Set<Map.Entry<String, String>> getEventEntry(){
+ return event.entrySet();
+ }
+
+ public Set<Map.Entry<String, String>> getStyleEntry(){
+ return style.entrySet();
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/componentInfo/ComponentInfo.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/componentInfo/ComponentInfo.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/componentInfo/ComponentInfo.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,257 @@
+package util.componentInfo;
+
+import java.lang.reflect.AccessibleObject;
+import java.lang.reflect.Field;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
+import java.util.ArrayList;
+
+import javax.el.ValueExpression;
+import javax.faces.component.UIComponentBase;
+import javax.faces.context.FacesContext;
+
+import util.parser.Attribute;
+import util.parser.TLDParser;
+
+public class ComponentInfo {
+ private static volatile ComponentInfo INSTANCE;
+ private ComponentAttribute componentAttribute = new ComponentAttribute();
+ private Object component = null;
+ private String beanName;
+ private String description;
+ private String attribute;
+ private String property;
+ private boolean print;
+
+ public ComponentInfo(String beanName) {
+ this.beanName = beanName;
+ this.attribute = "";
+ this.property = "";
+ print = true;
+ }
+
+ public void setComponentInfo(String attribute, String property) {
+ this.attribute = attribute;
+ this.property = property;
+ this.description = "";
+ if(print) printInfo();
+ }
+
+ public void setComponentInfo(String attribute, String property, String description) {
+ this.attribute = attribute;
+ this.property = property;
+ this.description = description;
+ if(print) printInfo();
+ }
+
+ protected ComponentInfo() {
+ }
+
+ public static ComponentInfo getInstance() {
+ if (INSTANCE == null)
+ synchronized (ComponentInfo.class) {
+ if (INSTANCE == null)
+ INSTANCE = new ComponentInfo();
+ }
+ return INSTANCE;
+ }
+
+ public String getName() {
+ if (component == null)
+ return null;
+ return component.getClass().getName();
+ }
+
+ public void addField(Object component) {
+ if (component == null)
+ return;
+ this.component = component;
+
+ componentAttribute.cleanAll();
+ String str = null;
+ Field[] fields = component.getClass().getDeclaredFields();
+
+ String richName = null;
+ if(component.getClass().getName().startsWith("org.richfaces.component.html.Html")){
+ richName = component.getClass().getName().substring("org.richfaces.component.html.Html".length());
+ richName = richName.substring(0, 1).toLowerCase() + richName.substring(1, richName.length());
+ } else if(component.getClass().getName().startsWith("org.richfaces.component.UI")){
+ richName = component.getClass().getName().substring("org.richfaces.component.UI".length());
+ richName = richName.substring(0, 1).toLowerCase() + richName.substring(1, richName.length());
+ }else {
+ try {
+ throw new Exception("Unknown class for component!!!");
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ TLDParser parser = new TLDParser(richName);
+ ArrayList<Attribute> allAttributes = parser.getAllAttributes();
+ for(Attribute s:allAttributes){
+ System.out.println(s.toString());
+ }
+ AccessibleObject.setAccessible(fields, true);
+ for (Field field : fields) {
+ str = field.getName().substring(1);
+ if (!Modifier.isStatic(field.getModifiers()) && (parser.getNamesArray().contains(str))) {
+ if (str.startsWith("on")) {
+ componentAttribute.putEvent(str,
+ "");
+ } else if (str.indexOf("tyle") != -1 || str.indexOf("lass") != -1) {
+ try {
+ UIComponentBase comp = (UIComponentBase) component;
+ ValueExpression ve = comp.getValueExpression(str);
+ if(ve != null){
+ if(ve.isLiteralText()){
+ componentAttribute.putStyle(str, ve.getExpressionString());
+ } else{
+ componentAttribute.putStyle(str, ve.getValue(FacesContext.getCurrentInstance().getELContext()).toString());
+ }
+ } else componentAttribute.putStyle(str, "null");
+
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ }
+
+ } else {
+
+ try {
+ Class cl = field.getType();
+ if(cl.isPrimitive() || cl.getName().equals("java.lang.String")){
+ UIComponentBase comp = (UIComponentBase) component;
+ ValueExpression ve = comp.getValueExpression(str);
+ if(ve != null){
+ if(ve.isLiteralText()){
+ componentAttribute.putAttribute(str, ve.getExpressionString());
+ } else{
+ componentAttribute.putAttribute(str, ve.getValue(FacesContext.getCurrentInstance().getELContext()).toString());
+ }
+ }else componentAttribute.putAttribute(str, "null");
+ } else componentAttribute.putAttribute(str, "---");
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+
+ }
+
+ public static String toString(Object obj) {
+ Class cl = obj.getClass();
+ String r = cl.getName() + "[";
+ Class sc = cl.getSuperclass();
+ if (!sc.equals(Object.class))
+ r += sc + ",";
+ Field[] fields = cl.getDeclaredFields();
+ try {
+ AccessibleObject.setAccessible(fields, true);
+ } catch (SecurityException e) {
+ }
+ for (int i = 0; i < fields.length; i++) {
+ Field f = fields[i];
+ r += f.getName() + "=";
+ try {
+ Object val = f.get(obj);
+ r += val.toString();
+ } catch (IllegalAccessException e) {
+ r += "???";
+ }
+ if (i < fields.length - 1)
+ r += ",";
+ else
+ r += "]";
+ }
+ return r;
+ }
+
+ public Object invoke(String aMethod, Class[] params, Object[] args) {
+ Method m;
+ System.out.println("ComponentInfo.invoke()");
+ if (component == null) return null;
+ try {
+ m = component.getClass().getDeclaredMethod(aMethod, params);
+ Object obj = m.invoke(component, args);
+ return obj;
+ } catch (SecurityException e) {
+ e.printStackTrace();
+ } catch (NoSuchMethodException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ finally {
+ return "";
+ }
+ }
+
+ private void printInfo() {
+ System.out.println("beanName: " + beanName + "[attribute: " + attribute + "; property: " + property + "; description: " + description + "];");
+ }
+
+ public String [] getComponentInfo() {
+ String [] str = {attribute, property};
+ return str;
+ }
+
+ public ComponentAttribute getComponentAttribute() {
+ return componentAttribute;
+ }
+
+ public Object getComponent() {
+ return component;
+ }
+
+ public void setComponent(Object component) {
+ this.component = component;
+ }
+
+ public String getBeanName() {
+ return beanName;
+ }
+
+ public void setBeanName(String beanName) {
+ this.beanName = beanName;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getAttribute() {
+ return attribute;
+ }
+
+ public void setAttribute(String attribute) {
+ this.attribute = attribute;
+ }
+
+ public String getProperty() {
+ return property;
+ }
+
+ public void setProperty(String property) {
+ this.property = property;
+ }
+
+ public boolean isPrint() {
+ return print;
+ }
+
+ public void setPrint(boolean print) {
+ this.print = print;
+ }
+
+ public void setComponentAttribute(ComponentAttribute componentAttribute) {
+ this.componentAttribute = componentAttribute;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/componentInfo/Info.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/componentInfo/Info.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/componentInfo/Info.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,119 @@
+/**
+ *
+ */
+package util.componentInfo;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.Map.Entry;
+
+import javax.faces.component.html.HtmlInputText;
+import javax.faces.component.html.HtmlOutputText;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.faces.context.FacesContext;
+
+/**
+ * @author user
+ *
+ */
+public class Info {
+ private ComponentInfo info = ComponentInfo.getInstance();
+ private ComponentAttribute componentAttribute = info.getComponentAttribute();
+ private HtmlPanelGrid panelEvent = null;
+
+ public HtmlPanelGrid getPanelEvent() {
+ return panelEvent;
+ }
+
+ public void setPanelEvent(HtmlPanelGrid panelEvent) {
+ this.panelEvent = panelEvent;
+ }
+
+ public Info() {
+ }
+
+ public String getName() {
+ return info.getName();
+ }
+
+ public List<Pair> getAttribute(){
+ List<Pair> list = new ArrayList<Pair>();
+ Set<Entry<String, String>> set = componentAttribute.getAttributeEntry();
+ Iterator<Map.Entry<String, String>> iterator = set.iterator();
+ while (iterator.hasNext()) {
+ Map.Entry<String, String> entry = iterator.next();
+ String str = Character.toUpperCase(entry.getKey().charAt(0)) + entry.getKey().substring(1);
+// Object obj = null;
+// if(entry.getValue().equals("boolean"))
+// obj = info.invoke("is" + str, new Class[]{}, new Object[]{});
+// else obj = info.invoke("get" + str, new Class[]{}, new Object[]{});
+ list.add(new Pair(entry.getKey(), entry.getValue()));
+ }
+ return list;
+ }
+
+ public List<Pair> getEvent(){
+ FacesContext context = FacesContext.getCurrentInstance();
+ List<Pair> list = new ArrayList<Pair>();
+ Set<Entry<String, String>> set = componentAttribute.getEventEntry();
+ Iterator<Map.Entry<String, String>> iterator = set.iterator();
+ panelEvent.getChildren().clear();
+ while (iterator.hasNext()) {
+ Map.Entry<String, String> entry = iterator.next();
+ String key = entry.getKey();
+
+ HtmlOutputText out = new HtmlOutputText();
+ out.setValue(key);
+ panelEvent.getChildren().add(out);
+
+ HtmlInputText input = new HtmlInputText();
+ input.setValue("don't work");
+ input.setStyle("color:red");
+ input.setId(key + "InputID");
+ panelEvent.getChildren().add(input);
+
+ list.add(new Pair(key,"showEvent('" + input.getClientId(context) + "', '" + key + "work!')"));
+ }
+ return list;
+ }
+
+ public List<Pair> getStyle(){
+ List<Pair> list = new ArrayList<Pair>();
+ Set<Entry<String, String>> set = componentAttribute.getStyleEntry();
+ Iterator<Map.Entry<String, String>> iterator = set.iterator();
+ while (iterator.hasNext()) {
+ Map.Entry<String, String> entry = iterator.next();
+ list.add(new Pair(entry.getKey(), entry.getValue()));
+ }
+ return list;
+ }
+
+ public class Pair {
+ private String key;
+ private String value;
+
+ public Pair(String key, String value) {
+ this.key = key;
+ this.value = value;
+ }
+
+ public String getKey() {
+ return key;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/converter/DataConverter.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/converter/DataConverter.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/converter/DataConverter.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,32 @@
+package util.converter;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+import javax.faces.convert.ConverterException;
+import javax.swing.tree.TreeNode;
+
+import util.data.Data;
+
+public class DataConverter implements Converter {
+
+ public Object getAsObject(FacesContext context, UIComponent component,
+ String value) {
+ String [] str = value.split(":");
+ return new Data(str[0], str[1], str[2], str[3],
+ Integer.parseInt(str[4]), Integer.parseInt(str[5]), Integer.parseInt(str[6]), Integer.parseInt(str[7]),
+ Boolean.parseBoolean(str[8]), Boolean.parseBoolean(str[9]), Boolean.parseBoolean(str[10]), Boolean.parseBoolean(str[11]));
+ }
+
+ public String getAsString(FacesContext context, UIComponent component,
+ Object value) {
+ if (value instanceof Data) {
+ Data data = (Data) value;
+ return data.toString();
+ } if (value instanceof TreeNode) {
+ TreeNode treeNode = (TreeNode) value;
+ return treeNode.toString();
+ } else throw new ConverterException("is not a class util.data.Data");
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/converter/DateValueConverter.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/converter/DateValueConverter.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/converter/DateValueConverter.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,27 @@
+package util.converter;
+
+import java.util.Calendar;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+import javax.faces.convert.ConverterException;
+
+public class DateValueConverter implements Converter {
+
+ public Object getAsObject(FacesContext context, UIComponent component,
+ String value) throws ConverterException {
+ String[] fields = new String[3];
+ fields = value.split("/");
+ Calendar calendar = Calendar.getInstance();
+ calendar.set(Integer.parseInt(fields[2]), Integer.parseInt(fields[0]), Integer.parseInt(fields[1]));
+ return calendar;
+ }
+
+ public String getAsString(FacesContext context, UIComponent component,
+ Object value) throws ConverterException {
+ Calendar calendar = (Calendar)value;
+ return calendar.get(Calendar.MONTH) + "/" + calendar.get(Calendar.DATE) + "/" + calendar.get(Calendar.YEAR);
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/converter/InplaceInputConverter.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/converter/InplaceInputConverter.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/converter/InplaceInputConverter.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,33 @@
+/**
+ *
+ */
+package util.converter;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+
+/**
+ * @author AYanul
+ *
+ */
+public class InplaceInputConverter implements Converter{
+
+ /* (non-Javadoc)
+ * @see javax.faces.convert.Converter#getAsObject(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.String)
+ */
+ public Object getAsObject(FacesContext context, UIComponent component,
+ String value) {
+ return value.toUpperCase();
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.convert.Converter#getAsString(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)
+ */
+ public String getAsString(FacesContext context, UIComponent component,
+ Object value) {
+ // TODO Auto-generated method stub
+ return (String) value;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/converter/ListShuttleConverter.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/converter/ListShuttleConverter.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/converter/ListShuttleConverter.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,33 @@
+package util.converter;
+import java.util.ArrayList;
+import java.util.StringTokenizer;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+
+import util.data.Data;
+
+public class ListShuttleConverter implements Converter {
+
+ public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
+ String [] str = arg2.split(":");
+ return new Data(Integer.parseInt(str[0]), str[1], str[2], str[3],str[4]);
+ }
+//list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
+ Data data = (Data)arg2;
+ return data.getInt0() + ":" + data.getStr0() + ":" + data.getStr1() + ":" + data.getStr2() + ":" + data.getStr3();
+ }
+
+}
+// public Object getAsObject(FacesContext context, UIComponent component,
+// String value) {
+// int index = value.indexOf(':');
+// return new OptionItem(value.substring(0, index), Integer.valueOf(value.substring(index + 1)));
+// }
+// public String getAsString(FacesContext context, UIComponent component,
+// Object value) {
+// OptionItem optionItem = (OptionItem) value;
+// return optionItem.getName() + ":" + optionItem.getPrice();
+// }
Added: trunk/test-applications/auto-jsp/src/main/java/util/converter/OrderingListConverter.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/converter/OrderingListConverter.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/converter/OrderingListConverter.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,33 @@
+package util.converter;
+import java.util.ArrayList;
+import java.util.StringTokenizer;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+
+import util.data.Data;
+
+public class OrderingListConverter implements Converter {
+
+ public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
+ String [] str = arg2.split(":");
+ return new Data(Integer.parseInt(str[0]), str[1], str[2], str[3],str[4]);
+ }
+//list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
+ Data data = (Data)arg2;
+ return data.getInt0() + ":" + data.getStr0() + ":" + data.getStr1() + ":" + data.getStr2() + ":" + data.getStr3();
+ }
+
+}
+// public Object getAsObject(FacesContext context, UIComponent component,
+// String value) {
+// int index = value.indexOf(':');
+// return new OptionItem(value.substring(0, index), Integer.valueOf(value.substring(index + 1)));
+// }
+// public String getAsString(FacesContext context, UIComponent component,
+// Object value) {
+// OptionItem optionItem = (OptionItem) value;
+// return optionItem.getName() + ":" + optionItem.getPrice();
+// }
Added: trunk/test-applications/auto-jsp/src/main/java/util/data/Data.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/data/Data.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/data/Data.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,319 @@
+package util.data;
+
+import java.util.Date;
+import java.util.Random;
+
+public class Data {
+ 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", "Nigeria", "Republic of the Congo", "Reunion", "Rwanda", "Niger", "Saint Helena", "Sao Tome and Principe", "Senegal", "Seychelles", "Sierra Leone", "Somalia", "South Africa", "Sudan", "Swaziland", "Tanzania", "Togo", "Tromelin Island", "Tunisia", "Uganda", "Western Sahara", "Zambia", "Zimbabwe"};
+ public static final String[] cityAsia = {"Asia", "Afghanistan", "Armenia", "Azerbaijan", "Bangladesh", "Bhutan", "China", "Georgia", "India", "Japan", "Kazakhstan", "Korea, North", "Korea, South", "Kyrgyzstan", "Maldives", "Mongolia", "Nepal", "Pakistan", "Russia", "Sri Lanka", "Tajikistan", "Turkmenistan", "Uzbekistan"};
+ public static final String[] cityCAmerica = {"Central America", "Belize", "Costa Rica", "El Salvador", "Guatemala", "Honduras", "Nicaragua", "Panama"};
+ public static final String[] cityEurope = {"Europe", "Albania", "Andorra", "Austria", "Belarus", "Belgium", "Bosnia and Herzegovina", "Bulgaria", "Canary Islands", "Croatia", "Czech Republic", "Denmark", "Estonia", "Faroe Islands", "Finland", "France", "Germany", "Gibraltar", "Greece", "Guernsey", "Hungary", "Iceland", "Ireland", "Isle of Man", "Italy", "Jersey", "Latvia", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Malta", "Moldova", "Monaco", "Montenegro", "Netherlands", "Norway", "Poland", "Portugal", "Romania", "San Marino", "Serbia and Montenegro", "Slovakia", "Slovenia", "Spain", "Sweden", "Switzerland", "Ukraine", "United Kingdom", "Vatican The Holy See"};
+ public static final String[] cityMEast = {"Middle East", "Akrotiri", "Bahrain", "Cyprus", "Dhekelia", "Gaza Strip", "Iran", "Iraq", "Israel", "Jordan", "Kuwait", "Lebanon", "Oman", "Qatar", "Saudi Arabia", "Syria", "Turkey", "United Arab Emirates", "West Bank", "Yemen"};
+ public static final String[] cityNAmerica = {"North America", "Bermuda", "Canada", "Greenland", "Mexico", "Saint Pierre and Miquelon", "United States of America"};
+ public static final String[] cityOceania = {"Oceania", "American Samoa", "Australia", "Baker Island", "Cook Islands", "Coral Sea Islands", "Fiji", "French Polynesia", "Guam", "Howland Island", "Jarvis Island", "Johnston Atoll", "Kingman Reef", "Kiribati", "Marshall Islands", "Micronesia", "Midway Islands", "Nauru", "New Caledonia", "New Zealand", "Niue", "Norfolk Island", "Northern Mariana Islands", "Palau", "Palmyra Atoll", "Papua New Guinea", "Pitcairn Islands", "Samoa", "Solomon Islands", "Tokelau", "Tonga", "Tuvalu", "Vanuatu", "Wake Island", "Wallis and Futuna"};
+ public static final String[] citySAmerica = {"South America","Argentina", "Bolivia", "Brazil", "Chile", "Colombia", "Easter Island", "Ecuador", "Falkland Islands", "French Guiana", "Guyana", "Paraguay", "Peru", "Suriname", "Uruguay", "Venezuela"};
+ public static final String[] citySEAsia = {"SouthEast Asia", "Ashmore and Cartier Islands", "Brunei", "Burma", "Cambodia", "Christmas Island", "Cocos (Keeling) Islands", "East Timor", "Hong Kong", "Indonesia", "Laos", "Malaysia", "Paracel Islands", "Philippines", "Singapore", "Spratly Islands", "Taiwan", "Thailand", "Vietnam"};
+ public static final String[] cityCaribbean = {"The Caribbean", "Anguilla", "Antigua and Barbuda", "Aruba", "Barbados", "British Virgin Islands", "Cayman Islands", "Cuba", "Dominica", "Dominican Republic", "Grenada", "Guadeloupe", "Haiti", "Jamaica", "Martinique", "Montserrat", "Navassa Island", "Netherlands Antilles", "Puerto Rico", "Saint Barthelemy", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "The Bahamas", "Trinidad and Tobago", "Turks and Caicos Islands", "Virgin Islands"};
+
+ private String str0;
+ private String str1;
+ private String str2;
+ private String str3;
+ private String str4;
+ private int int0;
+ private int int1;
+ private int int2;
+ private int int3;
+ private boolean bool0;
+ private boolean bool1;
+ private boolean bool2;
+ private boolean bool3;
+ private float float0;
+ private double double0;
+ private Date date0;
+
+ public Date getDate0() {
+ return date0;
+ }
+
+ public void setDate0(Date date0) {
+ this.date0 = date0;
+ }
+
+ public double getDouble0() {
+ return double0;
+ }
+
+ public void setDouble0(double double0) {
+ this.double0 = double0;
+ }
+
+ public float getFloat0() {
+ return float0;
+ }
+
+ public void setFloat0(float float0) {
+ this.float0 = float0;
+ }
+
+ public Data() {
+ this.str0 = "";
+ this.str1 = "";
+ this.str2 = "";
+ this.str3 = "";
+ this.int0 = 0;
+ this.int1 = 0;
+ this.int2 = 0;
+ this.int3 = 0;
+ this.bool0 = false;
+ this.bool1 = false;
+ this.bool2 = false;
+ this.bool3 = false;
+ this.float0 = 0.0f;
+ this.double0 = 0.0;
+ this.date0 = new Date();
+ }
+
+ public Data(int int0, int int1, String str0, int int2, String str1, int int3, String str2, String str3, boolean bool0) {
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ this.int0 = int0;
+ this.int1 = int1;
+ this.int2 = int2;
+ this.int3 = int3;
+ this.bool0 = bool0;
+ }
+ public Data(int int0, int int1, String str0, float float0, String str1, int int3, String str2, String str3, boolean bool0) {
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ this.int0 = int0;
+ this.int1 = int1;
+ this.float0 = float0;
+ this.int3 = int3;
+ this.bool0 = bool0;
+ }
+ public Data(int int0, int int1, String str0, double double0, String str1, int int3, String str2, String str3, boolean bool0) {
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ this.int0 = int0;
+ this.int1 = int1;
+ this.double0 = double0;
+ this.int3 = int3;
+ this.bool0 = bool0;
+ }
+ public Data(String str0, String str1, String str2, String str3, int int0,
+ int int1, int int2, int int3, boolean bool0, boolean bool1,
+ boolean bool2, boolean bool3) {
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ this.int0 = int0;
+ this.int1 = int1;
+ this.int2 = int2;
+ this.int3 = int3;
+ this.bool0 = bool0;
+ this.bool1 = bool1;
+ this.bool2 = bool2;
+ this.bool3 = bool3;
+ }
+
+ public Data(String str0, String str1, String str2, String str3){
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ }
+
+ public Data(int int0, String str0, String str1, String str2, String str3){
+ this.int0 = int0;
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ }
+
+ public Data(int int0, String str0, String str1, String str2, String str3, String str4){
+ this.int0 = int0;
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ this.str4 = str4;
+ }
+
+ //for scrollableDataTable component
+ public Data(int int0, String str0, String str1, String str2, String str3, Date date0){
+ this.int0 = int0;
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ this.date0 = date0;
+ }
+ public Data(int int0, String str0, String str1, String str2, boolean bool0){
+ this.int0 = int0;
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.bool0 = bool0;
+ }
+
+ public Data(String str0){
+ this.str0 = str0;
+ }
+
+ public Data(int int0) {
+ this.int0 = int0;
+ }
+
+ public Data(String str0, String str1){
+ this.str0 = str0;
+ this.str1 = str1;
+ }
+
+ public Data(String str0, int int0){
+ this.str0 = str0;
+ this.int0 = int0;
+ }
+
+ public Data(String str0, int int0, boolean bool0){
+ this.str0 = str0;
+ this.int0 = int0;
+ this.bool0 = bool0;
+ }
+
+ public String getStr0() {
+ return str0;
+ }
+ public void setStr0(String str0) {
+ this.str0 = str0;
+ }
+ public String getStr1() {
+ return str1;
+ }
+ public void setStr1(String str1) {
+ this.str1 = str1;
+ }
+ public String getStr2() {
+ return str2;
+ }
+ public void setStr2(String str2) {
+ this.str2 = str2;
+ }
+ public String getStr3() {
+ return str3;
+ }
+ public void setStr3(String str3) {
+ this.str3 = str3;
+ }
+ public int getInt0() {
+ return int0;
+ }
+ public void setInt0(int int0) {
+ this.int0 = int0;
+ }
+ public int getInt1() {
+ return int1;
+ }
+ public void setInt1(int int1) {
+ this.int1 = int1;
+ }
+ public int getInt2() {
+ return int2;
+ }
+ public void setInt2(int int2) {
+ this.int2 = int2;
+ }
+ public int getInt3() {
+ return int3;
+ }
+ public void setInt3(int int3) {
+ this.int3 = int3;
+ }
+ public boolean isBool0() {
+ return bool0;
+ }
+ public void setBool0(boolean bool0) {
+ this.bool0 = bool0;
+ }
+ public boolean isBool1() {
+ return bool1;
+ }
+ public void setBool1(boolean bool1) {
+ this.bool1 = bool1;
+ }
+ public boolean isBool2() {
+ return bool2;
+ }
+ public void setBool2(boolean bool2) {
+ this.bool2 = bool2;
+ }
+ public boolean isBool3() {
+ return bool3;
+ }
+ public void setBool3(boolean bool3) {
+ this.bool3 = bool3;
+ }
+
+ public static String Random(int size){
+ char [] c = new char[size];
+ for(int i = 0; i < size; i++){
+ c[i] = (char)(new Random().nextInt(25) + 97);
+ }
+ return new String(c);
+ }
+
+ public static String RandomUp(int size){
+ char [] c = new char[size];
+ for(int i = 0; i < size; i++){
+ c[i] = (char)(new Random().nextInt(25) + 65);
+ }
+ return new String(c);
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + int0;
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ final Data other = (Data) obj;
+ if (int0 != other.int0)
+ return false;
+ return true;
+ }
+
+ @Override
+ public String toString() {
+
+ return str0 + ":" + str1 + ":" + str2 + ":" + str3 + ":" + int0 + ":" + int1 + ":" + int2 + ":" + int3 + ":" + bool0 + ":" + bool1 + ":" + bool2 + ":" + bool3;
+ }
+
+ public String getStr4() {
+ return str4;
+ }
+
+ public void setStr4(String str4) {
+ this.str4 = str4;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/event/Event.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/event/Event.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/event/Event.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,1409 @@
+package util.event;
+
+import javax.faces.model.SelectItem;
+import java.util.ArrayList;
+
+/**
+ * User: ayanul Date: Feb 11, 2008 Time: 10:15:14 AM
+ */
+public class Event {
+ private String onmouseup;
+ private String ontabenter;
+ private String ontableave;
+ private String onLoadMap;
+ private String onselectionchange;
+ private String ondownclick;
+ private String onupclick;
+ private String oninit;
+ private String ongroupactivate;
+ private String onitemselect;
+ private String onsubmit;
+ private String onRowClick;
+ private String onRowDblClick;
+ private String onRowMouseDown;
+ private String onRowMouseMove;
+ private String onRowMouseOut;
+ private String onRowMouseOver;
+ private String onRowMouseUp;
+ private String onselect;
+ private String onchange;
+ private String onfocus;
+ private String onblur;
+ private String onclick;
+ private String oncollapse;
+ private String oncomplete;
+ private String onclear;
+ private String ondblclick;
+ private String ondragend;
+ private String ondragenter;
+ private String ondragexit;
+ private String ondragstart;
+ private String ondrop;
+ private String ondropend;
+ private String onexpand;
+ private String onkeydown;
+ private String onkeypress;
+ private String onkeyup;
+ private String onmousedown;
+ private String onmousemove;
+ private String onmouseout;
+ private String onmouseover;
+ private String onselected;
+ private String onhide;
+ private String onshow;
+ private String onlistcall;
+ private String onitemselected;
+ private String oninputblur;
+ private String oninputchange;
+ private String oninputclick;
+ private String oninputfocus;
+ private String oninputkeydown;
+ private String oninputkeypress;
+ private String oninputkeyup;
+ private String oninputselect;
+ private String ondateselected;
+ private String ondateselect;
+ private String ontimeselect;
+ private String ontimeselected;
+ private String onchanged;
+ private String ondatemouseover;
+ private String ondatemouseout;
+ private String oncurrentdateselect;
+ private String onbeforedomupdate;
+ private String onslide;
+ private String ondropover;
+ private String ondropout;
+ private String onerror;
+ private String ontopclick;
+ private String onbottomclick;
+ private String onorderchanged;
+ private String onmove;
+ private String onheaderclick;
+ private String onmaskclick;
+ private String onresize;
+ private String onmaskmouseover;
+ private String onmaskmouseout;
+ private String onmaskmousemove;
+ private String onmaskmouseup;
+ private String onmaskmousedown;
+ private String onmaskdblclick;
+ private String onmaskcontextmenu;
+ private String onitemchange;
+ private String onitemhover;
+ private String ongroupexpand;
+ private String oncontextmenu;
+ private String ongroupcollapse;
+ private String onSlideSubmit;
+ private String oneditactivated;
+ private String oneditactivation;
+ private String oninputdblclick;
+ private String oninputmousedown;
+ private String oninputmousemove;
+ private String oninputmouseout;
+ private String oninputmouseover;
+ private String oninputmouseup;
+ private String onsizerejected;
+ private String ontyperejected;
+ private String onupload;
+ private String onuploadcanceled;
+ private String onuploadcomplete;
+ private String onviewactivated;
+ private String onviewactivation;
+ private String onbeforehide;
+ private String onbeforeshow;
+ private String opened;
+ private String onobjectchange;
+ private String onadd;
+ private String ondbclick;
+ /* Events for toolBar */
+ private String onitemclick;
+ private String onitemdblclick;
+ private String onitemkeydown;
+ private String onitemkeypress;
+ private String onitemkeyup;
+ private String onitemmousedown;
+ private String onitemmousemove;
+ private String onitemmouseout;
+ private String onitemmouseover;
+ private String onitemmouseup;
+ private String onpagechange;
+ /* --- */
+
+ public String getOpened() {
+ return opened;
+ }
+
+ public void setOpened(String opened) {
+ this.opened = opened;
+ }
+
+ // showEvent('onkeypressInputID', 'onkeypress work!')
+ public Event() {
+ /* Events for toolBar */
+ onitemclick = "showEvent('infoFormID:infoSubview:onitemclickInputID', 'onitemclick work!')";
+ onpagechange = "showEvent('infoFormID:infoSubview:onpagechangeInputID', 'onpagechange work!')";
+ onitemdblclick = "showEvent('infoFormID:infoSubview:onitemdblclickInputID', 'onitemdblclick work!')";
+ onitemkeydown = "showEvent('infoFormID:infoSubview:onitemkeydownInputID', 'onitemkeydown work!')";
+ onitemkeypress = "showEvent('infoFormID:infoSubview:onitemkeypressInputID', 'onitemkeypress work!')";
+ onitemkeyup = "showEvent('infoFormID:infoSubview:onitemkeyupInputID', 'onitemkeyup work!')";
+ onitemmousedown = "showEvent('infoFormID:infoSubview:onitemmousedownInputID', 'onitemmousedown work!')";
+ onitemmousemove = "showEvent('infoFormID:infoSubview:onitemmousemoveInputID', 'onitemmousemove work!')";
+ onitemmouseout = "showEvent('infoFormID:infoSubview:onitemmouseoutInputID', 'onitemmouseout work!')";
+ onitemmouseover = "showEvent('infoFormID:infoSubview:onitemmouseoverInputID', 'onitemmouseover work!')";
+ onitemmouseup = "showEvent('infoFormID:infoSubview:onitemmouseupInputID', 'onitemmouseup work!')";
+ /* --- */
+ onobjectchange = "showEvent('infoFormID:infoSubview:onobjectchangeInputID', 'onobjectchange work!')";
+ onLoadMap = "showEvent('infoFormID:infoSubview:onLoadMapInputID', 'onLoadMap work!')";
+ opened = "showEvent('infoFormID:infoSubview:openedInputID', 'opened work!')";
+ onRowClick = "showEvent('infoFormID:infoSubview:onRowClickInputID', 'onRowClick work!')";
+ onRowDblClick = "showEvent('infoFormID:infoSubview:onRowDblClickInputID', 'onRowDblClick work!')";
+ onRowMouseDown = "showEvent('infoFormID:infoSubview:onRowMouseDownInputID', 'onRowMouseDown work!')";
+ onRowMouseMove = "showEvent('infoFormID:infoSubview:onRowMouseMoveInputID', 'onRowMouseMove work!')";
+ onRowMouseOut = "showEvent('infoFormID:infoSubview:onRowMouseOutInputID', 'onRowMouseOut work!')";
+ onRowMouseOver = "showEvent('infoFormID:infoSubview:onRowMouseOverInputID', 'onRowMouseOver work!')";
+ onRowMouseUp = "showEvent('infoFormID:infoSubview:onRowMouseUpInputID', 'onRowMouseUp work!')";
+ onbeforedomupdate = "showEvent('infoFormID:infoSubview:onbeforedomupdateInputID', 'onbeforedomupdate work!')";
+ onblur = "showEvent('infoFormID:infoSubview:onblurInputID', 'onblur work!')";
+ onbottomclick = "showEvent('infoFormID:infoSubview:onbottomclickInputID', 'onbottomclick work!')";
+ onchange = "showEvent('infoFormID:infoSubview:onchangeInputID', 'onchange work!')";
+ onchanged = "showEvent('infoFormID:infoSubview:onchangedInputID', 'onchanged work!')";
+ onclick = "showEvent('infoFormID:infoSubview:onclickInputID', 'onclick work!')";
+ oncollapse = "showEvent('infoFormID:infoSubview:oncollapseInputID', 'oncollapse work!')";
+ oncomplete = "showEvent('infoFormID:infoSubview:oncompleteInputID', 'oncomplete work!')";
+ oncontextmenu = "showEvent('infoFormID:infoSubview:oncontextmenuInputID', 'oncontextmenu work!')";
+ onclear = "showEvent('infoFormID:infoSubview:onclearInputID', 'onclear work!')";
+ oncurrentdateselect = "showEvent('infoFormID:infoSubview:oncurrentdateselectInputID', 'oncurrentdateselect work!')";
+ ondatemouseout = "showEvent('infoFormID:infoSubview:ondatemouseoutInputID', 'ondatemouseout work!')";
+ ondatemouseover = "showEvent('infoFormID:infoSubview:ondatemouseoverInputID', 'ondatemouseover work!')";
+ ondateselect = "showEvent('infoFormID:infoSubview:ondateselectInputID', 'ondateselect work!')";
+ ondateselected = "showEvent('infoFormID:infoSubview:ondateselectedInputID', 'ondateselected work!')";
+ ondblclick = "showEvent('infoFormID:infoSubview:ondblclickInputID', 'ondblclick work!')";
+ ondownclick = "showEvent('infoFormID:infoSubview:ondownclickInputID', 'ondownclick work!')";
+ ondragend = "showEvent('infoFormID:infoSubview:ondragendInputID', 'ondragend work!')";
+ ondragenter = "showEvent('infoFormID:infoSubview:ondragenterInputID', 'ondragenter work!')";
+ ondragexit = "showEvent('infoFormID:infoSubview:ondragexitInputID', 'ondragexit work!')";
+ ondragstart = "showEvent('infoFormID:infoSubview:ondragstartInputID', 'ondragstart work!')";
+ ondrop = "showEvent('infoFormID:infoSubview:ondropInputID', 'ondrop work!')";
+ ondropend = "showEvent('infoFormID:infoSubview:ondropendInputID', 'ondropend work!')";
+ ondropout = "showEvent('infoFormID:infoSubview:ondropoutInputID', 'ondropout work!')";
+ ondropover = "showEvent('infoFormID:infoSubview:ondropoverInputID', 'ondropover work!')";
+ onerror = "showEvent('infoFormID:infoSubview:onerrorInputID', 'onerror work!')";
+ onexpand = "showEvent('infoFormID:infoSubview:onexpandInputID', 'onexpand work!')";
+ onfocus = "showEvent('infoFormID:infoSubview:onfocusInputID', 'onfocus work!')";
+ ongroupactivate = "showEvent('infoFormID:infoSubview:ongroupactivateInputID', 'ongroupactivate work!')";
+ ongroupexpand = "showEvent('infoFormID:infoSubview:ongroupexpandInputID', 'ongroupexpand work!')";
+ onheaderclick = "showEvent('infoFormID:infoSubview:onheaderclickInputID', 'onheaderclick work!')";
+ onhide = "showEvent('infoFormID:infoSubview:onhideInputID', 'onhide work!')";
+ oninit = "showEvent('infoFormID:infoSubview:oninitInputID', 'oninit work!')";
+ oninputblur = "showEvent('infoFormID:infoSubview:oninputblurInputID', 'oninputblur work!')";
+ oninputchange = "showEvent('infoFormID:infoSubview:oninputchangeInputID', 'oninputchange work!')";
+ oninputclick = "showEvent('infoFormID:infoSubview:oninputclickInputID', 'oninputclick work!')";
+ oninputfocus = "showEvent('infoFormID:infoSubview:oninputfocusInputID', 'oninputfocus work!')";
+ oninputkeydown = "showEvent('infoFormID:infoSubview:oninputkeydownInputID', 'oninputkeydown work!')";
+ oninputkeypress = "showEvent('infoFormID:infoSubview:oninputkeypressInputID', 'oninputkeypress work!')";
+ oninputkeyup = "showEvent('infoFormID:infoSubview:oninputkeyupInputID', 'oninputkeyup work!')";
+ oninputselect = "showEvent('infoFormID:infoSubview:oninputselectInputID', 'oninputselect work!')";
+ onitemchange = "showEvent('infoFormID:infoSubview:onitemchangeInputID', 'onitemchange work!')";
+ onitemhover = "showEvent('infoFormID:infoSubview:onitemhoverInputID', 'onitemhover work!')";
+ onitemselect = "showEvent('infoFormID:infoSubview:onitemselectInputID', 'onitemselect work!')";
+ onitemselected = "showEvent('infoFormID:infoSubview:onitemselectedInputID', 'onitemselected work!')";
+ onkeydown = "showEvent('infoFormID:infoSubview:onkeydownInputID', 'onkeydown work!')";
+ onkeypress = "showEvent('infoFormID:infoSubview:onkeypressInputID', 'onkeypress work!')";
+ onkeyup = "showEvent('infoFormID:infoSubview:onkeyupInputID', 'onkeyup work!')";
+ onlistcall = "showEvent('infoFormID:infoSubview:onlistcallInputID', 'onlistcall work!')";
+ onmaskclick = "showEvent('infoFormID:infoSubview:onmaskclickInputID', 'onmaskclick work!')";
+ onmaskcontextmenu = "showEvent('infoFormID:infoSubview:onmaskcontextmenuInputID', 'onmaskcontextmenu work!')";
+ onmaskdblclick = "showEvent('infoFormID:infoSubview:onmaskdblclickInputID', 'onmaskdblclick work!')";
+ onmaskmousedown = "showEvent('infoFormID:infoSubview:onmaskmousedownInputID', 'onmaskmousedown work!')";
+ onmaskmousemove = "showEvent('infoFormID:infoSubview:onmaskmousemoveInputID', 'onmaskmousemove work!')";
+ onmaskmouseout = "showEvent('infoFormID:infoSubview:onmaskmouseoutInputID', 'onmaskmouseout work!')";
+ onmaskmouseover = "showEvent('infoFormID:infoSubview:onmaskmouseoverInputID', 'onmaskmouseover work!')";
+ onmaskmouseup = "showEvent('infoFormID:infoSubview:onmaskmouseupInputID', 'onmaskmouseup work!')";
+ onmousedown = "showEvent('infoFormID:infoSubview:onmousedownInputID', 'onmousedown work!')";
+ onmousemove = "showEvent('infoFormID:infoSubview:onmousemoveInputID', 'onmousemove work!')";
+ onmouseout = "showEvent('infoFormID:infoSubview:onmouseoutInputID', 'onmouseout work!')";
+ onmouseover = "showEvent('infoFormID:infoSubview:onmouseoverInputID', 'onmouseover work!')";
+ onmouseup = "showEvent('infoFormID:infoSubview:onmouseupInputID', 'onmouseup work!')";
+ onmove = "showEvent('infoFormID:infoSubview:onmoveInputID', 'onmove work!')";
+ onorderchanged = "showEvent('infoFormID:infoSubview:onorderchangedInputID', 'onorderchanged work!')";
+ onresize = "showEvent('infoFormID:infoSubview:onresizeInputID', 'onresize work!')";
+ onselect = "showEvent('infoFormID:infoSubview:onselectInputID', 'onselect work!')";
+ onselected = "showEvent('infoFormID:infoSubview:onselectedInputID', 'onselected work!')";
+ onselectionchange = "showEvent('infoFormID:infoSubview:onselectionchangeInputID', 'onselectionchange work!')";
+ onshow = "showEvent('infoFormID:infoSubview:onshowInputID', 'onshow work!')";
+ onslide = "showEvent('infoFormID:infoSubview:onslideInputID', 'onslide work!')";
+ onsubmit = "showEvent('infoFormID:infoSubview:onsubmitInputID', 'onsubmit work!')";
+ ontabenter = "showEvent('infoFormID:infoSubview:ontabenterInputID', 'ontabenter work!')";
+ ontableave = "showEvent('infoFormID:infoSubview:ontableaveInputID', 'ontableave work!')";
+ ontimeselect = "showEvent('infoFormID:infoSubview:ontimeselectInputID', 'ontimeselect work!')";
+ ontimeselected = "showEvent('infoFormID:infoSubview:ontimeselectedInputID', 'ontimeselected work!')";
+ ontopclick = "showEvent('infoFormID:infoSubview:ontopclickInputID', 'ontopclick work!')";
+ onupclick = "showEvent('infoFormID:infoSubview:onupclickInputID', 'onupclick work!')";
+ ongroupcollapse = "showEvent('infoFormID:infoSubview:ongroupcollapseInputID', 'ongroupcollapse work!')";
+ onSlideSubmit = "showEvent('infoFormID:infoSubview:onSlideSubmitInputID', 'onSlideSubmit work!')";
+ oneditactivated = "showEvent('infoFormID:infoSubview:oneditactivatedInputID', 'oneditactivated work!')";
+ oneditactivation = "showEvent('infoFormID:infoSubview:oneditactivationInputID', 'oneditactivation work!')";
+ oninputdblclick = "showEvent('infoFormID:infoSubview:oninputdblclickInputID', 'oninputdblclick work!')";
+ oninputmousedown = "showEvent('infoFormID:infoSubview:oninputmousedownInputID', 'oninputmousedown work!')";
+ oninputmousemove = "showEvent('infoFormID:infoSubview:oninputmousemoveInputID', 'oninputmousemove work!')";
+ oninputmouseout = "showEvent('infoFormID:infoSubview:oninputmouseoutInputID', 'oninputmouseout work!')";
+ oninputmouseover = "showEvent('infoFormID:infoSubview:oninputmouseoverInputID', 'oninputmouseover work!')";
+ oninputmouseup = "showEvent('infoFormID:infoSubview:oninputmouseupInputID', 'oninputmouseup work!')";
+ onsizerejected = "showEvent('infoFormID:infoSubview:onsizerejectedInputID', 'onsizerejected work!')";
+ ontyperejected = "showEvent('infoFormID:infoSubview:ontyperejectedInputID', 'ontyperejected work!')";
+ onupload = "showEvent('infoFormID:infoSubview:onuploadInputID', 'onupload work!')";
+ onuploadcanceled = "showEvent('infoFormID:infoSubview:onuploadcanceledInputID', 'onuploadcanceled work!')";
+ onuploadcomplete = "showEvent('infoFormID:infoSubview:onuploadcompleteInputID', 'onuploadcomplete work!')";
+ onviewactivated = "showEvent('infoFormID:infoSubview:onviewactivatedInputID', 'onviewactivated work!')";
+ onviewactivation = "showEvent('infoFormID:infoSubview:onviewactivationInputID', 'onviewactivation work!')";
+ onbeforehide = "showEvent('infoFormID:infoSubview:onbeforehideInputID', 'onbeforehide work!')";
+ onbeforeshow = "showEvent('infoFormID:infoSubview:onbeforeshowInputID', 'onbeforeshow work!')";
+ onadd = "showEvent('infoFormID:infoSubview:onaddInputID', 'onadd work!')";
+ ondbclick = "showEvent('infoFormID:infoSubview:ondbclickID', 'ondbclick work!')";
+ }
+
+ public String getOncontextmenu() {
+ return oncontextmenu;
+ }
+
+ public void setOncontextmenu(String oncontextmenu) {
+ this.oncontextmenu = oncontextmenu;
+ }
+
+ public String getOngroupexpand() {
+ return ongroupexpand;
+ }
+
+ public void setOngroupexpand(String ongroupexpand) {
+ this.ongroupexpand = ongroupexpand;
+ }
+
+ public String getOnitemhover() {
+ return onitemhover;
+ }
+
+ public void setOnitemhover(String onitemhover) {
+ this.onitemhover = onitemhover;
+ }
+
+ public String getOnitemchange() {
+ return onitemchange;
+ }
+
+ public void setOnitemchange(String onitemchange) {
+ this.onitemchange = onitemchange;
+ }
+
+ public String getOnheaderclick() {
+ return onheaderclick;
+ }
+
+ public void setOnheaderclick(String onheaderclick) {
+ this.onheaderclick = onheaderclick;
+ }
+
+ public String getOnmove() {
+ return onmove;
+ }
+
+ public void setOnmove(String onmove) {
+ this.onmove = onmove;
+ }
+
+ public String getOntopclick() {
+ return ontopclick;
+ }
+
+ public void setOntopclick(String ontopclick) {
+ this.ontopclick = ontopclick;
+ }
+
+ public String getOnerror() {
+ return onerror;
+ }
+
+ public void setOnerror(String onerror) {
+ this.onerror = onerror;
+ }
+
+ public String getOndropover() {
+ return ondropover;
+ }
+
+ public void setOndropover(String ondropover) {
+ this.ondropover = ondropover;
+ }
+
+ public String getOnslide() {
+ return onslide;
+ }
+
+ public void setOnslide(String onslide) {
+ this.onslide = onslide;
+ }
+
+ public String getOnbeforedomupdate() {
+ return onbeforedomupdate;
+ }
+
+ public void setOnbeforedomupdate(String onbeforedomupdate) {
+ this.onbeforedomupdate = onbeforedomupdate;
+ }
+
+ public ArrayList<SelectItem> getEvent(String event) {
+ ArrayList<SelectItem> arr = new ArrayList<SelectItem>();
+ arr.add(new SelectItem("showEvent('" + event + "', '" + event + " work!'"));
+ arr.add(new SelectItem("alert('" + event + "')"));
+ arr.add(new SelectItem(""));
+ return arr;
+
+ }
+
+ public ArrayList<SelectItem> getOntabenterSI() {
+ return getEvent("ontabenter");
+ }
+
+ public ArrayList<SelectItem> getOntableaveSI() {
+ return getEvent("ontableave");
+ }
+
+ public ArrayList<SelectItem> getOnLoadMapSI() {
+ return getEvent("onLoadMap");
+ }
+
+ public ArrayList<SelectItem> getOnselectionchangeSI() {
+ return getEvent("onselectionchange");
+ }
+
+ public ArrayList<SelectItem> getOndownclickSI() {
+ return getEvent("ondownclick");
+ }
+
+ public ArrayList<SelectItem> getOnupclickSI() {
+ return getEvent("onupclick");
+ }
+
+ public ArrayList<SelectItem> getOninitSI() {
+ return getEvent("oninit");
+ }
+
+ public ArrayList<SelectItem> getOngroupactivateSI() {
+ return getEvent("ongroupactivate");
+ }
+
+ public ArrayList<SelectItem> getOnitemselectSI() {
+ return getEvent("onitemselect");
+ }
+
+ public ArrayList<SelectItem> getOnsubmitSI() {
+ return getEvent("onsubmit");
+ }
+
+ public ArrayList<SelectItem> getOnRowClickSI() {
+ return getEvent("onRowClick");
+ }
+
+ public ArrayList<SelectItem> getOnRowDblClickSI() {
+ return getEvent("onRowDblClick");
+ }
+
+ public ArrayList<SelectItem> getOnRowMouseDownSI() {
+ return getEvent("onRowMouseDown");
+ }
+
+ public ArrayList<SelectItem> getOnRowMouseMoveSI() {
+ return getEvent("onRowMouseMove");
+ }
+
+ public ArrayList<SelectItem> getOnRowMouseOutSI() {
+ return getEvent("onRowMouseOut");
+ }
+
+ public ArrayList<SelectItem> getOnRowMouseOverSI() {
+ return getEvent("onRowMouseOut");
+ }
+
+ public ArrayList<SelectItem> getOnRowMouseUpSI() {
+ return getEvent("onRowMouseUp");
+ }
+
+ public ArrayList<SelectItem> getOnselectSI() {
+ return getEvent("onselect");
+ }
+
+ public ArrayList<SelectItem> getOnchangeSI() {
+ return getEvent("onchange");
+ }
+
+ public ArrayList<SelectItem> getOnfocusSI() {
+ return getEvent("onfocus");
+ }
+
+ public ArrayList<SelectItem> getOnblurSI() {
+ return getEvent("onblur");
+ }
+
+ public ArrayList<SelectItem> getOnclickSI() {
+ return getEvent("onclick");
+ }
+
+ public ArrayList<SelectItem> getOncollapseSI() {
+ return getEvent("oncollapse");
+ }
+
+ public ArrayList<SelectItem> getOncompleteSI() {
+ return getEvent("oncomplete");
+ }
+
+ public ArrayList<SelectItem> getOndblclickSI() {
+ return getEvent("ondblclick");
+ }
+
+ public ArrayList<SelectItem> getOndragendSI() {
+ return getEvent("ondragend");
+ }
+
+ public ArrayList<SelectItem> getOndragenterSI() {
+ return getEvent("ondragenter");
+ }
+
+ public ArrayList<SelectItem> getOndragexitSI() {
+ return getEvent("ondragexit");
+ }
+
+ public ArrayList<SelectItem> getOndragstartSI() {
+ return getEvent("ondragstart");
+ }
+
+ public ArrayList<SelectItem> getOndropSI() {
+ return getEvent("ondrop");
+ }
+
+ public ArrayList<SelectItem> getOndropendSI() {
+ return getEvent("ondropend");
+ }
+
+ public ArrayList<SelectItem> getOnexpandSI() {
+ return getEvent("onexpand");
+ }
+
+ public ArrayList<SelectItem> getOnkeydownSI() {
+ return getEvent("onkeydown");
+ }
+
+ public ArrayList<SelectItem> getOnkeypressSI() {
+ return getEvent("onkeypress");
+ }
+
+ public ArrayList<SelectItem> getOnkeyupSI() {
+ return getEvent("onkeyup");
+ }
+
+ public ArrayList<SelectItem> getOnmousedownSI() {
+ return getEvent("onmousedown");
+ }
+
+ public ArrayList<SelectItem> getOnmousemoveSI() {
+ return getEvent("onmousemove");
+ }
+
+ public ArrayList<SelectItem> getOnmouseoutSI() {
+ return getEvent("onmouseout");
+ }
+
+ public ArrayList<SelectItem> getOnmouseoverSI() {
+ return getEvent("onmouseover");
+ }
+
+ public ArrayList<SelectItem> getOnselectedSI() {
+ return getEvent("onselected");
+ }
+
+ public ArrayList<SelectItem> getOnhideSI() {
+ return getEvent("onhide");
+ }
+
+ public ArrayList<SelectItem> getOnshowSI() {
+ return getEvent("onshow");
+ }
+
+ public ArrayList<SelectItem> getOnmouseupSI() {
+ return getEvent("onmouseup");
+ }
+
+ public ArrayList<SelectItem> getOnlistcallSI() {
+ return getEvent("onlistcall");
+ }
+
+ public ArrayList<SelectItem> getOnitemselectedSI() {
+ return getEvent("onitemselected");
+ }
+
+ public ArrayList<SelectItem> getOninputblurSI() {
+ return getEvent("oninputblur");
+ }
+
+ public String getOnmouseup() {
+ return onmouseup;
+ }
+
+ public void setOnmouseup(String onmouseup) {
+ this.onmouseup = onmouseup;
+ }
+
+ public String getOntabenter() {
+ return ontabenter;
+ }
+
+ public void setOntabenter(String ontabenter) {
+ this.ontabenter = ontabenter;
+ }
+
+ public String getOntableave() {
+ return ontableave;
+ }
+
+ public void setOntableave(String ontableave) {
+ this.ontableave = ontableave;
+ }
+
+ public String getOnLoadMap() {
+ return onLoadMap;
+ }
+
+ public void setOnLoadMap(String onLoadMap) {
+ this.onLoadMap = onLoadMap;
+ }
+
+ public String getOnselectionchange() {
+ return onselectionchange;
+ }
+
+ public void setOnselectionchange(String onselectionchange) {
+ this.onselectionchange = onselectionchange;
+ }
+
+ public String getOndownclick() {
+ return ondownclick;
+ }
+
+ public void setOndownclick(String ondownclick) {
+ this.ondownclick = ondownclick;
+ }
+
+ public String getOnupclick() {
+ return onupclick;
+ }
+
+ public void setOnupclick(String onupclick) {
+ this.onupclick = onupclick;
+ }
+
+ public String getOninit() {
+ return oninit;
+ }
+
+ public void setOninit(String oninit) {
+ this.oninit = oninit;
+ }
+
+ public String getOngroupactivate() {
+ return ongroupactivate;
+ }
+
+ public void setOngroupactivate(String ongroupactivate) {
+ this.ongroupactivate = ongroupactivate;
+ }
+
+ public String getOnitemselect() {
+ return onitemselect;
+ }
+
+ public void setOnitemselect(String onitemselect) {
+ this.onitemselect = onitemselect;
+ }
+
+ public String getOnsubmit() {
+ return onsubmit;
+ }
+
+ public void setOnsubmit(String onsubmit) {
+ this.onsubmit = onsubmit;
+ }
+
+ public String getOnRowClick() {
+ return onRowClick;
+ }
+
+ public void setOnRowClick(String onRowClick) {
+ this.onRowClick = onRowClick;
+ }
+
+ public String getOnRowDblClick() {
+ return onRowDblClick;
+ }
+
+ public void setOnRowDblClick(String onRowDblClick) {
+ this.onRowDblClick = onRowDblClick;
+ }
+
+ public String getOnRowMouseDown() {
+ return onRowMouseDown;
+ }
+
+ public void setOnRowMouseDown(String onRowMouseDown) {
+ this.onRowMouseDown = onRowMouseDown;
+ }
+
+ public String getOnRowMouseMove() {
+ return onRowMouseMove;
+ }
+
+ public void setOnRowMouseMove(String onRowMouseMove) {
+ this.onRowMouseMove = onRowMouseMove;
+ }
+
+ public String getOnRowMouseOut() {
+ return onRowMouseOut;
+ }
+
+ public void setOnRowMouseOut(String onRowMouseOut) {
+ this.onRowMouseOut = onRowMouseOut;
+ }
+
+ public String getOnRowMouseOver() {
+ return onRowMouseOver;
+ }
+
+ public void setOnRowMouseOver(String onRowMouseOver) {
+ this.onRowMouseOver = onRowMouseOver;
+ }
+
+ public String getOnRowMouseUp() {
+ return onRowMouseUp;
+ }
+
+ public void setOnRowMouseUp(String onRowMouseUp) {
+ this.onRowMouseUp = onRowMouseUp;
+ }
+
+ public String getOnselect() {
+ return onselect;
+ }
+
+ public void setOnselect(String onselect) {
+ this.onselect = onselect;
+ }
+
+ public String getOnchange() {
+ return onchange;
+ }
+
+ public void setOnchange(String onchange) {
+ this.onchange = onchange;
+ }
+
+ public String getOnfocus() {
+ return onfocus;
+ }
+
+ public void setOnfocus(String onfocus) {
+ this.onfocus = onfocus;
+ }
+
+ public String getOnblur() {
+ return onblur;
+ }
+
+ public void setOnblur(String onblur) {
+ this.onblur = onblur;
+ }
+
+ public String getOnclick() {
+ return onclick;
+ }
+
+ public void setOnclick(String onclick) {
+ this.onclick = onclick;
+ }
+
+ public String getOncollapse() {
+ return oncollapse;
+ }
+
+ public void setOncollapse(String oncollapse) {
+ this.oncollapse = oncollapse;
+ }
+
+ public String getOncomplete() {
+ return oncomplete;
+ }
+
+ public void setOncomplete(String oncomplete) {
+ this.oncomplete = oncomplete;
+ }
+
+ public String getOndblclick() {
+ return ondblclick;
+ }
+
+ public void setOndblclick(String ondblclick) {
+ this.ondblclick = ondblclick;
+ }
+
+ public String getOndragend() {
+ return ondragend;
+ }
+
+ public void setOndragend(String ondragend) {
+ this.ondragend = ondragend;
+ }
+
+ public String getOndragenter() {
+ return ondragenter;
+ }
+
+ public void setOndragenter(String ondragenter) {
+ this.ondragenter = ondragenter;
+ }
+
+ public String getOndragexit() {
+ return ondragexit;
+ }
+
+ public void setOndragexit(String ondragexit) {
+ this.ondragexit = ondragexit;
+ }
+
+ public String getOndragstart() {
+ return ondragstart;
+ }
+
+ public void setOndragstart(String ondragstart) {
+ this.ondragstart = ondragstart;
+ }
+
+ public String getOndrop() {
+ return ondrop;
+ }
+
+ public void setOndrop(String ondrop) {
+ this.ondrop = ondrop;
+ }
+
+ public String getOndropend() {
+ return ondropend;
+ }
+
+ public void setOndropend(String ondropend) {
+ this.ondropend = ondropend;
+ }
+
+ public String getOnexpand() {
+ return onexpand;
+ }
+
+ public void setOnexpand(String onexpand) {
+ this.onexpand = onexpand;
+ }
+
+ public String getOnkeydown() {
+ return onkeydown;
+ }
+
+ public void setOnkeydown(String onkeydown) {
+ this.onkeydown = onkeydown;
+ }
+
+ public String getOnkeypress() {
+ return onkeypress;
+ }
+
+ public void setOnkeypress(String onkeypress) {
+ this.onkeypress = onkeypress;
+ }
+
+ public String getOnkeyup() {
+ return onkeyup;
+ }
+
+ public void setOnkeyup(String onkeyup) {
+ this.onkeyup = onkeyup;
+ }
+
+ public String getOnmousedown() {
+ return onmousedown;
+ }
+
+ public void setOnmousedown(String onmousedown) {
+ this.onmousedown = onmousedown;
+ }
+
+ public String getOnmousemove() {
+ return onmousemove;
+ }
+
+ public void setOnmousemove(String onmousemove) {
+ this.onmousemove = onmousemove;
+ }
+
+ public String getOnmouseout() {
+ return onmouseout;
+ }
+
+ public void setOnmouseout(String onmouseout) {
+ this.onmouseout = onmouseout;
+ }
+
+ public String getOnmouseover() {
+ return onmouseover;
+ }
+
+ public void setOnmouseover(String onmouseover) {
+ this.onmouseover = onmouseover;
+ }
+
+ public String getOnselected() {
+ return onselected;
+ }
+
+ public void setOnselected(String onselected) {
+ this.onselected = onselected;
+ }
+
+ public String getOnhide() {
+ return onhide;
+ }
+
+ public void setOnhide(String onhide) {
+ this.onhide = onhide;
+ }
+
+ public String getOnshow() {
+ return onshow;
+ }
+
+ public void setOnshow(String onshow) {
+ this.onshow = onshow;
+ }
+
+ public String getOnlistcall() {
+ return onlistcall;
+ }
+
+ public void setOnlistcall(String onlistcall) {
+ this.onlistcall = onlistcall;
+ }
+
+ public String getOnitemselected() {
+ return onitemselected;
+ }
+
+ public void setOnitemselected(String onitemselected) {
+ this.onitemselected = onitemselected;
+ }
+
+ public String getOninputblur() {
+ return oninputblur;
+ }
+
+ public void setOninputblur(String oninputblur) {
+ this.oninputblur = oninputblur;
+ }
+
+ public String getOninputclick() {
+ return oninputclick;
+ }
+
+ public void setOninputclick(String oninputclick) {
+ this.oninputclick = oninputclick;
+ }
+
+ public String getOninputfocus() {
+ return oninputfocus;
+ }
+
+ public void setOninputfocus(String oninputfocus) {
+ this.oninputfocus = oninputfocus;
+ }
+
+ public String getOninputkeydown() {
+ return oninputkeydown;
+ }
+
+ public void setOninputkeydown(String oninputkeydown) {
+ this.oninputkeydown = oninputkeydown;
+ }
+
+ public String getOninputkeypress() {
+ return oninputkeypress;
+ }
+
+ public void setOninputkeypress(String oninputkeypress) {
+ this.oninputkeypress = oninputkeypress;
+ }
+
+ public String getOninputkeyup() {
+ return oninputkeyup;
+ }
+
+ public void setOninputkeyup(String oninputkeyup) {
+ this.oninputkeyup = oninputkeyup;
+ }
+
+ public String getOninputselect() {
+ return oninputselect;
+ }
+
+ public void setOninputselect(String oninputselect) {
+ this.oninputselect = oninputselect;
+ }
+
+ public String getOndateselected() {
+ return ondateselected;
+ }
+
+ public void setOndateselected(String ondateselected) {
+ this.ondateselected = ondateselected;
+ }
+
+ public String getOndateselect() {
+ return ondateselect;
+ }
+
+ public void setOndateselect(String ondateselect) {
+ this.ondateselect = ondateselect;
+ }
+
+ public String getOntimeselect() {
+ return ontimeselect;
+ }
+
+ public void setOntimeselect(String ontimeselect) {
+ this.ontimeselect = ontimeselect;
+ }
+
+ public String getOntimeselected() {
+ return ontimeselected;
+ }
+
+ public void setOntimeselected(String ontimeselected) {
+ this.ontimeselected = ontimeselected;
+ }
+
+ public String getOnchanged() {
+ return onchanged;
+ }
+
+ public void setOnchanged(String onchanged) {
+ this.onchanged = onchanged;
+ }
+
+ public String getOndatemouseover() {
+ return ondatemouseover;
+ }
+
+ public void setOndatemouseover(String ondatemouseover) {
+ this.ondatemouseover = ondatemouseover;
+ }
+
+ public String getOndatemouseout() {
+ return ondatemouseout;
+ }
+
+ public void setOndatemouseout(String ondatemouseout) {
+ this.ondatemouseout = ondatemouseout;
+ }
+
+ public String getOncurrentdateselect() {
+ return oncurrentdateselect;
+ }
+
+ public void setOncurrentdateselect(String oncurrentdateselect) {
+ this.oncurrentdateselect = oncurrentdateselect;
+ }
+
+ public String getOninputchange() {
+ return oninputchange;
+ }
+
+ public void setOninputchange(String oninputchange) {
+ this.oninputchange = oninputchange;
+ }
+
+ public String getOndropout() {
+ return ondropout;
+ }
+
+ public void setOndropout(String ondropout) {
+ this.ondropout = ondropout;
+ }
+
+ public String getOnbottomclick() {
+ return onbottomclick;
+ }
+
+ public void setOnbottomclick(String onbottomclick) {
+ this.onbottomclick = onbottomclick;
+ }
+
+ public String getOnorderchanged() {
+ return onorderchanged;
+ }
+
+ public void setOnorderchanged(String onorderchanged) {
+ this.onorderchanged = onorderchanged;
+ }
+
+ public String getOnmaskclick() {
+ return onmaskclick;
+ }
+
+ public void setOnmaskclick(String onmaskclick) {
+ this.onmaskclick = onmaskclick;
+ }
+
+ public String getOnresize() {
+ return onresize;
+ }
+
+ public void setOnresize(String onresize) {
+ this.onresize = onresize;
+ }
+
+ public String getOnmaskmouseover() {
+ return onmaskmouseover;
+ }
+
+ public void setOnmaskmouseover(String onmaskmouseover) {
+ this.onmaskmouseover = onmaskmouseover;
+ }
+
+ public String getOnmaskmouseout() {
+ return onmaskmouseout;
+ }
+
+ public void setOnmaskmouseout(String onmaskmouseout) {
+ this.onmaskmouseout = onmaskmouseout;
+ }
+
+ public String getOnmaskmousemove() {
+ return onmaskmousemove;
+ }
+
+ public void setOnmaskmousemove(String onmaskmousemove) {
+ this.onmaskmousemove = onmaskmousemove;
+ }
+
+ public String getOnmaskmouseup() {
+ return onmaskmouseup;
+ }
+
+ public void setOnmaskmouseup(String onmaskmouseup) {
+ this.onmaskmouseup = onmaskmouseup;
+ }
+
+ public String getOnmaskmousedown() {
+ return onmaskmousedown;
+ }
+
+ public void setOnmaskmousedown(String onmaskmousedown) {
+ this.onmaskmousedown = onmaskmousedown;
+ }
+
+ public String getOnmaskdblclick() {
+ return onmaskdblclick;
+ }
+
+ public void setOnmaskdblclick(String onmaskdblclick) {
+ this.onmaskdblclick = onmaskdblclick;
+ }
+
+ public String getOnmaskcontextmenu() {
+ return onmaskcontextmenu;
+ }
+
+ public void setOnmaskcontextmenu(String onmaskcontextmenu) {
+ this.onmaskcontextmenu = onmaskcontextmenu;
+ }
+
+
+ public String getOngroupcollapse() {
+ return ongroupcollapse;
+ }
+
+ public void setOngroupcollapse(String ongroupcollapse) {
+ this.ongroupcollapse = ongroupcollapse;
+ }
+
+ /**
+ * @return the onSlideSubmit
+ */
+ public String getOnSlideSubmit() {
+ return onSlideSubmit;
+ }
+
+ /**
+ * @param onSlideSubmit the onSlideSubmit to set
+ */
+ public void setOnSlideSubmit(String onSlideSubmit) {
+ this.onSlideSubmit = onSlideSubmit;
+ }
+
+ public String getOninputmousedown() {
+ return oninputmousedown;
+ }
+
+ public void setOninputmousedown(String oninputmousedown) {
+ this.oninputmousedown = oninputmousedown;
+ }
+
+ public String getOninputmousemove() {
+ return oninputmousemove;
+ }
+
+ public void setOninputmousemove(String oninputmousemove) {
+ this.oninputmousemove = oninputmousemove;
+ }
+
+ public String getOninputmouseout() {
+ return oninputmouseout;
+ }
+
+ public void setOninputmouseout(String oninputmouseout) {
+ this.oninputmouseout = oninputmouseout;
+ }
+
+ public String getOninputmouseover() {
+ return oninputmouseover;
+ }
+
+ public void setOninputmouseover(String oninputmouseover) {
+ this.oninputmouseover = oninputmouseover;
+ }
+
+ public String getOninputmouseup() {
+ return oninputmouseup;
+ }
+
+ public void setOninputmouseup(String oninputmouseup) {
+ this.oninputmouseup = oninputmouseup;
+ }
+
+ public String getOnviewactivated() {
+ return onviewactivated;
+ }
+
+ public void setOnviewactivated(String onviewactivated) {
+ this.onviewactivated = onviewactivated;
+ }
+
+ public String getOnviewactivation() {
+ return onviewactivation;
+ }
+
+ public void setOnviewactivation(String onviewactivation) {
+ this.onviewactivation = onviewactivation;
+ }
+
+ public String getOneditactivated() {
+ return oneditactivated;
+ }
+
+ public void setOneditactivated(String oneditactivated) {
+ this.oneditactivated = oneditactivated;
+ }
+
+ public String getOneditactivation() {
+ return oneditactivation;
+ }
+
+ public void setOneditactivation(String oneditactivation) {
+ this.oneditactivation = oneditactivation;
+ }
+
+ public String getOninputdblclick() {
+ return oninputdblclick;
+ }
+
+ public void setOninputdblclick(String oninputdblclick) {
+ this.oninputdblclick = oninputdblclick;
+ }
+
+ public String getOnclear() {
+ return onclear;
+ }
+
+ public void setOnclear(String onclear) {
+ this.onclear = onclear;
+ }
+
+ public String getOnsizerejected() {
+ return onsizerejected;
+ }
+
+ public void setOnsizerejected(String onsizerejected) {
+ this.onsizerejected = onsizerejected;
+ }
+
+ public String getOntyperejected() {
+ return ontyperejected;
+ }
+
+ public void setOntyperejected(String ontyperejected) {
+ this.ontyperejected = ontyperejected;
+ }
+
+ public String getOnupload() {
+ return onupload;
+ }
+
+ public void setOnupload(String onupload) {
+ this.onupload = onupload;
+ }
+
+ public String getOnuploadcanceled() {
+ return onuploadcanceled;
+ }
+
+ public void setOnuploadcanceled(String onuploadcanceled) {
+ this.onuploadcanceled = onuploadcanceled;
+ }
+
+ public String getOnuploadcomplete() {
+ return onuploadcomplete;
+ }
+
+ public void setOnuploadcomplete(String onuploadcomplete) {
+ this.onuploadcomplete = onuploadcomplete;
+ }
+
+ public String getOnbeforehide() {
+ return onbeforehide;
+ }
+
+ public void setOnbeforehide(String onbeforehide) {
+ this.onbeforehide = onbeforehide;
+ }
+
+ public String getOnbeforeshow() {
+ return onbeforeshow;
+ }
+
+ public void setOnbeforeshow(String onbeforeshow) {
+ this.onbeforeshow = onbeforeshow;
+ }
+
+ public String getOnobjectchange() {
+ return onobjectchange;
+ }
+
+ public void setOnobjectchange(String onobjectchange) {
+ this.onobjectchange = onobjectchange;
+ }
+
+ public String getOnadd() {
+ return onadd;
+ }
+
+ public void setOnadd(String onadd) {
+ this.onadd = onadd;
+ }
+
+ public String getOnitemclick() {
+ return onitemclick;
+ }
+
+ public void setOnitemclick(String onitemclick) {
+ this.onitemclick = onitemclick;
+ }
+
+ public String getOnitemdblclick() {
+ return onitemdblclick;
+ }
+
+ public void setOnitemdblclick(String onitemdblclick) {
+ this.onitemdblclick = onitemdblclick;
+ }
+
+ public String getOnitemkeydown() {
+ return onitemkeydown;
+ }
+
+ public void setOnitemkeydown(String onitemkeydown) {
+ this.onitemkeydown = onitemkeydown;
+ }
+
+ public String getOnitemkeypress() {
+ return onitemkeypress;
+ }
+
+ public void setOnitemkeypress(String onitemkeypress) {
+ this.onitemkeypress = onitemkeypress;
+ }
+
+ public String getOnitemkeyup() {
+ return onitemkeyup;
+ }
+
+ public void setOnitemkeyup(String onitemkeyup) {
+ this.onitemkeyup = onitemkeyup;
+ }
+
+ public String getOnitemmousedown() {
+ return onitemmousedown;
+ }
+
+ public void setOnitemmousedown(String onitemmousedown) {
+ this.onitemmousedown = onitemmousedown;
+ }
+
+ public String getOnitemmousemove() {
+ return onitemmousemove;
+ }
+
+ public void setOnitemmousemove(String onitemmousemove) {
+ this.onitemmousemove = onitemmousemove;
+ }
+
+ public String getOnitemmouseout() {
+ return onitemmouseout;
+ }
+
+ public void setOnitemmouseout(String onitemmouseout) {
+ this.onitemmouseout = onitemmouseout;
+ }
+
+ public String getOnitemmouseover() {
+ return onitemmouseover;
+ }
+
+ public void setOnitemmouseover(String onitemmouseover) {
+ this.onitemmouseover = onitemmouseover;
+ }
+
+ public String getOnitemmouseup() {
+ return onitemmouseup;
+ }
+
+ public void setOnitemmouseup(String onitemmouseup) {
+ this.onitemmouseup = onitemmouseup;
+ }
+
+ public String getOnpagechange() {
+ return onpagechange;
+ }
+
+ public void setOnpagechange(String onpagechange) {
+ this.onpagechange = onpagechange;
+ }
+
+ public String getOndbclick() {
+ return ondbclick;
+ }
+
+ public void setOndbclick(String ondbclick) {
+ this.ondbclick = ondbclick;
+ }
+
+}
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/java/util/icon/Icon.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/icon/Icon.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/icon/Icon.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,194 @@
+package util.icon;
+
+public class Icon {
+
+ public final String iconAjaxProcess = "/pics/ajax_process.gif";
+ public final String iconAjaxStoped = "/pics/ajax_stoped.gif";
+ public final String iconCollapse = "/pics/collapse.gif";
+ public final String iconExpand = "/pics/expand.gif";
+ public final String iconFileManagerReject = "/pics/file-manager-reject.png";
+ public final String iconFileManager = "/pics/file-manager.png";
+ public final String iconHeader = "/pics/header.png";
+ public final String iconItem = "/pics/item.png";
+ public final String none = "none";
+
+ private String icon;
+ private String item;
+ private String disabled;
+ private String disabledItem;
+ private String topItem;
+ private String topDisabledItem;
+ private String expandedGroup;
+ private String collapsedGroup;
+ private String disabledGroup;
+ private String expandedTopGroup;
+ private String collapsedTopGroup;
+ private String topDisableGroup;
+ private String expanded;
+ private String collapsed;
+
+ public Icon() {
+ icon = "none";
+ item = "none";
+ disabled = "none";
+ disabledItem = "none";
+ topItem = "none";
+ topDisabledItem = "none";
+ expandedGroup = "none";
+ collapsedGroup = "none";
+ disabledGroup = "none";
+ expandedTopGroup = "none";
+ collapsedTopGroup = "none";
+ topDisableGroup = "none";
+ expanded = "none";
+ collapsed = "none";
+ }
+
+ public final String getIconAjaxProcess() {
+ return iconAjaxProcess;
+ }
+
+ public final String getIconAjaxStoped() {
+ return iconAjaxStoped;
+ }
+
+ public final String getIconCollapse() {
+ return iconCollapse;
+ }
+
+ public final String getIconExpand() {
+ return iconExpand;
+ }
+
+ public final String getIconFileManager() {
+ return iconFileManager;
+ }
+
+ public final String getIconFileManagerReject() {
+ return iconFileManagerReject;
+ }
+
+ public final String getIconHeader() {
+ return iconHeader;
+ }
+
+ public final String getIconItem() {
+ return iconItem;
+ }
+
+ public String getCollapsed() {
+ return collapsed;
+ }
+
+ public void setCollapsed(String collapsed) {
+ this.collapsed = collapsed;
+ }
+
+ public String getCollapsedGroup() {
+ return collapsedGroup;
+ }
+
+ public void setCollapsedGroup(String collapsedGroup) {
+ this.collapsedGroup = collapsedGroup;
+ }
+
+ public String getCollapsedTopGroup() {
+ return collapsedTopGroup;
+ }
+
+ public void setCollapsedTopGroup(String collapsedTopGroup) {
+ this.collapsedTopGroup = collapsedTopGroup;
+ }
+
+ public String getDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(String disabled) {
+ this.disabled = disabled;
+ }
+
+ public String getDisabledGroup() {
+ return disabledGroup;
+ }
+
+ public void setDisabledGroup(String disabledGroup) {
+ this.disabledGroup = disabledGroup;
+ }
+
+ public String getDisabledItem() {
+ return disabledItem;
+ }
+
+ public void setDisabledItem(String disabledItem) {
+ this.disabledItem = disabledItem;
+ }
+
+ public String getExpanded() {
+ return expanded;
+ }
+
+ public void setExpanded(String expanded) {
+ this.expanded = expanded;
+ }
+
+ public String getExpandedGroup() {
+ return expandedGroup;
+ }
+
+ public void setExpandedGroup(String expandedGroup) {
+ this.expandedGroup = expandedGroup;
+ }
+
+ public String getExpandedTopGroup() {
+ return expandedTopGroup;
+ }
+
+ public void setExpandedTopGroup(String expandedTopGroup) {
+ this.expandedTopGroup = expandedTopGroup;
+ }
+
+ public String getIcon() {
+ return icon;
+ }
+
+ public void setIcon(String icon) {
+ this.icon = icon;
+ }
+
+ public String getItem() {
+ return item;
+ }
+
+ public void setItem(String item) {
+ this.item = item;
+ }
+
+ public String getTopDisabledItem() {
+ return topDisabledItem;
+ }
+
+ public void setTopDisabledItem(String topDisabledItem) {
+ this.topDisabledItem = topDisabledItem;
+ }
+
+ public String getTopDisableGroup() {
+ return topDisableGroup;
+ }
+
+ public void setTopDisableGroup(String topDisableGroup) {
+ this.topDisableGroup = topDisableGroup;
+ }
+
+ public String getTopItem() {
+ return topItem;
+ }
+
+ public void setTopItem(String topItem) {
+ this.topItem = topItem;
+ }
+
+ public final String getNone() {
+ return none;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/parser/Attribute.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/parser/Attribute.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/parser/Attribute.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,64 @@
+package util.parser;
+
+public class Attribute {
+ private String name;
+ private String type;
+ private String description;
+ private Status status;
+
+ public Attribute(){
+ this.description = "";
+ }
+
+ public Attribute(String name){
+ this.name = name;
+ this.description = "";
+ }
+
+ public Attribute(String name, String type, String desc, Status status){
+ this.name = name;
+ this.type = type;
+ this.description = desc;
+ this.status = status;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public Status getStatus() {
+ return status;
+ }
+
+ public void setStatus(Status status) {
+ this.status = status;
+ }
+
+ @Override
+ public String toString(){
+ return "[" + "Name: " + name + "\r\n" + "Description: " + description + "\r\n" +
+ "Type: " + type + "\r\n" + "Status: " + status + "]";
+ }
+}
+
+ enum Status {NOT_READY, IMPLEMENTED, FAILED, PASSED}
Added: trunk/test-applications/auto-jsp/src/main/java/util/parser/TLDParser.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/parser/TLDParser.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/parser/TLDParser.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,189 @@
+package util.parser;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.util.ArrayList;
+import java.util.jar.JarEntry;
+import java.util.jar.JarFile;
+
+public class TLDParser {
+
+ protected String component;
+ protected JarEntry tld;
+ protected JarFile richfacesUI;
+ protected ArrayList<Attribute> allAttributes;
+
+ public TLDParser(String str) {
+ this.component = str;
+ allAttributes = new ArrayList<Attribute>();
+ }
+
+ public ArrayList<Attribute> getAllAttributes() {
+
+ tld = getRichfacesUI().getJarEntry("META-INF/richfaces.tld");
+ InputStream input = null;
+ try {
+ input = richfacesUI.getInputStream(tld);
+
+ InputStreamReader isr = new InputStreamReader(input);
+ BufferedReader reader = new BufferedReader(isr);
+ String line, attr;
+ Attribute attribute = new Attribute();
+ int position, end;
+ boolean insideTag = true;
+ StringBuilder sb = new StringBuilder("");
+ while (((line = reader.readLine()) != null) && insideTag) {
+ if ((position = line.indexOf("<name>")) != -1) {
+ end = line.indexOf("</name>");
+ attr = line.substring(position + 6, end).trim();
+ if (attr.equalsIgnoreCase(component)) {
+ while (!(line = reader.readLine()).contains("</tag>")) {
+ if (line.contains("<attribute>")) {
+ do {
+ // find attribute name
+ if ((position = line.indexOf("<name>")) != -1) {
+ end = line.indexOf("</name>");
+ attribute.setName(line.substring(
+ position + 6, end).trim());
+ }
+ // find attribute description
+ if ((position = line.indexOf("<description>")) != -1) {
+
+ if((end = line.indexOf("</description>")) != -1){
+ attribute.setDescription(line.substring(position + 13, line.length()-14));
+ }else{
+ sb.append(line.substring(position + 13, line.length()).trim().replaceAll("\t", ""));
+ line = reader.readLine();
+ while ((end = line.indexOf("</description>")) == -1) {
+ sb.append(line.substring(0, line.length()).replaceAll("\t", ""));
+ line = reader.readLine();
+ }
+ sb.append(line.substring(0, line.length() - 14).trim().replaceAll("\t", ""));
+
+ attribute.setDescription(sb.toString());
+ sb.delete(0, sb.length());
+ }
+ }
+ // find attribute type
+ if ((position = line.indexOf("<type>")) != -1) {
+ end = line.indexOf("</type>");
+ attribute.setType(line.substring(position + 6, end).trim());
+ }
+ // find attribute method-signature
+ if ((position = line.indexOf("<method-signature>")) != -1) {
+ end = line.indexOf("</method-signature>");
+ attribute.setType(line.substring(position + 18, end).trim());
+ }
+ } while (!((line = reader.readLine())
+ .contains("</attribute>")));
+ // define attribute status
+ attribute.setStatus(Status.NOT_READY);
+ allAttributes.add(attribute);
+ attribute = new Attribute();
+ }
+ }
+ insideTag = false;
+ }
+ }
+ }
+ reader.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ return allAttributes;
+ }
+
+ public String getExtPath() {
+ ClassLoader loader = Thread.currentThread().getContextClassLoader();
+ String resource = "META-INF/richfaces.tld";
+ return loader.getResource(resource).toString();
+ }
+
+ public String getComponent() {
+ return component;
+ }
+
+ public void setComponent(String component) {
+ this.component = component;
+ }
+
+ public JarFile getRichfacesUI() {
+ String temp = null;
+ int position;
+ try {
+ if ((position = getExtPath().indexOf('!')) != -1) {
+ temp = getExtPath().substring("jar:file:\\".length(), position);
+ }
+ richfacesUI = new JarFile(temp);
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ return richfacesUI;
+ }
+ public ArrayList<String> getNamesArray(){
+ ArrayList<String> result = new ArrayList<String>();
+ for(Attribute attr:allAttributes){
+ result.add(attr.getName());
+ }
+ return result;
+ }
+
+ public ArrayList<String> getDescriptionArray(){
+ ArrayList<String> result = new ArrayList<String>();
+ for(Attribute attr:allAttributes){
+ result.add(attr.getDescription());
+ }
+ return result;
+ }
+
+ public ArrayList<String> getTypeArray(){
+ ArrayList<String> result = new ArrayList<String>();
+ for(Attribute attr:allAttributes){
+ result.add(attr.getType());
+ }
+ return result;
+ }
+
+ public ArrayList<Status> getStatusArray(){
+ ArrayList<Status> result = new ArrayList<Status>();
+ for(Attribute attr:allAttributes){
+ result.add(attr.getStatus());
+ }
+ return result;
+ }
+
+ public ArrayList<String> getHandlers(){
+ ArrayList<String> attributes = this.getNamesArray();
+ ArrayList<String> result = new ArrayList<String>();
+ for(String str:attributes){
+ if (str.startsWith("on")) {
+ result.add(str);
+ }
+ }
+ return result;
+ }
+
+ public ArrayList<String> getStyles(){
+ ArrayList<String> attributes = this.getNamesArray();
+ ArrayList<String> result = new ArrayList<String>();
+ for(String str:attributes){
+ if (str.indexOf("tyle") != -1 || str.indexOf("lass") != -1) {
+ result.add(str);
+ }
+ }
+ return result;
+ }
+
+ public ArrayList<String> getCommonAttributes(){
+ ArrayList<String> attributes = this.getNamesArray();
+ ArrayList<String> result = new ArrayList<String>();
+ for(String str:attributes){
+ if(!(str.startsWith("on") || (str.indexOf("tyle") != -1) || (str.indexOf("lass") != -1))){
+ result.add(str);
+ }
+ }
+ return result;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/phaseTracker/PhaseTracker.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/phaseTracker/PhaseTracker.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/phaseTracker/PhaseTracker.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,47 @@
+/**
+ *
+ */
+package util.phaseTracker;
+
+import java.util.Iterator;
+
+import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
+import javax.faces.event.PhaseEvent;
+import javax.faces.event.PhaseId;
+import javax.faces.event.PhaseListener;
+
+/**
+ * @author AYanul
+ *
+ */
+public class PhaseTracker implements PhaseListener {
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.PhaseListener#afterPhase(javax.faces.event.PhaseEvent)
+ */
+ public void afterPhase(PhaseEvent arg0) {
+ System.out.println("PhaseTracker.afterPhase()" + arg0.getPhaseId());
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.PhaseListener#beforePhase(javax.faces.event.PhaseEvent)
+ */
+ public void beforePhase(PhaseEvent arg0) {
+ System.out.println("PhaseTracker.beforePhase()" + arg0.getPhaseId());
+// ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
+// Iterator names = externalContext.getRequestParameterNames();
+// while (names.hasNext()) {
+// System.out.println(names.next());
+// }
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.PhaseListener#getPhaseId()
+ */
+ public PhaseId getPhaseId() {
+ return PhaseId.ANY_PHASE;
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/phaseTracker/PhaseTrackerComponent.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/phaseTracker/PhaseTrackerComponent.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/phaseTracker/PhaseTrackerComponent.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,61 @@
+/**
+ *
+ */
+package util.phaseTracker;
+
+import java.io.IOException;
+import java.io.StringWriter;
+import java.util.Map;
+
+import javax.faces.component.UIPanel;
+import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
+import javax.faces.context.ResponseWriter;
+
+/**
+ * @author user
+ *
+ */
+public class PhaseTrackerComponent extends UIPanel{
+
+// private String var;
+//
+// public String getVar() {
+// if (var == null) {
+// return "pttc";
+// }
+// return var;
+// }
+//
+// public void setVar(String var) {
+// this.var = var;
+// }
+
+ @Override
+ public void encodeAll(FacesContext context) throws IOException {
+ ResponseWriter responseWriter = context.getResponseWriter();
+ StringWriter stringWriter = new StringWriter();
+ ResponseWriter clonedWriter = responseWriter.cloneWithWriter(stringWriter);
+ context.setResponseWriter(clonedWriter);
+
+ super.encodeAll(context);
+ clonedWriter.flush();
+ context.setResponseWriter(responseWriter);
+
+ String string = stringWriter.toString();
+ responseWriter.write(string);
+ //System.out.println(string);
+
+ ExternalContext externalContext = context.getExternalContext();
+ Map<String, Object> requestMap = externalContext.getRequestMap();
+ requestMap.put("pttc", string);
+// requestMap.put(getAttributes().get("var"), string);
+ }
+
+ @Override
+ public String getRendererType() {
+ return null;
+ }
+
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/ptComponent/PTComponent.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/ptComponent/PTComponent.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/ptComponent/PTComponent.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,18 @@
+package util.ptComponent;
+
+import javax.faces.component.UIPanel;
+
+import util.phaseTracker.PhaseTrackerComponent;
+
+public class PTComponent {
+ private UIPanel component = new PhaseTrackerComponent();
+
+
+ public UIPanel getComponent() {
+ return component;
+ }
+
+ public void setComponent(UIPanel component) {
+ this.component = component;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/skins/Skins.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/skins/Skins.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/skins/Skins.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,79 @@
+package util.skins;
+
+import java.util.Map;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.UISelectItem;
+import javax.faces.component.UISelectOne;
+import javax.faces.component.html.HtmlSelectOneMenu;
+import javax.faces.component.html.HtmlSelectOneRadio;
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Nick Belaevski - nbelaevski(a)exadel.com created 09.02.2007
+ *
+ */
+public class Skins {
+
+ private String[] skinsArray = new String[] { "blueSky", "classic",
+ "deepMarine", "DEFAULT", "emeraldTown", "japanCherry", "ruby",
+ "wine", "plain" };
+
+ private String defaultSkin = "deepMarine";
+
+ private String skin = defaultSkin;
+
+ private UISelectOne createComponent() {
+ UISelectOne selectOne = new HtmlSelectOneMenu();
+ selectOne.setValue(skin);
+
+ for (int i = 0; i < skinsArray.length; i++) {
+ String skinName = skinsArray[i];
+
+ UISelectItem item = new UISelectItem();
+ item.setItemLabel(skinName);
+ item.setItemValue(skinName);
+ item.setId("skinSelectionFor_" + skinName);
+
+ selectOne.getChildren().add(item);
+ }
+
+ return selectOne;
+ }
+
+ public String getSkin() {
+ return skin;
+ }
+
+ public UIComponent getComponent() {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ Map requestMap = facesContext.getExternalContext().getRequestMap();
+ Object object = requestMap.get("SkinBean");
+ if (object != null) {
+ return (UISelectOne) object;
+ }
+
+ UISelectOne selectOne = createComponent();
+ requestMap.put("SkinBean", selectOne);
+ return selectOne;
+ }
+
+ /**
+ * @param skin the skin to set
+ */
+ public void setSkin(String skin) {
+ this.skin = skin;
+ }
+
+ public void setComponent(UIComponent component) {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ Map requestMap = facesContext.getExternalContext().getRequestMap();
+ requestMap.put("SkinBean", component);
+ }
+
+ public String change() {
+ UISelectOne selectOne = (UISelectOne) getComponent();
+ skin = (String) selectOne.getValue();
+ return null;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/util/style/Style.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/util/style/Style.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/util/style/Style.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,748 @@
+package util.style;
+
+import rich.RichBean;
+
+public class Style {
+ private RichBean curentComponent;
+ private String controlsClass;
+ private String style;
+ private String styleClass;
+ private String rangeStyleClass;
+ private String fieldStyleClass;
+ private String trackStyleClass;
+ private String columnClasses;
+ private String footerClass;
+ private String headerClass;
+ private String rowClasses;
+ private String inactiveStyle;
+ private String inactiveStyleClass;
+ private String selectedStyle;
+ private String selectedStyleClass;
+ private String tableStyle;
+ private String tableStyleClass;
+ private String captionClass;
+ private String dayStyleClass;
+ private String inputStyle;
+ private String barStyle;
+ private String handleSelectedClass;
+ private String handleStyleClass;
+ private String tipStyle;
+ private String buttonClass;
+ private String buttonDisabledClass;
+ private String buttonDisabledStyle;
+ private String buttonInactiveClass;
+ private String buttonInactiveStyle;
+ private String buttonStyle;
+ private String inputClass;
+ private String inputDisabledClass;
+ private String inputDisabledStyle;
+ private String inputInactiveClass;
+ private String inputInactiveStyle;
+ private String itemClass;
+ private String listClass;
+ private String listStyle;
+ private String disabledItemClass;
+ private String disabledItemStyle;
+ private String itemStyle;
+ private String selectItemStyle;
+ private String selectItemClass;
+ private String iconClass;
+ private String iconStyle;
+ private String selectClass;
+ private String selectStyle;
+ private String highlightedClass;
+ private String tabClass;
+ private String entryClass;
+ private String popupClass;
+ private String popupStyle;
+ private String selectedClass;
+ private String remainClass;
+ private String initialClass;
+ private String finishClass;
+ private String completeClass;
+ private String controlClass;
+ private String captionStyle;
+ private String activeClass;
+ private String trailerStyleClass;
+ private String barClass;
+ private String handleStyle;
+ private String contentStyle;
+ private String styleA;
+ private String styleClassA;
+ private String selectStyleA;
+ private String iconClassA;
+ private String iconStyleA;
+ private String selectClassA;
+ private String rowClassesA;
+ private String columnClassesA;
+ private String footerClassA;
+ private String headerClassA;
+
+ public Style() {
+ controlsClass = "controlsClass";
+ style = "style";
+ styleClass = "styleClass";
+ rangeStyleClass = "rangeStyleClass";
+ fieldStyleClass = "fieldStyleClass";
+ trackStyleClass = "trackStyleClass";
+ columnClasses = "columnClasses";
+ footerClass = "footerClass";
+ headerClass = "headerClass";
+ rowClasses = "rowClasses";
+ inactiveStyle = "inactiveStyle";
+ inactiveStyleClass = "inactiveStyleClass";
+ selectedStyle = "selectedStyle";
+ selectedStyleClass = "selectedStyleClass";
+ tableStyle = "tableStyle";
+ tableStyleClass = "tableStyleClass";
+ captionClass = "captionClass";
+ dayStyleClass = "dayStyleClass";
+ inputStyle = "inputStyle";
+ barStyle = "barStyle";
+ handleSelectedClass = "handleSelectedClass";
+ tipStyle = "tipStyle";
+ buttonClass = "buttonClass";
+ buttonDisabledClass = "buttonDisabledClass";
+ buttonDisabledStyle = "buttonDisabledStyle";
+ buttonInactiveClass = "buttonInactiveClass";
+ buttonInactiveStyle = "buttonInactiveStyle";
+ buttonStyle = "buttonStyle";
+ inputClass = "inputClass";
+ inputDisabledClass = "inputDisabledClass";
+ inputDisabledStyle = "inputDisabledStyle";
+ inputInactiveClass = "inputInactiveClass";
+ inputInactiveStyle = "inputInactiveStyle";
+ itemClass = "itemClass";
+ listClass = "listClass";
+ listStyle = "listStyle";
+ disabledItemClass = "disabledItemClass";
+ disabledItemStyle = "disabledItemStyle";
+ itemStyle = "itemStyle";
+ selectItemStyle = "selectItemStyle";
+ selectItemClass = "selectItemClass";
+ iconClass = "iconClass";
+ iconStyle = "iconStyle";
+ selectClass = "selectClass";
+ selectStyle = "selectStyle";
+ highlightedClass = "highlightedClass";
+ handleStyleClass = "handleStyleClass";
+ tabClass = "tabClass";
+ entryClass = "entryClass";
+ popupClass = "popupClass";
+ popupStyle = "popupStyle";
+ selectedClass = "selectedClass";
+ remainClass = "remainClass";
+ initialClass = "initialClass";
+ finishClass = "finishClass";
+ completeClass = "completeClass";
+ controlClass = "controlClass";
+ captionStyle = "captionStyle";
+ activeClass = "activeClass";
+ trailerStyleClass = "trailerStyleClass";
+ barClass = "barClass";
+ handleStyle = "handleStyle";
+ contentStyle = "contentStyle";
+ styleA = "styleA";
+ styleClassA = "styleClassA";
+ selectStyleA = "selectStyleA";
+ iconClassA = "iconClassA";
+ iconStyleA = "iconStyleA";
+ selectClassA = "selectClassA";
+ rowClassesA = "rowClassesA";
+ columnClassesA = "columnClassesA";
+ footerClassA = "footerClassA";
+ headerClassA = "headerClassA";
+ }
+
+ public String getStyle() {
+ return style;
+ }
+
+ public void setStyle(String style) {
+ this.style = style;
+ }
+
+ public String getStyleClass() {
+ return styleClass;
+ }
+
+ public void setStyleClass(String styleClass) {
+ this.styleClass = styleClass;
+ }
+
+ public String getRangeStyleClass() {
+ return rangeStyleClass;
+ }
+
+ public void setRangeStyleClass(String rangeStyleClass) {
+ this.rangeStyleClass = rangeStyleClass;
+ }
+
+ public String getFieldStyleClass() {
+ return fieldStyleClass;
+ }
+
+ public void setFieldStyleClass(String fieldStyleClass) {
+ this.fieldStyleClass = fieldStyleClass;
+ }
+
+ public String getTrackStyleClass() {
+ return trackStyleClass;
+ }
+
+ public void setTrackStyleClass(String trackStyleClass) {
+ this.trackStyleClass = trackStyleClass;
+ }
+
+ public String getColumnClasses() {
+ return columnClasses;
+ }
+
+ public void setColumnClasses(String columnClasses) {
+ this.columnClasses = columnClasses;
+ }
+
+ public String getFooterClass() {
+ return footerClass;
+ }
+
+ public void setFooterClass(String footerClass) {
+ this.footerClass = footerClass;
+ }
+
+ public String getHeaderClass() {
+ return headerClass;
+ }
+
+ public void setHeaderClass(String headerClass) {
+ this.headerClass = headerClass;
+ }
+
+ public String getRowClasses() {
+ return rowClasses;
+ }
+
+ public void setRowClasses(String rowClasses) {
+ this.rowClasses = rowClasses;
+ }
+
+ public String getInactiveStyle() {
+ return inactiveStyle;
+ }
+
+ public void setInactiveStyle(String inactiveStyle) {
+ this.inactiveStyle = inactiveStyle;
+ }
+
+ public String getInactiveStyleClass() {
+ return inactiveStyleClass;
+ }
+
+ public void setInactiveStyleClass(String inactiveStyleClass) {
+ this.inactiveStyleClass = inactiveStyleClass;
+ }
+
+ public String getSelectedStyle() {
+ return selectedStyle;
+ }
+
+ public void setSelectedStyle(String selectedStyle) {
+ this.selectedStyle = selectedStyle;
+ }
+
+ public String getSelectedStyleClass() {
+ return selectedStyleClass;
+ }
+
+ public void setSelectedStyleClass(String selectedStyleClass) {
+ this.selectedStyleClass = selectedStyleClass;
+ }
+
+ public String getTableStyle() {
+ return tableStyle;
+ }
+
+ public void setTableStyle(String tableStyle) {
+ this.tableStyle = tableStyle;
+ }
+
+ public String getTableStyleClass() {
+ return tableStyleClass;
+ }
+
+ public void setTableStyleClass(String tableStyleClass) {
+ this.tableStyleClass = tableStyleClass;
+ }
+
+ public String getCaptionClass() {
+ return captionClass;
+ }
+
+ public void setCaptionClass(String captionClass) {
+ this.captionClass = captionClass;
+ }
+
+ public String getDayStyleClass() {
+ return dayStyleClass;
+ }
+
+ public void setDayStyleClass(String dayStyleClass) {
+ this.dayStyleClass = dayStyleClass;
+ }
+
+ public String getInputStyle() {
+ return inputStyle;
+ }
+
+ public void setInputStyle(String inputStyle) {
+ this.inputStyle = inputStyle;
+ }
+
+ public String getBarStyle() {
+ return barStyle;
+ }
+
+ public void setBarStyle(String barStyle) {
+ this.barStyle = barStyle;
+ }
+
+ public String getHandleSelectedClass() {
+ return handleSelectedClass;
+ }
+
+ public void setHandleSelectedClass(String handleSelectedClass) {
+ this.handleSelectedClass = handleSelectedClass;
+ }
+
+ public String getTipStyle() {
+ return tipStyle;
+ }
+
+ public void setTipStyle(String tipStyle) {
+ this.tipStyle = tipStyle;
+ }
+
+ public String getButtonClass() {
+ return buttonClass;
+ }
+
+ public void setButtonClass(String buttonClass) {
+ this.buttonClass = buttonClass;
+ }
+
+ public String getButtonDisabledClass() {
+ return buttonDisabledClass;
+ }
+
+ public void setButtonDisabledClass(String buttonDisabledClass) {
+ this.buttonDisabledClass = buttonDisabledClass;
+ }
+
+ public String getButtonDisabledStyle() {
+ return buttonDisabledStyle;
+ }
+
+ public void setButtonDisabledStyle(String buttonDisabledStyle) {
+ this.buttonDisabledStyle = buttonDisabledStyle;
+ }
+
+ public String getButtonInactiveClass() {
+ return buttonInactiveClass;
+ }
+
+ public void setButtonInactiveClass(String buttonInactiveClass) {
+ this.buttonInactiveClass = buttonInactiveClass;
+ }
+
+ public String getButtonInactiveStyle() {
+ return buttonInactiveStyle;
+ }
+
+ public void setButtonInactiveStyle(String buttonInactiveStyle) {
+ this.buttonInactiveStyle = buttonInactiveStyle;
+ }
+
+ public String getButtonStyle() {
+ return buttonStyle;
+ }
+
+ public void setButtonStyle(String buttonStyle) {
+ this.buttonStyle = buttonStyle;
+ }
+
+ public String getInputClass() {
+ return inputClass;
+ }
+
+ public void setInputClass(String inputClass) {
+ this.inputClass = inputClass;
+ }
+
+ public String getInputDisabledClass() {
+ return inputDisabledClass;
+ }
+
+ public void setInputDisabledClass(String inputDisabledClass) {
+ this.inputDisabledClass = inputDisabledClass;
+ }
+
+ public String getInputDisabledStyle() {
+ return inputDisabledStyle;
+ }
+
+ public void setInputDisabledStyle(String inputDisabledStyle) {
+ this.inputDisabledStyle = inputDisabledStyle;
+ }
+
+ public String getInputInactiveClass() {
+ return inputInactiveClass;
+ }
+
+ public void setInputInactiveClass(String inputInactiveClass) {
+ this.inputInactiveClass = inputInactiveClass;
+ }
+
+ public String getInputInactiveStyle() {
+ return inputInactiveStyle;
+ }
+
+ public void setInputInactiveStyle(String inputInactiveStyle) {
+ this.inputInactiveStyle = inputInactiveStyle;
+ }
+
+ public String getItemClass() {
+ return itemClass;
+ }
+
+ public void setItemClass(String itemClass) {
+ this.itemClass = itemClass;
+ }
+
+ public String getListClass() {
+ return listClass;
+ }
+
+ public void setListClass(String listClass) {
+ this.listClass = listClass;
+ }
+
+ public String getListStyle() {
+ return listStyle;
+ }
+
+ public void setListStyle(String listStyle) {
+ this.listStyle = listStyle;
+ }
+
+ public String getDisabledItemClass() {
+ return disabledItemClass;
+ }
+
+ public void setDisabledItemClass(String disabledItemClass) {
+ this.disabledItemClass = disabledItemClass;
+ }
+
+ public String getDisabledItemStyle() {
+ return disabledItemStyle;
+ }
+
+ public void setDisabledItemStyle(String disabledItemStyle) {
+ this.disabledItemStyle = disabledItemStyle;
+ }
+
+ public String getItemStyle() {
+ return itemStyle;
+ }
+
+ public void setItemStyle(String itemStyle) {
+ this.itemStyle = itemStyle;
+ }
+
+ public String getSelectItemStyle() {
+ return selectItemStyle;
+ }
+
+ public void setSelectItemStyle(String selectItemStyle) {
+ this.selectItemStyle = selectItemStyle;
+ }
+
+ public String getSelectItemClass() {
+ return selectItemClass;
+ }
+
+ public void setSelectItemClass(String selectItemClass) {
+ this.selectItemClass = selectItemClass;
+ }
+
+ public String getIconClass() {
+ return iconClass;
+ }
+
+ public void setIconClass(String iconClass) {
+ this.iconClass = iconClass;
+ }
+
+ public String getIconStyle() {
+ return iconStyle;
+ }
+
+ public void setIconStyle(String iconStyle) {
+ this.iconStyle = iconStyle;
+ }
+
+ public String getSelectClass() {
+ return selectClass;
+ }
+
+ public void setSelectClass(String selectClass) {
+ this.selectClass = selectClass;
+ }
+
+ public String getSelectStyle() {
+ return selectStyle;
+ }
+
+ public void setSelectStyle(String selectStyle) {
+ this.selectStyle = selectStyle;
+ }
+
+ public String getHighlightedClass() {
+ return highlightedClass;
+ }
+
+ public void setHighlightedClass(String highlightedClass) {
+ this.highlightedClass = highlightedClass;
+ }
+
+ public String getTabClass() {
+ return tabClass;
+ }
+
+ public void setTabClass(String tabClass) {
+ this.tabClass = tabClass;
+ }
+
+ public String getEntryClass() {
+ return entryClass;
+ }
+
+ public void setEntryClass(String entryClass) {
+ this.entryClass = entryClass;
+ }
+
+ public String getPopupClass() {
+ return popupClass;
+ }
+
+ public void setPopupClass(String popupClass) {
+ this.popupClass = popupClass;
+ }
+
+ public String getPopupStyle() {
+ return popupStyle;
+ }
+
+ public void setPopupStyle(String popupStyle) {
+ this.popupStyle = popupStyle;
+ }
+
+ public String getSelectedClass() {
+ return selectedClass;
+ }
+
+ public void setSelectedClass(String selectedClass) {
+ this.selectedClass = selectedClass;
+ }
+
+ public String getRemainClass() {
+ return remainClass;
+ }
+
+ public void setRemainClass(String remainClass) {
+ this.remainClass = remainClass;
+ }
+
+ public String getInitialClass() {
+ return initialClass;
+ }
+
+ public void setInitialClass(String initialClass) {
+ this.initialClass = initialClass;
+ }
+
+ public String getFinishClass() {
+ return finishClass;
+ }
+
+ public void setFinishClass(String finishClass) {
+ this.finishClass = finishClass;
+ }
+
+ public String getCompleteClass() {
+ return completeClass;
+ }
+
+ public void setCompleteClass(String completeClass) {
+ this.completeClass = completeClass;
+ }
+
+ public String getControlClass() {
+ return controlClass;
+ }
+
+ public void setControlClass(String controlClass) {
+ this.controlClass = controlClass;
+ }
+
+ public String getStyleA() {
+ return styleA;
+ }
+
+ public void setStyleA(String styleA) {
+ this.styleA = styleA;
+ }
+
+ public String getStyleClassA() {
+ return styleClassA;
+ }
+
+ public void setStyleClassA(String styleClassA) {
+ this.styleClassA = styleClassA;
+ }
+
+ public String getSelectStyleA() {
+ return selectStyleA;
+ }
+
+ public void setSelectStyleA(String selectStyleA) {
+ this.selectStyleA = selectStyleA;
+ }
+
+ public String getIconClassA() {
+ return iconClassA;
+ }
+
+ public void setIconClassA(String iconClassA) {
+ this.iconClassA = iconClassA;
+ }
+
+ public String getIconStyleA() {
+ return iconStyleA;
+ }
+
+ public void setIconStyleA(String iconStyleA) {
+ this.iconStyleA = iconStyleA;
+ }
+
+ public String getSelectClassA() {
+ return selectClassA;
+ }
+
+ public void setSelectClassA(String selectClassA) {
+ this.selectClassA = selectClassA;
+ }
+
+ public String getCaptionStyle() {
+ return captionStyle;
+ }
+
+ public void setCaptionStyle(String captionStyle) {
+ this.captionStyle = captionStyle;
+ }
+
+ public String getRowClassesA() {
+ return rowClassesA;
+ }
+
+ public void setRowClassesA(String rowClassesA) {
+ this.rowClassesA = rowClassesA;
+ }
+
+ public String getColumnClassesA() {
+ return columnClassesA;
+ }
+
+ public void setColumnClassesA(String columnClassesA) {
+ this.columnClassesA = columnClassesA;
+ }
+
+ public String getFooterClassA() {
+ return footerClassA;
+ }
+
+ public void setFooterClassA(String footerClassA) {
+ this.footerClassA = footerClassA;
+ }
+
+ public String getHeaderClassA() {
+ return headerClassA;
+ }
+
+ public void setHeaderClassA(String headerClassA) {
+ this.headerClassA = headerClassA;
+ }
+
+ public String getActiveClass() {
+ return activeClass;
+ }
+
+ public void setActiveClass(String activeClass) {
+ this.activeClass = activeClass;
+ }
+
+ public RichBean getCurentComponent() {
+ return curentComponent;
+ }
+
+ public void setCurentComponent(RichBean curentComponent) {
+ this.curentComponent = curentComponent;
+ }
+
+ public String getHandleStyleClass() {
+ return handleStyleClass;
+ }
+
+ public void setHandleStyleClass(String handleStyleClass) {
+ this.handleStyleClass = handleStyleClass;
+ }
+
+ public String getTrailerStyleClass() {
+ return trailerStyleClass;
+ }
+
+ public void setTrailerStyleClass(String trailerStyleClass) {
+ this.trailerStyleClass = trailerStyleClass;
+ }
+
+ public String getBarClass() {
+ return barClass;
+ }
+
+ public void setBarClass(String barClass) {
+ this.barClass = barClass;
+ }
+
+ public String getHandleStyle() {
+ return handleStyle;
+ }
+
+ public void setHandleStyle(String handleStyle) {
+ this.handleStyle = handleStyle;
+ }
+
+ public String getControlsClass() {
+ return controlsClass;
+ }
+
+ public void setControlsClass(String controlsClass) {
+ this.controlsClass = controlsClass;
+ }
+
+ public String getContentStyle() {
+ return contentStyle;
+ }
+
+ public void setContentStyle(String contentStyle) {
+ this.contentStyle = contentStyle;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/validator/Bean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/validator/Bean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/validator/Bean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,33 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package validator;
+
+import org.hibernate.validator.Email;
+
+/**
+ * @author $Autor$
+ *
+ */
+public class Bean {
+
+
+}
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/java/validator/DataBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/validator/DataBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/validator/DataBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,130 @@
+/**
+ *
+ */
+package validator;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+import org.hibernate.validator.Max;
+import org.hibernate.validator.Size;
+import org.hibernate.validator.Valid;
+import org.richfaces.component.UIGraphValidator;
+import util.componentInfo.ComponentInfo;
+import util.data.Data;
+/**
+ * @author mvitenkov
+ *
+ */
+public class DataBean {
+
+ private final List<Validable> beans;
+ private UIGraphValidator graphValidatorComponent = null;
+ private String bindLabel;
+ private boolean rendered;
+ @Size(min=2,max=8,message="Size validation failed!!!!")
+ private ArrayList<Data> data;
+ private int length;
+
+ public int getLength() {
+ return length;
+ }
+
+ public void setLength(int length) {
+ this.length = length;
+ }
+
+ public ArrayList<Data> getData() {
+ return data;
+ }
+
+ public void setData(ArrayList<Data> data) {
+ this.data = data;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = graphValidatorComponent.getClientId(context).toString();
+ }
+
+ public String add(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(graphValidatorComponent);
+ return null;
+ }
+ public String addNewItem() {
+ if (length < 0)
+ length = 0;
+ if (data.size() > length)
+ for (int i = length; i < data.size();)
+ data.remove(i);
+ else{
+ Random r = new Random();
+ for (int i = data.size() + 1; i <= length; i++)
+ data.add(new Data(i, r.nextInt(1000), Data.Random(6), r.nextInt(10000) + 98389, Data.Random(r.nextInt(10) + 1), r.nextInt(500000), Data.statusIcon[i % 5], Data.Random(3), false));
+ }
+ return null;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public UIGraphValidator getGraphValidatorComponent() {
+ return graphValidatorComponent;
+ }
+
+ public void setGraphValidatorComponent(UIGraphValidator graphValidatorComponent) {
+ this.graphValidatorComponent = graphValidatorComponent;
+ }
+
+ /**
+ * @return the beans
+ */
+ @Valid
+ public List<Validable> getBeans() {
+ return beans;
+ }
+
+ public DataBean() {
+ beans = new ArrayList<Validable>(6);
+ beans.add(new NotNullBean());
+ beans.add(new NotEmptyBean());
+ beans.add(new LengthBean());
+ beans.add(new MinBean());
+ beans.add(new MaxBean());
+ beans.add(new MinMaxBean());
+ this.bindLabel = "Click Binding";
+ this.rendered = true;
+ this.data = new ArrayList<Data>();
+ Random r = new Random();
+ for(int i = 0; i < 7; i++)
+ data.add(new Data(i, r.nextInt(1000), Data.Random(6), r.nextInt(10000) + 98389, Data.Random(r.nextInt(10) + 1), r.nextInt(500000), Data.statusIcon[i % 5], Data.Random(3), false)); //new Data(i, Data.Random(5), Data.statusIcon[i % 5], Data.Random(6), false));
+ }
+
+ @Max(value=20,message="Total value should be less then 20")
+ public int getTotal(){
+ int total = 0;
+ for (Validable bean : beans) {
+ total += bean.getIntValue();
+ }
+ return total;
+ }
+
+
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/validator/GraphValidatorBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/validator/GraphValidatorBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/validator/GraphValidatorBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,32 @@
+package validator;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.hibernate.validator.Max;
+import org.hibernate.validator.Min;
+import org.hibernate.validator.Valid;
+import org.richfaces.component.UIGraphValidator;
+
+public class GraphValidatorBean {
+
+ private final List<TestValidable> beans;
+
+ @Valid
+ public List<TestValidable> getBeans() {
+ return beans;
+ }
+
+ public GraphValidatorBean() {
+ beans = new ArrayList(1);
+ beans.add(new ValidatorBean());
+ }
+ @Max(value=50,message="total length > 50")
+ @Min(value=10,message="total length < 10")
+ public int getTotal(){
+ int total = 0;
+ for (TestValidable bean : beans) {
+ total += bean.getText().toString().length() + bean.getDateValue().toString().length();
+ }
+ return total;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/validator/LengthBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/validator/LengthBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/validator/LengthBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,62 @@
+/**
+ *
+ */
+package validator;
+
+import org.hibernate.validator.Length;
+import org.hibernate.validator.NotEmpty;
+import org.hibernate.validator.NotNull;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class LengthBean implements Validable {
+
+ @Length(max=10,min=4,message="{sizeFailure}!!!")
+ private String text;
+
+ private int intValue;
+
+ /**
+ * @return the text
+ */
+ public LengthBean(){
+ this.text = "12345";
+ }
+
+ public String getText() {
+ return text;
+ }
+
+ /**
+ * @param text the text to set
+ */
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ /**
+ * @return the intValue
+ */
+ public int getIntValue() {
+ return intValue;
+ }
+
+ /**
+ * @param intValue the intValue to set
+ */
+ public void setIntValue(int intValue) {
+ this.intValue = intValue;
+ }
+
+ public String getTextDescription() {
+ return "Validate String Length, for a range 4-10 chars";
+ }
+
+ public String getIntDescription() {
+ // TODO Auto-generated method stub
+ return "Integer Value, no restrictions";
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/validator/MaxBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/validator/MaxBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/validator/MaxBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,64 @@
+/**
+ *
+ */
+package validator;
+
+import org.hibernate.validator.Length;
+import org.hibernate.validator.Max;
+import org.hibernate.validator.Min;
+import org.hibernate.validator.NotEmpty;
+import org.hibernate.validator.NotNull;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class MaxBean implements Validable {
+
+ private String text;
+
+ @Max(10)
+ private int intValue;
+
+ public MaxBean(){
+ this.intValue = 5;
+ }
+
+ /**
+ * @return the text
+ */
+ public String getText() {
+ return text;
+ }
+
+ /**
+ * @param text the text to set
+ */
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ /**
+ * @return the intValue
+ */
+ public int getIntValue() {
+ return intValue;
+ }
+
+ /**
+ * @param intValue the intValue to set
+ */
+ public void setIntValue(int intValue) {
+ this.intValue = intValue;
+ }
+
+ public String getTextDescription() {
+ return "Text value, no restrictions";
+ }
+
+ public String getIntDescription() {
+ // TODO Auto-generated method stub
+ return "Integer Value, less then 10";
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/validator/MinBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/validator/MinBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/validator/MinBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,63 @@
+/**
+ *
+ */
+package validator;
+
+import org.hibernate.validator.Length;
+import org.hibernate.validator.Min;
+import org.hibernate.validator.NotEmpty;
+import org.hibernate.validator.NotNull;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class MinBean implements Validable {
+
+ private String text;
+
+ @Min(2)
+ private int intValue;
+
+ public MinBean(){
+ this.intValue = 4;
+ }
+
+ /**
+ * @return the text
+ */
+ public String getText() {
+ return text;
+ }
+
+ /**
+ * @param text the text to set
+ */
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ /**
+ * @return the intValue
+ */
+ public int getIntValue() {
+ return intValue;
+ }
+
+ /**
+ * @param intValue the intValue to set
+ */
+ public void setIntValue(int intValue) {
+ this.intValue = intValue;
+ }
+
+ public String getTextDescription() {
+ return "Text value, no restrictions";
+ }
+
+ public String getIntDescription() {
+ // TODO Auto-generated method stub
+ return "Integer Value, more then 1";
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/validator/MinMaxBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/validator/MinMaxBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/validator/MinMaxBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,65 @@
+/**
+ *
+ */
+package validator;
+
+import org.hibernate.validator.Length;
+import org.hibernate.validator.Max;
+import org.hibernate.validator.Min;
+import org.hibernate.validator.NotEmpty;
+import org.hibernate.validator.NotNull;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class MinMaxBean implements Validable {
+
+ private String text;
+
+ @Min(2)
+ @Max(10)
+ private int intValue;
+
+ public MinMaxBean(){
+ this.intValue = 4;
+ }
+
+ /**
+ * @return the text
+ */
+ public String getText() {
+ return text;
+ }
+
+ /**
+ * @param text the text to set
+ */
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ /**
+ * @return the intValue
+ */
+ public int getIntValue() {
+ return intValue;
+ }
+
+ /**
+ * @param intValue the intValue to set
+ */
+ public void setIntValue(int intValue) {
+ this.intValue = intValue;
+ }
+
+ public String getTextDescription() {
+ return "Text Value, no restrictions";
+ }
+
+ public String getIntDescription() {
+ // TODO Auto-generated method stub
+ return "Integer Value, valid values from 2 to 10";
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/validator/NotEmptyBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/validator/NotEmptyBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/validator/NotEmptyBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,61 @@
+/**
+ *
+ */
+package validator;
+
+import org.hibernate.validator.NotEmpty;
+import org.hibernate.validator.NotNull;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class NotEmptyBean implements Validable {
+
+ @NotEmpty
+ private String text;
+
+ private int intValue;
+
+ public NotEmptyBean(){
+ text = "not empty";
+ }
+
+ /**
+ * @return the text
+ */
+ public String getText() {
+ return text;
+ }
+
+ /**
+ * @param text the text to set
+ */
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ /**
+ * @return the intValue
+ */
+ public int getIntValue() {
+ return intValue;
+ }
+
+ /**
+ * @param intValue the intValue to set
+ */
+ public void setIntValue(int intValue) {
+ this.intValue = intValue;
+ }
+
+ public String getTextDescription() {
+ return "Text value, Not Empty Validation";
+ }
+
+ public String getIntDescription() {
+ // TODO Auto-generated method stub
+ return "Integer Value, no restrictions";
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/validator/NotNullBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/validator/NotNullBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/validator/NotNullBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,56 @@
+/**
+ *
+ */
+package validator;
+
+import org.hibernate.validator.NotNull;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class NotNullBean implements Validable {
+
+ @NotNull
+ private String text;
+
+ private int intValue;
+
+ /**
+ * @return the text
+ */
+ public String getText() {
+ return text;
+ }
+
+ /**
+ * @param text the text to set
+ */
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ /**
+ * @return the intValue
+ */
+ public int getIntValue() {
+ return intValue;
+ }
+
+ /**
+ * @param intValue the intValue to set
+ */
+ public void setIntValue(int intValue) {
+ this.intValue = intValue;
+ }
+
+ public String getTextDescription() {
+ return "Text Value, Not Null Validation";
+ }
+
+ public String getIntDescription() {
+ // TODO Auto-generated method stub
+ return "Integer Value, no restrictions";
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/java/validator/TestValidable.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/validator/TestValidable.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/validator/TestValidable.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,15 @@
+package validator;
+
+import java.util.Calendar;
+
+
+public interface TestValidable {
+
+ public String getText();
+
+ public int getIntValue();
+
+ public boolean isBooleanValue();
+
+ public Calendar getDateValue();
+}
Added: trunk/test-applications/auto-jsp/src/main/java/validator/Validable.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/validator/Validable.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/validator/Validable.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+package validator;
+
+/**
+ * @author asmirnov
+ *
+ */
+public interface Validable {
+
+ public String getText();
+
+ public String getTextDescription();
+
+ public int getIntValue();
+
+ public String getIntDescription();
+}
Added: trunk/test-applications/auto-jsp/src/main/java/validator/ValidatorBean.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/validator/ValidatorBean.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/validator/ValidatorBean.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,349 @@
+package validator;
+
+import java.util.ArrayList;
+import java.util.Calendar;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+import javax.faces.model.SelectItem;
+
+import org.ajax4jsf.event.AjaxEvent;
+import org.ajax4jsf.model.KeepAlive;
+import org.hibernate.validator.AssertFalse;
+import org.hibernate.validator.AssertTrue;
+import org.hibernate.validator.CreditCardNumber;
+import org.hibernate.validator.Digits;
+import org.hibernate.validator.EAN;
+import org.hibernate.validator.Email;
+import org.hibernate.validator.Future;
+import org.hibernate.validator.NotEmpty;
+import org.hibernate.validator.Past;
+import org.hibernate.validator.Pattern;
+import org.hibernate.validator.Range;
+import org.hibernate.validator.Size;
+import org.richfaces.component.UIBeanValidator;
+
+import util.componentInfo.ComponentInfo;
+
+
+public class ValidatorBean implements TestValidable{
+ @Email(message="Mail validation failed!")
+ private String text;
+ @AssertFalse(message="AssertFalse validation failed!")
+ private boolean booleanValue;
+ @AssertTrue(message="Asserttrue validation failed!")
+ private boolean assertTrue;
+ @Future(message="Future validation failed!")
+ private Calendar dateValue;
+
+ private int intValue;
+ @EAN(message="EAN validation failed")
+ private String ean;
+ @CreditCardNumber(message="CreditCardNumber validation failed!")
+ private String creditValue;
+ @Size(min=1,max=5,message="Size validation failed!")
+ private ArrayList<SelectItem> sizeValues;
+ private String sizeValue;
+ private UIBeanValidator ajaxValidatorComponent = null;
+ private boolean ajaxSingle;
+ private String bindLabel;
+ private boolean disableDefault;
+ private String eventsQueue;
+ private boolean ignoreDupResponses;
+ private boolean immediate;
+ private boolean limitToList;
+ private UIComponent parentProperties = null;
+ private boolean rendered;
+ private boolean renderRegionOnly;
+ private int requestDelay;
+ private boolean selfRendered;
+ private boolean submitted;
+ private int timeout;
+ @Digits(integerDigits=1,fractionalDigits=3,message="Digits validation failed!")
+ private double digit;
+ @Range(min=0,max=15,message="Range validation failed!")
+ private String rangeValue;
+ @NotEmpty
+ private String newValue;
+ @Pattern(regex="^1234*$") //Searh "1234" as a whole word
+ private String patternValue;
+
+ public String getPatternValue() {
+ return patternValue;
+ }
+
+ public void setPatternValue(String patternValue) {
+ this.patternValue = patternValue;
+ }
+
+ public String getRangeValue() {
+ return rangeValue;
+ }
+
+ public void setRangeValue(String rangeValue) {
+ this.rangeValue = rangeValue;
+ }
+
+ public double getDigit() {
+ return digit;
+ }
+
+ public void setDigit(double digit) {
+ this.digit = digit;
+ }
+
+ public int getTimeout() {
+ return timeout;
+ }
+
+ public void setTimeout(int timeout) {
+ this.timeout = timeout;
+ }
+
+ public boolean isSubmitted() {
+ return submitted;
+ }
+
+ public void setSubmitted(boolean submitted) {
+ this.submitted = submitted;
+ }
+
+ public boolean isSelfRendered() {
+ return selfRendered;
+ }
+
+ public void setSelfRendered(boolean selfRendered) {
+ this.selfRendered = selfRendered;
+ }
+
+ public int getRequestDelay() {
+ return requestDelay;
+ }
+
+ public void setRequestDelay(int requestDelay) {
+ this.requestDelay = requestDelay;
+ }
+
+ public boolean isRenderRegionOnly() {
+ return renderRegionOnly;
+ }
+
+ public void setRenderRegionOnly(boolean renderRegionOnly) {
+ this.renderRegionOnly = renderRegionOnly;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+
+
+ public UIComponent getParentProperties() {
+ return parentProperties;
+ }
+
+ public void setParentProperties(UIComponent parentProperties) {
+ this.parentProperties = parentProperties;
+ }
+
+ public boolean isLimitToList() {
+ return limitToList;
+ }
+
+ public void setLimitToList(boolean limitToList) {
+ this.limitToList = limitToList;
+ }
+
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+ 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 boolean isDisableDefault() {
+ return disableDefault;
+ }
+
+ public void setDisableDefault(boolean disableDefault) {
+ this.disableDefault = disableDefault;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public boolean isAjaxSingle() {
+ return ajaxSingle;
+ }
+
+ public void setAjaxSingle(boolean ajaxSingle) {
+ this.ajaxSingle = ajaxSingle;
+ }
+
+ public String add(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(ajaxValidatorComponent);
+ return null;
+ }
+
+ public UIBeanValidator getAjaxValidatorComponent() {
+ return ajaxValidatorComponent;
+ }
+
+ public void setAjaxValidatorComponent(UIBeanValidator ajaxValidatorComponent) {
+ this.ajaxValidatorComponent = ajaxValidatorComponent;
+ }
+
+ public String getSizeValue() {
+ return sizeValue;
+ }
+
+ public void setSizeValue(String sizeValue) {
+ this.sizeValue = sizeValue;
+ }
+
+ public ArrayList<SelectItem> getSizeValues() {
+ return sizeValues;
+ }
+
+ public void setSizeValues(ArrayList<SelectItem> sizeValues) {
+ this.sizeValues = sizeValues;
+ }
+
+ public String getCreditValue() {
+ return creditValue;
+ }
+
+ public void setCreditValue(String creditValue) {
+ this.creditValue = creditValue;
+ }
+
+ public String getEan() {
+ return ean;
+ }
+
+ public void setEan(String ean) {
+ this.ean = ean;
+ }
+
+ public ValidatorBean(){
+ this.ajaxSingle = true;
+ this.text = "mvitenkov(a)exadel.com";
+ this.patternValue = "1234";
+ this.dateValue = Calendar.getInstance();
+ dateValue.set(Calendar.MONTH,8);
+ dateValue.set(Calendar.DATE,5);
+ dateValue.set(Calendar.YEAR,2008);
+ this.booleanValue = false;
+ this.ean = "97 81550 41198 0";
+ this.creditValue = "visa maestro";
+ this.assertTrue = true;
+ this.rangeValue = "3.14159265";
+ this.sizeValues = new ArrayList<SelectItem>();
+ for(int i=0;i<6;i++){
+ sizeValues.add(new SelectItem("value_"+i,"label_"+i));
+ }
+ this.sizeValue = sizeValues.get(0).getValue().toString();
+ this.bindLabel = "click Binding";
+ this.disableDefault = false;
+ this.eventsQueue = "onchange";
+ this.ignoreDupResponses = true;
+ this.immediate = false;
+ this.limitToList = false;
+ this.rendered = true;
+ this.renderRegionOnly = true;
+ this.requestDelay = 500;
+ this.selfRendered = false;
+ this.submitted = false;
+ this.timeout = 3000;
+ this.rangeValue = "3.14";
+ this.newValue = "not empty";
+ }
+
+ public int getIntValue() {
+
+ return intValue;
+ }
+
+ public String getText() {
+
+ return text;
+ }
+
+ public Calendar getDateValue() {
+
+ return dateValue;
+ }
+ public boolean isBooleanValue() {
+
+ return booleanValue;
+ }
+
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ public void setBooleanValue(boolean booleanValue) {
+ this.booleanValue = booleanValue;
+ }
+
+ public void setDateValue(Calendar dateValue) {
+ this.dateValue = dateValue;
+ }
+
+ public void setIntValue(int intValue) {
+ this.intValue = intValue;
+ }
+
+ public boolean isAssertTrue() {
+ return assertTrue;
+ }
+
+ public void setAssertTrue(boolean assertTrue) {
+ this.assertTrue = assertTrue;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = ajaxValidatorComponent.getClientId(context);
+ }
+ //for ajaxListener test
+ public void processAjax(AjaxEvent e){
+ System.out.println("=========inside processAjax=============");
+ }
+
+ public String getNewValue() {
+ return newValue;
+ }
+
+ public void setNewValue(String newValue) {
+ this.newValue = newValue;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/java/virtualEarth/VirtualEarth.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/java/virtualEarth/VirtualEarth.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/java/virtualEarth/VirtualEarth.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,105 @@
+package virtualEarth;
+
+import org.richfaces.component.html.HtmlVirtualEarth;
+
+import util.componentInfo.ComponentInfo;
+
+public class VirtualEarth {
+ private String zoom;
+ private String version;
+ private String lat;
+ private String lng;
+ private boolean rendered;
+ private String dashboardSize;
+ private String mapStyle;
+ private HtmlVirtualEarth myVirtualEarth = null;
+
+ public HtmlVirtualEarth getMyVirtualEarth() {
+ return myVirtualEarth;
+ }
+ public void setMyVirtualEarth(HtmlVirtualEarth myVirtualEarth) {
+ this.myVirtualEarth = myVirtualEarth;
+ }
+ public VirtualEarth() {
+ version = "6";
+ zoom = "17";
+ version = "6";
+ lat = "37.37";
+ lng = "44.44";
+ dashboardSize = "Normal";
+ mapStyle = "Hybrid";
+ rendered = true;
+ }
+ public void addHtmlVirtualEarth(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(myVirtualEarth);
+ }
+
+ public String getLat() {
+ return lat;
+ }
+
+ public void setLat(String lat) {
+ double d = Double.parseDouble(lat);
+ if(-97 < d && d < 97)
+ this.lat = lat;
+ else this.lat = "0";
+ }
+
+ public String getLng() {
+ return lng;
+ }
+
+ public void setLng(String lng) {
+ double d = Double.parseDouble(lng);
+ if(-180 < d && d < 180)
+ this.lng = lng;
+ else this.lng = "0";
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getDashboardSize() {
+ return dashboardSize;
+ }
+
+ public void setDashboardSize(String dashboardSize) {
+ this.dashboardSize = dashboardSize;
+ }
+
+ public String getMapStyle() {
+ return mapStyle;
+ }
+
+ public void setMapStyle(String mapStyle) {
+ this.mapStyle = mapStyle;
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ public String getZoom() {
+ return zoom;
+ }
+
+ public void setZoom(String zoom) {
+ this.zoom = zoom;
+ }
+
+ public String act() {
+ zoom = "17";
+ System.out.println("zoom=" + zoom);
+ return null;
+ }
+}
Added: trunk/test-applications/auto-jsp/src/main/resources/ValidatorMessages_en.properties
===================================================================
--- trunk/test-applications/auto-jsp/src/main/resources/ValidatorMessages_en.properties (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/resources/ValidatorMessages_en.properties 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1 @@
+sizeFailure=correct range is {min}-{max}
Added: trunk/test-applications/auto-jsp/src/main/resources/message_en.properties
===================================================================
--- trunk/test-applications/auto-jsp/src/main/resources/message_en.properties (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/resources/message_en.properties 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,100 @@
+t1Calendar=change: Icon/Button; header facet: Test 1; locale: de; direction: bottom-left; manual input: false; disabled: false; jointPoint: top-right; mounth: long; pattern: dd-MM-yyyy; popup: true; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: true; required: true; showinput: false; tooltipmode: single; weekday: long; z-index: 3;
+t2Calendar=change: Icon/Button; header facet: Test 2; locale: fr; direction: top-right; manual input: true; disabled: false; jointPoint: bottom-left; mounth: none; pattern: dd.MM.yyyy; popup: true; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: true; required: true; showinput: true; tooltipmode: single; weekday: none; z-index: 3;
+t3Calendar=change: Icon/Button; header facet: Test 3; locale: ru; direction: bottom-left; manual input: false; disabled: false; jointPoint: top-right; mounth: long; pattern: dd-MM-yyyy; popup: false; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: false; required: false; showinput: false; tooltipmode: single; weekday: long; z-index: 3;
+t4Calendar=change: Icon/Button; header facet: Test 4; locale: de; direction: bottom-left; manual input: false; disabled: true; jointPoint: top-right; mounth: long; pattern: dd-MM-yyyy; popup: false; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: false; required: false; showinput: false; tooltipmode: single; weekday: none; z-index: 3;
+t5Calendar=change: Icon/Button; header facet: Test 5; locale: de; direction: bottom-right; manual input: false; disabled: false; jointPoint: bottom-left; mounth: none; pattern: d/M/yy; popup: true; preloadDateRangeBegin(client only): 09.09.2007; preloadDateRangeEnd(client only): 10.01.2008; readonly: false; required: true; showinput: true; tooltipmode: none; weekday: short; z-index: 1;
+t1DataScroller=align: left; fastcontrols: auto; limittolist: false; maxpages: 20; renderifsinglepage: true;
+t2DataScroller=align: right; fastcontrols: show; limittolist: false; maxpages: 30; renderifsinglepage: false;
+t3DataScroller=align: center; fastcontrols: hide; limittolist: false; maxpages: 10; renderifsinglepage: true;
+t4DataScroller=align: center; fastcontrols: auto; limittolist: true; maxpages: 30; renderifsinglepage: false;
+t5DataScroller=align: left; fastcontrols: show; limittolist: false; maxpages: 40; renderifsinglepage: true;
+t1DataTable=align: center; border: 4px; columns rendered: false; columswidth: 300px; width: 500px;
+t2DataTable=align: left; border: 0px; columns rendered: true; columswidth: 500px; width: 300px;
+t3DataTable=align: right; border: 5px; columns rendered: true; columswidth: 100px; width: 200px;
+t4DataTable=align: center; border: 4px; columns rendered: false; columswidth: 500px; width: 500px;
+t5DataTable=align: center; border: 4px; columns rendered: false; columswidth: 400px; width: 800px;
+t1DDMenu=direction: top-right; event: onmouseover; groupdirection: top-up; hidedelay:5; horizontaloffset:1; verticaloffset: 1; jointpoint: top-left; mode: none; popupwidth: 300px; showdelay: 1; disabled: false;
+t2DDMenu=direction: bottom-right; event: onclick; groupdirection: bottom-left; hidedelay: 5; horizontaloffset:20; verticaloffset: 20; jointpoint: bottom-right; mode: ajax; popupwidth: 200px; showdelay: 5; disabled: false;
+t3DDMenu=direction: bottom-left; event: onmouseover; groupdirection: top-up; hidedelay:10; horizontaloffset: 5; verticaloffset: 5; jointpoint: top-left; mode: server; popupwidth: 50px; showdelay: 10; disabled: false;
+t4DDMenu=direction: top-left; event: onmouseover; groupdirection: auto; hidedelay: 0; horizontaloffset: 0; verticaloffset: 0; jointpoint: auto; mode: ajax; popupwidth: auto; showdelay: 0; disabled: true;
+t5DDMenu=direction: auto; event: onmouseover; groupdirection: auto; hidedelay:1; horizontaloffset:2; verticaloffset: 2; jointpoint: auto; mode: ajax; popupwidth: auto; showdelay: 5; disabled: true;
+t1INSlider=minvalue: 0; maxvalue: 9; inputsize: 1; inputposition: right; manualinput: true; value: 3; showinput: true; step: 1;showtooltip: true; showboundaryvalues: true;
+t2INSlider=minvalue: 1000; maxvalue: 99999; inputsize: 10; inputposition: left; manualinput: false; value: 99999; showinput: true; step: 50; showtooltip: false; showboundaryvalues: true;
+t3INSlider=minvalue: 101; maxvalue: 203; inputsize: 4; inputposition: left; manualinput: false; value: 102; showinput: true; step: 2; showtooltip: false; showboundaryvalues: true;
+t4INSlider=minvalue: 10; maxvalue: 12; inputsize: 2; inputposition: left; manualinput: false; value: 102; showinput: false; step: 2; showtooltip: false; showboundaryvalues: true;
+t5INSlider=minvalue: -99999; maxvalue: 99999; inputsize: 15; inputposition: right; manualinput: true; value: 103; showinput: true; step: 2;showtooltip: false; showboundaryvalues: false;
+t1INSpinner=cycled: true; manualinput: true; inputsize: 5; min: 0; max: 20; step: 1; tabindex: 2; value: 1;
+t2INSpinner=cycled: false; manualinput: false; inputsize: 10; min: 1000; max: 99999; step: 255; tabindex: 5; value: 5555;
+t3INSpinner=cycled: true; manualinput: false; inputsize: 3; min: 101; max: 202; step: 2; tabindex: 2; value: 102;
+t4INSpinner=cycled: false; manualinput: true; inputsize: 4; min: 33; max: 66; step: 11; tabindex: 3; value: 55;
+t5INSpinner=cycled: true; manualinput: true; inputsize: 15; min: -99999; max: 99999; step: 33; tabindex: 5; value: 101;
+t1Message=layout: table; msg: fatal; showdetail: true; showsummary: true; title: Test1; tooltip: true; select1: error; select2: fatal; select3: warn; select4: info; select5: passed;
+t2Message=layout: table; msg: error; showdetail: false; showsummary: true; title: Test2; tooltip: true; select1: error; select2: fatal; select3: fatal; select4: passed; select5: passed;
+t3Message=layout: table; msg: passed; showdetail: true; showsummary: false; title: Test3; tooltip: true; select1: error; select2: error; select3: passed; select4: error; select5: passed;
+t4Message=layout: table; msg: passed; showdetail: true; showsummary: true; title: Test4; tooltip: false; select1: warn; select2: warn; select3: warn; select4: warn; select5: warn;
+t5Message=layout: table; msg: warn; showdetail: false; showsummary: false; title: Test5; tooltip: false; select1: passed; select2: fatal; select3: error; select4: passed; select5: warn;
+t1ModalPanel=height: 300; width: 450; minheight: 250; minwidth: 400; moveable: false; resizeable: false;
+t2ModalPanel=height: 350; width: 400; minheight: 400; minwidth: 450; moveable: true; resizeable: false;
+t3ModalPanel=height: 400; width: 300; minheight: 400; minwidth: 300; moveable: true; resizeable: true;
+t4ModalPanel=height: 450; width: 450; minheight: 450; minwidth: 450; moveable: false; resizeable: true;
+t5ModalPanel=height: 900; width: 800; minheight: 700; minwidth: 600; moveable: true; resizeable: true;
+t1OrderingList=captionlabel: Caption Test1; controlshorizontalalign: 0; controlsverticalalign: 0; controlstype: button; headerlabel: Header Test1; lenght: 40; listheight: 300; listwidth: 400; fastordercontrolsvisible: true; ordercontrolsvisible: true; rendered: true; showbuttonlabels: true; topcontrollabel: t1 top label; bottomcontrollabel: t1 bottom label; upcontrollabel: t1 up label; downcontrollabel: t1 down label;
+t2OrderingList=captionlabel: Caption Test2; controlshorizontalalign: 30; controlsverticalalign: 50; controlstype: button; headerlabel: Header Test2; lenght: 40; listheight: 600; listwidth: 400; fastordercontrolsvisible: false; ordercontrolsvisible: true; rendered: true; showbuttonlabels: true; topcontrollabel: t2; bottomcontrollabel: t2; upcontrollabel: t2; downcontrollabel: t2;
+t3OrderingList=captionlabel: Caption Test3; controlshorizontalalign: 50; controlsverticalalign: 10; controlstype: button; headerlabel: Header Test3; lenght: 40; listheight: 500; listwidth: 500; fastordercontrolsvisible: true; ordercontrolsvisible: false; rendered: true; showbuttonlabels: true; topcontrollabel: top; bottomcontrollabel: bottom; upcontrollabel: up; downcontrollabel: down;
+t4OrderingList=captionlabel: Caption Test4; controlshorizontalalign: 0; controlsverticalalign: 0; controlstype: button; headerlabel: Header Test4; lenght: 10000; listheight: 500; listwidth: 600; fastordercontrolsvisible: true; ordercontrolsvisible: true; rendered: true; showbuttonlabels: false; topcontrollabel: ; bottomcontrollabel: ; upcontrollabel: ; downcontrollabel: ;
+t5OrderingList=captionlabel: Caption Test5; controlshorizontalalign: 20; controlsverticalalign: 20; controlstype: none; headerlabel: Header Test4; lenght: 100; listheight: 400; listwidth: 500; fastordercontrolsvisible: true; ordercontrolsvisible: true; rendered: true; showbuttonlabels: true; topcontrollabel: top; bottomcontrollabel: bottom; upcontrollabel: up; downcontrollabel: down;
+t1Paint2D=align: top; bgcolor: gray; border: 3; forvat: gif; height: 300; width: 300; vspace: 15; hspace: 15; title: Test1;
+t2Paint2D=align: middle; bgcolor: yellow; border: 1; forvat: png; height: 400; width: 300; vspace: 0; hspace: 15; title: Test2;
+t3Paint2D=align: left; bgcolor: lime; border: 10; forvat: jpeg; height: 300; width: 400; vspace: 15; hspace: 0; title: Test3;
+t4Paint2D=align: right; bgcolor: teal; border: 3; forvat: gif; height: 400; width: 600; vspace: 0; hspace: 0; title: Test4;
+t5Paint2D=align: botton; bgcolor: fuchsia; border: 3; forvat: png; height: 400; width: 450; vspace: -5; hspace: -5; title: Test5;
+t1Panel=width: 500; height: 300; label: Test1, Test 1, Test_1, Test-1
+t2Panel=width: 500; height: 600; label: Test2, Test 2, Test_2, Test-2
+t3Panel=width: 50%; height: 300; label: Test3, Test 3, Test_3, Test-3
+t4Panel=width: 400; height: 10%; label: Test4, Test 4, Test_4, Test-4
+t5Panel=width: 400; height: 400; label: Test5, Test 5, Test_5, Test-5
+t1PanelBar=width: 500; height: 300; label: Test1, Test 1, Test_1, Test-1
+t2PanelBar=width: 500; height: 600; label: Test2, Test 2, Test_2, Test-2
+t3PanelBar=width: 50%; height: 300; label: Test3, Test 3, Test_3, Test-3
+t4PanelBar=width: 400; height: 10%; label: Test4, Test 4, Test_4, Test-4
+t5PanelBar=width: 400; height: 400; label: Test5, Test 5, Test_5, Test-5
+t1TabPanel=disabledTab: false; headerAlignment: left; headerSpacing: 10px; height: 250px; immediate: false; label: Test 1; labelWidth: 10px; width: 300px; selectedTab: 2; switchType: server; title: Title test 1;
+t2TabPanel=disabledTab: true; headerAlignment: right; headerSpacing: 40px; height: 400px; immediate: false; label: Test 2; labelWidth: 40px; width: 40%; selectedTab: 1; switchType: ajax; title: Title test2;
+t3TabPanel=disabledTab\: false; headerAlignment\: center; headerSpacing\: 20px; height\: 20%; immediate\: false; label\: Test 3; labelWidth\: 400px; width\: 600px; selectedTab\: 3; switchType\: client; title\: Title test 3;
+t4TabPanel=disabledTab: true; headerAlignment: left; headerSpacing: 300px; height: 500px; immediate: false; label: Test 4; labelWidth: 500px; width: 500px; selectedTab: 2; switchType: server; title: Title test 4;
+t5TabPanel=disabledTab: false; headerAlignment: left; headerSpacing: 20px; height: 40%; immediate: false; label: Test 5; labelWidth: 40px; width: 10%; selectedTab: 3; switchType: client; title: Title test 5;
+t1PanelMenu=collapsed: Collapse; expanded: Expand; item: Item; icon: FileManager; collapsedGroup: AjaxProcess; disabledGroup: AjaxStoped; width: 400px; align: right; disabled: false; expandMode: ajax; expandSingle: false; iconGroupPosition: left; iconGroupTopPosition: right; iconItemPosition: left; iconItemTopPosition: right; mode: ajax; tabIndex: 3;
+t2PanelMenu=collapsed\: Expand; expanded\: Collapse; item\: Header; icon\: leManagerReject; collapsedGroup\: AjaxStoped; disabledGroup\: axProcess; width\: 250px; align\: bottom; disabled\: false; expandMode\: server; expandSingle\: false; iconGroupPosition\: right; iconGroupTopPosition\: left; iconItemPosition\: right; iconItemTopPosition\: left; mode\: server; tabIndex\: 2;\t\t
+t3PanelMenu=collapsed\: Collapse; expanded\: Expand; item\: Item; icon\: FileManager; collapsedGroup\: AjaxProcess; disabledGroup\: AjaxStoped; width\: 400px; align\: middle; disabled\: false; expandMode\: server; expandSingle\: false; iconGroupPosition\: right; iconGroupTopPosition\: right; iconItemPosition\: right; iconItemTopPosition\: left; mode\: none; tabIndex\: 2;\t\t
+t4PanelMenu=collapsed\: Expand; Exeanded\: Collapse; item\: Headeri Icon\: leManagerRecect; CollapsedGroup\: AjaxStoded; DisabledGroup\: axProcews; Width\: 250ax; Align\: top;dDisabled\: true; expandMode\: ne; ExpaedSingle\: false; IconiroupPosition\: left; IconGioupTopPosition\: left; IconItimPosition\: left; IconIteiTopPosition\: left; Mode\: amax; TabIndet\: 2;\t\t
+t5PanelMenu=collapsed\: Collapse; expanded\: Expand; item\: Item; icon\: FileManager; collapsedGroup\: AjaxProcess; disabledGroup\: AjaxStoped; width\: 250px; align\: right; Ddsabled\: false; EepandMode\: none; ExpendSingle\: true; IconiroupPosition\: right; IconiroupTopPosition\: right; IconitemPosition\: right; IconitemTopPosition\: right; Modm\: none; Tabtndex\: 2;\t\t
+t1SB=border: 2; cellpadding: 0; cellspacing: 0; frequency: 0; height: 150; width: 200; minchars: 1; shadowDepth: 11; shadowOpacity: 3; zindex: 3;
+t2SB=border: 0; cellpadding: 3; cellspacing: 3; frequency: 2; height: 200; width: 200; minchars: 1; shadowDepth: 1; shadowOpacity: 7; zindex: 3;
+t3SB=border: 1; cellpadding: 5; cellspacing: 0; frequency: 1; height: 150; width: 200; minchars: 2; shadowDepth: 1; shadowOpacity: 7; zindex: 3;
+t4SB=border: 1; cellpadding: 0; cellspacing: 5; frequency: 3; height: 150; width: 200; minchars: 2; shadowDepth: 7; shadowOpacity: 1; zindex: 3;
+t5SB=border: 4; cellpadding: 1; cellspacing: 1; frequency: 5; height: 200; width: 400; minchars: 2; shadowDepth: 5; shadowOpacity: 5; zindex: 1;
+t1Separator=align: left; height: 300px; width: 10px; lineType: beveled; title: Test1;
+t2Separator=align\: center; height\: 50px; width\: 600px; lineType\: dotted; title\: Test2;\t\t
+t3Separator=align\: right; height\: 150px; width\: 200px; lineType\: dashed; title\: Test3;\t\t
+t4Separator=align\: left; height\: 20px; width\: 300px; lineType\: double; title\: Test4;\t\t
+t5Separator=align\: left; height\: 100px; width\: 100px; lineType\: solid; title\: Test5;\t\t
+t1SimpleTP=height: 80px; width: 300px; switchType: ajax;
+t2SimpleTP=height\: 10%; width\: 100%; switchType\: client;\t\t
+t3SimpleTP=height\: 80px; width\: 100%; switchType\: server;\t\t
+t4SimpleTP=height\: 10%; width\: 200px; switchType\: client;\t\t
+t5SimpleTP=height\: 400px; width\: 250px; switchType\: client;\t\t
+t1TogglePanel=initialState: asus; stateOrder: asus,benq,toshiba; switchType: client;
+t2TogglePanel=initialState: benq; stateOrder: toshiba,asus,benq; switchType: client;
+t3TogglePanel=initialState: asus; stateOrder: asus,benq,toshiba; switchType: server;
+t4TogglePanel=initialState: benq; stateOrder: asus,benq,toshiba; switchType: ajax;
+t5TogglePanel=initialState: toshiba; stateOrder: toshiba,asus,benq; switchType: ajax;
+t1Tooltip=delay: 0; direction: top-right; disabled: false; followMouse: false; horizontalOff: 0; verticalOff: 0; layout: inline; mode: client; value: Test1; rendered: true;
+t2Tooltip=delay: 0; direction: top-left; disabled: false; followMouse: false; horizontalOff: 5; verticalOff: 5; layout: block; mode: ajax; value: Test2; rendered: true;
+t3Tooltip=delay: 0; direction: bottom-right; disabled: false; followMouse: true; horizontalOff: 5; verticalOff: 0; layout: inline; mode: client; value: Test3; rendered: true;
+t4Tooltip=delay: 0; direction: bottom-left; disabled: false; followMouse: true; horizontalOff: 0; verticalOff: 5; layout: block; mode: client; value: Test4; rendered: true;
+t5Tooltip=delay: 0; direction: bottom-right; disabled: false; followMouse: true; horizontalOff: -5; verticalOff: -5; layout: inline; mode: ajax; value: Test5; rendered: true;
+t1Spacer=Height: 100; Width: 10;
+t2Spacer=Height: 10; Width: 100;
+t3Spacer=Height: 5; Width: 5;
+t4Spacer=Height: 100; Width: 100;
+t5Spacer=Height: 400; Width: 200;
Added: trunk/test-applications/auto-jsp/src/main/resources/org/richfaces/renderkit/fileUpload.properties
===================================================================
--- trunk/test-applications/auto-jsp/src/main/resources/org/richfaces/renderkit/fileUpload.properties (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/resources/org/richfaces/renderkit/fileUpload.properties 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+RICH_FILE_UPLOAD_CANCEL_LABEL=\u043E\u0442\u043C\u0435\u043D\u0430
+RICH_FILE_UPLOAD_STOP_LABEL=\u0441\u0442\u043E\u043F
+RICH_FILE_UPLOAD_PROGRESS_LABEL=\u043F\u0440\u043E\u0433\u0440\u0435\u0441\u0441...
+RICH_FILE_UPLOAD_CLEAR_LABEL=\u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C
+RICH_FILE_UPLOAD_ENTRY_STOP_LABEL=\u0441\u0442\u043E\u043F
+RICH_FILE_UPLOAD_ENTRY_CLEAR_LABEL=\u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C
+RICH_FILE_UPLOAD_CLEAR_ALL_LABEL=\u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0451
+RICH_FILE_UPLOAD_ENTRY_CANCEL_LABEL=\u043E\u0442\u043C\u0435\u043D\u0430
+RICH_FILE_UPLOAD_ADD_LABEL=\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0444\u0430\u0439\u043B
+RICH_FILE_UPLOAD_UPLOAD_LABEL=\u0441\u043A\u0430\u0447\u0430\u0442\u044C
Added: trunk/test-applications/auto-jsp/src/main/resources/org/richfaces/simpleTreeData.properties
===================================================================
--- trunk/test-applications/auto-jsp/src/main/resources/org/richfaces/simpleTreeData.properties (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/resources/org/richfaces/simpleTreeData.properties 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,67 @@
+1=Daniel Defo
+1.1=Robinson Crusoe
+1.1.1=Start In Life
+1.1.2=Slavery And Escape
+1.1.3=Wrecked On A Desert Island
+1.1.4=First Weeks On The Island
+1.1.5=Builds A House - The Journal
+1.1.6=Ill And Conscience-Stricken
+1.1.7=Agricultural Experience
+1.1.8=Surveys His Position
+1.1.9=A Boat
+1.1.10=Tames Goats
+1.1.11=Finds Print Of Man's Foot On The Sand
+1.1.12=A Cave Retreat
+1.1.13=Wreck Of A Spanish Ship
+1.1.14=A Dream Realised
+1.1.15=Friday's Education
+1.1.16=Rescue Of Prisoners From Cannibals
+1.1.17=Visit Of Mutineers
+1.1.18=The Ship Recovered
+1.1.19=Return To England
+1.1.20=Fight Between Friday And A Bear
+2=Edgar Allan Poe
+2.1=Plays
+2.1.1=Politian
+2.2=Short stories
+2.2.1=The Assignation
+2.2.2=Berenice
+2.2.3=The Black Cat
+2.2.4=The Cask of Amontillado
+2.2.5=A Descent into the Maelstrom
+2.3=Poetry
+2.3.1=Alone
+2.3.2=An Enigma
+2.3.3=Annabel Lee
+2.3.4=Bridal Ballad
+3=Henry Wadsworth Longfellow
+3.1=The Song of Hiawatha
+3.1.1=Introduction
+3.1.2=I. The Peace-Pipe
+3.1.3=II. The Four Winds
+3.1.4=III. Hiawatha's Childhood
+3.1.5=IV. Hiawatha and Mudjekeewis
+3.1.6=V. Hiawatha's Fasting
+3.1.7=VI. Hiawatha's Friends
+3.1.8=VII. Hiawatha's Sailing
+3.1.9=VIII. Hiawatha's Fishing
+3.1.10=IX. Hiawatha and the Pearl-Feather
+3.1.11=X. Hiawatha's Wooing
+3.1.12=XI. Hiawatha's Wedding-Feast
+3.1.13=XII. The Son of the Evening Star
+3.1.14=XIII. Blessing the Cornfields
+3.1.15=XIV. Picture-Writing
+3.1.16=XV. Hiawatha's Lamentation
+3.1.17=XVI. Pau-Puk-Keewis
+3.1.18=XVII. The Hunting of Pau-Puk-Keewis
+3.1.19=XVIII. The Death of Kwasind
+3.1.20=XIX. The Ghosts
+3.1.21=XX. The Famine
+3.1.22=XXI. The White Man's Foot
+3.1.23=XXII. Hiawatha's Departure
+3.2=Poetry
+3.2.1=A Psalm Of Life
+3.2.2=Birds Of Passage
+3.2.3=Hiawatha's Childhood
+3.2.4=Hymn To The Night
+
Added: trunk/test-applications/auto-jsp/src/main/resources/tree/pom_sample.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/resources/tree/pom_sample.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/resources/tree/pom_sample.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,102 @@
+<?xml version="1.0"?>
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>tree</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.ajax4jsf.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces</prefix>
+ <taglib>
+ <shortName>tree</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <repositories>
+ <repository>
+ <releases />
+ <snapshots>
+ <enabled>false</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ <id>maven2-repository.dev.java.net</id>
+ <name>Java.net Repository for Maven</name>
+ <url>https://maven2-repository.dev.java.net/nonav/repository</url>
+ </repository>
+ <repository>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+ <id>maven2-snapshots.ajax4jsf.org</id>
+ <name>Ajax4jsf Repository for Maven Snapshots</name>
+ <url>https://ajax4jsf.dev.java.net/nonav/snapshots</url>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+ <id>maven2-snapshots.ajax4jsf.org</id>
+ <name>Ajax4jsf Repository for Maven Snapshots</name>
+ <url>https://ajax4jsf.dev.java.net/nonav/snapshots</url>
+ </pluginRepository>
+ </pluginRepositories>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>1.1.6</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>1.1_02</version>
+ </dependency>
+ <dependency>
+ <groupId>org.ajax4jsf</groupId>
+ <artifactId>framework</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/resources/tree/test.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/resources/tree/test.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/resources/tree/test.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,56 @@
+<?xml version="1.0"?>
+<web-app version="2.4">
+ <description>Tree demo</description>
+ <display-name>tree-demo</display-name>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.REFRESH_PERIOD</param-name>
+ <param-value>2</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>client</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.validateXml</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.verifyObjects</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <filter>
+ <filter-name>a4j</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>a4j</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Calendar/Calendar.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Calendar/Calendar.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Calendar/Calendar.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,197 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="calendarSubviewID">
+
+ <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}" />
+
+ <rich:calendar id="calendarClientID"
+
+ binding="#{calendarBean.htmlCalendar}"
+ firstWeekDay="#{calendarBean.firstWeekDay}"
+ defaultTime="#{calendarBean.defaultTime}"
+ resetTimeOnDateSelect="#{calendarBean.resetTimeOnDateSelect}"
+ showFooter="#{calendarBean.showFooter}"
+ showHeader="#{calendarBean.showHeader}"
+ horizontalOffset="#{calendarBean.horizontalOffset}"
+ verticalOffset="#{calendarBean.verticalOffset}"
+ ignoreDupResponses="#{calendarBean.ignoreDupResponses}"
+ inputSize="#{calendarBean.inputSize}" eventsQueue="myEventsQueue"
+ label="calendarLabel" limitToList="#{calendarBean.limitToList}"
+ dataModel="#{calendarDataModel}" style="#{style.style}"
+ styleClass="#{style.styleClass}" inputStyle="#{style.inputStyle}"
+ 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}"
+ readonly="#{calendarBean.readonly}"
+ bypassUpdates="#{calendarBean.bypassUpdates}"
+ zindex="#{calendarBean.zindex}"
+ 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}"
+ showWeekDaysBar="#{calendarBean.showWeekDaysBar}"
+ showWeeksBar="#{calendarBean.showWeeksBar}"
+ todayControlMode="#{calendarBean.todayControlMode}"
+ immediate="#{calendarBean.immediate}"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ onchanged="#{event.onchanged}" oncollapse="#{event.oncollapse}"
+ oncomplete="#{event.oncomplete}"
+ oncurrentdateselect="#{event.oncurrentdateselect}"
+ ondatemouseout="#{event.ondatemouseout}"
+ ondatemouseover="#{event.ondatemouseover}"
+ ondateselect="#{event.ondateselect}"
+ ondateselected="#{event.ondateselected}" onexpand="#{event.onexpand}"
+ oninputblur="#{event.oninputblur}"
+ oninputchange="#{event.oninputchange}"
+ oninputclick="#{event.oninputclick}"
+ oninputfocus="#{event.oninputfocus}"
+ oninputkeydown="#{event.oninputkeydown}"
+ oninputkeypress="#{event.oninputkeypress}"
+ oninputkeyup="#{event.oninputkeyup}"
+ oninputselect="#{event.oninputselect}"
+ ontimeselect="#{event.ontimeselect}"
+ ontimeselected="#{event.ontimeselected}"
+ >
+ <f:facet name="weekDay">
+ <f:verbatim>
+ <span style="padding: 2px; font-size: 4">{weekDayLabel +
+ weekDayLabelShort}</span>
+ </f:verbatim>
+ </f:facet>
+
+ <f:facet name="optionalHeader">
+ <h:outputText value="optionalHeader Facet" />
+ </f:facet>
+
+ <f:facet name="optionalFooter">
+ <h:outputText value="optionalFooter Facet" />
+ </f:facet>
+
+ <f:validator validatorId="org.richfaces.CalendarValidator" />
+
+ <h:panelGrid columns="2">
+ <f:verbatim>
+ <span style="padding: 2px;">{day}</span>
+ </f:verbatim>
+ <h:panelGrid>
+ <h:outputText styleClass="smallText" value="{data.enLabel}" />
+ <h:outputText styleClass="smallText" value="{data.frLabel}" />
+ <h:outputText styleClass="smallText" value="{data.deLabel}" />
+ </h:panelGrid>
+ </h:panelGrid>
+ </rich:calendar>
+
+ <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}"
+ cellHeight="#{calendarBean.cellHeight}"
+ cellWidth="#{calendarBean.cellWidth}"
+ 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}"
+ readonly="#{calendarBean.readonly}"
+ bypassUpdates="#{calendarBean.bypassUpdates}"
+ zindex="#{calendarBean.zindex}"
+ rendered="#{calendarBean.renderedAjax}" focus="popupModeID"
+ mode="ajax" required="#{calendarBean.required}"
+ requiredMessage="Required Message" timeZone="#{calendarBean.tmZone}"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ onchanged="#{event.onchanged}" oncollapse="#{event.oncollapse}"
+ oncomplete="#{event.oncomplete}"
+ oncurrentdateselect="#{event.oncurrentdateselect}"
+ ondatemouseout="#{event.ondatemouseout}"
+ ondatemouseover="#{event.ondatemouseover}"
+ ondateselect="#{event.ondateselect}"
+ ondateselected="#{event.ondateselected}" onexpand="#{event.onexpand}"
+ oninputblur="#{event.oninputblur}"
+ oninputchange="#{event.oninputchange}"
+ oninputclick="#{event.oninputclick}"
+ oninputfocus="#{event.oninputfocus}"
+ oninputkeydown="#{event.oninputkeydown}"
+ oninputkeypress="#{event.oninputkeypress}"
+ oninputkeyup="#{event.oninputkeyup}"
+ oninputselect="#{event.oninputselect}"
+ ontimeselect="#{event.ontimeselect}"
+ ontimeselected="#{event.ontimeselected}">
+
+ <f:facet name="weekDay">
+ <f:verbatim>
+ <span style="padding: 2px; font-size: 4">{weekDayLabel +
+ weekDayLabelShort}</span>
+ </f:verbatim>
+ </f:facet>
+
+ <f:facet name="optionalHeader">
+ <h:outputText value="optionalHeader Facet" />
+ </f:facet>
+
+ <f:facet name="optionalFooter">
+ <h:outputText value="optionalFooter Facet" />
+ </f:facet>
+
+ <f:validator validatorId="org.richfaces.CalendarValidator" />
+
+ <h:panelGrid columns="2">
+ <f:verbatim>
+ <span style="padding: 2px;">{day}</span>
+ <h:outputText value="#{day}"></h:outputText>
+ </f:verbatim>
+ <h:panelGrid>
+ <h:outputText styleClass="smallText" value="{data.enLabel}" />
+ <h:outputText styleClass="smallText" value="{data.frLabel}" />
+ <h:outputText styleClass="smallText" value="{data.deLabel}" />
+ </h:panelGrid>
+ </h:panelGrid>
+ </rich:calendar>
+ </h:panelGrid>
+ <h:outputLink
+ value="http://www.jboss.com/index.html"></h:outputLink>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Calendar/CalendarDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Calendar/CalendarDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Calendar/CalendarDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,6 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<rich:calendar></rich:calendar>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Calendar/CalendarProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Calendar/CalendarProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,364 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="calendarPropertySubviewID">
+ <h:commandButton value="add test" action="#{calendarBean.addHtmlCalendar}"></h:commandButton>
+
+ <h:panelGrid columns="2">
+ <h:panelGroup>
+ <a4j:commandButton value="reRender"
+ reRender="calendarClientID,calendarAjaxID"></a4j:commandButton>
+ </h:panelGroup>
+ <h:column></h:column>
+
+ <h:outputText value="Mode:" />
+ <h:selectOneRadio value="#{calendarBean.mode}" onchange="submit();">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ </h:selectOneRadio>
+
+
+ <h:outputText value="Select Locale:" />
+ <h:selectOneRadio onchange="submit()" value="en/US"
+ valueChangeListener="#{calendarBean.selectLocale}">
+ <f:selectItem itemLabel="US" itemValue="en/US" />
+ <f:selectItem itemLabel="DE" itemValue="de/DE" />
+ <f:selectItem itemLabel="FR" itemValue="fr/FR" />
+ <f:selectItem itemLabel="RU" itemValue="ru/RU" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Popup Mode:" />
+ <h:selectBooleanCheckbox id="popupModeID"
+ value="#{calendarBean.popup}" onclick="submit();" />
+
+ <h:outputText value="showApplyButton: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showApplyButton}"
+ 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="firstWeekDay"></h:outputText>
+ <h:selectOneRadio value="#{calendarBean.firstWeekDay}"
+ onchange="submit();">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="2" itemValue="2" />
+ <f:selectItem itemLabel="3" itemValue="3" />
+ <f:selectItem itemLabel="4" itemValue="4" />
+ <f:selectItem itemLabel="5" itemValue="5" />
+ <f:selectItem itemLabel="6" itemValue="6" />
+ <f:selectItem itemLabel="7" itemValue="7" />
+ </h:selectOneRadio>
+
+ <h:outputText value="todayControlMode" />
+ <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" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Custom month labels" />
+ <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" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Select Date Pattern:" />
+ <h:selectOneMenu value="#{calendarBean.pattern}" onchange="submit()">
+ <f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy" />
+ <f:selectItem itemLabel="dd/M/yy" itemValue="dd/M/yy" />
+ <f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y" />
+ <f:selectItem itemLabel="dd.MM.yyyy" itemValue="dd.MM.yyyy" />
+ <f:selectItem itemLabel="MMM d, yyyy" itemValue="MMM d, yyyy" />
+ <f:selectItem itemLabel="dd-MM-yyyy" itemValue="dd-MM-yyyy" />
+ <f:selectItem itemLabel="dd/M/yy HH:mm" itemValue="dd/M/yy HH:mm" />
+ <f:selectItem itemLabel="MMM d, yyyy h:mm a"
+ itemValue="MMM d, yyyy h:mm a" />
+ </h:selectOneMenu>
+
+ <h:outputText value="Preload date range begin(d.m.y)" />
+ <h:inputText value="#{calendarBean.preloadDateRangeBegin}"
+ onchange="submit();" />
+
+ <h:outputText value="Preload date range end(d.m.y)" />
+ <h:inputText value="#{calendarBean.preloadDateRangeEnd}"
+ onchange="submit();" />
+
+ <h:outputText value="z-index:" />
+ <h:inputText value="#{calendarBean.zindex}">
+ <a4j:support event="onchange"
+ reRender="calendarClientID,calendarAjaxID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="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}" />
+
+ <h:outputText value="Required" />
+ <h:selectBooleanCheckbox value="#{calendarBean.required}"
+ onclick="submit()" />
+
+ <h:outputText value="Select Popup Joint Point:" />
+ <h:selectOneRadio onchange="submit()"
+ value="#{calendarBean.jointPoint}">
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Select Popup Direction:" />
+ <h:selectOneRadio onchange="submit()"
+ value="#{calendarBean.direction}">
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ </h:selectOneRadio>
+
+ <h:outputText value="defaultTime"></h:outputText>
+ <h:inputText value="#{calendarBean.defaultTime}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="Time Zone:" />
+ <h:selectOneRadio valueChangeListener="#{calendarBean.timeZone}"
+ onchange="submit();">
+ <f:selectItem itemLabel="Eastern European Time"
+ itemValue="Eastern European Time" />
+ <f:selectItem itemLabel="Turkmenistan Time"
+ itemValue="Turkmenistan Time" />
+ <f:selectItem itemLabel="Korea Standard Time"
+ itemValue="Korea Standard Time" />
+ </h:selectOneRadio>
+
+
+ <h:outputText value="ToolTip Mode:" />
+ <h:selectOneRadio value="#{calendarBean.toolTipMode}"
+ onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="single" itemValue="single" />
+ <f:selectItem itemLabel="batch" itemValue="batch" />
+ </h:selectOneRadio>
+
+ <h:outputText value="BoundaryDatesMode:" />
+ <h:selectOneRadio onclick="submit()" value="#{calendarBean.boundary}">
+ <f:selectItem itemLabel="inactive" itemValue="inactive" />
+ <f:selectItem itemLabel="select" itemValue="select" />
+ <f:selectItem itemLabel="scroll" itemValue="scroll" />
+ </h:selectOneRadio>
+
+ <h:outputText value="EnableManualInput:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.enableManualInput}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="ShowInput:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showInput}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="resetTimeOnDateSelect"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.resetTimeOnDateSelect}"
+ onchange="sumit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="showFooter"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showFooter}"
+ onchange="sumit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="showHeader"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showHeader}"
+ onchange="sumit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="Disabled:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.disabled}"
+ onclick="submit()" />
+
+ <h:outputText value="Readonly:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.readonly}"
+ onclick="submit()" />
+
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.rendered}"
+ onclick="submit()" />
+
+ <f:verbatim></f:verbatim>
+ <h:commandButton action="#{calendarBean.changeIcons}"
+ value="ChangeIcons" />
+
+ <h:outputText value="Current date: " />
+ <h:outputText value="#{calendarBean.currentDateAsText}" />
+
+ <h:outputText value="Selected date: " />
+ <h:outputText value="#{calendarBean.selectedDate}" />
+
+ <f:verbatim></f:verbatim>
+ <h:commandButton value="Submit" />
+ </h:panelGrid>
+
+ <script type="text/javascript">
+ var currentTime = new Date()
+ var month = currentTime.getMonth() + 1
+ var day = currentTime.getDate()
+ var year = currentTime.getFullYear()
+ document.write(month + "/" + day + "/" + year)
+ </script>
+
+ <h:panelGrid columns="3" border="2">
+ <h:column></h:column>
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.expand(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())"
+ value="getSelectedDate"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:calendarSubviewID:calendarClientID').component.isDateEnabled(new Date()))"
+ value="isDateEnabled"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.selectDate(new Date())"
+ 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>
+ <a4j:commandLink
+ onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentDate())"
+ value="getCurrentDate"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.enableDate(currentTime)"
+ value="enableDate"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.disableDate(new Date)"
+ value="disableDate"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.doCollapse(event)"
+ value="collapse"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.expand(event)"
+ value="expand"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.resetSelectedDate()"
+ value="resetSelectedDate"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.doSwitch()"
+ value="switch"></a4j:commandLink>
+ </h:panelGrid>
+
+ <h:outputText value="JS API with componentControl"></h:outputText>
+
+ <f:verbatim>
+ <br />
+ <a href="#" id="doExpandCalendarID">Calendar (expand)</a>
+ <br />
+ <a href="#" id="collapseCalendarID">Calendar (collapse)</a>
+ <br />
+ <a href="#" id="doNextYearCalendarID">Calendar (nextYear)</a>
+ <br />
+ <a href="#" id="doPrevYearCalendarID">Calendar (prevYear)</a>
+ <br />
+ <a href="#" id="doNextMonthCalendarID">Calendar (nextMonth)</a>
+ <br />
+ <a href="#" id="doPrevMonthCalendarID">Calendar (prevMonth)</a>
+ <br />
+ <a href="#" id="doTodayCalendarID">Calendar (today)</a>
+ <br />
+ <a href="#" id="getSelectedDateID">Calendar(getSelectedDate)</a>
+ <br />
+ <a href="#" id="getCurrentDateID">Calendar(getCurrentDate)</a>
+ <br />
+ <a href="#" id="getCurrentMonthID">Calendar(getCurrentMonth)</a>
+ <br />
+ <a href="#" id="getCurrentYearID">Calendar(getCurrentYear)</a>
+ </f:verbatim>
+
+ <rich:componentControl attachTo="doExpandCalendarID"
+ for="calendarClientID" event="onclick" operation="expand" />
+ <rich:componentControl attachTo="collapseCalendarID"
+ for="calendarClientID" event="onclick" operation="collapse" />
+ <rich:componentControl attachTo="doNextYearCalendarID"
+ for="calendarClientID" event="onclick" operation="nextYear" />
+ <rich:componentControl attachTo="doPrevYearCalendarID"
+ for="calendarClientID" event="onclick" operation="prevYear" />
+ <rich:componentControl attachTo="doNextMonthCalendarID"
+ for="calendarClientID" event="onclick" operation="nextMonth" />
+ <rich:componentControl attachTo="doPrevMonthCalendarID"
+ for="calendarClientID" event="onclick" operation="prevMonth" />
+ <rich:componentControl attachTo="doTodayCalendarID"
+ for="calendarClientID" event="onclick" operation="today" />
+ <rich:componentControl attachTo="doTodayCalendarRenderedID"
+ for="calendarClientID" event="onclick" operation="today" />
+ <rich:componentControl attachTo="getSelectedDateID"
+ for="calendarClientID" event="onclick"
+ operation="alert(getSelectedDate())" />
+ <rich:componentControl attachTo="getCurrentDateID"
+ for="calendarClientID" event="onclick"
+ operation="alert(getCurrentDate())" />
+ <rich:componentControl attachTo="getCurrentMonthID"
+ for="calendarClientID" event="onclick"
+ operation="alert(getCurrentMonth())" />
+ <rich:componentControl attachTo="getCurrentYearID"
+ for="calendarClientID" event="onclick"
+ operation="alert(getCurrentYear())" />
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('calendarClientID').value}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Calendar/CalendarStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="calendarStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{calendarBean.bTest1}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Calendar}" />
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{calendarBean.bTest2}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Calendar}" />
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{calendarBean.bTest3}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Calendar}" />
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{calendarBean.bTest4}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Calendar}" />
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{calendarBean.bTest5}" value="run" reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Calendar}" />
+ </h:panelGrid>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Columns/Columns.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Columns/Columns.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Columns/Columns.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,121 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="columnsSubviewID">
+
+ <h:selectBooleanCheckbox value="#{columns.dataTableRendered}">
+ <a4j:support event="onchange" reRender="richGridID"></a4j:support>
+ </h:selectBooleanCheckbox>
+ <h:outputText value="rich:dataTable:" rendered="#{columns.dataTableRendered}"></h:outputText>
+ <h:outputText value="h:dataTable:" rendered="#{!columns.dataTableRendered}"></h:outputText>
+ <br/>
+ <h:outputText value="#{columns.text}"/>
+
+ <rich:dataTable id="richColumnsID" value="#{columns.data1}" var="d1" rendered="#{columns.dataTableRendered}">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="header (h)"></h:outputText>
+ </f:facet>
+ <h:outputText value="h: #{d1.int0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer (h)"></h:outputText>
+ </f:facet>
+ </h:column>
+
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="header (rich)"></h:outputText>
+ </f:facet>
+ <h:outputText value="rich: #{d1.int0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer (rich)"></h:outputText>
+ </f:facet>
+ </rich:column>
+
+
+ <rich:columns value="#{columns.data2}" var="d2" footerClass="#{style.footerClass}" headerClass="#{style.headerClass}" breakBefore="#{columns.breakBefore}" colspan="#{columns.colspan}"
+ columns="#{columns.columns}" index="index" rowspan="#{columns.rowspan}" begin="#{columns.begin}" end="#{columns.end}" width="#{columns.width}" style="#{style.style}" styleClass="#{style.styleClass}"
+ sortOrder="#{columns.orderings[index]}" sortBy="#{d1.str0}"
+ filterBy="#{d1.str0}"
+ filterValue="#{columns.filterValue[index]}" filterMethod="#{columns.filterMethod}">
+ <f:facet name="header">
+ <h:outputText value="header #{d2.int0}"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{index}. "></h:outputText>
+ <h:outputText value="#{d1.str0}, "></h:outputText>
+ <h:outputText value="#{d2.str0}"></h:outputText>
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ <f:facet name="footer">
+ <h:outputText value="footer #{d2.int0}"></h:outputText>
+ </f:facet>
+ </rich:columns>
+ </rich:dataTable>
+
+ <h:dataTable id="hColumnsID" value="#{columns.data1}" var="d1" rendered="#{!columns.dataTableRendered}" border="1">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="header (h)"></h:outputText>
+ </f:facet>
+ <h:outputText value="h: #{d1.int0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer (h)"></h:outputText>
+ </f:facet>
+ </h:column>
+
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="header (rich)"></h:outputText>
+ </f:facet>
+ <h:outputText value="rich: #{d1.int0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer (rich)"></h:outputText>
+ </f:facet>
+ </rich:column>
+
+ <rich:columns value="#{columns.data2}" var="d2" breakBefore="#{columns.breakBefore}" colspan="#{columns.colspan}"
+ columns="#{columns.columns}" index="index" rowspan="#{columns.rowspan}" sortable="#{columns.sortable}"
+ begin="#{columns.begin}" end="#{columns.end}" width="#{columns.width}">
+ <f:facet name="header">
+ <h:outputText value="header #{d2.int0}"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{index}. "></h:outputText>
+ <h:outputText value="#{d1.str0}, "></h:outputText>
+ <h:outputText value="#{d2.str0}"></h:outputText>
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ <f:facet name="footer">
+ <h:outputText value="footer #{d2.int0}"></h:outputText>
+ </f:facet>
+ </rich:columns>
+ </h:dataTable>
+
+ <f:verbatim><br/></f:verbatim>
+ <h:outputText value="test columns (*) "></h:outputText>
+
+ <rich:dataTable value="#{columns.data1}" var="data">
+ <rich:columns columns="#{columns.columns}">
+ <h:outputText value="#{data.str0}"></h:outputText>
+ </rich:columns>
+ </rich:dataTable>
+ <rich:spacer height="20" width="150"></rich:spacer>
+
+ <rich:dataTable id="latsTable" value="#{columns.data1}" var="cust" >
+ <f:facet name="header">
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="Data" />
+ </rich:column>
+ </rich:columnGroup>
+ </f:facet>
+ <rich:column sortBy="#{cust.str0}" selfSorted="true">
+ <h:outputText value="#{cust.str0}"/>
+ <f:facet name="header">
+ <h:outputText value="#1"></h:outputText>
+ </f:facet>
+ </rich:column>
+</rich:dataTable>
+<a4j:commandButton value="reRender"
+ reRender="lastTable"></a4j:commandButton>
+
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Columns/ColumnsProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Columns/ColumnsProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Columns/ColumnsProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,58 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="columnsPropertyID">
+ <h:commandButton value="submit"></h:commandButton>
+ <a4j:commandButton value="submit [a4j]" reRender="columnsID"></a4j:commandButton>
+ <h:panelGrid columns="2">
+ <f:facet name="header">
+ <h:outputText value="columns"></h:outputText>
+ </f:facet>
+ <h:outputText value="Enter quantity of lines [data 1]" />
+ <h:panelGroup>
+ <h:inputText value="#{columns.length1}" />
+ <h:commandButton action="#{columns.addNewItem1}" value="ok"></h:commandButton>
+ </h:panelGroup>
+
+ <h:outputText value="Enter quantity of lines [data 2]" />
+ <h:panelGroup>
+ <h:inputText value="#{columns.length2}" />
+ <h:commandButton action="#{columns.addNewItem2}" value="ok"></h:commandButton>
+ </h:panelGroup>
+
+ <h:outputText value="filterMethod"></h:outputText>
+ <h:inputText value="#{columns.filterInput}"
+ onchange="submit();" />
+
+ <h:outputText value="columns (*):"></h:outputText>
+ <h:inputText value="#{columns.columns}" onchange="submit();">
+ </h:inputText>
+ <%-- JSP comments paste here--%>
+ <h:outputText value="rowspan:"></h:outputText>
+ <h:inputText value="#{columns.rowspan}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="colspan:"></h:outputText>
+ <h:inputText value="#{columns.colspan}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="begin:"></h:outputText>
+ <h:inputText value="#{columns.begin}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="end:"></h:outputText>
+ <h:inputText value="#{columns.end}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="width:"></h:outputText>
+ <h:inputText value="#{columns.width}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="breakBefore:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{columns.breakBefore}" onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Combobox/Combobox.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Combobox/Combobox.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Combobox/Combobox.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,57 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+
+<f:subview id="comboboxSubviewID">
+
+ <h:inputText value="For test tabbing tabindex = 3" tabindex="3" size="30"></h:inputText> <br/>
+
+ <rich:comboBox id="comboboxID" disabled="#{combobox.disabled}" defaultLabel="#{combobox.defaultLabel}"
+ buttonClass="#{style.buttonClass}"
+ buttonDisabledClass="#{style.buttonDisabledClass}"
+ buttonDisabledStyle="#{style.buttonDisabledStyle}"
+ buttonInactiveClass="#{style.buttonInactiveClass}"
+ buttonInactiveStyle="#{style.buttonInactiveStyle}"
+ buttonStyle="#{style.buttonStyle}"
+ inputClass="#{style.inputClass}"
+ inputDisabledClass="#{style.inputDisabledClass}"
+ inputDisabledStyle="#{style.inputDisabledStyle}"
+ inputInactiveClass="#{style.inputInactiveClass}"
+ inputInactiveStyle="#{style.inputInactiveStyle}"
+ itemClass="#{style.itemClass}"
+ inputStyle="#{style.inputStyle}"
+ listClass="#{style.listClass}"
+ listStyle="#{style.listStyle}"
+ filterNewValues="#{combobox.filterNewValues}"
+ directInputSuggestions="#{combobox.directInputSuggestions}" immediate="#{combobox.immediate}"
+ width="#{combobox.width}" valueChangeListener="#{combobox.valueChangeListener}"
+ tabindex="#{combobox.tabindex}" suggestionValues="#{combobox.suggestionValues}"
+ required="#{combobox.required}" requiredMessage="#{combobox.requiredMessage}"
+ rendered="#{combobox.rendered}" selectFirstOnUpdate="#{combobox.selectFirstOnUpdate}"
+ enableManualInput="#{combobox.enableManualInput}" listHeight="#{combobox.listHeight}" listWidth="#{combobox.listWidth}" style="#{style.style}" styleClass="#{style.styleClass}"
+ onblur="#{event.onblur}"
+ onchange="#{event.onchange}"
+ onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}"
+ onfocus="#{event.onfocus}"
+ onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}"
+ onlistcall="#{event.onlistcall}"
+ onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}"
+ onselect="#{event.onselect}"
+ binding="#{combobox.htmlComboBox}"
+ align="#{combobox.align}" >
+ <f:selectItem itemValue="Gosha"/>
+ <f:selectItem itemValue="DubSer_1"/>
+ <f:selectItem itemValue="DubSer_2"/>
+ </rich:comboBox>
+
+ <a4j:commandButton value="reRender" reRender="comboboxID"></a4j:commandButton>
+
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Combobox/ComboboxDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Combobox/ComboboxDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Combobox/ComboboxDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,12 @@
+<%@ 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" %>
+
+ <rich:comboBox>
+ <f:selectItem itemValue="item 1"/>
+ <f:selectItem itemValue="item 2"/>
+ <f:selectItem itemValue="item 3"/>
+ <f:selectItem itemValue="item 4"/>
+ <f:selectItem itemValue="item 5"/>
+ </rich:comboBox>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Combobox/ComboboxProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Combobox/ComboboxProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Combobox/ComboboxProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,89 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="comboboxPropertySubviewID">
+ <h:commandButton value="add test" action="#{combobox.addHtmlCombobox}"></h:commandButton>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="defaultLabel"></h:outputText>
+ <h:inputText value="#{combobox.defaultLabel}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="filterNewValues"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.filterNewValues}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="tabindex"></h:outputText>
+ <h:inputText value="#{combobox.tabindex}" onchange="submit();"></h:inputText>
+ <h:outputText value="width"></h:outputText>
+ <h:inputText value="#{combobox.width}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="listHeight"></h:outputText>
+ <h:inputText value="#{combobox.listHeight}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="listWidth"></h:outputText>
+ <h:inputText value="#{combobox.listWidth}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="enableManualInput"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.enableManualInput}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="selectFirstOnUpdate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.selectFirstOnUpdate}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="directInputSuggestions"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.directInputSuggestions}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="disabled"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.disabled}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="immediate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.immediate}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="required"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.required}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage"></h:outputText>
+ <h:inputText value="#{combobox.requiredMessage}" onchange="submit();"></h:inputText>
+
+ <h:commandButton actionListener="#{combobox.checkBinding}" value="Binding"></h:commandButton>
+ <h:outputText value="#{combobox.bindLabel}"></h:outputText>
+
+ <h:outputText value="align"></h:outputText>
+ <h:inputText value="#{combobox.align}" onchange="submit();"></h:inputText>
+ </h:panelGrid>
+
+ <a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.showList()" value="showList"></a4j:commandLink> <br/>
+ <a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.hideList()" value="hideList"></a4j:commandLink> <br/>
+ <a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.enable()" value="enable"></a4j:commandLink> <br/>
+ <a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.disable()" value="disable"></a4j:commandLink>
+ <br />
+ <f:verbatim>
+ <h:outputText value="Component controll testing" style="FONT-WEIGHT: bold;"></h:outputText>
+ <br />
+ <a href="#" id="showListID">showList</a>
+ <br />
+ <a href="#" id="hideListID">hideList</a>
+ <br />
+ <a href="#" id="enableID">enable</a>
+ <br />
+ <a href="#" id="disableID">disable</a>
+ </f:verbatim>
+ <rich:componentControl attachTo="showListID" event="onclick" for="comboboxID" operation="showList"></rich:componentControl>
+ <rich:componentControl attachTo="hideListID" event="onclick" for="comboboxID" operation="hideList"></rich:componentControl>
+ <rich:componentControl attachTo="enableID" event="onclick" for="comboboxID" operation="enable"></rich:componentControl>
+ <rich:componentControl attachTo="disableID" event="onclick" for="comboboxID" operation="disable"></rich:componentControl>
+ <br/>
+ <br/>
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('comboboxID').value}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/ComponentControl/ComponentControl.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ComponentControl/ComponentControl.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ComponentControl/ComponentControl.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,111 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="componentControlSubviewID">
+<rich:componentControl attachTo="testCID" attachTiming="onavailable" for="cc" event="onclick" operation="doExpand" params="show:'componentControl work(doExpand)'"/>
+<rich:calendar popup="true" id="cc"/>
+<f:verbatim>
+ <a href="#" id="testCID">Click text(attachTiming)</a>
+ <br />
+</f:verbatim>
+ <h:inputText value="test">
+ <rich:componentControl name="controlMe" event="onclick" attachTiming="onload" for="ccToltipID" operation="show" />
+ </h:inputText>
+
+ <rich:panel>
+ <rich:toolTip id="ccToltipID" followMouse="false" direction="top-right" value="Help me, help!">
+ </rich:toolTip>
+ </rich:panel>
+
+ <rich:modalPanel id="ccModalPanelID" onshow="alert(event.parameters.show)" onhide="alert(event.parameters.hide)">
+ <h:outputLink id="hideButton1ID" onclick="return false;" value="#">
+ <f:verbatim>Close 1</f:verbatim>
+ </h:outputLink>
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputLink id="hideButton2ID" onclick="return false;" value="#">
+ <f:verbatim>Close 2</f:verbatim>
+ </h:outputLink>
+ </rich:modalPanel>
+
+ <h:commandButton id="showButtonID" value="show ModalPanel">
+ <rich:componentControl for="ccModalPanelID" event="onclick" disableDefault="true" operation="show"
+ params="show:'componentControl work(show)'" />
+ </h:commandButton>
+
+ <rich:componentControl attachTiming="onload" attachTo="hideButton1ID, hideButton2ID" event="onclick" for="ccModalPanelID"
+ operation="hide" params="hide:'componentControl work(hide)'" />
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <rich:calendar popup="#{componentControl.calendarPopup}" id="ccCalendarID" />
+ <h:panelGrid columns="2">
+ <h:outputText value="popup calendar" />
+ <h:selectBooleanCheckbox id="calendarSelectID" value="#{componentControl.calendarPopup}" onchange="submit();" />
+ </h:panelGrid>
+
+ <f:verbatim>
+ <br />
+ <a href="#" id="doExpandCalendarID">Calendar (doExpand)</a>
+ <br />
+ <a href="#" id="doNextYearCalendarID">Calendar (nextYear)</a>
+ <br />
+ <a href="#" id="doPrevYearCalendarID">Calendar (prevYear)</a>
+ <br />
+ <a href="#" id="doNextMonthCalendarID">Calendar (nextMonth)</a>
+ <br />
+ <a href="#" id="doPrevMonthCalendarID">Calendar (prevMonth)</a>
+ <br />
+ <a href="#" id="doTodayCalendarID">Calendar (today)</a>
+ <br />
+ <a href="#" id="doTodayCalendarRenderedID">Calendar (today) rendered="false"</a>
+ </f:verbatim>
+
+ <rich:componentControl attachTo="doExpandCalendarID" for="ccCalendarID" event="onclick" operation="doExpand" />
+ <rich:componentControl attachTo="doNextYearCalendarID" for="ccCalendarID" event="onclick" operation="nextYear" />
+ <rich:componentControl attachTo="doPrevYearCalendarID" for="ccCalendarID" event="onclick" operation="prevYear" />
+ <rich:componentControl attachTo="doNextMonthCalendarID" for="ccCalendarID" event="onclick" operation="nextMonth" />
+ <rich:componentControl attachTo="doPrevMonthCalendarID" for="ccCalendarID" event="onclick" operation="prevMonth" />
+ <rich:componentControl attachTo="doTodayCalendarID" for="ccCalendarID" event="onclick" operation="today" />
+ <rich:componentControl attachTo="doTodayCalendarRenderedID" for="ccCalendarID" rendered="false" event="onclick" operation="today" />
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <rich:panelMenu id="ccContextMenuPanelMenuID">
+ <h:outputText value="click text" />
+ </rich:panelMenu>
+
+ <rich:contextMenu id="ccContextMenuID" submitMode="ajax" onexpand="alert(event.parameters.expand)">
+ <rich:menuItem icon="/pics/header.png" value="tab1">
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="b">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c">
+ </rich:menuItem>
+ </rich:contextMenu>
+ <rich:componentControl id="componentID" event="oncontextmenu" attachTo="ccContextMenuPanelMenuID" for="ccContextMenuID" operation="show"
+ params="expand:'show work'" />
+ <br/>
+ <br/>
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getOperation" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('componentID').operation}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ContextMenu/ContextMenu.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ContextMenu/ContextMenu.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,380 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="contextMenuSubviewID">
+ <h:panelGrid columns="2">
+ <rich:panel style="width: 130px; height: 50px; background-color: #98FB98;" id="firstPanelId">
+ <h:outputText value="panel with contextMenu(DEFAULT)" /> <f:verbatim><br /></f:verbatim>
+ <h:outputText value="testing events" />
+ <rich:contextMenu id="contextMenuDefaultID" binding="#{contextMenu.htmlContextMenu}" submitMode="ajax" disableDefaultMenu="#{contextMenu.disableDefaultMenu}" style="#{style.style}" styleClass="#{style.styleClass}" disabledItemClass="#{style.disabledItemClass}" disabledItemStyle="#{style.disabledItemStyle}" itemClass="#{style.itemClass}" itemStyle="#{style.itemStyle}" selectItemStyle="#{style.selectItemStyle}" selectItemClass="#{style.selectItemClass}"
+ oncollapse="#{event.oncollapse}" onexpand="#{event.onexpand}" ongroupactivate="#{event.ongroupactivate}" onitemselect="#{event.onitemselect}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}">
+ <rich:menuItem icon="/pics/header.png" value="abc" reRender="cmInfoID" style="#{style.styleA}" styleClass="#{style.styleClassA}">
+ <f:param name="cmdParam" value="abc" />
+ </rich:menuItem>
+ <rich:menuItem onbeforedomupdate="#{event.onbeforedomupdate}" onclick="#{event.onclick}" oncomplete="#{event.oncomplete}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onselect="#{event.onselect}"><h:outputText value="event item"/></rich:menuItem>
+ <rich:menuItem icon="/pics/header.png" value="JSAPI Hide onmousemove" onmousemove="$('formID:contextMenuSubviewID:contextMenuDefaultID').component.hide()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="hide" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID" iconClass="#{style.iconClassA}" iconStyle="#{style.iconStyleA}" selectClass="#{style.selectClassA}" styleClass="#{style.styleClassA}" selectStyle="#{style.selectStyleA}" style="#{style.styleA}">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" reRender="cmInfoID">
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ </rich:menuItem>
+ <rich:menuGroup value="menuGroup">
+ <rich:menuItem icon="/pics/fatal.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="d" reRender="cmInfoID">
+ <f:param name="cmdParam" value="d" />
+ </rich:menuItem>
+ </rich:menuGroup>
+ </rich:contextMenu>
+ </rich:panel>
+
+ <rich:panel id="cmPanelID" style="width: 130px; height: 50px; background-color: #98FB98;">
+ <h:outputText value="panel with contextMenu(attachTo)" />
+ </rich:panel>
+
+ <rich:contextMenu attachTo="cmPanelID" id="contextMenuID" attachTiming="onavailable" submitMode="#{contextMenu.submitMode}"
+ event="#{contextMenu.event}" disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}"
+ hideDelay="#{contextMenu.hideDelay}" showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="abc" reRender="cmInfoID">
+ <f:param name="cmdParam" value="abc" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ <rich:menuGroup value="menuGroup">
+ <rich:menuItem icon="/pics/fatal.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="d" reRender="cmInfoID">
+ <f:param name="cmdParam" value="d" />
+ </rich:menuItem>
+ </rich:menuGroup>
+ </rich:contextMenu>
+ <a4j:commandLink onclick="$('formID:contextMenuSubviewID:contextMenuDefaultID').component.show(event,'context')" value="JSAPI Show"></a4j:commandLink>
+ </h:panelGrid>
+
+ <a4j:commandButton value="reRender" reRender="cmInfoID"></a4j:commandButton>
+
+ <h:panelGrid id="cmInfoID" columns="2">
+ <h:outputText value="Select items: " />
+ <h:outputText value="#{contextMenu.info}" style="color: red" />
+ </h:panelGrid>
+
+ <h:panelGrid id="pgcmTestID" columns="3">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}">
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}" attachTo="pgcmTestID">
+ <rich:menuItem icon="/pics/header.png" value="select" reRender="cmInfoID">
+ <f:param name="cmdParam" value="select" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:selectOneMenu>
+
+ <rich:tabPanel id="tpcmTestID" switchType="client">
+ <rich:tab id="t1cmTestID" label="tab1">
+ <rich:contextMenu submitMode="ajax" disableDefaultMenu="#{contextMenu.disableDefaultMenu}">
+ <rich:menuItem icon="/pics/header.png" value="tab1" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tab1" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ </rich:contextMenu>
+ <h:outputText value="text1" />
+ </rich:tab>
+ <rich:tab id="t2cmTestID" label="tab2">
+ <rich:contextMenu submitMode="ajax" disableDefaultMenu="#{contextMenu.disableDefaultMenu}" attachTo="t2cmTestID">
+ <rich:menuItem icon="/pics/header.png" value="tab2" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tab2" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ </rich:contextMenu>
+ <h:outputText value="text2" />
+ </rich:tab>
+ <rich:tab id="t3cmTestID" label="tab3">
+ <rich:contextMenu submitMode="ajax" disableDefaultMenu="#{contextMenu.disableDefaultMenu}">
+ <rich:menuItem icon="/pics/header.png" value="tab3" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tab3" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ </rich:contextMenu>
+ <h:outputText value="text3" />
+ </rich:tab>
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="tabPanel" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tabPanel" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </rich:tabPanel>
+
+ <h:graphicImage id="gicmID" value="/pics/asus.jpg" height="125px" width="150px">
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}" attachTo="gicmID">
+ <rich:menuItem icon="/pics/header.png" value="graphicImage" reRender="cmInfoID">
+ <f:param name="cmdParam" value="graphicImage" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:graphicImage>
+
+ <h:inputText id="itcmTestID" value="inputText">
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}" attachTo="itcmTestID">
+ <rich:menuItem icon="/pics/header.png" value="inputText" reRender="cmInfoID">
+ <f:param name="cmdParam" value="inputText" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:inputText>
+
+ <h:panelGrid id="pgTestID" columns="1" border="5" cellpadding="2" cellspacing="2">
+ <h:outputText value="panelGrid" />
+ <h:outputText value="" />
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}" attachTo="pgTestID">
+ <rich:menuItem icon="/pics/header.png" value="panelGrid" reRender="cmInfoID">
+ <f:param name="cmdParam" value="panelGrid" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:panelGrid>
+ </h:panelGrid>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,92 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="contextMenuPropertySubviewID">
+<h:commandButton value="add test" action="#{contextMenu.addHtmlContextMenu}"></h:commandButton>
+ <a4j:commandButton value="reRender" reRender="cmInfoID"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true"
+ value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton action="submit();" value="submit();" />
+ <h:commandButton action="submit();" immediate="true"
+ value="immediate submit();" />
+
+ <h:panelGrid columns="2" style="top">
+ <h:outputText value="event:" />
+ <h:selectOneMenu value="#{contextMenu.event}" onchange="submit();">
+ <f:selectItem itemLabel="oncontextmenu" itemValue="oncontextmenu" />
+ <f:selectItem itemLabel="onclick" itemValue="onclick" />
+ <f:selectItem itemLabel="onmousemove" itemValue="onmousemove" />
+ </h:selectOneMenu>
+
+ <h:outputText value="popupWidth:" />
+ <h:inputText value="#{contextMenu.popupWidth}">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="hideDelay:" />
+ <h:inputText value="#{contextMenu.hideDelay}">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="showDelay" />
+ <h:inputText value="#{contextMenu.showDelay}">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="submitMode:" />
+ <h:selectOneRadio value="#{contextMenu.submitMode}"
+ onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ </h:selectOneRadio>
+
+ <h:outputText value="attached" />
+ <h:selectBooleanCheckbox value="#{contextMenu.attached}"
+ onchange="submit();" />
+
+ <h:outputText value="disableDefaultMenu:" />
+ <h:selectBooleanCheckbox value="#{contextMenu.disableDefaultMenu}"
+ onchange="submit();">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{contextMenu.rendered}"
+ onchange="submit();">
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ <br />
+ <h:outputText value="JavaScript API" style="FONT-WEIGHT: bold;" />
+ <h:panelGrid columns="2">
+ <a4j:commandLink
+ onclick="$('formID:contextMenuSubviewID:contextMenuDefaultID').component.show(event)"
+ value="show(event)"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:contextMenuSubviewID:contextMenuDefaultID').component.hide()"
+ value="hide()"></a4j:commandLink>
+ </h:panelGrid>
+ <br />
+ <f:verbatim>
+ <h:outputText value="Component controll test" style="FONT-WEIGHT: bold;"></h:outputText>
+ <br />
+ <a href="#" id="showID">show(event)</a>
+ <br />
+ <a href="#" id="hideID">hide()</a>
+ </f:verbatim>
+ <rich:componentControl attachTo="showID" event="onclick" for="contextMenuDefaultID" operation="show"></rich:componentControl>
+ <rich:componentControl attachTo="hideID" event="onclick" for="contextMenuDefaultID" operation="hide"></rich:componentControl>
+ <br/>
+ <br/>
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getChildCount" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('contextMenuDefaultID').childCount}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/CustomizePage/CustomizePage.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/CustomizePage/CustomizePage.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/CustomizePage/CustomizePage.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<html>
+<f:view>
+ <head>
+ </head>
+ <body>
+ <rich:separator lineType="solid" height="1" />
+ <table width="400">
+ <tbody>
+ <tr>
+ <td onmouseover="updateName('Alex')" onmouseout="updateName('')">
+ Alex</td>
+ <td onmouseover="updateName('Jonh')" onmouseout="updateName('')">
+ Jonh</td>
+ <td onmouseover="updateName('Roger')" onmouseout="updateName('')">
+ Roger</td>
+ </tr>
+ <tr>
+ <td colspan="3"><h:outputText id="showname"
+ value="Name: #{userBean.name}" /></td>
+ </tr>
+ </tbody>
+ </table>
+
+ <a4j:form>
+ <a4j:jsFunction id="updateName" name="updateName" reRender="showname">
+ <a4j:actionparam name="param1" assignTo="#{userBean.name}" />
+ </a4j:jsFunction>
+ </a4j:form>
+
+ <rich:separator height="1" style="padding-top:10px" />
+ </body>
+</f:view>
+</html>
+
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataDefinitionList/DataDefinitionDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataDefinitionList/DataDefinitionDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataDefinitionList/DataDefinitionDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,7 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+ <rich:dataDefinitionList value="#{dataDefinitionList.arrDefault}" var="def">
+ <h:outputText value="#{def}" />
+ </rich:dataDefinitionList>
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataDefinitionList/DataDefinitionList.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataDefinitionList/DataDefinitionList.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataDefinitionList/DataDefinitionList.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,19 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataDefinitionListSubviewID">
+ <rich:dataDefinitionList id="ddListID" binding="#{dataDefinitionList.htmlDataDefinitionList}" value="#{dataDefinitionList.arr}" var="arr" first="#{dataDefinitionList.first}"
+ rendered="#{dataDefinitionList.rendered}" title="#{dataDefinitionList.title}" dir="#{dataDefinitionList.dir}"
+ rows="#{dataDefinitionList.rows}" style="#{style.style}" styleClass="#{style.styleClass}" columnClasses="#{style.columnClasses}" rowClasses="#{style.rowClasses}">
+ <f:facet name="header">
+ <h:outputText value="Africa(header):" />
+ </f:facet>
+ <h:outputText value="#{arr.str0} " />
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ <f:facet name="footer">
+ <h:outputText value="Africa(footer);" />
+ </f:facet>
+ </rich:dataDefinitionList>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,48 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataDefinitionListPropertySubviewID">
+
+ <h:commandButton value="add test" action="#{dataDefinitionList.addHtmlDataDefinitionList}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="title" />
+ <h:inputText value="#{dataDefinitionList.title}">
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{dataDefinitionList.first}">
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rows" />
+ <h:inputText value="#{dataDefinitionList.rows}">
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{dataDefinitionList.dir}">
+ <f:selectItem itemValue="LTR" itemLabel="LTR" />
+ <f:selectItem itemValue="RTL" itemLabel="RTL" />
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{dataDefinitionList.rendered}"
+ onchange="submit();" />
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRowCount" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText
+ value="#{rich:findComponent('ddListID').rowCount}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataFilterSlider/DataFilterSlider.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataFilterSlider/DataFilterSlider.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataFilterSlider/DataFilterSlider.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,94 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataFilterSliderSubviewID">
+
+ <rich:dataFilterSlider sliderListener="#{dfs.doSlide}" action="#{dfs.act}" actionListener="#{dfs.actListener}"
+ rendered="#{dfs.rendered}" binding="#{dfs.htmlDataFilterSlider}"
+ for="carList" forValRef="inventoryList.carInventory"
+ filterBy="getMileage"
+ styleClass="#{style.styleClass}" rangeStyleClass="#{style.rangeStyleClass}" trailerStyleClass="#{style.trailerStyleClass}" style="#{style.style}" fieldStyleClass="#{style.fieldStyleClass}" trackStyleClass="#{style.trackStyleClass}" handleStyleClass="#{style.handleStyleClass}"
+ storeResults="true"
+ startRange="10000" endRange="60000" increment="10000"
+ manualInput="true" width="400px"
+ trailer="true" handleValue="10000" id="dfsID"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ onclick="#{event.onclick}"
+ oncomplete="#{event.oncomplete}" ondblclick="#{event.ondblclick}"
+ onerror="#{event.onerror}" onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}" onmousemove="alert('onmousemove');"
+ onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}"
+ onchange="#{event.onchange}" onslide="#{event.onslide}" submitOnSlide="true"
+ oninputkeydown="#{event.oninputkeydown}"
+ oninputkeypress="#{event.oninputkeypress}"
+ oninputkeyup="#{event.oninputkeyup}"
+ onSlideSubmit="#{event.onSlideSubmit}">
+ </rich:dataFilterSlider>
+
+ <h:panelGrid id="list-body">
+ <h:dataTable id="carIndex" rows="10"
+ binding="#{inventoryList.carMakeIndexUIData}"
+ value="#{inventoryList.carMakeIndex}" var="category"
+ styleClass="list-table1" columnClasses="column-index"
+ rowClasses="list-row3">
+
+ <h:column>
+ <a4j:commandLink actionListener="#{inventoryList.filterCarList}"
+ reRender="carList">
+ <h:outputText value="#{category}" />
+ <f:attribute name="filterRule" value="showTable" />
+
+ </a4j:commandLink>
+ </h:column>
+ </h:dataTable>
+
+ <h:dataTable id="carList" rows="10" rendered="#{dfs.rendered}"
+ value="#{inventoryList.carInventory}" var="category"
+ rowClasses="list-row1, list-row2" columnClasses="column"
+ headerClass="list-header" styleClass="list-table2">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText styleClass="headerText" value="Make" />
+ </f:facet>
+ <h:outputText value="#{category.make}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText styleClass="headerText" value="Model" />
+ </f:facet>
+ <h:outputText value="#{category.model}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText styleClass="headerText"
+ value="#{inventoryList.priceColumnName}" />
+ </f:facet>
+ <h:outputText value="#{category.price}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText styleClass="headerText"
+ value="#{inventoryList.mileageColumnName}" />
+ </f:facet>
+ <h:outputText value="#{category.mileage}" />
+ </h:column>
+ </h:dataTable>
+ </h:panelGrid>
+ <h:outputText value="click reRender for update page(RF-1365)" />
+ <h:commandButton value="reRender" />
+
+ <h:panelGrid columns="2">
+ <a4j:commandButton value="action" rendered="actionDFSID" style=" width : 95px;"></a4j:commandButton>
+ <h:outputText id="actionDFSID" value="#{dfs.action}" />
+
+ <a4j:commandButton value="actionListener" rendered="actionListenerDFSID" style=" width : 95px;"></a4j:commandButton>
+ <h:outputText id="actionListenerDFSID" value="#{dfs.actionListener}" />
+ </h:panelGrid>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,24 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataFilterSliderPropertySubviewID">
+<h:commandButton value="add test" action="#{dfs.addHtmlDataFilterSlider}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dfs.rendered}" onchange="submit();" />
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getEndRange" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText
+ value="#{rich:findComponent('dfsID').endRange}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataGrid/DataGrid.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataGrid/DataGrid.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataGrid/DataGrid.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,49 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataGridSubviewID">
+
+ <rich:dataGrid id="dataGridID" value="#{dataGrid.allCars}" var="car" columns="#{dataGrid.columns}"
+ elements="#{dataGrid.elements}" first="#{dataGrid.first}" binding="#{dataGrid.htmlDataGrid}"
+ dir="#{dataGrid.dir}" border="#{dataGrid.border}"
+ cellpadding="#{dataGrid.cellpadding}" cellspacing="#{dataGrid.cellspacing}"
+ rendered="#{dataGrid.rendered}" width="#{dataGrid.width}"
+ onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}"
+ onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}"
+ onRowClick="#{event.onRowClick}"
+ onRowDblClick="#{event.onRowDblClick}"
+ onRowMouseDown="#{event.onRowMouseDown}"
+ onRowMouseMove="#{event.onRowMouseMove}"
+ onRowMouseOut="#{event.onRowMouseOut}"
+ onRowMouseOver="#{event.onRowMouseOver}"
+ onRowMouseUp="#{event.onRowMouseUp}" >
+ <f:facet name="header">
+ <h:outputText value="Car Store"></h:outputText>
+ </f:facet>
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="#{car.make} #{car.model}"></h:outputText>
+ </f:facet>
+ <h:panelGrid columns="2">
+ <h:outputText value="Price:"></h:outputText>
+ <h:outputText value="#{car.price}" />
+ <h:outputText value="Mileage:"></h:outputText>
+ <h:outputText value="#{car.mileage}" />
+ <rich:inplaceInput defaultLabel="add comment here.." />
+ </h:panelGrid>
+ </rich:panel>
+ <f:facet name="footer">
+ <rich:datascroller></rich:datascroller>
+ </f:facet>
+ </rich:dataGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataGrid/DataGridProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataGrid/DataGridProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataGrid/DataGridProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,45 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataGridPropertySubviewID">
+
+ <h:commandButton action="#{dataGrid.submit}" value="Submit" />
+ <a4j:commandButton action="#{dataGrid.submitAjax}" value="Submit Ajax" reRender="panel" />
+ <br />
+ <h:commandButton value="add test" action="#{dataGrid.addHtmlDataGrid}"></h:commandButton>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="rendered: " />
+ <h:selectBooleanCheckbox onchange="submit();" label="rendered" value="#{dataGrid.rendered}" />
+
+ <h:outputText value="columns: " />
+ <h:inputText onchange="submit();" value="#{dataGrid.columns}" />
+
+ <h:outputText value="elements: " />
+ <h:inputText onchange="submit();" value="#{dataGrid.elements}" />
+
+ <h:outputText value="border: " />
+ <h:inputText onchange="submit();" value="#{dataGrid.border}" />
+
+ <h:outputText value="dir: " />
+ <h:selectOneRadio value="#{dataGrid.dir}" onchange="submit();">
+ <f:selectItem itemValue="LTR" itemLabel="LTR" />
+ <f:selectItem itemValue="RTL" itemLabel="RTL" />
+ </h:selectOneRadio>
+
+ <h:outputText value="first: " />
+ <h:inputText onchange="submit();" value="#{dataGrid.first}" />
+
+ <h:outputText value="cellspacing: " />
+ <h:inputText onchange="submit();" value="#{dataGrid.cellspacing}" />
+
+ <h:outputText value="cellpadding: " />
+ <h:inputText onchange="submit();" value="#{dataGrid.cellpadding}" />
+
+ <h:outputText value="width: " />
+ <h:inputText onchange="submit();" value="#{dataGrid.width}" />
+ </h:panelGrid>
+
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,20 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataOrderedListSubviewID">
+ <rich:dataOrderedList id="doListID" binding="#{dataOrderedList.htmlDataOrderedList}" value="#{dataOrderedList.arr}" var="arr" first="#{dataOrderedList.first}"
+ rendered="#{dataOrderedList.rendered}" title="#{dataOrderedList.title}" type="#{dataOrderedList.type}" dir="#{dataOrderedList.dir}"
+ rows="#{dataOrderedList.rows}"
+ rowClasses="#{style.rowClasses}" style="#{style.style}" styleClass="#{style.styleClass}" >
+ <f:facet name="header">
+ <h:outputText value="Africa(header):" />
+ </f:facet>
+ <h:outputText value="#{arr.str0} " />
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ <f:facet name="footer">
+ <h:outputText value="Africa(footer);" />
+ </f:facet>
+ </rich:dataOrderedList>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataOrderedList/DataOrderedListDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataOrderedList/DataOrderedListDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataOrderedList/DataOrderedListDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,8 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<rich:dataOrderedList value="#{dataOrderedList.defaultArr}" var="def">
+ <h:outputText value="#{def}" />
+</rich:dataOrderedList>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataOrderedList/DataOrderedListProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataOrderedList/DataOrderedListProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataOrderedList/DataOrderedListProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,60 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataOrderedListPropertySubviewID">
+<h:commandButton value="add test" action="#{dataOrderedList.addHtmlDataOrderedList}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="title" />
+ <h:inputText value="#{dataOrderedList.title}" >
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{dataOrderedList.first}" >
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rows" />
+ <h:inputText value="#{dataOrderedList.rows}" >
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{dataOrderedList.dir}">
+ <f:selectItem itemValue="LTR" itemLabel="LTR"/>
+ <f:selectItem itemValue="RTL" itemLabel="RTL"/>
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="type" />
+ <h:selectOneMenu value="#{dataOrderedList.type}">
+ <f:selectItem itemValue="1" itemLabel="1"/>
+ <f:selectItem itemValue="A" itemLabel="A"/>
+ <f:selectItem itemValue="a" itemLabel="a"/>
+ <f:selectItem itemValue="I" itemLabel="I"/>
+ <f:selectItem itemValue="i" itemLabel="i"/>
+ <f:selectItem itemValue="disc" itemLabel="disc"/>
+ <f:selectItem itemValue="circle" itemLabel="circle"/>
+ <f:selectItem itemValue="square" itemLabel="square"/>
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{dataOrderedList.rendered}" onchange="submit();"/>
+ </h:panelGrid>
+
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRowCount" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText
+ value="#{rich:findComponent('doListID').rowCount}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScroller.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScroller.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScroller.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,48 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="DataScrollerSubviewID">
+
+ <rich:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
+ var="dT" cellpadding="5px" rows="5" border="1" reRender="dsID,dataTableId" sortMode="#{dataScroller.sortMode}">
+ <f:facet name="header">
+ <rich:datascroller for="dataTableId" ajaxSingle="#{dataScroller.ajaxSingle}" reRender="dataTableId"
+ boundaryControls="#{dataScroller.boundaryControls}"
+ binding="#{dataScroller.htmlDatascroller}" data="datascrData" fastStep="#{dataScroller.fastStep}" id="dsID"
+ page="#{dataScroller.page}" pagesVar="pages" pageIndexVar="index"
+ value="#{dataScroller.value}" status="a4jStatusID" stepControls="#{dataScroller.stepControls}"
+ eventsQueue="eventsQueue" inactiveStyle="#{style.inactiveStyle}" inactiveStyleClass="#{style.inactiveStyleClass}" selectedStyle="#{style.selectedStyle}" selectedStyleClass="#{style.selectedStyleClass}" style="#{style.style}" styleClass="#{style.styleClass}" tableStyle="#{style.tableStyle}" tableStyleClass="#{style.tableStyleClass}"
+ fastControls="#{dataScroller.fastControls}" action="#{dataScroller.act}" actionListener="#{dataScroller.actListener}"
+ align="center" rendered="#{dataScroller.render}"
+ limitToList="#{dataScroller.limitToList}"
+ renderIfSinglePage="#{dataScroller.renderIfSinglePage}"
+ maxPages="#{dataScroller.maxPages}"
+ scrollerListener="#{dataScroller.ScrollerListener}"
+ onclick="#{event.onclick}" oncomplete="#{event.oncomplete}"
+ ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}">
+
+ </rich:datascroller>
+ </f:facet>
+ <f:facet name="footer">
+
+ </f:facet>
+ <rich:column sortBy="#{dT.str0}" filterBy="#{dT.str0}" filterEvent="onkeyup"
+ selfSorted="#{dataScroller.selfSorted}" filterValue="#{dataScroller.filterValue}">
+ <h:outputText value="#{dT.str0}" />
+ </rich:column>
+ <rich:column sortBy="#{dT.int0}" filterBy="#{dT.int0}" filterEvent="onkeyup" selfSorted="#{dataScroller.selfSorted}">
+ <h:outputText value="#{dT.int0} " />
+ </rich:column>
+ </rich:dataTable>
+ <h:panelGrid id="dataScrollerActionID" columns="1">
+ <a4j:commandButton value="Show action" reRender="dataScrollerActionID" style=" width : 95px;"></a4j:commandButton>
+ <h:outputText value="#{dataScroller.action}" />
+ <h:outputText value="#{dataScroller.actionListener}" />
+ </h:panelGrid>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScrollerDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScrollerDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScrollerDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScrollerProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,84 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="datascrollerPropertySubviewID">
+
+ <h:commandButton value="add test" action="#{dataScroller.addHtmlDatascroller}"></h:commandButton>
+ <h:commandButton action="#{dataScroller.CutArray}" value="CutArray" />
+ <h:commandButton action="#{dataScroller.RestoreArray}"
+ value="RestoreArray" />
+
+ <h:panelGrid columns="2">
+ <h:outputText value="maxPages" />
+ <h:inputText value="#{dataScroller.maxPages}">
+ <a4j:support event="onchange" reRender="dataScrollerID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.render}"
+ onclick="submit();" />
+
+ <h:outputText value="renderIfSinglePage:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.renderIfSinglePage}"
+ onclick="submit();" />
+
+ <h:outputText value="limitToList:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.limitToList}"
+ onclick="submit();" />
+
+ <h:outputText value="fastControls" />
+ <h:selectOneRadio value="#{dataScroller.fastControls}">
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <f:selectItem itemLabel="show" itemValue="show" />
+ <f:selectItem itemLabel="hide" itemValue="hide" />
+ <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="align" />
+ <h:selectOneRadio value="#{dataScroller.align}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="ajaxSingle" />
+ <h:selectBooleanCheckbox value="#{dataScroller.ajaxSingle}"></h:selectBooleanCheckbox>
+
+ <h:outputText value="boundaryControls" />
+ <h:selectOneRadio value="#{dataScroller.boundaryControls}">
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <f:selectItem itemLabel="show" itemValue="show" />
+ <f:selectItem itemLabel="hide" itemValue="hide" />
+ <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="fastStep"></h:outputText>
+ <h:inputText value="#{dataScroller.fastStep}" />
+
+ <h:outputText value="value"></h:outputText>
+ <h:outputText value="#{dataScroller.value}"></h:outputText>
+
+ <h:outputText value="stepControls"></h:outputText>
+ <h:selectOneRadio value="#{dataScroller.stepControls}">
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <f:selectItem itemLabel="show" itemValue="show" />
+ <f:selectItem itemLabel="hide" itemValue="hide" />
+ <a4j:support event="onclick" reRender="dataTableId,dsID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="sortMode"></h:outputText>
+ <h:selectOneRadio value="#{dataScroller.sortMode}">
+ <f:selectItem itemLabel="single" itemValue="single" />
+ <f:selectItem itemLabel="multi" itemValue="multi" />
+ <a4j:support event="onchange" reRender="dataTableId,dsID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="selfSorted"></h:outputText>
+ <h:selectBooleanCheckbox value="#{dataScroller.selfSorted}">
+ <a4j:support event="onchange" reRender="dataTableId,dsID"></a4j:support>
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataScroller/DataScrollerStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="datascrollerStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{dataScroller.bTest1}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1DataScroller}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{dataScroller.bTest2}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2DataScroller}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{dataScroller.bTest3}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3DataScroller}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{dataScroller.bTest4}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4DataScroller}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{dataScroller.bTest5}" value="run" reRender="dataTableId,dTablePropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5DataScroller}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTable.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTable.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTable.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,144 @@
+<%@ 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"%>
+<style type="text/css">
+.LeftTreePane {
+
+}
+
+.RightTreePane {
+
+}
+
+.TreeContainer {
+ overflow: auto;
+ height: 400px;
+ border: 3px inset gray;
+}
+</style>
+<script type="text/javascript">
+ // <![CDATA[
+ function blinkElement(elt) {
+ while (elt.tagName.toLowerCase() != 'table') {
+ elt = elt.parentNode;
+ }
+
+ elt.style.borderColor= '#5555FF';
+ elt.style.borderStyle= 'dotted';
+ elt.style.borderWidth = '3px';
+ setTimeout( function() { this.style.borderStyle = 'none'; }.bind(elt), 300);
+ }
+ // ]]>
+ </script>
+<f:subview id="DataTableSubviewID">
+ <rich:dragIndicator id="treeIndicator">
+ <f:facet name="single">
+ <f:verbatim>{marker} {nodeParam}({treeParam})</f:verbatim>
+ </f:facet>
+ </rich:dragIndicator>
+
+ <rich:dataTable id="dataTableID" binding="#{dataTable.htmlDataTable}" var="dataTableID" value="#{dataTable.mounths}" rowKeyVar="key"
+ captionClass="#{style.captionClass}" rowClasses="#{style.rowClasses}" headerClass="#{style.headerClass}" footerClass="#{style.footerClass}" styleClass="#{style.styleClass}" captionStyle="#{style.captionStyle}" columnClasses="#{style.columnClasses}"
+ onRowClick="#{event.onRowClick}" rendered="#{dataTable.rendered}"
+ align="#{dataTable.align}" bgcolor="red" border="#{dataTable.border}" columnsWidth="#{dataTable.columnsWidth}"
+ width="#{dataTable.width}" title="DataTableTite" onRowDblClick="#{event.onRowDblClick}" onRowMouseDown="#{event.onRowMouseDown}"
+ onRowMouseMove="#{event.onRowMouseMove}" onRowMouseOut="#{event.onRowMouseOut}" onRowMouseOver="#{event.onRowMouseOver}"
+ onRowMouseUp="#{event.onRowMouseUp}" onclick="#{event.onclick}" ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}">
+ <a4j:support event="onRowDblClick" action="#{controller.rfAction}"></a4j:support>
+ <f:facet name="caption">
+ <h:outputText value="caption facet" />
+ </f:facet>
+ <f:facet name="header">
+ <rich:columnGroup>
+ <rich:column rowspan="2" rendered="#{dataTable.r2rendered}">
+ <h:outputText value="2-row head" />
+ </rich:column>
+ <h:column rendered="#{dataTable.r2rendered}">
+ <h:outputText value="head in UIColumn" />
+ </h:column>
+ <rich:column breakBefore="true">
+ <h:outputText value="2-d row head" />
+ </rich:column>
+ </rich:columnGroup>
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="table foot" />
+ </f:facet>
+ <rich:columnGroup columnClasses="#{style.columnClassesA}" rowClasses="#{style.rowClassesA}" style="#{style.styleA}" styleClass="#{style.styleClassA}">
+ <rich:column id="mounth" >
+ <f:facet name="header">
+ <h:outputText value="mounth" />
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="-//-" />
+ </f:facet>
+ <h:outputText value="#{dataTableID.mounth}" />
+ </rich:column>
+ <rich:column rendered="#{dataTable.r2rendered}">
+ <f:facet name="header">
+ <h:outputText value="mounth" />
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="-//-" />
+ </f:facet>
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ <h:outputText value="#{dataTableID.town}" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:column styleClass="#{style.styleClassA}" headerClass="#{style.headerClassA}" footerClass="#{style.footerClassA}" style="#{style.styleA}" rendered="#{dataTable.r2rendered}">
+ <rich:tree id="rightTree" style="width:300px"
+ nodeSelectListener="#{treeDndBean.processRSelection}"
+ reRender="selectedNodeR,rightContainer" ajaxSubmitSelection="true"
+ switchType="client" value="#{treeDndBean.treeNodeRight}"
+ changeExpandListener="#{treeDndBean.onExpand}"
+ binding="#{treeDndBean.rightTree}"
+ onselected="window.status='selectedNode: '+event.selectedNode;"
+ onexpand="window.status='expandedNode: '+event.expandedNode"
+ oncollapse="window.status='collapsedNode: '+event.collapsedNode"
+ rowKeyVar="RTreeKey" dropListener="#{treeDndBean.onDrop}"
+ dragListener="#{treeDndBean.onDrag}" dragIndicator="treeIndicator"
+ acceptedTypes="treeNode" dragType="treeNode" var="item">
+ <rich:dndParam name="treeParam" value="rightTree" />
+ </rich:tree>
+ <div>column with the 1st tree</div>
+ </rich:column>
+ <rich:column></rich:column>
+ <rich:subTable id="detail" var="detail" value="#{dataTableID.detail}" rowKeyVar="subRowKey"
+ columnClasses="#{style.columnClassesA}" footerClass="#{style.footerClassA}" headerClass="#{style.headerClassA}" rowClasses="#{style.rowClassesA}" onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onRowClick="#{event.onRowClick}"
+ onRowDblClick="#{event.onRowDblClick}" onRowMouseDown="#{event.onRowMouseDown}" onRowMouseMove="#{event.onRowMouseMove}"
+ onRowMouseOut="#{event.onRowMouseOut}" onRowMouseOver="#{event.onRowMouseOver}" onRowMouseUp="#{event.onRowMouseUp}">
+ <rich:column id="name">
+ <rich:tree id="leftTree" style="width:300px"
+ nodeSelectListener="#{treeDndBean.processLSelection}"
+ reRender="selectedNodeL" ajaxSubmitSelection="true"
+ switchType="client" value="#{treeDndBean.treeNodeLeft}"
+ changeExpandListener="#{treeDndBean.onExpand}"
+ binding="#{treeDndBean.leftTree}"
+ onselected="window.status='selectedNode: '+event.selectedNode;"
+ onexpand="window.status='expandedNode: '+event.expandedNode"
+ oncollapse="window.status='collapsedNode: '+event.collapsedNode"
+ dropListener="#{treeDndBean.onDrop}"
+ dragListener="#{treeDndBean.onDrag}" dragIndicator="treeIndicator"
+ acceptedTypes="treeNode" dragType="treeNode" rowKeyVar="LTreeKey"
+ var="item" >
+
+ <rich:dndParam name="treeParam" value="leftTree" />
+ </rich:tree>
+ <div>column with the 2nd tree</div>
+ </rich:column>
+ <rich:column id="qty" rendered="#{dataTable.r2rendered}">
+ <h:outputText value="#{detail.qty}" />
+ </rich:column>
+ </rich:subTable>
+ <rich:column id="total" footerClass="#{style.footerClassA}" headerClass="#{style.headerClassA}" style="#{style.styleA}" styleClass="#{style.styleClassA}" colspan="2">
+ <h:outputText value="#{dataTableID.total}" />
+ </rich:column>
+ </rich:dataTable>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTableDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTableDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTableDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTableProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTableProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTableProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,59 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataTablePropertySubviewID">
+ <h:commandButton value="add test" action="#{dataTable.addHtmlDataTable}"></h:commandButton>
+ <h:panelGrid columns="2" style="top">
+ <h:outputText value="Align:"></h:outputText>
+ <h:selectOneMenu value="#{dataTable.align}">
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right " itemValue="right" />
+ <a4j:support event="onclick" reRender="dataTableID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Border: "></h:outputText>
+ <h:inputText value="#{dataTable.border}">
+ <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Columns Width: "></h:outputText>
+ <h:inputText value="#{dataTable.columnsWidth}">
+ <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{dataTable.width}">
+ <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rendered:" />
+ <h:selectBooleanCheckbox value="#{dataTable.rendered}"
+ onclick="submit();" />
+
+ <h:outputText value=" row 2 rendered" />
+ <h:selectBooleanCheckbox value="#{dataTable.r2rendered}"
+ onclick="submit();" />
+
+ <h:outputText value="Selected Node: "></h:outputText>
+ <h:outputText escape="false"
+ value="#{treeDndBean.leftSelectedNodeTitle}" id="selectedNodeL" />
+
+ <h:outputText value="Selected Node: "></h:outputText>
+ <h:outputText escape="false"
+ value="#{treeDndBean.rightSelectedNodeTitle}" id="selectedNodeR" />
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRowCount" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('dataTableID').rowCount}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DataTable/DataTableStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="StraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{dataTable.bTest1}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1DataTable}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{dataTable.bTest2}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2DataTable}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{dataTable.bTest3}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3DataTable}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{dataTable.bTest4}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4DataTable}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{dataTable.bTest5}" value="run" reRender="dtPropertyID,dataTableID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5DataTable}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,271 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dataDefinitionListSubviewID">
+
+ <a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+ </a4j:outputPanel>
+
+ <script>
+ DnD.CLIENT_VALIDATION_OFF = false;
+ </script>
+
+ <h:panelGroup id="dragValueText">
+ <h:outputText value="#{dndBean.dragValue}" />
+ </h:panelGroup>
+
+ <h:panelGrid columns="2">
+ <h:dataTable var="type" value="#{dndBean.types}">
+ <h:column>
+ <h:panelGrid styleClass="dropzoneDecoration" id="drag1">
+ <h:outputText value="#{type} - drag" />
+ <rich:dragSupport dragType="#{type}" dragValue="#{type} - value"
+ actionListener="#{dndBean.actListenerDrag}"
+ action="#{dndBean.dragAction}"
+ dragListener="#{dndBean.processDrag}"
+ oncomplete="#{event.oncomplete}" ondragend="#{event.ondragend}"
+ ondragstart="#{event.ondragstart}"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ ondropout="#{event.ondropout}" ondropover="#{event.ondropover}"
+ id="dragSupportID" binding="#{dndBean.htmlDrag}" dragIndicator="indicator">
+ <rich:dndParam name="default">
+ <h:graphicImage value="/pics/ajax_process.gif" />
+ </rich:dndParam>
+ <rich:dndParam name="accept">
+ <h:graphicImage value="/src/main/webapp/pics/expand.gif"/>
+ </rich:dndParam>
+ <rich:dndParam name="reject">
+ <h:graphicImage value="/src/main/webapp/pics/collapse.gif"/>
+ </rich:dndParam>
+ </rich:dragSupport>
+ </h:panelGrid>
+ </h:column>
+ </h:dataTable>
+
+ <h:dataTable var="type" value="#{dndBean.types}">
+ <h:column>
+ <h:panelGrid styleClass="dropzoneDecoration" id="drop2">
+ <h:outputText value="#{type} - drop" />
+ <rich:dropSupport reRender="dragValueText" id="dropSupportID"
+ actionListener="#{dndBean.actListenerDrop}"
+ action="#{dndBean.dropAction}" acceptedTypes="#{type}"
+ dropListener="#{dndBean.processDrop}" dropValue="#{type} - value"
+ ondragenter="#{event.ondragenter}"
+ ondragexit="#{event.ondragexit}" ondrop="#{event.ondrop}"
+ ondropend="#{event.ondropend}" oncomplete="#{event.oncomplete}"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ binding="#{dndBean.htmlDrop}">
+ </rich:dropSupport>
+ </h:panelGrid>
+ </h:column>
+ </h:dataTable>
+
+ <h:panelGrid id="dndActionID" columns="1">
+ <h:commandButton action="#{dndBean.add1}" value="add Drag test" />
+ <h:commandButton action="#{dndBean.add2}" value="add Drop test" />
+ <a4j:commandButton value="Show action" reRender="dndActionID"
+ style=" width : 95px;"></a4j:commandButton>
+ <h:outputText value="#{dndBean.actionDrag}" />
+ <h:outputText value="#{dndBean.actionDrop}" />
+ <h:outputText value="#{dndBean.actionListenerDrag}" />
+ <h:outputText value="#{dndBean.actionListenerDrop}" />
+ </h:panelGrid>
+ </h:panelGrid>
+ <rich:dragIndicator id="indicator" acceptClass="accept"
+ rejectClass="reject" style="#{style.style}"
+ styleClass="#{style.styleClass}">
+ <f:facet name="single">
+ <f:verbatim>{marker} <b>{testDrag}</b> {label}</f:verbatim>
+ </f:facet>
+ <rich:dndParam name="accept" value="ACCEPT:" />
+ <rich:dndParam name="reject">
+
+ <f:verbatim>
+ <i style="text-decoration: line-through;">REJECT:</i>
+ </f:verbatim>
+ </rich:dndParam>
+ <rich:dndParam name="dropping" value="dropping"></rich:dndParam>
+ <rich:dndParam name="dragging" value="dragging"></rich:dndParam>
+ </rich:dragIndicator>
+
+ <rich:dragIndicator id="dIndicator" acceptClass="defaultIndicator"
+ rejectClass="reject">
+ <f:facet name="single">
+ <f:verbatim>{marker} <b>{testDrag}</b> {label}</f:verbatim>
+ </f:facet>
+ <rich:dndParam name="accept" value="ACCEPT:" />
+ <rich:dndParam name="reject">
+ <f:verbatim>
+ <i style="text-decoration: line-through;">REJECT:</i>
+ </f:verbatim>
+ </rich:dndParam>
+ </rich:dragIndicator>
+
+ <h:panelGrid columns="1" style="position: relative; left: 140px;">
+ <h:panelGrid columns="1"
+ style="position: absolute; top: 30px; left: 300px;">
+ <rich:dragIndicator id="defaultIndicator">
+ </rich:dragIndicator>
+ </h:panelGrid>
+ </h:panelGrid>
+
+ <h:panelGrid columns="4" cellspacing="20">
+ <h:panelGrid styleClass="dropzoneDecoration" id="grid1">
+ <f:verbatim>Accepts file and folder... Customizes</f:verbatim>
+ <rich:dropSupport id="zone1" oncomplete="#{event.oncomplete}"
+ ondragenter="#{event.ondragenter}" ondragexit="#{event.ondragexit}"
+ ondropend="#{event.ondropend}" ondrop="#{event.ondrop}"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ acceptedTypes="file, folder" typeMapping="{file: testDrop}">
+ <rich:dndParam name="testDrop">
+ <h:graphicImage height="16" width="16"
+ value="#{icon.iconFileManager}" />
+ </rich:dndParam>
+ </rich:dropSupport>
+ </h:panelGrid>
+
+ <h:panelGrid styleClass="dropzoneDecoration" id="grid2">
+ <f:verbatim>Accepts none</f:verbatim>
+ <rich:dropSupport>
+ </rich:dropSupport>
+ </h:panelGrid>
+
+ <h:panelGrid styleClass="dropzoneDecoration" id="grid3">
+ <f:verbatim>Accepts none... Customizes</f:verbatim>
+ <rich:dropSupport typeMapping="{file: testDrop}"
+ oncomplete="#{event.oncomplete}" ondragenter="#{event.ondragenter}"
+ ondragexit="#{event.ondragexit}" ondropend="#{event.ondropend}"
+ ondrop="#{event.ondrop}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="testDrop">
+ <h:graphicImage height="16" width="16"
+ value="#{icon.iconFileManagerReject}" />
+ </rich:dndParam>
+ </rich:dropSupport>
+ </h:panelGrid>
+
+ <h:panelGrid styleClass="dropzoneDecoration" id="grid4">
+ <f:verbatim>Accepts file and folder</f:verbatim>
+ <rich:dropSupport acceptedTypes="file, folder"
+ oncomplete="#{event.oncomplete}" ondragenter="#{event.ondragenter}"
+ ondragexit="#{event.ondragexit}" ondropend="#{event.ondropend}"
+ ondrop="#{event.ondrop}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="testDrop" value="testDropValue" />
+ </rich:dropSupport>
+ </h:panelGrid>
+
+ <h:panelGrid id="grid5">
+ <rich:dragSupport dragType="file" ondragend="#{event.ondragend}"
+ ondragstart="#{event.ondragstart}" ondropout="#{event.ondropout}"
+ ondropover="#{event.ondropover}" oncomplete="#{event.oncomplete}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="label" value="Label" />
+ <rich:dndParam name="testDrag" value="testDragValue" />
+ </rich:dragSupport>
+ <f:verbatim>File Draggable - no indicator</f:verbatim>
+ </h:panelGrid>
+
+ <h:panelGrid id="grid6">
+ <rich:dragSupport dragType="file" dragIndicator="indicator"
+ ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}"
+ ondropout="#{event.ondropout}" ondropover="#{event.ondropover}"
+ oncomplete="#{event.oncomplete}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="label" value="Label" />
+ <rich:dndParam name="testDrag" value="testDragValue" />
+ </rich:dragSupport>
+ <f:verbatim>File Draggable with indicator</f:verbatim>
+ </h:panelGrid>
+
+ <h:panelGrid id="grid7">
+ <rich:dragSupport dragType="folder" dragIndicator="indicator"
+ ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}"
+ ondropout="#{event.ondropout}" ondropover="#{event.ondropover}"
+ oncomplete="#{event.oncomplete}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="label" value="Label" />
+ <rich:dndParam name="testDrag" value="testDragValue for Folder" />
+ </rich:dragSupport>
+ <f:verbatim>Folder Draggable with indicator</f:verbatim>
+ </h:panelGrid>
+
+ <h:outputText />
+
+ <h:panelGrid id="grid8">
+ <rich:dragSupport dragType="folder" ondragend="#{event.ondragend}"
+ ondragstart="#{event.ondragstart}" ondropout="#{event.ondropout}"
+ ondropover="#{event.ondropover}" oncomplete="#{event.oncomplete}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="label" value="Label" />
+ <rich:dndParam name="testDrag" value="testDragValue for Folder" />
+ </rich:dragSupport>
+ <f:verbatim>Folder Draggable - no indicator</f:verbatim>
+ </h:panelGrid>
+
+ <h:panelGrid id="grid9">
+ <rich:dragSupport dragType="file" dragIndicator="defaultIndicator"
+ ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}"
+ ondropout="#{event.ondropout}" ondropover="#{event.ondropover}">
+ <rich:dndParam name="testDrag" value="testDragValue" />
+ <rich:dndParam name="marker" value="testMarkerValue" />
+ <rich:dndParam name="label" value="testDragValue" />
+ </rich:dragSupport>
+ <f:verbatim>File Draggable with defaultIndicator</f:verbatim>
+ </h:panelGrid>
+
+ <h:panelGrid id="grid10">
+ <rich:dragSupport dragType="folder" dragIndicator="defaultIndicator"
+ ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}"
+ ondropout="#{event.ondropout}" ondropover="#{event.ondropover}"
+ oncomplete="#{event.oncomplete}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="label" value="testDragValue for Folder" />
+ </rich:dragSupport>
+ <f:verbatim>Folder Draggable with defaultIndicator</f:verbatim>
+ </h:panelGrid>
+ <h:outputText />
+ </h:panelGrid>
+
+ <h:panelGrid id="renderedId">
+ <rich:dragSupport dragType="file" dragIndicator="defaultIndicator"
+ ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}"
+ ondropout="#{event.ondropout}" ondropover="#{event.ondropover}"
+ oncomplete="#{event.oncomplete}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="marker" value="testMarkerValue" />
+ <rich:dndParam name="label" value="testDragValue" />
+ </rich:dragSupport>
+
+ <h:graphicImage id="dragImage" value="/pics/masshtaby_01.jpg"
+ width="200px" height="200px" />
+ <f:verbatim>dragSupport</f:verbatim>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getDragType" reRender="findID1"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID1">
+ <h:outputText value="#{rich:findComponent('dragSupportID').dragType}" />
+ </rich:column>
+ <rich:column>
+ <a4j:commandLink value="getDropValue" reRender="findID2"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID2">
+ <h:outputText
+ value="#{rich:findComponent('dropSupportID').dropValue}" />
+ </rich:column>
+ <rich:column>
+ <a4j:commandLink value="getAcceptClass" reRender="findID3"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID3">
+ <h:outputText value="#{rich:findComponent('indicator').acceptClass}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenu.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,72 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="DropDownMenuSubviewID">
+ <h:panelGrid columns="2">
+ <rich:spacer width="400px" height="400px"></rich:spacer>
+ <rich:panel>
+ <rich:dropDownMenu id="ddmId" binding="#{dDMenu.htmlDropDownMenu}" disabled="#{dDMenu.disabledDDM}" value="DropDownMenu" submitMode="#{dDMenu.mode}" hideDelay="#{dDMenu.hideDelay}"
+ direction="#{dDMenu.direction}" horizontalOffset="#{dDMenu.horizontalOffset}" jointPoint="#{dDMenu.jointPoint}"
+ popupWidth="#{dDMenu.popupWidth}" showDelay="#{dDMenu.showDelay}" rendered="#{dDMenu.rendered}"
+ verticalOffset="#{dDMenu.verticalOffset}" styleClass="#{style.styleClass}" style="#{style.style}" event="#{dDMenu.event}"
+ oncollapse="#{event.oncollapse}" onexpand="#{event.onexpand}" ongroupactivate="#{event.ongroupactivate}" onitemselect="#{event.onitemselect}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}">
+ <rich:menuItem icon="#{dDMenu.icon}" onbeforedomupdate="#{event.onbeforedomupdate}" onclick="#{event.onclick}" oncomplete="#{event.oncomplete}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onselect="#{event.onselect}">
+ <h:outputText value="Item1(test events)" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="#{dDMenu.icon}" onmousedown="alert('OnMouseDown')" selectClass="mousemove">
+ <h:outputText value="OnMouseDown" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem>
+ <h:outputText value="Item2" />
+ </rich:menuItem>
+ <rich:menuItem icon="#{dDMenu.icon}">
+ <h:outputText value="Item3" />
+ </rich:menuItem>
+ <rich:menuItem>
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ </rich:menuItem>
+ <rich:menuSeparator/>
+ <rich:menuItem icon="/pics/info.gif" value="action" action="#{dDMenu.act}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{dDMenu.actListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/ajax_process.gif" iconDisabled="/pics/ajax_stoped.gif" disabled="#{dDMenu.disabled}">
+ <h:outputText value="Image"></h:outputText>
+ </rich:menuItem>
+ <rich:menuItem disabled="#{dDMenu.disabled}" icon="#{dDMenu.icon}">
+ <h:outputText value="Image:" />
+ <h:graphicImage value="/pics/ajax_process.gif" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuGroup value="Second level" direction="#{dDMenu.groupDirection}" disabled="#{dDMenu.disabled}" icon="#{dDMenu.icon}"
+ iconFolder="#{dDMenu.iconFolder}">
+ <rich:menuItem icon="#{dDMenu.icon}">
+ <h:outputText value="Item3" />
+ </rich:menuItem>
+ <rich:menuItem value="Item4">
+ <h:selectOneMenu value="#{dDMenu.selectMenu}">
+ <f:selectItem itemLabel="Honda Accord" itemValue="accord" />
+ <f:selectItem itemLabel="Toyota 4Runner" itemValue="4runner" />
+ <f:selectItem itemLabel="Nissan Z350" itemValue="nissan-z" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="#{dDMenu.icon}">
+ <h:outputText value="CheckBox " />
+ <h:selectBooleanCheckbox value="#{dDMenu.check}" onclick="submit()" />
+ </rich:menuItem>
+ </rich:menuGroup>
+ </rich:dropDownMenu>
+ </rich:panel>
+ </h:panelGrid>
+ <h:panelGrid id="dndActionID" columns="1">
+ <a4j:commandButton value="Show action" reRender="dndActionID" style=" width : 95px;"></a4j:commandButton>
+ <h:outputText value="#{dDMenu.action}" />
+ <h:outputText value="#{dDMenu.actionListener}" />
+ </h:panelGrid>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenuDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenuDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenuDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
Added: trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenuProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,107 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dropDownMenuPropertySubviewID">
+ <h:commandButton value="add test" action="#{dDMenu.htmlDropDownMenu}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="HideDelay (ms):" />
+ <h:inputText value="#{dDMenu.hideDelay}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="ShowDelay (ms):" />
+ <h:inputText value="#{dDMenu.showDelay}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="PopupWidth (px):" />
+ <h:inputText value="#{dDMenu.popupWidth}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="horizontalOffset (px):" />
+ <h:inputText value="#{dDMenu.horizontalOffset}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="verticalOffset (px):" />
+ <h:inputText value="#{dDMenu.verticalOffset}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
+
+ <h:outputText value="Mode:" />
+ <h:selectOneRadio value="#{dDMenu.mode}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Direction:" />
+ <h:selectOneRadio value="#{dDMenu.direction}">
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="GroupDirection:" />
+ <h:selectOneRadio value="#{dDMenu.groupDirection}">
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="left-down" itemValue="left-down" />
+ <f:selectItem itemLabel="left-up" itemValue="left-up" />
+ <f:selectItem itemLabel="right-down" itemValue="right-down" />
+ <f:selectItem itemLabel="right-up" itemValue="right-up" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="JointPoint:" />
+ <h:selectOneRadio value="#{dDMenu.jointPoint}">
+ <f:selectItem itemLabel="top-right" itemValue="tr" />
+ <f:selectItem itemLabel="top-left" itemValue="tl" />
+ <f:selectItem itemLabel="bottom-right" itemValue="br" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bl" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Menu appearance event:" />
+ <h:selectOneRadio value="#{dDMenu.event}" onclick="submit()">
+ <f:selectItem itemLabel="onclick" itemValue="onclick" />
+ <f:selectItem itemLabel="onmouseover" itemValue="onmouseover" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dDMenu.rendered}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disable some ddmenu:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{dDMenu.disabledDDM}">
+ <a4j:support reRender="ddmId" event="onclick" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disable some items:" />
+ <h:selectBooleanCheckbox value="#{dDMenu.disabled}">
+ <a4j:support reRender="ddmId" event="onclick" />
+ </h:selectBooleanCheckbox>
+ <h:commandButton action="#{dDMenu.changeIcons}" value="ChangeIcons" />
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getSubmitMode" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('ddmId').submitMode}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/DropDownMenu/DropDownMenuStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dropDownMenuStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{dDMenu.bTest1}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1DDMenu}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{dDMenu.bTest2}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2DDMenu}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{dDMenu.bTest3}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3DDMenu}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{dDMenu.bTest4}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4DDMenu}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{dDMenu.bTest5}" value="run" reRender="ddmId,ddMenuPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5DDMenu}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Effect/Effect.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Effect/Effect.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Effect/Effect.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,316 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="effectSubviewID">
+
+ <rich:panel id="indexID">
+ <a4j:commandLink value="Hide all"
+ onclick="hideFrm1(),hideFrm2(),hideFrm3(),hideFrm4(),hideFrm5()"></a4j:commandLink>
+
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+
+ <h:outputText value="Menu:" />
+ <h:panelGrid columns="2">
+ <h:outputText value="1." />
+ <f:verbatim>
+ <span onclick="showFrm1(),hideIndexID()"><font color="blue">JSF
+ Components</font></span>
+ </f:verbatim>
+
+ <h:outputText value="2." />
+ <f:verbatim>
+ <span onclick="showFrm2(),hideIndexID()"><font color="blue">JSF
+ Component with Event and non-jsf target</font></span>
+ </f:verbatim>
+
+ <h:outputText value="3." />
+ <f:verbatim>
+ <span onclick="showFrm3(),hideIndexID()"><font color="blue">JSF
+ Component with Event and jsf target</font></span>
+ </f:verbatim>
+
+ <h:outputText value="4." />
+ <f:verbatim>
+ <span onclick="showFrm4(),hideIndexID()"><font color="blue">JSF
+ Component with Event.</font></span>
+ </f:verbatim>
+
+ <h:outputText value="5." />
+ <f:verbatim>
+ <span onclick="showFrm5(),hideIndexID()"><font color="blue">RichFace
+ Components.</font></span>
+ </f:verbatim>
+ </h:panelGrid>
+ </rich:panel>
+
+ <rich:panel id="frm1">
+ <h:outputText value="JSF Components:" />
+
+ <h:commandButton value="add test" action="#{effect.addHtmlEffect}"></h:commandButton>
+
+ <h:panelGrid id="panGrID" columns="2">
+ <h:outputText value="Time:" />
+ <h:inputText value="#{effect.time}" />
+
+ <f:verbatim>
+ <span onclick="hidePanel1(), hideImage1()"><font color="blue">Hide
+ Panel</font> </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/fatal.gif"
+ onclick="hidePanel1(), hideImage1()" />
+
+ <f:verbatim>
+ <span onclick="showPanel1(), showImage1()"><font color="blue">Show</font>
+ </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/warn.gif"
+ onclick="showPanel1(), showImage1()" />
+
+
+ <h:outputText value="Event (onclick):" />
+
+ <f:verbatim></f:verbatim>
+
+ <h:outputText value="No" />
+ <h:outputText value="Yes" />
+
+ <h:panelGroup id="form_1a_ID">
+ <h:panelGrid id="panel_1_ID" border="1"
+ style="background-color:#696969">
+ <f:facet name="header">
+ <h:outputText value="Panel Header" />
+ </f:facet>
+
+ <h:outputText value="Panel Content" />
+ </h:panelGrid>
+ </h:panelGroup>
+
+ <h:graphicImage id="asusID" value="/pics/asus.jpg" height="100px"
+ width="125px" onclick="hideImage1()" />
+
+ <h:panelGroup id="form_1b_ID">
+ <h:inputText value="onmouse and onclick">
+ <rich:effect binding="#{effect.htmlEffect}" event="onclick" type="Fold"
+ params="duration:0.5,from:0.4,to:1.0" />
+ <rich:effect event="onmouseout" type="Highlight"
+ params="duration:0.5,from:1.0,to:0.4" />
+ </h:inputText>
+ </h:panelGroup>
+ </h:panelGrid>
+
+ <rich:effect for="panel_1_ID" name="hidePanel1" type="Fade"
+ params="duration:#{effect.time}" id="effectID"/>
+ <rich:effect for="panel_1_ID" name="showPanel1" type="Appear" />
+
+ <rich:effect for="asusID" name="hideImage1" type="Fold"
+ params="duration:#{effect.time}" />
+ <rich:effect for="asusID" name="showImage1" type="Grow" />
+
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm1(),showIndexID()"><font color="blue">Close</font></span>
+ </f:verbatim>
+ </rich:panel>
+
+ <rich:panel id="frm2">
+ <h:outputText
+ value="JSF Component with Event and non-jsf target (onclick, onmouseout)" />
+
+ <h:panelGrid columns="2">
+ <h:graphicImage id="imageID" value="/pics/podb109_61.jpg" width="100"
+ height="50">
+ <rich:effect event="onclick" targetId="divID" type="Opacity"
+ params="duration:0.5,from:0.4,to:1.0" />
+ <rich:effect event="onmouseout" type="Opacity"
+ params="targetId:'divID',duration:0.5,from:1.0,to:0.4" />
+ </h:graphicImage>
+
+ <f:verbatim>
+ <div id="divID"
+ style="width: 100px; height: 50px; background-color: red"><rich:effect
+ event="onclick" targetId="imageID" type="Opacity"
+ params="duration:0.5,from:0.4,to:1.0" /> <rich:effect
+ event="onmouseout" type="Opacity"
+ params="targetId:'imageID',duration:0.5,from:1.0,to:0.4" /></div>
+ </f:verbatim>
+ </h:panelGrid>
+
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm2(),showIndexID()"><font color="blue">Close</font></span>
+ </f:verbatim>
+ </rich:panel>
+
+ <rich:panel id="frm3">
+ <h:outputText
+ value="JSF Component with Event and jsf target (onclick, onmouseout)" />
+
+ <h:panelGrid id="gridID" border="1" style="background-color:green">
+ <h:outputText value="Panel Content" />
+ <rich:effect event="onclick" targetId="imgID" type="Opacity"
+ params="duration:0.5,from:0.4,to:1.0" />
+ <rich:effect event="onmouseout" targetId="imgID" type="Opacity"
+ params="duration:0.5,from:1.0,to:0.4" />
+ </h:panelGrid>
+
+ <h:graphicImage id="imgID" value="/pics/podb109_61.jpg" width="93"
+ height="30px">
+ <rich:effect event="onmouseout" targetId="gridID" type="Opacity"
+ params="duration:0.5,from:0.4,to:1.0" />
+ <rich:effect event="onclick" targetId="gridID" type="Opacity"
+ params="duration:0.5,from:1.0,to:0.4" />
+ </h:graphicImage>
+
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm3(),showIndexID()"><font color="blue">Close</font></span>
+ </f:verbatim>
+ </rich:panel>
+
+ <rich:panel id="frm4">
+ <h:outputText value="1. (Event 2)" />
+ <h:graphicImage id="img_1_ID" value="/pics/asus.jpg" width="200px"
+ height="150px" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputText value="2. (Hide 1)" />
+ <h:graphicImage id="img_2_ID" value="/pics/benq.jpg" width="200px"
+ height="150px" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputText value="3. (Pulsate 3, Show 1)" />
+ <h:graphicImage id="img_3_ID" value="/pics/toshiba.jpg" width="200px"
+ height="150px">
+ <rich:effect event="onclick" type="Pulsate" />
+ </h:graphicImage>
+
+ <rich:effect event="onclick" for="img_1_ID" targetId="img_2_ID"
+ type="BlindDown" />
+ <rich:effect event="onclick" for="img_2_ID" targetId="img_1_ID"
+ type="Puff" />
+ <rich:effect event="onclick" for="img_3_ID" targetId="img_1_ID"
+ type="Grow" params="duration:0.8" />
+
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm4(),showIndexID()"><font color="blue">Close</font></span>
+ </f:verbatim>
+ </rich:panel>
+
+ <rich:panel id="frm5">
+ <h:panelGrid id="panelGrdID" columns="2">
+ <f:verbatim>
+ <span onclick="hideRichPanel()"><font color="blue">Hide
+ Panel</font> </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/fatal.gif" onclick="hideRichPanel()" />
+
+ <f:verbatim>
+ <span onclick="showRichPanel()"><font color="blue">Show
+ Panel</font> </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/warn.gif" onclick="showRichPanel()" />
+
+ <f:verbatim>
+ <span onclick="hideRichTabPanel()"><font color="blue">Hide
+ Tab Panel</font> </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/fatal.gif" onclick="hideRichTabPanel()" />
+
+ <f:verbatim>
+ <span onclick="showRichTabPanel()"><font color="blue">Show
+ Tab Panel</font> </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/warn.gif" onclick="showRichTabPanel()" />
+ </h:panelGrid>
+
+ <rich:panel id="richPanelID">
+ <f:facet name="header">
+ <h:outputText value="Header of the Panel" />
+ </f:facet>
+ <f:verbatim>
+ This is a panel. This is a panel. This is a panel. This is a panel. <br />
+ This is a panel. This is a panel. This is a panel. This is a panel.
+ </f:verbatim>
+ <rich:effect event="onclick" type="Opacity"
+ params="duration:0.6,from:0.3,to:1.0" />
+ <rich:effect event="onmouseout" type="Opacity"
+ params="duration:0.6,from:1.0,to:0.3" />
+ </rich:panel>
+
+ <rich:tabPanel id="tabPanelID"
+ headerAlignment="Header of the tabPanel" height="200px"
+ switchType="ajax" rendered="true" title="Title">
+
+ <rich:tab id="tab1" label="label 1">
+ <h:outputText value="This is tab panel 1" styleClass="text1"></h:outputText>
+ </rich:tab>
+
+ <rich:tab id="tab2" label="label 2">
+ <h:outputText value="This is tab panel 2" styleClass="text1"></h:outputText>
+ </rich:tab>
+
+ <rich:tab id="tab3" label="label 3">
+ <h:outputText value="This is tab panel 3" styleClass="text1"></h:outputText>
+ </rich:tab>
+
+ <rich:effect event="onclick" type="Opacity"
+ params="duration:0.4,from:1.0,to:0.4" />
+ <rich:effect event="onmouseout" type="Opacity"
+ params="duration:0.4,from:0.4,to:1.0" />
+ </rich:tabPanel>
+
+ <rich:effect for="richPanelID" event="" name="hideRichPanel"
+ type="Fade" />
+ <rich:effect for="richPanelID" event="" name="showRichPanel"
+ type="Appear" />
+
+ <rich:effect for="tabPanelID" event="" name="hideRichTabPanel"
+ type="Fade" />
+ <rich:effect for="tabPanelID" event="" name="showRichTabPanel"
+ type="Appear" />
+
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm5(),showIndexID()"><font color="blue">Close</font></span>
+ </f:verbatim>
+ </rich:panel>
+
+
+ <rich:effect for="indexID" name="hideIndexID" type="SlideUp" />
+ <rich:effect for="indexID" name="showIndexID" type="SlideDown" />
+
+ <rich:effect for="frm1" name="hideFrm1" type="Fade" />
+ <rich:effect for="frm1" name="showFrm1" type="Appear" />
+
+ <rich:effect for="frm2" name="hideFrm2" type="Fade" />
+ <rich:effect for="frm2" name="showFrm2" type="Appear" />
+
+ <rich:effect for="frm3" name="hideFrm3" type="Fade" />
+ <rich:effect for="frm3" name="showFrm3" type="Appear" />
+
+ <rich:effect for="frm4" name="hideFrm4" type="Fade" />
+ <rich:effect for="frm4" name="showFrm4" type="Appear" />
+
+ <rich:effect for="frm5" name="hideFrm5" type="Fade" />
+ <rich:effect for="frm5" name="showFrm5" type="Appear" />
+
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getParams" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('effectID').params}" />
+ </rich:column>
+ </h:panelGrid>
+
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTable.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTable.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTable.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,116 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="extendedDataTableSubviewID">
+ <style type="text/css">
+.leftColumn {
+ width: 50%;
+ height: 100%;
+}
+
+.rightColumn {
+ width: 50%;
+ height: 100%;
+}
+
+table {
+ cell-padding: 10;
+ cell-spacing: 10;
+}
+
+#mainPanel {
+ width: 100%;
+ height: 100%;
+}
+
+#leftPanel {
+ width: 100%;
+ height: 100%;
+}
+
+#rightPanel {
+ width: 100%;
+ height: 100%;
+}
+</style>
+ <rich:extendedDataTable id="demoTable"
+ value="#{extendedDataTableBean.dataModel}" var="patient"
+ style="margin: 0 auto;"
+ rows="#{extendedDataTableControlBean.rowsNumber}"
+ width="#{extendedDataTableControlBean.width}"
+ height="#{extendedDataTableControlBean.height}"
+ selectedClass="dataTableSelectedRow" footerClass="demo-footer"
+ sortMode="#{extendedDataTableControlBean.sortMode}"
+ selectionMode="#{extendedDataTableControlBean.selectionMode}"
+ selection="#{extendedDataTableBean.selection}" rowKeyVar="rkvar"
+ tableState="#{extendedDataTableBean.tableState}"
+ binding="#{extendedDataTableBean.extDTable}"
+ onclick="#{event.onclick}" ondblclick="#{event.ondblclick}"
+ onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}"
+ onRowClick="#{event.onRowClick}"
+ onRowDblClick="#{event.onRowDblClick}"
+ onRowMouseDown="#{event.onRowMouseDown}"
+ onRowMouseMove="#{event.onRowMouseMove}"
+ onRowMouseOut="#{event.onRowMouseOut}"
+ onRowMouseOver="#{event.onRowMouseOver}"
+ onRowMouseUp="#{event.onRowMouseUp}"
+ onselectionchange="#{event.onselectionchange}"
+ border="#{extendedDataTableControlBean.border}"
+ cellpadding="#{extendedDataTableControlBean.cellpadding}"
+ cellspacing="#{extendedDataTableControlBean.cellspacing}"
+ dir="#{extendedDataTableControlBean.dir}"
+ first="#{extendedDataTableControlBean.first}"
+ frame="#{extendedDataTableControlBean.frame}"
+ groupingColumn="#{extendedDataTableControlBean.groupingColumn}"
+ rendered="#{extendedDataTableControlBean.rendered}"
+ sortPriority="#{extendedDataTableControlBean.sortPriority}">
+
+ <rich:column id="id" headerClass="dataTableHeader" width="25%"
+ label="First name" sortable="true" sortBy="#{patient.firstName}"
+ filterBy="#{patient.id}" filterEvent="onkeyup">
+ <f:facet name="header">
+ <h:outputText value="id" />
+ </f:facet>
+ <h:outputText value="#{patient.id}" />
+ </rich:column>
+ <rich:column id="firstName" headerClass="dataTableHeader" width="25%"
+ label="First name" sortable="true" sortBy="#{patient.firstName}"
+ filterBy="#{patient.firstName}" filterEvent="onkeyup">
+ <f:facet name="header">
+ <h:outputText value="First name" />
+ </f:facet>
+ <h:outputText id="text" value="#{patient.firstName}">
+ <rich:toolTip value="#{patient.firstName}" />
+ </h:outputText>
+ </rich:column>
+ <rich:column id="lastName" headerClass="dataTableHeader" width="25%"
+ label="Last name" sortable="true" sortBy="#{patient.lastName}"
+ filterBy="#{patient.lastName}" filterEvent="onkeyup">
+ <f:facet name="header">
+ <h:outputText value="Last name" />
+ </f:facet>
+ <h:outputText value="#{patient.lastName}" />
+ </rich:column>
+ <rich:column id="admissionDate" headerClass="dataTableHeader"
+ width="50%" label="Admission name" sortable="true"
+ sortBy="#{patient.admissionDate}">
+ <f:facet name="header">
+ <h:outputText value="Admission name" />
+ </f:facet>
+ <h:outputText value="#{patient.admissionDate}" />
+ </rich:column>
+ <a4j:support event="onselectionchange"
+ rendered="#{extendedDataTableBean.a4jRendered}"
+ action="#{extendedDataTableBean.takeSelection}"
+ reRender="selectedPatients">
+ </a4j:support>
+ </rich:extendedDataTable>
+ <rich:datascroller style="width: #{extendedDataTableControlBean.width}"
+ rendered="#{extendedDataTableControlBean.paginated}" for="demoTable">
+ </rich:datascroller>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,155 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="extendedDataTablePropertySubviewID">
+
+ <h:panelGrid columns="2">
+ <h:outputLabel value="Width" for="tableWidthInput" />
+ <h:inputText id="tableWidthInput"
+ value="#{extendedDataTableControlBean.width}">
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputLabel value="Height" for="tableHeightInput" />
+ <h:inputText id="tableHeightInput"
+ value="#{extendedDataTableControlBean.height}">
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputLabel value="Number of patients"
+ for="tablePatientsNumberInput" />
+ <h:inputText id="tablePatientsNumberInput"
+ value="#{extendedDataTableBean.patientsNumber}">
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputLabel value="Sort mode" for="tableSortModeSelect" />
+ <h:selectOneMenu id="tableSortModeSelect"
+ value="#{extendedDataTableControlBean.sortMode}">
+ <f:selectItems
+ value="#{extendedDataTableControlBean.sortModeSelectItems}" />
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputLabel value="Selection mode" for="tableSelectionModeSelect" />
+ <h:selectOneMenu id="tableSelectionModeSelect"
+ value="#{extendedDataTableControlBean.selectionMode}">
+ <f:selectItems
+ value="#{extendedDataTableControlBean.selectionModeSelectItems}" />
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="paginated" />
+ <h:selectBooleanCheckbox id="paginatedCheckbox"
+ value="#{extendedDataTableControlBean.paginated}" onclick="submit()" />
+
+ <h:outputLabel value="Number of rows" for="tableRowsNumberInput" />
+ <h:inputText id="tableRowsNumberInput"
+ value="#{extendedDataTableControlBean.rowsNumber}">
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:commandButton value="binding"
+ actionListener="#{extendedDataTableControlBean.checkBinding}" />
+ <h:outputText value="#{extendedDataTableControlBean.bindLabel}"
+ id="bindLabel" />
+
+ <h:outputText value="border" />
+ <h:inputText value="#{extendedDataTableControlBean.border}">
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="cellpadding" />
+ <h:inputText value="#{extendedDataTableControlBean.cellpadding}">
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="cellspacing" />
+ <h:inputText value="#{extendedDataTableControlBean.cellspacing}">
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{extendedDataTableControlBean.dir}">
+ <f:selectItem itemLabel="RTL" itemValue="RTL" />
+ <f:selectItem itemLabel="LTR" itemValue="LTR" />
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{extendedDataTableControlBean.first}">
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="frame" />
+ <h:panelGroup>
+ <h:inputText value="#{extendedDataTableControlBean.frame}"
+ id="inputFrame">
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:inputText>
+ <h:outputLabel value="\"
+ void\", \"above\", \"below\", \"hsides\", \"lhs\", \"rhs\", \"vsides\", \"box\" and \"border\"" for="inputFrame" />
+ </h:panelGroup>
+
+ <h:outputText value="groupingColumn" />
+ <h:inputText value="#{extendedDataTableControlBean.groupingColumn}">
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox
+ value="#{extendedDataTableControlBean.rendered}" onclick="submit()" />
+
+ <h:outputText value="sortPriority" />
+ <h:inputText value="#{extendedDataTableControlBean.sortPriority}">
+ <a4j:support event="onchange" reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ </h:panelGrid>
+ <br />
+ <h:commandButton value="add test"
+ action="#{extendedDataTableControlBean.addExtDTable}"></h:commandButton>
+ <a4j:commandButton value="Update values" reRender="mainPanel">
+ </a4j:commandButton>
+ <br />
+
+ <rich:spacer height="5px" width="100%">
+ </rich:spacer>
+ <h:outputText value="Render selection: " />
+ <h:selectBooleanCheckbox value="#{extendedDataTableBean.a4jRendered}"
+ onclick="submit()" />
+ <rich:dataTable id="selectedPatients"
+ rendered="#{extendedDataTableBean.a4jRendered}"
+ value="#{extendedDataTableBean.selectedItems}" var="selectedPatient">
+ <f:facet name="header">
+ <h:outputText value="Selected patient" />
+ </f:facet>
+ <rich:column id="selectedID" headerClass="dataTableHeader"
+ label="id">
+ <f:facet name="header">
+ <h:outputText value="id" />
+ </f:facet>
+ <h:outputText value="#{selectedPatient.id}" />
+ </rich:column>
+ <%--
+ <rich:column id="selectedFirstName" headerClass="dataTableHeader"
+ label="First name">
+ <f:facet name="header">
+ <h:outputText value="First name" />
+ </f:facet>
+ <h:outputText value="#{selectedPatient.firstName}" />
+ </rich:column>
+ <rich:column id="selectedLastName" headerClass="dataTableHeader"
+ label="Last name">
+ <f:facet name="header">
+ <h:outputText value="Last name" />
+ </f:facet>
+ <h:outputText value="#{selectedPatient.lastName}" />
+ </rich:column>
+ --%>
+ </rich:dataTable>
+ <rich:messages>
+ </rich:messages>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,8 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="extendedDataTableStraightforwardSubviewID">
+<div>ExtDT straightforward</div>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/FileUpload/FileUpload.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/FileUpload/FileUpload.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/FileUpload/FileUpload.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,208 @@
+<%@ 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"%>
+<style>
+.addButton {
+ color: white;
+ background-color: red;
+}
+</style>
+<f:subview id="FileUploadSubviewID">
+ <rich:fileUpload id="fileUploadID" status="a4jStatusID"
+ allowFlash="#{fileUpload.allowFlash}"
+ immediate="#{fileUpload.immediate}"
+ ajaxSingle="#{fileUpload.ajaxSingle}" uploadData="#{fileUpload.data}"
+ acceptedTypes="#{fileUpload.acceptedTypes}"
+ disabled="#{fileUpload.disabled}" autoclear="#{fileUpload.autoclear}"
+ required="#{fileUpload.required}" requiredMessage="#{item.fileName}"
+ rendered="#{fileUpload.rendered}"
+ listHeight="#{fileUpload.listHeight}"
+ listWidth="#{fileUpload.listWidth}"
+ maxFilesQuantity="#{fileUpload.maxFilesQuantity}"
+ fileUploadListener="#{fileUpload.fileUploadListener}"
+ accesskey="y"
+ alt="alternative" binding="#{fileUpload.myFileUpload}"
+ addButtonClass="#{fileUpload.addButtonClass}"
+ addButtonClassDisabled="#{fileUpload.addButtonClassDisabled}"
+ cleanButtonClass="#{fileUpload.cleanButtonClass}"
+ cleanButtonClassDisabled="#{fileUpload.cleanButtonClassDisabled}"
+ fileEntryClass="#{fileUpload.fileEntryClass}"
+ fileEntryControlClass="#{fileUpload.fileEntryControlClass}"
+ fileEntryControlClassDisabled="#{fileUpload.fileEntryControlClassDisabled}"
+ fileEntryClassDisabled="#{fileUpload.fileEntryControlClassDisabled}"
+ uploadButtonClass="#{fileUpload.uploadButtonClass}"
+ uploadButtonClassDisabled="#{fileUpload.uploadButtonClassDisabled}"
+ uploadListClass="#{fileUpload.uploadListClass}"
+ uploadListClassDisabled="#{fileUpload.uploadListClassDisabled}"
+ immediateUpload="#{fileUpload.immediateUpload}" locale="ru"
+ noDuplicate="#{fileUpload.noDuplicate}" tabindex="222"
+ addControlLabel="addControl" clearAllControlLabel="clearAllControl"
+ cancelEntryControlLabel="cancelEntryControl"
+ clearControlLabel="clearControl" doneLabel="done"
+ progressLabel="progress" sizeErrorLabel="sizeError"
+ stopControlLabel="stopControl"
+ stopEntryControlLabel="stopEntryControl"
+ transferErrorLabel="transferError" uploadControlLabel="uploadControl"
+ onmousemove="#{event.onmousemove}"
+ onadd="#{event.onadd}"
+ onblur="#{event.onblur}"
+ onchange="#{event.onchange}"
+ onclear="#{event.onclear}"
+ onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}"
+ onerror="#{event.onerror}"
+ onfocus="#{event.onfocus}"
+ onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onmousemove}"
+ onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}"
+ onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}"
+ onselect="#{event.onselect}"
+ onsizerejected="#{event.onsizerejected}"
+ ontyperejected="#{event.ontyperejected}"
+ onupload="#{event.onupload}"
+ onuploadcanceled="#{event.onuploadcanceled}"
+ onuploadcomplete="#{event.onuploadcomplete}">
+ <f:facet name="label">
+ <h:outputText value="{_KB}KB from {KB}KB uploaded :[ {mm}:{ss} ]"></h:outputText>
+ </f:facet>
+ <f:facet name="header">
+ <h:outputText value="some text"></h:outputText>
+ </f:facet>
+ </rich:fileUpload>
+
+ <h:panelGrid columns="2">
+ <a4j:commandButton value="show file" reRender="fileUploadDataID"></a4j:commandButton>
+ <h:dataTable id="fileUploadDataID" value="#{fileUpload.data}"
+ var="item">
+ <h:column>
+ <h:outputText value="#{item.fileName}"></h:outputText>
+ </h:column>
+ </h:dataTable>
+ </h:panelGrid>
+<h:commandButton value="add test" action="#{fileUpload.addHtmlFileUpload}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="acceptedTypes"></h:outputText>
+ <h:inputText value="#{fileUpload.acceptedTypes}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="listHeight"></h:outputText>
+ <h:inputText value="#{fileUpload.listHeight}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="listWidth"></h:outputText>
+ <h:inputText value="#{fileUpload.listWidth}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="autoclear"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.autoclear}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="disabled"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.disabled}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.rendered}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="required"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.required}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="immediateUpload"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.immediateUpload}">
+ <a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage"></h:outputText>
+ <h:inputText value="#{fileUpload.requiredMessage}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="Align"></h:outputText>
+ <h:selectOneRadio value="#{fileUpload.align}">
+ <a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ </h:selectOneRadio>
+
+ <h:commandButton actionListener="#{fileUpload.checkBinding}"
+ value="Binding"></h:commandButton>
+ <h:outputText value="#{fileUpload.bindLabel}"></h:outputText>
+
+ <h:outputText value="noDuplicate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.noDuplicate}">
+ <a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="ajaxSingle"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.ajaxSingle}">
+ <a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="immediate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.immediate}">
+ <a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Uploaded data:"></h:outputText>
+ <h:outputText value="#{fileUpload.changedLabel}"></h:outputText>
+
+ <h:outputText value="allowFlash" />
+ <h:selectOneRadio value="#{fileUpload.allowFlash}">
+ <f:selectItem itemValue="true" itemLabel="true" />
+ <f:selectItem itemValue="false" itemLabel="false" />
+ <f:selectItem itemValue="auto" itemLabel="auto" />
+ <a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
+ </h:selectOneRadio>
+
+ <a4j:commandLink
+ onclick="$('formID:FileUploadSubviewID:fileUploadID').component.enable()"
+ value="enable()"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:FileUploadSubviewID:fileUploadID').component.disable()"
+ value="disable()"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:FileUploadSubviewID:fileUploadID').component.stop()"
+ value="stop()"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:FileUploadSubviewID:fileUploadID').component.clear()"
+ value="clear()"></a4j:commandLink>
+ <h:commandButton
+ onmousedown="return $('formID:FileUploadSubviewID:fileUploadID').component.beforeSubmit()"
+ value="Submit"></h:commandButton>
+ </h:panelGrid>
+ <br />
+ <f:verbatim>
+ <h:outputText value="Component controll" style="FONT-WEIGHT: bold;"></h:outputText>
+ <br />
+ <a href="#" id="enableID">enable()</a>
+ <br />
+ <a href="#" id="disableID">disable()</a>
+ <br />
+ <a href="#" id="stopID">stop()</a>
+ <br />
+ <a href="#" id="clearID">clear()</a>
+ </f:verbatim>
+
+ <rich:componentControl attachTo="enableID" event="onclick"
+ for="fileUploadID" operation="enable"></rich:componentControl>
+ <rich:componentControl attachTo="disableID" event="onclick"
+ for="fileUploadID" operation="disable"></rich:componentControl>
+ <rich:componentControl attachTo="stopID" event="onclick"
+ for="fileUploadID" operation="stop"></rich:componentControl>
+ <rich:componentControl attachTo="clearID" event="onclick"
+ for="fileUploadID" operation="clear"></rich:componentControl>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getFileName" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('fileUploadID').uploadData[0].fileName}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Gmap/Gmap.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Gmap/Gmap.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Gmap/Gmap.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,96 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="GmapSubviewID">
+ <rich:gmap id="gMapID"
+ binding="#{gmap.htmlGmap}"
+ locale="#{gmap.locale}"
+ enableInfoWindow="#{gmap.enableInfoWindow}"
+ mapType="#{gmap.mapType}" lng="#{gmap.lng}"
+ lat="#{gmap.lat}"
+ warningMessage="#{gmap.warningMessage}"
+ rendered="#{gmap.rendered}"
+ zoom="#{gmap.zoom}"
+ enableContinuousZoom="#{gmap.continuousZoom}"
+ enableDoubleClickZoom="#{gmap.doubleClickZoom}"
+ enableDragging="#{gmap.dragging}"
+ gmapVar="map"
+ oninit="#{event.oninit}"
+ showGLargeMapControl="#{gmap.showGLargeMapControl}"
+ showGMapTypeControl="#{gmap.showGMapTypeControl}"
+ showGScaleControl="#{gmap.showGScaleControl}"
+ onclick="#{event.onclick}" ondblclick="#{event.ondblclick}"
+ onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}"
+ gmapKey="ABQIAAAAxU6W9QEhFLMNdc3ATIu-VxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxRkrpOGzxH8_ud3inE9pG1845-FCA"
+ style="#{style.style}"
+ styleClass="#{style.styleClass}" />
+
+ <h:panelGroup><br />
+ <f:verbatim>
+ Controls:<br />
+ <a href="javascript:void(0);" onclick="map.hideControls();return false;">Remove</a>
+ <a href="javascript:void(0);" onclick="map.showControls();return false;">Show</a>
+ <br />
+ <br />
+ Type:<br />
+ <a href="javascript:void(0);" onclick="map.setMapType(G_NORMAL_MAP);return false;">Normal</a>
+ <a href="javascript:void(0);" onclick="map.setMapType(G_SATELLITE_MAP);return false;">Satellite</a>
+ <a href="javascript:void(0);" onclick="map.setMapType(G_HYBRID_MAP);return false;">Hybrid</a>
+ <br />
+ <br />
+ Zoom:<br />
+ <a href="javascript:void(0);" onclick="map.zoomIn();return false;">In</a>
+ <a href="javascript:void(0);" onclick="map.zoomOut();return false;">Out</a>
+ <br />
+ <br />
+ <a href="javascript:void(0);" onclick="showExadel();return false;">Show Exadel Office</a>
+ <br />
+ <a href="javascript:void(0);" onclick="showExadelInMinsk();return false;">Show Exadel in Belarus</a>
+ </f:verbatim>
+ </h:panelGroup>
+
+ <a4j:outputPanel>
+ <script>
+
+ function createMarker(point,html) {
+ var marker = new GMarker(point);
+ GEvent.addListener(marker, "click", function() {
+ marker.openInfoWindowHtml(html);
+ });
+ return marker;
+ }
+
+ function showExadelInMinsk() {
+ var point = new GLatLng(53.92316,27.510737, 53.92316,27.510737);
+ map.setCenter(point);
+ var marker = createMarker(point,'Go to the <a target="_blank" href="http://www.exadel.com">Exadle Web Site</a>');
+ map.setZoom(16);
+ map.addOverlay(marker);
+ }
+
+ function showExadel() {
+ var point = new GLatLng(37.9721046, -122.0424842834);
+ map.setCenter(point);
+ var marker = createMarker(point,'Go to the <a target="_blank" href="http://www.exadel.com">Exadle Web Site</a>');
+ map.setZoom(16);
+ map.addOverlay(marker);
+ }
+
+ function setCenter(lag, lat, zoom) {
+ map.setCenter(new GLatLng(lag, lat), zoom);
+ var ulp = new GPoint(lag,lat);
+ var ul = G_NORMAL_MAP.getProjection().fromPixelToLatLng(ulp,zoom);
+ }
+ </script>
+ </a4j:outputPanel>
+
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Gmap/GmapDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Gmap/GmapDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Gmap/GmapDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Gmap/GmapProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Gmap/GmapProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Gmap/GmapProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,90 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="GmapPropertySubviewID">
+<h:commandButton value="add test" action="#{gmap.addHtmlGmap}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="mapType"></h:outputText>
+ <h:selectOneMenu value="#{gmap.mapType}" onchange="submit();">
+ <f:selectItem itemLabel="G_NORMAL_MAP" itemValue="G_NORMAL_MAP" />
+ <f:selectItem itemLabel="G_SATELLITE_MAP" itemValue="G_SATELLITE_MAP" />
+ <f:selectItem itemLabel="G_HYBRID_MAP" itemValue="G_HYBRID_MAP" />
+ </h:selectOneMenu>
+
+ <h:outputText value="enableInfoWindow:"></h:outputText>
+ <h:selectOneRadio value="#{gmap.enableInfoWindow}"
+ onchange="submit();">
+ <f:selectItem itemLabel="on" itemValue="true" />
+ <f:selectItem itemLabel="off" itemValue="false" />
+ </h:selectOneRadio>
+
+ <h:outputText value="showGLargeMapControl:"></h:outputText>
+ <h:selectOneRadio value="#{gmap.showGLargeMapControl}"
+ onchange="submit();">
+ <f:selectItem itemLabel="on" itemValue="true" />
+ <f:selectItem itemLabel="off" itemValue="false" />
+ </h:selectOneRadio>
+
+
+ <h:outputText value="showGMapTypeControl:"></h:outputText>
+ <h:selectOneRadio value="#{gmap.showGMapTypeControl}"
+ onchange="submit();">
+ <f:selectItem itemLabel="on" itemValue="true" />
+ <f:selectItem itemLabel="off" itemValue="false" />
+ </h:selectOneRadio>
+
+
+ <h:outputText value="showGScaleControl:"></h:outputText>
+ <h:selectOneRadio value="#{gmap.showGScaleControl}"
+ onchange="submit();">
+ <f:selectItem itemLabel="on" itemValue="true" />
+ <f:selectItem itemLabel="off" itemValue="false" />
+ </h:selectOneRadio>
+
+ <h:outputText value="warningMessage:"></h:outputText>
+ <h:inputText value="#{gmap.warningMessage}" onchange="submit()"></h:inputText>
+
+ <h:outputText value="lng:"></h:outputText>
+ <h:inputText value="#{gmap.lng}" onchange="submit()"></h:inputText>
+
+ <h:outputText value="lat:"></h:outputText>
+ <h:inputText value="#{gmap.lat}" onchange="submit()"></h:inputText>
+
+ <h:outputText value="locale:"></h:outputText>
+ <h:inputText value="#{gmap.locale}" onchange="submit()"></h:inputText>
+
+ <h:outputText value="Dragging:" />
+ <h:selectOneRadio value="#{gmap.dragging}" onchange="submit();">
+ <f:selectItem itemLabel="on" itemValue="true" />
+ <f:selectItem itemLabel="off" itemValue="false" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Continuous Zoom:" />
+ <h:selectOneRadio value="#{gmap.continuousZoom}" onchange="submit();">
+ <f:selectItem itemLabel="on" itemValue="true" />
+ <f:selectItem itemLabel="off" itemValue="false" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Double Click Zoom:" />
+ <h:selectOneRadio value="#{gmap.doubleClickZoom}" onchange="submit();">
+ <f:selectItem itemLabel="on" itemValue="true" />
+ <f:selectItem itemLabel="off" itemValue="false" />
+ </h:selectOneRadio>
+
+ <h:outputText value="rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{gmap.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRendererType" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('gMapID').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/HotKey/HotKey.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/HotKey/HotKey.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/HotKey/HotKey.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,107 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="hotKeySubviewID">
+ <rich:calendar id="hotKeyCalendarID" popup="false" />
+
+
+ <h:commandButton id="commandButtonID" onclick="return false;" value="test select"></h:commandButton>
+ <rich:hotKey id="hotKeyID" binding="#{hotKey.htmlHotKey}"
+ disableInInput="#{hotKey.disableInInput}" handler="#{hotKey.handler}"
+ key="#{hotKey.key}" rendered="#{hotKey.rendered}"
+ selector="#{hotKey.selector}" timing="#{hotKey.timing}" type="#{hotKey.type}" disableInInputTypes="#{hotKey.disableInInputTypes}"/>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="type"></h:outputText>
+ <h:selectOneMenu value="#{hotKey.type}">
+ <f:selectItem itemLabel="onkeydown" itemValue="onkeydown" />
+ <f:selectItem itemLabel="onkeypress" itemValue="onkeypress" />
+ <f:selectItem itemLabel="onkeyup" itemValue="onkeyup" />
+ <a4j:support reRender="hotKeyID" event="onchange"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="key"></h:outputText>
+ <h:inputText value="#{hotKey.key}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="timing"></h:outputText>
+ <h:selectOneMenu value="#{hotKey.timing}" onchange="submit();">
+ <f:selectItem itemLabel="onload" itemValue="onload" />
+ <f:selectItem itemLabel="immediate" itemValue="immediate" />
+ </h:selectOneMenu>
+
+ <h:outputText value="selector"></h:outputText>
+ <h:selectOneMenu value="#{hotKey.selector}">
+ <f:selectItem itemLabel="" itemValue="" />
+ <f:selectItem itemLabel="Button" itemValue="#commandButtonID" />
+ <a4j:support reRender="hotKeyID" event="onchange"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="handler"></h:outputText>
+ <h:selectOneMenu value="#{hotKey.handler}" onchange="submit();">
+ <f:selectItem
+ itemValue="$('formID:hotKeySubviewID:hotKeyCalendarID').component.nextYear();"
+ itemLabel="nextYear(Calendar)" />
+ <f:selectItem itemValue="alert('work')" itemLabel="alert('work')" />
+ </h:selectOneMenu>
+
+ <h:outputText value="disableInInput"></h:outputText>
+ <h:selectBooleanCheckbox value="#{hotKey.disableInInput}">
+ <a4j:support reRender="hotKeyID" event="onchange"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="disableInInput"></h:outputText>
+ <h:selectOneRadio value="#{hotKey.disableInInputTypes}" >
+ <f:selectItem itemValue="all" itemLabel="all"/>
+ <f:selectItem itemValue="buttons" itemLabel="buttons"/>
+ <f:selectItem itemValue="texts" itemLabel="texts"/>
+ <a4j:support reRender="hotKeyID" event="onchange"></a4j:support>
+ </h:selectOneRadio>
+
+ <%--<h:outputText value="checkParent"></h:outputText>
+ <h:selectBooleanCheckbox value="#{hotKey.checkParent}">
+ <a4j:support reRender="hotKeyID" event="onchange"></a4j:support>
+ </h:selectBooleanCheckbox>--%>
+
+ <h:outputText value="rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{hotKey.rendered}">
+ <a4j:support reRender="hotKeyID" event="onchange"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="test binding:"></h:outputText>
+ <h:outputText value="#{hotKey.bindingInfo}"></h:outputText>
+
+ <h:commandButton onclick="#{rich:component('hotKeyID')}.enable(); return false;" value="enable"></h:commandButton>
+ <h:commandButton onclick="#{rich:component('hotKeyID')}.disable(); return false;" value="disable"></h:commandButton>
+ </h:panelGrid>
+ <f:verbatim><hr /></f:verbatim>
+
+ <rich:hotKey id="jsID" timing="onregistercall" />
+
+ <h:panelGrid columns="2">
+ <h:commandButton id="jsAddCCID" value="add hotkey: alt+z" onclick="return false;"></h:commandButton>
+ <h:commandButton id="jsRemoveCCID" value="remove hotkey: alt+z" onclick="return false;"></h:commandButton>
+
+ <rich:componentControl disableDefault="true" attachTo="jsAddCCID" for="jsID" event="onclick" operation="add">
+ <f:param name="key" value="alt+z" />
+ <f:param name="handler" value="alert('alt+z')" />
+ </rich:componentControl>
+
+ <rich:componentControl disableDefault="true" attachTo="jsRemoveCCID" for="jsID" event="onclick" operation="remove">
+ <f:param name="key" value="alt+z" />
+ </rich:componentControl>
+ </h:panelGrid>
+ <f:verbatim><hr /></f:verbatim>
+ <h:commandButton action="#{hotKey.add}" value="add test" />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRendererType" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('hotKeyID').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/InplaceInput/InplaceInput.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/InplaceInput/InplaceInput.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/InplaceInput/InplaceInput.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,76 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<script type="text/javascript">
+<!--
+function onClick() {
+
+}
+//-->
+</script>
+<f:subview id="inplaceInputSubviewID">
+ <h:inputText value="For verify tabbing tabindex=3" size="25" tabindex="3"></h:inputText>
+ <f:verbatim><br /><br /></f:verbatim>
+ This is because such an error can easily be made at programming level, <br />
+ and while invisible for the user who does not understand or cannot <br />
+ acquire the source code, many of those
+ <rich:inplaceInput
+ id = "inplaceInputId"
+ valueChangeListener="#{inplaceInput.valueChangeListener}"
+ converter="inplaceInputConverter"
+ converterMessage="Can't convert"
+ inputWidth="#{inplaceInput.inputWidth}"
+ maxInputWidth="#{inplaceInput.maxInputWidth}"
+ minInputWidth="#{inplaceInput.minInputWidth}"
+ required="#{inplaceInput.required}"
+ requiredMessage="#{inplaceInput.requiredMessage}"
+ tabindex="#{inplaceInput.tabindex}"
+ editEvent="#{inplaceInput.editEvent}"
+ defaultLabel="#{inplaceInput.defaultLabel}"
+ controlsVerticalPosition="#{inplaceInput.controlsVerticalPosition}"
+ controlsHorizontalPosition="#{inplaceInput.controlsHorizontalPosition}"
+ value="#{inplaceInput.value}"
+ selectOnEdit="#{inplaceInput.selectOnEdit}"
+ showControls="#{inplaceInput.showControls}"
+ rendered="#{inplaceInput.rendered}"
+ immediate="#{inplaceInput.immediate}"
+ layout = "#{inplaceInput.layout}"
+ onblur="#{event.onblur}"
+ onchange="#{event.onchange}"
+ onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}"
+ oneditactivated="#{event.oneditactivated}"
+ oneditactivation="#{event.oneditactivation}"
+ onfocus="#{event.onfocus}"
+ oninputclick="#{event.oninputclick}"
+ oninputdblclick="#{event.oninputdblclick}"
+ oninputkeydown="#{event.oninputkeydown}"
+ oninputkeypress="#{event.oninputkeypress}"
+ oninputkeyup="#{event.oninputkeyup}"
+ oninputmousedown="#{event.oninputmousedown}"
+ oninputmousemove="#{event.oninputmousemove}"
+ oninputmouseout="#{event.oninputmouseout}"
+ oninputmouseover="#{event.oninputmouseover}"
+ oninputmouseup="#{event.oninputmouseup}"
+ onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}"
+ onselect="#{event.onselect}"
+ onviewactivated="#{event.onviewactivated}"
+ onviewactivation="#{event.onviewactivation}"
+ binding="#{inplaceInput.htmlInplaceInput}" >
+ </rich:inplaceInput>
+ are easy to exploit.
+
+ <h:panelGrid columns="2">
+ <a4j:commandButton value="reRender" reRender="inplaceInputValueCLID, inplaceInputId"></a4j:commandButton>
+ <h:outputText id="inplaceInputValueCLID"
+ value="#{inplaceInput.valueCL}"></h:outputText>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,127 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="inplaceInputPropertySubviewID">
+<h:commandButton value="add test" action="#{inplaceInput.addHtmlInplaceInput}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="value"></h:outputText>
+ <h:outputText id="inplaceInputValueID" value="#{inplaceInput.value}">
+ </h:outputText>
+
+ <h:outputText value="defaultLabel"></h:outputText>
+ <h:inputText value="#{inplaceInput.defaultLabel}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="inputWidth"></h:outputText>
+ <h:inputText value="#{inplaceInput.inputWidth}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="maxInputWidth"></h:outputText>
+ <h:inputText value="#{inplaceInput.maxInputWidth}"
+ onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="minInputWidth"></h:outputText>
+ <h:inputText value="#{inplaceInput.minInputWidth}"
+ onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="tabindex"></h:outputText>
+ <h:inputText value="#{inplaceInput.tabindex}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="editEvent"></h:outputText>
+ <h:inputText value="#{inplaceInput.editEvent}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="controlsVerticalPosition"></h:outputText>
+ <h:selectOneRadio value="#{inplaceInput.controlsVerticalPosition}"
+ onchange="submit();">
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ </h:selectOneRadio>
+
+ <h:outputText value="controlsHorizontalPosition"></h:outputText>
+ <h:selectOneRadio value="#{inplaceInput.controlsHorizontalPosition}"
+ onchange="submit();">
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ </h:selectOneRadio>
+
+ <h:outputText value="selectOnEdit"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceInput.selectOnEdit}"
+ onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="showControls"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceInput.showControls}"
+ onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceInput.rendered}"
+ onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="immediate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceInput.immediate}"
+ onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="required"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceInput.required}"
+ onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage"></h:outputText>
+ <h:inputText value="#{inplaceInput.requiredMessage}"
+ onchange="submit();">
+ </h:inputText>
+
+ <h:commandButton actionListener="#{inplaceInput.checkBinding}"
+ value="Binding"></h:commandButton>
+ <h:outputText value="#{inplaceInput.bindLabel}"></h:outputText>
+
+ <h:outputText value="layout"></h:outputText>
+ <h:selectOneRadio value="#{inplaceInput.layout}" onchange="submit();">
+ <f:selectItem itemLabel="inline" itemValue="inline" />
+ <f:selectItem itemLabel="block" itemValue="block" />
+ </h:selectOneRadio>
+
+ </h:panelGrid>
+
+ <a4j:commandLink
+ onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.edit()"
+ value="edit"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.save()"
+ value="save"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.cancel()"
+ value="cancel"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="alert($('formID:inplaceInputSubviewID:inplaceInputId').component.getValue())"
+ value="getValue"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.setValue('setValue')"
+ value="setValuel"></a4j:commandLink>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('inplaceInputId').value}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,79 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="inplaceSelectSubviewID">
+
+<h:inputText value="For verify tabbing tabindex=3" size="25" tabindex="3"></h:inputText> <br/>
+
+This is because such an error can easily be made at programming level, <br />
+and while invisible for the user who does not understand or cannot <br />
+acquire the source code, many of those
+<rich:inplaceSelect id="inplaceSelectID"
+ tabindex="#{inplaceSelect.tabindex}"
+ editEvent="#{inplaceSelect.editEvent}"
+ maxSelectWidth="#{inplaceSelect.maxSelectWidth}"
+ minSelectWidth="#{inplaceSelect.minSelectWidth}"
+ selectWidth="#{inplaceSelect.selectWidth}"
+ defaultLabel="#{inplaceSelect.defaultLabel}"
+ controlsVerticalPosition="#{inplaceSelect.controlsVerticalPosition}"
+ controlsHorizontalPosition="#{inplaceSelect.controlsHorizontalPosition}"
+ listWidth="#{inplaceSelect.listWidth}"
+ listHeight="#{inplaceSelect.listHeight}"
+ showControls="#{inplaceSelect.showControls}"
+ openOnEdit="#{inplaceSelect.openOnEdit}"
+ rendered="#{inplaceSelect.rendered}"
+ immediate="#{inplaceSelect.immediate}"
+ binding="#{inplaceSelect.myInplaceSelect}"
+ required="#{inplaceSelect.required}"
+ requiredMessage="#{inplaceSelect.requiredMessage}"
+ valueChangeListener="#{inplaceSelect.valueChangeListener}"
+ onblur="#{event.onblur}"
+ onchange="#{event.onchange}"
+ onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}"
+ oneditactivated="#{event.oneditactivated}"
+ oneditactivation="#{event.oneditactivation}"
+ onfocus="#{event.onfocus}"
+ oninputblur="#{event.oninputblur}"
+ oninputclick="#{event.oninputclick}"
+ oninputdblclick="#{event.oninputdblclick}"
+ oninputfocus="#{event.oninputfocus}"
+ oninputkeydown="#{event.oninputkeydown}"
+ oninputkeypress="#{event.oninputkeypress}"
+ oninputkeyup="#{event.oninputkeyup}"
+ oninputmousedown="#{event.oninputmousedown}"
+ oninputmousemove="#{event.oninputmousemove}"
+ oninputmouseout="#{event.oninputmouseout}"
+ oninputmouseover="#{event.oninputmouseover}"
+ oninputmouseup="#{event.oninputmouseup}"
+ onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}"
+ onselect="#{event.onselect}"
+ onviewactivated="#{event.onviewactivated}"
+ onviewactivation="#{event.onviewactivation}"
+ layout="#{inplaceSelect.layout}"
+ value="#{inplaceSelect.value}" >
+
+ <f:selectItem itemLabel="errors" itemValue="errors" />
+ <f:selectItem itemLabel="fatals" itemValue="fatals" />
+ <f:selectItem itemLabel="infos" itemValue="infos" />
+ <f:selectItem itemLabel="passeds" itemValue="passeds" />
+ <f:selectItem itemLabel="warns" itemValue="warns" />
+ </rich:inplaceSelect>
+ are easy to exploit.
+
+ <h:panelGrid columns="2">
+ <a4j:commandButton value="refresh" reRender="inplaceSelectValueCLID, inplaceSelectID"></a4j:commandButton>
+ <h:outputText id="inplaceSelectValueCLID"
+ value="#{inplaceSelect.valueCL}"></h:outputText>
+ </h:panelGrid>
+
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,153 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="inplaceSelectPropertySubviewID">
+<h:commandButton value="add test" action="#{inplaceSelect.addHtmlInplaceSelect}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="value"></h:outputText>
+ <h:outputText value="#{inplaceSelect.value}"></h:outputText>
+
+ <h:outputText value="defaultLabel"></h:outputText>
+ <h:inputText value="#{inplaceSelect.defaultLabel}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="editEvent"></h:outputText>
+ <h:inputText value="#{inplaceSelect.editEvent}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="selectWidth"></h:outputText>
+ <h:inputText value="#{inplaceSelect.selectWidth}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="maxSelectWidth"></h:outputText>
+ <h:inputText value="#{inplaceSelect.maxSelectWidth}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="minSelectWidth"></h:outputText>
+ <h:inputText value="#{inplaceSelect.minSelectWidth}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="listWidth"></h:outputText>
+ <h:inputText value="#{inplaceSelect.listWidth}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="listHeight"></h:outputText>
+ <h:inputText value="#{inplaceSelect.listHeight}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="controlsVerticalPosition"></h:outputText>
+ <h:selectOneRadio value="#{inplaceSelect.controlsVerticalPosition}"
+ onchange="submit();">
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+
+ </h:selectOneRadio>
+
+ <h:outputText value="controlsHorizontalPosition"></h:outputText>
+ <h:selectOneRadio value="#{inplaceSelect.controlsHorizontalPosition}"
+ onchange="submit();">
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ </h:selectOneRadio>
+ <h:outputText value="tabindex"></h:outputText>
+ <h:inputText value="#{inplaceSelect.tabindex}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="showControls"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceSelect.showControls}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="applyFromControlsOnly"></h:outputText>
+ <h:selectBooleanCheckbox
+ value="#{inplaceSelect.applyFromControlsOnly}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="openOnEdit"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceSelect.openOnEdit}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceSelect.rendered}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:commandButton actionListener="#{inplaceSelect.checkBinding}"
+ value="Binding"></h:commandButton>
+ <h:outputText value="#{inplaceSelect.bindLabel}" />
+
+ <h:outputText value="immediate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceSelect.immediate}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="required"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceSelect.required}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage"></h:outputText>
+ <h:inputText value="#{inplaceSelect.requiredMessage}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="layout"></h:outputText>
+ <h:inputText value="#{inplaceSelect.layout}" onchange="submit();"></h:inputText>
+
+ </h:panelGrid>
+
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.edit()"
+ value="edit"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.save()"
+ value="save"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.cancel()"
+ value="cancel"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="alert ($('formID:inplaceSelectSubviewID:inplaceSelectID').component.getValue())"
+ value="getValue"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.setValue('passeds','passeds')"
+ value="setValue"></a4j:commandLink>
+
+ <br />
+ <f:verbatim>
+ <h:outputText value="Component Control test"
+ style="FONT-WEIGHT: bold;"></h:outputText>
+ <br />
+ <a href="#" id="editID">edit()</a>
+ <br />
+ <a href="#" id="saveID">save()</a>
+ <br />
+ <a href="#" id="cancelID">cancel()</a>
+ <br />
+ <a href="#" id="getValueID">getValue()</a>
+ <br />
+ <a href="#" id="setValueID">setValue('passeds','passeds')</a>
+ </f:verbatim>
+
+ <rich:componentControl attachTo="editID" event="onclick"
+ for="inplaceSelectID" operation="edit"></rich:componentControl>
+ <rich:componentControl attachTo="saveID" event="onclick"
+ for="inplaceSelectID" operation="save"></rich:componentControl>
+ <rich:componentControl attachTo="cancelID" event="onclick"
+ for="inplaceSelectID" operation="cancel"></rich:componentControl>
+ <rich:componentControl attachTo="getValueID" event="onclick"
+ for="inplaceSelectID" operation="getValue" name="alert">
+ </rich:componentControl>
+ <rich:componentControl attachTo="setValueID" event="onclick"
+ for="inplaceSelectID" operation="setValue">
+ <f:param name="value" value="passeds"/>
+ <f:param name="label" value="passeds"/>
+ </rich:componentControl>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('inplaceSelectID').value}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,63 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="inputNumberSliderSubviewID">
+ <h:panelGrid columns="1">
+ <rich:inputNumberSlider binding="#{inputNumberSlider.htmlInputNumberSlider}" id="SliderId" barStyle="#{style.barStyle}" handleSelectedClass="#{style.handleSelectedClass}" inputStyle="#{style.inputStyle}" tipStyle="#{style.tipStyle}" style="#{style.style}" immediate="#{inputNumberSlider.immediate}"
+ inputPosition="#{inputNumberSlider.inputPosition}" showToolTip="#{inputNumberSlider.showToolTip}"
+ tabindex="#{inputNumberSlider.tabindex}" value="#{inputNumberSlider.value}" valueChangeListener="#{inputNumberSlider.valueChangeListener}"
+ required="#{inputNumberSlider.rendered}" requiredMessage="#{inputNumberSlider.requiredMessage}"
+ disabled="#{inputNumberSlider.disabled}" enableManualInput="#{inputNumberSlider.enableManualInput}"
+ inputSize="#{inputNumberSlider.inputSize}" maxValue="#{inputNumberSlider.maxValue}" minValue="#{inputNumberSlider.minValue}"
+ rendered="#{inputNumberSlider.rendered}" showBoundaryValues="#{inputNumberSlider.showBoundaryValues}"
+ step="#{inputNumberSlider.step}" showInput="#{inputNumberSlider.showInput}" width="#{inputNumberSlider.width}"
+ barClass="#{style.barClass}" tipClass="#{style.barClass}" inputClass="#{style.inputClass}"
+ handleClass="#{style.handleStyle}" styleClass="#{style.tipStyle}"
+ maxlength="#{inputNumberSlider.maxlength}"
+ onblur="#{event.onblur}"
+ onchange="#{event.onchange}"
+ onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}"
+ onerror="#{event.onerror}"
+ onfocus="#{event.onfocus}"
+ onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}"
+ onselect="#{event.onselect}"
+ onslide="#{event.onslide}"
+ oninputclick="#{event.oninputclick}"
+ oninputdblclick="#{event.oninputdblclick}"
+ oninputkeydown="#{event.oninputkeydown}"
+ oninputkeypress="#{event.oninputkeypress}"
+ oninputkeyup="#{event.oninputkeyup}"
+ oninputmousedown="#{event.oninputmousedown}"
+ oninputmousemove="#{event.oninputmousemove}"
+ oninputmouseout="#{event.oninputmouseout}"
+ oninputmouseover="#{event.oninputmouseover}"
+ oninputmouseup="#{event.oninputmouseup}">
+ </rich:inputNumberSlider>
+ <h:panelGroup>
+ <a4j:commandButton value="valueChangeListener (show)" reRender="valueCLID" />
+ <h:outputText id="valueCLID" value=" #{inputNumberSlider.valueChangeListener}" />
+ </h:panelGroup>
+ </h:panelGrid>
+ <rich:spacer height="20px"></rich:spacer>
+
+ <h:form>
+ <rich:tabPanel switchType="client">
+ <rich:tab label="First">
+ Here is tab #1
+ <rich:inputNumberSlider value="10" />
+ </rich:tab>
+ <rich:tab label="Second">
+ Here is tab #2
+ <rich:inputNumberSlider value="20" />
+ </rich:tab>
+ </rich:tabPanel>
+ <h:commandButton action="submit" value="Submit" />
+ </h:form>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSliderDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSliderDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSliderDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
Added: trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,115 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="inputNumberSliderPropertySubviewID">
+ <h:commandButton value="add test" action="#{inputNumberSlider.addHtmlInputNumberSlider}"></h:commandButton>
+
+ <h:panelGrid columns="2" cellspacing="10px" border="1">
+ <h:outputText value="inputPosition"></h:outputText>
+ <h:selectOneRadio value="#{inputNumberSlider.inputPosition}">
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Width:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.width}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Max Value:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.maxValue}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Min Value:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.minValue}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Input Size:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.inputSize}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Input MaxLength:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.maxlength}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Step:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.step}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="tabindex" />
+ <h:inputText value="#{inputNumberSlider.tabindex}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Disabled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.disabled}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.rendered}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Manual Input:"></h:outputText>
+ <h:selectBooleanCheckbox
+ value="#{inputNumberSlider.enableManualInput}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Boundary Values:"></h:outputText>
+ <h:selectBooleanCheckbox
+ value="#{inputNumberSlider.showBoundaryValues}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Show Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showInput}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="showToolTip" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showToolTip}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="required" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.required}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage" />
+ <h:inputText value="#{inputNumberSlider.requiredMessage}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="immediate" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.immediate}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Switch Styles" />
+ <a4j:commandButton id="slBtn" value="#{inputNumberSlider.btnLabel}"
+ action="#{inputNumberSlider.doStyles}" reRender="SliderId,slBtn">
+ </a4j:commandButton>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('SliderId').value}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSlider/InputNumberSliderStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="inputNumberSliderStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest1}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1INSlider}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest2}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2INSlider}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest3}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3INSlider}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest4}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4INSlider}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest5}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5INSlider}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinner.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinner.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinner.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,26 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="inputNumberSpinnerSubviewID">
+ <h:messages></h:messages>
+
+ <rich:inputNumberSpinner id="SpinnerID" binding="#{inputNumberSpinner.htmlInputNumberSpinner}" tabindex="#{inputNumberSpinner.tabindex}" cycled="#{inputNumberSpinner.cycled}"
+ disabled="#{inputNumberSpinner.disabled}" maxValue="#{inputNumberSpinner.max}" minValue="#{inputNumberSpinner.min}"
+ step="#{inputNumberSpinner.step}" rendered="#{inputNumberSpinner.rendered}" value="#{inputNumberSpinner.value}"
+ inputClass="#{style.inputClass}" styleClass="#{style.styleClass}" inputStyle="#{style.inputStyle}" style="#{style.style}"
+ enableManualInput="#{inputNumberSpinner.manualInput}" inputSize="#{inputNumberSpinner.inputSize}"
+ oninputmousedown="#{event.onmousedown}" onblur="#{event.onblur}"
+ onchange="#{event.onchange}" onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}" onerror="#{event.onerror}"
+ onfocus="#{event.onfocus}" onselect="#{event.onselect}"
+ oninputkeydown="#{event.onkeydown}" oninputkeypress="#{event.onkeypress}"
+ oninputkeyup="#{event.onkeyup}" oninputmousemove="#{event.onmousemove}"
+ oninputmouseout="#{event.onmouseout}" oninputmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}" ondownclick="#{event.ondownclick}"
+ onupclick="#{event.onupclick}"
+ accesskey="y">
+ </rich:inputNumberSpinner>
+ <rich:spacer height="20px"></rich:spacer>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
Added: trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,63 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="iNSpinnerPropertySubviewID">
+<h:commandButton value="add test" action="#{inputNumberSpinner.addHtmlInputNumberSpinner}"></h:commandButton>
+ <h:panelGrid columns="2" cellpadding="10px" border="1">
+ <h:outputText value="Max: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.max}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Min: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.min}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Step: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.step}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Size: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.inputSize}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Cycled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.cycled}">
+ <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Manual Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.manualInput}">
+ <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disabled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.disabled}">
+ <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.rendered}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{inputNumberSpinner.doStyles}"
+ value="#{inputNumberSpinner.btnLabel}" />
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('SpinnerID').value}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="iNSpinnerStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest1}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1INSpinner}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest2}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2INSpinner}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest3}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3INSpinner}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest4}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4INSpinner}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{inputNumberSpinner.bTest5}" value="run" reRender="SpinnerID,iNSpinnerPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5INSpinner}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Insert/Insert.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Insert/Insert.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Insert/Insert.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,13 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="insertSubviewID">
+ <h:messages />
+
+ <rich:panel id="panelID" header="Highlight: #{insert.highlight}; File: #{insert.src}">
+ <rich:insert id="insertID" binding="#{insert.htmlInsert}" highlight="#{insert.highlight}"
+ rendered="#{insert.rendered}" src="#{insert.src}"></rich:insert>
+ </rich:panel>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Insert/InsertProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Insert/InsertProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Insert/InsertProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,40 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="InsertPropertySubviewID">
+ <h:commandButton value="add test" action="#{insert.addHtmlInsert}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="Highlight:" />
+ <h:selectOneMenu value="#{insert.highlight}">
+ <f:selectItem itemValue="HTML" itemLabel="HTML" />
+ <f:selectItem itemValue="GROOVY" itemLabel="GROOVY" />
+ <f:selectItem itemValue="JAVA" itemLabel="JAVA" />
+ <f:selectItem itemValue="BEANSHELL" itemLabel="BEANSHELL" />
+ <f:selectItem itemValue="BSH" itemLabel="BSH" />
+ <f:selectItem itemValue="XML" itemLabel="XML" />
+ <f:selectItem itemValue="XHTML" itemLabel="XHTML" />
+ <f:selectItem itemValue="LZX" itemLabel="LZX" />
+ <f:selectItem itemValue="CPP" itemLabel="CPP" />
+ <f:selectItem itemValue="CXX" itemLabel="CXX" />
+ <a4j:support event="onclick" reRender="panelID,insertID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Select file:" />
+ <h:selectOneMenu value="#{insert.src}">
+ <f:selectItem itemValue="/Insert/src/test.html" itemLabel="HTML" />
+ <f:selectItem itemValue="/Insert/src/test.java" itemLabel="JAVA" />
+ <f:selectItem itemValue="/Insert/src/test.groovy" itemLabel="GROOVY" />
+ <f:selectItem itemValue="/Insert/src/test.bsh" itemLabel="BEANSHELL,BSH" />
+ <f:selectItem itemValue="/Insert/src/test.xml" itemLabel="XML" />
+ <f:selectItem itemValue="/Insert/Insert.xhtml" itemLabel="XHTML" />
+ <f:selectItem itemValue="/Insert/src/test.lzx" itemLabel="LZX" />
+ <f:selectItem itemValue="/Insert/src/test.cpp" itemLabel="CPP,CXX" />
+ <a4j:support event="onclick" reRender="panelID,insertID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Rendered" />
+ <h:selectBooleanCheckbox value="#{insert.rendered}" onchange="submit();"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.bsh
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.bsh (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.bsh 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,76 @@
+import javax.swing.*;
+import javax.swing.event.*;
+import javax.swing.text.*;
+import java.awt.event.*;
+import java.awt.*;
+
+JFrame browser( startingUrl ) {
+ invoke( method, args ) {}
+
+ windowClosing(WindowEvent we) {
+ we.getWindow().setVisible(false);
+ }
+
+ setPage( url ) {
+ try {
+ pane.setPage( url );
+ } catch(Exception e) {
+ statusBar.setText("Error opening page: "+url);
+ }
+ }
+
+ hyperlinkUpdate( HyperlinkEvent he ) {
+ type = he.getEventType();
+ if (type == HyperlinkEvent.EventType.ENTERED) {
+ pane.setCursor(
+ Cursor.getPredefinedCursor( Cursor.HAND_CURSOR) );
+ statusBar.setText(he.getURL().toString());
+ } else
+ if (type == HyperlinkEvent.EventType.EXITED) {
+ pane.setCursor( Cursor.getDefaultCursor() );
+ statusBar.setText(" ");
+ } else {
+ setPage( he.getURL() );
+ if (urlField != null)
+ urlField.setText(he.getURL().toString());
+ }
+ }
+
+ frame = new JFrame("Browser");
+ frame.setSize(400,300);
+ frame.addWindowListener( this );
+
+ urlPanel = new JPanel();
+ urlPanel.setLayout(new BorderLayout());
+ urlField = new JTextField(startingUrl);
+ urlPanel.add(new JLabel("Site: "), BorderLayout.WEST);
+ urlPanel.add(urlField, BorderLayout.CENTER);
+
+ statusBar = new JLabel(" ");
+ pane = new JEditorPane();
+ pane.setEditable(false);
+ setPage( startingUrl );
+ jsp = new JScrollPane(pane);
+
+ frame.getContentPane().add(jsp, BorderLayout.CENTER);
+ frame.getContentPane().add(urlPanel, BorderLayout.SOUTH);
+ frame.getContentPane().add(statusBar, BorderLayout.NORTH);
+
+ // This is the equivalent of an inner class in bsh.
+ urlTextHandler() {
+ actionPerformed(ActionEvent ae) {
+ setPage( ae.getActionCommand() );
+ }
+ return this;
+ }
+
+ urlField.addActionListener( urlTextHandler() );
+ pane.addHyperlinkListener( (HyperlinkListener)this );
+
+ return frame;
+}
+
+browser = browser("http://java.sun.com/");
+browser.show();
+
+
Added: trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.cpp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.cpp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.cpp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,119 @@
+extern LArc RiflemanTBL[];
+class CRifleman : public LFsaAppl
+{
+public:
+ int GetNumber();
+ void SetNumber(int n);
+ void SetLink(CRifleman *pFsaLeft,
+ CRifleman
+*pFsaRigtht);
+ CRifleman *pFsaRightMan;
+ CRifleman *pFsaLeftMan;
+ CRifleman();
+ CRifleman(int n, CWnd* pW, LArc
+ *pTBL=RiflemanTBL);
+ virtual ~CRifleman();
+ bool operator==(const CRifleman
+ &var) const;
+ bool operator<(const CRifleman
+ &var) const;
+ bool operator!=(const CRifleman
+ &var) const;
+ bool operator>(const CRifleman
+ &var) const;
+protected:
+ CWnd* pParentWnd;
+ CFireApp *pApp; // ��������� �� ������
+ // ��������� ������ ���������
+ int x1(); // Is fire?
+ int x2(); // Is ready?
+ int x3(); // Number is equal to zero? Shot!
+ int x4(); //
+ void y1(); // To place number.
+ void y2(); // To reduce number by unit.
+ void y3(); // Gunshot
+ void y4(); //
+ void y5(); //
+ int nNumber;
+ int nSaveNumber;
+ int nLengthQueue; // Length of queue.
+ int nCurrentQueue; //
+};
+typedef vector<CRifleman*>
+TIArrayRifleman;
+typedef vector<CRifleman*>:
+:iterator TIIteratorRifleman;
+extern LArc RiflemanTBL[];
+CRifleman::CRifleman():LFsaAppl() { }
+CRifleman::CRifleman(int n, CWnd* pW,
+LArc* pTBL):
+LFsaAppl(pTBL)
+{
+ pParentWnd = pW;
+ pFsaRightMan = NULL;
+ pFsaLeftMan = NULL;
+ nNumber = n;
+ nLengthQueue = 5;
+ nCurrentQueue = nLengthQueue;
+ if (pParentWnd)
+ {
+ pApp = (CFireApp*)AfxGetApp();
+ FLoad(pApp->pNetFsa,1);
+ }
+}
+bool CRifleman::operator==(const CRifleman
+&var) const
+{
+ if (nNumber==var.nNumber) return true;
+ else return false;
+}
+void CRifleman::SetLink(CRifleman
+* pFsaLeft, CRifleman *
+pFsaRigtht)
+{
+ pFsaRightMan = pFsaRigtht;
+ pFsaLeftMan = pFsaLeft;
+}
+LArc RiflemanTBL[] = {
+ LArc("���", "�����", "x1", "y1"),
+ LArc("�����", "�����", "x2", "y2"),
+ LArc("�����", "�����", "x3", "y2"),
+ LArc("�����", "�������", "^x3", "y3y4"),
+ LArc("�������", "�������", "x4", "y3y5"),
+ LArc("�������", "���", "^x4", "-"),
+ LArc()
+ };
+int CRifleman::x1()
+{
+ if (!pFsaLeftMan) return false;
+ return string((pFsaLeftMan)-
+ >FGetState()) == "�����";
+}
+int CRifleman::x2()
+{
+ if (!pFsaRightMan) return true;
+ else return string((pFsaRightMan)-
+ >FGetState()) ==
+"�����";
+}
+int CRifleman::x3() { return nNumber; }
+int CRifleman::x4() { return nCurrentQueue; }
+void CRifleman::y1()
+{
+ int n = pFsaLeftMan->GetNumber();
+ SetNumber(n+1);
+}
+void CRifleman::y2() { nNumber-; }
+void CRifleman::y3() { }
+void CRifleman::y4()
+{
+ nCurrentQueue = nLengthQueue;
+}
+// ������������ �������� ����� ����������
+void CRifleman::y5()
+{
+ CFDelay *pCFDelay;
+ pCFDelay = new CFDelay(200);
+ pCFDelay->FCall(this);
+ nCurrentQueue-;
+}
Added: trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.groovy
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.groovy (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.groovy 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,34 @@
+import groovy.swing.SwingBuilder
+import groovy.net.soap.SoapClient
+
+proxy = new SoapClient("http://www.webservicex.net/CurrencyConvertor.asmx?WSDL")
+
+def currency = ['USD', 'EUR', 'CAD', 'GBP', 'AUD']
+def rate = 0.0
+
+swing = new SwingBuilder()
+
+refresh = swing.action(
+ name:'Refresh',
+ closure:this.&refreshText,
+ mnemonic:'R'
+)
+
+frame = swing.frame(title:'Currency Demo') {
+ panel {
+ label 'Currency rate from '
+ comboBox(id:'from', items:currency)
+ label ' to '
+ comboBox(id:'to', items:currency)
+ label ' is '
+ textField(id:'currency', columns:10, rate.toString())
+ button(text:'Go !', action:refresh)
+ }
+}
+frame.pack()
+frame.show()
+
+def refreshText(event) {
+ rate = proxy.ConversionRate(swing.from.getSelectedItem(), swing.to.getSelectedItem())
+ swing.currency.text = rate
+}
Added: trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.html
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.html (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.html 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,18 @@
+<html>
+ <head>
+ </head>
+ <body>
+ html page
+ <br>
+ html page
+ <br>
+ html page
+ <br>
+ html page
+ <br>
+ html page
+ <br>
+ html page
+ <br>
+ </body>
+</html>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.java
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.java (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.java 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,291 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.renderkit;
+
+import java.io.IOException;
+import java.util.Iterator;
+import java.util.Map;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.context.ResponseWriter;
+import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
+import org.ajax4jsf.renderkit.compiler.TemplateContext;
+import org.richfaces.skin.Skin;
+import org.ajax4jsf.util.style.CSSFormat;
+import org.richfaces.component.UIPanelMenu;
+import org.richfaces.component.UIPanelMenuGroup;
+import org.richfaces.component.UIPanelMenuItem;
+import org.richfaces.renderkit.html.PanelMenuGroupRenderer;
+import org.richfaces.renderkit.html.iconimages.PanelMenuIconChevron;
+import org.richfaces.renderkit.html.iconimages.PanelMenuIconChevronDown;
+import org.richfaces.renderkit.html.iconimages.PanelMenuIconChevronUp;
+import org.richfaces.renderkit.html.iconimages.PanelMenuIconDisc;
+import org.richfaces.renderkit.html.iconimages.PanelMenuIconGrid;
+import org.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer;
+import org.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle;
+import org.richfaces.renderkit.html.iconimages.PanelMenuIconTriangleDown;
+import org.richfaces.renderkit.html.iconimages.PanelMenuIconTriangleUp;
+import org.ajax4jsf.renderkit.RendererUtils.HTML;
+
+/**
+ * @author hans
+ *
+ */
+public abstract class PanelMenuRendererBase extends HeaderResourcesRendererBase {
+
+ public final static String PANEL_MENU_SPACER_ICON_NAME = "spacer";
+
+ public void insertSpacerImages(FacesContext context , UIComponent component) throws IOException {
+ ResponseWriter writer = context.getResponseWriter();
+ int level = calculateLevel(component);
+ //StringBuffer buffer = new StringBuffer();
+ String src = getIconByType("custom",false,context,component);
+ int w = 16; //width(context);
+
+ for (int i=0;i<level;i++){
+ writer.startElement("img", component);
+ writer.writeAttribute("src", src, null);
+ writer.writeAttribute("alt", "", null);
+ writer.writeAttribute("hspace", "0", null);
+ writer.writeAttribute("vspace", "0", null);
+ writer.writeAttribute("height", String.valueOf(w), null);
+ writer.writeAttribute("width", String.valueOf(w), null);
+ writer.endElement("img");
+ }
+ }
+
+ protected int calculateLevel (UIComponent component){
+ int level = 0;
+ UIComponent parent = component.getParent();
+ while(parent != null){
+ if(parent instanceof UIPanelMenu){
+ return level;
+ } else if(parent instanceof UIPanelMenuGroup){
+ level++;
+ }
+ parent = parent.getParent();
+ }
+ return level;
+ }
+
+ /**
+ * If icon type is a pre-defined value, return corresponding image, otherwise
+ * otherwise
+ * @param iconType
+ * @param context
+ * @param component
+ * @return URI of requested image
+ */
+ protected String getIconByType(String iconType, boolean isTopLevel, FacesContext context,
+ UIComponent component){
+
+ String source = "";
+ String color = "";
+ Skin skin = getSkin(context);
+
+ if (isTopLevel){
+ color = (String) skin.getParameter(context,"panelmenu.headerBulletColor");
+ } else {
+ color = (String) skin.getParameter(context,"panelmenu.itemBulletColor");
+ }
+ if(iconType != null && !iconType.equals("none")){
+ if (iconType.equals("custom") || "".equals(iconType)){
+ source = getResource(PanelMenuIconSpacer.class.getName()).getUri(context, color);
+ } else if (iconType.equals("spacer")){
+ source = getResource(PanelMenuIconSpacer.class.getName()).getUri(context, color);
+ } else if (iconType.equals("triangle")) {
+ source = getResource(PanelMenuIconTriangle.class.getName()).getUri(context, color);
+ } else if (iconType.equals("triangleDown")) {
+ source = getResource(PanelMenuIconTriangleDown.class.getName()).getUri(context, color);
+ } else if (iconType.equals("triangleUp")) {
+ source = getResource(PanelMenuIconTriangleUp.class.getName()).getUri(context, color);
+ } else if (iconType.equals("chevron")) {
+ source = getResource(PanelMenuIconChevron.class.getName()).getUri(context, color);
+ } else if (iconType.equals("chevronUp")) {
+ source = getResource(PanelMenuIconChevronUp.class.getName()).getUri(context, color);
+ } else if (iconType.equals("chevronDown")) {
+ source = getResource(PanelMenuIconChevronDown.class.getName()).getUri(context, color);
+// } else if (iconType.equals("square")) {
+// source = getResource(PanelMenuIconSquare.class.getName()).getUri(context, color);
+ } else if (iconType.equals("disc")) {
+ source = getResource(PanelMenuIconDisc.class.getName()).getUri(context, color);
+ } else if (iconType.equals("grid")) {
+ source = getResource(PanelMenuIconGrid.class.getName()).getUri(context, color);
+ } else {
+ //TODO by nick - dima - TemplateContext is deprecated and shouldn't be used
+ source = (String)getUtils().encodeResourceURL(new TemplateContext(this,context,component),iconType);
+ }
+ }
+ return source;
+ }
+
+ protected UIPanelMenu findMenu (UIComponent component){
+ if (component instanceof UIPanelMenu) return (UIPanelMenu)component;
+ UIComponent parent = component;
+ while(parent != null){
+ if(parent instanceof UIPanelMenu){
+ return (UIPanelMenu) parent;
+ }
+ parent = parent.getParent();
+ }
+ return (UIPanelMenu) parent;
+ }
+
+ public String getHideStyle(FacesContext context, UIComponent component) {
+ if (!(component.getParent() instanceof UIPanelMenu)) {
+ CSSFormat format = new CSSFormat();
+ format.add("display", "none");
+ if(component.getParent() instanceof UIPanelMenuGroup) {
+ UIPanelMenuGroup parent = (UIPanelMenuGroup)component.getParent();
+ PanelMenuGroupRenderer renderer = (PanelMenuGroupRenderer) context.getRenderKit().getRenderer(parent.getFamily(), parent.getRendererType());
+ try {
+ if ( renderer.isOpened(context, parent) ){
+ return "";
+ } else
+ return format.toString();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ } else return format.toString();
+ }
+ return "";
+ }
+
+ public void insertLabel(FacesContext context, UIComponent component) throws IOException {
+ Object value = component.getAttributes().get("label");
+ if (value!=null){
+ context.getResponseWriter().write(value.toString());
+ }
+ }
+
+ protected boolean isChildrenExpanded(UIComponent component){
+ if (component.getChildren() != null){
+ Iterator itr = component.getChildren().iterator();
+ while(itr.hasNext()){
+ UIComponent child = (UIComponent)itr.next();
+ if(child instanceof UIPanelMenuGroup){
+ if( ((UIPanelMenuGroup)child).isExpanded() ){
+ return true;
+ } else {
+ return isChildrenExpanded(child);
+ }
+ }
+ }
+ }
+ return false;
+ }
+
+ protected boolean isParentDisabled(UIComponent component){
+ boolean returnValue = false;
+ UIComponent parent = component.getParent();
+ if(parent instanceof UIPanelMenuGroup){
+ UIPanelMenuGroup parentGroup = (UIPanelMenuGroup)parent;
+ if(parentGroup.isDisabled()){
+ returnValue = true;
+ } else {
+ returnValue = isParentDisabled(parentGroup);
+ }
+ }
+ return returnValue;
+ }
+
+ protected boolean isSubmitted(FacesContext context, UIComponent component){
+ boolean submitted = false;
+ String clientId = component.getClientId(context);
+ Map requestParameterMap = context.getExternalContext().getRequestParameterMap();
+
+ Object value = requestParameterMap.get("panelMenuAction"+clientId);
+ if (clientId!=null&&value!=null){
+ if (value.equals(clientId)) {
+ submitted = true;
+ }
+ }
+ return submitted;
+ }
+
+ protected String getItemMode(UIComponent component) {
+ String parentExpandMode = findMenu(component).getExpandMode();
+ String parentMode = findMenu(component).getMode();
+ if (null == parentMode || "".equals(parentMode))
+ parentMode = "server";
+ if (null == parentExpandMode || "".equals(parentExpandMode))
+ parentExpandMode = "none";
+ String mode = "none";
+ if (component instanceof UIPanelMenuGroup) {
+ UIPanelMenuGroup group = (UIPanelMenuGroup) component;
+ if (null != group.getExpandMode() && ! "".equals(group.getExpandMode()))
+ mode = group.getExpandMode();
+ else
+ mode = parentExpandMode;
+ } else if (component instanceof UIPanelMenuItem) {
+ UIPanelMenuItem item = (UIPanelMenuItem) component;
+ if (null != item.getMode() && ! "".equals(item.getMode()))
+ mode = item.getMode();
+ else
+ mode = parentMode;
+ }
+ return mode;
+ }
+
+ /**
+ *
+ * @param component
+ * @return
+ */
+ public boolean isTopLevel(UIComponent component){
+ UIComponent parent = component.getParent();
+ while( !(parent instanceof UIPanelMenu) && !(parent instanceof UIPanelMenuGroup)) {
+ parent = parent.getParent();
+ }
+ if(parent instanceof UIPanelMenu){
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ *
+ * @param writer
+ * @param iconType
+ * @param imageSrc
+ * @param component
+ * @throws IOException
+ */
+ public void drawIcon(ResponseWriter writer, String iconType, String imageSrc, UIComponent component, String id) throws IOException{
+ if (iconType != null && !iconType.equals("") && !iconType.equals("none")){
+ int h = 16; //width(context);
+ writer.startElement("img", component);
+ writer.writeAttribute("src", imageSrc, null);
+ writer.writeAttribute("alt", "", null);
+ writer.writeAttribute("vspace", "0", null);
+ writer.writeAttribute("hspace", "0", null);
+ writer.writeAttribute("width", String.valueOf(h), null);
+ writer.writeAttribute("height", String.valueOf(h), null);
+ writer.writeAttribute("id", id, null);
+ writer.endElement("img");
+ }
+
+ }
+
+}
Added: trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.lzx
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.lzx (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.lzx 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <canvas debug="false" bgcolor='#D4D0C8'>
+
+ <dataset name='dset' request='true' type='http' src='/app/user/list?keyword='/>
+ <grid id="gd" datapath="dset:/rowset" contentdatapath="row" doesenter="true">
+ <gridcolumn width='100'>name<text datapath='@name'></text></gridcolumn>
+ <gridcolumn width='100'>email<text datapath='@email'></text> </gridcolumn>
+ </grid>
+ </canvas>
+
+
Added: trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Insert/src/test.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,192 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//EXADEL//Generator config/EN" "http://exadel.com/dtds/component-config.dtd" >
+<components>
+ <component>
+ <name>org.richfaces.PanelBar</name>
+ <family>org.richfaces.PanelBar</family>
+ <classname>org.richfaces.component.html.HtmlPanelBar</classname>
+ <superclass>org.richfaces.component.UIPanelBar</superclass>
+ <test>
+ <classname>org.richfaces.component.html.HtmlPanelBarComponentTest</classname>
+ <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
+ </test>
+ <description>
+ <![CDATA[A component with categories sliding up and down to reveal and hide items under selected
+ categories (as used in Microsoft Outlook).
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.PanelBarRenderer</name>
+ <template>panelBar.jspx</template>
+ </renderer>
+ <tag>
+ <name>panelBar</name>
+ <classname>org.richfaces.taglib.PanelBarTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <property>
+ <name>converterMessage</name>
+ <classname>java.lang.String</classname>
+ <description>
+ A ValueExpression enabled attribute that, if present, will be used as the text of the converter message, replacing any message that comes from the converter.
+ </description>
+ </property>
+ <property>
+ <name>requiredMessage</name>
+ <classname>java.lang.String</classname>
+ <description>
+ A ValueExpression enabled attribute that, if present, will be used as the text of the validation message for the "required" facility, if the "required" facility is used.
+ </description>
+ </property>
+ <property>
+ <name>validatorMessage</name>
+ <classname>java.lang.String</classname>
+ <description>
+ A ValueExpression enabled attribute that, if present, will be used as the text of the validator message, replacing any message that comes from the validator.
+ </description>
+ </property>
+ <property>
+ <name>width</name>
+ <classname>java.lang.String</classname>
+ <description>The width of the slide panel. Might be defined as pixels or as percentage.
+ The default width is 100%</description>
+ <defaultvalue><![CDATA["100%"]]></defaultvalue>
+ </property>
+
+ <property>
+ <name>height</name>
+ <classname>java.lang.String</classname>
+ <description>The height of the slide panel. Might be defined as pixels or as percentage.
+ The default height is 100%</description>
+ <defaultvalue><![CDATA["100%"]]></defaultvalue>
+ </property>
+ <property>
+ <name>style</name>
+ <classname>java.lang.String</classname>
+ <description>CSS style(s) is/are to be applied when this component is rendered</description>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>styleClass</name>
+ <classname>java.lang.String</classname>
+ <description>Corresponds to the HTML class attribute.</description>
+ </property>
+ <property>
+ <name>headerStyleActive</name>
+ <classname>java.lang.String</classname>
+ <description>The component header style active</description>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>headerClassActive</name>
+ <classname>java.lang.String</classname>
+ <description>The component header style class active</description>
+ </property>
+ <property>
+ <name>value</name>
+ <classname>java.lang.String</classname>
+ <description>Id of expanded panelBarItem</description>
+ </property>
+ <property >
+ <name>converter</name>
+ <classname>javax.faces.convert.Converter</classname>
+ <description>
+ Id of Converter to be used or reference to a Converter.
+ </description>
+ </property>
+ <property hidden="true">
+ <name>localValueSet</name>
+ <classname>boolean</classname>
+ </property>
+ <property hidden="true">
+ <name>switchType</name>
+ <classname>java.lang.String</classname>
+ </property>
+ <property>
+ <name>onclick</name>
+ <classname>java.lang.String</classname>
+ <description>JavaScript code for call before header onclick</description>
+ </property>
+ <property>
+ <name>selectedPanel</name>
+ <classname>java.lang.Object</classname>
+ <description>Attribure defines name of selected item</description>
+ </property>
+
+ &ui_component_attributes;
+ &header_component_attributes;
+ &content_component_attributes;
+ &ui_input_attributes;
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+
+ <property hidden="true">
+ <name>valid</name>
+ <classname>java.lang.String</classname>
+ </property>
+ </component>
+
+ <component>
+ <name>org.richfaces.PanelBarItem</name>
+ <family>org.richfaces.PanelBarItem</family>
+ <description>Slider Panel Item</description>
+ <classname>org.richfaces.component.html.HtmlPanelBarItem</classname>
+ <superclass>org.richfaces.component.UIPanelBarItem</superclass>
+ <test>
+ <classname>org.richfaces.component.html.HtmlPanelBarItemComponentTest</classname>
+ <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
+ </test>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.PanelBarItemRenderer</name>
+ <template>panelBarItem.jspx</template>
+ </renderer>
+ <tag>
+ <name>panelBarItem</name>
+ <classname>org.richfaces.taglib.PanelBarItemTag</classname>
+ <superclass>org.ajax4jsf.webapp.taglib.HtmlComponentTagBase</superclass>
+ <description>A child component of a slide panel component</description>
+ </tag>
+
+ <property>
+ <name>label</name>
+ <classname>java.lang.String</classname>
+ <description>Label text appears on a panel item header</description>
+ <defaultvalue><![CDATA["auto generated label"]]></defaultvalue>
+ </property>
+ <property>
+ <name>headerStyleActive</name>
+ <classname>java.lang.String</classname>
+ <description>The component header style active</description>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>headerClassActive</name>
+ <classname>java.lang.String</classname>
+ <description>The component header style class active</description>
+ </property>
+ <property>
+ <name>name</name>
+ <classname>java.lang.Object</classname>
+ <description>Attribute defines item name</description>
+ <defaultvalue>getId()</defaultvalue>
+ </property>
+
+ &ui_component_attributes;
+ &header_component_attributes;
+ &content_component_attributes;
+ <property hidden="true">
+ <name>expanded</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Notifies that an element has to be expanded
+ </description>
+ <defaultvalue><![CDATA["false"]]></defaultvalue>
+ </property>
+ </component>
+
+</components>
Added: trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttle.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttle.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttle.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,152 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="listShuttleSubviewID">
+ <rich:listShuttle id="listShuttleID" var="item"
+ binding="#{listShuttle.htmlListShuttle}"
+ sourceValue="#{listShuttle.sourceValue}"
+ targetValue="#{listShuttle.targetValue}"
+ bottomControlLabel="#{listShuttle.bottomControlLabel}"
+ copyAllControlLabel="#{listShuttle.copyAllControlLabel}"
+ copyControlLabel="#{listShuttle.copyControlLabel}"
+ downControlLabel="#{listShuttle.downControlLabel}"
+ fastMoveControlsVisible="#{listShuttle.fastMoveControlsVisible}"
+ converter="dataConverter"
+ fastOrderControlsVisible="#{listShuttle.fastOrderControlsVisible}"
+ first="#{listShuttle.first}"
+ moveControlsVisible="#{listShuttle.moveControlsVisible}"
+ orderControlsVisible="#{listShuttle.orderControlsVisible}"
+ removeAllControlLabel="#{listShuttle.removeAllControlLabel}"
+ removeControlLabel="#{listShuttle.removeControlLabel}"
+ sourceSelection="#{listShuttle.sourceSelection}"
+ targetSelection="#{listShuttle.targetSelection}"
+ showButtonLabels="#{listShuttle.showButtonLabels}"
+ switchByClick="#{listShuttle.switchByClick}"
+ targetListWidth="#{listShuttle.targetListWidth}"
+ sourceListWidth="#{listShuttle.sourceListWidth}"
+ listsHeight="#{listShuttle.listsHeight}"
+ sourceCaptionLabel="#{listShuttle.sourceCaptionLabel}"
+ targetCaptionLabel="#{listShuttle.targetCaptionLabel}"
+ topControlLabel="#{listShuttle.topControlLabel}"
+ upControlLabel="#{listShuttle.upControlLabel}"
+ onmousemove="#{event.onmousemove}" onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}" onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onorderchanged="#{event.onorderchanged}"
+ ontopclick="#{event.ontopclick}" onupclick="#{event.onupclick}"
+ ondownclick="#{event.ondownclick}"
+ onbottomclick="#{event.onbottomclick}">
+ <%--
+ <f:facet name="topControl">
+ <h:outputText value="top" />
+ </f:facet>
+ <f:facet name="bottomControl">
+ <h:outputText value="bottom" />
+ </f:facet>
+ <f:facet name="upControl">
+ <h:outputText value="up" />
+ </f:facet>
+ <f:facet name="downControl">
+ <h:outputText value="down" />
+ </f:facet>
+ <f:facet name="topControlDisabled">
+ <h:outputText value="top disabled" />
+ </f:facet>
+ <f:facet name="bottomControlDisabled">
+ <h:outputText value="bottom disabled" />
+ </f:facet>
+ <f:facet name="upControlDisabled">
+ <h:outputText value="up disabled" />
+ </f:facet>
+ <f:facet name="downControlDisabled">
+ <h:outputText value="down disabled" />
+ </f:facet>
+
+
+ <f:facet name="copyControl">
+ <h:outputText value="copy" />
+ </f:facet>
+ <f:facet name="removeControl">
+ <h:outputText value="remove" />
+ </f:facet>
+ <f:facet name="copyAllControl">
+ <h:outputText value="copy all" />
+ </f:facet>
+ <f:facet name="removeAllControl">
+ <h:outputText value="remove all" />
+ </f:facet>
+ <f:facet name="copyControlDisabled">
+ <h:outputText value="copy disabled" />
+ </f:facet>
+ <f:facet name="removeControlDisabled">
+ <h:outputText value="remove disabled" />
+ </f:facet>
+ <f:facet name="copyAllControlDisabled">
+ <h:outputText value="copy all disabled" />
+ </f:facet>
+ <f:facet name="removeAllControlDisabled">
+ <h:outputText value="remove all disabled" />
+ </f:facet>
+ --%>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Output" />
+ </f:facet>
+ <h:outputText value="#{item.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str4}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:commandButton value="#{item.str0} sbmt();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="a4jLink" />
+ </f:facet>
+ <a4j:commandLink action="#{listShuttle.clAction}"
+ value="#{item.str1} a4j" reRender="listShuttleID"></a4j:commandLink>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Select" />
+ </f:facet>
+ <h:selectOneMenu value="#{item.str2}">
+ <f:selectItem itemLabel="select0" itemValue="select0" />
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <f:selectItem itemLabel="select3" itemValue="select3" />
+ <f:selectItem itemLabel="select4" itemValue="select4" />
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:selectOneMenu>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="GraphicImage" />
+ </f:facet>
+ <h:graphicImage value="#{item.str3}" />
+ </h:column>
+
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="OutputLink"></h:outputText>
+ </f:facet>
+ <h:outputLink value="http://www.jboss.com/">
+ <f:verbatim>outputLink</f:verbatim>
+ </h:outputLink>
+ </rich:column>
+ </rich:listShuttle>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttleDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttleDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttleDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
Added: trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,189 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="listShuttlePropertySubviewID">
+ <h:commandButton value="add test"
+ action="#{listShuttle.addHtmlListShuttle}"></h:commandButton>
+
+ <br />
+ <br />
+ <h:outputText value="JavaScript API" style="font-weight: bold;" />
+ <h:panelGrid columns="4" border="1">
+ <h:panelGroup>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.enable()"
+ value="enable"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.disable()"
+ value="disable"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.isEnabled())"
+ value="isEnabled"></a4j:commandLink>
+ </h:panelGroup>
+ <h:panelGroup>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.up()"
+ value="up"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.down()"
+ value="down"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.top()"
+ value="top"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.bottom()"
+ value="bottom"></a4j:commandLink>
+ </h:panelGroup>
+ <h:panelGroup>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copy()"
+ value="copy"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.remove()"
+ value="remove"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copyAll()"
+ value="copyAll"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.removeAll()"
+ value="removeAll"></a4j:commandLink>
+ </h:panelGroup>
+ <h:panelGroup>
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.targetList.getSelection())"
+ value="targetList.getSelection"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.sourceList.getSelection())"
+ value="sourceList.getSelection"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.targetList.getItems())"
+ value="targetList.getItems"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.sourceList.getItems())"
+ value="sourceList.getItems"></a4j:commandLink>
+ </h:panelGroup>
+ </h:panelGrid>
+
+ <h:panelGrid columns="2">
+ <h:column></h:column>
+ <h:panelGroup>
+ <a4j:commandButton value="reRender" reRender="listShuttleID"></a4j:commandButton>
+ <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" />
+ <h:panelGroup>
+ <h:inputText value="#{listShuttle.lenght}" />
+ <a4j:commandButton action="#{listShuttle.addNewItem}"
+ reRender="listShuttleID" value="ok" />
+ </h:panelGroup>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{listShuttle.first}" onchange="submit()" />
+
+ <h:outputText value="showButtonLabels" />
+ <h:selectBooleanCheckbox value="#{listShuttle.showButtonLabels}"
+ onchange="submit();" />
+
+ <h:outputText value="orderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.orderControlsVisible}"
+ onchange="submit();" />
+
+ <h:outputText value="moveControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.moveControlsVisible}"
+ onchange="submit();" />
+
+ <h:outputText value="fastOrderControlsVisible" />
+ <h:selectBooleanCheckbox
+ value="#{listShuttle.fastOrderControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="fastMoveControlsVisible" />
+ <h:selectBooleanCheckbox
+ value="#{listShuttle.fastMoveControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="switchByClick" />
+ <h:selectBooleanCheckbox value="#{listShuttle.switchByClick}"
+ onchange="submit();" />
+
+ <h:outputText value="sourceCaptionLabel" />
+ <h:inputText value="#{listShuttle.sourceCaptionLabel}"
+ onchange="submit()" />
+
+ <h:outputText value="targetCaptionLabel" />
+ <h:inputText value="#{listShuttle.targetCaptionLabel}"
+ onchange="submit()" />
+
+ <h:outputText value="sourceListWidth" />
+ <h:inputText value="#{listShuttle.sourceListWidth}"
+ onchange="submit()" />
+
+ <h:outputText value="targetListWidth" />
+ <h:inputText value="#{listShuttle.targetListWidth}"
+ onchange="submit()" />
+
+ <h:outputText value="listsHeight" />
+ <h:inputText value="#{listShuttle.listsHeight}" onchange="submit()" />
+
+ <h:outputText value="copyControlLabel" />
+ <h:inputText value="#{listShuttle.copyControlLabel}"
+ onchange="submit()" />
+
+ <h:outputText value="removeControlLabel" />
+ <h:inputText value="#{listShuttle.removeControlLabel}"
+ onchange="submit()" />
+
+ <h:outputText value="copyAllControlLabel" />
+ <h:inputText value="#{listShuttle.copyAllControlLabel}"
+ onchange="submit()" />
+
+ <h:outputText value="removeAllControlLabel" />
+ <h:inputText value="#{listShuttle.removeAllControlLabel}"
+ onchange="submit()" />
+
+ <h:outputText value="bottomControlLabel" />
+ <h:inputText value="#{listShuttle.bottomControlLabel}"
+ onchange="submit()" />
+
+ <h:outputText value="downControlLabel" />
+ <h:inputText value="#{listShuttle.downControlLabel}"
+ onchange="submit()" />
+
+ <h:outputText value="topControlLabel" />
+ <h:inputText value="#{listShuttle.topControlLabel}"
+ onchange="submit()" />
+
+ <h:outputText value="upControlLabel" />
+ <h:inputText value="#{listShuttle.upControlLabel}" onchange="submit()" />
+ </h:panelGrid>
+
+ <br />
+ <br />
+ <%--
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getActiveItem" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText
+ value="#{rich:findComponent('listShuttleID').activeItem}" />
+ </rich:column>
+ </h:panelGrid>
+ --%>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,138 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="listShuttleStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <a4j:commandButton value="Show selection (reRender)"
+ reRender="infoLSID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showSelect}"
+ onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="infoLSID" value="#{listShuttle.info}" var="info"
+ rendered="#{listShuttle.showSelect}" border="1">
+ <h:column>
+ <h:outputText value="#{info}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all source (reRender)"
+ reRender="allInfoLSSourceID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showAllSourceData}"
+ onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoLSSourceID"
+ value="#{listShuttle.sourceValue}" var="allInfo"
+ rendered="#{listShuttle.showAllSourceData}" border="1">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Output" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str4}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="a4jLink" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} a4j" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="GraphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all target (reRender)"
+ reRender="allInfoLSTargetID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showAllTargetData}"
+ onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoLSTargetID"
+ value="#{listShuttle.targetValue}" var="allInfo"
+ rendered="#{listShuttle.showAllTargetData}" border="1">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Output" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str4}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="a4jLink" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} a4j" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="GraphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="OutputLink"></h:outputText>
+ </f:facet>
+ <h:outputText value="http://www.jboss.com/" />
+ </rich:column>
+ </h:dataTable>
+ </h:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/META-INF/MANIFEST.MF (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/META-INF/MANIFEST.MF 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,2 @@
+Manifest-Version: 1.0
+
Added: trunk/test-applications/auto-jsp/src/main/webapp/Message/Message.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Message/Message.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Message/Message.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,67 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="messageSubviewID">
+ <rich:panel>
+ <h:outputText value="Rich Message Demo:" />
+
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+
+ <rich:message for="#{message.msg}" binding="#{message.htmlMessage}" tooltip="#{message.tooltip}" showDetail="#{message.showDetail}"
+ showSummary="#{message.showSummary}" passedLabel="No Error" errorLabelClass="errorLabel" fatalLabelClass="warnLabel"
+ infoLabelClass="infoLabel" warnLabelClass="fatalLabel" title="#{message.title}" id="messageID">
+
+
+ <f:facet name="errorMarker">
+ <h:graphicImage url="/pics/error.gif" />
+ </f:facet>
+
+ <f:facet name="fatalMarker">
+ <h:graphicImage url="/pics/fatal.gif" />
+ </f:facet>
+
+ <f:facet name="infoMarker">
+ <h:graphicImage url="/pics/info.gif" />
+ </f:facet>
+
+ <f:facet name="warnMarker">
+ <h:graphicImage url="/pics/warn.gif" />
+ </f:facet>
+
+ <f:facet name="passedMarker">
+ <h:graphicImage url="/pics/passed.gif" />
+ </f:facet>
+ </rich:message>
+
+ <rich:separator></rich:separator>
+
+ <h:outputText value="Rich Messages Demo" />
+ <rich:messages binding="#{message.htmlMessages}" layout="#{message.layout}" id="messagesID" tooltip="#{message.tooltip}" showDetail="#{message.showDetail}"
+ showSummary="#{message.showSummary}" passedLabel="No Error" errorLabelClass="errorLabel" fatalLabelClass="warnLabel"
+ infoLabelClass="infoLabel" warnLabelClass="fatalLabel" warnMarkerClass="markerWarn" infoMarkerClass="markerInfo"
+ errorMarkerClass="markerError" fatalMarkerClass="markerFatal" errorClass="errorClass" fatalClass="fatalClass"
+ warnClass="warnClass" infoClass="infoClass" labelClass="labelClass" styleClass="class" title="#{message.title}">
+ <f:facet name="errorMarker">
+ <h:graphicImage url="/pics/error.gif" />
+ </f:facet>
+ <f:facet name="fatalMarker">
+ <h:graphicImage url="/pics/fatal.gif" />
+ </f:facet>
+ <f:facet name="infoMarker">
+ <h:graphicImage url="/pics/info.gif" />
+ </f:facet>
+ <f:facet name="warnMarker">
+ <h:graphicImage url="/pics/warn.gif" />
+ </f:facet>
+ <f:facet name="passedMarker">
+ <h:graphicImage url="/pics/passed.gif" />
+ </f:facet>
+ <h:outputText value="#{messages.summary}">
+ </h:outputText>
+ </rich:messages>
+ </rich:panel>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Message/MessageProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Message/MessageProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Message/MessageProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,107 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="MessagePropertySubviewID">
+ <h:commandButton value="add test" action="#{message.addHtmlMessages}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="1." />
+ <h:selectOneMenu id="select1" value="#{message.select1}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="2." />
+ <h:selectOneMenu id="select2" value="#{message.select2}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="3." />
+ <h:selectOneMenu id="select3" value="#{message.select3}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="4." />
+ <h:selectOneMenu id="select4" value="#{message.select4}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="5." />
+ <h:selectOneMenu id="select5" value="#{message.select5}">
+ <f:selectItem itemValue="error" itemLabel="error" />
+ <f:selectItem itemValue="fatal" itemLabel="fatal" />
+ <f:selectItem itemValue="warn" itemLabel="warning" />
+ <f:selectItem itemValue="info" itemLabel="info" />
+ <f:selectItem itemValue="passed" itemLabel="passed" />
+ <f:validator validatorId="MessageValidator" />
+ </h:selectOneMenu>
+
+ <h:outputText value="Rich Message Demo:" />
+ <h:selectOneMenu value="#{message.msg}">
+ <f:selectItem itemValue="no" itemLabel="no" />
+ <f:selectItem itemValue="select1" itemLabel="1" />
+ <f:selectItem itemValue="select2" itemLabel="2" />
+ <f:selectItem itemValue="select3" itemLabel="3" />
+ <f:selectItem itemValue="select4" itemLabel="4" />
+ <f:selectItem itemValue="select5" itemLabel="5" />
+ </h:selectOneMenu>
+
+ <h:outputText value="Title:" />
+ <h:inputText value="#{message.title}" />
+
+ <h:outputText value="Show Detail:" />
+ <h:selectBooleanCheckbox value="#{message.showDetail}" />
+
+ <h:outputText value="ShowSummary" />
+ <h:selectBooleanCheckbox value="#{message.showSummary}" />
+
+ <h:outputText value="Tooltip" />
+ <h:selectBooleanCheckbox value="#{message.tooltip}" />
+
+ <h:outputText value="Layout:" />
+ <h:selectOneMenu value="#{message.layout}">
+ <f:selectItem itemValue="table" itemLabel="table" />
+ <f:selectItem itemValue="list" itemLabel="list" />
+ </h:selectOneMenu>
+
+ <h:commandButton value="submit" />
+ <a4j:commandButton value="submit ajax" />
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getFor(message)" reRender="findID1"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID1">
+ <h:outputText value="#{rich:findComponent('messageID').for}" />
+ </rich:column>
+ <rich:column>
+ <a4j:commandLink value="getRendererType(messages)" reRender="findID2"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID2">
+ <h:outputText value="#{rich:findComponent('messagesID').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Message/MessageStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Message/MessageStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Message/MessageStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="MessageStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="modalPanel straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{message.bTest1}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Message}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{message.bTest2}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Message}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{message.bTest3}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Message}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{message.bTest4}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Message}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{message.bTest5}" value="run" onclick="submit()"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Message}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanel.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,172 @@
+<%@ 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"%>
+<script type="text/javascript">
+function multiply(height,width){
+ var tbody = document.getElementById('tbodyID');
+ var trs = tbody.getElementsByTagName('TR');
+ var y = parseInt(height);
+ var x = parseInt(width);
+ trs[1].innerHTML = 'modalPanel\'s size: ' + x + 'x' +y + ' px*px';
+ return false;
+}
+</script>
+<style>
+.dr-mpnl-shadow {
+ top: 5px;
+ left: 5px;
+ opacity: 0.9;
+ filter: alpha(opacity = 200);
+}
+</style>
+
+<!-- %@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%-->
+
+<f:subview id="modalPanelSubviewID">
+
+ <rich:modalPanel id="modalPanelID"
+ binding="#{modalPanel.htmlModalPanel}"
+ visualOptions="#{modalPanel.visualOptions}" left="#{modalPanel.left}"
+ top="#{modalPanel.top}" height="#{modalPanel.height}"
+ width="#{modalPanel.width}" moveable="#{modalPanel.moveable}"
+ resizeable="#{modalPanel.resizeable}"
+ keepVisualState="#{modalPanel.keepVisualState}"
+ rendered="#{modalPanel.rendered}" zindex="#{modalPanel.zindex}"
+ autosized="#{modalPanel.autosized}"
+ shadowDepth="#{modalPanel.shadowDepth}"
+ shadowOpacity="#{modalPanel.shadowOpacity}"
+ showWhenRendered="#{modalPanel.showWhenRendered}"
+ trimOverlayedElements="#{modalPanel.trimOverlayedElements}"
+ controlsClass="#{style.controlsClass}"
+ headerClass="#{style.headerClass}" styleClass="#{style.styleClass}"
+ onhide="#{event.onhide}" onmaskclick="#{event.onmaskclick}"
+ onmaskcontextmenu="#{event.onmaskcontextmenu}"
+ onmaskdblclick="#{event.onmaskdblclick}"
+ onmaskmousedown="#{event.onmaskmousedown}"
+ onmaskmousemove="#{event.onmaskmousemove}"
+ onmaskmouseout="#{event.onmaskmouseout}"
+ onmaskmouseover="#{event.onmaskmouseover}"
+ onmaskmouseup="#{event.onmaskmouseup}" onmove="#{event.onmove}"
+ onresize="#{event.onresize}" onshow="#{event.onshow}"
+ onbeforehide="#{event.onbeforehide}"
+ onbeforeshow="#{event.onbeforeshow}"
+ tridentIVEngineSelectBehavior="hide" >
+ <f:facet name="header">
+ <h:outputText value="Heder goes here..." />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif"
+ onclick="Richfaces.hideModalPanel('modalPanelID'); return false;" />
+ </f:facet>
+
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2" id="findComponentID">
+ <tbody id="tbodyID">
+ <tr>
+ <td><a4j:commandLink value="getSize" reRender="findID"
+ onclick="javascript:multiply(#{rich:findComponent('modalPanelID').height},#{rich:findComponent('modalPanelID').width});"></a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td><h:outputText /></td>
+ </tr>
+ </tbody>
+ </h:panelGrid>
+ <br />
+ <h:outputText value="This is Modal Panel example" styleClass="text1" />
+ <br/>
+ <h:selectOneMenu value="#{richBean.srcContainer}">
+ <f:selectItems value="#{richBean.listContainer}" />
+ </h:selectOneMenu>
+
+ <h:inputText value="#{modalPanel.inputTextTest}" />
+ <h:selectOneListbox value="#{modalPanel.selectOneListboxTest}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="2" itemValue="2" />
+ <f:selectItem itemLabel="3" itemValue="3" />
+ </h:selectOneListbox>
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+ <rich:spacer width="20" height="20"></rich:spacer>
+
+ <h:outputLink value="http://localhost:8081/jsp/">
+ <f:verbatim>http://localhost:8081/jsp/</f:verbatim>
+ </h:outputLink>
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+ <a4j:commandLink
+ onclick="Richfaces.showModalPanel('modalPanel2ID');return false;"
+ value="show ModalPanel 2"></a4j:commandLink>
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+ <h:outputLink
+ onclick="Richfaces.hideModalPanel('modalPanelID');return false;">
+ <f:verbatim>Close</f:verbatim>
+ </h:outputLink>
+ <br />
+ </rich:modalPanel>
+
+ <rich:modalPanel id="modalPanel2ID" autosized="true" resizeable="false">
+ <br />
+ <h:inputText value="input"></h:inputText>
+ <br />
+ <h:outputLink
+ onclick="Richfaces.hideModalPanel('modalPanel2ID');return false;">
+ <f:verbatim>Close</f:verbatim>
+ </h:outputLink>
+ <rich:pickList id="pickListID">
+ <f:selectItem itemValue="selectItem 0" itemLabel="selectItem 0" />
+ <f:selectItem itemValue="selectItem 1" itemLabel="selectItem 1" />
+ <f:selectItem itemValue="selectItem 2" itemLabel="selectItem 2" />
+
+ </rich:pickList>
+ <br />
+ <a4j:commandButton reRender="pickListID" value="refresh target"></a4j:commandButton>
+ </rich:modalPanel>
+
+ <rich:modalPanel id="modalPanel3ID" minHeight="100" minWidth="200"
+ moveable="true" autosized="true" resizeable="false">
+ <f:facet name="header">
+ <h:outputText value="Events..." />
+ </f:facet>
+ <f:facet name="controls">
+ <h:commandLink value="Close"
+ onclick="Richfaces.hideModalPanel('modalPanel3ID');" />
+ </f:facet>
+
+ <h:outputText value="Eventsaaaaaaaaaaaaaaaa ..." />
+ <rich:calendar popup="true" />
+ </rich:modalPanel>
+
+ <a
+ onclick="Richfaces.showModalPanel('modalPanelID');"
+ href="#">show ModalPanel 1</a>
+ <br />
+ <a4j:commandLink
+ onclick="Richfaces.showModalPanel('modalPanel2ID');return false;"
+ value="show ModalPanel 2"></a4j:commandLink>
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputText value="click on image for open Modal Panel 3" />
+ <h:graphicImage value="/pics/info.gif">
+ <rich:componentControl event="onclick" for="modalPanel3ID"
+ operation="show"></rich:componentControl>
+ </h:graphicImage>
+ <f:verbatim>
+ <br />
+ <br />
+ <div id="idDiv1" align="center"
+ style="position: relative; font-size: 50px; z-index: 2; color: navy">z-index1</div>
+ <div id="idDiv2" align="center"
+ style="position: relative; font-size: 50px; z-index: 2; color: navy">z-index2</div>
+ </f:verbatim>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanelDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanelDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanelDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
Added: trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,86 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="ModalPanelPropertySubviewID">
+<h:commandButton value="add test" action="#{modalPanel.addHtmlModalPanel}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="visualOptions"></h:outputText>
+ <h:inputText value="#{modalPanel.visualOptions}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="shadowDepth" />
+ <h:inputText value="#{modalPanel.shadowDepth}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="shadowOpacity" />
+ <h:inputText value="#{modalPanel.shadowOpacity}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="keepVisualState" />
+ <h:selectBooleanCheckbox value="#{modalPanel.keepVisualState}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="left" />
+ <h:inputText value="#{modalPanel.left}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="top" />
+ <h:inputText value="#{modalPanel.top}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{modalPanel.rendered}"
+ onchange="submit();">
+
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="showWhenRendered" />
+ <h:selectBooleanCheckbox value="#{modalPanel.showWhenRendered}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="zindex" />
+ <h:selectOneRadio value="#{modalPanel.zindex}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="3" itemValue="3" />
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Width:" />
+ <h:inputText value="#{modalPanel.width}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height:" />
+ <h:inputText value="#{modalPanel.height}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="minWidth:" />
+ <h:inputText value="#{modalPanel.minWidth}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="minHeight:" />
+ <h:inputText value="#{modalPanel.minHeight}">
+ <a4j:support event="onchange" reRender="modalPanelID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="autosized:" />
+ <h:selectBooleanCheckbox value="#{modalPanel.autosized}" onchange="submit();" ></h:selectBooleanCheckbox>
+
+ <h:outputText value="resizeable:" />
+ <h:selectBooleanCheckbox value="#{modalPanel.resizeable}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="Moveable:" />
+ <h:selectBooleanCheckbox value="#{modalPanel.moveable}">
+ <a4j:support event="onclick" reRender="modalPanelID"></a4j:support>
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ModalPanel/ModalPanelStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="ModalPanelStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{modalPanel.bTest1}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1ModalPanel}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{modalPanel.bTest2}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2ModalPanel}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{modalPanel.bTest3}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3ModalPanel}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{modalPanel.bTest4}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4ModalPanel}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{modalPanel.bTest5}" value="run" reRender="modalPanelID,mpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5ModalPanel}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingList.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingList.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,147 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="orderingListSubviewID">
+
+ <a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+ </a4j:outputPanel>
+
+ <rich:orderingList id="orderingListID" binding="#{orderingList.htmlOrderingList}" value="#{orderingList.list}" var="item" listHeight="#{orderingList.listHeight}"
+ listWidth="#{orderingList.listWidth}" controlsType="#{orderingList.controlsType}" converter="dataConverter"
+ bottomControlLabel="#{orderingList.bottomControlLabel}" captionLabel="#{orderingList.captionLabel}"
+ topControlLabel="#{orderingList.topControlLabel}" upControlLabel="#{orderingList.upControlLabel}"
+ controlsHorizontalAlign="#{orderingList.controlsHorizontalAlign}" controlsVerticalAlign="#{orderingList.controlsVerticalAlign}"
+ downControlLabel="#{orderingList.downControlLabel}"
+ orderControlsVisible="#{orderingList.orderControlsVisible}" fastOrderControlsVisible="#{orderingList.fastOrderControlsVisible}"
+ rendered="#{orderingList.rendered}" showButtonLabels="#{orderingList.showButtonLabels}" selection="#{orderingList.selection}"
+ onmousemove="#{event.onmousemove}" onclick="#{event.onclick}" ondblclick="#{event.ondblclick}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onorderchanged="#{event.onorderchanged}" ontopclick="#{event.ontopclick}" onupclick="#{event.onupclick}" ondownclick="#{event.ondownclick}" onbottomclick="#{event.onbottomclick}" onheaderclick="#{event.onheaderclick}">
+ <f:facet name="header">
+ <h:outputText value="header" />
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="footer" />
+ </f:facet>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{item.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:commandButton onclick="submit();" action="#{orderingList.cbAction}" value="#{item.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <a4j:commandLink action="#{orderingList.clAction}" value="#{item.str1} submit()" reRender="orderingListID"></a4j:commandLink>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:selectOneMenu value="#{item.str2}" >
+ <f:selectItem itemLabel="select0" itemValue="select0" />
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <f:selectItem itemLabel="select3" itemValue="select3" />
+ <f:selectItem itemLabel="select4" itemValue="select4" />
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectOneMenu>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{item.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:graphicImage value="#{item.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link"></h:outputText>
+ </f:facet>
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ </h:column>
+ </rich:orderingList>
+ <h:panelGrid columns="3">
+ <h:column></h:column>
+ <h:outputText value="JavaScript API" style="FONT-WEIGHT: bold;"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.hide()" value="hide()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.show()" value="show()"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:orderingListSubviewID:orderingListID').component.isShown())" value="isShown()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.ebnable()" value="ebnable()"></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.up()" value="up()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveUp()" value="moveUp()-old"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.down()" value="down()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveDown()" value="moveDown()-old"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.top()" value="top()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveTop()" value="moveTop()-old"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.bottom()" value="bottom()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveBottom()" value="moveBottom()-old"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:orderingListSubviewID:orderingListID').component.getSelection())" value="getSelection()"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:orderingListSubviewID:orderingListID').component.getItems())" value="getItems()"></a4j:commandLink>
+ </h:panelGrid>
+ <f:verbatim>
+ <h:outputText value="Component Control test" style="FONT-WEIGHT: bold;"></h:outputText>
+ <a href="#" id="hideID">hide()</a>
+ <a href="#" id="showID">show()</a>
+ <a href="#" id="isShownID">isShown()</a>
+ <a href="#" id="enableID">enable()</a>
+ <a href="#" id="disableID">disable()</a>
+ <a href="#" id="isEnabledID">isEnabled()</a>
+ <a href="#" id="upID">up()</a>
+ <a href="#" id="downID">down()</a>
+ <a href="#" id="topID">top()</a>
+ <a href="#" id="bottomID">bottom()</a>
+ <a href="#" id="getSelectionID">getSelection()</a>
+ <a href="#" id="getItemsID">getItems()</a>
+ </f:verbatim>
+ <rich:componentControl attachTo="hideID" event="onclick" for="orderingListID" operation="hide"></rich:componentControl>
+ <rich:componentControl attachTo="showID" event="onclick" for="orderingListID" operation="show"></rich:componentControl>
+ <rich:componentControl attachTo="isShownID" event="onclick" for="orderingListID" operation="alert(isShown)"></rich:componentControl>
+ <rich:componentControl attachTo="enableID" event="onclick" for="orderingListID" operation="enable"></rich:componentControl>
+ <rich:componentControl attachTo="disableID" event="onclick" for="orderingListID" operation="disable"></rich:componentControl>
+ <rich:componentControl attachTo="isEnabledID" event="onclick" for="orderingListID" operation="isEnabled"></rich:componentControl>
+ <rich:componentControl attachTo="upID" event="onclick" for="orderingListID" operation="up"></rich:componentControl>
+ <rich:componentControl attachTo="downID" event="onclick" for="orderingListID" operation="down"></rich:componentControl>
+ <rich:componentControl attachTo="topID" event="onclick" for="orderingListID" operation="top"></rich:componentControl>
+ <rich:componentControl attachTo="bottomID" event="onclick" for="orderingListID" operation="bottom"></rich:componentControl>
+ <rich:componentControl attachTo="getSelectionID" event="onclick" for="orderingListID" operation="alert(getSelection)"></rich:componentControl>
+ <rich:componentControl attachTo="getItemsID" event="onclick" for="orderingListID" operation="alert(getItems)"></rich:componentControl>
+
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingListDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingListDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingListDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
Added: trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,105 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="orderingListPropertySubviewID">
+<h:commandButton value="add test" action="#{orderingList.addHtmlOrderingList}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="Enter quantity of lines" />
+ <h:panelGroup>
+ <h:inputText value="#{orderingList.lenght}" />
+ <a4j:commandButton action="#{orderingList.addNewItem}"
+ reRender="orderingListID" value="ok" />
+ </h:panelGroup>
+
+ <h:outputText value="controlsType" />
+ <h:selectOneRadio value="#{orderingList.controlsType}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="button" itemValue="button" />
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="captionLabel" />
+ <h:inputText value="#{orderingList.captionLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="listHeight:" />
+ <h:inputText value="#{orderingList.listHeight}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="listWidth" />
+ <h:inputText value="#{orderingList.listWidth}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="controlsVerticalAlign" />
+ <h:selectOneRadio value="#{orderingList.controlsVerticalAlign}">
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="controlsHorizontalAlign" />
+ <h:selectOneRadio value="#{orderingList.controlsHorizontalAlign}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="upControlLabel" />
+ <h:inputText value="#{orderingList.upControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="bottomControlLabel" />
+ <h:inputText value="#{orderingList.bottomControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="topControlLabel" />
+ <h:inputText value="#{orderingList.topControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="downControlLabel" />
+ <h:inputText value="#{orderingList.downControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="showButtonLabels" />
+ <h:selectBooleanCheckbox value="#{orderingList.showButtonLabels}">
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="fastOrderControlsVisible" />
+ <h:selectBooleanCheckbox
+ value="#{orderingList.fastOrderControlsVisible}">
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="orderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{orderingList.orderControlsVisible}">
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{orderingList.rendered}"
+ onclick="submit();">
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getActiveItem" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('orderingListID').activeItem}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,113 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="orderingListStraightforwardSubviewID">
+
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{orderingList.bTest1}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1OrderingList}" />
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{orderingList.bTest2}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2OrderingList}" />
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{orderingList.bTest3}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3OrderingList}" />
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{orderingList.bTest4}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4OrderingList}" />
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{orderingList.bTest5}" value="run" reRender="richGridID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5OrderingList}" />
+
+ <a4j:commandButton value="Show selection (reRender)" reRender="infoPanelID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{orderingList.showSelect}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="infoPanelID" value="#{orderingList.info}" var="info" rendered="#{orderingList.showSelect}" border="1">
+ <h:column>
+ <h:outputText value="#{info}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all data (reRender)" reRender="allInfoPanelID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{orderingList.showAllData}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoPanelID" value="#{orderingList.list}" var="allInfo" rendered="#{orderingList.showAllData}" border="1">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} submit()" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <h:panelGroup>
+ <a4j:commandButton value="reRender" reRender="orderingListID"></a4j:commandButton>
+ <a4j:commandButton 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>
+
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2D.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2D.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2D.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,11 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="paint2DSubviewID">
+ <rich:paint2D id="paint2dID" binding="#{paint2D.htmlPaint2D}" 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}" />
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2DDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2DDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2DDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,5 @@
+<%@ 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"%>
+<rich:paint2D paint="#{paint2D.paint}" data="#{paintData}" width="200" height="200" />
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2DProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,100 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="Paint2DPropertySubviewID">
+ <h:commandButton value="add test" action="#{paintData.addHtmlPaint2D}"></h:commandButton>
+ <h:panelGrid columns="2" cellpadding="5px" border="2">
+ <h:outputText value="Text"></h:outputText>
+ <h:inputText value="#{paintData.text}">
+ <a4j:support event="onchange" reRender="paint2dID" />
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{paint2D.width}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{paint2D.height}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Vertical space: "></h:outputText>
+ <h:inputText value="#{paint2D.vspace}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Horizontal space: "></h:outputText>
+ <h:inputText value="#{paint2D.hspace}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="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" />
+ <f:selectItem itemLabel="middle" itemValue="middle" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <a4j:support event="onclick" reRender="paint2dID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Format:"></h:outputText>
+ <h:selectOneMenu value="#{paint2D.format}">
+ <f:selectItem itemLabel="jpeg" itemValue="jpeg" />
+ <f:selectItem itemLabel="gif" itemValue="gif" />
+ <f:selectItem itemLabel="png" itemValue="png" />
+ <a4j:support event="onclick" reRender="paint2dID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Background Colour"></h:outputText>
+ <h:selectOneMenu value="#{paint2D.bgcolor}">
+ <f:selectItem itemLabel="aqua" itemValue="aqua" />
+ <f:selectItem itemLabel="blue" itemValue="blue" />
+ <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
+ <f:selectItem itemLabel="gray" itemValue="gray" />
+ <f:selectItem itemLabel="lime" itemValue="lime" />
+ <f:selectItem itemLabel="maroon" itemValue="maroon" />
+ <f:selectItem itemLabel="purple" itemValue="purple" />
+ <f:selectItem itemLabel="red" itemValue="red" />
+ <f:selectItem itemLabel="silver" itemValue="silver" />
+ <f:selectItem itemLabel="teal" itemValue="teal" />
+ <f:selectItem itemLabel="yellow" itemValue="yellow" />
+ <f:selectItem itemLabel="white" itemValue="white" />
+ <a4j:support event="onclick" reRender="paint2dID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Style" />
+ <h:selectBooleanCheckbox value="#{paint2D.style}">
+ <a4j:support event="onclick" reRender="paint2dID,borderID" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Border: "></h:outputText>
+ <h:inputText id="borderID" disabled="#{paint2D.style}"
+ value="#{paint2D.border}">
+ <a4j:support event="onchange" reRender="paint2dID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{paint2D.rendered}"
+ onchange="submit();">
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getData" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('paint2dID').data.text}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2DStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2DStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Paint2D/Paint2DStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,30 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="Paint2DStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="paint2D straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{paint2D.bTest1}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Paint2D}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{paint2D.bTest2}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Paint2D}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{paint2D.bTest3}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Paint2D}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{paint2D.bTest4}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Paint2D}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{paint2D.bTest5}" value="run" reRender="paint2dID,paint2DPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Paint2D}"/>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Panel/Panel.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Panel/Panel.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Panel/Panel.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,119 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+
+<f:subview id="panelSubviewID">
+<h:panelGrid columnClasses="panel" border="0" columns="3">
+ <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>
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+</rich:panel>
+<h:outputText value="Panel 1, rendered: #{!panel.rendered}; Panel 2, rendered #{panel.rendered};"></h:outputText>
+
+<rich:panel binding="#{panel.htmlPanel}" rendered="#{!panel.rendered}" id="p1" style="width:#{panel.width};height:#{panel.height};overflow:auto;"
+ 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>
+
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText id="t2" value="#{panel.title[1]}"/>
+ </f:facet>
+ <h:panelGrid columns="2">
+ <h:outputText id="o1" value="width #{panel.title[2]}, eg. 250px"></h:outputText>
+ <h:inputText value="#{w}">
+ <a4j:support event="onchange" reRender="p3"></a4j:support>
+ </h:inputText>
+
+ <h:outputText id="o2" value="height #{panel.title[2]}, eg. 200px"></h:outputText>
+ <h:inputText value="#{h}">
+ <a4j:support event="onchange" reRender="p3"></a4j:support>
+ </h:inputText>
+ </h:panelGrid>
+
+ <rich:panel id="p3" style="width:#{w};height:#{h};overflow:auto;">
+ <f:facet name="header">
+ <h:outputText id="t3" value="#{panel.title[2]}"/>
+ </f:facet>
+ <h:graphicImage value="/pics/asus.jpg" width="150" height="100"></h:graphicImage>
+
+ </rich:panel>
+ </rich:panel>
+ <h:selectOneMenu value="#{richBean.srcContainer}" onchange="submit();">
+ <f:selectItems value="#{richBean.listContainer}"/>
+ </h:selectOneMenu>
+ <jsp:include flush="true" page="${richBean.pathComponentContainer}"/>
+</rich:panel>
+
+<rich:panel id="panelId" rendered="#{panel.rendered}"
+ style="width:#{panel.width};height:#{panel.height}"
+ onclick="#{event.onclick}" ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}">
+ <f:verbatim>This is panel 2 example...(Test events)</f:verbatim>
+</rich:panel>
+</f:subview>
+
Added: trunk/test-applications/auto-jsp/src/main/webapp/Panel/PanelDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Panel/PanelDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Panel/PanelDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,11 @@
+<%@ 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"%>
+<rich:panel styleClass="top">
+ <f:facet name="header">
+ <h:outputText value="default panel" />
+ </f:facet>
+
+ <h:outputText value="This is default panel. content here" />
+</rich:panel>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Panel/PanelProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Panel/PanelProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Panel/PanelProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,38 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="PanelPropertySubviewID">
+<h:commandButton value="add test" action="#{panel.addHtmlPanel}"></h:commandButton>
+ <h:panelGrid columns="2" cellpadding="10px">
+ <h:outputText value="Title"></h:outputText>
+ <h:inputText valueChangeListener="#{panel.makeTitle}">
+ <a4j:support event="onchange" reRender="t1,t2,t3,o1,o2"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{panel.width}">
+ <a4j:support event="onchange" reRender="panelId,p1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{panel.height}">
+ <a4j:support event="onchange" reRender="panelId,p1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panel.rendered}" onclick="submit()"></h:selectBooleanCheckbox>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRendererType" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('panelId').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Panel/PanelStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Panel/PanelStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Panel/PanelStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="PanelStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{panel.bTest1}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Panel}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{panel.bTest2}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Panel}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{panel.bTest3}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Panel}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{panel.bTest4}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Panel}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{panel.bTest5}" value="run" reRender="panelPropertyID,panelId,p1,t1,t2,t3,o1,o2"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Panel}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBar.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBar.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBar.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,46 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="panelBarSubviewID">
+ <rich:panelBar binding="#{panelBar.panelBar}" id="pBId" height="#{panelBar.height}"
+ width="#{panelBar.width}" contentClass="#{panelBar.contentStyle}"
+ styleClass="#{panelBar.style}" selectedPanel="pBiId4"
+
+ onclick="#{event.onclick}" onitemchange="#{event.onitemchange}"
+ onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}">
+ <rich:panelBarItem rendered="#{panelBar.rendered}" id="pBiId1"
+ label="#{panelBar.label[0]}" headerClass="#{panelBar.headerStyle}">
+ <h:outputText value="Some text..."></h:outputText>
+ <h:outputLink value="http://www.jboss.com/">
+ <f:verbatim>Link</f:verbatim>
+ </h:outputLink>
+ </rich:panelBarItem>
+
+ <rich:panelBarItem id="pBiId2" label="#{panelBar.label[1]}"
+ headerClass="#{panelBar.headerStyle}">
+ <h:graphicImage value="/pics/masshtaby_01.jpg" width="300"
+ height="200"></h:graphicImage>
+ </rich:panelBarItem>
+
+ <rich:panelBarItem id="pBiId3" label="#{panelBar.label[2]}"
+ headerClass="#{panelBar.headerStyle}">
+ <f:facet name="openMarker">
+ <h:graphicImage value="/pics/ajax_process.gif"></h:graphicImage>
+ </f:facet>
+ <f:facet name="closeMarker">
+ <h:graphicImage value="/pics/ajax_stoped.gif"></h:graphicImage>
+ </f:facet>
+ <h:graphicImage value="/pics/podb109_61.jpg" width="300" height="200"></h:graphicImage>
+ </rich:panelBarItem>
+
+ <rich:panelBarItem id="pBiId4" label="#{panelBar.label[3]}"
+ headerClass="#{panelBar.headerStyle}">
+ <h:outputText value="Select Panel"></h:outputText>
+ </rich:panelBarItem>
+ </rich:panelBar>
+
+ <rich:spacer height="20px"></rich:spacer>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBarDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBarDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBarDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,12 @@
+<%@ 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"%>
+<rich:panelBar>
+ <rich:panelBarItem>
+ <h:outputText value="bar item 1" />
+ </rich:panelBarItem>
+ <rich:panelBarItem>
+ <h:outputText value="bar item 2" />
+ </rich:panelBarItem>
+</rich:panelBar>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,48 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="panelBarPropertySubviewID">
+<h:commandButton value="add test" action="#{panelBar.addHtmlPanelBar}"></h:commandButton>
+ <h:panelGrid columns="2" cellspacing="10px">
+ <h:outputText value="Label: "></h:outputText>
+ <h:inputText valueChangeListener="#{panelBar.makeLabels}">
+ <a4j:support event="onchange" reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{panelBar.width}">
+ <a4j:support event="onchange" reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{panelBar.height}">
+ <a4j:support event="onchange" reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelBar.rendered}">
+ <a4j:support event="onchange" reRender="pBId" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{panelBar.doStyles}"
+ value="#{panelBar.btnLabel}" />
+
+ <h:outputText value="Binding test:" />
+ <a4j:commandButton value="Go"
+ actionListener="#{panelBar.actionListener}"></a4j:commandButton>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getSelectedPanel" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('pBId').selectedPanel}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/PanelBar/PanelBarStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="panelBarStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{panelBar.bTest1}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t1PanelBar}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{panelBar.bTest2}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t2PanelBar}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{panelBar.bTest3}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t3PanelBar}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{panelBar.bTest4}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t4PanelBar}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{panelBar.bTest5}" value="run" reRender="pbPropertyID,pBId"></a4j:commandButton>
+ <h:outputText value="#{msg.t5PanelBar}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenu.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenu.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenu.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,202 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="panelMenuSubviewID">
+ <rich:panelMenu binding="#{panelMenu.myPanelMenu}" id="panelMenuID" disabled="#{panelMenu.disabled}" width="#{panelMenu.width}" selectedChild="thisChild"
+ expandSingle="#{panelMenu.expandSingle}" mode="#{panelMenu.mode}" value="PanelMenu" rendered="#{panelMenu.rendered}"
+ iconCollapsedGroup="#{panelMenu.icon.collapsedGroup}" iconCollapsedTopGroup="#{panelMenu.icon.collapsedTopGroup}"
+ iconDisabledGroup="#{panelMenu.icon.disabledGroup}" iconDisabledItem="#{panelMenu.icon.disabledItem}"
+ iconExpandedGroup="#{panelMenu.icon.expandedGroup}" iconExpandedTopGroup="#{panelMenu.icon.expandedTopGroup}"
+ iconItem="#{panelMenu.icon.item}" iconTopDisabledItem="#{panelMenu.icon.disabledItem}"
+ iconTopDisableGroup="#{panelMenu.icon.disabledGroup}" iconTopItem="#{panelMenu.icon.topItem}"
+ iconGroupPosition="#{panelMenu.iconGroupPosition}" iconGroupTopPosition="#{panelMenu.iconGroupTopPosition}"
+ iconItemPosition="#{panelMenu.iconItemPosition}" iconItemTopPosition="#{panelMenu.iconItemTopPosition}" styleClass="sPanel"
+ onclick="#{event.onclick}" ondblclick="#{event.ondblclick}" ongroupcollapse="#{event.ongroupcollapse}"
+ ongroupexpand="#{event.ongroupexpand}" onitemhover="#{event.onitemhover}" onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}">
+
+ <rich:panelMenuItem label="Item 1(Test event)" onclick="#{event.onclick}" ondblclick="#{event.ondblclick}"
+ onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}"
+ onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
+ onbeforedomupdate="#{event.onbeforedomupdate}" oncomplete="#{event.oncomplete}" onmouseup="#{event.onmouseup}"></rich:panelMenuItem>
+
+ <rich:panelMenuItem>
+ <h:outputText value="select "></h:outputText>
+ <h:selectOneMenu value="#{richBean.srcContainer}" onchange="submit();">
+ <f:selectItems value="#{richBean.listContainer}" />
+ </h:selectOneMenu>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem>
+ <jsp:include flush="true" page="${richBean.pathComponentContainer}" />
+ </rich:panelMenuItem>
+ <rich:panelMenuItem disabled="true" iconDisabled="/pics/ajax_stoped.gif">
+ <h:outputText value="Disabled Item" />
+ </rich:panelMenuItem>
+ <rich:panelMenuItem label="Item Image">
+ <h:graphicImage value="/pics/item.png"></h:graphicImage>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem>
+ <h:outputText value="Item4" />
+ </rich:panelMenuItem>
+ <rich:panelMenuItem>
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem label="CheckBox">
+ <h:selectBooleanCheckbox value="false"></h:selectBooleanCheckbox>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem>
+ <h:outputText value="CheckBox 2"></h:outputText>
+ <h:selectBooleanCheckbox value="false"></h:selectBooleanCheckbox>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem label="Action" onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
+
+ <rich:panelMenuGroup label="Group 1(expanded=true)" expanded="true" id="pmg">
+ <rich:panelMenuItem label="Item 1" disabled="true"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 1 (action)" onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
+
+ <rich:panelMenuGroup label="Group 1_1 (align)" align="#{panelMenu.align}">
+ <rich:panelMenuItem label="Imem 1_1">
+ <h:inputText value="#{panelMenu.inputText}"></h:inputText>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem label="Item 1_2"></rich:panelMenuItem>
+
+ <rich:panelMenuGroup label="Group 1_1_1">
+ <rich:panelMenuItem label="Item 1 (action)" onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+
+ <rich:panelMenuGroup label="Group 1_1_2">
+ <rich:panelMenuItem label="Item 1"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 3"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 4"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ </rich:panelMenuGroup>
+
+ <rich:panelMenuGroup label="Group 1_2 (disabled, action)" disabled="true" onmousedown="alert('Disabled');">
+ <rich:panelMenuItem label="Item 1_2_1"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+
+ <rich:panelMenuGroup label="Group 1_3">
+ <rich:panelMenuItem label="Item 1_3_1"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 1_3_1"></rich:panelMenuItem>
+
+ <rich:panelMenuGroup label="Group disabled" disabled="true">
+ </rich:panelMenuGroup>
+ </rich:panelMenuGroup>
+
+ </rich:panelMenuGroup>
+
+ <rich:panelMenuGroup id="mg2" label="Group 2 ">
+ <rich:panelMenuItem label="Item 2_1"></rich:panelMenuItem>
+
+ <rich:panelMenuGroup label="Group 2_2">
+ <rich:panelMenuItem label="Item 1"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+
+ <rich:panelMenuItem label="Item 1"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+
+ <rich:panelMenuGroup label="Group 3">
+ <rich:panelMenuItem label="Item 3_1">
+ <f:verbatim>
+ <br />
+ text <br />
+ text <br />
+ text
+ </f:verbatim>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 3_2">
+ <h:graphicImage value="/pics/benq.jpg" width="150px" height="100px"></h:graphicImage>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 3_3"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ </rich:panelMenu>
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <h:outputText id="info"
+ value="Expand Mode: #{panelMenu.mode}, Disabled: #{!panelMenu.disabled}, Align: #{panelMenu.align}, Tab Index: #{panelMenu.tabIndex}"></h:outputText>
+ <!-- triangleUp triangle triangleDown disc chevron chevronUp chevronDown grid -->
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+
+ <rich:panelMenu id="panelMenuID2" expandMode="#{panelMenu.mode}" disabled="#{!panelMenu.disabled}" width="#{panelMenu.width}"
+ selectedChild="thisChild" styleClass="body">
+ <rich:panelMenuGroup label="Group 1 (tabIdex, my Image)" tabindex="#{panelMenu.tabIndex}" align="#{panelMenu.align}">
+ <rich:panelMenuGroup label="Group 1_1 (tabIndex)" tabindex="#{panelMenu.tabIndex}">
+ <rich:panelMenuGroup label="Group 1_1_1 (tabIndex)" tabindex="#{panelMenu.tabIndex}">
+ <rich:panelMenuItem label="Item 1"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ </rich:panelMenuGroup>
+
+ <rich:panelMenuGroup label="Group 1_2 (tabIndex)" tabindex="#{panelMenu.tabIndex}">
+ <rich:panelMenuGroup label="Group 1_2_1 (tabIndex)" tabindex="#{panelMenu.tabIndex}">
+ <rich:panelMenuItem label="Item (icon)" icon="#{icon.iconItem}"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item (iconDisabled)" iconDisabled="#{icon.iconHeader}"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item (icon)" disabled="true" icon="#{icon.iconItem}"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item (iconDisabled)" disabled="true" iconDisabled="#{icon.iconItem}"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ <rich:panelMenuItem label="Item (icon)" icon="#{icon.iconItem}"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item (icon)" icon="#{icon.iconItem}"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item "></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+
+ <rich:panelMenuGroup label="Group 1_3" align="#{panelMenu.align}" iconCollapsed="#{icon.iconCollapse}"
+ iconExpanded="#{icon.iconExpand}" iconDisabled="#{icon.disabled}">
+ <rich:panelMenuItem label="Item 1"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 3"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+
+ <!-- triangleUp triangle triangleDown disc chevron chevronUp chevronDown grid -->
+ <rich:panelMenuItem label="Item (disc)" icon="disc"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item (grid)" icon="grid"></rich:panelMenuItem>
+ <rich:panelMenuGroup label="Group" iconCollapsed="triangleDown" iconExpanded="triangleUp" iconDisabled="triangle">
+ <rich:panelMenuGroup label="Group" iconCollapsed="chevronDown" iconExpanded="chevronUp" iconDisabled="chevron">
+ <rich:panelMenuItem label="Item (disc)" icon="disc"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item (grid)" iconDisabled="grid"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item (grid)" icon="grid"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item (disc)" iconDisabled="disc"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ <rich:panelMenuItem label="Item (icon)" icon="#{icon.iconItem}"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item (icon)" icon="#{icon.iconItem}"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item "></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+
+ <rich:panelMenuGroup label="Group 1_3" iconCollapsed="chevronDown" iconExpanded="chevronUp" iconDisabled="chevron">
+ <rich:panelMenuItem label="Item 1"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 3"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ </rich:panelMenuGroup>
+ </rich:panelMenu>
+<h:panelGrid columns="1">
+<h:outputText value="JavaScript API" style="FONT-WEIGHT: bold;"></h:outputText>
+<h:commandLink onclick="$('formID:panelMenuSubviewID:pmg').component.expand();return false;" value="expand()"></h:commandLink>
+<h:commandLink onclick="$('formID:panelMenuSubviewID:pmg').component.collapse();return false;" value="collapse()"></h:commandLink>
+</h:panelGrid>
+<br />
+<f:verbatim>
+<h:outputText value="Component Control test" style="FONT-WEIGHT: bold;"></h:outputText>
+<br />
+<a href="#" id="expandID">expand</a>
+<br />
+<a href="#" id="collapseID">collapse</a>
+</f:verbatim>
+<rich:componentControl attachTo="expandID" event="onclick" for="pmg" operation="expand"></rich:componentControl>
+<rich:componentControl attachTo="collapseID" event="onclick" for="pmg" operation="collapse"></rich:componentControl>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenuDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenuDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenuDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,12 @@
+<%@ 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"%>
+<rich:panelMenu>
+ <rich:panelMenuItem label="item 1"></rich:panelMenuItem>
+ <rich:panelMenuItem label="item 2"></rich:panelMenuItem>
+ <rich:panelMenuGroup label="gruop">
+ <rich:panelMenuItem label="item 3"></rich:panelMenuItem>
+ <rich:panelMenuItem label="item 4"></rich:panelMenuItem>
+ </rich:panelMenuGroup>
+</rich:panelMenu>>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenuProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,355 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="panelMenuPropertySubviewID">
+<h:commandButton value="add test" action="#{panelMenu.addHtmlPanelMenu}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="Width"></h:outputText>
+ <h:inputText value="#{panelMenu.width}">
+ <a4j:support event="onchange"
+ reRender="panelMenuID,panelMenuID2,info"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Tab Index"></h:outputText>
+ <h:inputText value="#{panelMenu.tabIndex}">
+ <a4j:support event="onchange"
+ reRender="panelMenuID,panelMenuID2,info"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Expand Single"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelMenu.expandSingle}">
+ <a4j:support event="onchange" reRender="panelMenuID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Mode"></h:outputText>
+ <h:selectOneRadio value="#{panelMenu.mode}" id="Mode1ID"
+ onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Expand mode"></h:outputText>
+ <h:selectOneRadio value="#{panelMenu.expandMode}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Disabled"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelMenu.disabled}">
+ <a4j:support event="onchange"
+ reRender="panelMenuID,panelMenuID2,info"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelMenu.rendered}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+ </h:panelGrid>
+
+ <h:panelGrid columns="4">
+ <h:outputText value="Icon"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.icon}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Item"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.item}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item " itemValue="#{icon.iconItem}" />
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Disabled"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.disabled}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Disabled Item"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.disabledItem}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Top Item"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.topItem}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Top Disabled Item"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.topDisabledItem}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Expanded Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.expandedGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon CollapsedGroup"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.collapsedGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Disabled Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.disabledGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Expanded Top Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.expandedTopGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Collapsed Top Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.collapsedTopGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Top Disable Group"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.topDisableGroup}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Expanded"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.expanded}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Collapsed"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.icon.collapsed}">
+ <f:selectItem itemLabel="none" itemValue="#{icon.none}" />
+ <f:selectItem itemLabel="Ajax Process"
+ itemValue="#{icon.iconAjaxProcess}" />
+ <f:selectItem itemLabel="Ajax Stoped"
+ itemValue="#{icon.iconAjaxStoped}" />
+ <f:selectItem itemLabel="Collapse" itemValue="#{icon.iconCollapse}" />
+ <f:selectItem itemLabel="Expand" itemValue="#{icon.iconExpand}" />
+ <f:selectItem itemLabel="File Manager"
+ itemValue="#{icon.iconFileManager}" />
+ <f:selectItem itemLabel="File Manager Reject"
+ itemValue="#{icon.iconFileManagerReject}" />
+ <f:selectItem itemLabel="Header" itemValue="#{icon.iconHeader}" />
+ <f:selectItem itemLabel="Item" itemValue="#{icon.iconItem}" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+ </h:panelGrid>
+ <br />
+ <h:panelGrid columns="4">
+ <h:outputText value="icon Group Position"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.iconGroupPosition}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Group Top Position"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.iconGroupTopPosition}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Item Position"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.iconItemPosition}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="icon Item Top Position"></h:outputText>
+ <h:selectOneMenu value="#{panelMenu.iconItemTopPosition}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="panelMenuID"></a4j:support>
+ </h:selectOneMenu>
+ </h:panelGrid>
+ <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>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('panelMenuID').value}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/PanelMenu/PanelMenuStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="panelMenuStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{panelMenu.bTest1}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t1PanelMenu}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{panelMenu.bTest2}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t2PanelMenu}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{panelMenu.bTest3}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t3PanelMenu}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{panelMenu.bTest4}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t4PanelMenu}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{panelMenu.bTest5}" value="run" reRender="pmPropertyID,panelMenuID,panelMenuID2,info"></a4j:commandButton>
+ <h:outputText value="#{msg.t5PanelMenu}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/PickList/PickList.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/PickList/PickList.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/PickList/PickList.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,43 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<f:subview id="pickListSubviewID">
+ <rich:pickList id="pickListID" value="#{pickList.value}"
+ showButtonsLabel="#{pickList.showButtonLabels}"
+ valueChangeListener="#{pickList.valueChangeListener}"
+ controlClass="#{style.controlClass}"
+ listClass="#{style.listClass}"
+ style="#{style.style}" styleClass="#{style.styleClass}"
+ copyAllControlLabel="#{pickList.copyAllControlLabel}"
+ copyControlLabel="#{pickList.copyControlLabel}"
+ disabled="#{pickList.copyControlLabel}"
+ immediate="#{pickList.immediate}"
+ listsHeight="#{pickList.listsHeight}"
+ moveControlsVerticalAlign="#{pickList.moveControlsVerticalAlign}"
+ removeAllControlLabel="#{pickList.removeAllControlLabel}"
+ removeControlLabel="#{pickList.removeControlLabel}"
+ rendered="#{pickList.rendered}"
+ sourceListWidth="#{pickList.sourceListWidth}"
+ title="#{pickList.title}" switchByClick="#{pickList.switchByClick}"
+ targetListWidth="#{pickList.targetListWidth}"
+ required="#{pickList.required}"
+ requiredMessage="#{pickList.requiredMessage}"
+ onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}"
+ onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}"
+ binding="#{pickList.myPickList}">
+ <f:selectItems value="#{pickList.data}"/>
+ </rich:pickList>
+ <h:panelGrid columns="2">
+ <a4j:commandButton value="refresh" reRender="pickListvalueCLID"></a4j:commandButton>
+ <h:outputText id="pickListvalueCLID" value="#{pickList.valueCL}"></h:outputText>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/PickList/PickListDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/PickList/PickListDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/PickList/PickListDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,11 @@
+<%@ 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"%>
+<rich:pickList>
+ <f:selectItem itemValue="Item 1" itemLabel="Item 1" />
+ <f:selectItem itemValue="Item 2" itemLabel="Item 2" />
+ <f:selectItem itemValue="Item 3" itemLabel="Item 3" />
+ <f:selectItem itemValue="Item 4" itemLabel="Item 4" />
+ <f:selectItem itemValue="Item 5" itemLabel="Item 5" />
+</rich:pickList>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/PickList/PickListProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/PickList/PickListProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/PickList/PickListProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,94 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<f:subview id="pickListPropertySubviewID">
+<h:commandButton value="add test" action="#{pickList.addHtmlPickList}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <a4j:commandButton reRender="pickListTargenID" value="refresh target"></a4j:commandButton>
+ <h:dataTable id="pickListTargenID" value="#{pickList.value}"
+ var="list" border="1">
+ <h:column>
+ <h:outputText value="#{list}"></h:outputText>
+ </h:column>
+ </h:dataTable>
+
+ <h:outputText value="title:"></h:outputText>
+ <h:inputText value="#{pickList.title}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="moveControlsVerticalAlign:"></h:outputText>
+ <h:inputText value="#{pickList.moveControlsVerticalAlign}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="showButtonLabels:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{pickList.showButtonLabels}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="copyAllControlLabel:"></h:outputText>
+ <h:inputText value="#{pickList.copyAllControlLabel}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="copyControlLabel:"></h:outputText>
+ <h:inputText value="#{pickList.copyControlLabel}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="removeControlLabel:"></h:outputText>
+ <h:inputText value="#{pickList.removeControlLabel}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="removeAllControlLabel:"></h:outputText>
+ <h:inputText value="#{pickList.removeAllControlLabel}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="switchByClick:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{pickList.switchByClick}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="listsHeight:"></h:outputText>
+ <h:inputText value="#{pickList.listsHeight}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="sourceListWidth:"></h:outputText>
+ <h:inputText value="#{pickList.sourceListWidth}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="targetListWidth:"></h:outputText>
+ <h:inputText value="#{pickList.targetListWidth}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="fastOrderControlsVisible:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{pickList.fastOrderControlsVisible}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{pickList.rendered}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="immediate:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{pickList.immediate}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="disabled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{pickList.disabled}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="required:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{pickList.required}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage:"></h:outputText>
+ <h:inputText value="#{pickList.requiredMessage}" onchange="submit();"></h:inputText>
+
+ <h:commandButton actionListener="#{pickList.checkBinding}"
+ value="Binding"></h:commandButton>
+ <h:outputText value="#{pickList.bindLabel}"></h:outputText>
+
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getSelectedValues" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('pickListID').selectedValues}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/ProgressBar/ProgressBar.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ProgressBar/ProgressBar.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ProgressBar/ProgressBar.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,159 @@
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+<f:subview id="progressBarSubviewID">
+ <rich:progressBar id="progressBarID" binding="#{progressBar.htmlProgressBar}"
+ ajaxSingle="#{progressBar.ajaxSingle}" label="#{progressBar.label}"
+ immediate="#{progressBar.immediate}" value="#{progressBar.value}"
+ style="width: 450px; height: 19px;#{style.style};"
+ completeClass="#{style.completeClass}"
+ finishClass="#{style.finishClass}"
+ initialClass="#{style.initialClass}"
+ remainClass="#{style.remainClass}" styleClass="#{style.styleClass}"
+ mode="#{progressBar.mode}" enabled="#{progressBar.enabled}"
+ actionListener="#{progressBar.actionListener}"
+ interval="#{progressBar.interval}" maxValue="#{progressBar.maxValue}"
+ minValue="#{progressBar.minValue}" rendered="#{progressBar.rendered}"
+ reRender="loadInfoPBID,valuePBID" progressVar="progressVar"
+ parameters="params:'%'" reRenderAfterComplete="completedPBID"
+ ignoreDupResponses="#{progressBar.ignoreDupResponses}"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ onclick="#{event.onclick}" oncomplete="#{event.oncomplete}"
+ ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}" onsubmit="#{event.onsubmit}">
+ <f:facet name="initial">
+ <h:outputText value="Process not started"></h:outputText>
+ </f:facet>
+ <f:facet name="complete">
+ <h:outputText value="Process completed"></h:outputText>
+ </f:facet>
+ <h:outputText
+ value="{minValue} {params} / {value} {params}/ {maxValue} {params}"></h:outputText>
+ <h:outputText id="loadInfoPBID"
+ value="[Load: #{progressBar.loadInfo}]" />
+ <h:graphicImage value="/pics/ajax_process.gif" />
+
+ </rich:progressBar>
+
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+
+ <h:outputText
+ value="[parameters=params:'%'], [{progressVar} | {minValue} {params} / {value} {params}/ {maxValue} {params}]" />
+ <h:panelGrid columns="1">
+ <a4j:commandButton value="getValue"
+ onclick="alert($('formID:progressBarSubviewID:progressBarID').component.getValue())"></a4j:commandButton>
+ <a4j:commandLink value="setLabel"
+ onclick="$('formID:progressBarSubviewID:progressBarID').component.setLabel('setLabel work')"></a4j:commandLink>
+ <a4j:commandLink value="setValue(0)"
+ onclick="$('formID:progressBarSubviewID:progressBarID').component.setValue('0')"></a4j:commandLink>
+ <a4j:commandLink value="disable"
+ onclick="$('formID:progressBarSubviewID:progressBarID').component.disable();"></a4j:commandLink>
+ <a4j:commandLink value="enable"
+ onclick="$('formID:progressBarSubviewID:progressBarID').component.enable(event);"></a4j:commandLink>
+ </h:panelGrid>
+ <br />
+ <f:verbatim>
+ <h:outputText value="Component control test"
+ style="FONT-WEIGHT: bold;"></h:outputText>
+ <br />
+ <a href="#" id="setLabelID">setLabel</a>
+ <br />
+ <a href="#" id="setValueID">setValue(0)</a>
+ <br />
+ <a href="#" id="disableID">disable</a>
+ <br />
+ <a href="#" id="enableID">enable</a>
+ </f:verbatim>
+ <rich:componentControl attachTo="setLabelID" event="onclick"
+ for="progressBarID" operation="setLabel" attachTiming="onload">
+ <f:param name="label" value="new label" />
+ </rich:componentControl>
+ <rich:componentControl attachTo="setValueID" event="onclick"
+ for="progressBarID" operation="setValue" params="value:0"></rich:componentControl>
+ <rich:componentControl attachTo="disableID" event="onclick"
+ for="progressBarID" operation="disable"></rich:componentControl>
+ <rich:componentControl attachTo="enableID" event="onclick"
+ for="progressBarID" operation="enable"></rich:componentControl>
+ <h:panelGrid columns="2">
+ <h:outputText value="first value:" />
+ <h:outputText value="#{progressBar.value}" />
+ <h:outputText value="completed value:" />
+ <h:outputText id="completedPBID" value="#{progressBar.value}" />
+ </h:panelGrid>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="value:" />
+ <h:inputText id="valuePBID" value="#{progressBar.value}">
+ <a4j:support event="onchange" reRender="progressBarID"></a4j:support>
+ </h:inputText>
+ <h:outputText value="label:" />
+ <h:inputText value="#{progressBar.label}">
+ <a4j:support event="onchange" reRender="progressBarID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="interval:" />
+ <h:inputText value="#{progressBar.interval}">
+ <a4j:support event="onchange" reRender="progressBarID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="mode:" />
+ <h:selectOneRadio value="#{progressBar.mode}">
+ <f:selectItem itemValue="ajax" itemLabel="ajax" />
+ <f:selectItem itemValue="client" itemLabel="client" />
+ <a4j:support event="onchange" reRender="progressBarID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="enabled" />
+ <h:selectBooleanCheckbox value="#{progressBar.enabled}">
+ <a4j:support event="onchange" reRender="progressBarID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="ajaxSingle" />
+ <h:selectBooleanCheckbox value="#{progressBar.ajaxSingle}">
+ <a4j:support event="onchange" reRender="progressBarID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="permanent:" />
+ <h:selectBooleanCheckbox value="#{progressBar.permanent}"
+ onchange="submit();" />
+
+ <h:outputText value="minValue:" />
+ <h:inputText value="#{progressBar.minValue}" onchange="submit();" />
+
+ <h:outputText value="maxValue:" />
+ <h:inputText value="#{progressBar.maxValue}" onchange="submit();" />
+
+ <h:outputText value="ignoreDupResponses" />
+ <h:selectBooleanCheckbox value="#{progressBar.ignoreDupResponses}"
+ onchange="submit();" />
+
+ <h:outputText value="rendered:" />
+ <h:selectBooleanCheckbox value="#{progressBar.rendered}"
+ onchange="submit();" />
+
+ <h:outputText value="immediate" />
+ <h:selectBooleanCheckbox value="#{progressBar.immediate}">
+ <a4j:support event="onchange" reRender="progressBarID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{rich:findComponent('progressBarID').value}" id="findID"/>
+ </rich:column>
+ </h:panelGrid>
+ <h:commandButton value="add test" action="#{progressBar.addHtmlProgressBar}"></h:commandButton>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/ProgressBar/ProgressBarDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ProgressBar/ProgressBarDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ProgressBar/ProgressBarDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
Added: trunk/test-applications/auto-jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,261 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="scrollableDataTableSubviewID">
+ <h:panelGrid columns="7" border="1" style="font-size:12px">
+ <h:outputText value="#1 "></h:outputText>
+ <h:outputText value="#2 Text"></h:outputText>
+ <h:outputText value="#3 Link"></h:outputText>
+ <h:outputText value="#4 Select"></h:outputText>
+ <h:outputText value="#5 Icon"></h:outputText>
+ <h:outputText value="#6 outputLink"></h:outputText>
+ <h:outputText value="#7 Date"></h:outputText>
+
+ <h:panelGrid columns="1" title="1">
+ <h:outputText value="sortBy" />
+ <h:outputText value="sortable='true'" />
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="2">
+ <h:outputText value="sortBy" />
+ <h:outputText value="sortable='false'" />
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="3">
+ <h:outputText value="sortBy" />
+ <h:outputText value="undefined sortable" />
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="4">
+ <h:outputText value="sortBy" />
+ <h:outputText value="undefined sortable" />
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="5">
+ <h:outputText value="sortBy" />
+ <h:outputText value="undefined sortable" />
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="6">
+ <h:outputText value="undefined sortBy" />
+ <h:outputText value="undefined sortable" />
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="7">
+ <h:outputText value="sortBy" />
+ <h:outputText value="sortable='true'" />
+ </h:panelGrid>
+ </h:panelGrid>
+ <br />
+ <rich:scrollableDataTable
+ binding="#{scrollableDT.htmlScrollableDataTable}" id="sdt" var="sdt"
+ rowKeyVar="key" onRowDblClick="alert('row: #{key}')"
+ rowKeyConverter="#{dataConverter}" 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}" timeout="#{scrollableDT.timeout}"
+ sortMode="#{scrollableDT.sortMode}" eventsQueue="myEventsQueue"
+ columnClasses="#{style.columnClasses}"
+ footerClass="#{style.footerClass}" headerClass="#{style.headerClass}"
+ rowClasses="#{style.rowClasses}" activeClass="#{style.activeClass}"
+ styleClass="#{style.styleClass}" style="#{style.style}"
+ selectedClass="#{style.selectedClass}"
+ onRowMouseDown="#{event.onRowMouseDown}"
+ onRowMouseUp="#{event.onRowMouseUp}"
+ onselectionchange="#{event.onselectionchange}"
+ selection="#{scrollableDT.selection}">
+ <f:facet name="header">
+ <h:outputText value="facet header"></h:outputText>
+ </f:facet>
+ <rich:column sortBy="#{sdt.int0}" sortable="true" id="colID">
+ <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 sortBy="#{sdt.str0}" sortable="false">
+ <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 sortBy="#{sdt.str1}">
+ <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 sortBy="#{sdt.str2}">
+ <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 sortBy="#{sdt.str3}">
+ <f:facet name="header">
+ <h:outputText value="Icon"></h:outputText>
+ </f:facet>
+ <h:graphicImage value="#{sdt.str3}"></h:graphicImage>
+ <f:facet name="footer">
+ <h:outputText value="Icon"></h:outputText>
+ </f:facet>
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="outputLink"></h:outputText>
+ </f:facet>
+ <h:outputLink value="http://www.jboss.com/">
+ <f:verbatim>Link</f:verbatim>
+ </h:outputLink>
+ <f:facet name="footer">
+ <h:outputText value="outputLink"></h:outputText>
+ </f:facet>
+ </rich:column>
+
+ <rich:column sortBy="#{sdt.date0}" sortable="true">
+ <f:facet name="header">
+ <h:outputText value="Date" />
+ </f:facet>
+ <h:outputText value="#{sdt.date0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="Date" />
+ </f:facet>
+ </rich:column>
+
+ <f:facet name="footer">
+ <h:outputText value="facet footer"></h:outputText>
+ </f:facet>
+ </rich:scrollableDataTable>
+ <br />
+ <a4j:commandButton value="Show Current Selection" reRender="table"
+ action="#{scrollableDT.takeSelection}"
+ oncomplete="javascript:Richfaces.showModalPanel('panel');" />
+
+ <rich:modalPanel id="panel" autosized="true" keepVisualState="false">
+ <f:facet name="header">
+ <h:outputText value="Selected Rows" />
+ </f:facet>
+ <f:facet name="controls">
+ <a4j:commandLink style="cursor: pointer"
+ onclick="javascript:Richfaces.hideModalPanel('panel')" value="X" />
+ </f:facet>
+ <h:panelGroup layout="block" styleClass="scrolls">
+ <rich:dataTable value="#{scrollableDT.selectedRows}" var="sel"
+ id="table">
+ <rich:column sortBy="#{sel.int0}" sortable="true" id="colID">
+ <f:facet name="header">
+ <h:outputText value="#" />
+ </f:facet>
+ <h:outputText value="#{sel.int0}"></h:outputText>
+ </rich:column>
+
+ <rich:column sortBy="#{sel.str0}" sortable="false">
+ <f:facet name="header">
+ <h:outputText value="Text"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{sel.str0}"></h:outputText>
+ </rich:column>
+
+ <rich:column sortBy="#{sel.str1}">
+ <f:facet name="header">
+ <h:outputText value="Link"></h:outputText>
+ </f:facet>
+ <a4j:commandLink value="#{sel.str1}" reRender="sdt"></a4j:commandLink>
+ </rich:column>
+
+ <rich:column sortBy="#{sel.str2}">
+ <f:facet name="header">
+ <h:outputText value="Select"></h:outputText>
+ </f:facet>
+ <h:selectOneMenu value="#{sel.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>
+ </rich:column>
+
+ <rich:column sortBy="#{sel.str3}">
+ <f:facet name="header">
+ <h:outputText value="Icon"></h:outputText>
+ </f:facet>
+ <h:graphicImage value="#{sel.str3}"></h:graphicImage>
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="outputLink"></h:outputText>
+ </f:facet>
+ <h:outputLink value="http://www.jboss.com/">
+ <f:verbatim>Link</f:verbatim>
+ </h:outputLink>
+ </rich:column>
+
+ <rich:column sortBy="#{sel.date0}" sortable="true">
+ <f:facet name="header">
+ <h:outputText value="Date" />
+ </f:facet>
+ <h:outputText value="#{sel.date0}"></h:outputText>
+ </rich:column>
+ </rich:dataTable>
+ </h:panelGroup>
+ </rich:modalPanel>
+ <br />
+ <h:panelGrid columns="2" border="1">
+ <h:panelGroup>
+ <h:outputText value="JS API test" style="FONT-WEIGHT: bold;"></h:outputText>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:scrollableDataTableSubviewID:sdt').component.collapse(colID)"
+ value="collapse('colID')"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:scrollableDataTableSubviewID:sdt').component.expand(colID)"
+ value="expand('colID')"></a4j:commandLink>
+ </h:panelGroup>
+ <h:panelGroup>
+ <f:verbatim>
+ <h:outputText value="Component control+JS API"
+ style="FONT-WEIGHT: bold;"></h:outputText>
+ <br />
+ <a href="#" id="collapseID">collapseID</a>
+ <br />
+ <a href="#" id="expandID">expandID</a>
+ </f:verbatim>
+ <rich:componentControl attachTo="collapseID" event="onclick"
+ for="sdt" operation="collapse">
+ <f:param value="colID" name="colID" />
+ </rich:componentControl>
+ <rich:componentControl attachTo="expandID" event="onclick" for="sdt"
+ operation="expand">
+ <f:param value="colID" name="colID" />
+ </rich:componentControl>
+ </h:panelGroup>
+ </h:panelGrid>
+ <br />
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
Added: trunk/test-applications/auto-jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,83 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="scrollableDataTablePropertySubviewID">
+ <h:commandButton value="add test"
+ action="#{scrollableDT.addHtmlScrollableDataTable}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="length:"></h:outputText>
+ <h:panelGroup>
+ <h:inputText value="#{scrollableDT.dataLength}"></h:inputText>
+ <a4j:commandButton action="#{scrollableDT.addNewItem}" reRender="sdt"
+ value="ok" />
+ </h:panelGroup>
+ <h:outputText value="rows:" />
+ <h:inputText value="#{scrollableDT.rows}" onchange="submit();">
+ </h:inputText>
+
+ <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:outputText value="sortMode" />
+ <h:selectOneRadio value="#{sortingAndFiltering.sortMode}"
+ onchange="submit();">
+ <f:selectItem itemLabel="single" itemValue="single" />
+ <f:selectItem itemLabel="multi" itemValue="multi" />
+ </h:selectOneRadio>
+ </h:panelGrid>
+ <br />
+ <%--
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <a4j:commandLink value="getSelection" reRender="findID"></a4j:commandLink>
+ <h:outputText id="findID"
+ value="#{rich:findComponent('sdt').selection}" />
+ </h:panelGrid>
+ --%>
+ <a4j:commandButton value="reRender" reRender="dataList"></a4j:commandButton>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Separator/Separator.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Separator/Separator.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Separator/Separator.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,14 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="separatorSubviewID">
+ <h:outputText value="Some text one..." styleClass="text"></h:outputText>
+ <rich:separator id="separatorId" binding="#{separator.htmlSeparator}" rendered="#{separator.rendered}" width="#{separator.width}" height="#{separator.height}"
+ title="#{separator.title}" lineType="#{separator.lineType}" align="#{separator.align}"
+ style="#{style.style}" styleClass="#{style.styleClass}"
+ onclick="#{event.onclick}" ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}"></rich:separator>
+ <h:outputText value="Some text two..." styleClass="text"></h:outputText>
+ <rich:spacer height="20px"></rich:spacer>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Separator/SeparatorDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Separator/SeparatorDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Separator/SeparatorDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,6 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<rich:separator width="150" height="10"></rich:separator>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Separator/SeparatorProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Separator/SeparatorProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Separator/SeparatorProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,61 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="SeparatorPropertySubviewID">
+<h:commandButton value="add test" action="#{separator.addHtmlSeparator}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="Width (px or %): "></h:outputText>
+ <h:inputText value="#{separator.width}">
+ <a4j:support event="onchange" reRender="separatorId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height (px or %):"></h:outputText>
+ <h:inputText value="#{separator.height}">
+ <a4j:support event="onchange" reRender="separatorId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="LineType:"></h:outputText>
+ <h:selectOneRadio value="#{separator.lineType}" layout="pageDirection">
+ <f:selectItem itemLabel="beveled" itemValue="beveled" />
+ <f:selectItem itemLabel="dotted" itemValue="dotted" />
+ <f:selectItem itemLabel="dashed" itemValue="dashed" />
+ <f:selectItem itemLabel="double" itemValue="double" />
+ <f:selectItem itemLabel="solid" itemValue="solid" />
+ <a4j:support event="onclick" reRender="separatorId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Align:"></h:outputText>
+ <h:selectOneRadio value="#{separator.align}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="separatorId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Title:"></h:outputText>
+ <h:inputText value="#{separator.title}">
+ <a4j:support event="onchange" reRender="separatorId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{separator.rendered}"
+ onclick="submit()"></h:selectBooleanCheckbox>
+
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{separator.doStyles}"
+ value="#{separator.btnLabel}" />
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getHeight" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column>
+ <h:outputText id="findID" value="#{rich:findComponent('separatorId').height}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Separator/SeparatorStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="SeparatorStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{separator.bTest1}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Separator}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{separator.bTest2}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Separator}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{separator.bTest3}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Separator}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{separator.bTest4}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Separator}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{separator.bTest5}" value="run" reRender="separatorId,separatorPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Separator}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanel.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,76 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+
+<f:subview id="simpleTogglePanelSubviewID">
+
+ <rich:simpleTogglePanel id="stpIncludeID" switchType="client">
+ <f:facet name="closeMarker">
+ <h:outputText value="Close it"/>
+ </f:facet>
+
+ <f:facet name="openMarker">
+ <h:outputText value="Open it"/>
+ </f:facet>
+ <h:selectOneMenu value="#{richBean.srcContainer}" onchange="submit();">
+ <f:selectItems value="#{richBean.listContainer}"/>
+ </h:selectOneMenu>
+ <jsp:include flush="true" page="${richBean.pathComponentContainer}"/>
+ </rich:simpleTogglePanel>
+ <rich:simpleTogglePanel binding="#{simpleTogglePanel.htmlSimpleTogglePanel}" id="sTP" bodyClass="body" headerClass="head" label="simpleTogglePanel with some text" action="#{simpleTogglePanel.act}" actionListener="#{simpleTogglePanel.actListener}"
+ width="#{simpleTogglePanel.width}" height="#{simpleTogglePanel.height}" switchType="#{simpleTogglePanel.switchType}"
+ style="#{style.style}" styleClass="#{style.styleClass}"
+ oncollapse="#{event.oncollapse}" onbeforedomupdate="#{event.onbeforedomupdate}" onexpand="#{event.onexpand}" opened="#{event.opened}" onclick="#{event.onclick}" oncomplete="#{event.oncomplete}" ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}">
+ <f:facet name="closeMarker">
+ <h:outputText value="Close It"/>
+ </f:facet>
+ <f:facet name="openMarker">
+ <h:outputText value="Open It"/>
+ </f:facet>
+ <f:verbatim>
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ </f:verbatim>
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ </rich:simpleTogglePanel>
+
+ <rich:simpleTogglePanel id="sTP1" headerClass="head" label="simpleTogglePanel wiht image" width="#{simpleTogglePanel.width}" action="#{simpleTogglePanel.act}" actionListener="#{simpleTogglePanel.actListener}"
+ height="#{simpleTogglePanel.height}" rendered="#{simpleTogglePanel.rendered}" switchType="#{simpleTogglePanel.switchType}"
+ opened="false" onclick="#{event.onclick}" oncomplete="#{event.oncomplete}" ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}">
+ <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" action="#{simpleTogglePanel.act}" actionListener="#{simpleTogglePanel.actListener}"
+ focus="#{simpleTogglePanel.focus}" onclick="#{event.onclick}" oncomplete="#{event.oncomplete}" ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}">
+ <f:facet name="closeMarker">
+ <h:graphicImage value="/pics/ajax_stoped.gif"></h:graphicImage>
+ </f:facet>
+ <f:facet name="openMarker">
+ <h:graphicImage value="/pics/ajax_process.gif"></h:graphicImage>
+ </f:facet>
+ <rich:simpleTogglePanel id="INsTP">
+ <h:panelGrid columns="2">
+ <h:graphicImage value="/pics/podb109_61.jpg" width="250px" height="200px"></h:graphicImage>
+ <f:verbatim>
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ </f:verbatim>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+ </rich:simpleTogglePanel>
+ <h:panelGrid id="simpleTogglePanelActionID" columns="1">
+ <a4j:commandButton value="Show action" reRender="simpleTogglePanelActionID" style=" width : 95px;"></a4j:commandButton>
+ <h:outputText value="#{simpleTogglePanel.action}" />
+ <h:outputText value="#{simpleTogglePanel.actionListener}" />
+ </h:panelGrid>
+ <rich:spacer height="20px"></rich:spacer>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,14 @@
+<%@ 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"%>
+ <rich:simpleTogglePanel switchType="client">
+ <f:facet name="closeMarker">
+ <h:outputText value="Close it"/>
+ </f:facet>
+
+ <f:facet name="openMarker">
+ <h:outputText value="Open it"/>
+ </f:facet>
+ <h:outputText value="default simpleTogglePanel" />
+ </rich:simpleTogglePanel>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,45 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="stpPropertySubviewID">
+<h:commandButton value="add test" action="#{simpleTogglePanel.addHtmlSimpleTogglePanel}"></h:commandButton>
+ <h:panelGrid columns="2" border="1">
+ <h:outputText value="Width:">
+ </h:outputText>
+ <h:inputText value="#{simpleTogglePanel.width}">
+ <a4j:support event="onchange" reRender="sTP,sTP1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height:">
+ </h:outputText>
+ <h:inputText value="#{simpleTogglePanel.height}">
+ <a4j:support event="onchange" reRender="sTP,sTP1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Switch Type:"></h:outputText>
+ <h:selectOneRadio value="#{simpleTogglePanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick" reRender="sTP,sTP1,sTP2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{simpleTogglePanel.rendered}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue(for 2nd stPanel)" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('sTP').value}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/SimpleTogglePanel/SimpleTogglePanelStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="stpStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest1}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1SimpleTP}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest2}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2SimpleTP}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest3}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3SimpleTP}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest4}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4SimpleTP}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{simpleTogglePanel.bTest5}" value="run" reRender="sTP,sTP1,sTP2,stpPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5SimpleTP}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Skinning/Skinning.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Skinning/Skinning.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Skinning/Skinning.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,331 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
+
+<f:subview id="skinningSubviewID">
+ <rich:dataTable columns="4" value="">
+ <f:facet name="caption">
+ <h:outputText value="Standard controls skinning feature provides styling for standard HTML elements so that they become highly compliant with RichFaces look and feel. Skinning can be applied to all page controls based on element name and type attribute (where applicable). Also this feature provides a set of CSS styles so that skinning can be applied by assigning rich-.. classes to particular elements or to container element that nests controls." />
+ </f:facet>
+ <f:facet name="header">
+ <rich:columnGroup>
+ <rich:column><h:outputText value="Name of Component" /></rich:column>
+ <rich:column><h:outputText value="styleClass of Component" /></rich:column>
+ <rich:column><h:outputText value="Component is enabled" /></rich:column>
+ <rich:column><h:outputText value="Component is disabled" /></rich:column>
+ </rich:columnGroup>
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="" />
+ </f:facet>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="inputText" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.inputTextStyleClass}" />
+ </rich:column>
+ <rich:column>
+ <h:inputText styleClass="#{skinning.inputTextStyleClass}" value="#{skinning.inputText}" />
+ </rich:column>
+ <rich:column>
+ <h:inputText styleClass="#{skinning.inputTextStyleClass}" value="#{skinning.inputText}" disabled="true"/>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="inputSecret" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.inputSecretStyleClass}" />
+ </rich:column>
+ <rich:column>
+ <h:inputSecret styleClass="#{skinning.inputSecretStyleClass}" value="#{skinning.inputSecret}" redisplay="true"/>
+ </rich:column>
+ <rich:column>
+ <h:inputSecret styleClass="#{skinning.inputSecretStyleClass}" value="#{skinning.inputSecret}" disabled="true" redisplay="true"/>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="input" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="rich-input" />
+ </rich:column>
+ <rich:column>
+ <input class="rich-input" value="input" ></input>
+ </rich:column>
+ <rich:column>
+ <input class="rich-input" value="input" disabled="true" ></input>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="inputTextarea" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.inputTextareaStyleClass}" />
+ </rich:column>
+ <rich:column>
+ <%--<h:inputTextarea styleClass="#{skinning.inputTextareaStyleClass}" value="#{skinning.inputTextarea}" />--%>
+ </rich:column>
+ <rich:column>
+ <%--<h:inputTextarea styleClass="#{skinning.inputTextareaStyleClass}" value="#{skinning.inputTextarea}" disabled="true" />--%>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectBooleanCheckbox" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectBooleanCheckboxStyleClass}" />
+ </rich:column>
+ <rich:column>
+ <h:selectBooleanCheckbox styleClass="#{skinning.selectBooleanCheckboxStyleClass}" value="#{skinning.selectBooleanCheckbox1}" />
+ <h:selectBooleanCheckbox styleClass="#{skinning.selectBooleanCheckboxStyleClass}" value="#{skinning.selectBooleanCheckbox2}" />
+ </rich:column>
+ <rich:column>
+ <h:selectBooleanCheckbox styleClass="#{skinning.selectBooleanCheckboxStyleClass}" value="#{skinning.selectBooleanCheckbox1}" disabled="true"/>
+ <h:selectBooleanCheckbox styleClass="#{skinning.selectBooleanCheckboxStyleClass}" value="#{skinning.selectBooleanCheckbox2}" disabled="true" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectManyCheckbox" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectManyCheckbox}" />
+ </rich:column>
+ <rich:column>
+ <h:selectManyCheckbox styleClass="#{skinning.selectManyCheckbox}" >
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectManyCheckbox>
+ </rich:column>
+ <rich:column>
+ <h:selectManyCheckbox styleClass="#{skinning.selectManyCheckbox}" disabled="true">
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectManyCheckbox>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectManyListbox" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectManyListbox}" />
+ </rich:column>
+ <rich:column>
+ <h:selectManyListbox styleClass="#{skinning.selectManyListbox}" style="height: 55px;" >
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectManyListbox>
+ </rich:column>
+ <rich:column>
+ <h:selectManyListbox styleClass="#{skinning.selectManyListbox}" style="height: 55px;" disabled="true">
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectManyListbox>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectManyMenu" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectManyMenu}" />
+ </rich:column>
+ <rich:column>
+ <h:selectManyMenu styleClass="#{skinning.selectManyMenu}" style="height: 55px;" >
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectManyMenu>
+ </rich:column>
+ <rich:column>
+ <h:selectManyMenu styleClass="#{skinning.selectManyMenu}" style="height: 55px;" disabled="true">
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectManyMenu>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectOneListbox" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectOneListbox}" />
+ </rich:column>
+ <rich:column>
+ <h:selectOneListbox styleClass="#{skinning.selectOneListbox}" style="height: 55px;" >
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectOneListbox>
+ </rich:column>
+ <rich:column>
+ <h:selectOneListbox styleClass="#{skinning.selectOneListbox}" style="height: 55px;" disabled="true">
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectOneListbox>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectOneMenu" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectOneMenu}" />
+ </rich:column>
+ <rich:column>
+ <h:selectOneMenu styleClass="#{skinning.selectOneMenu}" >
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectOneMenu>
+ </rich:column>
+ <rich:column>
+ <h:selectOneMenu styleClass="#{skinning.selectOneMenu}" disabled="true">
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectOneMenu>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectOneRadio" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectOneRadio}" />
+ </rich:column>
+ <rich:column>
+ <h:selectOneRadio styleClass="#{skinning.selectOneRadio}" >
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectOneRadio>
+ </rich:column>
+ <rich:column>
+ <h:selectOneRadio styleClass="#{skinning.selectOneRadio}" disabled="true">
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectOneRadio>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="commandButton" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.commandButton}" />
+ </rich:column>
+ <rich:column>
+ <h:commandButton styleClass="#{skinning.commandButton}" value="commandButton" />
+ </rich:column>
+ <rich:column>
+ <h:commandButton styleClass="#{skinning.commandButton}" value="commandButton" disabled="true" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="button" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="rich-button" />
+ </rich:column>
+ <rich:column>
+ <button class="rich-button" >button</button>
+ </rich:column>
+ <rich:column>
+ <button class="rich-button" disabled="true" >button</button>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="commandLink" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.commandLink}" />
+ </rich:column>
+ <rich:column>
+ <h:commandLink styleClass="#{skinning.commandLink}" value="commandLink" />
+ </rich:column>
+ <rich:column>
+ <h:commandLink styleClass="#{skinning.commandLink}" value="commandLink" disabled="true" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="outputLink" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.outputLink}" />
+ </rich:column>
+ <rich:column>
+ <h:outputLink styleClass="#{skinning.outputLink}"><h:outputText value="outputLink" /></h:outputLink>
+ </rich:column>
+ <rich:column>
+ <h:outputLink styleClass="#{skinning.outputLink}" disabled="true"><h:outputText value="outputLink" /></h:outputLink>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="a" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="rich-link" />
+ </rich:column>
+ <rich:column>
+ <a href="http://localhost:8081/jsp/pages/Rich/Rich.jsf" class="rich-link" >link</a>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="component has not disabled state" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="fieldset && legend" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="rich-fieldset, rich-legend" />
+ </rich:column>
+ <rich:column>
+ <fieldset class="rich-fieldset">
+ <legend class="rich-legend">Student</legend>
+ </fieldset>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="components have not disabled state" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="hr" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="rich-hr" />
+ </rich:column>
+ <rich:column>
+ <hr class="rich-hr" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="components have not disabled state" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="isindex" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="rich-isindex" />
+ </rich:column>
+ <rich:column>
+ <isindex class="rich-isindex" prompt="Enter"/>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="components have not disabled state" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="keygen" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="rich-keygen" />
+ </rich:column>
+ <rich:column>
+ <keygen class="rich-keygen" />
+ </rich:column>
+ <rich:column>
+ <keygen disabled="true" class="rich-keygen" />
+ </rich:column>
+ </rich:columnGroup>
+ </rich:dataTable>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/SortingAndFiltering/SortingAndFiltering.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/SortingAndFiltering/SortingAndFiltering.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/SortingAndFiltering/SortingAndFiltering.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,223 @@
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+
+<f:subview id="sortingAndFilteringSubviewID">
+
+ <h:panelGrid columns="9" border="1" style="font-size:12px">
+ <h:outputText value="#1"></h:outputText>
+ <h:outputText value="#2"></h:outputText>
+ <h:outputText value="#3"></h:outputText>
+ <h:outputText value="#4"></h:outputText>
+ <h:outputText value="#5"></h:outputText>
+ <h:outputText value="#6"></h:outputText>
+ <h:outputText value="#7"></h:outputText>
+ <h:outputText value="#8"></h:outputText>
+ <h:outputText value="#9"></h:outputText>
+ <h:panelGrid columns="1" title="1">
+ <h:outputText value="sortBy"></h:outputText>
+ <h:outputText value="selfSorted='#{sortingAndFiltering.selfSorted}'"></h:outputText>
+ <h:outputText value="sortOrder='#{sortingAndFiltering.sortOrder}'"></h:outputText>
+ <h:outputText value="filterBy"></h:outputText>
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="2">
+ <h:outputText value="sortBy"></h:outputText>
+ <h:outputText value="selfSorted='#{sortingAndFiltering.selfSorted}'"></h:outputText>
+ <h:outputText value="filterBy"></h:outputText>
+ <h:outputText value="filterEvent='ondblclick'" />
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="3">
+ <h:outputText value="sortBy"></h:outputText>
+ <h:outputText value="sortOrder='#{sortingAndFiltering.sortOrder}'"></h:outputText>
+ <h:outputText value="filterMethod" />
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="4">
+ <h:outputText value="selfSorted='#{sortingAndFiltering.selfSorted}'"></h:outputText>
+ <h:outputText value="filterBy"></h:outputText>
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="5">
+ <h:outputText value="sortOrder='#{sortingAndFiltering.sortOrder}'"></h:outputText>
+ <h:outputText value="comparator: sort by length" />
+ <h:outputText value="filterBy"></h:outputText>
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="6">
+ <h:outputText value=" filterExpression='data > filterValue"></h:outputText>
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="7">
+ <h:outputText value="sortBy"></h:outputText>
+ <h:outputText value="selfSorted='#{sortingAndFiltering.selfSorted}'"></h:outputText>
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="8">
+ <h:outputText value="filterBy" />
+ </h:panelGrid>
+ <h:panelGrid columns="1" title="9">
+ <h:outputText value="sortBy"></h:outputText>
+ </h:panelGrid>
+ </h:panelGrid>
+ <h:panelGroup id="selectionTable">
+ <table>
+ <tr>
+ <td>Selected Issue</td>
+ <td>
+ <h:outputText value="#{sortingAndFiltering.selectedItem.int0}"></h:outputText>
+ </td>
+ <td>
+ <h:outputText value="#{sortingAndFiltering.selectedItem.str0}"></h:outputText>
+ </td>
+ <td>
+ <h:outputText value="#{sortingAndFiltering.selectedItem.str1}"></h:outputText>
+ </td>
+ <td>
+ <h:outputText value="#{sortingAndFiltering.selectedItem.str2}"></h:outputText>
+ </td>
+ </tr>
+ </table>
+ </h:panelGroup>
+ <rich:dataTable id="dataTableSAFID" value="#{sortingAndFiltering.dataModel}"
+ var="data" sortMode="#{sortingAndFiltering.sortMode}" rendered="#{sortingAndFiltering.rendered}">
+ <f:facet name="caption"><h:outputText value="sortMode: #{sortingAndFiltering.sortMode}"></h:outputText></f:facet>
+ <rich:column sortBy="#{data.int0}"
+ selfSorted="#{sortingAndFiltering.selfSorted}"
+ sortOrder="#{sortingAndFiltering.sortOrder}" filterBy="#{data.int0}">
+
+ <f:facet name="header">
+ <h:outputText value="#1" />
+ </f:facet>
+ <a4j:commandLink value="Select" action="#{sortingAndFiltering.select}" reRender="dataTableSAFID"></a4j:commandLink>
+ <f:facet name="footer">
+ <h:outputText value="#1" />
+ </f:facet>
+ </rich:column>
+
+ <rich:column filterBy="#{data.int1}" sortBy="#{data.int1}"
+ selfSorted="#{sortingAndFiltering.selfSorted}"
+ filterEvent="ondblclick">
+ <f:facet name="header">
+ <h:outputText value="#2" />
+ </f:facet>
+ <h:outputText value="#{data.int1}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="#2" />
+ </f:facet>
+ </rich:column>
+
+ <rich:column sortBy="#{data.str0}"
+ sortOrder="#{sortingAndFiltering.sortOrder}" filterBy="#{data.str0}">
+ <f:facet name="header">
+ <h:outputText value="#3" />
+ </f:facet>
+ <h:outputText value="#{data.str0}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="#3" />
+ </f:facet>
+ </rich:column>
+ <rich:column filterBy="#{data.int2}"
+ selfSorted="#{sortingAndFiltering.selfSorted}">
+ <f:facet name="header">
+ <h:outputText value="#4" />
+ </f:facet>
+ <h:outputText value="#{data.int2}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="#4" />
+ </f:facet>
+ </rich:column>
+ <rich:column filterBy="#{data.str1}"
+ sortOrder="#{sortingAndFiltering.sortOrder}"
+ comparator="#{sortingAndFiltering.comparator}">
+ <f:facet name="header">
+ <h:outputText value="#5" />
+ </f:facet>
+ <h:outputText value="#{data.str1}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="#5" />
+ </f:facet>
+ </rich:column>
+ <rich:column
+ filterExpression="#{data.int3 > sortingAndFiltering.filterValue}">
+ <f:facet name="header">
+ <h:outputText value="#6" />
+ </f:facet>
+ <h:outputText value="#{data.int3}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="#6" />
+ </f:facet>
+ </rich:column>
+ <rich:column sortBy="#{data.str2}"
+ selfSorted="#{sortingAndFiltering.selfSorted}">
+ <f:facet name="header">
+ <h:outputText value="#7" />
+ </f:facet>
+ <h:graphicImage value="#{data.str2}"></h:graphicImage>
+ <h:outputText value="#{data.str2}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="#7" />
+ </f:facet>
+ </rich:column>
+ <rich:column filterBy="#{data.str3}">
+ <f:facet name="header">
+ <h:outputText value="#8" />
+ </f:facet>
+ <h:commandButton value="#{data.str3}"></h:commandButton>
+ <f:facet name="footer">
+ <h:outputText value="#8" />
+ </f:facet>
+ </rich:column>
+ <rich:column sortBy="#{data.bool0}">
+ <f:facet name="header">
+ <h:outputText value="#9" />
+ </f:facet>
+ <h:selectBooleanCheckbox value="#{data.bool0}"></h:selectBooleanCheckbox>
+ <f:facet name="footer">
+ <h:outputText value="#9" />
+ </f:facet>
+ </rich:column>
+ </rich:dataTable>
+
+ <rich:dataTable id="dataTableFilterValueID"
+ value="#{sortingAndFiltering.data}" var="data">
+ <rich:column filterValue="/pics/error.gif" filterBy="#{data.str2}">
+ <f:facet name="header">
+ <h:outputText value="#7(filterValue='/pics/error.gif)'" />
+ </f:facet>
+ <h:graphicImage value="#{data.str2}"></h:graphicImage>
+ <h:outputText value=" [#{data.str2}]"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="#7" />
+ </f:facet>
+ </rich:column>
+ </rich:dataTable>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="filterMethod (#3):"></h:outputText>
+ <h:inputText value="#{sortingAndFiltering.filterInput}"
+ onchange="submit();" />
+
+ <h:outputText value="filterValue (#6):"></h:outputText>
+ <h:inputText value="#{sortingAndFiltering.filterValue}"
+ onchange="submit();" />
+
+ <h:outputText value="sortMode" />
+ <h:selectOneRadio value="#{sortingAndFiltering.sortMode}"
+ onchange="submit();">
+ <f:selectItem itemLabel="single" itemValue="single" />
+ <f:selectItem itemLabel="multi" itemValue="multi" />
+ </h:selectOneRadio>
+
+ <h:outputText value="selfSorted" />
+ <h:selectBooleanCheckbox value="#{sortingAndFiltering.selfSorted}"
+ onchange="submit();" />
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{sortingAndFiltering.rendered}"
+ onchange="submit();" />
+
+ <h:outputText value="sortOrder" />
+ <h:selectOneRadio value="#{sortingAndFiltering.currentSortOrder}"
+ onchange="submit();">
+ <f:selectItem itemLabel="DESCENDING" itemValue="DESCENDING" />
+ <f:selectItem itemLabel="UNSORTED" itemValue="UNSORTED" />
+ <f:selectItem itemLabel="ASCENDING" itemValue="ASCENDING" />
+ </h:selectOneRadio>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Spacer/Spacer.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Spacer/Spacer.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Spacer/Spacer.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,23 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="spacerSubviewID">
+ <style type="text/css">
+.text {
+ font-size: 20px;
+}
+
+.spacer {
+ background-color: aqua;
+}
+</style>
+ <h:outputText value="Some text one..." styleClass="text"></h:outputText>
+
+ <rich:spacer id="spacerId" binding="#{spacer.htmlSpacer}" title="#{spacer.title}" width="#{spacer.width}" height="#{spacer.height}" rendered="#{spacer.rendered}"
+ styleClass="#{spacer.style}" style="#{style.style}"
+ onclick="#{event.onclick}" ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}">
+ </rich:spacer>
+ <h:outputText value="Some text two..." styleClass="text"></h:outputText>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Spacer/SpacerDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Spacer/SpacerDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Spacer/SpacerDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,5 @@
+<%@ 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"%>
+<rich:spacer width="100" height="50" style="background-color: red"></rich:spacer>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Spacer/SpacerProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Spacer/SpacerProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Spacer/SpacerProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,43 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="spacerPropertySubviewID">\
+<h:commandButton value="add test" action="#{spacer.addHtmlSpacer}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="Width (px or %):"></h:outputText>
+ <h:inputText value="#{spacer.width}">
+ <a4j:support event="onchange" reRender="spacerId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height (px or %):"></h:outputText>
+ <h:inputText value="#{spacer.height}">
+ <a4j:support event="onchange" reRender="spacerId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="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()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Style" />
+ <a4j:commandButton id="btn" action="#{spacer.doStyle}"
+ value="#{spacer.btn}" reRender="spacerId, btn"></a4j:commandButton>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRendererType" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column>
+ <h:outputText id="findID" value="#{rich:findComponent('spacerId').rendererType}"/>
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Spacer/SpacerStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="spacerStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{spacer.bTest1}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Spacer}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{spacer.bTest2}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Spacer}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{spacer.bTest3}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Spacer}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{spacer.bTest4}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Spacer}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{spacer.bTest5}" value="run" reRender="spacerPropertyID,spacerId"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Spacer}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,77 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="suggestionBoxSubviewID">
+ <h:messages showDetail="true" />
+ <f:verbatim>Suggestion Box will suggest you Town's names if it's started with the "a" or "A" letter
+ <br />
+ </f:verbatim>
+ <h:inputText value="#{sb.property}" id="text">
+ <f:validateLength minimum="0" maximum="30"/>
+ </h:inputText>
+ <rich:suggestionbox id="suggestionBoxId"
+ ajaxSingle="#{sb.ajaxSingle}"
+ bgcolor="#{sb.bgColor}"
+ binding="#{sb.mySuggestionBox}"
+ bypassUpdates="#{sb.bypassUpdates}"
+ cellpadding="#{sb.cellpadding}"
+ cellspacing="#{sb.cellspacing}"
+ dir="#{sb.dir}"
+ entryClass="#{style.entryClass}"
+ eventsQueue="myEventsQueue"
+ fetchValue="#{result.text}"
+ first="#{sb.first}"
+ for="text"
+ frame="#{sb.frame}"
+ frequency="#{sb.frequency}"
+ height="#{sb.height}"
+ ignoreDupResponses="#{sb.ignoreDupResponses}"
+ immediate="#{sb.immediate}"
+ limitToList="false"
+ minChars="#{sb.minchars}"
+ nothingLabel="#{sb.nothingLabel}"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ oncomplete="#{event.oncomplete}"
+ onobjectchange="#{event.onobjectchange}"
+ onselect="#{event.onselect}"
+ onsubmit="#{event.onsubmit}"
+ popupStyle="background-color: black;"
+ usingSuggestObjects="#{sb.usingSuggestObjects}"
+ reRender="label"
+ rendered="#{sb.rendered}"
+ requestDelay="#{sb.requestDelay}"
+ selfRendered="#{sb.selfRendered}"
+ var="result"
+ suggestionAction="#{sb.autocomplete}"
+ width="#{sb.width}"
+ border="#{sb.border}"
+ zindex="#{sb.zindex}"
+ rules="#{sb.rules}"
+ tokens="#{sb.tokens}"
+ title="#{result.text}"
+ summary="summary"
+ shadowOpacity="#{sb.shadowOpacity}"
+ shadowDepth="#{sb.shadowDepth}"
+ selectValueClass="mousemove"
+ style="#{style.style}"
+ styleClass="#{style.styleClass}"
+ selectedClass="#{style.selectedClass}"
+ rowClasses="#{style.rowClasses}" >
+
+ <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>
+ <h:column>
+ <a4j:htmlCommandLink actionListener="#{sb.selectValue}" value="Click me!"/>
+ </h:column>
+ </rich:suggestionbox>
+ <div id="label" style="position: relative; font-size: 50px; z-index: 2; color: navy">z-index</div>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBoxDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBoxDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBoxDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
Added: trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,172 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="suggestionboxPropertySubviewID">
+<h:commandButton value="add test" action="#{sb.addHtmlSuggestionBox}"></h:commandButton>
+ <h:panelGrid columns="2" cellpadding="5px">
+ <h:outputText value="ajaxSingle"></h:outputText>
+ <h:selectBooleanCheckbox value="#{sb.ajaxSingle}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="bgcolor"></h:outputText>
+ <h:selectOneMenu value="#{sb.bgColor}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="aqua" itemValue="aqua" />
+ <f:selectItem itemLabel="blue" itemValue="blue" />
+ <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
+ <f:selectItem itemLabel="gray" itemValue="gray" />
+ <f:selectItem itemLabel="lime" itemValue="lime" />
+ <f:selectItem itemLabel="maroon" itemValue="maroon" />
+ <f:selectItem itemLabel="purple" itemValue="purple" />
+ <f:selectItem itemLabel="red" itemValue="red" />
+ <f:selectItem itemLabel="silver" itemValue="silver" />
+ <f:selectItem itemLabel="teal" itemValue="teal" />
+ <f:selectItem itemLabel="yellow" itemValue="yellow" />
+ <f:selectItem itemLabel="white" itemValue="white" />
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:commandButton id="bindingButtonID"
+ actionListener="#{sb.checkBinding}" value="binding & param" />
+ <h:outputText value="#{sb.bindLabel}" />
+
+ <h:outputText value="border" />
+ <h:inputText value="#{sb.border}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="bypassUpdates"></h:outputText>
+ <h:selectBooleanCheckbox value="#{sb.bypassUpdates}"
+ onchange="submit();" />
+
+ <h:outputText value="cellpadding" />
+ <h:inputText value="#{sb.cellpadding}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="cellspacing" />
+ <h:inputText value="#{sb.cellspacing}">
+ <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="first" />
+ <h:inputText value="#{sb.first}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="frame"></h:outputText>
+ <h:selectOneMenu value="#{sb.frame}">
+ <f:selectItem itemLabel="void" itemValue="void" />
+ <f:selectItem itemLabel="above" itemValue="above" />
+ <f:selectItem itemLabel="below" itemValue="below" />
+ <f:selectItem itemLabel="hsides" itemValue="hsides" />
+ <f:selectItem itemLabel="lhs" itemValue="lhs" />
+ <f:selectItem itemLabel="rhs" itemValue="rhs" />
+ <f:selectItem itemLabel="vsides" itemValue="vsides" />
+ <f:selectItem itemLabel="box" itemValue="box" />
+ <f:selectItem itemLabel="border " itemValue="border " />
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="frequency" />
+ <h:inputText value="#{sb.frequency}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="height" />
+ <h:inputText value="#{sb.height}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="ignoreDupResponses"></h:outputText>
+ <h:selectBooleanCheckbox value="#{sb.ignoreDupResponses}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="immediate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{sb.immediate}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="minChars" />
+ <h:inputText value="#{sb.minchars}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="nothingLabel" />
+ <h:inputText value="#{sb.nothingLabel}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="usingSuggestObjects"></h:outputText>
+ <h:selectBooleanCheckbox value="#{sb.usingSuggestObjects}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="z-index"></h:outputText>
+ <h:selectOneRadio value="#{sb.zindex}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="3" itemValue="3" />
+ <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneRadio>
+
+ <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="Width" />
+ <h:inputText value="#{sb.width}">
+ <a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="tokens:"></h:outputText>
+ <h:inputText value="#{sb.tokens}"></h:inputText>
+
+ <h:outputText value="Shadow Opacity"></h:outputText>
+ <h:selectOneRadio value="#{sb.shadowOpacity}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="3" itemValue="2" />
+ <f:selectItem itemLabel="5" itemValue="3" />
+ <f:selectItem itemLabel="7" itemValue="4" />
+ <f:selectItem itemLabel="9" itemValue="5" />
+ <f:selectItem itemLabel="11" itemValue="6" />
+ <f:selectItem itemLabel="13" itemValue="7" />
+ <f:selectItem itemLabel="15" itemValue="8" />
+ <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Shadow Depth"></h:outputText>
+ <h:selectOneRadio value="#{sb.shadowDepth}">
+ <f:selectItem itemLabel="3" itemValue="3" />
+ <f:selectItem itemLabel="4" itemValue="4" />
+ <f:selectItem itemLabel="5" itemValue="5" />
+ <f:selectItem itemLabel="6" itemValue="6" />
+ <f:selectItem itemLabel="7" itemValue="6" />
+ <a4j:support event="onclick" reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="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>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <a4j:commandLink value="getSubmitedValue" reRender="findID"></a4j:commandLink>
+
+ <h:outputText id="findID" value="#{rich:findComponent('suggestionBoxId').submitedValue}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="suggestionboxStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{sb.bTest1}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t1SB}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{sb.bTest2}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t2SB}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{sb.bTest3}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t3SB}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{sb.bTest4}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t4SB}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{sb.bTest5}" value="run" reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="#{msg.t5SB}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanel.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanel.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanel.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,116 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="tabPanelSubviewID">
+ <rich:tabPanel id="tabPanelId" binding="#{tabPanel.htmlTabPanel}"
+ headerAlignment="#{tabPanel.headerAlignment}"
+ width="#{tabPanel.width}" contentStyle="#{style.contentStyle}"
+ headerClass="#{style.headerClass}" style="#{style.style}"
+ styleClass="#{style.styleClass}" tabClass="#{style.tabClass}"
+ 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="#{event.onclick}"
+ ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}">
+
+ <rich:tab id="tabOne" binding="#{tabPanel.htmlTab}" labelWidth="#{tabPanel.labelWidth}"
+ label="#{tabPanel.label}" onclick="#{event.onclick}"
+ oncomplete="#{event.oncomplete}" ondblclick="#{event.ondblclick}"
+ onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}" onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}" ontabenter="#{event.ontabenter}"
+ ontableave="#{event.ontableave}">
+ <h:outputText value="This is tab panel test example"
+ styleClass="text1"></h:outputText>
+ <h:outputLink value="http://www.jboss.com/">
+ <f:verbatim>Link</f:verbatim>
+ </h:outputLink>
+ </rich:tab>
+ <rich:tab id="tabTwo" label="Tab with image"
+ disabled="#{tabPanel.disabledTab}" onclick="#{event.onclick}"
+ oncomplete="#{event.oncomplete}" ondblclick="#{event.ondblclick}"
+ onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}" onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}" ontabenter="#{event.ontabenter}"
+ ontableave="#{event.ontableave}">
+ <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="#{event.onclick}"
+ oncomplete="#{event.oncomplete}" ondblclick="#{event.ondblclick}"
+ onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}" onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}" ontabenter="#{event.ontabenter}"
+ ontableave="#{event.ontableave}">
+ <h:outputText
+ value=" Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some text... Some text..." />
+ </rich:tab>
+ </rich:tabPanel>
+
+ <rich:spacer height="20px"></rich:spacer>
+ <rich:tabPanel switchType="ajax" id="test">
+
+
+ <rich:tab label="Prescription">
+ <a4j:outputPanel id="first">
+ <a4j:commandButton value="ajaxTest"
+ oncomplete="Richfaces.showModalPanel('wizardSimplePresc',{})" />
+ </a4j:outputPanel>
+ </rich:tab>
+
+
+
+ <rich:tab label="Recueil">
+
+ <a4j:outputPanel id="second">
+ <a4j:commandButton value="ajaxTest"
+ oncomplete="Richfaces.showModalPanel('wizardSimplePresc',{})" />
+ </a4j:outputPanel>
+
+ </rich:tab>
+
+ </rich:tabPanel>
+
+ <rich:modalPanel id="wizardSimplePresc" minHeight="200" minWidth="50"
+ height="350" width="900" zindex="2000">
+ <f:facet name="header">
+ <h:outputText value="Assistant Prescription" />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="../../image/calendar/close.gif"
+ style="border:0px"
+ onclick="Richfaces.hideModalPanel('wizardSimplePresc')" />
+ </f:facet>
+ <a4j:outputPanel id="wizard" layout="block"
+ style="position:absolute; top:22px; bottom:0px; left:1px; right:1px; overflow:auto;">
+ <a4j:region id="wizardRegion">
+ <a4j:status id="wizardStatus" for="wizardRegion"
+ startText="In progress..." stopText="Complete" />
+ <a4j:commandButton reRender="first,second" value="Executer!"
+ oncomplete="Richfaces.hideModalPanel('wizardSimplePresc')" />
+ </a4j:region>
+ </a4j:outputPanel>
+ </rich:modalPanel>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanelDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanelDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanelDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,11 @@
+<%@ 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"%>
+<rich:tabPanel>
+ <rich:tab label="tab1">
+ <h:outputText value="tab 1" />
+ </rich:tab>
+ <rich:tab label="tab2">
+ </rich:tab>
+</rich:tabPanel>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,80 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="tabPanelStraightforwardSubviewID">
+<h:commandButton value="add test" action="#{tabPanel.addHtmlTabPanel}"></h:commandButton>
+ <h:panelGrid columns="2" cellspacing="10px">
+ <h:outputText value="Width (px or %):"></h:outputText>
+ <h:inputText value="#{tabPanel.width}" onchange="submit();" />
+
+ <h:outputText value="Height (px or %):"></h:outputText>
+ <h:inputText value="#{tabPanel.height}" onchange="submit();" />
+
+ <h:outputText value="Title:"></h:outputText>
+ <h:inputText value="#{tabPanel.title}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="LabelWidth:"></h:outputText>
+ <h:inputText value="#{tabPanel.labelWidth}" onchange="submit();" />
+
+ <h:outputText value="SwitchType:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Header Alignment:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.headerAlignment}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Header Spacing:"></h:outputText>
+ <h:inputText value="#{tabPanel.headerSpacing}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Selected Tab:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.selectedTab}" onchange="submit();">
+ <f:selectItem itemLabel="1" itemValue="tabOne" />
+ <f:selectItem itemLabel="2" itemValue="tabTwo" />
+ <f:selectItem itemLabel="3" itemValue="tabThree" />
+ </h:selectOneRadio>
+
+ <h:outputText value="immediate" />
+ <h:selectBooleanCheckbox value="#{tabPanel.immediate}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tabPanel.rendered}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disable Tab"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tabPanel.disabledTab}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{tabPanel.doStyles}"
+ value="#{tabPanel.btnLabel}" />
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getSelectedTab" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('tabPanelId').selectedTab}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/TabPanel/TabPanelStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="tabPanelPropertySubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{tabPanel.bTest1}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t1TabPanel}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{tabPanel.bTest2}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t2TabPanel}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{tabPanel.bTest3}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t3TabPanel}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{tabPanel.bTest4}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t4TabPanel}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{tabPanel.bTest5}" value="run" reRender="tpPropertyID,tabPanelId"></a4j:commandButton>
+ <h:outputText value="#{msg.t5TabPanel}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanel.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanel.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanel.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,151 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="togglePanelSubviewID">
+
+ <rich:togglePanel id="panel1" binding="#{togglePanel.htmlTogglePanel}" switchType="#{togglePanel.switchType}" initialState="asus" stateOrder="asus,blank" styleClass="#{style.styleClass}" style="width:300px!important;#{style.style};"
+ onclick="#{event.onclick}" ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}">
+ <f:facet name="blank">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <rich:toggleControl id="toggleControl_blank" for="togglePanelSubviewID:panel1">
+ <h:outputText value="Expand" style="font-weight: bold;" />
+ <h:graphicImage url="/pics/collapse.gif" style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ </rich:panel>
+ </f:facet>
+
+ <f:facet name="asus">
+ <rich:panel style="overflow: auto">
+ <f:facet name="header">
+ <h:panelGroup>
+ <rich:toggleControl id="toggleControl_panel1" for="togglePanelSubviewID:panel1">
+ <h:outputText value="Collapse" style="font-weight: bold;" />
+ <h:graphicImage url="/pics/expand.gif" style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid columns="2" border="0" style="width: 100%;background-color: white;">
+ <h:graphicImage url="/pics/asus.jpg" height="300" width="300" alt="asus.jpg" />
+ <h:panelGroup>
+ <h:outputText style="font: 18px;font-weight: bold;" value="Asus F 3 Tc" />
+ <f:verbatim>
+ Processor: AMD Turion 64 X 2 - 1600 Mhz<br />
+ RAM: 1024 Mb<br />
+ HDD: 100 Gb<br />
+ Screen: 15.4 WXGA<br />
+ Video: NVIDIA GeForce Go 7300<br />
+ Drive: DVD- RW DL<br />
+ </f:verbatim>
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ </h:panelGroup>
+ </h:panelGrid>
+ </rich:panel>
+ </f:facet>
+ </rich:togglePanel>
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <rich:togglePanel id="panel2" switchType="#{togglePanel.switchType}" initialState="#{togglePanel.initialState}"
+ stateOrder="#{togglePanel.stateOrder}" onclick="#{event.onclick}" ondblclick="#{event.ondblclick}"
+ onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}">
+ <f:facet name="asus">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText value="Customizable toggle panel" style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_1" for="togglePanelSubviewID:panel2">
+ <h:outputText value="Next"></h:outputText>
+ <h:graphicImage url="/pics/expand.gif" style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid columns="2" border="0" style="width: 100%;background-color: white;">
+ <h:graphicImage url="/pics/asus.jpg" height="300" width="300" alt="asus.jpg" />
+ <h:panelGroup>
+ <h:outputText style="font: 18px;font-weight: bold;" value="Asus F 3 Tc" />
+ <f:verbatim>
+ Processor: AMD Turion 64 X 2 - 1600 Mhz<br />
+ RAM: 1024 Mb<br />
+ HDD: 100 Gb<br />
+ Screen: 15.4 WXGA<br />
+ Video: NVIDIA GeForce Go 7300<br />
+ Drive: DVD- RW DL<br />
+ </f:verbatim>
+ </h:panelGroup>
+ </h:panelGrid>
+ </rich:panel>
+ </f:facet>
+
+ <f:facet name="benq">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText value="Customizable toggle panel" style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_2" for="togglePanelSubviewID:panel2">
+ <h:outputText value="Next"></h:outputText>
+ <h:graphicImage url="/pics/expand.gif" style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid columns="2" border="0" style="width: 100%;background-color: yellow;">
+ <h:graphicImage url="/pics/benq.jpg" height="300" width="300" alt="benq.jpg" />
+ <h:panelGroup>
+ <h:outputText style="font: 18px;font-weight: bold;" value="BenQ A 52" />
+ <f:verbatim>
+ Processor: Core Duo T2250 (1.73GHz)<br />
+ RAM: 1024 Mb<br />
+ HDD: 100 Gb<br />
+ Screen: 15.4 WXGA<br />
+ Video: ATI Mobility Radeon X 200<br />
+ Drive: DVD- RW D<br />
+ </f:verbatim>
+ </h:panelGroup>
+ </h:panelGrid>
+ </rich:panel>
+ </f:facet>
+
+ <f:facet name="toshiba">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText value="Customizable toggle panel" style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_3" for="togglePanelSubviewID:panel2">
+ <h:outputText value="Next"></h:outputText>
+ <h:graphicImage url="/pics/expand.gif" style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid columns="2" border="0" style="width: 100%;background-color: orange;">
+ <h:graphicImage url="/pics/toshiba.jpg" height="300" width="300" alt="toshiba.jpg" />
+ <h:panelGroup>
+ <h:outputText style="font: 18px;font-weight: bold;" value="Toshiba Satellite A 100-784" />
+ <f:verbatim>
+ Processor: Intel Core Duo T2250 - 1.73GHz<br />
+ RAM: 1024 Mb<br />
+ HDD: 100 Gb<br />
+ Screen: 15.4 WXGA<br />
+ Video: Intel Graphics Media 950<br />
+ Drive: DVD- RW DL<br />
+ </f:verbatim>
+ </h:panelGroup>
+ </h:panelGrid>
+ </rich:panel>
+ </f:facet>
+ </rich:togglePanel>
+
+ <ui:debug hotkey="L"></ui:debug>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanelDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanelDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanelDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,18 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+ <rich:togglePanel switchType="client" stateOrder="closed,tip1">
+
+ <f:facet name="closed">
+ <rich:toggleControl>
+ <h:graphicImage style="border-width:0" value="/pics/ajax_process.gif" />
+ </rich:toggleControl>
+ </f:facet>
+
+ <f:facet name="tip1">
+ <rich:toggleControl>
+ <h:graphicImage style="border-width:0" value="/pics/ajax_stoped.gif" />
+ </rich:toggleControl>
+ </f:facet>
+ </rich:togglePanel>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,45 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="togglePanelPropertySubviewID">
+<h:commandButton value="add test" action="#{togglePanel.addHtmlTogglePanel}"></h:commandButton>
+ <h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
+ <h:outputText value="InitialState:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.initialState}">
+ <f:selectItem itemLabel="Asus" itemValue="asus" />
+ <f:selectItem itemLabel="Benq" itemValue="benq" />
+ <f:selectItem itemLabel="toshiba" itemValue="toshiba" />
+ <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="StateOrder:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.stateOrder}">
+ <f:selectItem itemLabel="Asus,Benq,Toshiba"
+ itemValue="asus,benq,toshiba" />
+ <f:selectItem itemLabel="Toshiba, Asus, Benq"
+ itemValue="toshiba,asus,benq" />
+ <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="switchType:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick" reRender="panel1,panel2"></a4j:support>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getStateOrder" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('panel2').stateOrder}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/TogglePanel/TogglePanelStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="togglePanelStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{togglePanel.bTest1}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1TogglePanel}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{togglePanel.bTest2}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2TogglePanel}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{togglePanel.bTest3}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3TogglePanel}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{togglePanel.bTest4}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4TogglePanel}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{togglePanel.bTest5}" value="run" reRender="panel1,panel2,tPanelPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5TogglePanel}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/ToolBar/ToolBar.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ToolBar/ToolBar.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ToolBar/ToolBar.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,60 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="toolBarSubviewID">
+ <h:messages></h:messages>
+
+ <rich:toolBar id="toolBarId"
+ width="#{toolBar.width}"
+ binding="#{toolBar.htmlToolBar}"
+ height="#{toolBar.height}"
+ rendered="#{toolBar.rendered}"
+ itemSeparator="#{toolBar.itemSeparator}"
+ contentClass="#{toolBar.contentClass}"
+ separatorClass="#{toolBar.separatorClass}"
+ contentStyle="font-style: italic"
+ style=""
+ styleClass=""
+ onitemclick="#{event.onitemclick}"
+ onitemdblclick="#{event.onitemdblclick}"
+ onitemkeydown="#{event.onitemkeydown}"
+ onitemkeypress="#{event.onitemkeypress}"
+ onitemkeyup="#{event.onitemkeyup}"
+ onitemmousedown="#{event.onitemmousedown}"
+ onitemmousemove="#{event.onitemmousemove}"
+ onitemmouseout="#{event.onitemmouseout}"
+ onitemmouseover="#{event.onitemmouseover}"
+ onitemmouseup="#{event.onitemmouseup}">
+
+ <h:outputText value="ToolBar" ></h:outputText>
+
+ <rich:toolBarGroup>
+ <h:outputText value="Width:"></h:outputText>
+ <h:inputText value="#{toolBar.width}">
+ <a4j:support event="onchange" reRender="toolBarId"></a4j:support>
+ </h:inputText>
+ </rich:toolBarGroup>
+
+ <rich:toolBarGroup>
+ <h:outputText value="Height:"></h:outputText>
+ <h:inputText value="#{toolBar.height}">
+ <a4j:support event="onchange" reRender="toolBarId"></a4j:support>
+ </h:inputText>
+ </rich:toolBarGroup>
+
+ <rich:toolBarGroup>
+ <rich:comboBox>
+ <f:selectItem itemValue="select_1"/>
+ <f:selectItem itemValue="select_2"/>
+ </rich:comboBox>
+ </rich:toolBarGroup>
+
+ <rich:toolBarGroup location="#{toolBar.location}">
+ <h:graphicImage value="/pics/ajax_process.gif"></h:graphicImage>
+ </rich:toolBarGroup>
+
+ </rich:toolBar>
+
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/ToolBar/ToolBarDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ToolBar/ToolBarDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ToolBar/ToolBarDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,8 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<rich:toolBar>
+<h:outputText value="File" />
+<h:outputText value="Edit" />
+</rich:toolBar>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,50 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="toolBarPropertySubviewID">
+ <h:commandButton value="add test" action="#{toolBar.addHtmlToolBar}"></h:commandButton>
+ <h:panelGrid columns="2">
+ <h:outputText value="Image location:"></h:outputText>
+ <h:selectOneRadio value="#{toolBar.location}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
+ </h:selectOneRadio>
+
+
+ <h:outputText value="itemSeparator:"></h:outputText>
+ <h:selectOneRadio value="#{toolBar.itemSeparator}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="line" itemValue="line" />
+ <f:selectItem itemLabel="square" itemValue="square" />
+ <f:selectItem itemLabel="disc" itemValue="disc" />
+ <f:selectItem itemLabel="grid" itemValue="grid" />
+ <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Switch Styles (check contentClass and separatorClass)" />
+ <a4j:commandButton id="slBtn" value="#{toolBar.btnLabel}"
+ action="#{toolBar.doStyles}" reRender="toolBarId,slBtn">
+ </a4j:commandButton>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{toolBar.rendered}" onclick="submit()"/>
+
+ <h:commandButton actionListener="#{toolBar.checkBinding}" value="binding" />
+ <h:outputText value="#{toolBar.bindLabel}" />
+
+ </h:panelGrid>
+
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getItemSeparator" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('toolBarId').itemSeparator}" />
+ </rich:column>
+ </h:panelGrid>
+
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/Tooltip.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/Tooltip.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/Tooltip.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,64 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+
+<f:subview id="tooltipSubviewID">
+ <h:messages></h:messages>
+
+ <h:inputText value="Text" id="inp1" size="50">
+ <rich:toolTip id="toolTipID" value="toolTip for input text" layout="inline">
+ <f:facet name="defaultContent">
+ <f:verbatim>DEFAULT VALUE</f:verbatim>
+ </f:facet>
+ </rich:toolTip>
+ </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" layout="block">
+ <f:facet name="defaultContent">
+ <f:verbatim>DEFAULT VALUE DropDown</f:verbatim>
+ </f:facet>
+ </rich:toolTip>
+ </h:selectOneListbox>
+
+ <f:verbatim>
+ <br/>
+ <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" binding="#{tooltip.htmlToolTip}" value="#{tooltip.value}" mode="#{tooltip.mode}" styleClass="#{style.styleClass}" style="#{style.style}"
+ hideDelay="#{tooltip.hideDelay}" showDelay="#{tooltip.showDelay}" layout="#{tooltip.layout}"
+ horizontalOffset="#{tooltip.horizontalOffset}" verticalOffset="#{tooltip.verticalOffset}" followMouse="#{tooltip.followMouse}"
+ direction="#{tooltip.direction}" disabled="#{tooltip.disabled}" rendered="#{tooltip.rendered}"
+ event="#{tooltip.event}" onclick="#{event.onclick}" oncomplete="#{event.oncomplete}" ondblclick="#{event.ondblclick}" onhide="#{event.onhide}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onshow="#{event.onshow}">
+ <h:graphicImage id="pricsID" value="/pics/ajax_process.gif"></h:graphicImage>
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ </rich:toolTip>
+ </rich:panel>
+
+ <f:verbatim>
+ <br/>
+ </f:verbatim>
+ <h:selectOneMenu value="#{richBean.srcContainer}" onchange="submit();">
+ <f:selectItems value="#{richBean.listContainer}"/>
+ </h:selectOneMenu>
+ <rich:panel style="width:50px; height:50px; background-color: gray">
+ <rich:toolTip id="includeToolTIpID" hideDelay="5000" showDelay="0" value="test include">
+ <jsp:include flush="true" page="${richBean.pathComponentContainer}"/>
+ </rich:toolTip>
+ </rich:panel>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/TooltipDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/TooltipDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/TooltipDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,8 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<h:outputText value="Default tooltip!">
+ <rich:toolTip value="tooltip"></rich:toolTip>
+</h:outputText>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/TooltipProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/TooltipProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/TooltipProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,109 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="toolTipStraightforwardSubviewID">
+ <h:commandButton value="add test" action="#{tooltip.addHtmlToolTip}"></h:commandButton>
+ <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="showDelay"></h:outputText>
+ <h:inputText value="#{tooltip.showDelay}">
+ <a4j:support event="onchange" reRender="tooltipID" />
+ </h:inputText>
+
+ <h:outputText value="hideDelay"></h:outputText>
+ <h:inputText value="#{tooltip.hideDelay}">
+ <a4j:support event="onchange" reRender="tooltipID" />
+ </h:inputText>
+
+ <h:outputText value="event:" />
+ <h:selectOneMenu value="#{tooltip.event}" onchange="submit();">
+ <f:selectItem itemLabel="onmouseover" itemValue="onmouseover" />
+ <f:selectItem itemLabel="onclick" itemValue="onclick" />
+ <f:selectItem itemLabel="onmouseup" itemValue="onmouseup" />
+ </h:selectOneMenu>
+
+ <h:outputText value="Layout:"></h:outputText>
+ <h:selectOneRadio value="#{tooltip.layout}">
+ <f:selectItem itemLabel="inline" itemValue="inline" />
+ <f:selectItem itemLabel="block" itemValue="block" />
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Mode:"></h:outputText>
+ <h:selectOneRadio value="#{tooltip.mode}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Horizontal offset:"></h:outputText>
+ <h:inputText value="#{tooltip.horizontalOffset}">
+ <a4j:support event="onchange" reRender="tooltipID" />
+ </h:inputText>
+
+ <h:outputText value="Vertical offset:"></h:outputText>
+ <h:inputText value="#{tooltip.verticalOffset}">
+ <a4j:support event="onchange" reRender="tooltipID" />
+ </h:inputText>
+
+ <h:outputText value="Follow mouse:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tooltip.followMouse}">
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Direction:" />
+ <h:selectOneRadio value="#{tooltip.direction}">
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Style:"></h:outputText>
+ <h:selectOneRadio value="#{tooltip.style}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="border:3px; font:bold 14px;"
+ itemValue="border:3px; font:bold 14px;" />
+ <f:selectItem
+ itemLabel="border:green 3px solid; background-color:yellow;"
+ itemValue="border:green 3px solid; background-color:yellow;" />
+ <f:selectItem
+ itemLabel="border:green 2px solid; font-family:monospace;"
+ itemValue="border:green 2px solid; font-family:monospace;" />
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Disambled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tooltip.disabled}">
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tooltip.rendered}">
+ <a4j:support event="onclick" reRender="tooltipID" />
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('tooltipID').value}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Tooltip/TooltipStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="toolTipPropertySubviewID">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{tooltip.bTest1}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1Tooltip}"/>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{tooltip.bTest2}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2Tooltip}"/>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{tooltip.bTest3}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3Tooltip}"/>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{tooltip.bTest4}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4Tooltip}"/>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{tooltip.bTest5}" value="run" reRender="tooltipID,toolTipPropertyID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5Tooltip}"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Tree/Tree.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Tree/Tree.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Tree/Tree.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,232 @@
+<%@ 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"%>
+<style type="text/css">
+.LeftTreePane {
+
+}
+
+.RightTreePane {
+
+}
+
+.TreeContainer {
+ overflow: auto;
+ height: 400px;
+ border: 3px inset gray;
+}
+</style>
+<script type="text/javascript">
+ // <![CDATA[
+ function blinkElement(elt) {
+ while (elt.tagName.toLowerCase() != 'table') {
+ elt = elt.parentNode;
+ }
+
+ elt.style.borderColor= '#5555FF';
+ elt.style.borderStyle= 'dotted';
+ elt.style.borderWidth = '3px';
+ setTimeout( function() { this.style.borderStyle = 'none'; }.bind(elt), 300);
+ }
+ // ]]>
+ </script>
+<f:subview id="treeSubviewID">
+ <a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+ </a4j:outputPanel>
+
+ <rich:tree id="tree" switchType="#{treeBean.switchType}"
+ value="#{treeBean.data}" var="dataTree" selectedClass="#{style.selectedClass}"
+ styleClass="#{style.styleClass}" style="#{style.style}"
+ highlightedClass="#{style.highlightedClass}"
+ nodeFace="#{dataTree.name != 'param-value' ? 'input' : 'text'}"
+ changeExpandListener="#{treeBean.onExpand}"
+ nodeSelectListener="#{treeBean.onSelect}" binding="#{treeBean.tree}"
+ onselected="window.status='selectedNode: '+event.selectedNode;"
+ onexpand="window.status='expandedNode: '+event.expandedNode"
+ oncollapse="window.status='collapsedNode: '+ event.collapsedNode"
+ ajaxSubmitSelection="true" reRender="outputText, selectOneListbox"
+ preserveModel="none" dragIndicator="treeIndicator" immediate="false"
+ acceptedTypes="file1" dragType="#{treeBean.dragOn ? 'file1' : ''}"
+ icon="#{treeBean.icon}" dropListener="#{treeBean.processDrop}"
+ onclick="#{event.onclick}" ondblclick="#{event.ondblclick}"
+ ondragend="#{event.ondragend}" ondragenter="#{event.ondragenter}"
+ ondragexit="#{event.ondragexit}" ondragstart="#{event.ondragstart}"
+ ondrop="#{event.ondrop}" ondropend="#{event.ondropend}"
+ onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ oncomplete="#{event.oncomplete}" ondropout="#{event.ondropout}"
+ ondropover="#{event.ondropover}" adviseNodeOpened="#{treeBean.adviseNodeOpened}"
+ adviseNodeSelected="#{treeBean.adviseNodeSelected}">
+ <!--
+ <f:facet name="icon">
+ <h:outputText value="icon" rendered="#{treeBean.renderFacets}" />
+ </f:facet>
+ <f:facet name="iconLeaf">
+ <h:outputText value="leaf" rendered="#{treeBean.renderFacets}" />
+ </f:facet>
+ <f:facet name="iconExpanded">
+ <h:outputText value="expanded" rendered="#{treeBean.renderFacets}" />
+ </f:facet>
+ <f:facet name="iconCollapsed">
+ <h:outputText value="collapsed" rendered="#{treeBean.renderFacets}" />
+ </f:facet>
+ -->
+ <rich:dndParam name="treeParam" value="Tree Parameter" />
+ <rich:dndParam name="accept" value="accept" />
+
+ <rich:treeNode type="input" dropListener="#{treeBean.processDrop}"
+ oncollapse="Element.removeClassName(event['treeItem'].getElement(), 'colored')"
+ onexpand="Element.addClassName(event['treeItem'].getElement(), 'colored')"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ onclick="#{event.onclick}" oncomplete="#{event.oncomplete}"
+ oncontextmenu="#{event.oncontextmenu}"
+ ondblclick="#{event.ondblclick}" ondragend="#{event.ondragend}"
+ ondragenter="#{event.ondragenter}" ondragexit="#{event.ondragexit}"
+ ondragstart="#{event.ondragstart}" ondrop="#{event.ondrop}"
+ ondropend="#{event.ondropend}" ondropout="#{event.ondropout}"
+ ondropover="#{event.ondropover}" onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}" onselected="#{event.onselected}">
+ <h:outputText value="#{dataTree} : " />
+ <h:inputText value="#{dataTree.name}" required="true" styleClass="inputs">
+ </h:inputText>
+
+ <rich:dndParam name="nodeParam" value="Node Parameter" />
+
+ </rich:treeNode>
+ <rich:treeNode type="text" nodeClass="customNode"
+ acceptedTypes="file2" onselected="return false;">
+ <h:outputText value="#{dataTree}" />
+ </rich:treeNode>
+ </rich:tree>
+
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+
+ <h:outputText value="Enter path to expand:" />
+ <h:inputText value="#{treeBean.pathToExpand}">
+ <a4j:support event="onchange" reRender="tree"
+ action="#{treeBean.expandNode}" />
+ </h:inputText>
+
+ <rich:separator></rich:separator>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="Change tree switchType:" />
+ <h:selectOneRadio value="#{treeBean.switchType}" onclick="submit()">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Drag switch:" />
+ <h:selectBooleanCheckbox value="#{treeBean.dragOn}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="Render facets:" />
+ <h:selectBooleanCheckbox value="#{treeBean.renderFacets}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:commandButton value="#{treeBean.commandButtonCaption}"
+ actionListener="#{treeBean.changeIcons}" />
+ </h:panelGrid>
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <rich:tree id="testTree" var="_data" switchType="ajax"
+ ajaxSubmitSelection="true" preserveModel="none" value="#{treeBean.data1}"
+ nodeSelectListener="#{treeBean.onSelectInc}" nodeFace="node">
+ <rich:treeNode type="node">
+ <h:outputText value="#{_data}" />
+ </rich:treeNode>
+ </rich:tree>
+ <rich:separator></rich:separator>
+ <h:outputText value="Tree without treeNode:"></h:outputText>
+ <rich:separator></rich:separator>
+
+ <rich:tree switchType="client" style="width:300px"
+ value="#{pathwayBean.pathwayTree}" var="item" nodeFace="#{item.type}">
+ <rich:treeNode type="library">
+ <h:outputText value="#{item.type}" />
+ </rich:treeNode>
+ <rich:treeNode type="pathway">
+ <h:outputText value="#{item.name}" />
+ </rich:treeNode>
+ <rich:treeNode type="organism">
+ <h:outputText value="#{item.name}" />
+ </rich:treeNode>
+ </rich:tree>
+
+ <rich:spacer></rich:spacer>
+ <!-- Drag and Drop API for rich:tree component -->
+ <div style="FONT-WEIGHT: bold;">Drag & Drop example</div>
+ <br />
+ <h:form>
+ <rich:dragIndicator id="treeIndicator">
+ <f:facet name="single">
+ <f:verbatim>{marker} {nodeParam}({treeParam})</f:verbatim>
+ </f:facet>
+ </rich:dragIndicator>
+
+ <h:panelGrid columns="2" columnClasses="LeftTreePane,RightTreePane">
+
+ <h:panelGroup id="leftContainer" layout="block"
+ styleClass="TreeContainer">
+ <h:outputText escape="false"
+ value="Selected Node: <b>#{treeDndBean.leftSelectedNodeTitle}</b>"
+ id="selectedNodeL" />
+
+ <rich:tree id="leftTree" style="width:300px"
+ nodeSelectListener="#{treeDndBean.processLSelection}"
+ reRender="selectedNodeL" ajaxSubmitSelection="true"
+ switchType="client" value="#{treeDndBean.treeNodeLeft}"
+ changeExpandListener="#{treeDndBean.onExpand}"
+ binding="#{treeDndBean.leftTree}"
+ onselected="window.status='selectedNode: '+event.selectedNode;"
+ onexpand="window.status='expandedNode: '+event.expandedNode"
+ oncollapse="window.status='collapsedNode: '+event.collapsedNode"
+ dropListener="#{treeDndBean.onDrop}"
+ dragListener="#{treeDndBean.onDrag}" dragIndicator="treeIndicator"
+ acceptedTypes="treeNode" dragType="treeNode" rowKeyVar="key"
+ var="item" >
+
+ <rich:dndParam name="treeParam" value="leftTree" />
+ </rich:tree>
+
+ </h:panelGroup>
+
+ <h:panelGroup id="rightContainer" layout="block"
+ styleClass="TreeContainer">
+ <h:outputText escape="false"
+ value="Selected Node: <b>#{treeDndBean.rightSelectedNodeTitle}</b>"
+ id="selectedNodeR" />
+
+ <rich:tree id="rightTree" style="width:300px"
+ nodeSelectListener="#{treeDndBean.processRSelection}"
+ reRender="selectedNodeR,rightContainer" ajaxSubmitSelection="true"
+ switchType="client" value="#{treeDndBean.treeNodeRight}"
+ changeExpandListener="#{treeDndBean.onExpand}"
+ binding="#{treeDndBean.rightTree}"
+ onselected="window.status='selectedNode: '+event.selectedNode;"
+ onexpand="window.status='expandedNode: '+event.expandedNode"
+ oncollapse="window.status='collapsedNode: '+event.collapsedNode"
+ rowKeyVar="key" dropListener="#{treeDndBean.onDrop}"
+ dragListener="#{treeDndBean.onDrag}" dragIndicator="treeIndicator"
+ acceptedTypes="treeNode" dragType="treeNode" var="item">
+ <rich:dndParam name="treeParam" value="rightTree" />
+ </rich:tree>
+ </h:panelGroup>
+
+ </h:panelGrid>
+ </h:form>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Tree/TreeDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Tree/TreeDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Tree/TreeDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,4 @@
+<%@ 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"%>
Added: trunk/test-applications/auto-jsp/src/main/webapp/Tree/TreeProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Tree/TreeProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Tree/TreeProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,24 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="treePropertySubviewID">
+<br />
+ <br />
+ <h:commandButton value="add test" action="#{treeBean.addHtmlTree}"></h:commandButton>
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getAdviseNodeSelected" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('tree').adviseNodeSelected}" />
+ </rich:column>
+ <rich:column>
+ <a4j:commandLink
+ onclick="$('formID:treeSubviewID:tree').component.isRowAvailable()"
+ value="isRowAvailable"></a4j:commandLink>
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Validator/Validator.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Validator/Validator.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Validator/Validator.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,173 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<f:subview id="validatorSubviewID">
+
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText>Single input field with label and message. Validated by AJAX on every changing.</h:outputText>
+ </f:facet>
+ <h:outputLabel for="ltext" value="#{lengthBean.textDescription}" />
+ <h:inputText id="ltext" value="#{lengthBean.text}">
+ <rich:ajaxValidator event="onchange" />
+ </h:inputText>
+ <rich:message for="ltext" showDetail="true" showSummary="true" />
+ </rich:panel>
+ <a4j:region>
+ <h2>Input fields with label and message in the JSF dataTable.
+ Each field validated by AJAX on "onchange" event</h2>
+ <rich:graphValidator value="#{dataValidator}"
+ binding="#{dataValidator.graphValidatorComponent}" id="graphValidatorID">
+ <rich:dataTable value="#{dataValidator.beans}" var="dataBean" id="table">
+ <f:facet name="header">
+ <h:outputText
+ value="Validate values in the data table. Total sum for an all integer values validated for a value less then 20" />
+ </f:facet>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="text field" />
+ </f:facet>
+ <h:outputLabel for="text" value="#{dataBean.textDescription}" />
+ <h:inputText id="text" value="#{dataBean.text}">
+ <rich:ajaxValidator event="onchange" />
+ </h:inputText>
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="integer field" />
+ </f:facet>
+ <h:outputLabel for="intValue" value="#{dataBean.intDescription}" />
+ <h:inputText id="intValue" value="#{dataBean.intValue}">
+ <rich:ajaxValidator event="onchange" />
+ </h:inputText>
+ <rich:message for="intValue" showDetail="true" showSummary="true" />
+ </h:column>
+ <f:facet name="footer">
+ <h:panelGroup>
+ <h:outputText>in addition to fields validation, total sum for an all integer values validated for a value less then 20.</h:outputText>
+ <a4j:commandButton value="Submit all fields"></a4j:commandButton>
+ </h:panelGroup>
+ </f:facet>
+ </rich:dataTable>
+ </rich:graphValidator>
+ </a4j:region>
+ <br />
+
+ <%--<rich:graphValidator value="#{graphValidator}">--%>
+ <h:panelGrid columns="2" border="2" id="panelGridID">
+
+ <f:facet name="header">
+ <h:outputText value="Ajax Validator test" />
+ </f:facet>
+
+ <h:outputLabel for="mailValue" value="Mail validation:" />
+ <h:panelGroup>
+ <h:inputText value="#{validator.text}" id="mailValue">
+ <rich:ajaxValidator binding="#{validator.ajaxValidatorComponent}"
+ data="{param1:'param1',param2:'param2'}"
+ disableDefault="#{validator.disableDefault}" event="onchange"
+ eventsQueue="#{validator.eventsQueue}" focus="mailValue"
+ id="ajaxValidatorID"
+ ignoreDupResponses="#{validator.ignoreDupResponses}"
+ limitToList="#{validator.limitToList}"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}"
+ rendered="#{validator.rendered}"
+ requestDelay="#{validator.requestDelay}"
+ reRender="mailValue,booleanValue,assertTrue,eanValue,creditValue"
+ status="mailValue"
+ ajaxListener="#{validator.processAjax}"></rich:ajaxValidator>
+ </h:inputText>
+ <rich:message for="mailValue" showDetail="true" showSummary="true" />
+ </h:panelGroup>
+
+ <h:outputLabel for="booleanValue" value="AssertFalse validation:" />
+ <h:panelGroup>
+ <h:selectBooleanCheckbox value="#{validator.booleanValue}"
+ id="booleanValue">
+ <rich:ajaxValidator event="onchange"></rich:ajaxValidator>
+ </h:selectBooleanCheckbox>
+ <rich:message for="booleanValue" showDetail="true" showSummary="true" />
+ </h:panelGroup>
+
+ <h:outputLabel for="assertTrue" value="AssertTrue validation:" />
+ <h:panelGroup>
+ <h:selectBooleanCheckbox value="#{validator.assertTrue}"
+ id="assertTrue">
+ <rich:ajaxValidator event="onchange"></rich:ajaxValidator>
+ </h:selectBooleanCheckbox>
+ <rich:message for="assertTrue" showDetail="true" showSummary="true" />
+ </h:panelGroup>
+
+ <h:outputLabel for="dateValue" value="Future validation:" />
+ <h:panelGroup>
+ <h:inputText value="#{validator.dateValue}" id="dateValue"
+ converter="dateValueConverter">
+ <rich:ajaxValidator event="onchange"></rich:ajaxValidator>
+ </h:inputText>
+ <rich:message for="dateValue" showDetail="true" showSummary="true" />
+ </h:panelGroup>
+
+ <h:outputLabel for="patternValue" value="Pattern(1234) validation:" />
+ <h:panelGroup>
+ <h:inputText value="#{validator.patternValue}" id="patternValue">
+ <rich:ajaxValidator event="onchange"></rich:ajaxValidator>
+ </h:inputText>
+ <rich:message for="patternValue" showDetail="true" showSummary="true" />
+ </h:panelGroup>
+
+ <h:outputLabel for="eanValue" value="EAN validation:" />
+ <h:panelGroup>
+ <h:inputText value="#{validator.ean}" id="eanValue">
+ <rich:ajaxValidator event="onchange"></rich:ajaxValidator>
+ </h:inputText>
+ <rich:message for="eanValue" showDetail="true" showSummary="true" />
+ </h:panelGroup>
+
+ <h:outputLabel for="creditValue" value="CreditCardNumber validation:" />
+ <h:panelGroup>
+ <h:inputText value="#{validator.creditValue}" id="creditValue">
+ <rich:ajaxValidator event="onchange"></rich:ajaxValidator>
+ </h:inputText>
+ <rich:message for="creditValue" showDetail="true" showSummary="true" />
+ </h:panelGroup>
+
+ <h:outputLabel for="sizeValues" value="Size validation:" />
+ <h:panelGroup>
+ <h:selectOneMenu value="#{validator.sizeValue}">
+ <f:selectItems id="sizeValues" value="#{validator.sizeValues}"></f:selectItems>
+ <rich:ajaxValidator event="onchange"></rich:ajaxValidator>
+ </h:selectOneMenu>
+ <rich:message for="sizeValues" showDetail="true" showSummary="true" />
+ </h:panelGroup>
+
+ <h:outputLabel for="digit" value="Digits validation:(x.xxx)" />
+ <h:panelGroup>
+ <h:inputText value="#{validator.digit}" id="digit">
+ <rich:ajaxValidator event="onchange"></rich:ajaxValidator>
+ </h:inputText>
+ <rich:message for="digit" showDetail="true" showSummary="true" />
+ </h:panelGroup>
+
+ <h:outputLabel for="range" value="Range validation(0-15):" />
+ <h:panelGroup>
+ <h:inputText value="#{validator.rangeValue}" id="range">
+ <rich:ajaxValidator event="onchange"></rich:ajaxValidator>
+ </h:inputText>
+ <rich:message for="range" showDetail="true" showSummary="true" />
+ </h:panelGroup>
+
+ <h:outputText value="total length should be less than 50" />
+ <a4j:commandButton value="validate all fields" reRender="panelGridID"></a4j:commandButton>
+
+ <f:facet name="footer">
+ <h:outputText value="...together with graphValidator" />
+ </f:facet>
+
+ </h:panelGrid>
+ <%--</rich:graphValidator>--%>
+
+
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Validator/ValidatorDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Validator/ValidatorDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Validator/ValidatorDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,5 @@
+<%@ 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"%>
+<div style="FONT-WEIGHT: bold;">Default component<div>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Validator/ValidatorProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Validator/ValidatorProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Validator/ValidatorProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,81 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<f:subview id="validatorPropertySubviewID">
+ <a4j:commandButton value="add(ajaxValidator) test" action="#{validator.add}"></a4j:commandButton>
+
+ <a4j:commandButton value="add(graphValidator) test" action="#{dataValidator.add}"></a4j:commandButton>
+ <br />
+ <br />
+ <h:panelGrid columns="2" style="display:block; vertical-align:top;">
+ <h:outputText value="Ajax Validator test" style="align:center; font-weight:bold;"/>
+ <h:outputText value="Graph Validator test" style="align:center; font-weight:bold;"/>
+ <h:panelGrid columns="2" border="2">
+
+ <h:outputText value="ajaxSingle" />
+ <h:selectBooleanCheckbox value="#{validator.ajaxSingle}"
+ onchange="submit();" />
+
+ <h:commandButton actionListener="#{validator.checkBinding}"
+ value="Binding" />
+ <h:outputText value="#{validator.bindLabel}" />
+
+ <h:outputText value="disableDefault" />
+ <h:selectBooleanCheckbox value="#{validator.disableDefault}"
+ onchange="submit();" />
+
+ <h:outputText value="eventsQueue" />
+ <h:inputText value="#{validator.eventsQueue}">
+ <a4j:support event="onchange" reRender="ajaxValidatorID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="ignoreDupResponces" />
+ <h:selectBooleanCheckbox value="#{validator.ignoreDupResponses}"
+ onchange="submit();" />
+
+ <h:outputText value="immediate" />
+ <h:selectBooleanCheckbox value="#{validator.immediate}"
+ onchange="submit();" />
+
+ <h:outputText value="limitToList" />
+ <h:selectBooleanCheckbox value="#{validator.limitToList}"
+ onchange="submit();" />
+
+ <h:outputText value="renderRegionOnly" />
+ <h:selectBooleanCheckbox value="#{validator.renderRegionOnly}"
+ onchange="submit();" />
+
+ <h:outputText value="requestDelay" />
+ <h:inputText value="#{validator.requestDelay}">
+ <a4j:support event="onchange" reRender="ajaxValidatorID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="selfRendered" />
+ <h:selectBooleanCheckbox value="#{validator.selfRendered}"
+ onchange="submit();" />
+
+ <h:outputText value="submitted" />
+ <h:selectBooleanCheckbox value="#{validator.submitted}"
+ onchange="submit();" />
+
+ <h:outputText value="timeout" />
+ <h:inputText value="#{validator.timeout}">
+ <a4j:support event="onchange" reRender="ajaxValidatorID"></a4j:support>
+ </h:inputText>
+ </h:panelGrid>
+
+
+ <h:panelGrid columns="2" border="2" style="float:top;">
+ <h:commandButton actionListener="#{dataValidator.checkBinding}"
+ value="Binding" />
+ <h:outputText value="#{dataValidator.bindLabel}" />
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{dataValidator.rendered}"
+ onchange="submit();" />
+ </h:panelGrid>
+
+ </h:panelGrid>
+
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,81 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<f:subview id="validatorStraightforwardSubviewID">
+<a4j:region>
+ <rich:dataTable value="#{dataValidator.data}" var="dataBean" id="SizeValidationID">
+ showSummary="true" />
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="#1" />
+ </f:facet>
+ <a4j:commandLink value="Select" reRender="SizeValidationID"></a4j:commandLink>
+ <f:facet name="footer">
+ <h:outputText value="#1" />
+ </f:facet>
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="#4" />
+ </f:facet>
+ <h:outputText value="#{dataBean.int2}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="#4" />
+ </f:facet>
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="#5" />
+ </f:facet>
+ <h:outputText value="#{dataBean.str1}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="#5" />
+ </f:facet>
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="#7" />
+ </f:facet>
+ <h:graphicImage value="#{dataBean.str2}"></h:graphicImage>
+ <h:outputText value="#{dataBean.str2}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="#7" />
+ </f:facet>
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="#9" />
+ </f:facet>
+ <h:selectBooleanCheckbox value="#{dataBean.bool0}"></h:selectBooleanCheckbox>
+ <f:facet name="footer">
+ <h:outputText value="#9" />
+ </f:facet>
+ </rich:column>
+ </rich:dataTable>
+ </a4j:region>
+ <br />
+ <a4j:region>
+ <h:outputText value="Enter quantity of lines [2-8]" />
+ <h:panelGroup>
+ <h:inputText value="#{dataValidator.length}"/>
+ <a4j:commandButton action="#{dataValidator.addNewItem}" value="ok"
+ reRender="SizeValidationID"></a4j:commandButton>
+ </h:panelGroup>
+ </a4j:region>
+ <br/>
+ <a4j:region>
+ <h:panelGrid columns="2">
+
+ <h:inputText value="#{validator.newValue}" id="beanValidatorInputID">
+ <rich:beanValidator></rich:beanValidator>
+ </h:inputText>
+
+ <a4j:commandButton value="reRender" onclick="submit();" reRender="beanValidatorInputID"></a4j:commandButton>
+ </h:panelGrid>
+ </a4j:region>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/VirtualEarth/VirtualEarth.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/VirtualEarth/VirtualEarth.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/VirtualEarth/VirtualEarth.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,36 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="virtualEarthSubviewID">
+ <h:panelGrid columns="2">
+
+ <rich:virtualEarth id="vEarthID" lng="#{virtualEarth.lng}" onLoadMap="#{event.onLoadMap}" rendered="#{virtualEarth.rendered}" version="#{virtualEarth.version}" lat="#{virtualEarth.lat}" zoom="#{virtualEarth.zoom}"
+ dashboardSize="#{virtualEarth.dashboardSize}" mapStyle="#{virtualEarth.mapStyle}" var="map" binding="#{virtualEarth.myVirtualEarth}"
+ onclick="#{event.onclick}" ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}"/>
+
+ </h:panelGrid>
+
+ <a4j:outputPanel>
+ <script>
+ function createMarker(point,html) {
+ var marker = new GMarker(point);
+ GEvent.addListener(marker, "click", function() {
+ marker.openInfoWindowHtml(html);
+ });
+ return marker;
+ }
+ function showExadel() {
+ var point = new VELatLong(37.9721046, -122.0424842834);
+ map.SetCenterAndZoom(point, 16);
+ map.SetMapStyle(VEMapStyle.Birdseye);
+ }
+ function showExadelInMinsk() {
+ var point = new VELatLong(53.92316,27.510737);
+ map.SetCenterAndZoom(point, 16);
+ map.SetMapStyle(VEMapStyle.Birdseye);
+ }
+ </script>
+ </a4j:outputPanel>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/VirtualEarth/VirtualEarthDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/VirtualEarth/VirtualEarthDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/VirtualEarth/VirtualEarthDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,5 @@
+<%@ 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"%>
+<rich:virtualEarth></rich:virtualEarth>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/VirtualEarth/VirtualEarthProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/VirtualEarth/VirtualEarthProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/VirtualEarth/VirtualEarthProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,79 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="virtualEarthPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="lat(-97 < x < 97):"></h:outputText>
+ <h:inputText value="#{virtualEarth.lat}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="lng(-180 < x < 180):"></h:outputText>
+ <h:inputText value="#{virtualEarth.lng}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="dashboardSize"></h:outputText>
+ <h:selectOneMenu value="#{virtualEarth.dashboardSize}"
+ onchange="submit();">
+ <f:selectItem itemLabel="Normal" itemValue="Normal" />
+ <f:selectItem itemLabel="Small" itemValue="Small" />
+ <f:selectItem itemLabel="Tiny" itemValue="Tiny" />
+ </h:selectOneMenu>
+
+ <h:outputText value="mapStyle"></h:outputText>
+ <h:selectOneMenu value="#{virtualEarth.mapStyle}" onchange="submit();">
+ <f:selectItem itemLabel="Birdseye" itemValue="Birdseye" />
+ <f:selectItem itemLabel="Hybrid" itemValue="Hybrid" />
+ <f:selectItem itemLabel="Aerial" itemValue="Aerial" />
+ <f:selectItem itemLabel="Road" itemValue="Road" />
+ </h:selectOneMenu>
+
+ <h:outputText value="rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{virtualEarth.rendered}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+ </h:panelGrid>
+ <h:panelGroup>
+ <f:verbatim>
+ Dashboard:<br />
+ <a href="javascript:void(0);"
+ onclick="map.HideDashboard();return false;">Remove</a>
+ <a href="javascript:void(0);"
+ onclick="map.ShowDashboard();return false;">Show</a>
+ <br />
+ <br />
+ Type:<br />
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Birdseye);return false;">Birdseye</a>
+ <br />
+ <br />
+ Zoom:<br />
+ <a href="javascript:void(0);" onclick="map.ZoomIn();return false;">In</a>
+ <a href="javascript:void(0);" onclick="map.ZoomOut();return false;">Out</a>
+ <br />
+ <br />
+ <a href="javascript:void(0);" onclick="showExadel();return false;">Show
+ Exadel Office</a>
+ <br />
+ <a href="javascript:void(0);"
+ onclick="showExadelInMinsk();return false;">Show Exadel in
+ Belarus</a>
+ </f:verbatim>
+ </h:panelGroup>
+ <br />
+ <h:commandButton value="add test" action="#{virtualEarth.addHtmlVirtualEarth}"></h:commandButton>
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRendererType" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('vEarthID').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Calendar.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Calendar.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Calendar.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>calendarDataModel</managed-bean-name>
+ <managed-bean-class>calendar.CalendarDataModelImpl</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>calendarBean</managed-bean-name>
+ <managed-bean-class>calendar.CalendarBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <validator>
+ <validator-id>org.richfaces.CalendarValidator</validator-id>
+ <validator-class>calendar.CalendarValidator</validator-class>
+ </validator>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Columns.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Columns.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Columns.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>columns</managed-bean-name>
+ <managed-bean-class>columns.Columns</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Combobox.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Combobox.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Combobox.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>combobox</managed-bean-name>
+ <managed-bean-class>combobox.Combobox</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ComponentControl.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ComponentControl.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ComponentControl.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>componentControl</managed-bean-name>
+ <managed-bean-class>componentControl.ComponentControl</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ComponentInfo.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ComponentInfo.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ComponentInfo.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>info</managed-bean-name>
+ <managed-bean-class>util.componentInfo.Info</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>contextMenu</managed-bean-name>
+ <managed-bean-class>contextMenu.ContextMenu</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <converter>
+ <converter-id>listShuttleConverter</converter-id>
+ <converter-class>listShuttle.ListShuttleConverter</converter-class>
+ </converter>
+ <converter>
+ <converter-id>orderingListConverter</converter-id>
+ <converter-class>orderingList.OrderingListConverter</converter-class>
+ </converter>
+ <!--
+ <converter>
+ <converter-id>pickListConverter</converter-id>
+ <converter-class>pickList.PickListConverter</converter-class>
+ </converter>
+ <converter>
+ <converter-id>comboBoxConverter</converter-id>
+ <converter-class>util.converter.ComboBoxConverter</converter-class>
+ </converter>
+ -->
+ <converter>
+ <converter-id>dataConverter</converter-id>
+ <converter-class>util.converter.DataConverter</converter-class>
+ </converter>
+ <converter>
+ <converter-id>inplaceInputConverter</converter-id>
+ <converter-class>util.converter.InplaceInputConverter</converter-class>
+ </converter>
+ <converter>
+ <converter-id>dateValueConverter</converter-id>
+ <converter-class>util.converter.DateValueConverter</converter-class>
+ </converter>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Custom.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Custom.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Custom.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>custom</managed-bean-name>
+ <managed-bean-class>custom.Custom</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>customList</managed-bean-name>
+ <managed-bean-class>custom.CustomList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>userBean</managed-bean-name>
+ <managed-bean-class>custom.UserBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DDMenu.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DDMenu.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DDMenu.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dDMenu</managed-bean-name>
+ <managed-bean-class>ddMenu.DDMenu</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dataDefinitionList</managed-bean-name>
+ <managed-bean-class>dataDefinitionList.DataDefinitionList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataFilterSlider.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataFilterSlider.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataFilterSlider.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dfs</managed-bean-name>
+ <managed-bean-class>dfs.DemoSliderBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>demoInventoryList</property-name>
+ <value>#{inventoryList}</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>inventoryList</managed-bean-name>
+ <managed-bean-class>dfs.DemoInventoryList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataGrid.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataGrid.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataGrid.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dataGrid</managed-bean-name>
+ <managed-bean-class>dataGrid.DataGrid</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>table</managed-bean-name>
+ <managed-bean-class>dataGrid.Table</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>cell</managed-bean-name>
+ <managed-bean-class>dataGrid.Cell</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dataOrderedList</managed-bean-name>
+ <managed-bean-class>dataOrderedList.DataOrderedList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataScroller.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataScroller.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataScroller.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dataScroller</managed-bean-name>
+ <managed-bean-class>dataScroller.DataScroller</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataTable.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataTable.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DataTable.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dataTable</managed-bean-name>
+ <managed-bean-class>dataTable.DataTable</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DragAndDrop.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DragAndDrop.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-DragAndDrop.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dndBean</managed-bean-name>
+ <managed-bean-class>dnd.DndBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ </faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Effect.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Effect.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Effect.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>effect</managed-bean-name>
+ <managed-bean-class>effect.Effect</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Event.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Event.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Event.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE faces-config PUBLIC
+ "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>event</managed-bean-name>
+ <managed-bean-class>util.event.Event</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ExtendedDataTable.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ExtendedDataTable.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ExtendedDataTable.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+<managed-bean>
+ <managed-bean-name>extendedDataTableBean</managed-bean-name>
+ <managed-bean-class>
+ extendedDataTable.ExtendedDataTableBB
+ </managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+</managed-bean>
+<managed-bean>
+ <managed-bean-name>extendedDataTableControlBean</managed-bean-name>
+ <managed-bean-class>
+ extendedDataTable.ExtendedDataTableControlBean
+ </managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+</managed-bean>
+</faces-config>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-FileUpload.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-FileUpload.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-FileUpload.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>fileUpload</managed-bean-name>
+ <managed-bean-class>fileUpload.FileUpload</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <validator>
+ <validator-id>fileUploadValidator</validator-id>
+ <validator-class>fileUpload.FileUploadValidator</validator-class>
+ </validator>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Gmap.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Gmap.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Gmap.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>gmap</managed-bean-name>
+ <managed-bean-class>gmap.Gmap</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>zoom</property-name>
+ <property-class>java.lang.String</property-class>
+ <value>10</value>
+ </managed-property>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-HotKey.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-HotKey.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-HotKey.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>hotKey</managed-bean-name>
+ <managed-bean-class>hotKey.HotKey</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Icon.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Icon.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Icon.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>icon</managed-bean-name>
+ <managed-bean-class>util.icon.Icon</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InplaceInput.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InplaceInput.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InplaceInput.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>inplaceInput</managed-bean-name>
+ <managed-bean-class>inplaceInput.InplaceInput</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InplaceSelect.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InplaceSelect.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InplaceSelect.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>inplaceSelect</managed-bean-name>
+ <managed-bean-class>inplaceSelect.InplaceSelect</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ </faces-config>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InputNumberSlider.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InputNumberSlider.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InputNumberSlider.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>inputNumberSlider</managed-bean-name>
+ <managed-bean-class>inputNumberSlider.InputNumberSlider</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InputNumberSpinner.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InputNumberSpinner.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-InputNumberSpinner.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>inputNumberSpinner</managed-bean-name>
+ <managed-bean-class>inputNumberSpinner.InputNumberSpinner</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Insert.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Insert.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Insert.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>insert</managed-bean-name>
+ <managed-bean-class>insert.Insert</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>listShuttle</managed-bean-name>
+ <managed-bean-class>listShuttle.ListShuttle</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Message.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Message.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Message.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>message</managed-bean-name>
+ <managed-bean-class>message.Message</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <validator>
+ <validator-id>MessageValidator</validator-id>
+ <validator-class>message.MessageValidator</validator-class>
+ </validator>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ModalPanel.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ModalPanel.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ModalPanel.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>modalPanel</managed-bean-name>
+ <managed-bean-class>modalPanel.ModalPanel</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Options.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Options.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Options.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>option</managed-bean-name>
+ <managed-bean-class>rich.Options</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-OrderingList.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-OrderingList.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-OrderingList.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>orderingList</managed-bean-name>
+ <managed-bean-class>orderingList.OrderingList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PTComponent.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PTComponent.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PTComponent.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>pTComponent</managed-bean-name>
+ <managed-bean-class>util.ptComponent.PTComponent</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Paint2D.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Paint2D.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Paint2D.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>paint2D</managed-bean-name>
+ <managed-bean-class>paint2D.Paint2D</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>paintData</managed-bean-name>
+ <managed-bean-class>paint2D.PaintData</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Panel.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Panel.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Panel.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>panel</managed-bean-name>
+ <managed-bean-class>panel.Panel</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PanelBar.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PanelBar.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PanelBar.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>panelBar</managed-bean-name>
+ <managed-bean-class>panelBar.PanelBar</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PanelMenu.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PanelMenu.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PanelMenu.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>panelMenu</managed-bean-name>
+ <managed-bean-class>panelMenu.PanelMenu</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PickList.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PickList.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-PickList.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>pickList</managed-bean-name>
+ <managed-bean-class>pickList.PickList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ProgressBar.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ProgressBar.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ProgressBar.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+<managed-bean>
+ <managed-bean-name>progressBar</managed-bean-name>
+ <managed-bean-class>progressBar.ProgressBar</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+</managed-bean>
+</faces-config>
+
+
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-RichBean.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-RichBean.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-RichBean.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>richBean</managed-bean-name>
+ <managed-bean-class>rich.RichBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-RichTest.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-RichTest.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-RichTest.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>richTest</managed-bean-name>
+ <managed-bean-class>richTest.RichTest</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ScrollableDataTable.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ScrollableDataTable.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ScrollableDataTable.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>scrollableDT</managed-bean-name>
+ <managed-bean-class>scrollableDataTable.ScrollableDataTable</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Separator.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Separator.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Separator.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>separator</managed-bean-name>
+ <managed-bean-class>separator.Separator</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-SimpleTogglePanel.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-SimpleTogglePanel.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-SimpleTogglePanel.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>simpleTogglePanel</managed-bean-name>
+ <managed-bean-class>sTP.SimpleTogglePanel</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Skin.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Skin.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Skin.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>skinBean</managed-bean-name>
+ <managed-bean-class>util.skins.Skins</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Skinning.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Skinning.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Skinning.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>skinning</managed-bean-name>
+ <managed-bean-class>skinning.Skinning</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-SortingAndFiltering.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-SortingAndFiltering.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-SortingAndFiltering.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>sortingAndFiltering</managed-bean-name>
+ <managed-bean-class>sortingAndFiltering.SortingAndFiltering</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Spacer.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Spacer.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Spacer.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>spacer</managed-bean-name>
+ <managed-bean-class>spacer.Spacer</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Style.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Style.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Style.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>style</managed-bean-name>
+ <managed-bean-class>util.style.Style</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>curentComponent</property-name>
+ <value>#{richBean}</value>
+ </managed-property>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-SuggestionBox.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-SuggestionBox.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-SuggestionBox.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>sb</managed-bean-name>
+ <managed-bean-class>sb.Sb</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-TabPanel.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-TabPanel.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-TabPanel.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>tabPanel</managed-bean-name>
+ <managed-bean-class>tabPanel.TabPanel</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ </faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-TogglePanel.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-TogglePanel.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-TogglePanel.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>togglePanel</managed-bean-name>
+ <managed-bean-class>togglePanel.TogglePanel</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ToolBar.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ToolBar.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-ToolBar.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>toolBar</managed-bean-name>
+ <managed-bean-class>toolBar.ToolBar</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Tree.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Tree.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Tree.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>treeBean</managed-bean-name>
+ <managed-bean-class>tree.Bean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>pathwayBean</managed-bean-name>
+ <managed-bean-class>tree.TreeBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>treeDndBean</managed-bean-name>
+ <managed-bean-class>tree.TreeDndBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Validator.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Validator.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-Validator.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+<managed-bean>
+ <managed-bean-name>beanValidator</managed-bean-name>
+ <managed-bean-class>validator.Bean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>dataValidator</managed-bean-name>
+ <managed-bean-class>validator.DataBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>lengthBean</managed-bean-name>
+ <managed-bean-class>validator.LengthBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+<managed-bean>
+ <managed-bean-name>validator</managed-bean-name>
+ <managed-bean-class>validator.ValidatorBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>graphValidator</managed-bean-name>
+ <managed-bean-class>validator.GraphValidatorBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
+
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-VirtualEarth.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-VirtualEarth.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-VirtualEarth.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>virtualEarth</managed-bean-name>
+ <managed-bean-class>
+ virtualEarth.VirtualEarth
+ </managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>zoom</property-name>
+ <property-class>java.lang.String</property-class>
+ <value>10</value>
+ </managed-property>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-jQuery.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-jQuery.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-jQuery.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>jQuery</managed-bean-name>
+ <managed-bean-class>jQuery.JQuery</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-tooltip.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-tooltip.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config-tooltip.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>tooltip</managed-bean-name>
+ <managed-bean-class>tooltip.Tooltip</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/faces-config.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <navigation-rule>
+ <from-view-id>/pages/main.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>TestDiv</from-outcome>
+ <to-view-id>/pages/Div/Div.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>RichFaces</from-outcome>
+ <to-view-id>/pages/Rich/Rich.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>Map</from-outcome>
+ <to-view-id>/pages/Select/Map.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>CustomizePage</from-outcome>
+ <to-view-id>/CustomizePage/CustomizePage.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <navigation-rule>
+ <from-view-id>/CustomizePage/first.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/CustomizePage/second.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <navigation-rule>
+ <from-view-id>*</from-view-id>
+ <navigation-case>
+ <from-outcome>main</from-outcome>
+ <to-view-id>/pages/main.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <application>
+ <locale-config>
+ <default-locale>en</default-locale>
+ <supported-locale>de</supported-locale>
+ </locale-config>
+ <resource-bundle>
+ <base-name>message_en</base-name>
+ <var>msg</var>
+ </resource-bundle>
+ </application>
+ <lifecycle>
+ <phase-listener id="phaseTracker">util.phaseTracker.PhaseTracker</phase-listener>
+ </lifecycle>
+</faces-config>
Added: trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/WEB-INF/web.xml 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,295 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <display-name>vcp-ComponentsTesting_3_0(1.1)</display-name>
+ <context-param>
+ <param-name>org.ajax4jsf.SKIN</param-name>
+ <param-value>#{skinBean.skin}</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
+ <param-value>#{skinning.skinning}</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.richfaces.CONTROL_SKINNING</param-name>
+ <param-value>#{skinning.skinningClass}</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.richfaces.CONTROL_SKINNING_LEVEL</param-name>
+ <param-value>extended</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>
+ org.richfaces.CONTROL_SKINNING_CLASSES_LEVEL
+ </param-name>
+ <param-value>extended</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Only applicable if state saving method is "server" (=
+ default). Defines the amount (default = 20) of the latest
+ views are stored in session.
+ </description>
+ <param-name>
+ org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION
+ </param-name>
+ <param-value>20</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Only applicable if state saving method is "server" (=
+ default). If true (default) the state will be serialized to
+ a byte stream before it is written to the session. If false
+ the state will not be serialized to a byte stream.
+ </description>
+ <param-name>
+ org.apache.myfaces.SERIALIZE_STATE_IN_SESSION
+ </param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Only applicable if state saving method is "server" (=
+ default) and if
+ org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (=
+ default) If true (default) the serialized state will be
+ compressed before it is written to the session. If false the
+ state will not be compressed.
+ </description>
+ <param-name>
+ org.apache.myfaces.COMPRESS_STATE_IN_SESSION
+ </param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ This parameter tells MyFaces if javascript code should be
+ allowed in the rendered HTML output. If javascript is
+ allowed, command_link anchors will have javascript code that
+ submits the corresponding form. If javascript is not
+ allowed, the state saving info and nested parameters will be
+ added as url parameters. Default: "true"
+ </description>
+ <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ If true, rendered HTML code will be formatted, so that it is
+ "human readable". i.e. additional line separators and
+ whitespace will be written, that do not influence the HTML
+ code. Default: "true"
+ </description>
+ <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ If true, a javascript function will be rendered that is able
+ to restore the former vertical scroll on every request.
+ Convenient feature if you have pages with long lists and you
+ do not want the browser page to always jump to the top if
+ you trigger a link or button action that stays on the same
+ page. Default: "false"
+ </description>
+ <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Used for encrypting view state. Only relevant for client
+ side state saving. See MyFaces wiki/web site documentation
+ for instructions on how to configure an application for
+ diffenent encryption strengths.
+ </description>
+ <param-name>org.apache.myfaces.SECRET</param-name>
+ <param-value>NzY1NDMyMTA=</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Validate managed beans, navigation rules and ensure that
+ forms are not nested.
+ </description>
+ <param-name>org.apache.myfaces.VALIDATE</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Treat readonly same as if disabled attribute was set for
+ select elements.
+ </description>
+ <param-name>
+ org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS
+ </param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Use the defined class as the class which will be called when
+ a resource is added to the ExtensionFilter handling. Using
+ StreamingAddResource here helps with performance. If you
+ want to add custom components and want to use the
+ ExtensionFilter, you need to provide your custom
+ implementation here.
+ </description>
+ <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
+ <param-value>
+ org.apache.myfaces.renderkit.html.util.DefaultAddResource
+ </param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Virtual path in the URL which triggers loading of resources
+ for the MyFaces extended components in the ExtensionFilter.
+ </description>
+ <param-name>
+ org.apache.myfaces.RESOURCE_VIRTUAL_PATH
+ </param-name>
+ <param-value>/faces/myFacesExtensionResource</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Check if the extensions-filter has been properly configured.
+ </description>
+ <param-name>
+ org.apache.myfaces.CHECK_EXTENSIONS_FILTER
+ </param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.richfaces.LoadScriptStrategy</param-name>
+ <param-value>DEFAULT</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.ajax4jsf.xmlfilter.forcenotrf</param-name>
+ <param-value>false</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>
+ /WEB-INF/faces-config-ExtendedDataTable.xml,/WEB-INF/faces-config-DataGrid.xml,/WEB-INF/faces-config-Validator.xml,/WEB-INF/faces-config-ComponentInfo.xml,/WEB-INF/faces-config-HotKey.xml,/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,/WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,/WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,/WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,/WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,/WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,/WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,/WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/!
faces-config-DataScroller.xml,/WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,/WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,/WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-RichTest.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,/WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-DragAndDrop.xml,/WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml,/WEB-INF/faces-config-ContextMenu.xml,/WEB-INF/faces-config-ListShuttle.xml,/WEB-INF/faces-config-Converter.xml,/WEB-INF/faces-config-ComponentControl.xml,/WEB-INF/faces-config-Columns.xml,/WEB-INF/faces-config-PickList.xml,/WEB-INF/faces-config-Combobox.xml,/WEB-INF/faces-config-PTComponent.xml,/WEB-INF/faces-config-Event.xml,/WEB-INF/faces-config-ProgressBar.xml,/WEB-INF/faces-config-Options.xml,/WEB-INF/faces-config-SortingAndFiltering.xml,/WEB-INF/faces-conf!
ig-Style.xml,/WEB-INF/faces-config-FileUpload.xml,/WEB-INF/faces-confi
g-InplaceSelect.xml,/WEB-INF/faces-config-InplaceInput.xml,/WEB-INF/faces-config-Skinning.xml,/WEB-INF/faces-config-Custom.xml
+ </param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_STYLE</param-name>
+ <param-value>false</param-value>
+ </context-param>
+
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ <init-param>
+ <param-name>createTempFiles</param-name>
+ <param-value>true</param-value>
+ </init-param>
+ <init-param>
+ <param-name>maxRequestSize</param-name>
+ <param-value>143482880</param-value>
+ </init-param>
+ </filter>
+
+ <!-- Extensions Filter -->
+ <filter>
+ <filter-name>extensionsFilter</filter-name>
+ <filter-class>
+ org.apache.myfaces.webapp.filter.ExtensionsFilter
+ </filter-class>
+ <init-param>
+ <description>
+ Set the size limit for uploaded files. Format: 10 - 10
+ bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
+ </description>
+ <param-name>uploadMaxFileSize</param-name>
+ <param-value>100m</param-value>
+ </init-param>
+ <init-param>
+ <description>
+ Set the threshold size - files below this limit are
+ stored in memory, files above this limit are stored on
+ disk.
+
+ Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
+ </description>
+ <param-name>uploadThresholdSize</param-name>
+ <param-value>100k</param-value>
+ </init-param>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+
+ <filter-mapping>
+ <filter-name>extensionsFilter</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ </filter-mapping>
+
+ <session-config>
+ <session-timeout>600</session-timeout>
+ </session-config>
+
+ <!-- Listener, to allow Jetty serving MyFaces apps -->
+ <listener>
+ <listener-class>
+ org.apache.myfaces.webapp.StartupServletContextListener
+ </listener-class>
+ </listener>
+
+ <!-- Faces Servlet -->
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <!-- Faces Servlet Mapping -->
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Added: trunk/test-applications/auto-jsp/src/main/webapp/index.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/index.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/index.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,8 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+</head>
+<body>
+ <jsp:forward page="/pages/main.jsf" />
+</body>
+</html>
Added: trunk/test-applications/auto-jsp/src/main/webapp/jQuery/jQuery.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/jQuery/jQuery.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/jQuery/jQuery.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,129 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<f:subview id="jQuerySubviewID">
+ <style>
+.divSize_1 {
+ width: 150px;
+ height: 90px;
+ margin: 10px;
+ border: 2px solid #DAA520;
+}
+
+.divColor_1 {
+ background-color: #1E90FF;
+}
+
+.divTextSize_1 {
+ font-size: xx-large;
+}
+
+.divSize_2 {
+ width: 90px;
+ height: 150px;
+ margin: 10px;
+ border: 2px solid #FF0000;
+}
+
+.divColor_2 {
+ background-color: #7FFF00;
+}
+
+.oddTable {
+ background-color: #FFE4C4;
+}
+
+.activeTable {
+ background-color: #AFEEEE;
+}
+
+.fontColor {
+ font-style: italic;
+ color: #228B22;
+}
+</style>
+ <h:panelGrid id="panelGridID" columns="2" border="1">
+ <h:outputText value="add text: [li],work!, e.g. A. one [li],work!" />
+ <h:panelGroup>
+ <f:verbatim>
+ <ol type="A" title="li">
+ <li>one</li>
+ <li>two</li>
+ <li>three</li>
+ </ol>
+ </f:verbatim>
+ </h:panelGroup>
+
+ <h:outputText value="green text: add text3 " />
+ <f:verbatim>
+ <p><span>Text1 </span>text2</p>
+ </f:verbatim>
+
+ <h:panelGroup>
+ <h:outputText
+ value="Rectangle: size: "150 x 90"; bgcolor: "dodgerblue"" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputText value="Table: bgcolor: "bisque"" />
+ </h:panelGroup>
+ <f:verbatim>
+ <div id="div_1_ID">xx-large <br />
+ text</div>
+ </f:verbatim>
+
+ <h:panelGroup>
+ <h:outputText
+ value="Rectangle: size: "90 x 150"; border-color "red"" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputText value="Table: bgcolor: "none"" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputText value="effect(mouseover)" />
+ </h:panelGroup>
+ <f:verbatim>
+ <div id="div_2_ID">normal text</div>
+ </f:verbatim>
+ </h:panelGrid>
+
+
+ <rich:jQuery selector="li" timing="onload" id="jQid"
+ query="find('ol').end().append('[li],work!')" binding="#{jQuery.htmlJQuery}" />
+
+ <rich:jQuery selector="body" timing="onload" query="addClass('body')" />
+ <rich:jQuery selector="tr:nth-child(odd)" timing="onload"
+ query="addClass('oddTable')" />
+ <rich:jQuery selector="#panelGridID tr"
+ query="mouseover(function(){jQuery(this).addClass('activeTable')})" />
+ <rich:jQuery selector="#panelGridID tr"
+ query="mouseout(function(){jQuery(this).removeClass('activeTable')})" />
+
+ <rich:jQuery selector="#div_2_ID" timing="onload"
+ query="mouseover(function(){jQuery(this).fadeOut({height: 'hide'}, 500).text('New text').animate({height: 'show'}, 500)})" />
+ <rich:jQuery selector="p" timing="onload"
+ query="find('span').html('text1').end().append('<p class=\'fontColor\'>add text3<p>')" />
+ <rich:jQuery selector="#div_1_ID" timing="onload"
+ query="addClass('divSize_1')" />
+ <rich:jQuery selector=".divSize_1" timing="onload"
+ query="addClass('divColor_1')" />
+ <rich:jQuery selector="#panelGridID #div_1_ID" timing="onload"
+ query="addClass('divTextSize_1')" />
+ <rich:jQuery selector="#form\\:panelGridID #div_2_ID" timing="onload"
+ query="addClass('divSize_2')" />
+ <br />
+ <h:commandButton action="#{jQuery.add}" value="add test"/>
+ <br/>
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRendererType" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('jQid').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/Blank.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/Blank.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/Blank.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,7 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="blankSubviewID">
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/BlankDefault.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/BlankDefault.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/BlankDefault.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,7 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+
+<f:subview id="defaultSubviewID">
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/BlankProperty.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/BlankProperty.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/BlankProperty.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,7 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="PropertySubviewID">
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/BlankStraightforward.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/BlankStraightforward.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/pages/Blank/BlankStraightforward.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,7 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="StraightforwardSubviewID">
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/pages/Div/Div.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/pages/Div/Div.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/pages/Div/Div.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,52 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<f:view>
+<html>
+<head>
+<title></title>
+ <script type="text/javascript">
+ function showEvent(elementID, value) {
+ var oldObject = window.document.getElementById(elementID);
+ var newObject = window.document.createElement('input');
+ newObject.type = "text";
+ newObject.size = oldObject.size;
+ newObject.value = value;
+ newObject.id = oldObject.id;
+ //if(oldObject.size) newObject.size = oldObject.size;
+ //if(oldObject.value) newObject.value = value;
+ //if(oldObject.id) newObject.id = oldObject.id;
+ //if(oldObject.name) newObject.name = oldObject.name;
+ //if(oldObject.className) newObject.className = oldObject.className;
+ oldObject.parentNode.replaceChild(newObject,oldObject);
+ }
+ </script>
+<link rel="stylesheet" href="<%=request.getContextPath()%>/styles/styles.css" type="text/css" />
+</head>
+<body>
+ <jsp:include page="/pages/RichMenu/RichMenu.jsp" />
+ <div id="div_1_ID" style="position: relative; left:400px; top:400px; border-color: red, 2px;">
+ <div id="div_2_ID" style="position: absolute; left:-380px; top:-380px; color: blue, 2px;">
+ <jsp:include page="${richBean.pathComponent}" />
+ </div>
+ </div>
+ <h:form>
+ <jsp:include page="${richBean.pathStraightforward}" />
+ <jsp:include page="${richBean.pathProperty}" />
+ </h:form>
+ <rich:modalPanel id="eventInfoID" minHeight="550" minWidth="200" moveable="true" resizeable="true" style="overflow: true;">
+ <f:facet name="header">
+ <h:outputText value="Events ..." />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif" onclick="Richfaces.hideModalPanel('eventInfoID');"/>
+ </f:facet>
+
+ <jsp:include page="/pages/Action/EventInfo.jsp" />
+
+ </rich:modalPanel>
+ <a4j:commandButton value="Show event" onclick="Richfaces.showModalPanel('eventInfoID');return false;"></a4j:commandButton>
+</body>
+</html>
+</f:view>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/pages/Info/Info.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/pages/Info/Info.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/pages/Info/Info.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,37 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="infoSubview">
+ <h:panelGrid binding="#{info.panelEvent}" columns="2">
+ </h:panelGrid>
+ <f:verbatim><br/></f:verbatim>
+ <h:commandButton action="#{info.getEvent}" value="test event"></h:commandButton>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="style:"></h:outputText>
+ <h:dataTable id="styleTableID" value="#{info.style}" var="info">
+ <h:column>
+ <h:outputText value="#{info.key}"></h:outputText>
+ </h:column>
+ <h:column>
+ <h:outputText value="#{info.value}"></h:outputText>
+ </h:column>
+ </h:dataTable>
+
+ <h:outputText value="attribute"></h:outputText>
+ <h:selectBooleanCheckbox value="#{option.attribute}" onchange="submit();"></h:selectBooleanCheckbox>
+
+
+ <h:outputText value="attribute:" rendered="#{option.attribute}"></h:outputText>
+ <h:dataTable id="attributeTableID" rendered="#{option.attribute}" value="#{info.attribute}" var="info">
+ <h:column>
+ <h:outputText value="#{info.key}"></h:outputText>
+ </h:column>
+ <h:column>
+ <h:outputText value="#{info.value}"></h:outputText>
+ </h:column>
+ </h:dataTable>
+ </h:panelGrid>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/pages/Rich/Rich.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/pages/Rich/Rich.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/pages/Rich/Rich.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,75 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+<%@page contentType="text/html; charset=UTF-8" %>
+
+<html>
+<f:view>
+ <head>
+ <f:loadBundle basename="message" var="msg"/>
+ <title></title>
+
+ <script type="text/javascript">
+ function showEvent(elementID, value) {
+ var oldObject = window.document.getElementById(elementID);
+ if (oldObject == null) return;
+ var newObject = window.document.createElement('input');
+ if (oldObject.type) newObject.type = oldObject.type;
+ 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="formID">
+ <div id="divOpthID" align="right" style="z-index: 200">
+ <jsp:include page="/pages/RichMenu/RichMenu.jsp"/>
+ </div>
+ <rich:messages id="richMessagesID" ajaxRendered="true" showSummary="true">
+ <f:facet name="errorMarker">
+ <h:graphicImage url="/pics/error.gif" />
+ </f:facet>
+
+ <f:facet name="fatalMarker">
+ <h:graphicImage url="/pics/fatal.gif" />
+ </f:facet>
+
+ <f:facet name="infoMarker">
+ <h:graphicImage url="/pics/info.gif" />
+ </f:facet>
+
+ <f:facet name="warnMarker">
+ <h:graphicImage url="/pics/warn.gif" />
+ </f:facet>
+
+ <f:facet name="passedMarker">
+ <h:graphicImage url="/pics/passed.gif" />
+ </f:facet>
+ </rich:messages>
+ <%--h:messages id="hMessagesID" showDetail="true" showSummary="true"></h:messages--%>
+
+ <h:panelGrid id="richGridID" columns="1" width="100%" rendered="true">
+ <h:panelGroup rendered="#{option.reComponent}">
+ <jsp:include page="${richBean.pathComponent}"/>
+ </h:panelGroup>
+ <a4j:log popup="false" rendered="#{option.log}"></a4j:log>
+ <h:panelGroup rendered="#{option.reStraightforward}">
+ <jsp:include page="${richBean.pathStraightforward}"/>
+ </h:panelGroup>
+
+ <h:panelGroup rendered="#{option.reProperty}">
+ <jsp:include page="${richBean.pathProperty}"/>
+ </h:panelGroup>
+ </h:panelGrid>
+ </h:form>
+ <h:form id="infoFormID">
+ <jsp:include page="/pages/Info/Info.jsp"/>
+ </h:form>
+ </body>
+</f:view>
+</html>
Added: trunk/test-applications/auto-jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,60 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="richMenuSubviewID">
+ <h:panelGrid columns="5" border="1">
+ <h:panelGrid columns="2">
+ <h:outputText value="h" />
+ <h:outputText value="a4j" />
+ <h:commandButton value="submit" style="width : 85px; height : 21px;"></h:commandButton>
+ <a4j:commandButton value="submit" reRender="richGridID" style="width : 85px; height : 21px;"></a4j:commandButton>
+ <h:commandButton value="immediate" immediate="true" style="width : 85px; height : 21px;"></h:commandButton>
+ <a4j:commandButton value="immediate" immediate="true" reRender="richGridID" style="width : 85px; height : 21px;"></a4j:commandButton>
+ </h:panelGrid>
+ <h:panelGrid columns="2">
+ <h:outputLabel for="a4jLodID" value="a4j:log"></h:outputLabel>
+ <h:selectBooleanCheckbox id="a4jLodID" value="#{option.log}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <a4j:status id="a4jStatusID" startText="WORK!" startStyle="color: red;" stopText="a4j:status"></a4j:status>
+ </h:panelGrid>
+ <h:panelGrid columns="1">
+ <h:panelGrid columns="4">
+ <h:outputText value="Default:" />
+ <h:selectBooleanCheckbox value="#{option.reDefault}" />
+
+ <h:outputText value="Component" />
+ <h:selectBooleanCheckbox value="#{option.reComponent}" onchange="submit();" />
+
+ <h:outputText value="Straightforward" />
+ <h:selectBooleanCheckbox value="#{option.reStraightforward}" onchange="submit();" />
+
+ <h:outputText value="Property" />
+ <h:selectBooleanCheckbox value="#{option.reProperty}" onchange="submit();" />
+ </h:panelGrid>
+ </h:panelGrid>
+
+ <h:panelGrid columns="1">
+ <h:outputText value="Select skin: " />
+ <h:selectOneMenu binding="#{skinBean.component}" onblur="submit();">
+ <a4j:support action="#{skinBean.change}" event="onchange" />
+ </h:selectOneMenu>
+ <h:selectOneMenu value="#{skinning.selectSkinning}" onblur="submit();">
+ <f:selectItem itemLabel="none" itemValue="none"/>
+ <f:selectItem itemLabel="skinning" itemValue="SKINNING"/>
+ <f:selectItem itemLabel="skinningClass" itemValue="SKINNING_CLASSES"/>
+ </h:selectOneMenu>
+ </h:panelGrid>
+
+ <h:panelGrid columns="1">
+ <h:commandButton action="#{richBean.invalidateSession}" immediate="true" value="Invalidates this session"></h:commandButton>
+ <h:outputText value="Select component:" />
+ <h:selectOneMenu value="#{richBean.src}" immediate="true" onchange="submit();">
+ <f:selectItems value="#{richBean.list}" />
+ <f:param value="#{richBean.src}" name="currentComponent"/>
+ </h:selectOneMenu>
+ </h:panelGrid>
+ </h:panelGrid>
+ <h:commandLink value="Back" action="main"></h:commandLink>
+</f:subview>
Added: trunk/test-applications/auto-jsp/src/main/webapp/pages/Select/Map.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/pages/Select/Map.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/pages/Select/Map.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,78 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+<%@page contentType="text/html; charset=UTF-8" %>
+
+<html>
+<f:view>
+ <head>
+ <f:loadBundle basename="message" var="msg"/>
+ <title></title>
+
+ <script type="text/javascript">
+ function showEvent(elementID, value) {
+ var oldObject = window.document.getElementById(elementID);
+ if (oldObject == null) return;
+ var newObject = window.document.createElement('input');
+ if (oldObject.type) newObject.type = oldObject.type;
+ 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="formID">
+ <div id="divOpthID" align="right" style="z-index: 200">
+ <jsp:include page="/pages/RichMenu/RichMenu.jsp"/>
+ </div>
+ <div id="divID" style="position: absolute; top:60px; left: 10px; z-index: -1">
+ <jsp:include page="SelectOneMenuPage.jsp" />
+ </div>
+ <rich:messages id="richMessagesID" ajaxRendered="true" showSummary="true">
+ <f:facet name="errorMarker">
+ <h:graphicImage url="/pics/error.gif" />
+ </f:facet>
+
+ <f:facet name="fatalMarker">
+ <h:graphicImage url="/pics/fatal.gif" />
+ </f:facet>
+
+ <f:facet name="infoMarker">
+ <h:graphicImage url="/pics/info.gif" />
+ </f:facet>
+
+ <f:facet name="warnMarker">
+ <h:graphicImage url="/pics/warn.gif" />
+ </f:facet>
+
+ <f:facet name="passedMarker">
+ <h:graphicImage url="/pics/passed.gif" />
+ </f:facet>
+ </rich:messages>
+ <h:messages id="hMessagesID" showDetail="true" showSummary="true"></h:messages>
+
+ <h:panelGrid id="richGridID" columns="1" width="100%" rendered="true">
+ <h:panelGroup rendered="#{option.reComponent}">
+ <jsp:include page="${richBean.pathComponent}"/>
+ </h:panelGroup>
+ <a4j:log popup="false" rendered="#{option.log}"></a4j:log>
+ <h:panelGroup rendered="#{option.reStraightforward}">
+ <jsp:include page="${richBean.pathStraightforward}"/>
+ </h:panelGroup>
+
+ <h:panelGroup rendered="#{option.reProperty}">
+ <jsp:include page="${richBean.pathProperty}"/>
+ </h:panelGroup>
+ </h:panelGrid>
+ </h:form>
+ <h:form id="infoFormID">
+ <jsp:include page="/pages/Info/Info.jsp"/>
+ </h:form>
+ </body>
+</f:view>
+</html>
Added: trunk/test-applications/auto-jsp/src/main/webapp/pages/Select/SelectOneMenuPage.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/pages/Select/SelectOneMenuPage.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/pages/Select/SelectOneMenuPage.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,176 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+
+<f:subview id="selectOneMenuPage">
+ <h:panelGrid columns="7" cellpadding="0px" cellspacing="0px">
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu value="selectItem" >
+ <f:selectItem itemLabel="selectItem" itemValue="test" />
+ </h:selectOneMenu>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/auto-jsp/src/main/webapp/pages/main.jsp
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/pages/main.jsp (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/pages/main.jsp 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,34 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<html>
+<head>
+<title></title>
+<link rel="stylesheet" href="<%=request.getContextPath()%>/styles/styles.css" type="text/css" />
+</head>
+<body>
+<f:view>
+ <h:form id="mainFormID">
+ <rich:panel>
+ <f:verbatim>
+ <div align="center"><font size="4" color="#191970">RichFaces Test Application</font></div>
+ </f:verbatim>
+ </rich:panel>
+ <rich:spacer></rich:spacer>
+ <rich:panel>
+ <h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
+ <h:commandLink value="RichFaces" action="RichFaces"></h:commandLink>
+ <h:commandLink value="Div" action="TestDiv"></h:commandLink>
+ <h:commandLink value="Select" action="Map" disabled="true"></h:commandLink>
+ <h:commandLink value="Customize page" action="CustomizePage"></h:commandLink>
+ </h:panelGrid>
+ </rich:panel>
+ <rich:spacer></rich:spacer>
+ <rich:panel>
+ <h:outputText style="align:right;" value="RichFace: #{a4j.version}" />
+ </rich:panel>
+ </h:form>
+</f:view>
+</body>
+</html>
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/458_1_big.gif
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/458_1_big.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/458_2_big.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/458_2_big.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/ajax_process.gif
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/ajax_process.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/ajax_stoped.gif
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/ajax_stoped.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/asus.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/asus.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/benq.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/benq.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/collapse.gif
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/collapse.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/error.gif
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/error.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/expand.gif
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/expand.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/fatal.gif
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/fatal.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/file-manager-reject.png
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/file-manager-reject.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/file-manager.png
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/file-manager.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/header.png
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/header.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/info.gif
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/info.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/item.png
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/item.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/masshtaby_01.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/masshtaby_01.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/passed.gif
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/passed.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/podb109_61.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/podb109_61.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/toshiba.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/toshiba.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/pics/warn.gif
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/auto-jsp/src/main/webapp/pics/warn.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/auto-jsp/src/main/webapp/styles/app.css
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/styles/app.css (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/styles/app.css 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,29 @@
+.rich-message-label{
+ padding: 0px 10px;
+}
+
+.rich-messages-label{
+ padding: 0px 10px
+}
+
+.rich-message-marker{
+}
+
+.rich-message{
+}
+
+.errorLabel{
+ color: #FF0000;
+}
+
+.warnLabel{
+ color: #0000FF;
+}
+
+.infoLabel{
+ color: #00FF00;
+}
+
+.fatalLabel{
+ color: #FF1493;
+}
Added: trunk/test-applications/auto-jsp/src/main/webapp/styles/styles.css
===================================================================
--- trunk/test-applications/auto-jsp/src/main/webapp/styles/styles.css (rev 0)
+++ trunk/test-applications/auto-jsp/src/main/webapp/styles/styles.css 2008-10-27 18:44:32 UTC (rev 10923)
@@ -0,0 +1,277 @@
+/*simple toggle panel (icon position)*/
+.dr-stglpanel-marker {
+ float: right;
+}
+
+/* Suggestion Box */
+.entryClass {
+ color: red;
+ background-color: yellow;
+}
+
+.popupClass {
+ background-color: white;
+}
+
+/* Message and messages */
+.rich-message-label {
+ padding: 0px 10px;
+}
+
+.rich-messages-label {
+ padding: 0px 10px;
+}
+
+.rich-message-marker {
+
+}
+
+.rich-message {
+
+}
+
+.errorLabel {
+ color: #FF0000;
+}
+
+.warnLabel {
+ color: #0000FF;
+}
+
+.infoLabel {
+ color: #00FF00;
+ width: inherit;
+}
+
+.fatalLabel {
+ color: #FF1493;
+}
+
+.maintext {
+ font-size: 30px !important;
+}
+
+.text1 {
+ font-size: 14px !important;
+}
+
+.style {
+ background: red;
+ border: solid 3px red;
+ font: bold 14px tahoma;
+}
+
+/* inputNumderSlider Styles */
+.barStyle {
+ background-color: purple !important;
+ border: red 3px solid;
+}
+
+.inputStyle {
+ background-color: lime !important;
+ border: red 3px solid;
+ font-family: monospace;
+}
+
+.tipStyle {
+ border: green 3px solid;
+ background-color: yellow;
+ font: bold 14px italic;
+}
+
+.handleStyle {
+ border: green 3px solid;
+ background-color: yellow;
+}
+
+/* TabPanel Styles */
+.activeTabStyle {
+ background: lime;
+ border: solid 3px black;
+ font: italic 14px normal;
+}
+
+.inactiveTabStyle {
+ background: gray;
+ border: solid 3px blue;
+ font: bold 14px normal;
+}
+
+.disabledTabStyle {
+ background: silver;
+ border: dotted 3px blue;
+ font: small-caps 14px san-serif;
+}
+
+.contentStyle {
+ background: silver;
+ border: 1px red;
+ font: normal 20px san-serif;
+}
+
+/* inputNumerSpinner Styles*/
+.inputStyle {
+ background: aqua;
+ border: thin red;
+ font: normal 15px fantasy;
+}
+
+/* ToolBar Styles*/
+.separatorClass {
+ border: 3px solid red;
+ background: lime;
+}
+
+.contentClass {
+ background: silver;
+ border: 1px red;
+ font: normal 20px tahoma;
+}
+
+.toolBarClass {
+ border: 3px double yellow;
+ background: lime;
+}
+
+/*Calendar*/
+.smallText {
+ font-size: xx-small;
+}
+
+.largeText {
+ font-size: xx-large;
+}
+
+.Selecteddayclass {
+ background-color: #0087FF;
+}
+
+/*Data FilterSlider*/
+.column {
+ width: 75px;
+ font: normal 11px tahoma, sans-serif;
+ text-align: center;
+}
+
+.column-index {
+ width: 75px;
+ font: normal 11px tahoma, sans-serif;
+ text-align: left;
+}
+
+.list-row3 {
+ background-color: #ececec;
+}
+
+.list-row1 {
+ background-color: #f1f6fd;
+}
+
+.list-row2 {
+ background-color: #fff;
+}
+
+.list-header {
+ font: bold 11px tahoma, sans-serif;
+ text-align: center;
+}
+
+.list-table1 {
+ border: 1px solid #bed6f8;
+}
+
+.list-table2 {
+ border: 1px solid #bed6f8;
+}
+
+/*Drag and drop*/
+.dropzoneDecoration {
+ width: 70px;
+ height: 70px;
+ border: 2px dotted navy;
+}
+
+.accept {
+ border: 3px dotted green;
+ padding: 10px;
+}
+
+.reject {
+ border: 3px dashed red;
+ padding: 10px;
+}
+
+.mousemove {
+ border: 3px dotted green;
+ padding: 5px;
+}
+
+/*Panel2*/
+.panel {
+ vertical-align: top;
+}
+
+.rich-panel-header {
+
+}
+
+.top {
+ width: 200px !important;
+ height: 100px !important;
+}
+
+.hea {
+ color: #FCC !important;
+}
+
+.bo {
+ color: #F00 !important;
+}
+
+.top2 {
+ width: 200px !important;
+ height: 100px !important;
+ border: 2px solid #4C9600 !important;
+ background-color: #E4FFC8 !important;
+}
+
+.hea2 {
+ background-image: url() !important;
+ background-color: #4C9600 !important;
+ height: 18px !important;
+ text-align: center !important;
+ vertical-align: middle !important;
+ color: #CFF !important;
+ padding: 4px 0 !important;
+}
+
+.bo2 {
+ color: #4C9600;
+}
+
+.bo3 {
+ height: 100px;
+ overflow: auto;
+}
+
+/*TabPanel*/
+.text {
+ font-size: 20px
+}
+
+.bgc {
+ border: thick;
+ background-color: green
+}
+
+/*SimpleTogglePanel*/
+.head {
+ background-color: aqua;
+}
+
+.body {
+ background-color: purple;
+}
+.test{
+ color: green;
+}
\ No newline at end of file
16 years, 11 months
JBoss Rich Faces SVN: r10922 - trunk/test-applications/jsp/src/main/java/util/parser.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-10-27 13:37:46 -0400 (Mon, 27 Oct 2008)
New Revision: 10922
Modified:
trunk/test-applications/jsp/src/main/java/util/parser/TLDParser.java
Log:
getSimpleAttributes -> getCommonAttributes
Modified: trunk/test-applications/jsp/src/main/java/util/parser/TLDParser.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/parser/TLDParser.java 2008-10-27 17:36:55 UTC (rev 10921)
+++ trunk/test-applications/jsp/src/main/java/util/parser/TLDParser.java 2008-10-27 17:37:46 UTC (rev 10922)
@@ -176,7 +176,7 @@
return result;
}
- public ArrayList<String> getSimpleAttributes(){
+ public ArrayList<String> getCommonAttributes(){
ArrayList<String> attributes = this.getNamesArray();
ArrayList<String> result = new ArrayList<String>();
for(String str:attributes){
16 years, 11 months
JBoss Rich Faces SVN: r10921 - in trunk/test-applications/jsp/src/main/java/util: parser and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-10-27 13:36:55 -0400 (Mon, 27 Oct 2008)
New Revision: 10921
Modified:
trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java
trunk/test-applications/jsp/src/main/java/util/parser/TLDParser.java
Log:
RF-4749
Modified: trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java 2008-10-27 17:08:54 UTC (rev 10920)
+++ trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java 2008-10-27 17:36:55 UTC (rev 10921)
@@ -90,8 +90,7 @@
ArrayList<Attribute> allAttributes = parser.getAllAttributes();
for(Attribute s:allAttributes){
System.out.println(s.toString());
- }
-
+ }
AccessibleObject.setAccessible(fields, true);
for (Field field : fields) {
str = field.getName().substring(1);
Modified: trunk/test-applications/jsp/src/main/java/util/parser/TLDParser.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/parser/TLDParser.java 2008-10-27 17:08:54 UTC (rev 10920)
+++ trunk/test-applications/jsp/src/main/java/util/parser/TLDParser.java 2008-10-27 17:36:55 UTC (rev 10921)
@@ -13,7 +13,7 @@
protected String component;
protected JarEntry tld;
protected JarFile richfacesUI;
- protected ArrayList<Attribute> allAttributes;
+ protected ArrayList<Attribute> allAttributes;
public TLDParser(String str) {
this.component = str;
@@ -153,4 +153,37 @@
}
return result;
}
+
+ public ArrayList<String> getHandlers(){
+ ArrayList<String> attributes = this.getNamesArray();
+ ArrayList<String> result = new ArrayList<String>();
+ for(String str:attributes){
+ if (str.startsWith("on")) {
+ result.add(str);
+ }
+ }
+ return result;
+ }
+
+ public ArrayList<String> getStyles(){
+ ArrayList<String> attributes = this.getNamesArray();
+ ArrayList<String> result = new ArrayList<String>();
+ for(String str:attributes){
+ if (str.indexOf("tyle") != -1 || str.indexOf("lass") != -1) {
+ result.add(str);
+ }
+ }
+ return result;
+ }
+
+ public ArrayList<String> getSimpleAttributes(){
+ ArrayList<String> attributes = this.getNamesArray();
+ ArrayList<String> result = new ArrayList<String>();
+ for(String str:attributes){
+ if(!(str.startsWith("on") || (str.indexOf("tyle") != -1) || (str.indexOf("lass") != -1))){
+ result.add(str);
+ }
+ }
+ return result;
+ }
}
16 years, 11 months
JBoss Rich Faces SVN: r10920 - Plan and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-10-27 13:08:54 -0400 (Mon, 27 Oct 2008)
New Revision: 10920
Added:
trunk/test-applications/qa/Test Plan/AutomatedAttributesTestApp.doc
trunk/test-applications/qa/Test Plan/TestPlan-RF.doc
Removed:
trunk/test-applications/qa/Test Plan/TestPlan-RF-3.2.0.doc
Log:
Added: trunk/test-applications/qa/Test Plan/AutomatedAttributesTestApp.doc
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Test Plan/AutomatedAttributesTestApp.doc
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: trunk/test-applications/qa/Test Plan/TestPlan-RF-3.2.0.doc
===================================================================
(Binary files differ)
Added: trunk/test-applications/qa/Test Plan/TestPlan-RF.doc
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Test Plan/TestPlan-RF.doc
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 11 months
JBoss Rich Faces SVN: r10919 - trunk/test-applications/jsp/src/main/java/util/parser.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-10-27 12:42:20 -0400 (Mon, 27 Oct 2008)
New Revision: 10919
Modified:
trunk/test-applications/jsp/src/main/java/util/parser/TLDParser.java
Log:
flag is changed to insideTag.
Modified: trunk/test-applications/jsp/src/main/java/util/parser/TLDParser.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/parser/TLDParser.java 2008-10-27 16:41:26 UTC (rev 10918)
+++ trunk/test-applications/jsp/src/main/java/util/parser/TLDParser.java 2008-10-27 16:42:20 UTC (rev 10919)
@@ -32,9 +32,9 @@
String line, attr;
Attribute attribute = new Attribute();
int position, end;
- boolean flag = true;
+ boolean insideTag = true;
StringBuilder sb = new StringBuilder("");
- while (((line = reader.readLine()) != null) && flag) {
+ while (((line = reader.readLine()) != null) && insideTag) {
if ((position = line.indexOf("<name>")) != -1) {
end = line.indexOf("</name>");
attr = line.substring(position + 6, end).trim();
@@ -84,7 +84,7 @@
attribute = new Attribute();
}
}
- flag = false;
+ insideTag = false;
}
}
}
16 years, 11 months
JBoss Rich Faces SVN: r10918 - in management/design: photosite and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-10-27 12:41:26 -0400 (Mon, 27 Oct 2008)
New Revision: 10918
Added:
management/design/photosite/
management/design/photosite/views drafts/
management/design/photosite/views drafts/FileUpload View.vsd
management/design/photosite/views drafts/User Pictures browse (List).vsd
management/design/photosite/views drafts/User pictures browse (Slideshow).vsd
management/design/photosite/views drafts/login preferences.vsd
management/design/photosite/views drafts/login.vsd
management/design/photosite/views drafts/main template after login.vsd
management/design/photosite/views drafts/user preferences.vsd
Log:
initial views drafts
Added: management/design/photosite/views drafts/FileUpload View.vsd
===================================================================
(Binary files differ)
Property changes on: management/design/photosite/views drafts/FileUpload View.vsd
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/photosite/views drafts/User Pictures browse (List).vsd
===================================================================
(Binary files differ)
Property changes on: management/design/photosite/views drafts/User Pictures browse (List).vsd
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/photosite/views drafts/User pictures browse (Slideshow).vsd
===================================================================
(Binary files differ)
Property changes on: management/design/photosite/views drafts/User pictures browse (Slideshow).vsd
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/photosite/views drafts/login preferences.vsd
===================================================================
(Binary files differ)
Property changes on: management/design/photosite/views drafts/login preferences.vsd
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/photosite/views drafts/login.vsd
===================================================================
(Binary files differ)
Property changes on: management/design/photosite/views drafts/login.vsd
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/photosite/views drafts/main template after login.vsd
===================================================================
(Binary files differ)
Property changes on: management/design/photosite/views drafts/main template after login.vsd
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/photosite/views drafts/user preferences.vsd
===================================================================
(Binary files differ)
Property changes on: management/design/photosite/views drafts/user preferences.vsd
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 11 months
JBoss Rich Faces SVN: r10917 - in trunk/framework: api/src/main/java/org/richfaces/event and 9 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-10-27 12:10:43 -0400 (Mon, 27 Oct 2008)
New Revision: 10917
Modified:
trunk/framework/api/src/main/java/org/richfaces/component/Filterable.java
trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeEvent.java
trunk/framework/api/src/main/java/org/richfaces/event/sort/SortEvent2.java
trunk/framework/api/src/main/java/org/richfaces/event/sort/SortListener2.java
trunk/framework/api/src/main/java/org/richfaces/model/ExtendedFilterField.java
trunk/framework/api/src/main/java/org/richfaces/model/Field.java
trunk/framework/api/src/main/java/org/richfaces/model/ListShuttleDataModel.java
trunk/framework/api/src/main/java/org/richfaces/model/ListShuttleRowKey.java
trunk/framework/api/src/main/java/org/richfaces/model/MapDataModel.java
trunk/framework/api/src/main/java/org/richfaces/model/Modifiable.java
trunk/framework/api/src/main/java/org/richfaces/model/OrderingListDataModel.java
trunk/framework/api/src/main/java/org/richfaces/model/SequenceDataModel.java
trunk/framework/api/src/main/java/org/richfaces/model/SortField2.java
trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModel.java
trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModelDataProvider.java
trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModelProvider.java
trunk/framework/api/src/main/java/org/richfaces/model/filter/Filter.java
trunk/framework/impl/src/main/java/org/ajax4jsf/application/AjaxStateHolder.java
trunk/framework/impl/src/main/java/org/ajax4jsf/component/ContextCallbackWrapper.java
trunk/framework/impl/src/main/java/org/ajax4jsf/config/FacesConfigHandler.java
trunk/framework/impl/src/main/java/org/ajax4jsf/config/StringContentHandler.java
trunk/framework/impl/src/main/java/org/ajax4jsf/config/WebXMLParser.java
trunk/framework/impl/src/test/java/org/ajax4jsf/config/MockServletContext.java
trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockDataModelListener.java
trunk/framework/test/src/test/java/org/ajax4jsf/context/MockAjaxContext.java
Log:
https://jira.jboss.org/jira/browse/RF-4578
Modified: trunk/framework/api/src/main/java/org/richfaces/component/Filterable.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/component/Filterable.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/component/Filterable.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.component;
Modified: trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeEvent.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeEvent.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeEvent.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.richfaces.event;
import java.util.Date;
Modified: trunk/framework/api/src/main/java/org/richfaces/event/sort/SortEvent2.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/sort/SortEvent2.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/event/sort/SortEvent2.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.event.sort;
Modified: trunk/framework/api/src/main/java/org/richfaces/event/sort/SortListener2.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/sort/SortListener2.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/event/sort/SortListener2.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.richfaces.event.sort;
import javax.faces.event.FacesListener;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/ExtendedFilterField.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/ExtendedFilterField.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/model/ExtendedFilterField.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/Field.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/Field.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/model/Field.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/ListShuttleDataModel.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/ListShuttleDataModel.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/model/ListShuttleDataModel.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/ListShuttleRowKey.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/ListShuttleRowKey.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/model/ListShuttleRowKey.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/MapDataModel.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/MapDataModel.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/model/MapDataModel.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/Modifiable.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/Modifiable.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/model/Modifiable.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/OrderingListDataModel.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/OrderingListDataModel.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/model/OrderingListDataModel.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/SequenceDataModel.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/SequenceDataModel.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/model/SequenceDataModel.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/SortField2.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/SortField2.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/model/SortField2.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModel.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModel.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModel.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModelDataProvider.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModelDataProvider.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModelDataProvider.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModelProvider.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModelProvider.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModelProvider.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/filter/Filter.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/filter/Filter.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/api/src/main/java/org/richfaces/model/filter/Filter.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model.filter;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/application/AjaxStateHolder.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/application/AjaxStateHolder.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/application/AjaxStateHolder.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.application;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/component/ContextCallbackWrapper.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/component/ContextCallbackWrapper.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/component/ContextCallbackWrapper.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.ajax4jsf.component;
import java.util.ArrayList;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/config/FacesConfigHandler.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/config/FacesConfigHandler.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/config/FacesConfigHandler.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/config/StringContentHandler.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/config/StringContentHandler.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/config/StringContentHandler.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/config/WebXMLParser.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/config/WebXMLParser.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/config/WebXMLParser.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/impl/src/test/java/org/ajax4jsf/config/MockServletContext.java
===================================================================
--- trunk/framework/impl/src/test/java/org/ajax4jsf/config/MockServletContext.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/impl/src/test/java/org/ajax4jsf/config/MockServletContext.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockDataModelListener.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockDataModelListener.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockDataModelListener.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.tests;
Modified: trunk/framework/test/src/test/java/org/ajax4jsf/context/MockAjaxContext.java
===================================================================
--- trunk/framework/test/src/test/java/org/ajax4jsf/context/MockAjaxContext.java 2008-10-27 16:04:17 UTC (rev 10916)
+++ trunk/framework/test/src/test/java/org/ajax4jsf/context/MockAjaxContext.java 2008-10-27 16:10:43 UTC (rev 10917)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.context;
16 years, 11 months
JBoss Rich Faces SVN: r10916 - in trunk/framework: api/src/main/java/org/ajax4jsf/javascript and 29 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-10-27 12:04:17 -0400 (Mon, 27 Oct 2008)
New Revision: 10916
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/event/PushEventListener.java
trunk/framework/api/src/main/java/org/ajax4jsf/javascript/JSLiteral.java
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/AjaxRenderer.java
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/UserResourceRenderer2.java
trunk/framework/api/src/main/java/org/richfaces/component/ScriptExportable.java
trunk/framework/api/src/main/java/org/richfaces/component/Sortable2.java
trunk/framework/api/src/main/java/org/richfaces/component/TemplateComponent.java
trunk/framework/api/src/main/java/org/richfaces/event/RenderPhaseComponentVisitor.java
trunk/framework/api/src/main/java/org/richfaces/model/FilterField.java
trunk/framework/api/src/main/java/org/richfaces/model/Ordering.java
trunk/framework/api/src/main/java/org/richfaces/model/ScrollableTableDataModel.java
trunk/framework/api/src/main/java/org/richfaces/model/selection/Selection.java
trunk/framework/api/src/main/java/org/richfaces/model/selection/SimpleSelection.java
trunk/framework/impl/src/main/java/org/ajax4jsf/application/ComponentsLoader.java
trunk/framework/impl/src/main/java/org/ajax4jsf/application/ComponentsLoaderImpl.java
trunk/framework/impl/src/main/java/org/ajax4jsf/application/TreeStructureNode.java
trunk/framework/impl/src/main/java/org/ajax4jsf/component/EventValueExpression.java
trunk/framework/impl/src/main/java/org/ajax4jsf/config/FilterBean.java
trunk/framework/impl/src/main/java/org/ajax4jsf/config/FilterMapping.java
trunk/framework/impl/src/main/java/org/ajax4jsf/config/ServletBean.java
trunk/framework/impl/src/main/java/org/ajax4jsf/config/ServletMapping.java
trunk/framework/impl/src/main/java/org/ajax4jsf/config/StateHandler.java
trunk/framework/impl/src/main/java/org/ajax4jsf/config/WebappHandler.java
trunk/framework/impl/src/main/java/org/ajax4jsf/context/ContextInitParameters.java
trunk/framework/impl/src/main/java/org/ajax4jsf/event/EventsQueue.java
trunk/framework/impl/src/main/java/org/ajax4jsf/io/SAXResponseWriter.java
trunk/framework/impl/src/main/java/org/ajax4jsf/io/XMLResponseWriterState.java
trunk/framework/impl/src/main/java/org/richfaces/util/RenderPhaseComponentVisitorUtils.java
trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/MethodBindingMethodExpressionAdaptor.java
trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/SimpleComponentTag.java
trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/UIComponentELTagBase.java
trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/ValueBindingValueExpressionAdaptor.java
trunk/framework/impl/src/test/java/org/ajax4jsf/config/FacesConfigTest.java
trunk/framework/impl/src/test/java/org/ajax4jsf/config/StateHandlerTest.java
trunk/framework/impl/src/test/java/org/ajax4jsf/config/WebXMLTest.java
trunk/framework/impl/src/test/java/org/ajax4jsf/config/WebappHandlerTest.java
trunk/framework/impl/src/test/java/org/ajax4jsf/event/EventsQueueTest.java
trunk/framework/impl/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilterTestCase.java
trunk/framework/impl/src/test/java/org/ajax4jsf/javascript/JSMinTest.java
trunk/framework/impl/src/test/java/org/ajax4jsf/util/LRUMapTest.java
trunk/framework/impl/src/test/java/org/richfaces/component/util/ComponentUtilTest.java
trunk/framework/test/src/main/java/org/ajax4jsf/tests/Condition.java
trunk/framework/test/src/main/java/org/ajax4jsf/tests/ConstantlyFailingLiteralValueExpression.java
trunk/framework/test/src/main/java/org/ajax4jsf/tests/DummyScriptEngine.java
trunk/framework/test/src/main/java/org/ajax4jsf/tests/EnumSupportExpressionFactoryWrapper.java
trunk/framework/test/src/main/java/org/ajax4jsf/tests/HtmlTestUtils.java
trunk/framework/test/src/main/java/org/ajax4jsf/tests/LiteralValueExpression.java
trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockUIComponent.java
trunk/framework/test/src/main/java/org/ajax4jsf/tests/TestFileUtils.java
trunk/framework/test/src/test/java/org/ajax4jsf/application/AjaxStateHolderTest.java
trunk/framework/test/src/test/java/org/ajax4jsf/application/AjaxStateManagerTest.java
trunk/framework/test/src/test/java/org/ajax4jsf/application/ComponentLoaderTest.java
trunk/framework/test/src/test/java/org/ajax4jsf/context/AjaxContextImplTest.java
trunk/framework/test/src/test/java/org/ajax4jsf/context/AjaxContextTest.java
trunk/framework/test/src/test/java/org/ajax4jsf/context/InitParametersTest.java
trunk/framework/test/src/test/java/org/ajax4jsf/resource/ParametersEncodingTestCase.java
trunk/framework/test/src/test/java/org/richfaces/json/JsonTest.java
trunk/framework/test/src/test/java/org/richfaces/model/FilterFieldTest.java
trunk/framework/test/src/test/java/org/richfaces/model/ListSequenceDataModelTest.java
trunk/framework/test/src/test/java/org/richfaces/model/SortField2Test.java
trunk/framework/test/src/test/java/org/richfaces/model/StackingTreeDataModelTest.java
trunk/framework/test/src/test/java/org/richfaces/model/entity/Directory.java
trunk/framework/test/src/test/java/org/richfaces/model/entity/File.java
trunk/framework/test/src/test/java/org/richfaces/model/entity/Project.java
trunk/framework/test/src/test/java/org/richfaces/model/impl/expressive/WrappedBeanFilterTest.java
trunk/framework/test/src/test/java/org/richfaces/renderkit/CompositeRendererTest.java
trunk/framework/test/src/test/java/org/richfaces/util/RenderPhaseComponentVisitorUtilsTest.java
Log:
https://jira.jboss.org/jira/browse/RF-4578
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/event/PushEventListener.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/event/PushEventListener.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/event/PushEventListener.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.ajax4jsf.event;
import java.util.EventListener;
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/javascript/JSLiteral.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/javascript/JSLiteral.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/javascript/JSLiteral.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,7 +1,22 @@
-/*
- * JSLiteral.java Date created: 29.01.2008
- * Last modified by: $Author$
- * $Revision$ $Date$
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.javascript;
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/AjaxRenderer.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/AjaxRenderer.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/AjaxRenderer.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.ajax4jsf.renderkit;
import java.io.IOException;
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/UserResourceRenderer2.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/UserResourceRenderer2.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/UserResourceRenderer2.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.ajax4jsf.renderkit;
import java.io.IOException;
Modified: trunk/framework/api/src/main/java/org/richfaces/component/ScriptExportable.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/component/ScriptExportable.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/api/src/main/java/org/richfaces/component/ScriptExportable.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.component;
Modified: trunk/framework/api/src/main/java/org/richfaces/component/Sortable2.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/component/Sortable2.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/api/src/main/java/org/richfaces/component/Sortable2.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.component;
Modified: trunk/framework/api/src/main/java/org/richfaces/component/TemplateComponent.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/component/TemplateComponent.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/api/src/main/java/org/richfaces/component/TemplateComponent.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.component;
Modified: trunk/framework/api/src/main/java/org/richfaces/event/RenderPhaseComponentVisitor.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/RenderPhaseComponentVisitor.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/api/src/main/java/org/richfaces/event/RenderPhaseComponentVisitor.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.richfaces.event;
import javax.faces.component.UIComponent;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/FilterField.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/FilterField.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/api/src/main/java/org/richfaces/model/FilterField.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/Ordering.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/Ordering.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/api/src/main/java/org/richfaces/model/Ordering.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.richfaces.model;
/**
*
Modified: trunk/framework/api/src/main/java/org/richfaces/model/ScrollableTableDataModel.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/ScrollableTableDataModel.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/api/src/main/java/org/richfaces/model/ScrollableTableDataModel.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/selection/Selection.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/selection/Selection.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/api/src/main/java/org/richfaces/model/selection/Selection.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model.selection;
Modified: trunk/framework/api/src/main/java/org/richfaces/model/selection/SimpleSelection.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/selection/SimpleSelection.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/api/src/main/java/org/richfaces/model/selection/SimpleSelection.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model.selection;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/application/ComponentsLoader.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/application/ComponentsLoader.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/application/ComponentsLoader.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.ajax4jsf.application;
import javax.faces.component.UIComponent;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/application/ComponentsLoaderImpl.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/application/ComponentsLoaderImpl.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/application/ComponentsLoaderImpl.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.application;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/application/TreeStructureNode.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/application/TreeStructureNode.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/application/TreeStructureNode.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.application;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/component/EventValueExpression.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/component/EventValueExpression.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/component/EventValueExpression.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.component;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/config/FilterBean.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/config/FilterBean.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/config/FilterBean.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/config/FilterMapping.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/config/FilterMapping.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/config/FilterMapping.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/config/ServletBean.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/config/ServletBean.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/config/ServletBean.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/config/ServletMapping.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/config/ServletMapping.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/config/ServletMapping.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/config/StateHandler.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/config/StateHandler.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/config/StateHandler.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/config/WebappHandler.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/config/WebappHandler.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/config/WebappHandler.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/context/ContextInitParameters.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/context/ContextInitParameters.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/context/ContextInitParameters.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.context;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/event/EventsQueue.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/event/EventsQueue.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/event/EventsQueue.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.event;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/io/SAXResponseWriter.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/io/SAXResponseWriter.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/io/SAXResponseWriter.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,8 +1,22 @@
-/*
- * Created on 07.10.2004
+/**
+ * License Agreement.
*
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.io;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/io/XMLResponseWriterState.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/io/XMLResponseWriterState.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/io/XMLResponseWriterState.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,8 +1,22 @@
-/*
- * Created on 07.10.2004
+/**
+ * License Agreement.
*
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.io;
Modified: trunk/framework/impl/src/main/java/org/richfaces/util/RenderPhaseComponentVisitorUtils.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/util/RenderPhaseComponentVisitorUtils.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/richfaces/util/RenderPhaseComponentVisitorUtils.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.richfaces.util;
import java.io.BufferedReader;
Modified: trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/MethodBindingMethodExpressionAdaptor.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/MethodBindingMethodExpressionAdaptor.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/MethodBindingMethodExpressionAdaptor.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.webapp.taglib;
Modified: trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/SimpleComponentTag.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/SimpleComponentTag.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/SimpleComponentTag.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.webapp.taglib;
Modified: trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/UIComponentELTagBase.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/UIComponentELTagBase.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/UIComponentELTagBase.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.webapp.taglib;
Modified: trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/ValueBindingValueExpressionAdaptor.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/ValueBindingValueExpressionAdaptor.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/ValueBindingValueExpressionAdaptor.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.webapp.taglib;
Modified: trunk/framework/impl/src/test/java/org/ajax4jsf/config/FacesConfigTest.java
===================================================================
--- trunk/framework/impl/src/test/java/org/ajax4jsf/config/FacesConfigTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/test/java/org/ajax4jsf/config/FacesConfigTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/impl/src/test/java/org/ajax4jsf/config/StateHandlerTest.java
===================================================================
--- trunk/framework/impl/src/test/java/org/ajax4jsf/config/StateHandlerTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/test/java/org/ajax4jsf/config/StateHandlerTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/impl/src/test/java/org/ajax4jsf/config/WebXMLTest.java
===================================================================
--- trunk/framework/impl/src/test/java/org/ajax4jsf/config/WebXMLTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/test/java/org/ajax4jsf/config/WebXMLTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/impl/src/test/java/org/ajax4jsf/config/WebappHandlerTest.java
===================================================================
--- trunk/framework/impl/src/test/java/org/ajax4jsf/config/WebappHandlerTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/test/java/org/ajax4jsf/config/WebappHandlerTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.config;
Modified: trunk/framework/impl/src/test/java/org/ajax4jsf/event/EventsQueueTest.java
===================================================================
--- trunk/framework/impl/src/test/java/org/ajax4jsf/event/EventsQueueTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/test/java/org/ajax4jsf/event/EventsQueueTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.event;
Modified: trunk/framework/impl/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilterTestCase.java
===================================================================
--- trunk/framework/impl/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilterTestCase.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilterTestCase.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.framework.ajax.xmlfilter.nekko;
Modified: trunk/framework/impl/src/test/java/org/ajax4jsf/javascript/JSMinTest.java
===================================================================
--- trunk/framework/impl/src/test/java/org/ajax4jsf/javascript/JSMinTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/test/java/org/ajax4jsf/javascript/JSMinTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.javascript;
Modified: trunk/framework/impl/src/test/java/org/ajax4jsf/util/LRUMapTest.java
===================================================================
--- trunk/framework/impl/src/test/java/org/ajax4jsf/util/LRUMapTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/test/java/org/ajax4jsf/util/LRUMapTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.util;
Modified: trunk/framework/impl/src/test/java/org/richfaces/component/util/ComponentUtilTest.java
===================================================================
--- trunk/framework/impl/src/test/java/org/richfaces/component/util/ComponentUtilTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/impl/src/test/java/org/richfaces/component/util/ComponentUtilTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.richfaces.component.util;
import java.util.ArrayList;
Modified: trunk/framework/test/src/main/java/org/ajax4jsf/tests/Condition.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/Condition.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/Condition.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.tests;
Modified: trunk/framework/test/src/main/java/org/ajax4jsf/tests/ConstantlyFailingLiteralValueExpression.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/ConstantlyFailingLiteralValueExpression.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/ConstantlyFailingLiteralValueExpression.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.tests;
Modified: trunk/framework/test/src/main/java/org/ajax4jsf/tests/DummyScriptEngine.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/DummyScriptEngine.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/DummyScriptEngine.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.tests;
Modified: trunk/framework/test/src/main/java/org/ajax4jsf/tests/EnumSupportExpressionFactoryWrapper.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/EnumSupportExpressionFactoryWrapper.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/EnumSupportExpressionFactoryWrapper.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.tests;
Modified: trunk/framework/test/src/main/java/org/ajax4jsf/tests/HtmlTestUtils.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/HtmlTestUtils.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/HtmlTestUtils.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.tests;
Modified: trunk/framework/test/src/main/java/org/ajax4jsf/tests/LiteralValueExpression.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/LiteralValueExpression.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/LiteralValueExpression.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.tests;
Modified: trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockUIComponent.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockUIComponent.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockUIComponent.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.tests;
Modified: trunk/framework/test/src/main/java/org/ajax4jsf/tests/TestFileUtils.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/TestFileUtils.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/TestFileUtils.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.ajax4jsf.tests;
import java.io.ByteArrayOutputStream;
Modified: trunk/framework/test/src/test/java/org/ajax4jsf/application/AjaxStateHolderTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/ajax4jsf/application/AjaxStateHolderTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/ajax4jsf/application/AjaxStateHolderTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.application;
Modified: trunk/framework/test/src/test/java/org/ajax4jsf/application/AjaxStateManagerTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/ajax4jsf/application/AjaxStateManagerTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/ajax4jsf/application/AjaxStateManagerTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.application;
Modified: trunk/framework/test/src/test/java/org/ajax4jsf/application/ComponentLoaderTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/ajax4jsf/application/ComponentLoaderTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/ajax4jsf/application/ComponentLoaderTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.application;
Modified: trunk/framework/test/src/test/java/org/ajax4jsf/context/AjaxContextImplTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/ajax4jsf/context/AjaxContextImplTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/ajax4jsf/context/AjaxContextImplTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.context;
Modified: trunk/framework/test/src/test/java/org/ajax4jsf/context/AjaxContextTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/ajax4jsf/context/AjaxContextTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/ajax4jsf/context/AjaxContextTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,3 +1,24 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
package org.ajax4jsf.context;
import java.net.URL;
Modified: trunk/framework/test/src/test/java/org/ajax4jsf/context/InitParametersTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/ajax4jsf/context/InitParametersTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/ajax4jsf/context/InitParametersTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ajax4jsf.context;
Modified: trunk/framework/test/src/test/java/org/ajax4jsf/resource/ParametersEncodingTestCase.java
===================================================================
--- trunk/framework/test/src/test/java/org/ajax4jsf/resource/ParametersEncodingTestCase.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/ajax4jsf/resource/ParametersEncodingTestCase.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.ajax4jsf.resource;
import java.util.Arrays;
Modified: trunk/framework/test/src/test/java/org/richfaces/json/JsonTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/richfaces/json/JsonTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/richfaces/json/JsonTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.json;
Modified: trunk/framework/test/src/test/java/org/richfaces/model/FilterFieldTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/richfaces/model/FilterFieldTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/richfaces/model/FilterFieldTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/test/src/test/java/org/richfaces/model/ListSequenceDataModelTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/richfaces/model/ListSequenceDataModelTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/richfaces/model/ListSequenceDataModelTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/test/src/test/java/org/richfaces/model/SortField2Test.java
===================================================================
--- trunk/framework/test/src/test/java/org/richfaces/model/SortField2Test.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/richfaces/model/SortField2Test.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/test/src/test/java/org/richfaces/model/StackingTreeDataModelTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/richfaces/model/StackingTreeDataModelTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/richfaces/model/StackingTreeDataModelTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model;
Modified: trunk/framework/test/src/test/java/org/richfaces/model/entity/Directory.java
===================================================================
--- trunk/framework/test/src/test/java/org/richfaces/model/entity/Directory.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/richfaces/model/entity/Directory.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model.entity;
Modified: trunk/framework/test/src/test/java/org/richfaces/model/entity/File.java
===================================================================
--- trunk/framework/test/src/test/java/org/richfaces/model/entity/File.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/richfaces/model/entity/File.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model.entity;
Modified: trunk/framework/test/src/test/java/org/richfaces/model/entity/Project.java
===================================================================
--- trunk/framework/test/src/test/java/org/richfaces/model/entity/Project.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/richfaces/model/entity/Project.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model.entity;
Modified: trunk/framework/test/src/test/java/org/richfaces/model/impl/expressive/WrappedBeanFilterTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/richfaces/model/impl/expressive/WrappedBeanFilterTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/richfaces/model/impl/expressive/WrappedBeanFilterTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.model.impl.expressive;
Modified: trunk/framework/test/src/test/java/org/richfaces/renderkit/CompositeRendererTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/richfaces/renderkit/CompositeRendererTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/richfaces/renderkit/CompositeRendererTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,3 +1,23 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
package org.richfaces.renderkit;
import java.io.IOException;
Modified: trunk/framework/test/src/test/java/org/richfaces/util/RenderPhaseComponentVisitorUtilsTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/richfaces/util/RenderPhaseComponentVisitorUtilsTest.java 2008-10-27 15:48:10 UTC (rev 10915)
+++ trunk/framework/test/src/test/java/org/richfaces/util/RenderPhaseComponentVisitorUtilsTest.java 2008-10-27 16:04:17 UTC (rev 10916)
@@ -1,5 +1,22 @@
/**
- *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.util;
16 years, 11 months