JBoss Rich Faces SVN: r10845 - in trunk/test-applications/jsp/src/main: webapp/ExtendedDataTable and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-10-20 12:42:32 -0400 (Mon, 20 Oct 2008)
New Revision: 10845
Modified:
trunk/test-applications/jsp/src/main/java/extendedDataTable/ExtendedDataTableBB.java
trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTable.jsp
trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableProperty.jsp
Log:
Changes in "Show selection" functionality in scrollableDataTable
Modified: trunk/test-applications/jsp/src/main/java/extendedDataTable/ExtendedDataTableBB.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/extendedDataTable/ExtendedDataTableBB.java 2008-10-20 15:58:21 UTC (rev 10844)
+++ trunk/test-applications/jsp/src/main/java/extendedDataTable/ExtendedDataTableBB.java 2008-10-20 16:42:32 UTC (rev 10845)
@@ -10,9 +10,12 @@
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
*
@@ -25,8 +28,26 @@
private String tableState = null;
private ExtendedTableDataModel<DemoPatient> dataModel;
private Integer patientsNumber = 100;
+ private boolean a4jRendered = true;
+ private HtmlExtendedDataTable extDTable = null;
- public ExtendedDataTableBB() {
+ 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(){
Modified: trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTable.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTable.jsp 2008-10-20 15:58:21 UTC (rev 10844)
+++ trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTable.jsp 2008-10-20 16:42:32 UTC (rev 10845)
@@ -35,76 +35,82 @@
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="#{extendedDataTableControlBean.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="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="sasasasasasa" />
- </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"
- action="#{extendedDataTableBean.takeSelection}"
- reRender="selectedPatients">
- </a4j:support>
- </rich:extendedDataTable>
- <rich:datascroller
- style="width: #{extendedDataTableControlBean.width}"
- rendered="#{extendedDataTableControlBean.paginated}" for="demoTable">
- </rich:datascroller>
+ <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
Modified: trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableProperty.jsp 2008-10-20 15:58:21 UTC (rev 10844)
+++ trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableProperty.jsp 2008-10-20 16:42:32 UTC (rev 10845)
@@ -25,8 +25,7 @@
<a4j:support event="onchange" reRender="demoTable"></a4j:support>
</h:inputText>
- <h:outputLabel value="Sort mode"
- for="tableSortModeSelect" />
+ <h:outputLabel value="Sort mode" for="tableSortModeSelect" />
<h:selectOneMenu id="tableSortModeSelect"
value="#{extendedDataTableControlBean.sortMode}">
<f:selectItems
@@ -34,8 +33,7 @@
<a4j:support event="onchange" reRender="demoTable"></a4j:support>
</h:selectOneMenu>
- <h:outputLabel value="Selection mode"
- for="tableSelectionModeSelect" />
+ <h:outputLabel value="Selection mode" for="tableSelectionModeSelect" />
<h:selectOneMenu id="tableSelectionModeSelect"
value="#{extendedDataTableControlBean.selectionMode}">
<f:selectItems
@@ -47,8 +45,7 @@
<h:selectBooleanCheckbox id="paginatedCheckbox"
value="#{extendedDataTableControlBean.paginated}" onclick="submit()" />
- <h:outputLabel value="Number of rows"
- for="tableRowsNumberInput" />
+ <h:outputLabel value="Number of rows" for="tableRowsNumberInput" />
<h:inputText id="tableRowsNumberInput"
value="#{extendedDataTableControlBean.rowsNumber}">
<a4j:support event="onchange" reRender="demoTable"></a4j:support>
@@ -120,11 +117,23 @@
<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">
@@ -139,6 +148,7 @@
</f:facet>
<h:outputText value="#{selectedPatient.lastName}" />
</rich:column>
+ --%>
</rich:dataTable>
<rich:messages>
</rich:messages>
16 years, 11 months
JBoss Rich Faces SVN: r10844 - in branches/3.1.x/ui/message/src: main/java/org/richfaces/renderkit and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-10-20 11:58:21 -0400 (Mon, 20 Oct 2008)
New Revision: 10844
Modified:
branches/3.1.x/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java
branches/3.1.x/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java
branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java
branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessageRenderer.java
branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
branches/3.1.x/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java
branches/3.1.x/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java
Log:
add license agreement headers
Modified: branches/3.1.x/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java
===================================================================
--- branches/3.1.x/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java 2008-10-20 15:56:20 UTC (rev 10843)
+++ branches/3.1.x/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java 2008-10-20 15:58:21 UTC (rev 10844)
@@ -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.richfaces.component;
import java.io.IOException;
Modified: branches/3.1.x/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java
===================================================================
--- branches/3.1.x/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java 2008-10-20 15:56:20 UTC (rev 10843)
+++ branches/3.1.x/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java 2008-10-20 15:58:21 UTC (rev 10844)
@@ -1,6 +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.richfaces.component;
import javax.faces.component.UIMessages;
Modified: branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java
===================================================================
--- branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java 2008-10-20 15:56:20 UTC (rev 10843)
+++ branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java 2008-10-20 15:58:21 UTC (rev 10844)
@@ -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.richfaces.renderkit;
import java.io.IOException;
Modified: branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessageRenderer.java
===================================================================
--- branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessageRenderer.java 2008-10-20 15:56:20 UTC (rev 10843)
+++ branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessageRenderer.java 2008-10-20 15:58:21 UTC (rev 10844)
@@ -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.richfaces.renderkit.html;
import java.io.IOException;
Modified: branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
===================================================================
--- branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2008-10-20 15:56:20 UTC (rev 10843)
+++ branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2008-10-20 15:58:21 UTC (rev 10844)
@@ -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.renderkit.html;
Modified: branches/3.1.x/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java
===================================================================
--- branches/3.1.x/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java 2008-10-20 15:56:20 UTC (rev 10843)
+++ branches/3.1.x/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java 2008-10-20 15:58:21 UTC (rev 10844)
@@ -1,6 +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.richfaces.renderer;
import java.util.Iterator;
Modified: branches/3.1.x/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java
===================================================================
--- branches/3.1.x/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java 2008-10-20 15:56:20 UTC (rev 10843)
+++ branches/3.1.x/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java 2008-10-20 15:58:21 UTC (rev 10844)
@@ -1,6 +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.richfaces.renderer;
import java.util.Iterator;
16 years, 11 months
JBoss Rich Faces SVN: r10842 - in branches/3.2.x/ui: combobox/src/main/java/org/richfaces/renderkit and 16 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-10-20 11:45:42 -0400 (Mon, 20 Oct 2008)
New Revision: 10842
Modified:
branches/3.2.x/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java
branches/3.2.x/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
branches/3.2.x/ui/combobox/src/test/java/org/richfaces/renderkit/ComboBoxRendererTest.java
branches/3.2.x/ui/inplaceInput/src/main/java/org/richfaces/component/UIInplaceInput.java
branches/3.2.x/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
branches/3.2.x/ui/inplaceInput/src/test/java/org/richfaces/component/InplaceInputComponentTest.java
branches/3.2.x/ui/inplaceInput/src/test/java/org/richfaces/rendekit/InplaceInputRendererTest.java
branches/3.2.x/ui/inplaceSelect/src/main/java/org/richfaces/component/UIInplaceSelect.java
branches/3.2.x/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
branches/3.2.x/ui/inplaceSelect/src/test/java/org/richfaces/component/InplaceSelectComponentTest.java
branches/3.2.x/ui/inplaceSelect/src/test/java/org/richfaces/renderkit/InplaceSelectRenderTest.java
branches/3.2.x/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java
branches/3.2.x/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java
branches/3.2.x/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java
branches/3.2.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessageRenderer.java
branches/3.2.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
branches/3.2.x/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java
branches/3.2.x/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java
branches/3.2.x/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java
branches/3.2.x/ui/pickList/src/main/java/org/richfaces/renderkit/PickListControlsHelper.java
branches/3.2.x/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
branches/3.2.x/ui/pickList/src/main/java/org/richfaces/utils/PickListUtils.java
Log:
add license agreement header
Modified: branches/3.2.x/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java
===================================================================
--- branches/3.2.x/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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: branches/3.2.x/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
===================================================================
--- branches/3.2.x/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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: branches/3.2.x/ui/combobox/src/test/java/org/richfaces/renderkit/ComboBoxRendererTest.java
===================================================================
--- branches/3.2.x/ui/combobox/src/test/java/org/richfaces/renderkit/ComboBoxRendererTest.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/combobox/src/test/java/org/richfaces/renderkit/ComboBoxRendererTest.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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.renderkit;
Modified: branches/3.2.x/ui/inplaceInput/src/main/java/org/richfaces/component/UIInplaceInput.java
===================================================================
--- branches/3.2.x/ui/inplaceInput/src/main/java/org/richfaces/component/UIInplaceInput.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/inplaceInput/src/main/java/org/richfaces/component/UIInplaceInput.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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: branches/3.2.x/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
===================================================================
--- branches/3.2.x/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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: branches/3.2.x/ui/inplaceInput/src/test/java/org/richfaces/component/InplaceInputComponentTest.java
===================================================================
--- branches/3.2.x/ui/inplaceInput/src/test/java/org/richfaces/component/InplaceInputComponentTest.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/inplaceInput/src/test/java/org/richfaces/component/InplaceInputComponentTest.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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;
Modified: branches/3.2.x/ui/inplaceInput/src/test/java/org/richfaces/rendekit/InplaceInputRendererTest.java
===================================================================
--- branches/3.2.x/ui/inplaceInput/src/test/java/org/richfaces/rendekit/InplaceInputRendererTest.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/inplaceInput/src/test/java/org/richfaces/rendekit/InplaceInputRendererTest.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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.rendekit;
import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
Modified: branches/3.2.x/ui/inplaceSelect/src/main/java/org/richfaces/component/UIInplaceSelect.java
===================================================================
--- branches/3.2.x/ui/inplaceSelect/src/main/java/org/richfaces/component/UIInplaceSelect.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/inplaceSelect/src/main/java/org/richfaces/component/UIInplaceSelect.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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;
import javax.faces.component.UISelectOne;
Modified: branches/3.2.x/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
===================================================================
--- branches/3.2.x/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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.renderkit;
Modified: branches/3.2.x/ui/inplaceSelect/src/test/java/org/richfaces/component/InplaceSelectComponentTest.java
===================================================================
--- branches/3.2.x/ui/inplaceSelect/src/test/java/org/richfaces/component/InplaceSelectComponentTest.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/inplaceSelect/src/test/java/org/richfaces/component/InplaceSelectComponentTest.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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;
import java.util.ArrayList;
Modified: branches/3.2.x/ui/inplaceSelect/src/test/java/org/richfaces/renderkit/InplaceSelectRenderTest.java
===================================================================
--- branches/3.2.x/ui/inplaceSelect/src/test/java/org/richfaces/renderkit/InplaceSelectRenderTest.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/inplaceSelect/src/test/java/org/richfaces/renderkit/InplaceSelectRenderTest.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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.util.ArrayList;
Modified: branches/3.2.x/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java
===================================================================
--- branches/3.2.x/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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;
import java.io.IOException;
Modified: branches/3.2.x/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java
===================================================================
--- branches/3.2.x/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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: branches/3.2.x/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java
===================================================================
--- branches/3.2.x/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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: branches/3.2.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessageRenderer.java
===================================================================
--- branches/3.2.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessageRenderer.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessageRenderer.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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.html;
import java.io.IOException;
Modified: branches/3.2.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
===================================================================
--- branches/3.2.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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.renderkit.html;
Modified: branches/3.2.x/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java
===================================================================
--- branches/3.2.x/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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.renderer;
Modified: branches/3.2.x/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java
===================================================================
--- branches/3.2.x/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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.renderer;
Modified: branches/3.2.x/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java
===================================================================
--- branches/3.2.x/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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;
import javax.faces.component.NamingContainer;
Modified: branches/3.2.x/ui/pickList/src/main/java/org/richfaces/renderkit/PickListControlsHelper.java
===================================================================
--- branches/3.2.x/ui/pickList/src/main/java/org/richfaces/renderkit/PickListControlsHelper.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/pickList/src/main/java/org/richfaces/renderkit/PickListControlsHelper.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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.renderkit;
Modified: branches/3.2.x/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
===================================================================
--- branches/3.2.x/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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: branches/3.2.x/ui/pickList/src/main/java/org/richfaces/utils/PickListUtils.java
===================================================================
--- branches/3.2.x/ui/pickList/src/main/java/org/richfaces/utils/PickListUtils.java 2008-10-20 15:34:45 UTC (rev 10841)
+++ branches/3.2.x/ui/pickList/src/main/java/org/richfaces/utils/PickListUtils.java 2008-10-20 15:45:42 UTC (rev 10842)
@@ -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.utils;
import java.lang.reflect.Array;
16 years, 11 months
JBoss Rich Faces SVN: r10841 - in trunk/sandbox/ui/editor/src/main: java/org/richfaces/renderkit and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-10-20 11:34:45 -0400 (Mon, 20 Oct 2008)
New Revision: 10841
Modified:
trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/UIEditor.java
trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
trunk/sandbox/ui/editor/src/main/templates/editor.jspx
Log:
Change Editor text area name
Modified: trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/UIEditor.java
===================================================================
--- trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/UIEditor.java 2008-10-20 15:32:09 UTC (rev 10840)
+++ trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/UIEditor.java 2008-10-20 15:34:45 UTC (rev 10841)
@@ -19,6 +19,8 @@
public static final String COMPONENT_TYPE = "org.richfaces.Editor";
public static final String COMPONENT_FAMILY = "org.richfaces.Editor";
+
+ public static final String EDITOR_TEXT_AREA_ID_SUFFIX = "TextArea";
public abstract void setType(String type);
Modified: trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
===================================================================
--- trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java 2008-10-20 15:32:09 UTC (rev 10840)
+++ trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java 2008-10-20 15:34:45 UTC (rev 10841)
@@ -26,6 +26,7 @@
import java.util.Map;
import javax.faces.component.UIComponent;
+import javax.faces.component.UIInput;
import javax.faces.component.UIParameter;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
@@ -79,4 +80,18 @@
UIEditor component, Object value) {
return InputUtils.getConvertedStringValue(context, component, value);
}
+
+ @SuppressWarnings("unchecked")
+ @Override
+ protected void doDecode(FacesContext context, UIComponent component) {
+ String clientId = component.getClientId(context) + UIEditor.EDITOR_TEXT_AREA_ID_SUFFIX;
+ Map requestParameterMap = context.getExternalContext().getRequestParameterMap();
+ String newValue = (String) requestParameterMap.get(clientId);
+ if (null != newValue) {
+ UIInput input = (UIInput) component;
+ input.setSubmittedValue(newValue);
+ }
+ }
+
+
}
Modified: trunk/sandbox/ui/editor/src/main/templates/editor.jspx
===================================================================
--- trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-10-20 15:32:09 UTC (rev 10840)
+++ trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-10-20 15:34:45 UTC (rev 10841)
@@ -16,7 +16,7 @@
<div id="#{clientId}" x:passThruWithExclusions="id,value"
class="rich-editor">
- <textarea id="#{clientId}TextArea" name='#{clientId}'
+ <textarea id="#{clientId}TextArea" name='#{clientId}TextArea'
style="width: #{component.attributes['width']}px; height: #{component.attributes['height']}px;">
<jsp:scriptlet>
<![CDATA[
16 years, 11 months
JBoss Rich Faces SVN: r10838 - in trunk/test-applications/facelets/src/main: webapp/ScrollableDataTable and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-10-20 11:01:00 -0400 (Mon, 20 Oct 2008)
New Revision: 10838
Modified:
trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java
trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml
Log:
Add "Show selection" functionality to scrollableDataTable
Modified: trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-10-20 14:59:15 UTC (rev 10837)
+++ trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-10-20 15:01:00 UTC (rev 10838)
@@ -2,21 +2,22 @@
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.Selection;
+import org.richfaces.model.selection.SimpleSelection;
import util.componentInfo.ComponentInfo;
import util.data.Data;
/**
* @author AYanul
- *
+ *
*/
-public class ScrollableDataTable
-{
+public class ScrollableDataTable {
private ArrayList<Data> data;
+ private ArrayList<Data> selectedRows;
private String width;
private int rows;
private String key;
@@ -34,16 +35,16 @@
private boolean ignoreDupResponses;
private String eventsQueue;
private String activeRowKey;
- private Selection selection;
+ private SimpleSelection selection;
private boolean ajaxSingle;
private GregorianCalendar date;
private HtmlScrollableDataTable htmlScrollableDataTable = null;
-
- public void addHtmlScrollableDataTable(){
+
+ public void addHtmlScrollableDataTable() {
ComponentInfo info = ComponentInfo.getInstance();
info.addField(htmlScrollableDataTable);
}
-
+
public HtmlScrollableDataTable getHtmlScrollableDataTable() {
return htmlScrollableDataTable;
}
@@ -63,11 +64,12 @@
public ScrollableDataTable() {
sortMode = "single";
- width = "400px";
+ width = "750px";
rows = 30;
- hideWhenScrolling = false;
+ hideWhenScrolling = true;
dataLength = 40;
data = new ArrayList<Data>();
+ selectedRows = new ArrayList<Data>();
first = 0;
rendered = true;
timeout = 0;
@@ -79,12 +81,29 @@
date = new GregorianCalendar();
addNewItem();
}
-
- public Selection getSelection() {
+
+ 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(Selection selection) {
+ public void setSelection(SimpleSelection selection) {
this.selection = selection;
}
@@ -187,19 +206,21 @@
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--)
+
+ 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()));
+ 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;
}
@@ -251,4 +272,12 @@
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
Modified: trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml 2008-10-20 14:59:15 UTC (rev 10837)
+++ trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml 2008-10-20 15:01:00 UTC (rev 10838)
@@ -1,72 +1,109 @@
-<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="scrollableDataTableSubviewID">
- <h:panelGrid columns="6" 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>
-
+<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ id="scrollableDataTableSubviewID">
+
+ <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="sortExpression"/>
- <h:outputText value="sortable='true'"/>
+ <h:outputText value="sortBy" />
+ <h:outputText value="sortable='true'" />
</h:panelGrid>
<h:panelGrid columns="1" title="2">
- <h:outputText value="sortExpression"/>
- <h:outputText value="sortable='false'"/>
+ <h:outputText value="sortBy" />
+ <h:outputText value="sortable='false'" />
</h:panelGrid>
<h:panelGrid columns="1" title="3">
- <h:outputText value="sortExpression"/>
+ <h:outputText value="sortBy" />
+ <h:outputText value="undefined sortable" />
</h:panelGrid>
<h:panelGrid columns="1" title="4">
- <h:outputText value="sortExpression"/>
+ <h:outputText value="sortBy" />
+ <h:outputText value="undefined sortable" />
</h:panelGrid>
<h:panelGrid columns="1" title="5">
- <h:outputText value="sortExpression"/>
+ <h:outputText value="sortBy" />
+ <h:outputText value="undefined sortable" />
</h:panelGrid>
<h:panelGrid columns="1" title="6">
- <h:outputText value=""/>
+ <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>
- <rich:scrollableDataTable id="sdt" var="sdt" rowKeyVar="key" onRowDblClick="alert('row:#{key}')"
- ajaxSingle="#{scrollableDT.ajaxSingle}"
- binding="#{scrollableDT.htmlScrollableDataTable}"
- value="#{scrollableDT.data}" rows="#{scrollableDT.rows}"
- width="#{scrollableDT.width}" height="#{scrollableDT.height}"
+ <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}"
- limitToList="#{scrollableDT.limitToList}"
-
- timeout="#{scrollableDT.timeout}" sortMode="#{scrollableDT.sortMode}"
- selection="#{scrollableDT.selection}" eventsQueue="myEventsQueue"
- captionClass="#{style.captionClass}" columnClasses="#{style.columnClasses}" footerClass="#{style.footerClass}" headerClass="#{style.headerClass}" rowClasses="#{style.rowClasses}" activeClass="#{style.activeClass}" styleClass="#{style.styleClass}" style="#{style.style}" selectedClass="#{style.selectedClass}"
- onbeforedomupdate="#{event.onbeforedomupdate}" oncomplete="#{event.oncomplete}" onRowClick="#{event.onRowClick}" onRowMouseDown="#{event.onRowMouseDown}" onRowMouseUp="#{event.onRowMouseUp}" onselectionchange="#{event.onselectionchange}">
+ 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>
+ <h:outputText value="facet header"></h:outputText>
</f:facet>
- <rich:column sortExpression="#{sdt.int0}" sortable="true">
- <f:facet name="header"><h:outputText value="#"/></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>
+ <f:facet name="footer">
+ <h:outputText value="#" />
+ </f:facet>
</rich:column>
- <rich:column sortExpression="#{sdt.str0}" sortable="false">
- <f:facet name="header"><h:outputText value="Text"></h:outputText> </f:facet>
+ <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>
+ <f:facet name="footer">
+ <h:outputText value="Text"></h:outputText>
+ </f:facet>
</rich:column>
- <rich:column sortExpression="#{sdt.str1}">
- <f:facet name="header"><h:outputText value="Link"></h:outputText> </f:facet>
+ <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>
+ <f:facet name="footer">
+ <h:outputText value="Link"></h:outputText>
+ </f:facet>
</rich:column>
- <rich:column sortExpression="#{sdt.str2}">
- <f:facet name="header"><h:outputText value="Select"></h:outputText> </f:facet>
+ <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" />
@@ -74,27 +111,153 @@
<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>
+ <f:facet name="footer">
+ <h:outputText value="Select"></h:outputText>
+ </f:facet>
</rich:column>
- <rich:column sortExpression="#{sdt.str3}">
- <f:facet name="header"><h:outputText value="Select"></h:outputText> </f:facet>
+ <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="Select"></h:outputText> </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="Icon"></h:outputText>
+ </f:facet>
</rich:column>
-
+
<rich:column>
<f:facet name="header">
- <h:outputText value="Link"></h:outputText>
+ <h:outputText value="outputLink"></h:outputText>
</f:facet>
- <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ <h:outputLink value="http://www.jboss.com/">
+ <f:verbatim>Link</f:verbatim>
+ </h:outputLink>
<f:facet name="footer">
- <h:outputText value="Link"></h:outputText>
+ <h:outputText value="outputLink"></h:outputText>
</f:facet>
- </rich:column>
-
+ </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>
16 years, 11 months
JBoss Rich Faces SVN: r10837 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-10-20 10:59:15 -0400 (Mon, 20 Oct 2008)
New Revision: 10837
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/SimpleTogglePanelTest.java
Log:
https://jira.jboss.org/jira/browse/RF-4666
https://jira.jboss.org/jira/browse/RF-4667
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/SimpleTogglePanelTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/SimpleTogglePanelTest.java 2008-10-20 14:52:36 UTC (rev 10836)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/SimpleTogglePanelTest.java 2008-10-20 14:59:15 UTC (rev 10837)
@@ -184,6 +184,14 @@
}
@Test
+ public void testOncomplete(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, RESET_METHOD);
+ writeStatus("Test oncomplete attribute");
+ tester.testOncomplete();
+ }
+
+ @Test
public void testChildProcessingServerCase(Template template) {
renderPage(CHILD_PROCESSING_TEST_URL, template, "#{panelBean.reset2Server}");
writeStatus("Check children components processing for server mode");
@@ -223,6 +231,86 @@
AssertTextEquals(luckId, "2", "Panel is server-aware and open! Valid child components must be processed");
}
+ @Test
+ public void testChildProcessingAjaxCase(Template template) {
+ renderPage(CHILD_PROCESSING_TEST_URL, template, "#{panelBean.reset2Ajax}");
+ writeStatus("Check children components processing for ajax mode");
+
+ String parentId = getParentId() + "_form:";
+
+ String panelId = parentId + "panel_header";
+ String luckId = parentId + "_luck";
+ String childId = parentId + "_child";
+ String ajaxSubmit = parentId + "_ajaxSubmit";
+ String fullSubmit = parentId + "_fullSubmit";
+
+ clickAjaxCommandAndWait(ajaxSubmit);
+ AssertTextEquals(luckId, "1", "Panel is server-aware and closed! Invalid child components must not be processed");
+
+ clickCommandAndWait(fullSubmit);
+ AssertTextEquals(luckId, "2", "Panel is server-aware and closed! Invalid child components must not be processed");
+
+ clickAjaxCommandAndWait(panelId);
+ AssertTextEquals(luckId, "3", "Panel is server-aware and closed! Invalid child components must not be processed");
+
+ clickAjaxCommandAndWait(ajaxSubmit);
+ AssertTextEquals(luckId, "3", "Panel is server-aware and open! Invalid child components must be processed");
+
+ clickCommandAndWait(fullSubmit);
+ AssertTextEquals(luckId, "3", "Panel is server-aware and open! Invalid child components must be processed");
+
+ type(childId, "valid");
+
+ clickAjaxCommandAndWait(ajaxSubmit);
+ AssertTextEquals(luckId, "4", "Panel is server-aware and open! Valid child components must be processed");
+
+ clickCommandAndWait(fullSubmit);
+ AssertTextEquals(luckId, "1", "Panel is server-aware and open! Valid child components must be processed");
+
+ clickAjaxCommandAndWait(panelId);
+ AssertTextEquals(luckId, "2", "Panel is server-aware and open! Valid child components must be processed");
+ }
+
+ @Test
+ public void testChildProcessingClientCase(Template template) {
+ renderPage(CHILD_PROCESSING_TEST_URL, template, "#{panelBean.reset2Client}");
+ writeStatus("Check children components processing for client mode");
+
+ String parentId = getParentId() + "_form:";
+
+ String panelId = parentId + "panel_header";
+ String luckId = parentId + "_luck";
+ String childId = parentId + "_child";
+ String ajaxSubmit = parentId + "_ajaxSubmit";
+ String fullSubmit = parentId + "_fullSubmit";
+
+ clickAjaxCommandAndWait(ajaxSubmit);
+ AssertTextEquals(luckId, "0", "Panel is not server-aware! Invalid child components must be processed");
+
+ clickCommandAndWait(fullSubmit);
+ AssertTextEquals(luckId, "0", "Panel is not server-aware! Invalid child components must be processed");
+
+ clickById(panelId);
+ AssertTextEquals(luckId, "0", "Client switch! Nothing is going to happen");
+
+ clickAjaxCommandAndWait(ajaxSubmit);
+ AssertTextEquals(luckId, "0", "Panel is not server-aware! Invalid child components must be processed");
+
+ clickCommandAndWait(fullSubmit);
+ AssertTextEquals(luckId, "0", "Panel is not server-aware! Invalid child components must be processed");
+
+ type(childId, "valid");
+
+ clickAjaxCommandAndWait(ajaxSubmit);
+ AssertTextEquals(luckId, "1", "Panel is not server-aware! Valid child components must be processed");
+
+ clickCommandAndWait(fullSubmit);
+ AssertTextEquals(luckId, "2", "Panel is not server-aware! Valid child components must be processed");
+
+ clickById(panelId);
+ AssertTextEquals(luckId, "2", "Client switch! Nothing is going to happen");
+ }
+
@Override
public void sendAjax() {
clickAjaxCommandAndWait(getAutoTester(this).getClientId(AutoTester.COMPONENT_ID) + "_header");
16 years, 11 months
JBoss Rich Faces SVN: r10836 - trunk/test-applications/jsp/src/main/java/scrollableDataTable.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-10-20 10:52:36 -0400 (Mon, 20 Oct 2008)
New Revision: 10836
Modified:
trunk/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java
Log:
Modified: trunk/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-10-20 14:49:39 UTC (rev 10835)
+++ trunk/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-10-20 14:52:36 UTC (rev 10836)
@@ -65,9 +65,9 @@
public ScrollableDataTable() {
sortMode = "single";
width = "750px";
- rows = 10;
+ rows = 30;
hideWhenScrolling = true;
- dataLength = 20;
+ dataLength = 40;
data = new ArrayList<Data>();
selectedRows = new ArrayList<Data>();
first = 0;
16 years, 11 months