Author: nbelaevski
Date: 2010-07-26 07:13:33 -0400 (Mon, 26 Jul 2010)
New Revision: 18228
Modified:
root/ui/core/trunk/ui/src/main/java/org/richfaces/renderkit/AjaxCommandRendererBase.java
root/ui/core/trunk/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java
root/ui/core/trunk/ui/src/main/java/org/richfaces/renderkit/html/AjaxStatusRenderer.java
root/ui/core/trunk/ui/src/test/java/org/richfaces/component/QueueRendererTest.java
Log:
Fixed compilation errors in core-ui
Modified:
root/ui/core/trunk/ui/src/main/java/org/richfaces/renderkit/AjaxCommandRendererBase.java
===================================================================
---
root/ui/core/trunk/ui/src/main/java/org/richfaces/renderkit/AjaxCommandRendererBase.java 2010-07-24
17:42:41 UTC (rev 18227)
+++
root/ui/core/trunk/ui/src/main/java/org/richfaces/renderkit/AjaxCommandRendererBase.java 2010-07-26
11:13:33 UTC (rev 18228)
@@ -83,7 +83,7 @@
StringBuffer onClick = new StringBuffer();
if (!getUtils().isBooleanAttribute(component, "disabled")) {
- HandlersChain handlersChain = new HandlersChain(facesContext, component);
+ HandlersChain handlersChain = new HandlersChain(context, component);
handlersChain.addInlineHandlerFromAttribute("onclick");
handlersChain.addBehaviors("click", "action");
Modified:
root/ui/core/trunk/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java
===================================================================
---
root/ui/core/trunk/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java 2010-07-24
17:42:41 UTC (rev 18227)
+++
root/ui/core/trunk/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java 2010-07-26
11:13:33 UTC (rev 18228)
@@ -80,7 +80,7 @@
Integer interval = new Integer(poll.getInterval());
options.put("pollinterval", interval);
options.put("pollId", component.getClientId(context));
- HandlersChain handlersChain = new HandlersChain(facesContext, poll);
+ HandlersChain handlersChain = new HandlersChain(context, poll);
handlersChain.addInlineHandlerFromAttribute(AbstractPoll.ON_TIMER);
handlersChain.addBehaviors(AbstractPoll.TIMER);
handlersChain.addAjaxSubmitFunction();
Modified:
root/ui/core/trunk/ui/src/main/java/org/richfaces/renderkit/html/AjaxStatusRenderer.java
===================================================================
---
root/ui/core/trunk/ui/src/main/java/org/richfaces/renderkit/html/AjaxStatusRenderer.java 2010-07-24
17:42:41 UTC (rev 18227)
+++
root/ui/core/trunk/ui/src/main/java/org/richfaces/renderkit/html/AjaxStatusRenderer.java 2010-07-26
11:13:33 UTC (rev 18228)
@@ -202,7 +202,7 @@
Map<String, Object> attributes = ajaxStatus.getAttributes();
for (String eventName : EVENT_NAMES) {
String eventAttribute = "on" + eventName;
- HandlersChain handlersChain = new HandlersChain(facesContext, component,
true);
+ HandlersChain handlersChain = new HandlersChain(context, component, true);
handlersChain.addInlineHandlerFromAttribute(eventAttribute);
handlersChain.addBehaviors(eventName);
rendererUtils.addToScriptHash(options, eventAttribute,
Modified:
root/ui/core/trunk/ui/src/test/java/org/richfaces/component/QueueRendererTest.java
===================================================================
---
root/ui/core/trunk/ui/src/test/java/org/richfaces/component/QueueRendererTest.java 2010-07-24
17:42:41 UTC (rev 18227)
+++
root/ui/core/trunk/ui/src/test/java/org/richfaces/component/QueueRendererTest.java 2010-07-26
11:13:33 UTC (rev 18228)
@@ -57,12 +57,12 @@
private @interface DisableQueue {}
private static final String EXPECTED_QUEUE_SCRIPT =
"RichFaces.queue.setQueueOptions({" +
- "'first': {'requestDelay': 400, 'timeout': 100,
'ignoreDupResponses': true}," +
- "'form': {'requestDelay': 400}," +
- "'form:firstAttach': {'timeout': 300,
'requestGroupingId': 'request'}," +
- "'second': {'requestDelay': 400, 'timeout': 100,
'ignoreDupResponses': true}," +
- "'form:linkAttach': {'timeout': 500, 'queueId':
'second'}," +
- "'form:secondAttach': {}" +
+ "\"first\": {\"requestDelay\": 400, \"timeout\":
100, \"ignoreDupResponses\": true}," +
+ "\"form\": {\"requestDelay\": 400}," +
+ "\"form:firstAttach\": {\"timeout\": 300,
\"requestGroupingId\": \"request\"}," +
+ "\"second\": {\"requestDelay\": 400,
\"timeout\": 100, \"ignoreDupResponses\": true}," +
+ "\"form:linkAttach\": {\"timeout\": 500,
\"queueId\": \"second\"}," +
+ "\"form:secondAttach\": {}" +
"});";
protected HtmlPage page;