Author: nbelaevski
Date: 2008-12-08 20:00:53 -0500 (Mon, 08 Dec 2008)
New Revision: 11657
Modified:
trunk/ui/core/src/main/java/org/ajax4jsf/component/UIQueue.java
trunk/ui/core/src/test/java/org/ajax4jsf/component/QueueRendererTest.java
Log:
https://jira.jboss.org/jira/browse/RF-5244
Modified: trunk/ui/core/src/main/java/org/ajax4jsf/component/UIQueue.java
===================================================================
--- trunk/ui/core/src/main/java/org/ajax4jsf/component/UIQueue.java 2008-12-08 19:03:13
UTC (rev 11656)
+++ trunk/ui/core/src/main/java/org/ajax4jsf/component/UIQueue.java 2008-12-09 01:00:53
UTC (rev 11657)
@@ -81,6 +81,9 @@
public abstract String getOnrequestdequeue();
public abstract void setOnrequestdequeue(String onrequestdequeue);
+ public abstract String getStatus();
+ public abstract void setStatus(String status);
+
@Override
public String getFamily() {
return COMPONENT_FAMILY;
Modified: trunk/ui/core/src/test/java/org/ajax4jsf/component/QueueRendererTest.java
===================================================================
--- trunk/ui/core/src/test/java/org/ajax4jsf/component/QueueRendererTest.java 2008-12-08
19:03:13 UTC (rev 11656)
+++ trunk/ui/core/src/test/java/org/ajax4jsf/component/QueueRendererTest.java 2008-12-09
01:00:53 UTC (rev 11657)
@@ -156,6 +156,8 @@
queue1.setSize(10);
queue1.setOnsizeexceeded("sizeexceeded_handler()");
queue1.setSizeExceededBehavior("dropNext");
+ queue1.setOnrequestqueue("request_queue_handler()");
+ queue1.setOnrequestdequeue("request_de_queue_handler()");
form.getChildren().add(queue1);
UIQueue queue2 = (UIQueue) application.createComponent(UIQueue.COMPONENT_TYPE);
@@ -173,7 +175,7 @@
assertEquals(3, scripts.length);
assertEquals(dry(createQueueInitString("theform",
- "{'size':10,'sizeExceededBehavior':'dropNext','onsizeexceeded':function(query,options,event){sizeexceeded_handler()}}",
+ "{'size':10,'sizeExceededBehavior':'dropNext','onsizeexceeded':function(query,options,event){sizeexceeded_handler()},'onrequestqueue':function(query,options,event){request_queue_handler()},'onrequestdequeue':function(query,options,event){request_de_queue_handler()}}",
null)),
scripts[0]);
@@ -199,6 +201,7 @@
queue2.setIgnoreDupResponses(true);
queue2.setOnbeforedomupdate("beforedomupdate_handler()");
queue2.setOncomplete("complete_handler()");
+ queue2.setStatus("mystatus");
form.getChildren().add(queue2);
HtmlPage page = renderView();
@@ -209,7 +212,7 @@
assertEquals(dry(createQueueInitString("theform:queue1", null,
"{'timeout':50021,'queueonsubmit':function(request){submit_queue_handler()},'queueonerror':function(request,status,message){error_queue_handler()}}")),
scripts[0]);
assertEquals(dry(createQueueInitString("theform:queue2", null,
- "{'ignoreDupResponses':true,'requestDelay':600,'queueonbeforedomupdate':function(request,event,data){beforedomupdate_handler()},'queueoncomplete':function(request,event,data){complete_handler()}}")),
+ "{'ignoreDupResponses':true,'requestDelay':600,'status':'mystatus','queueonbeforedomupdate':function(request,event,data){beforedomupdate_handler()},'queueoncomplete':function(request,event,data){complete_handler()}}")),
scripts[1]);
}