JBoss Rich Faces SVN: r21095 - modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2011-01-19 12:55:59 -0500 (Wed, 19 Jan 2011)
New Revision: 21095
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java
Log:
fixed attributes - do not try select option which is already selected
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java 2011-01-19 17:49:38 UTC (rev 21094)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java 2011-01-19 17:55:59 UTC (rev 21095)
@@ -106,6 +106,10 @@
applyRadio(locator);
}
} else if ("select".equals(inputType)) {
+ String curValue = selenium.getValue(locator);
+ if (valueAsString.equals(curValue)) {
+ return;
+ }
applySelect(locator, valueAsString);
}
}
13 years, 11 months
JBoss Rich Faces SVN: r21094 - modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2011-01-19 12:49:38 -0500 (Wed, 19 Jan 2011)
New Revision: 21094
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelect.java
Log:
* fixed one test
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelect.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelect.java 2011-01-19 17:43:16 UTC (rev 21093)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelect.java 2011-01-19 17:49:38 UTC (rev 21094)
@@ -1,6 +1,6 @@
/*******************************************************************************
* JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc. and individual contributors
+ * Copyright 2010-2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -523,13 +523,14 @@
selenium.click(select);
selenium.click(options.format(10));
- assertEquals(selenium.getText(label), "Click here to edit", "Label should contain default value.");
+ assertFalse(selenium.isDisplayed(label), "Label should not be displayed.");
assertFalse(selenium.isDisplayed(popup), "Popup should not be displayed.");
selenium.click(cancelButton);
+ waitGui.failWith("Default label is not displayed.").until(isDisplayed.locator(label));
+ assertEquals(selenium.getText(label), "Click here to edit", "Label should contain default value.");
if (selenium.isElementPresent(popup)) {
assertFalse(selenium.isDisplayed(popup), "Popup should not be displayed.");
}
- assertEquals(selenium.getText(label), "Click here to edit", "Label should contain default value.");
}
}
13 years, 11 months
JBoss Rich Faces SVN: r21093 - in modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest: richAutocomplete and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2011-01-19 12:43:16 -0500 (Wed, 19 Jan 2011)
New Revision: 21093
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/model/Autocomplete.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richAutocomplete/TestAutocompleteByKeys.java
Log:
rich:autocomplete - added issue tracking for RF-10254
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/model/Autocomplete.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/model/Autocomplete.java 2011-01-19 17:42:35 UTC (rev 21092)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/model/Autocomplete.java 2011-01-19 17:43:16 UTC (rev 21093)
@@ -158,10 +158,10 @@
}
public boolean isCompletionVisible() {
- if (!selenium.isElementPresent(option)) {
+ if (!selenium.isElementPresent(items)) {
return false;
}
- return selenium.isVisible(option);
+ return selenium.isVisible(items);
}
public void waitForCompletionVisible() {
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richAutocomplete/TestAutocompleteByKeys.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richAutocomplete/TestAutocompleteByKeys.java 2011-01-19 17:42:35 UTC (rev 21092)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richAutocomplete/TestAutocompleteByKeys.java 2011-01-19 17:43:16 UTC (rev 21093)
@@ -22,6 +22,7 @@
package org.richfaces.tests.metamer.ftest.richAutocomplete;
import static org.jboss.test.selenium.RequestTypeModelGuard.guardXhr;
+import static org.jboss.test.selenium.RequestTypeModelGuard.guardNoRequest;
import static org.jboss.test.selenium.utils.URLUtils.buildUrl;
import static org.testng.Assert.assertEquals;
@@ -32,6 +33,7 @@
import org.richfaces.tests.metamer.bean.Model;
import org.richfaces.tests.metamer.ftest.AbstractMetamerTest;
import org.richfaces.tests.metamer.ftest.annotations.Inject;
+import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.richfaces.tests.metamer.ftest.annotations.Use;
import org.richfaces.tests.metamer.ftest.model.Autocomplete;
import org.richfaces.tests.metamer.model.Capital;
@@ -42,118 +44,115 @@
* @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
* @version $Revision$
*/
+@IssueTracking("https://issues.jboss.org/browse/RF-10254")
public class TestAutocompleteByKeys extends AbstractMetamerTest {
- AutocompleteAttributes attributes = new AutocompleteAttributes();
- Autocomplete autocomplete = new Autocomplete();
+ AutocompleteAttributes attributes = new AutocompleteAttributes();
+ Autocomplete autocomplete = new Autocomplete();
- @Override
- public URL getTestUrl() {
- return buildUrl(contextPath,
- "faces/components/richAutocomplete/autocomplete.xhtml");
- }
+ @Override
+ public URL getTestUrl() {
+ return buildUrl(contextPath, "faces/components/richAutocomplete/autocomplete.xhtml");
+ }
- @Inject
- @Use(booleans = { true, false })
- Boolean autofill;
+ @Inject
+ @Use(booleans = { true, false })
+ Boolean autofill = false;
- @Inject
- @Use(booleans = { true, false })
- Boolean selectFirst;
+ @Inject
+ @Use(booleans = { true, false })
+ Boolean selectFirst = false;
- List<Capital> capitals = Model.unmarshallCapitals();
+ List<Capital> capitals = Model.unmarshallCapitals();
- StringBuilder partialInput;
+ StringBuilder partialInput;
- @BeforeMethod
- public void prepareProperties() {
- attributes.setAutofill(autofill);
- attributes.setSelectFirst(selectFirst);
- if (autofill == null) {
- autofill = false;
- }
- if (selectFirst == null) {
- selectFirst = false;
- }
- }
+ @BeforeMethod
+ public void prepareProperties() {
+ attributes.setAutofill(autofill);
+ attributes.setSelectFirst(selectFirst);
+ if (autofill == null) {
+ autofill = false;
+ }
+ if (selectFirst == null) {
+ selectFirst = false;
+ }
+ }
- @Test
- public void testTypingPrefixAndThenConfirm() {
- assertCompletionVisible(false);
- typePrefix("ala");
- assertCompletionVisible(true);
- confirm();
- assertCompletionVisible(false);
- }
+ @Test
+ public void testTypingPrefixAndThenConfirm() {
+ assertCompletionVisible(false);
+ typePrefix("ala");
+ assertCompletionVisible(true);
+ confirm();
+ assertCompletionVisible(false);
+ }
- @Test
- public void testTypingPrefixAndThenDeleteAll() {
- assertCompletionVisible(false);
- typePrefix("ala");
- assertCompletionVisible(true);
- deleteAll();
- assertCompletionVisible(true);
- }
+ @Test
+ public void testTypingPrefixAndThenDeleteAll() {
+ assertCompletionVisible(false);
+ typePrefix("ala");
+ assertCompletionVisible(true);
+ deleteAll();
+ assertCompletionVisible(true);
+ typePrefix("ala");
+ assertCompletionVisible(true);
+ }
- private void assertCompletionVisible(boolean assertCompletionVisible) {
- assertEquals(autocomplete.isCompletionVisible(),
- assertCompletionVisible);
- }
+ private void assertCompletionVisible(boolean assertCompletionVisible) {
+ assertEquals(autocomplete.isCompletionVisible(), assertCompletionVisible);
+ }
- public void confirm() {
- autocomplete.confirmByKeys();
- autocomplete.waitForCompletionVisible();
- }
+ public void confirm() {
+ autocomplete.confirmByKeys();
+ autocomplete.waitForCompletionVisible();
+ }
- public void deleteAll() {
- partialInput = new StringBuilder();
+ public void deleteAll() {
+ partialInput = new StringBuilder();
- autocomplete.textSelectAll();
- guardXhr(autocomplete).pressBackspace();
+ autocomplete.textSelectAll();
+ guardNoRequest(autocomplete).pressBackspace();
- assertEquals(autocomplete.getInputText(), getExpectedStateForPrefix());
- assertEquals(autocomplete.getSelectedOptionIndex(),
- getExpectedSelectedOptionIndex());
- }
+ assertEquals(autocomplete.getInputText(), getExpectedStateForPrefix());
+ assertEquals(autocomplete.getSelectedOptionIndex(), getExpectedSelectedOptionIndex());
+ }
- public void typePrefix(String wholeInput) {
- partialInput = new StringBuilder(autocomplete.getInputText());
+ public void typePrefix(String wholeInput) {
+ partialInput = new StringBuilder(autocomplete.getInputText());
- for (int i = 0; i < wholeInput.length(); i++) {
- String chr = String.valueOf(wholeInput.charAt(i));
+ for (int i = 0; i < wholeInput.length(); i++) {
+ String chr = String.valueOf(wholeInput.charAt(i));
- guardXhr(autocomplete).typeKeys(chr);
- partialInput.append(chr);
+ guardXhr(autocomplete).typeKeys(chr);
+ partialInput.append(chr);
- assertEquals(autocomplete.getInputText(),
- getExpectedStateForPrefix());
- assertEquals(autocomplete.getSelectedOptionIndex(),
- getExpectedSelectedOptionIndex());
- }
- }
+ assertEquals(autocomplete.getInputText(), getExpectedStateForPrefix());
+ assertEquals(autocomplete.getSelectedOptionIndex(), getExpectedSelectedOptionIndex());
+ }
+ }
- public String getExpectedStateForPrefix() {
- if (selectFirst && autofill && partialInput.length() > 0) {
- return getStatesByPrefix(partialInput.toString()).get(0)
- .toLowerCase();
- }
+ public String getExpectedStateForPrefix() {
+ if (selectFirst && autofill && partialInput.length() > 0) {
+ return getStatesByPrefix(partialInput.toString()).get(0).toLowerCase();
+ }
- return partialInput.toString();
- }
+ return partialInput.toString();
+ }
- public int getExpectedSelectedOptionIndex() {
- return (selectFirst) ? 0 : -1;
- }
+ public int getExpectedSelectedOptionIndex() {
+ return (selectFirst) ? 0 : -1;
+ }
- public List<String> getStatesByPrefix(String prefix) {
- List<String> states = new LinkedList<String>();
+ public List<String> getStatesByPrefix(String prefix) {
+ List<String> states = new LinkedList<String>();
- for (Capital cap : capitals) {
- if (cap.getState().toLowerCase().startsWith(prefix)) {
- states.add(cap.getState());
- }
- }
+ for (Capital cap : capitals) {
+ if (cap.getState().toLowerCase().startsWith(prefix)) {
+ states.add(cap.getState());
+ }
+ }
- return states;
- }
+ return states;
+ }
}
13 years, 11 months
JBoss Rich Faces SVN: r21092 - in modules/tests/metamer/trunk: ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jRepeat and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2011-01-19 12:42:35 -0500 (Wed, 19 Jan 2011)
New Revision: 21092
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/matrix.xhtml
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jRepeat/TestMatrix.java
Log:
a4j:repeat - Matrix sample - removed resolved issue tracking - fixed the sample with rerendering also the inputs
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/matrix.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/matrix.xhtml 2011-01-19 17:41:40 UTC (rev 21091)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/matrix.xhtml 2011-01-19 17:42:35 UTC (rev 21092)
@@ -57,15 +57,15 @@
</h:inputText>
<h:commandLink id="clearLink" action="#{cell.clearValueAction}" value="C">
- <a4j:ajax render="#{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput #{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
+ <a4j:ajax render="valueInput #{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput #{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
</h:commandLink>
<h:outputText value=" / " />
<h:commandLink id="increaseLink" action="#{cell.increaseValueAction}" value="+">
- <a4j:ajax render="#{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput #{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
+ <a4j:ajax render="valueInput #{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput #{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
</h:commandLink>
<h:outputText value=" / " />
<h:commandLink id="decreaseLink" action="#{cell.decreaseValueAction}" value="-">
- <a4j:ajax render="#{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput #{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
+ <a4j:ajax render="valueInput #{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput #{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
</h:commandLink>
</h:panelGroup></td>
</a4j:repeat>
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jRepeat/TestMatrix.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jRepeat/TestMatrix.java 2011-01-19 17:41:40 UTC (rev 21091)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jRepeat/TestMatrix.java 2011-01-19 17:42:35 UTC (rev 21092)
@@ -33,7 +33,6 @@
import org.jboss.test.selenium.locator.JQueryLocator;
import org.richfaces.tests.metamer.ftest.AbstractMetamerTest;
-import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
@@ -41,7 +40,6 @@
* @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
* @version $Revision$
*/
-@IssueTracking("https://issues.jboss.org/browse/RF-9375")
public class TestMatrix extends AbstractMetamerTest {
Vector<Vector<Integer>> matrix;
13 years, 11 months
JBoss Rich Faces SVN: r21091 - modules/tests/metamer/trunk/application/src/main/webapp/components/richTree.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2011-01-19 12:41:40 -0500 (Wed, 19 Jan 2011)
New Revision: 21091
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richTree/simple.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richTree/treeAdaptors.xhtml
Log:
rich:tree - loading facet renamed to handleLoading
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richTree/simple.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richTree/simple.xhtml 2011-01-19 17:36:55 UTC (rev 21090)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richTree/simple.xhtml 2011-01-19 17:41:40 UTC (rev 21091)
@@ -102,7 +102,7 @@
labelClass="#{richTreeNodeBean.attributes[0]['labelClass'].value}"
styleClass="#{richTreeNodeBean.attributes[0]['styleClass'].value}"
>
- <f:facet name="loading">
+ <f:facet name="handleLoading">
<h:graphicImage value="/resources/images/loading.gif" rendered="#{richTreeBean.testLoadingFacet}" />
</f:facet>
#{node.name}
@@ -119,7 +119,7 @@
labelClass="#{richTreeNodeBean.attributes[1]['labelClass'].value}"
styleClass="#{richTreeNodeBean.attributes[1]['styleClass'].value}"
>
- <f:facet name="loading">
+ <f:facet name="handleLoading">
<h:graphicImage value="/resources/images/loading.gif" rendered="#{richTreeBean.testLoadingFacet}" />
</f:facet>
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richTree/treeAdaptors.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richTree/treeAdaptors.xhtml 2011-01-19 17:36:55 UTC (rev 21090)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richTree/treeAdaptors.xhtml 2011-01-19 17:41:40 UTC (rev 21091)
@@ -102,7 +102,7 @@
iconClass="#{richTreeNodeBean.attributes[0]['iconClass'].value}"
labelClass="#{richTreeNodeBean.attributes[0]['labelClass'].value}"
styleClass="#{richTreeNodeBean.attributes[0]['styleClass'].value}">
- <f:facet name="loading">
+ <f:facet name="handleLoading">
<h:graphicImage value="/resources/images/loading.gif" rendered="#{richTreeBean.testLoadingFacet}" />
</f:facet>
<a4j:outputPanel id="panel">
@@ -141,7 +141,7 @@
labelClass="#{richTreeNodeBean.attributes[1]['labelClass'].value}"
styleClass="#{richTreeNodeBean.attributes[1]['styleClass'].value}"
>
- <f:facet name="loading">
+ <f:facet name="handleLoading">
<h:graphicImage value="/resources/images/loading.gif" rendered="#{richTreeBean.testLoadingFacet}" />
</f:facet>
#{node.label}
13 years, 11 months
JBoss Rich Faces SVN: r21090 - in trunk: examples/core-demo/src/main/java/org/richfaces/demo and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2011-01-19 12:36:55 -0500 (Wed, 19 Jan 2011)
New Revision: 21090
Added:
trunk/examples/core-demo/src/main/java/org/richfaces/demo/QueueBean.java
Modified:
trunk/core/impl/src/main/resources/META-INF/resources/richfaces-queue.js
trunk/examples/core-demo/src/main/webapp/queue.xhtml
Log:
RF-9289
Modified: trunk/core/impl/src/main/resources/META-INF/resources/richfaces-queue.js
===================================================================
--- trunk/core/impl/src/main/resources/META-INF/resources/richfaces-queue.js 2011-01-19 17:33:54 UTC (rev 21089)
+++ trunk/core/impl/src/main/resources/META-INF/resources/richfaces-queue.js 2011-01-19 17:36:55 UTC (rev 21090)
@@ -34,7 +34,13 @@
jsf.ajax.request = function request(source, event, options) {
richfaces.queue.push(source, event, options);
};
+
+ richfaces.ajax.jsfResponse = jsf.ajax.response;
+ jsf.ajax.response = function request(request, context) {
+ richfaces.queue.response(request, context);
+ };
+
var QUEUE_MODE_PULL = 'pull';
var QUEUE_MODE_PUSH = 'push';
var QUEUE_MODE = QUEUE_MODE_PULL;
@@ -119,7 +125,7 @@
};
$.extend(QueueEntry.prototype, {
- // now unused functions: isIgnoreDupResponses, ondrop, clearEntry
+ // now unused functions: ondrop, clearEntry
isIgnoreDupResponses: function() {
return this.queueOptions.ignoreDupResponses;
},
@@ -381,6 +387,16 @@
},
+ response: function (request, context) {
+ var lastEntry = getLastEntry();
+ if (!lastEntry || !lastRequestedEntry.isIgnoreDupResponses() || lastRequestedEntry.getRequestGroupId() != lastEntry.getRequestGroupId()) {
+ richfaces.ajax.jsfResponse(request, context);
+ } else {
+ lastRequestedEntry = null;
+ submitFirstEntry();
+ }
+ },
+
/**
* Remove all QueueEntry from the queue
* @function
Added: trunk/examples/core-demo/src/main/java/org/richfaces/demo/QueueBean.java
===================================================================
--- trunk/examples/core-demo/src/main/java/org/richfaces/demo/QueueBean.java (rev 0)
+++ trunk/examples/core-demo/src/main/java/org/richfaces/demo/QueueBean.java 2011-01-19 17:36:55 UTC (rev 21090)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.richfaces.demo;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+
+
+/**
+ * @author Konstantin Mishin
+ *
+ */
+@ManagedBean
+@SessionScoped
+public class QueueBean {
+
+ private int counter;
+
+ public void increment() throws InterruptedException {
+ Thread.sleep(2000);
+ counter++;
+ }
+
+ public void reset() {
+ counter = 0;
+ }
+
+ public int getCounter() {
+ return counter;
+ }
+}
Modified: trunk/examples/core-demo/src/main/webapp/queue.xhtml
===================================================================
--- trunk/examples/core-demo/src/main/webapp/queue.xhtml 2011-01-19 17:33:54 UTC (rev 21089)
+++ trunk/examples/core-demo/src/main/webapp/queue.xhtml 2011-01-19 17:36:55 UTC (rev 21090)
@@ -9,10 +9,14 @@
<h:head>
</h:head>
<h:body>
- <a4j:queue />
-
+ <a4j:queue ignoreDupResponses="true"/>
<h:form>
- <h:commandLink value="Common link" />
+ <a4j:commandLink value="Increment" action="#{queueBean.increment}" render="out"/>
+ <br />
+ <a4j:commandLink value="Reset" action="#{queueBean.reset}" render="out" />
+ <br />
+ <h:outputText value="Counter:" />
+ <h:outputText id="out" value="#{queueBean.counter}"/>
</h:form>
</h:body>
</f:view>
13 years, 11 months
JBoss Rich Faces SVN: r21089 - in modules/tests/metamer/trunk: application/src/main/webapp/components/richPopupPanel and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2011-01-19 12:33:54 -0500 (Wed, 19 Jan 2011)
New Revision: 21089
Removed:
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/A4JParamBean.properties
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/A4JRepeatBean.properties
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichDataGridBean.properties
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichPanelBean.properties
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/outsideForm.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/simple.xhtml
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richAccordion/TestRichAccordion.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarAttributes.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSlider/TestRichSlider.java
Log:
* removed unnecessary properties files
* added style and styleClass to popup panel samples
* fixed one test for accordion
* added issue tracking info to tests
Deleted: modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/A4JParamBean.properties
===================================================================
Deleted: modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/A4JRepeatBean.properties
===================================================================
Deleted: modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichDataGridBean.properties
===================================================================
Deleted: modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichPanelBean.properties
===================================================================
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/list.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/list.xhtml 2011-01-19 16:43:04 UTC (rev 21088)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/list.xhtml 2011-01-19 17:33:54 UTC (rev 21089)
@@ -5,7 +5,7 @@
<!--
JBoss, Home of Professional Open Source
-Copyright 2010, Red Hat, Inc. and individual contributors
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
by the @authors tag. See the copyright.txt in the distribution for a
full listing of individual contributors.
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/outsideForm.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/outsideForm.xhtml 2011-01-19 16:43:04 UTC (rev 21088)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/outsideForm.xhtml 2011-01-19 17:33:54 UTC (rev 21089)
@@ -7,7 +7,7 @@
<!--
JBoss, Home of Professional Open Source
-Copyright 2010, Red Hat, Inc. and individual contributors
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
by the @authors tag. See the copyright.txt in the distribution for a
full listing of individual contributors.
@@ -82,6 +82,8 @@
shadowDepth="#{richPopupPanelBean.attributes['shadowDepth'].value}"
shadowOpacity="#{richPopupPanelBean.attributes['shadowOpacity'].value}"
show="#{richPopupPanelBean.attributes['show'].value}"
+ style="#{richPopupPanelBean.attributes['style'].value}"
+ styleClass="#{richPopupPanelBean.attributes['styleClass'].value}"
top="#{richPopupPanelBean.attributes['top'].value}"
trimOverlayedElements="#{richPopupPanelBean.attributes['trimOverlayedElements'].value}"
visualOptions="#{richPopupPanelBean.attributes['visualOptions'].value}"
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/simple.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/simple.xhtml 2011-01-19 16:43:04 UTC (rev 21088)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/simple.xhtml 2011-01-19 17:33:54 UTC (rev 21089)
@@ -6,7 +6,7 @@
<!--
JBoss, Home of Professional Open Source
-Copyright 2010, Red Hat, Inc. and individual contributors
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
by the @authors tag. See the copyright.txt in the distribution for a
full listing of individual contributors.
@@ -80,6 +80,8 @@
shadowDepth="#{richPopupPanelBean.attributes['shadowDepth'].value}"
shadowOpacity="#{richPopupPanelBean.attributes['shadowOpacity'].value}"
show="#{richPopupPanelBean.attributes['show'].value}"
+ style="#{richPopupPanelBean.attributes['style'].value}"
+ styleClass="#{richPopupPanelBean.attributes['styleClass'].value}"
top="#{richPopupPanelBean.attributes['top'].value}"
trimOverlayedElements="#{richPopupPanelBean.attributes['trimOverlayedElements'].value}"
visualOptions="#{richPopupPanelBean.attributes['visualOptions'].value}"
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richAccordion/TestRichAccordion.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richAccordion/TestRichAccordion.java 2011-01-19 16:43:04 UTC (rev 21088)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richAccordion/TestRichAccordion.java 2011-01-19 17:33:54 UTC (rev 21089)
@@ -1,6 +1,6 @@
/*******************************************************************************
* JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc. and individual contributors
+ * Copyright 2010-2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -417,11 +417,11 @@
assertFalse(selenium.isAttributePresent(attribute), "Attribute style should not be present.");
// width = 50%
- selenium.type(pjq("input[type=text][id$=widthInput]"), "50%");
+ selenium.type(pjq("input[type=text][id$=widthInput]"), "356px");
selenium.waitForPageToLoad(TIMEOUT);
assertTrue(selenium.isAttributePresent(attribute), "Attribute style should be present.");
String value = selenium.getStyle(accordion, CssProperty.WIDTH);
- assertEquals(value, "50%", "Attribute width");
+ assertEquals(value, "356px", "Attribute width");
}
}
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarAttributes.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarAttributes.java 2011-01-19 16:43:04 UTC (rev 21088)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarAttributes.java 2011-01-19 17:33:54 UTC (rev 21089)
@@ -1,6 +1,6 @@
/*******************************************************************************
* JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc. and individual contributors
+ * Copyright 2010-2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -190,6 +190,7 @@
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RF-10255")
public void testButtonIconDisabled() {
selenium.click(pjq("input[name$=disabledInput][value=true]"));
selenium.waitForPageToLoad();
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSlider/TestRichSlider.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSlider/TestRichSlider.java 2011-01-19 16:43:04 UTC (rev 21088)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSlider/TestRichSlider.java 2011-01-19 17:33:54 UTC (rev 21089)
@@ -524,6 +524,7 @@
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RF-9947")
public void testRendered() {
selenium.click(pjq("input[type=radio][name$=renderedInput][value=false]"));
selenium.waitForPageToLoad();
13 years, 11 months
JBoss Rich Faces SVN: r21088 - trunk/ui/dnd/ui/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2011-01-19 11:43:04 -0500 (Wed, 19 Jan 2011)
New Revision: 21088
Modified:
trunk/ui/dnd/ui/src/main/resources/META-INF/resources/org.richfaces/dnd-draggable.js
trunk/ui/dnd/ui/src/main/resources/META-INF/resources/org.richfaces/dnd-droppable.js
trunk/ui/dnd/ui/src/main/resources/META-INF/resources/org.richfaces/indicator.ecss
Log:
RF-10088 dragIndicator enhancements: rf-* classes should be applied to default indicator also if possible.
Modified: trunk/ui/dnd/ui/src/main/resources/META-INF/resources/org.richfaces/dnd-draggable.js
===================================================================
--- trunk/ui/dnd/ui/src/main/resources/META-INF/resources/org.richfaces/dnd-draggable.js 2011-01-19 16:36:40 UTC (rev 21087)
+++ trunk/ui/dnd/ui/src/main/resources/META-INF/resources/org.richfaces/dnd-draggable.js 2011-01-19 16:43:04 UTC (rev 21088)
@@ -9,11 +9,20 @@
(function ($, rf) {
rf.ui = rf.ui || {};
+
+ var defaultIndicatorClasses = {
+ rejectClass : "rf-ind-rejt",
+ acceptClass : "rf-ind-acpt",
+ draggingClass : "rf-ind-drag"
+ };
rf.ui.Draggable = function(id, options) {
this.id = id;
this.options = options;
+ this.namespace = this.namespace || "."
+ + rf.Event.createNamespace(this.name, this.id);
+
this.dragElement = $(document.getElementById(this.options.parentId));
this.dragElement.draggable();
@@ -61,6 +70,8 @@
var indicator = rf.$(this.options.indicator);
if(indicator) {
ui.helper.addClass(indicator.draggingClass());
+ } else {
+ ui.helper.addClass(defaultIndicatorClasses.draggingClass);
}
}
this.__clearDraggableCss(ui.helper);
Modified: trunk/ui/dnd/ui/src/main/resources/META-INF/resources/org.richfaces/dnd-droppable.js
===================================================================
--- trunk/ui/dnd/ui/src/main/resources/META-INF/resources/org.richfaces/dnd-droppable.js 2011-01-19 16:36:40 UTC (rev 21087)
+++ trunk/ui/dnd/ui/src/main/resources/META-INF/resources/org.richfaces/dnd-droppable.js 2011-01-19 16:43:04 UTC (rev 21088)
@@ -1,89 +1,114 @@
/*
* code review by Pavel Yaschenko
*
- * No event's unbindings when component would be destroyed
- * Hint: easy way to unbind - use namespaces when bind event handlers
+ * No event's unbindings when component would be destroyed Hint: easy way to
+ * unbind - use namespaces when bind event handlers
*
*/
-(function ($, rf) {
-
+(function($, rf) {
+
rf.ui = rf.ui || {};
-
- rf.ui.Droppable = function(id, options) {
+
+ var defaultIndicatorClasses = {
+ rejectClass : "rf-ind-rejt",
+ acceptClass : "rf-ind-acpt",
+ draggingClass : "rf-ind-drag"
+ };
+
+ rf.ui.Droppable = function(id, options) {
this.options = options;
this.id = id;
-
+
this.dropElement = $(document.getElementById(this.options.parentId));
- this.dropElement.droppable({addClasses: false});
+ this.dropElement.droppable({
+ addClasses : false
+ });
this.dropElement.data("init", true);
this.dropElement.bind('drop', $.proxy(this.drop, this));
this.dropElement.bind('dropover', $.proxy(this.dropover, this));
this.dropElement.bind('dropout', $.proxy(this.dropout, this));
};
- $.extend(rf.ui.Droppable.prototype, ( function () {
- return {
- drop: function(e, ui) {
- if(this.accept(ui.draggable)) {
- this.__callAjax(e, ui);
- }
-
- var dragIndicatorObj = rf.$(ui.helper.attr("id"));
- if(dragIndicatorObj) {
+ $.extend(rf.ui.Droppable.prototype, (function() {
+ return {
+ drop : function(e, ui) {
+ if (this.accept(ui.draggable)) {
+ this.__callAjax(e, ui);
+ }
+
+ var dragIndicatorObj = rf.$(ui.helper.attr("id"));
+ if (dragIndicatorObj) {
+ ui.helper.removeClass(dragIndicatorObj.acceptClass());
+ ui.helper.removeClass(dragIndicatorObj.rejectClass());
+ } else {
+ ui.helper.removeClass(defaultIndicatorClasses.acceptClass);
+ ui.helper.removeClass(defaultIndicatorClasses.rejectClass);
+ }
+ },
+
+ dropover : function(event, ui) {
+ var draggable = ui.draggable;
+ var dragIndicatorObj = rf.$(ui.helper.attr("id"));
+ if (dragIndicatorObj) {
+ if (this.accept(draggable)) {
+ ui.helper.removeClass(dragIndicatorObj.rejectClass());
+ ui.helper.addClass(dragIndicatorObj.acceptClass());
+ } else {
ui.helper.removeClass(dragIndicatorObj.acceptClass());
- ui.helper.removeClass(dragIndicatorObj.rejectClass());
+ ui.helper.addClass(dragIndicatorObj.rejectClass());
}
- },
-
- dropover: function(event, ui) {
- var draggable = ui.draggable;
- var dragIndicatorObj = rf.$(ui.helper.attr("id"));
- if(dragIndicatorObj) {
- if(this.accept(draggable)) {
- ui.helper.removeClass(dragIndicatorObj.rejectClass());
- ui.helper.addClass(dragIndicatorObj.acceptClass());
- } else {
- ui.helper.removeClass(dragIndicatorObj.acceptClass());
- ui.helper.addClass(dragIndicatorObj.rejectClass());
- }
+ } else {
+ if (this.accept(draggable)) {
+ ui.helper.removeClass(defaultIndicatorClasses.rejectClass);
+ ui.helper.addClass(defaultIndicatorClasses.acceptClass);
+ } else {
+ ui.helper.removeClass(defaultIndicatorClasses.acceptClass);
+ ui.helper.addClass(defaultIndicatorClasses.rejectClass);
}
- },
-
- dropout: function(event, ui) {
- var draggable = ui.draggable;
- var dragIndicatorObj = rf.$(ui.helper.attr("id"));
- if(dragIndicatorObj) {
- ui.helper.removeClass(dragIndicatorObj.acceptClass());
- ui.helper.removeClass(dragIndicatorObj.rejectClass());
- }
- },
-
- accept: function(draggable) {
- // since acceptedTypes is optional it could be null.
- // In this case all types are accepted
- if(!this.options.acceptedTypes) return true;
+ }
+ },
- var accept;
- var acceptType = draggable.data("type");
- if(acceptType) {
- $.each(this.options.acceptedTypes, function() {
- accept = (acceptType == this); return !(accept);
- });
- }
- return accept;
- },
-
- __callAjax: function(e, ui){
- if(ui.draggable) {
- var dragSource = ui.draggable.data("id");
- var ajaxFunc = this.options.ajaxFunction;
- if(ajaxFunc && typeof ajaxFunc == 'function' ) {
- ajaxFunc.call(this,e, dragSource);
- }
+ dropout : function(event, ui) {
+ var draggable = ui.draggable;
+ var dragIndicatorObj = rf.$(ui.helper.attr("id"));
+ if (dragIndicatorObj) {
+ ui.helper.removeClass(dragIndicatorObj.acceptClass());
+ ui.helper.removeClass(dragIndicatorObj.rejectClass());
+
+ } else {
+ ui.helper.removeClass(defaultIndicatorClasses.acceptClass);
+ ui.helper.removeClass(defaultIndicatorClasses.rejectClass);
+ }
+ },
+
+ accept : function(draggable) {
+ // since acceptedTypes is optional it could be null.
+ // In this case all types are accepted
+ if (!this.options.acceptedTypes)
+ return true;
+
+ var accept;
+ var acceptType = draggable.data("type");
+ if (acceptType) {
+ $.each(this.options.acceptedTypes, function() {
+ accept = (acceptType == this);
+ return !(accept);
+ });
+ }
+ return accept;
+ },
+
+ __callAjax : function(e, ui) {
+ if (ui.draggable) {
+ var dragSource = ui.draggable.data("id");
+ var ajaxFunc = this.options.ajaxFunction;
+ if (ajaxFunc && typeof ajaxFunc == 'function') {
+ ajaxFunc.call(this, e, dragSource);
}
}
}
- })());
+ }
+ })());
})(jQuery, window.RichFaces);
\ No newline at end of file
Modified: trunk/ui/dnd/ui/src/main/resources/META-INF/resources/org.richfaces/indicator.ecss
===================================================================
--- trunk/ui/dnd/ui/src/main/resources/META-INF/resources/org.richfaces/indicator.ecss 2011-01-19 16:36:40 UTC (rev 21087)
+++ trunk/ui/dnd/ui/src/main/resources/META-INF/resources/org.richfaces/indicator.ecss 2011-01-19 16:43:04 UTC (rev 21088)
@@ -1,6 +1,9 @@
.rf-ind{
}
+.rf-ind-drag{
+}
+
.rf-ind-acpt{
}
13 years, 11 months
JBoss Rich Faces SVN: r21087 - trunk/examples/output-demo/src/main/java/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2011-01-19 11:36:40 -0500 (Wed, 19 Jan 2011)
New Revision: 21087
Added:
trunk/examples/output-demo/src/main/java/org/richfaces/TooltipBean.java
Log:
tooltip bean for developer demo
Added: trunk/examples/output-demo/src/main/java/org/richfaces/TooltipBean.java
===================================================================
--- trunk/examples/output-demo/src/main/java/org/richfaces/TooltipBean.java (rev 0)
+++ trunk/examples/output-demo/src/main/java/org/richfaces/TooltipBean.java 2011-01-19 16:36:40 UTC (rev 21087)
@@ -0,0 +1,73 @@
+/**
+ * @author Pavel Yaschenko
+ *
+ */
+
+package org.richfaces;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+
+import org.richfaces.component.Positioning;
+
+@ManagedBean
+@SessionScoped
+public class TooltipBean implements Serializable {
+ /**
+ *
+ */
+ private static final long serialVersionUID = -2860886265782541618L;
+ private int tooltipCounter = 0;
+ private Positioning jointPoint = Positioning.DEFAULT;
+ private Positioning direction = Positioning.DEFAULT;
+ private int horizontalOffset = 0;
+ private int verticalOffset = 0;
+ private Positioning[] positioningValues = Positioning.values();
+
+ public int getTooltipCounter() {
+ return tooltipCounter++;
+ }
+
+ public Date getTooltipDate() {
+ return new Date();
+ }
+
+ public void setJointPoint(Positioning jointPoint) {
+ this.jointPoint = jointPoint;
+ }
+
+ public Positioning getJointPoint() {
+ return jointPoint;
+ }
+
+ public void setDirection(Positioning direction) {
+ this.direction = direction;
+ }
+
+ public Positioning getDirection() {
+ return direction;
+ }
+
+ public void setHorizontalOffset(int horizontalOffset) {
+ this.horizontalOffset = horizontalOffset;
+ }
+
+ public int getHorizontalOffset() {
+ return horizontalOffset;
+ }
+
+ public void setVerticalOffset(int verticalOffset) {
+ this.verticalOffset = verticalOffset;
+ }
+
+ public int getVerticalOffset() {
+ return verticalOffset;
+ }
+
+ public Positioning[] getPositioningValues() {
+ return positioningValues;
+ }
+}
13 years, 11 months
JBoss Rich Faces SVN: r21086 - trunk/ui/iteration/ui/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2011-01-19 10:16:23 -0500 (Wed, 19 Jan 2011)
New Revision: 21086
Modified:
trunk/ui/iteration/ui/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
Log:
https://issues.jboss.org/browse/RF-10187
Modified: trunk/ui/iteration/ui/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
===================================================================
--- trunk/ui/iteration/ui/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2011-01-19 15:11:54 UTC (rev 21085)
+++ trunk/ui/iteration/ui/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2011-01-19 15:16:23 UTC (rev 21086)
@@ -356,8 +356,6 @@
String id = dataTable.getClientId(facesContext);
- setCellElement(facesContext, id, HtmlConstants.TH_ELEM);
-
boolean partialUpdateEncoded = false;
String clientId = dataTable.getClientId(facesContext);
@@ -370,6 +368,8 @@
}
writer.startElement(HtmlConstants.THEAD_ELEMENT, dataTable);
+ setCellElement(facesContext, id, HtmlConstants.TH_ELEM);
+
writer.writeAttribute(HtmlConstants.ID_ATTRIBUTE, headerClientId, null);
writer.writeAttribute(HtmlConstants.CLASS_ATTRIBUTE, "rf-dt-thd", null);
}
@@ -424,6 +424,7 @@
}
if (encodeThead) {
+ setCellElement(facesContext, id, null);
writer.endElement(HtmlConstants.THEAD_ELEMENT);
if (partialUpdateEncoded) {
@@ -431,7 +432,6 @@
}
}
- setCellElement(facesContext, id, null);
}
}
13 years, 11 months