JBoss Rich Faces SVN: r17056 - in root/core/trunk: impl/src/main/resources/META-INF/resources and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-05-14 17:13:38 -0400 (Fri, 14 May 2010)
New Revision: 17056
Modified:
root/core/trunk/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java
root/core/trunk/impl/src/main/resources/META-INF/resources/richfaces.js
root/core/trunk/impl/src/test/resources/javascript/4_0_0.html
Log:
https://jira.jboss.org/jira/browse/RF-8625
Modified: root/core/trunk/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java
===================================================================
--- root/core/trunk/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java 2010-05-14 17:43:17 UTC (rev 17055)
+++ root/core/trunk/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java 2010-05-14 21:13:38 UTC (rev 17056)
@@ -51,6 +51,8 @@
private static final Logger LOG = RichfacesLogger.UTIL.getLogger();
+ //there is the same pattern in client-side code:
+ //richfaces.js - RichFaces.escapeCSSMetachars(s)
private static final char[] CSS_SELECTOR_CHARS_TO_ESCAPE = createSortedCharArray("#;&,.+*~':\"!^$[]()=>|/");
/**
Modified: root/core/trunk/impl/src/main/resources/META-INF/resources/richfaces.js
===================================================================
--- root/core/trunk/impl/src/main/resources/META-INF/resources/richfaces.js 2010-05-14 17:43:17 UTC (rev 17055)
+++ root/core/trunk/impl/src/main/resources/META-INF/resources/richfaces.js 2010-05-14 21:13:38 UTC (rev 17056)
@@ -97,6 +97,23 @@
return out;
};
+ //there is the same pattern in server-side code:
+ //org.ajax4jsf.javascript.ScriptUtils.escapeCSSMetachars(String)
+ var CSS_METACHARS_PATTERN = /([#;&,.+*~':"!^$[\]()=>|\/])/g;
+
+ /**
+ * Escapes CSS meta-characters in string according to
+ * <a href="http://api.jquery.com/category/selectors/">jQuery selectors</a> document.
+ *
+ * @param s - string to escape meta-characters in
+ * @return string with meta-characters escaped
+ */
+ richfaces.escapeCSSMetachars = function(s) {
+ //TODO nick - cache results
+
+ return s.replace(CSS_METACHARS_PATTERN, "\\$1");
+ };
+
richfaces.log = (function(jQuery) {
var LOG_LEVELS = {'debug': 1, 'info': 2, 'warn': 3, 'error': 4};
var LOG_LEVEL_COLORS = {'debug': 'darkblue', 'info': 'blue', 'warn': 'gold', 'error': 'red'};
Modified: root/core/trunk/impl/src/test/resources/javascript/4_0_0.html
===================================================================
--- root/core/trunk/impl/src/test/resources/javascript/4_0_0.html 2010-05-14 17:43:17 UTC (rev 17055)
+++ root/core/trunk/impl/src/test/resources/javascript/4_0_0.html 2010-05-14 21:13:38 UTC (rev 17056)
@@ -155,6 +155,17 @@
}
RichFaces.ajax(ajaxSource, ajaxEvent, ajaxOptions);
});
+
+ test("RichFaces.escapeCSSMetachars test", function() {
+ expect(6);
+
+ equals("", RichFaces.escapeCSSMetachars(""));
+ equals("test", RichFaces.escapeCSSMetachars("test"));
+ equals("test\\.string", RichFaces.escapeCSSMetachars("test.string"));
+ equals("test\\\"string", RichFaces.escapeCSSMetachars("test\"string"));
+ equals("some\\.test\\'string", RichFaces.escapeCSSMetachars("some.test'string"));
+ equals("\\#table\\[header\\]", RichFaces.escapeCSSMetachars("#table[header]"));
+ });
</script>
</head>
<body>
14 years, 6 months
JBoss Rich Faces SVN: r17055 - root/ui-sandbox/tables/trunk/ui/src/test/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2010-05-14 13:43:17 -0400 (Fri, 14 May 2010)
New Revision: 17055
Modified:
root/ui-sandbox/tables/trunk/ui/src/test/java/org/richfaces/renderkit/ExtendedDataTableRendererTest.java
Log:
RF-8483
Modified: root/ui-sandbox/tables/trunk/ui/src/test/java/org/richfaces/renderkit/ExtendedDataTableRendererTest.java
===================================================================
--- root/ui-sandbox/tables/trunk/ui/src/test/java/org/richfaces/renderkit/ExtendedDataTableRendererTest.java 2010-05-14 14:20:36 UTC (rev 17054)
+++ root/ui-sandbox/tables/trunk/ui/src/test/java/org/richfaces/renderkit/ExtendedDataTableRendererTest.java 2010-05-14 17:43:17 UTC (rev 17055)
@@ -10,6 +10,7 @@
import java.io.File;
import java.io.IOException;
+import java.util.Arrays;
import java.util.Map;
import javax.faces.application.ViewHandler;
@@ -250,4 +251,29 @@
assertEquals("200px", column1Attributes.get("width"));
facesRequest.release();
}
+
+ @Test
+ public final void testColumnReordering() throws IOException {
+ FacesRequest facesRequest = environment.createFacesRequest("http://localhost/extendedDataTableTest.jsf");
+ facesRequest.withViewId("/extendedDataTableTest.jsf");
+ facesRequest.start();
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ ViewHandler vh = facesContext.getApplication().getViewHandler();
+ ViewDeclarationLanguage vdl = vh.getViewDeclarationLanguage(facesContext, facesContext.getViewRoot()
+ .getViewId());
+ vdl.buildView(facesContext, facesContext.getViewRoot());
+ UIExtendedDataTable component = (UIExtendedDataTable) facesContext.getViewRoot().findComponent("table");
+ ExtendedDataTableRenderer renderer = (ExtendedDataTableRenderer) FacesContext.getCurrentInstance()
+ .getRenderKit().getRenderer(component.getFamily(), component.getRendererType());
+ Map<String, Object> componentAttributes = component.getAttributes();
+ String clientId = component.getClientId(facesContext);
+ assertNull(componentAttributes.get("columnsOrder"));
+ facesRequest.withParameter(clientId, clientId);
+ facesRequest.withParameter("rich:columnsOrder", "column2,column1");
+ renderer.doDecode(facesContext, component);
+ assertTrue(facesContext.getPartialViewContext().getRenderIds().contains(clientId));
+ assertTrue(Arrays.equals(new String[]{"column2", "column1"},
+ (String[]) componentAttributes.get("columnsOrder")));
+ facesRequest.release();
+ }
}
14 years, 6 months
JBoss Rich Faces SVN: r17054 - root/core/trunk/api/src/test/java/org/ajax4jsf/javascript.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-05-14 10:20:36 -0400 (Fri, 14 May 2010)
New Revision: 17054
Modified:
root/core/trunk/api/src/test/java/org/ajax4jsf/javascript/ScriptUtilsTest.java
Log:
https://jira.jboss.org/jira/browse/RF-8625 - minor test update
Modified: root/core/trunk/api/src/test/java/org/ajax4jsf/javascript/ScriptUtilsTest.java
===================================================================
--- root/core/trunk/api/src/test/java/org/ajax4jsf/javascript/ScriptUtilsTest.java 2010-05-14 14:17:37 UTC (rev 17053)
+++ root/core/trunk/api/src/test/java/org/ajax4jsf/javascript/ScriptUtilsTest.java 2010-05-14 14:20:36 UTC (rev 17054)
@@ -456,14 +456,14 @@
assertEquals("test", ScriptUtils.escapeCSSMetachars("test"));
assertEquals("test\\.string", ScriptUtils.escapeCSSMetachars("test.string"));
- assertEquals("test\\.\\.string", ScriptUtils.escapeCSSMetachars("test..string"));
+ assertEquals("test\\.\\=string", ScriptUtils.escapeCSSMetachars("test.=string"));
- assertEquals("some\\.test\\.string", ScriptUtils.escapeCSSMetachars("some.test.string"));
+ assertEquals("some\\.test\\=string", ScriptUtils.escapeCSSMetachars("some.test=string"));
assertEquals("\\#test", ScriptUtils.escapeCSSMetachars("#test"));
- assertEquals("\\#\\#test", ScriptUtils.escapeCSSMetachars("##test"));
+ assertEquals("\\#\\=test", ScriptUtils.escapeCSSMetachars("#=test"));
assertEquals("test\\#", ScriptUtils.escapeCSSMetachars("test#"));
- assertEquals("test\\#\\#", ScriptUtils.escapeCSSMetachars("test##"));
+ assertEquals("test\\#\\=", ScriptUtils.escapeCSSMetachars("test#="));
}
}
14 years, 6 months
JBoss Rich Faces SVN: r17053 - in root/core/trunk/api/src: test/java/org/ajax4jsf/javascript and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-05-14 10:17:37 -0400 (Fri, 14 May 2010)
New Revision: 17053
Modified:
root/core/trunk/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java
root/core/trunk/api/src/test/java/org/ajax4jsf/javascript/ScriptUtilsTest.java
Log:
https://jira.jboss.org/jira/browse/RF-8625
Modified: root/core/trunk/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java
===================================================================
--- root/core/trunk/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java 2010-05-14 14:17:22 UTC (rev 17052)
+++ root/core/trunk/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java 2010-05-14 14:17:37 UTC (rev 17053)
@@ -29,6 +29,7 @@
import java.io.Writer;
import java.lang.reflect.Array;
import java.text.MessageFormat;
+import java.util.Arrays;
import java.util.Collection;
import java.util.IdentityHashMap;
import java.util.Iterator;
@@ -50,11 +51,19 @@
private static final Logger LOG = RichfacesLogger.UTIL.getLogger();
+ private static final char[] CSS_SELECTOR_CHARS_TO_ESCAPE = createSortedCharArray("#;&,.+*~':\"!^$[]()=>|/");
+
/**
* This is utility class, don't instantiate.
*/
private ScriptUtils() {}
+ private static char[] createSortedCharArray(String s) {
+ char[] cs = s.toCharArray();
+ Arrays.sort(cs);
+ return cs;
+ }
+
private static void writeScriptToStream(Writer writer, Object obj, Map<Object, Boolean> cycleBusterMap) throws IOException {
Boolean cycleBusterValue = cycleBusterMap.put(obj, Boolean.TRUE);
@@ -356,7 +365,7 @@
*
* @param property -
* value of property returned from
- * {@link UIComponent#getAttributes()}
+ * {@link javax.faces.component.UIComponent#getAttributes()}
* @return true for setted property, false otherthise.
*/
public static boolean isValidProperty(Object property) {
@@ -386,4 +395,44 @@
}
return true;
}
+
+ /**
+ * <p>
+ * Escapes CSS meta-characters in string according to
+ * <a href="http://api.jquery.com/category/selectors/">jQuery selectors</a> document.
+ * </p>
+ *
+ * @param s {@link String} to escape meta-characters in
+ * @return string with escaped characters.
+ */
+ public static String escapeCSSMetachars(String s) {
+ if (s == null || s.length() == 0) {
+ return s;
+ }
+
+ StringBuilder builder = new StringBuilder();
+
+ int start = 0;
+ int idx = 0;
+
+ int length = s.length();
+
+ for (; idx < length; idx++) {
+ char c = s.charAt(idx);
+
+ int searchIdx = Arrays.binarySearch(CSS_SELECTOR_CHARS_TO_ESCAPE, c);
+ if (searchIdx >= 0) {
+ builder.append(s.substring(start, idx));
+
+ builder.append("\\");
+ builder.append(c);
+
+ start = idx + 1;
+ }
+ }
+
+ builder.append(s.substring(start, idx));
+
+ return builder.toString();
+ }
}
Modified: root/core/trunk/api/src/test/java/org/ajax4jsf/javascript/ScriptUtilsTest.java
===================================================================
--- root/core/trunk/api/src/test/java/org/ajax4jsf/javascript/ScriptUtilsTest.java 2010-05-14 14:17:22 UTC (rev 17052)
+++ root/core/trunk/api/src/test/java/org/ajax4jsf/javascript/ScriptUtilsTest.java 2010-05-14 14:17:37 UTC (rev 17053)
@@ -46,6 +46,7 @@
import org.easymock.Capture;
import org.easymock.CaptureType;
import org.jboss.test.faces.mock.MockFacesEnvironment;
+import org.junit.Test;
/**
* @author shura
@@ -448,4 +449,21 @@
dehydrate(ScriptUtils.toScript(parent)));
}
+ @Test
+ public void testEscapeStringForCSSSelector() throws Exception {
+ assertNull(ScriptUtils.escapeCSSMetachars(null));
+ assertEquals("", ScriptUtils.escapeCSSMetachars(""));
+
+ assertEquals("test", ScriptUtils.escapeCSSMetachars("test"));
+ assertEquals("test\\.string", ScriptUtils.escapeCSSMetachars("test.string"));
+ assertEquals("test\\.\\.string", ScriptUtils.escapeCSSMetachars("test..string"));
+
+ assertEquals("some\\.test\\.string", ScriptUtils.escapeCSSMetachars("some.test.string"));
+
+ assertEquals("\\#test", ScriptUtils.escapeCSSMetachars("#test"));
+ assertEquals("\\#\\#test", ScriptUtils.escapeCSSMetachars("##test"));
+
+ assertEquals("test\\#", ScriptUtils.escapeCSSMetachars("test#"));
+ assertEquals("test\\#\\#", ScriptUtils.escapeCSSMetachars("test##"));
+ }
}
14 years, 6 months
JBoss Rich Faces SVN: r17052 - in root/examples/richfaces-showcase/trunk: src/main/java/org/richfaces/demo and 6 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-05-14 10:17:22 -0400 (Fri, 14 May 2010)
New Revision: 17052
Added:
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/view/
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/view/SampleToolBarItem.java
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/view/ViewController.java
root/examples/richfaces-showcase/trunk/src/main/webapp/WEB-INF/lib/
root/examples/richfaces-showcase/trunk/src/main/webapp/resources/rich/toolBar.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/simpleTable.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/subtables.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/templates/component-sample.xhtml
Modified:
root/examples/richfaces-showcase/trunk/
root/examples/richfaces-showcase/trunk/pom.xml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-8298
integration of tables started
Property changes on: root/examples/richfaces-showcase/trunk
___________________________________________________________________
Name: svn:ignore
+ target
.settings
.classpath
.project
Modified: root/examples/richfaces-showcase/trunk/pom.xml
===================================================================
--- root/examples/richfaces-showcase/trunk/pom.xml 2010-05-14 12:43:39 UTC (rev 17051)
+++ root/examples/richfaces-showcase/trunk/pom.xml 2010-05-14 14:17:22 UTC (rev 17052)
@@ -36,6 +36,11 @@
<artifactId>slf4j-simple</artifactId>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>tables-ui</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </dependency>
</dependencies>
<build>
Added: root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/view/SampleToolBarItem.java
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/view/SampleToolBarItem.java (rev 0)
+++ root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/view/SampleToolBarItem.java 2010-05-14 14:17:22 UTC (rev 17052)
@@ -0,0 +1,28 @@
+package org.richfaces.demo.view;
+
+public class SampleToolBarItem {
+ private String name;
+ private String outcome;
+
+ public SampleToolBarItem(String name, String outcome) {
+ this.name = name;
+ this.outcome = outcome;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getOutcome() {
+ return outcome;
+ }
+
+ public void setOutcome(String outcome) {
+ this.outcome = outcome;
+ }
+
+}
Added: root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/view/ViewController.java
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/view/ViewController.java (rev 0)
+++ root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/view/ViewController.java 2010-05-14 14:17:22 UTC (rev 17052)
@@ -0,0 +1,22 @@
+package org.richfaces.demo.view;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.ViewScoped;
+
+@ManagedBean
+@ViewScoped
+public class ViewController {
+
+ public List<SampleToolBarItem> getTableToolBarItems() {
+ List<SampleToolBarItem> items = new ArrayList<SampleToolBarItem>();
+ SampleToolBarItem item = new SampleToolBarItem("Simple", "/richfaces/dataTable/simpleTable.jsf");
+ items.add(item);
+ item = new SampleToolBarItem("Complex layouts", "/richfaces/dataTable/subtables.jsf");
+ items.add(item);
+ return items;
+ }
+
+}
Added: root/examples/richfaces-showcase/trunk/src/main/webapp/resources/rich/toolBar.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/resources/rich/toolBar.xhtml (rev 0)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/resources/rich/toolBar.xhtml 2010-05-14 14:17:22 UTC (rev 17052)
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:composite="http://java.sun.com/jsf/composite"
+ xmlns:a4j="http://richfaces.org/a4j">
+ <head>
+ <title>toolBar</title>
+ </head>
+<body>
+
+<composite:interface>
+ <composite:attribute name="items" required="true"/>
+</composite:interface>
+<composite:implementation>
+ <table>
+ <tbody>
+ <a4j:repeat value="#{cc.attrs.items}" var="item">
+ <tr>
+ <td>
+ <h:link value="#{item.name}" outcome="#{item.outcome}" />
+ </td>
+ </tr>
+ </a4j:repeat>
+ </tbody>
+ </table>
+</composite:implementation>
+</body>
+</html>
\ No newline at end of file
Added: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/simpleTable.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/simpleTable.xhtml (rev 0)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/simpleTable.xhtml 2010-05-14 14:17:22 UTC (rev 17052)
@@ -0,0 +1,47 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:tbl="http://richfaces.org/rich">
+
+ <ui:composition>
+ <h:form>
+ <tbl:extendedDataTable frozenColumns="1" value="#{carsBean.allCars}" rows="100" var="car" id="table" clientRows="14" style="width:300px; height:300px;">
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="Make" />
+ </f:facet>
+ <h:outputText value="#{car.make}"/>
+ <f:facet name="footer">
+ remove this also to check
+ </f:facet>
+ </tbl:column>
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="Model" />
+ </f:facet>
+ <h:outputText value="#{car.model}"/>
+ </tbl:column>
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="Price" />
+ </f:facet>
+ <h:outputText value="#{car.price}"/>
+ </tbl:column>
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="Actions" />
+ </f:facet>
+ <a4j:commandLink value="Edit" action="#{carsBean.edit}" render="table"/>
+ <h:outputText value=" " />
+ <a4j:commandLink value="Remove" action="#{carsBean.remove}" render="table"/>
+ </tbl:column>
+ <f:facet name="footer">
+ <h:outputText value="remove footer for test" />
+ </f:facet>
+ </tbl:extendedDataTable>
+ </h:form>
+ </ui:composition>
+</html>
\ No newline at end of file
Added: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/subtables.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/subtables.xhtml (rev 0)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/subtables.xhtml 2010-05-14 14:17:22 UTC (rev 17052)
@@ -0,0 +1,41 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:tbl="http://richfaces.org/rich">
+
+ <ui:composition>
+ <h:form>
+ <tbl:dataTable value="#{carsBean.allCars}" var="car" id="table">
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="Make" />
+ </f:facet>
+ <h:outputText value="#{car.make}"/>
+ </tbl:column>
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="Model" />
+ </f:facet>
+ <h:outputText value="#{car.model}"/>
+ </tbl:column>
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="Price" />
+ </f:facet>
+ <h:outputText value="#{car.price}"/>
+ </tbl:column>
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="Actions" />
+ </f:facet>
+ <a4j:commandLink value="Edit" action="#{carsBean.edit}" render="table"/>
+ <h:outputText value=" " />
+ <a4j:commandLink value="Remove" action="#{carsBean.remove}" render="table"/>
+ </tbl:column>
+ </tbl:dataTable>
+ </h:form>
+ </ui:composition>
+</html>
\ No newline at end of file
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable.xhtml 2010-05-14 12:43:39 UTC (rev 17051)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable.xhtml 2010-05-14 14:17:22 UTC (rev 17052)
@@ -2,16 +2,15 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ui="http://java.sun.com/jsf/facelets">
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:rich="http://java.sun.com/jsf/composite/rich">
<ui:composition template="/templates/main.xhtml">
<ui:define name="body">
- <p>
- </p>
- <fieldset>
- <legend>Table Edit Sample</legend>
- <ui:include src="/richfaces/dataTable/dataTableEdit.xhtml" />
- </fieldset>
+ <rich:toolBar items="#{viewController.tableToolBarItems}" />
+ <p></p>
+ <fieldset><legend>Table Edit Sample</legend> <ui:include
+ src="/richfaces/dataTable/simpleTable.xhtml" /></fieldset>
</ui:define>
</ui:composition>
Added: root/examples/richfaces-showcase/trunk/src/main/webapp/templates/component-sample.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/templates/component-sample.xhtml (rev 0)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/templates/component-sample.xhtml 2010-05-14 14:17:22 UTC (rev 17052)
@@ -0,0 +1,15 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:rich="http://java.sun.com/jsf/composite/rich">
+
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="body">
+
+ <ui:insert/>
+ </ui:define>
+</ui:composition>
+
+</html>
\ No newline at end of file
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml 2010-05-14 12:43:39 UTC (rev 17051)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml 2010-05-14 14:17:22 UTC (rev 17052)
@@ -1,3 +1,4 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
14 years, 6 months
JBoss Rich Faces SVN: r17051 - root/ui-sandbox/tables/trunk/ui/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2010-05-14 08:43:39 -0400 (Fri, 14 May 2010)
New Revision: 17051
Modified:
root/ui-sandbox/tables/trunk/ui/src/main/java/org/richfaces/renderkit/DataTableRenderer.java
Log:
Modified: root/ui-sandbox/tables/trunk/ui/src/main/java/org/richfaces/renderkit/DataTableRenderer.java
===================================================================
--- root/ui-sandbox/tables/trunk/ui/src/main/java/org/richfaces/renderkit/DataTableRenderer.java 2010-05-14 12:24:06 UTC (rev 17050)
+++ root/ui-sandbox/tables/trunk/ui/src/main/java/org/richfaces/renderkit/DataTableRenderer.java 2010-05-14 12:43:39 UTC (rev 17051)
@@ -340,7 +340,6 @@
writer.writeText(function.toScript(), null);
writer.endElement(HTML.SCRIPT_ELEM);
- writer.endElement(HTML.SPAN_ELEM);
}
public String getTableSkinClass() {
14 years, 6 months
JBoss Rich Faces SVN: r17050 - in root/core/trunk/impl/src: test/resources/javascript and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2010-05-14 08:24:06 -0400 (Fri, 14 May 2010)
New Revision: 17050
Modified:
root/core/trunk/impl/src/main/resources/META-INF/resources/richfaces-queue.js
root/core/trunk/impl/src/test/resources/javascript/richfaces-queue-qunit-request.js
Log:
https://jira.jboss.org/jira/browse/RF-7895
https://jira.jboss.org/jira/browse/RF-7898
Modified: root/core/trunk/impl/src/main/resources/META-INF/resources/richfaces-queue.js
===================================================================
--- root/core/trunk/impl/src/main/resources/META-INF/resources/richfaces-queue.js 2010-05-14 12:14:59 UTC (rev 17049)
+++ root/core/trunk/impl/src/main/resources/META-INF/resources/richfaces-queue.js 2010-05-14 12:24:06 UTC (rev 17050)
@@ -50,7 +50,7 @@
richfaces.queue = (function(){
var defaultQueueOptions = {};
- defaultQueueOptions[DEFAULT_QUEUE_ID] = {requestDelay:0, ignoreDupResponse:false, timeout:0};
+ //defaultQueueOptions[DEFAULT_QUEUE_ID] = {requestDelay:0, ignoreDupResponse:false, timeout:0};
var eventHandlers = {};
var QueueEntry = function(queue, source, event, options) {
@@ -131,7 +131,7 @@
onRequestDelayPassed: function() {
this.readyToSubmit = true;
- this.queue.submitFirst();
+ submitFirstEntry.call(this.queue);
},
startTimer: function() {
@@ -144,7 +144,7 @@
if (delay) {
var _this = this;
- this.timer = setTimeout(function() {
+ this.timer = window.setTimeout(function() {
try {
_this.onRequestDelayPassed();
} finally {
@@ -159,7 +159,7 @@
stopTimer: function() {
if (this.timer) {
- clearTimeout(this.timer);
+ window.clearTimeout(this.timer);
this.timer = undefined;
}
},
@@ -195,21 +195,21 @@
log.debug("richfaces.queue: ajax submit error");
lastRequestedEntry = null;
//TODO: what if somebody is going to clear queue on error?
- submitFirst();
+ submitFirstEntry();
};
var onComplete = function (data) {
if (data.type == JSF_EVENT_TYPE && data.status == JSF_EVENT_SUCCESS) { // or JSF_EVENT_COMPLETE will be rather
log.debug("richfaces.queue: ajax submit successfull");
lastRequestedEntry = null;
- submitFirst();
+ submitFirstEntry();
}
};
jsf.ajax.addOnEvent(onComplete);
jsf.ajax.addOnError(onError);
- var submitFirst = function() {
+ var submitFirstEntry = function() {
if (QUEUE_MODE == QUEUE_MODE_PULL && lastRequestedEntry) {
log.debug("richfaces.queue: Waiting for previous submit results");
return;
@@ -231,7 +231,7 @@
// call event handlers
if (o.queueonsubmit) {
- o.queueonsubmit.call(lastRequestedEntry);
+ o.queueonsubmit.call(entry);
}
callEventHandler("onrequestdequeue", entry);
}
@@ -269,6 +269,13 @@
handler2.call(null, entry);
}
}
+
+ var pushEntry = function (entry) {
+ items.push(entry);
+ log.debug("New request added to queue. Queue requestGroupId changed to " + entry.getRequestGroupId());
+ // call event handlers
+ callEventHandler("onrequestqueue", entry);
+ }
return {
/**
@@ -306,7 +313,7 @@
var entry = items[0];
entry.stopTimer();
entry.setReadyToSubmit(true);
- submitFirst();
+ submitFirstEntry();
}
},
@@ -335,6 +342,7 @@
entry.setEventsCount(lastEntry.getEventsCount() + 1);
updateLastEntry(entry);
+ callEventHandler("onrequestqueue", entry);
} else {
log.debug("Last queue entry is not the last anymore. Stopping requestDelay timer and marking entry as ready for submission")
@@ -342,16 +350,12 @@
lastEntry.resetRequestGroupId();
lastEntry.setReadyToSubmit(true);
- items.push(entry);
- log.debug("New request added to queue. Queue requestGroupId changed to " + requestGroupId);
- submitFirst();
+ pushEntry(entry);
+ submitFirstEntry();
}
} else {
- items.push(entry);
- log.debug("New request added to queue.");
+ pushEntry(entry);
}
- // call event handlers
- callEventHandler("onrequestqueue", entry);
// start timer
entry.startTimer();
Modified: root/core/trunk/impl/src/test/resources/javascript/richfaces-queue-qunit-request.js
===================================================================
--- root/core/trunk/impl/src/test/resources/javascript/richfaces-queue-qunit-request.js 2010-05-14 12:14:59 UTC (rev 17049)
+++ root/core/trunk/impl/src/test/resources/javascript/richfaces-queue-qunit-request.js 2010-05-14 12:24:06 UTC (rev 17050)
@@ -3,8 +3,6 @@
var element = document.getElementById("testDiv");
var event = {type:"testevent"};
- var options = {requestDelay:1000};
- var opts = {queueId:"myQueue", param:"value"};
var body = document.getElementsByTagName("body")[0];
@@ -21,11 +19,39 @@
});
// setQueueOptions
- test("setQueueOptions chain", function() {
- expect(1);
- equals(RichFaces.queue.setQueueOptions(), RichFaces.queue);
+ test("setQueueOptions/getQueueOptions - params: id, object", function() {
+ expect(5);
+ equals(RichFaces.queue.setQueueOptions(), RichFaces.queue, " chain");
+ RichFaces.queue.setQueueOptions("testId", {myParam:"hello"});
+
+ var options = RichFaces.queue.getQueueOptions("testId1");
+ equals(typeof options, "object", "getQueueOptions - wrong id");
+ equals(typeof options.myParam, "undefined", "myParam");
+
+ var options1 = RichFaces.queue.getQueueOptions("testId");
+ equals(typeof options1, "object", "getQueueOptions - right id");
+ equals(options1.myParam, "hello", "myParam");
});
+ // setQueueOptions
+ test("setQueueOptions/getQueueOptions - params: object", function() {
+ expect(6);
+ RichFaces.queue.setQueueOptions("testId1", {myParam:"hello1"});
+ RichFaces.queue.setQueueOptions({"testId2": {myParam:"hello2"}, "testId3": {myParam:"hello3"}});
+
+ var options1 = RichFaces.queue.getQueueOptions("testId1");
+ equals(typeof options1, "object");
+ equals(options1.myParam, "hello1", "myParam");
+
+ var options2 = RichFaces.queue.getQueueOptions("testId2");
+ equals(typeof options2, "object");
+ equals(options2.myParam, "hello2", "myParam");
+
+ var options3 = RichFaces.queue.getQueueOptions("testId3");
+ equals(typeof options3, "object");
+ equals(options3.myParam, "hello3", "myParam");
+ });
+
// queue handlers
test("queue event and error handlers", function() {
expect(4);
@@ -35,11 +61,9 @@
equals(typeof jsf.ajax.errorHandlers[0], "function", "error handler is function");
});
- //TODO: add request test here
- //jsf.ajax.request
- test("jsf.ajax.request - ", function() {
- expect(2);
- RichFaces.queue.setQueueOptions(opts.queueId, options);
+ //jsf.ajax.request - parameters test
+ test("jsf.ajax.request - parameters", function() {
+ expect(5);
RichFaces.ajax.jsfRequest = function (source, event, options) {
for (var i=0; i<jsf.ajax.eventHandlers.length;i++) {
@@ -55,12 +79,201 @@
var elements = RichFaces.QUnit.appendDomElements(body,
'<form id="testForm">'+
'<input id="testButton1" type="button" value="hello" onclick="jsf.ajax.request(this,event,{parameters:{key:\'value\'}})"/>'+
- '<input id="testButton2" type="button" value="hello" onclick="jsf.ajax.request()"/>'+
'</table>'+
'</form>');
document.getElementById("testButton1").click({type:"onclick"});
- expect(5);
- //equals(RichFaces.queue.setQueueOptions(), RichFaces.queue);
+ RichFaces.queue.clear();
});
+
+ //jsf.ajax.request - queueId
+ test("jsf.ajax.request - queueId", function() {
+ expect(3);
+
+ RichFaces.ajax.jsfRequest = function (source, event, options) {
+ for (var i=0; i<jsf.ajax.eventHandlers.length;i++) {
+ jsf.ajax.eventHandlers[i]({type:"event", status:"success"});
+ }
+ equals(typeof options.queueId, "undefined", "options.queueId");
+ equals(typeof options.requestGroupId, "undefined", "options.requestGroupId");
+ equals(options.param, "value", "options.param");
+ }
+
+ var elements = RichFaces.QUnit.appendDomElements(body,
+ '<form id="testForm2">'+
+ '<input id="testButton2" type="button" value="hello" onclick="jsf.ajax.request(this,event,{queueId: \'testQueueId1\', param: \'value\'})"/>'+
+ '</table>'+
+ '</form>');
+
+ var options1 = {param:"value1", requestGroupId: 999};
+ RichFaces.queue.setQueueOptions({'testQueueId1': options1});
+ document.getElementById("testButton2").click({type:"onclick"});
+ RichFaces.queue.clear();
+ });
+
+ //jsf.ajax.request - 2 x queueId
+ test("jsf.ajax.request - 2 x queueId", function() {
+ expect(3);
+
+ RichFaces.ajax.jsfRequest = function (source, event, options) {
+ for (var i=0; i<jsf.ajax.eventHandlers.length;i++) {
+ jsf.ajax.eventHandlers[i]({type:"event", status:"success"});
+ }
+ equals(typeof options.queueId, "undefined", "options.queueId");
+ equals(typeof options.requestGroupId, "undefined", "options.requestGroupId");
+ equals(options.param, "newValue", "options.param");
+ }
+
+ var elements = RichFaces.QUnit.appendDomElements(body,
+ '<form id="testForm3">'+
+ '<input id="testButton3" type="button" value="hello" onclick="jsf.ajax.request(this,event,{queueId: \'testQueueId1\', param: \'newValue\'})"/>'+
+ '</table>'+
+ '</form>');
+
+ var options1 = {queueId: 'testQueueId2', param:"value1", requestGroupId: 888};
+ var options2 = {param:"value1", requestGroupId: 777};
+
+ RichFaces.queue.setQueueOptions({'testQueueId1': options1, 'testQueueId2': options2});
+ document.getElementById("testButton3").click({type:"onclick"});
+ RichFaces.queue.clear();
+ });
+
+ //jsf.ajax.request - requestDelay
+ asyncTest("jsf.ajax.request - requestDelay", function() {
+ var time;
+ var newTime;
+ var onTimeOut = function () {
+ expect(1);
+ try {
+ if (typeof newTime == "object") {
+ var timeout = newTime.getTime() - time.getTime();
+ ok((timeout>900 && timeout<1100), timeout);
+ } else {
+ ok(false, "newTime is object");
+ }
+ start();
+ } finally {
+ RichFaces.queue.clear();
+ }
+ }
+ RichFaces.ajax.jsfRequest = function (source, event, options) {
+ for (var i=0; i<jsf.ajax.eventHandlers.length;i++) {
+ jsf.ajax.eventHandlers[i]({type:"event", status:"success"});
+ }
+ newTime = new Date();
+ }
+
+ var elements = RichFaces.QUnit.appendDomElements(body,
+ '<form id="testForm4">'+
+ '<input id="testButton4" type="button" value="hello" onclick="jsf.ajax.request(this,event,{queueId: \'testQueueId1\'})"/>'+
+ '</table>'+
+ '</form>');
+
+ var options1 = {requestDelay: 1000};
+
+ RichFaces.queue.setQueueOptions({'testQueueId1': options1});
+ window.setTimeout(onTimeOut, 2000);
+ time = new Date();
+ document.getElementById("testButton4").click({type:"onclick"});
+ });
+
+ //jsf.ajax.request - equal requestGroupId
+ asyncTest("jsf.ajax.request - equal requestGroupId", function() {
+ var time;
+ var newTime;
+ var param = "";
+ var onTimeOut = function () {
+ expect(2);
+ try {
+ if (typeof newTime == "object") {
+ var timeout = newTime.getTime() - time.getTime();
+ ok((timeout>1400 && timeout<1600), timeout);
+ equals(param, "value2", "options.param");
+ } else {
+ ok(false, "newTime is object");
+ }
+ start();
+ } finally {
+ RichFaces.queue.clear();
+ }
+ }
+ RichFaces.ajax.jsfRequest = function (source, event, options) {
+ for (var i=0; i<jsf.ajax.eventHandlers.length;i++) {
+ jsf.ajax.eventHandlers[i]({type:"event", status:"success"});
+ }
+ newTime = new Date();
+ param = options.param;
+ }
+
+ var elements = RichFaces.QUnit.appendDomElements(body,
+ '<form id="testForm5">'+
+ '<input id="testButton5-1" type="button" value="hello" onclick="jsf.ajax.request(this,event,{queueId: \'testQueueId1\', param: \'value\'})"/>'+
+ '<input id="testButton5-2" type="button" value="hello" onclick="jsf.ajax.request(this,event,{queueId: \'testQueueId1\', param: \'value2\'})"/>'+
+ '</table>'+
+ '</form>');
+
+ var options1 = {requestGroupId: 888, requestDelay:1000};
+
+ RichFaces.queue.setQueueOptions({'testQueueId1': options1});
+ window.setTimeout(onTimeOut, 2000);
+ time = new Date();
+ document.getElementById("testButton5-1").click({type:"onclick"});
+ window.setTimeout(function () {document.getElementById("testButton5-2").click({type:"onclick"});}, 500);
+ });
+
+ //jsf.ajax.request - not equal requestGroupId
+ asyncTest("jsf.ajax.request - not equal requestGroupId", function() {
+ var time;
+ var newTime;
+ var newTime2;
+ var param;
+ var onTimeOut = function () {
+ expect(3);
+ try {
+ if (typeof newTime == "object") {
+ var timeout = newTime.getTime() - time.getTime();
+ ok((timeout>400 && timeout<600), timeout);
+ equals(param, "value2", "options.param");
+ } else {
+ ok(typeof newTime == "object", "newTime is object");
+ }
+ if (typeof newTime2 == "object") {
+ var timeout = newTime2.getTime() - time.getTime();
+ ok((timeout>1400 && timeout<1600), timeout);
+ } else {
+ ok(typeof newTime2 == "object", "newTime2 is object");
+ }
+ start();
+ } finally {
+ RichFaces.queue.clear();
+ }
+ }
+ RichFaces.ajax.jsfRequest = function (source, event, options) {
+ for (var i=0; i<jsf.ajax.eventHandlers.length;i++) {
+ jsf.ajax.eventHandlers[i]({type:"event", status:"success"});
+ }
+ param = options.param;
+ if (typeof newTime != "object") {
+ newTime = new Date();
+ } else {
+ newTime2 = new Date();
+ }
+ }
+
+ var elements = RichFaces.QUnit.appendDomElements(body,
+ '<form id="testForm6">'+
+ '<input id="testButton6-1" type="button" value="hello" onclick="jsf.ajax.request(this,event,{queueId: \'testQueueId1\', param: \'value\'})"/>'+
+ '<input id="testButton6-2" type="button" value="hello" onclick="jsf.ajax.request(this,event,{queueId: \'testQueueId2\', param: \'value2\'})"/>'+
+ '</table>'+
+ '</form>');
+
+ var options1 = {requestGroupId: 888, requestDelay:1000};
+ var options2 = {requestGroupId: 999, requestDelay:1000};
+
+ RichFaces.queue.setQueueOptions({'testQueueId1': options1, 'testQueueId2': options2});
+ window.setTimeout(onTimeOut, 2000);
+ time = new Date();
+ document.getElementById("testButton6-1").click({type:"onclick"});
+ window.setTimeout(function () {document.getElementById("testButton6-2").click({type:"onclick"});}, 500);
+ });
});
\ No newline at end of file
14 years, 6 months
JBoss Rich Faces SVN: r17049 - root/ui-sandbox/tables/trunk/ui/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2010-05-14 08:14:59 -0400 (Fri, 14 May 2010)
New Revision: 17049
Modified:
root/ui-sandbox/tables/trunk/ui/src/main/java/org/richfaces/renderkit/DataTableRenderer.java
Log:
add richfaces-base-component.js
Modified: root/ui-sandbox/tables/trunk/ui/src/main/java/org/richfaces/renderkit/DataTableRenderer.java
===================================================================
--- root/ui-sandbox/tables/trunk/ui/src/main/java/org/richfaces/renderkit/DataTableRenderer.java 2010-05-14 12:14:13 UTC (rev 17048)
+++ root/ui-sandbox/tables/trunk/ui/src/main/java/org/richfaces/renderkit/DataTableRenderer.java 2010-05-14 12:14:59 UTC (rev 17049)
@@ -42,10 +42,10 @@
import org.richfaces.component.UIDataTable;
import org.richfaces.component.UIDataTableBase;
-@ResourceDependencies( { @ResourceDependency(library = "javax.faces", name = "jsf-uncompressed.js"),
+@ResourceDependencies( { @ResourceDependency(library = "javax.faces", name = "jsf.js"),
@ResourceDependency(name = "jquery.js"), @ResourceDependency(name = "richfaces.js"),
@ResourceDependency(name= "richfaces-event.js"), @ResourceDependency(name = "datatable.js"),
- @ResourceDependency(name = "table.css") })
+ @ResourceDependency(name = "richfaces-base-component.js"), @ResourceDependency(name = "table.css") })
public class DataTableRenderer extends AbstractTableRenderer {
public void encodeTableStructure(ResponseWriter writer, FacesContext context, UIDataTableBase dataTable)
14 years, 6 months
JBoss Rich Faces SVN: r17048 - in root/ui-sandbox/datascroller/trunk/ui/src/main/java/org/richfaces: event and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2010-05-14 08:14:13 -0400 (Fri, 14 May 2010)
New Revision: 17048
Modified:
root/ui-sandbox/datascroller/trunk/ui/src/main/java/org/richfaces/component/UIDataScroller.java
root/ui-sandbox/datascroller/trunk/ui/src/main/java/org/richfaces/event/DataTablePreRenderListener.java
Log:
remove override annotations
Modified: root/ui-sandbox/datascroller/trunk/ui/src/main/java/org/richfaces/component/UIDataScroller.java
===================================================================
--- root/ui-sandbox/datascroller/trunk/ui/src/main/java/org/richfaces/component/UIDataScroller.java 2010-05-14 09:09:18 UTC (rev 17047)
+++ root/ui-sandbox/datascroller/trunk/ui/src/main/java/org/richfaces/component/UIDataScroller.java 2010-05-14 12:14:13 UTC (rev 17048)
@@ -402,14 +402,12 @@
return COMPONENT_FAMILY;
}
- @Override
public Object getIterationState() {
return this.page;
}
- @Override
+
public void setIterationState(Object state) {
this.page = (Integer) state;
}
-
}
Modified: root/ui-sandbox/datascroller/trunk/ui/src/main/java/org/richfaces/event/DataTablePreRenderListener.java
===================================================================
--- root/ui-sandbox/datascroller/trunk/ui/src/main/java/org/richfaces/event/DataTablePreRenderListener.java 2010-05-14 09:09:18 UTC (rev 17047)
+++ root/ui-sandbox/datascroller/trunk/ui/src/main/java/org/richfaces/event/DataTablePreRenderListener.java 2010-05-14 12:14:13 UTC (rev 17048)
@@ -47,7 +47,6 @@
private static final Logger LOG = RichfacesLogger.COMPONENTS.getLogger();
- @Override
public boolean isListenerForSource(Object source) {
return ((source instanceof UIDataAdaptor) || (source instanceof UIData));
}
@@ -102,7 +101,6 @@
return activeComponent;
}
- @Override
public void processEvent(SystemEvent event) throws AbortProcessingException {
UIComponent dataTable = (UIComponent) event.getSource();
List<UIDataScroller> dataScrollers = DataScrollerUtils.findDataScrollers(dataTable);
14 years, 6 months
JBoss Rich Faces SVN: r17047 - in root: ui/core/trunk/api and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-05-14 05:09:18 -0400 (Fri, 14 May 2010)
New Revision: 17047
Modified:
root/dist/trunk/richfaces-examples.xml
root/ui/core/trunk/api/
Log:
https://jira.jboss.org/jira/browse/RFPL-599
Modified: root/dist/trunk/richfaces-examples.xml
===================================================================
--- root/dist/trunk/richfaces-examples.xml 2010-05-14 09:02:23 UTC (rev 17046)
+++ root/dist/trunk/richfaces-examples.xml 2010-05-14 09:09:18 UTC (rev 17047)
@@ -21,7 +21,7 @@
<includeSubModules>true</includeSubModules>
<includes>
<!--include>org.richfaces.examples:components</include -->
- <include>org.richfaces.examples:richfaces-demo</include>
+ <include>org.richfaces.examples:richfaces-showcase</include>
<!--<include>org.richfaces.examples:photoalbum</include>-->
</includes>
Property changes on: root/ui/core/trunk/api
___________________________________________________________________
Name: svn:ignore
+ target
14 years, 6 months