JBoss Rich Faces SVN: r10835 - in trunk/ui/pickList/src/main/java/org/richfaces: renderkit and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-10-20 10:49:39 -0400 (Mon, 20 Oct 2008)
New Revision: 10835
Modified:
trunk/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListControlsHelper.java
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
trunk/ui/pickList/src/main/java/org/richfaces/utils/PickListUtils.java
Log:
add license agreement
Modified: trunk/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java
===================================================================
--- trunk/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java 2008-10-20 14:44:52 UTC (rev 10834)
+++ trunk/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java 2008-10-20 14:49:39 UTC (rev 10835)
@@ -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: trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListControlsHelper.java
===================================================================
--- trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListControlsHelper.java 2008-10-20 14:44:52 UTC (rev 10834)
+++ trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListControlsHelper.java 2008-10-20 14:49:39 UTC (rev 10835)
@@ -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: trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
===================================================================
--- trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-10-20 14:44:52 UTC (rev 10834)
+++ trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-10-20 14:49:39 UTC (rev 10835)
@@ -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/ui/pickList/src/main/java/org/richfaces/utils/PickListUtils.java
===================================================================
--- trunk/ui/pickList/src/main/java/org/richfaces/utils/PickListUtils.java 2008-10-20 14:44:52 UTC (rev 10834)
+++ trunk/ui/pickList/src/main/java/org/richfaces/utils/PickListUtils.java 2008-10-20 14:49:39 UTC (rev 10835)
@@ -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: r10834 - in trunk/test-applications/jsp/src/main: webapp/ScrollableDataTable and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-10-20 10:44:52 -0400 (Mon, 20 Oct 2008)
New Revision: 10834
Modified:
trunk/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp
Log:
Add "Show selection" functionality to scrollableDataTable
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:37:28 UTC (rev 10833)
+++ trunk/test-applications/jsp/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-10-20 14:44:52 UTC (rev 10834)
@@ -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";
- rows = 30;
- hideWhenScrolling = false;
- dataLength = 40;
+ width = "750px";
+ rows = 10;
+ hideWhenScrolling = true;
+ dataLength = 20;
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/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2008-10-20 14:37:28 UTC (rev 10833)
+++ trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2008-10-20 14:44:52 UTC (rev 10834)
@@ -4,47 +4,58 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview 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>
+ <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="sortBy" />
<h:outputText value="sortable='true'" />
</h:panelGrid>
<h:panelGrid columns="1" title="2">
- <h:outputText value="sortExpression" />
+ <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 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}"
+ <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}"
- selection="#{scrollableDT.selection}" eventsQueue="myEventsQueue"
+ sortMode="#{scrollableDT.sortMode}" eventsQueue="myEventsQueue"
columnClasses="#{style.columnClasses}"
footerClass="#{style.footerClass}" headerClass="#{style.headerClass}"
rowClasses="#{style.rowClasses}" activeClass="#{style.activeClass}"
@@ -52,11 +63,12 @@
selectedClass="#{style.selectedClass}"
onRowMouseDown="#{event.onRowMouseDown}"
onRowMouseUp="#{event.onRowMouseUp}"
- onselectionchange="#{event.onselectionchange}">
+ onselectionchange="#{event.onselectionchange}"
+ selection="#{scrollableDT.selection}">
<f:facet name="header">
<h:outputText value="facet header"></h:outputText>
</f:facet>
- <rich:column sortExpression="#{sdt.int0}" sortable="true" id="colID">
+ <rich:column sortBy="#{sdt.int0}" sortable="true" id="colID">
<f:facet name="header">
<h:outputText value="#" />
</f:facet>
@@ -66,26 +78,17 @@
</f:facet>
</rich:column>
- <rich:column sortExpression="#{sdt.str0}" sortable="false">
+ <rich:column sortBy="#{sdt.str0}" sortable="false">
<f:facet name="header">
<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.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 sortExpression="#{sdt.str1}">
+ <rich:column sortBy="#{sdt.str1}">
<f:facet name="header">
<h:outputText value="Link"></h:outputText>
</f:facet>
@@ -95,7 +98,7 @@
</f:facet>
</rich:column>
- <rich:column sortExpression="#{sdt.str2}">
+ <rich:column sortBy="#{sdt.str2}">
<f:facet name="header">
<h:outputText value="Select"></h:outputText>
</f:facet>
@@ -111,35 +114,35 @@
</f:facet>
</rich:column>
- <rich:column sortExpression="#{sdt.str3}">
+ <rich:column sortBy="#{sdt.str3}">
<f:facet name="header">
- <h:outputText value="Select"></h:outputText>
+ <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>
+ <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>
<f:facet name="footer">
- <h:outputText value="Link"></h:outputText>
+ <h:outputText value="outputLink"></h:outputText>
</f:facet>
</rich:column>
- <rich:column sortExpression="#{sdt.date0}" sortable="true">
+ <rich:column sortBy="#{sdt.date0}" sortable="true">
<f:facet name="header">
- <h:outputText value="#" />
+ <h:outputText value="Date" />
</f:facet>
<h:outputText value="#{sdt.date0}"></h:outputText>
<f:facet name="footer">
- <h:outputText value="#" />
+ <h:outputText value="Date" />
</f:facet>
</rich:column>
@@ -147,39 +150,112 @@
<h:outputText value="facet footer"></h:outputText>
</f:facet>
</rich:scrollableDataTable>
- <h:panelGrid columns="1">
- <h:outputText value="JS API test" style="FONT-WEIGHT: bold;"></h:outputText>
- <a4j:commandLink
- onclick="$('formID:scrollableDataTableSubviewID:sdt').component.collapse(colID)"
- value="collapse('colID')"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:scrollableDataTableSubviewID:sdt').component.expand(colID)"
- value="expand('colID')"></a4j:commandLink>
- </h:panelGrid>
- <f:verbatim>
- <h:outputText value="Component control+JS API"></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>
<br />
- <br />
- <%--rich:scrollableDataTable id="dataList" width="300px" height="300px" var="data" value="#{tableBeanScroll.data}">
- <rich:columns value="#{tableBeanScroll.columnModel}" var="col" index="index" sortable="true">
+ <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">
- <a4j:commandLink value="#{col.title}" action="#{col.sort}" reRender="dataList" />
+ <h:outputText value="#" />
</f:facet>
- <h:outputText value="#{data.columns[index]}" />
- </rich:columns>
- </rich:scrollableDataTable--%>
- <br />
+ <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>
Modified: trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp 2008-10-20 14:37:28 UTC (rev 10833)
+++ trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp 2008-10-20 14:44:52 UTC (rev 10834)
@@ -4,7 +4,8 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="scrollableDataTablePropertySubviewID">
-<h:commandButton value="add test" action="#{scrollableDT.addHtmlScrollableDataTable}"></h:commandButton>
+ <h:commandButton value="add test"
+ action="#{scrollableDT.addHtmlScrollableDataTable}"></h:commandButton>
<h:panelGrid columns="2">
<h:outputText value="length:"></h:outputText>
<h:panelGroup>
@@ -69,12 +70,14 @@
</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 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
16 years, 11 months
JBoss Rich Faces SVN: r10833 - in trunk/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 10:37:28 -0400 (Mon, 20 Oct 2008)
New Revision: 10833
Modified:
trunk/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java
trunk/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java
trunk/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java
trunk/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessageRenderer.java
trunk/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
trunk/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java
trunk/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java
Log:
add license agreement
Modified: trunk/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java
===================================================================
--- trunk/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java 2008-10-20 14:36:43 UTC (rev 10832)
+++ trunk/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java 2008-10-20 14:37:28 UTC (rev 10833)
@@ -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: trunk/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java
===================================================================
--- trunk/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java 2008-10-20 14:36:43 UTC (rev 10832)
+++ trunk/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java 2008-10-20 14:37:28 UTC (rev 10833)
@@ -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/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java
===================================================================
--- trunk/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java 2008-10-20 14:36:43 UTC (rev 10832)
+++ trunk/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java 2008-10-20 14:37:28 UTC (rev 10833)
@@ -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/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessageRenderer.java
===================================================================
--- trunk/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessageRenderer.java 2008-10-20 14:36:43 UTC (rev 10832)
+++ trunk/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessageRenderer.java 2008-10-20 14:37:28 UTC (rev 10833)
@@ -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: trunk/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
===================================================================
--- trunk/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2008-10-20 14:36:43 UTC (rev 10832)
+++ trunk/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2008-10-20 14:37:28 UTC (rev 10833)
@@ -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: trunk/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java
===================================================================
--- trunk/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java 2008-10-20 14:36:43 UTC (rev 10832)
+++ trunk/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java 2008-10-20 14:37:28 UTC (rev 10833)
@@ -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: trunk/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java
===================================================================
--- trunk/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java 2008-10-20 14:36:43 UTC (rev 10832)
+++ trunk/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java 2008-10-20 14:37:28 UTC (rev 10833)
@@ -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;
16 years, 11 months
JBoss Rich Faces SVN: r10831 - in trunk/ui/inplaceSelect/src: main/java/org/richfaces/renderkit and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-10-20 10:34:44 -0400 (Mon, 20 Oct 2008)
New Revision: 10831
Modified:
trunk/ui/inplaceSelect/src/main/java/org/richfaces/component/UIInplaceSelect.java
trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
trunk/ui/inplaceSelect/src/test/java/org/richfaces/component/InplaceSelectComponentTest.java
trunk/ui/inplaceSelect/src/test/java/org/richfaces/renderkit/InplaceSelectRenderTest.java
Log:
add license agreement
Modified: trunk/ui/inplaceSelect/src/main/java/org/richfaces/component/UIInplaceSelect.java
===================================================================
--- trunk/ui/inplaceSelect/src/main/java/org/richfaces/component/UIInplaceSelect.java 2008-10-20 14:34:19 UTC (rev 10830)
+++ trunk/ui/inplaceSelect/src/main/java/org/richfaces/component/UIInplaceSelect.java 2008-10-20 14:34:44 UTC (rev 10831)
@@ -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: trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
===================================================================
--- trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-10-20 14:34:19 UTC (rev 10830)
+++ trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-10-20 14:34:44 UTC (rev 10831)
@@ -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: trunk/ui/inplaceSelect/src/test/java/org/richfaces/component/InplaceSelectComponentTest.java
===================================================================
--- trunk/ui/inplaceSelect/src/test/java/org/richfaces/component/InplaceSelectComponentTest.java 2008-10-20 14:34:19 UTC (rev 10830)
+++ trunk/ui/inplaceSelect/src/test/java/org/richfaces/component/InplaceSelectComponentTest.java 2008-10-20 14:34:44 UTC (rev 10831)
@@ -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: trunk/ui/inplaceSelect/src/test/java/org/richfaces/renderkit/InplaceSelectRenderTest.java
===================================================================
--- trunk/ui/inplaceSelect/src/test/java/org/richfaces/renderkit/InplaceSelectRenderTest.java 2008-10-20 14:34:19 UTC (rev 10830)
+++ trunk/ui/inplaceSelect/src/test/java/org/richfaces/renderkit/InplaceSelectRenderTest.java 2008-10-20 14:34:44 UTC (rev 10831)
@@ -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;
16 years, 11 months
JBoss Rich Faces SVN: r10830 - in trunk/ui/inplaceInput/src: main/java/org/richfaces/renderkit and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-10-20 10:34:19 -0400 (Mon, 20 Oct 2008)
New Revision: 10830
Modified:
trunk/ui/inplaceInput/src/main/java/org/richfaces/component/UIInplaceInput.java
trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
trunk/ui/inplaceInput/src/test/java/org/richfaces/component/InplaceInputComponentTest.java
trunk/ui/inplaceInput/src/test/java/org/richfaces/rendekit/InplaceInputRendererTest.java
Log:
add license agreement
Modified: trunk/ui/inplaceInput/src/main/java/org/richfaces/component/UIInplaceInput.java
===================================================================
--- trunk/ui/inplaceInput/src/main/java/org/richfaces/component/UIInplaceInput.java 2008-10-20 14:33:42 UTC (rev 10829)
+++ trunk/ui/inplaceInput/src/main/java/org/richfaces/component/UIInplaceInput.java 2008-10-20 14:34:19 UTC (rev 10830)
@@ -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/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
===================================================================
--- trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-10-20 14:33:42 UTC (rev 10829)
+++ trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-10-20 14:34:19 UTC (rev 10830)
@@ -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;
@@ -10,7 +30,6 @@
import org.ajax4jsf.javascript.JSFunctionDefinition;
import org.ajax4jsf.javascript.ScriptUtils;
import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
-import org.ajax4jsf.renderkit.RendererUtils;
import org.ajax4jsf.util.InputUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
Modified: trunk/ui/inplaceInput/src/test/java/org/richfaces/component/InplaceInputComponentTest.java
===================================================================
--- trunk/ui/inplaceInput/src/test/java/org/richfaces/component/InplaceInputComponentTest.java 2008-10-20 14:33:42 UTC (rev 10829)
+++ trunk/ui/inplaceInput/src/test/java/org/richfaces/component/InplaceInputComponentTest.java 2008-10-20 14:34:19 UTC (rev 10830)
@@ -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: trunk/ui/inplaceInput/src/test/java/org/richfaces/rendekit/InplaceInputRendererTest.java
===================================================================
--- trunk/ui/inplaceInput/src/test/java/org/richfaces/rendekit/InplaceInputRendererTest.java 2008-10-20 14:33:42 UTC (rev 10829)
+++ trunk/ui/inplaceInput/src/test/java/org/richfaces/rendekit/InplaceInputRendererTest.java 2008-10-20 14:34:19 UTC (rev 10830)
@@ -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;
16 years, 11 months
JBoss Rich Faces SVN: r10829 - in trunk/ui/combobox/src: main/java/org/richfaces/renderkit and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-10-20 10:33:42 -0400 (Mon, 20 Oct 2008)
New Revision: 10829
Modified:
trunk/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java
trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
trunk/ui/combobox/src/test/java/org/richfaces/renderkit/ComboBoxRendererTest.java
Log:
add License Agreement
Modified: trunk/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java
===================================================================
--- trunk/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java 2008-10-20 13:56:19 UTC (rev 10828)
+++ trunk/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java 2008-10-20 14:33:42 UTC (rev 10829)
@@ -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/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
===================================================================
--- trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-10-20 13:56:19 UTC (rev 10828)
+++ trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-10-20 14:33:42 UTC (rev 10829)
@@ -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/ui/combobox/src/test/java/org/richfaces/renderkit/ComboBoxRendererTest.java
===================================================================
--- trunk/ui/combobox/src/test/java/org/richfaces/renderkit/ComboBoxRendererTest.java 2008-10-20 13:56:19 UTC (rev 10828)
+++ trunk/ui/combobox/src/test/java/org/richfaces/renderkit/ComboBoxRendererTest.java 2008-10-20 14:33:42 UTC (rev 10829)
@@ -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;
16 years, 11 months
JBoss Rich Faces SVN: r10828 - trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-10-20 09:56:19 -0400 (Mon, 20 Oct 2008)
New Revision: 10828
Modified:
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js
Log:
Adjust Editor work with ajax
Modified: trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js
===================================================================
--- trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js 2008-10-20 13:46:49 UTC (rev 10827)
+++ trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js 2008-10-20 13:56:19 UTC (rev 10828)
@@ -14,32 +14,32 @@
this.editorTextAreaId = this.id +'TextArea';
this.params = parameters;
+ var obj = $(this.id);
+ obj.component = this;
+ obj.richfacesComponent="richfaces:editor";
this["rich:destructor"] = "destruct";
tinyMCE.init({
mode: this.params.mode,
theme: this.params.theme,
- init_instance_callback : this.onInitInstanceCallback.bind(this),
+ init_instance_callback : this.onInitInstanceCallback.bind(this)
});
- this.onbeforeajaxListener = new A4J.AJAX.AjaxListener("onbeforeajax", this.onBeforeAjax.bind(this));
- A4J.AJAX.AddListener(this.onbeforeajaxListener);
+ this.onBeforeAjaxListener = new A4J.AJAX.AjaxListener("onbeforeajax", this.onBeforeAjax.bind(this));
+ A4J.AJAX.AddListener(this.onBeforeAjaxListener);
},
destruct: function() {
-
- alert('destructor');
- A4J.AJAX.removeListener(this.onbeforeajaxListener);
- this.onbeforeajaxListener = null;
+ A4J.AJAX.removeListener(this.onBeforeAjaxListener);
+ this.onBeforeAjaxListener = null;
this.tinyMCE_editor.remove();
this.tinyMCE_editor = null;
- alert('destructor done');
},
onBeforeAjax: function() {
- alert('before ajax ');
+ //var content = this.tinyMCE_editor.getContent();
+ //$(this.editorTextAreaId).value = content;
this.tinyMCE_editor.save();
- alert('before ajax done');
},
onInitInstanceCallback: function() {
16 years, 11 months
JBoss Rich Faces SVN: r10827 - trunk/docs/cdkguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-10-20 09:46:49 -0400 (Mon, 20 Oct 2008)
New Revision: 10827
Modified:
trunk/docs/cdkguide/en/src/main/docbook/modules/namingconv.xml
Log:
https://jira.jboss.org/jira/browse/RF-3692 - 'Naming conventions' chapter creation
Modified: trunk/docs/cdkguide/en/src/main/docbook/modules/namingconv.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/modules/namingconv.xml 2008-10-20 10:18:20 UTC (rev 10826)
+++ trunk/docs/cdkguide/en/src/main/docbook/modules/namingconv.xml 2008-10-20 13:46:49 UTC (rev 10827)
@@ -11,7 +11,274 @@
<title>Naming conventions</title>
<para>
- Work in progress...
+ During the development process,
+ the next naming convention for all project stuff should be mentioned.
+ </para>
+ <para>
+ At first take a look at the definitions that are used in this structure.
+ Uppercase symbols means Java names notation. For name "foo" <name> means "foo",
+ and <Name> - "Foo":
+ </para>
+ <table>
+ <title>The structure definitions</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Definition</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>
+ <prefix>
+ </entry>
+ <entry>
+ A common library name for example, base JSF components use <javax.faces> prefix.
+ The value for prefix get from an abstract component package or a renderer template path.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <name>
+ </entry>
+ <entry>
+ A name for a base component.
+ For UIInput component <name> is "input".
+ The value for a component name generator could be obtained from UI or Abstract class name.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <markup>
+ </entry>
+ <entry>
+ A render-kit generated content name:
+ "html" for <emphasis role="italic"><property>HTML/XHTML</property></emphasis> pages,
+ "wml" for mobile content, etc.
+ It should be provided in the render-kit description by Ant task
+ or in <emphasis role="italic"><property>Maven's POM</property></emphasis>.
+ By default, "html" is used.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <rendererName>
+ </entry>
+ <entry>
+ A name of the renderer for concreting a visual component implementation, e.g. "commandButton" , "panelGroup", etc.
+ A generator can take <rendererName> from a template file name.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <event>
+ </entry>
+ <entry>
+ A name for a Faces Event: "action" for all
+ <emphasis role="italic"><property>ActionSource</property></emphasis> components like UICommand.
+ It could be provided in the component configuration, or obtain from the implemented source interface.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <para>
+ Now let's take a look to the naming convention.
+ By default, a generator expects the written Java classes structure above:
</para>
-
+ <table>
+ <title>The Java classes structure</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Naming convention</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>
+ <prefix>.component.Abstract<Name>
+ </entry>
+ <entry>
+ An optional abstract super-class for a JSF component.
+ In order to avoid manual writing for EL-enabled getters/setters, saveState/restoreState methods,
+ listener-related methods etc., you can create an abstract class, and a generator creates the implementation.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.component.UIt<Name>
+ </entry>
+ <entry>
+ A Base component class. It can be generated from the abstract superclass or created by a developer.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.component.<markup>.<Markup><RendererName>
+ </entry>
+ <entry>
+ A renderer-specific generated component.
+ The <Markup> is a render-kit specific generation name such as <property>html</property>,
+ <property>xml</property>, <property>wml</property>.
+ In addition to the UI Component class, this class contains Java Bean getter/setter methods
+ for renderer-specific attributes.
+ This class is generated by CDK.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.t<Name>
+ </entry>
+ <entry>
+ A JSF UI component type. Can be provided in the configuration or calculated from a component class name.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.<Markup><RendererName>
+ </entry>
+ <entry>
+ A renderer-specific JSF component type. Can be provided in the configuration or calculated from the renderer name.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.renderkit.<RendererName>RendererBase
+ </entry>
+ <entry>
+ A Renderer Base class is an optional Renderer superclass,
+ implements methods from the template renderer.
+ Should be created by you.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.renderkit.<markup><RendererName>
+ </entry>
+ <entry>
+ A generated Renderer
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.<RendererName>
+ </entry>
+ <entry>
+ A JSF renderer type. Can be provided in the configuration or calculated from a renderer name.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.<Markup><RendererName>.xml
+ </entry>
+ <entry>
+ A template for generating the renderer class.
+ JSPX syntax is used. Should be provided by you.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.taglib.<RendererName>Tag
+ </entry>
+ <entry>
+ A JSP tag class
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.taglib.<RendererName>TagHandler
+ </entry>
+ <entry>
+ A Facelets Tag Handler class.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <RendererName>
+ </entry>
+ <entry>
+ A JSP/Facelets Tag name
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <para>
+ Here is the Java classes structure for the components, that uses JSF events:
+ </para>
+ <table>
+ <title>The Java classes structure for components, that uses JSF events</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Naming convention</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>
+ <prefix>.event.<Event>Event
+ </entry>
+ <entry>
+ An event class, that you should provide.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.event.<Event>Listener
+ </entry>
+ <entry>
+ An event listener interface,that could be generated by <property>CDK</property>
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.event.<Event>Source
+ </entry>
+ <entry>
+ An interface for an event processing component, that includes the following methods:
+ add<Event>Listener(<Event>Listener listener ),
+ remove<Event>Listener(<Event>Listener listener )
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.event.<Event>EventWrapper
+ </entry>
+ <entry>
+ A wrapper class, that is used for binding listener's EL-expression in user's beans.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.taglib.<Event>ListenerTag
+ </entry>
+ <entry>
+ A JSP tag class for a creating listener instance.
+ A parent tag must creates component implementing Source interface.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <prefix>.taglib.<Event>ListenerTagHandler
+ </entry>
+ <entry>
+ A Facelets tag class for creation of listener instance.
+ </entry>
+ </row>
+ <!-- row>
+ <entry>
+ process<Event>
+ </entry>
+ <entry>
+ An event processing method name in a listener interface.
+ </entry>
+ </row-->
+ </tbody>
+ </tgroup>
+ </table>
</chapter>
\ No newline at end of file
16 years, 11 months
JBoss Rich Faces SVN: r10826 - in trunk/sandbox/ui/editor/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-10-20 06:18:20 -0400 (Mon, 20 Oct 2008)
New Revision: 10826
Modified:
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js
trunk/sandbox/ui/editor/src/main/templates/editor.jspx
Log:
Add RichEditor prototype
Modified: trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js
===================================================================
--- trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js 2008-10-19 15:26:35 UTC (rev 10825)
+++ trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js 2008-10-20 10:18:20 UTC (rev 10826)
@@ -6,16 +6,46 @@
return Richfaces.Editor.ResourceHTML.replace("$1", baseURL);
};*/
-//Richfaces.Editor.ResourceHTML = "ghdfgsdfgsdfgsdfgdf sg sdfg$1fgsdfdfgdfg";
-/*
+
RichEditor = Class.create();
Object.extend(RichEditor.prototype, {
- initialize: function(id,parameters) {
- this["rich:destructor"] = "destructor";
+ initialize: function(id, parameters) {
+ this.id = id;
+ this.editorTextAreaId = this.id +'TextArea';
+ this.params = parameters;
+
+ this["rich:destructor"] = "destruct";
+
+ tinyMCE.init({
+ mode: this.params.mode,
+ theme: this.params.theme,
+ init_instance_callback : this.onInitInstanceCallback.bind(this),
+ });
+
+ this.onbeforeajaxListener = new A4J.AJAX.AjaxListener("onbeforeajax", this.onBeforeAjax.bind(this));
+ A4J.AJAX.AddListener(this.onbeforeajaxListener);
+
},
- destructor: function()
- {
-
+ destruct: function() {
+
+ alert('destructor');
+ A4J.AJAX.removeListener(this.onbeforeajaxListener);
+ this.onbeforeajaxListener = null;
+ this.tinyMCE_editor.remove();
+ this.tinyMCE_editor = null;
+ alert('destructor done');
+ },
+
+ onBeforeAjax: function() {
+ alert('before ajax ');
+ this.tinyMCE_editor.save();
+ alert('before ajax done');
+ },
+
+ onInitInstanceCallback: function() {
+ this.tinyMCE_editor = tinyMCE.get(this.editorTextAreaId);
+
+ //TODO add user init_instance_callback function
}
-});*/
+});
\ No newline at end of file
Modified: trunk/sandbox/ui/editor/src/main/templates/editor.jspx
===================================================================
--- trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-10-19 15:26:35 UTC (rev 10825)
+++ trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-10-20 10:18:20 UTC (rev 10826)
@@ -12,7 +12,7 @@
<f:clientid var="clientId"/>
<h:styles>css/editor.xcss</h:styles>
- <h:scripts>scripts/editor.js, scripts/tiny_mce/tiny_mce_src.js</h:scripts>
+ <h:scripts>new org.ajax4jsf.javascript.AjaxScript(), new org.ajax4jsf.javascript.PrototypeScript(), scripts/editor.js, scripts/tiny_mce/tiny_mce_src.js</h:scripts>
<div id="#{clientId}" x:passThruWithExclusions="id,value"
class="rich-editor">
@@ -30,13 +30,11 @@
</jsp:scriptlet>
</textarea>
- <script type="text/javascript">
-
-
- tinyMCE.init({
- mode: '#{component.attributes['mode']}',
- theme: '#{component.attributes['theme']}'
- });
+ <script type="text/javascript">
+ new RichEditor('#{clientId}', {
+ mode: '#{component.attributes['mode']}',
+ theme: '#{component.attributes['theme']}'
+ });
</script>
</div>
</f:root>
16 years, 11 months