JBoss Rich Faces SVN: r21533 - in trunk/core: impl/src/main/java/org/richfaces/application/push/impl and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2011-02-08 08:52:29 -0500 (Tue, 08 Feb 2011)
New Revision: 21533
Modified:
trunk/core/api/src/main/java/org/richfaces/application/push/Session.java
trunk/core/impl/src/main/java/org/richfaces/application/push/impl/AbstractSession.java
trunk/core/impl/src/main/java/org/richfaces/application/push/impl/AtmospherePushHandler.java
trunk/core/impl/src/main/java/org/richfaces/application/push/impl/SessionManagerImpl.java
Log:
- Push session refactoring
- Added missing Request.suspend for push https://issues.jboss.org/browse/RF-10457
Modified: trunk/core/api/src/main/java/org/richfaces/application/push/Session.java
===================================================================
--- trunk/core/api/src/main/java/org/richfaces/application/push/Session.java 2011-02-08 13:24:19 UTC (rev 21532)
+++ trunk/core/api/src/main/java/org/richfaces/application/push/Session.java 2011-02-08 13:52:29 UTC (rev 21533)
@@ -51,6 +51,4 @@
public void invalidate();
- public void destroy();
-
}
Modified: trunk/core/impl/src/main/java/org/richfaces/application/push/impl/AbstractSession.java
===================================================================
--- trunk/core/impl/src/main/java/org/richfaces/application/push/impl/AbstractSession.java 2011-02-08 13:24:19 UTC (rev 21532)
+++ trunk/core/impl/src/main/java/org/richfaces/application/push/impl/AbstractSession.java 2011-02-08 13:52:29 UTC (rev 21533)
@@ -26,6 +26,7 @@
import org.richfaces.application.push.Request;
import org.richfaces.application.push.Session;
import org.richfaces.application.push.SessionManager;
+import org.richfaces.application.push.impl.SessionManagerImpl.DestroyableSession;
import org.richfaces.log.Logger;
import org.richfaces.log.RichfacesLogger;
@@ -33,7 +34,7 @@
* @author Nick Belaevski
*
*/
-public abstract class AbstractSession implements Session {
+public abstract class AbstractSession implements Session, DestroyableSession {
private static final Logger LOGGER = RichfacesLogger.APPLICATION.getLogger();
Modified: trunk/core/impl/src/main/java/org/richfaces/application/push/impl/AtmospherePushHandler.java
===================================================================
--- trunk/core/impl/src/main/java/org/richfaces/application/push/impl/AtmospherePushHandler.java 2011-02-08 13:24:19 UTC (rev 21532)
+++ trunk/core/impl/src/main/java/org/richfaces/application/push/impl/AtmospherePushHandler.java 2011-02-08 13:52:29 UTC (rev 21533)
@@ -96,7 +96,8 @@
resp.setContentType("text/plain");
try {
- session.connect(createRequest(resource, session));
+ Request request = createRequest(resource, session);
+ request.suspend();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
Modified: trunk/core/impl/src/main/java/org/richfaces/application/push/impl/SessionManagerImpl.java
===================================================================
--- trunk/core/impl/src/main/java/org/richfaces/application/push/impl/SessionManagerImpl.java 2011-02-08 13:24:19 UTC (rev 21532)
+++ trunk/core/impl/src/main/java/org/richfaces/application/push/impl/SessionManagerImpl.java 2011-02-08 13:52:29 UTC (rev 21533)
@@ -40,13 +40,21 @@
private static final Logger LOGGER = RichfacesLogger.APPLICATION.getLogger();
+ interface DestroyableSession {
+
+ public void destroy();
+
+ }
+
private final class SessionsExpirationRunnable implements Runnable {
public void run() {
while (true) {
try {
Session session = sessionQueue.take();
sessionMap.remove(session.getId());
- session.destroy();
+ if (session instanceof DestroyableSession) {
+ ((DestroyableSession) session).destroy();
+ }
} catch (InterruptedException e) {
LOGGER.error(e.getMessage(), e);
}
@@ -75,7 +83,9 @@
for (Iterator<Session> sessionsItr = sessionMap.values().iterator(); sessionsItr.hasNext(); ) {
Session session = sessionsItr.next();
- session.destroy();
+ if (session instanceof DestroyableSession) {
+ ((DestroyableSession) session).destroy();
+ }
}
}
15 years, 2 months
JBoss Rich Faces SVN: r21532 - in modules/tests/metamer/trunk: application and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2011-02-08 08:24:19 -0500 (Tue, 08 Feb 2011)
New Revision: 21532
Modified:
modules/tests/metamer/trunk/application/pom.xml
modules/tests/metamer/trunk/ftest-source/pom.xml
modules/tests/metamer/trunk/ftest/pom.xml
modules/tests/metamer/trunk/pom.xml
Log:
[maven-release-plugin] prepare for next development iteration
Modified: modules/tests/metamer/trunk/application/pom.xml
===================================================================
--- modules/tests/metamer/trunk/application/pom.xml 2011-02-08 13:24:03 UTC (rev 21531)
+++ modules/tests/metamer/trunk/application/pom.xml 2011-02-08 13:24:19 UTC (rev 21532)
@@ -19,7 +19,7 @@
<parent>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0.20110207-M6</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<groupId>org.richfaces.tests</groupId>
Modified: modules/tests/metamer/trunk/ftest/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest/pom.xml 2011-02-08 13:24:03 UTC (rev 21531)
+++ modules/tests/metamer/trunk/ftest/pom.xml 2011-02-08 13:24:19 UTC (rev 21532)
@@ -30,14 +30,14 @@
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-ftest</artifactId>
- <version>4.0.0.20110207-M6</version>
+ <version>4.0.0-SNAPSHOT</version>
<name>Metamer: RichFaces Testing Application - Functional Test</name>
<packaging>pom</packaging>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/ta...</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/tags/...</developerConnection>
- <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/tags/meta...</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/tr...</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/trunk...</developerConnection>
+ <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/trunk/ftest</url>
</scm>
<licenses>
Modified: modules/tests/metamer/trunk/ftest-source/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest-source/pom.xml 2011-02-08 13:24:03 UTC (rev 21531)
+++ modules/tests/metamer/trunk/ftest-source/pom.xml 2011-02-08 13:24:19 UTC (rev 21532)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0.20110207-M6</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<groupId>org.richfaces.tests</groupId>
Modified: modules/tests/metamer/trunk/pom.xml
===================================================================
--- modules/tests/metamer/trunk/pom.xml 2011-02-08 13:24:03 UTC (rev 21531)
+++ modules/tests/metamer/trunk/pom.xml 2011-02-08 13:24:19 UTC (rev 21532)
@@ -31,7 +31,7 @@
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0.20110207-M6</version>
+ <version>4.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Metamer: RichFaces Testing Application - Project Root</name>
@@ -50,9 +50,9 @@
</licenses>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/ta...</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/tags/...</developerConnection>
- <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/tags/meta...</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/trunk</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/trunk</developerConnection>
+ <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/trunk</url>
</scm>
<distributionManagement>
15 years, 2 months
JBoss Rich Faces SVN: r21531 - modules/tests/metamer/tags.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2011-02-08 08:24:03 -0500 (Tue, 08 Feb 2011)
New Revision: 21531
Added:
modules/tests/metamer/tags/metamer-4.0.0.20110207-M6/
Log:
[maven-scm] copy for tag metamer-4.0.0.20110207-M6
Copied: modules/tests/metamer/tags/metamer-4.0.0.20110207-M6 (from rev 21530, modules/tests/metamer/trunk)
15 years, 2 months
JBoss Rich Faces SVN: r21530 - in modules/tests/metamer/trunk: application and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2011-02-08 08:23:42 -0500 (Tue, 08 Feb 2011)
New Revision: 21530
Modified:
modules/tests/metamer/trunk/application/pom.xml
modules/tests/metamer/trunk/ftest-source/pom.xml
modules/tests/metamer/trunk/ftest/pom.xml
modules/tests/metamer/trunk/pom.xml
Log:
[maven-release-plugin] prepare release metamer-4.0.0.20110207-M6
Modified: modules/tests/metamer/trunk/application/pom.xml
===================================================================
--- modules/tests/metamer/trunk/application/pom.xml 2011-02-08 12:53:15 UTC (rev 21529)
+++ modules/tests/metamer/trunk/application/pom.xml 2011-02-08 13:23:42 UTC (rev 21530)
@@ -19,7 +19,7 @@
<parent>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <version>4.0.0.20110207-M6</version>
</parent>
<groupId>org.richfaces.tests</groupId>
Modified: modules/tests/metamer/trunk/ftest/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest/pom.xml 2011-02-08 12:53:15 UTC (rev 21529)
+++ modules/tests/metamer/trunk/ftest/pom.xml 2011-02-08 13:23:42 UTC (rev 21530)
@@ -30,14 +30,14 @@
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-ftest</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <version>4.0.0.20110207-M6</version>
<name>Metamer: RichFaces Testing Application - Functional Test</name>
<packaging>pom</packaging>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/tr...</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/trunk...</developerConnection>
- <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/trunk/ftest</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/ta...</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/tags/...</developerConnection>
+ <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/tags/meta...</url>
</scm>
<licenses>
@@ -80,8 +80,8 @@
<properties>
<context.path>/metamer/</context.path>
<deployable.classifier>mojarra</deployable.classifier>
- <deployable.version>4.0.0-SNAPSHOT</deployable.version>
- <ftest.source.version>4.0.0-SNAPSHOT</ftest.source.version>
+ <deployable.version>4.0.0.20110207-M6</deployable.version>
+ <ftest.source.version>4.0.0.20110207-M6</ftest.source.version>
<testng.suite.xml>src/test/resources/testng.xml</testng.suite.xml>
<container.home>target/installs/${container.dir.deflatted}/${container.dir.unflatted}</container.home>
<jsf.config>Mojarra-2.0</jsf.config>
Modified: modules/tests/metamer/trunk/ftest-source/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest-source/pom.xml 2011-02-08 12:53:15 UTC (rev 21529)
+++ modules/tests/metamer/trunk/ftest-source/pom.xml 2011-02-08 13:23:42 UTC (rev 21530)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <version>4.0.0.20110207-M6</version>
</parent>
<groupId>org.richfaces.tests</groupId>
Modified: modules/tests/metamer/trunk/pom.xml
===================================================================
--- modules/tests/metamer/trunk/pom.xml 2011-02-08 12:53:15 UTC (rev 21529)
+++ modules/tests/metamer/trunk/pom.xml 2011-02-08 13:23:42 UTC (rev 21530)
@@ -31,7 +31,7 @@
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <version>4.0.0.20110207-M6</version>
<packaging>pom</packaging>
<name>Metamer: RichFaces Testing Application - Project Root</name>
@@ -50,9 +50,9 @@
</licenses>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/trunk</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/trunk</developerConnection>
- <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/trunk</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/ta...</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/tags/...</developerConnection>
+ <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/tags/meta...</url>
</scm>
<distributionManagement>
15 years, 2 months
JBoss Rich Faces SVN: r21529 - modules/tests/metamer/trunk.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2011-02-08 07:53:15 -0500 (Tue, 08 Feb 2011)
New Revision: 21529
Modified:
modules/tests/metamer/trunk/pom.xml
Log:
tied on richfaces:4.0.0.20110207-M6
Modified: modules/tests/metamer/trunk/pom.xml
===================================================================
--- modules/tests/metamer/trunk/pom.xml 2011-02-08 12:51:11 UTC (rev 21528)
+++ modules/tests/metamer/trunk/pom.xml 2011-02-08 12:53:15 UTC (rev 21529)
@@ -26,7 +26,7 @@
<parent>
<groupId>org.richfaces.examples</groupId>
<artifactId>richfaces-example-parent</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <version>4.0.0.20110207-M6</version>
</parent>
<groupId>org.richfaces.tests</groupId>
@@ -124,7 +124,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<richfaces.checkstyle.version>2</richfaces.checkstyle.version>
- <version.richfaces>4.0.0-SNAPSHOT</version.richfaces>
+ <version.richfaces>4.0.0.20110207-M6</version.richfaces>
</properties>
<dependencyManagement>
15 years, 2 months
JBoss Rich Faces SVN: r21528 - in modules/tests/metamer/trunk: ftest-source and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2011-02-08 07:51:11 -0500 (Tue, 08 Feb 2011)
New Revision: 21528
Modified:
modules/tests/metamer/trunk/ftest-source/pom.xml
modules/tests/metamer/trunk/ftest/pom.xml
Log:
tied on richfaces-selenium:1.5.2.SP4
Modified: modules/tests/metamer/trunk/ftest/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest/pom.xml 2011-02-08 09:55:39 UTC (rev 21527)
+++ modules/tests/metamer/trunk/ftest/pom.xml 2011-02-08 12:51:11 UTC (rev 21528)
@@ -25,7 +25,7 @@
<parent>
<artifactId>functional-test-jboss-ci-template</artifactId>
<groupId>org.jboss.test.richfaces-selenium</groupId>
- <version>1.5.3-SNAPSHOT</version>
+ <version>1.5.2.SP4</version>
</parent>
<groupId>org.richfaces.tests</groupId>
Modified: modules/tests/metamer/trunk/ftest-source/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest-source/pom.xml 2011-02-08 09:55:39 UTC (rev 21527)
+++ modules/tests/metamer/trunk/ftest-source/pom.xml 2011-02-08 12:51:11 UTC (rev 21528)
@@ -37,7 +37,7 @@
<dependency>
<artifactId>root</artifactId>
<groupId>org.jboss.test.richfaces-selenium</groupId>
- <version>1.5.3-SNAPSHOT</version>
+ <version>1.5.2.SP4</version>
<scope>import</scope>
<type>pom</type>
</dependency>
15 years, 2 months
JBoss Rich Faces SVN: r21527 - modules/tests/metamer/trunk/ftest/src/test/resources.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2011-02-08 04:55:39 -0500 (Tue, 08 Feb 2011)
New Revision: 21527
Modified:
modules/tests/metamer/trunk/ftest/src/test/resources/testng-output.xml
Log:
added panelMenu to testng 'output' test group (RFPL-950)
Modified: modules/tests/metamer/trunk/ftest/src/test/resources/testng-output.xml
===================================================================
--- modules/tests/metamer/trunk/ftest/src/test/resources/testng-output.xml 2011-02-08 00:30:56 UTC (rev 21526)
+++ modules/tests/metamer/trunk/ftest/src/test/resources/testng-output.xml 2011-02-08 09:55:39 UTC (rev 21527)
@@ -16,6 +16,9 @@
<package name="org.richfaces.tests.metamer.ftest.richToolbar" />
<package name="org.richfaces.tests.metamer.ftest.richToolbarGroup" />
<package name="org.richfaces.tests.metamer.ftest.richTooltip" />
+ <package name="org.richfaces.tests.metamer.ftest.richPanelMenu" />
+ <package name="org.richfaces.tests.metamer.ftest.richPanelMenuGroup" />
+ <package name="org.richfaces.tests.metamer.ftest.richPanelMenuItem" />
</packages>
</test>
15 years, 2 months
JBoss Rich Faces SVN: r21526 - trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/samples.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2011-02-07 19:30:56 -0500 (Mon, 07 Feb 2011)
New Revision: 21526
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/samples/dataTableEdit-sample.xhtml
Log:
RESOLVED - issue RF-10293: richfaces-showcase: message: not updated via ajax but h:message + outputPanel does.
https://issues.jboss.org/browse/RF-10293
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/samples/dataTableEdit-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/samples/dataTableEdit-sample.xhtml 2011-02-08 00:30:53 UTC (rev 21525)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/samples/dataTableEdit-sample.xhtml 2011-02-08 00:30:56 UTC (rev 21526)
@@ -92,14 +92,14 @@
validatorMessage="Should be a valid price" label="Price field">
<f:validateDoubleRange/>
</h:inputText>
- <rich:message id="priceMsg" for="price" ajaxRendered="true"/>
+ <rich:message id="priceMsg" for="price" />
<h:outputText value="Mileage" />
<h:inputText value="#{carsBean.editedCar.mileage}" id="mage"
converterMessage="Should be a valid mileage"
validatorMessage="Should be a valid mileage" label="Mileage field" >
<f:validateDoubleRange/>
</h:inputText>
- <rich:message id="madeMsg" for="mage" ajaxRendered="true"/>
+ <rich:message id="madeMsg" for="mage" />
<h:outputText value="VIN" />
<h:inputText value="#{carsBean.editedCar.vin}" id="vin"
required="true" validatorMessage="Not a valid 17-digit VIN"
@@ -107,7 +107,7 @@
requiredMessage="VIN is required">
<f:validateLength minimum="17" maximum="17" />
</h:inputText>
- <rich:message id="vinMsg" for="vin" ajaxRendered="true"/>
+ <rich:message id="vinMsg" for="vin" />
</h:panelGrid>
<a4j:commandButton value="Store" action="#{carsBean.store}"
render="table" execute="editPane"
15 years, 2 months
JBoss Rich Faces SVN: r21525 - in trunk/ui/validator/ui/src/main/java/org/richfaces/component: behavior and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2011-02-07 19:30:53 -0500 (Mon, 07 Feb 2011)
New Revision: 21525
Modified:
trunk/ui/validator/ui/src/main/java/org/richfaces/component/AbstractMessage.java
trunk/ui/validator/ui/src/main/java/org/richfaces/component/AbstractMessages.java
trunk/ui/validator/ui/src/main/java/org/richfaces/component/behavior/ClientValidatorImpl.java
Log:
RESOLVED - issue RF-10293: richfaces-showcase: message: not updated via ajax but h:message + outputPanel does.
https://issues.jboss.org/browse/RF-10293
Modified: trunk/ui/validator/ui/src/main/java/org/richfaces/component/AbstractMessage.java
===================================================================
--- trunk/ui/validator/ui/src/main/java/org/richfaces/component/AbstractMessage.java 2011-02-08 00:30:49 UTC (rev 21524)
+++ trunk/ui/validator/ui/src/main/java/org/richfaces/component/AbstractMessage.java 2011-02-08 00:30:53 UTC (rev 21525)
@@ -51,7 +51,7 @@
)
public abstract class AbstractMessage extends UIMessage implements AjaxOutput {
- @Attribute
+ @Attribute(defaultValue="true")
public abstract boolean isAjaxRendered();
@Attribute
Modified: trunk/ui/validator/ui/src/main/java/org/richfaces/component/AbstractMessages.java
===================================================================
--- trunk/ui/validator/ui/src/main/java/org/richfaces/component/AbstractMessages.java 2011-02-08 00:30:49 UTC (rev 21524)
+++ trunk/ui/validator/ui/src/main/java/org/richfaces/component/AbstractMessages.java 2011-02-08 00:30:53 UTC (rev 21525)
@@ -52,7 +52,7 @@
)
public abstract class AbstractMessages extends UIMessages implements AjaxOutput, ClientSideMessage {
- @Attribute
+ @Attribute(defaultValue="true")
public abstract boolean isAjaxRendered();
@Attribute
Modified: trunk/ui/validator/ui/src/main/java/org/richfaces/component/behavior/ClientValidatorImpl.java
===================================================================
--- trunk/ui/validator/ui/src/main/java/org/richfaces/component/behavior/ClientValidatorImpl.java 2011-02-08 00:30:49 UTC (rev 21524)
+++ trunk/ui/validator/ui/src/main/java/org/richfaces/component/behavior/ClientValidatorImpl.java 2011-02-08 00:30:53 UTC (rev 21525)
@@ -78,7 +78,7 @@
public class ClientValidatorImpl extends AjaxBehavior implements ClientValidatorBehavior {
- private static final Set<String> NONE = Collections.singleton("@none");
+ private static final Set<String> NONE = Collections.emptySet();
private static final Set<String> THIS = Collections.singleton("@this");
15 years, 2 months
JBoss Rich Faces SVN: r21524 - trunk/examples/validator-demo/src/main/webapp/examples.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2011-02-07 19:30:49 -0500 (Mon, 07 Feb 2011)
New Revision: 21524
Modified:
trunk/examples/validator-demo/src/main/webapp/examples/ajax-validator.xhtml
trunk/examples/validator-demo/src/main/webapp/examples/faces-validators.xhtml
Log:
RESOLVED - issue RF-10293: richfaces-showcase: message: not updated via ajax but h:message + outputPanel does.
https://issues.jboss.org/browse/RF-10293
Modified: trunk/examples/validator-demo/src/main/webapp/examples/ajax-validator.xhtml
===================================================================
--- trunk/examples/validator-demo/src/main/webapp/examples/ajax-validator.xhtml 2011-02-07 20:17:53 UTC (rev 21523)
+++ trunk/examples/validator-demo/src/main/webapp/examples/ajax-validator.xhtml 2011-02-08 00:30:49 UTC (rev 21524)
@@ -3,6 +3,7 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:csv="http://richfaces.org/csv"
+ xmlns:a4j="http://richfaces.org/a4j"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<ui:composition template="/layout/template.xhtml">
<ui:param name="title" value="JSF validator by AJAX" />
@@ -19,6 +20,8 @@
</h:inputText>
<h:outputText id="out" value="#{test.value}"></h:outputText>
<csv:message id="uiMessage" for="text" />
+ <h:commandButton value="Submit form"/>
+ <a4j:commandButton value="AJAX Submit" render="out"/>
</h:form>
<csv:messages />
</ui:define>
Modified: trunk/examples/validator-demo/src/main/webapp/examples/faces-validators.xhtml
===================================================================
--- trunk/examples/validator-demo/src/main/webapp/examples/faces-validators.xhtml 2011-02-07 20:17:53 UTC (rev 21523)
+++ trunk/examples/validator-demo/src/main/webapp/examples/faces-validators.xhtml 2011-02-08 00:30:49 UTC (rev 21524)
@@ -39,9 +39,12 @@
<csv:message for="longrange" />
</h:panelGrid>
- <h:commandButton value="Submit">
+ <h:commandButton value="Submit form with client-side validation">
<csv:validator/>
</h:commandButton>
+ <a4j:commandButton value="AJAX Submit with client-side validation" render="lengthOut,dblrangeOut,longrangeOut">
+ <csv:validator/>
+ </a4j:commandButton>
</h:form>
<csv:messages />
</ui:define>
15 years, 2 months