Author: abelevich
Date: 2010-11-24 13:44:08 -0500 (Wed, 24 Nov 2010)
New Revision: 20159
Modified:
trunk/ui/core/ui/src/main/java/org/richfaces/view/facelets/tag/BehaviorRule.java
Log:
fix bug what setLiteralValue didn't invokes for the our ClienBehaviors
Modified:
trunk/ui/core/ui/src/main/java/org/richfaces/view/facelets/tag/BehaviorRule.java
===================================================================
---
trunk/ui/core/ui/src/main/java/org/richfaces/view/facelets/tag/BehaviorRule.java 2010-11-24
13:31:12 UTC (rev 20158)
+++
trunk/ui/core/ui/src/main/java/org/richfaces/view/facelets/tag/BehaviorRule.java 2010-11-24
18:44:08 UTC (rev 20159)
@@ -80,23 +80,14 @@
@Override
public Metadata applyRule(String name, TagAttribute attribute, MetadataTarget meta)
{
if (meta.isTargetInstanceOf(ClientBehavior.class)) {
-
if (!attribute.isLiteral()) {
Class<?> type = meta.getPropertyType(name);
if (type == null) {
type = Object.class;
}
-
return new ValueExpressionMetadata(name, type, attribute);
- } else if (meta != null && meta.getWriteMethod(name) == null) {
-
- if (log.isDebugEnabled()) {
- log
- .debug(attribute + " Property '" + name +
"' is not on type: "
- + meta.getTargetClass().getName());
- }
-
+ } else {
return new LiteralAttributeMetadata(name, attribute.getValue());
}
}
Show replies by date