myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r711722 - /myfaces/tobago/branches/tobago-1.0.x/extension/facelets/src/main/java/org/apache/myfaces/tobago/facelets/AttributeHandler.java
Date Wed, 05 Nov 2008 22:19:16 GMT
Author: bommel
Date: Wed Nov  5 14:19:16 2008
New Revision: 711722

URL: http://svn.apache.org/viewvc?rev=711722&view=rev
Log:
(TOBAGO-720) Facelets AttributeHandler should support ValueExpression for renderedPartially

Modified:
    myfaces/tobago/branches/tobago-1.0.x/extension/facelets/src/main/java/org/apache/myfaces/tobago/facelets/AttributeHandler.java

Modified: myfaces/tobago/branches/tobago-1.0.x/extension/facelets/src/main/java/org/apache/myfaces/tobago/facelets/AttributeHandler.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/extension/facelets/src/main/java/org/apache/myfaces/tobago/facelets/AttributeHandler.java?rev=711722&r1=711721&r2=711722&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/extension/facelets/src/main/java/org/apache/myfaces/tobago/facelets/AttributeHandler.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/extension/facelets/src/main/java/org/apache/myfaces/tobago/facelets/AttributeHandler.java
Wed Nov  5 14:19:16 2008
@@ -218,8 +218,11 @@
             ELAdaptor.setExpression(parent, nameValue, value.getValueExpression(faceletContext,
Boolean.class));
           }
         } else if (TobagoConstants.ATTR_RENDERED_PARTIALLY.equals(nameValue) && parent
instanceof UICommand) {
-          // TODO expression
-          ComponentUtil.setRenderedPartially((UICommand) parent, value.getValue());
+          if (value.isLiteral()) {
+            ComponentUtil.setRenderedPartially((UICommand) parent, value.getValue());
+          } else {
+            ELAdaptor.setExpression(parent, nameValue, value.getValueExpression(faceletContext,
Object.class));
+          }
         } else if (TobagoConstants.ATTR_STYLE_CLASS.equals(nameValue)) {
           // TODO expression
           ComponentUtil.setStyleClasses(parent, value.getValue());



Mime
View raw message