Author: nbelaevski
Date: 2009-08-25 05:28:07 -0400 (Tue, 25 Aug 2009)
New Revision: 15292
Modified:
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/AjaxRendererUtils.java
Log:
Fixed behavior scripts generation
Modified:
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/AjaxRendererUtils.java
===================================================================
---
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/AjaxRendererUtils.java 2009-08-25
01:02:04 UTC (rev 15291)
+++
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/AjaxRendererUtils.java 2009-08-25
09:28:07 UTC (rev 15292)
@@ -1097,13 +1097,13 @@
}
ClientBehaviorContext behaviorContext = null;
- if (behaviors != null) {
+ if (behaviors != null || needsSubmittingBehavior) {
Collection<Parameter> parametersList =
AjaxRendererUtils.getBehaviorParametersList(facesContext, component);
behaviorContext = ClientBehaviorContext.createClientBehaviorContext(facesContext,
component,
behaviorName, null, parametersList);
}
- if (isNonEmpty(eventHandler) || behaviors != null) {
+ if (isNonEmpty(eventHandler) || behaviors != null || needsSubmittingBehavior) {
return AjaxRendererUtils.createBehaviorsChain(facesContext, eventHandler, behaviors,
behaviorContext, needsSubmittingBehavior);
} else {
return null;
Show replies by date