Author: lfryc(a)redhat.com
Date: 2011-03-10 09:52:47 -0500 (Thu, 10 Mar 2011)
New Revision: 22138
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JQueueBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jQueue/globalQueue.xhtml
Log:
global queue - added introduce delay checkbox to test ignore dup responses
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JQueueBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JQueueBean.java 2011-03-10
14:52:04 UTC (rev 22137)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JQueueBean.java 2011-03-10
14:52:47 UTC (rev 22138)
@@ -49,6 +49,7 @@
private A4JQueueBean globalQueue;
private A4JQueueBean formQueue1;
private A4JQueueBean formQueue2;
+ private boolean introduceDelay;
/**
* Initializes the managed bean.
@@ -108,6 +109,21 @@
}
public void setText(String text) {
+ if (introduceDelay) {
+ try {
+ Thread.sleep(5000);
+ } catch (InterruptedException e) {
+ throw new IllegalStateException(e);
+ }
+ }
this.text = text;
}
+
+ public boolean isIntroduceDelay() {
+ return introduceDelay;
+ }
+
+ public void setIntroduceDelay(boolean introduceDelay) {
+ this.introduceDelay = introduceDelay;
+ }
}
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jQueue/globalQueue.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jQueue/globalQueue.xhtml 2011-03-10
14:52:04 UTC (rev 22137)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jQueue/globalQueue.xhtml 2011-03-10
14:52:47 UTC (rev 22138)
@@ -98,6 +98,13 @@
<ui:define name="outOfTemplateAfter">
<h:form id="attributeForm">
+ <h:panelGrid columns="2">
+ <h:outputLabel for="introduceDelay" value="Introduce
Delay:" />
+ <h:selectBooleanCheckbox id="introduceDelay"
value="#{a4jQueueBean.introduceDelay}">
+ <a4j:ajax event="change" />
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+
<metamer:attributes value="#{a4jQueueBean.attributes}"
id="attributes" />
</h:form>
</ui:define>
Show replies by date