You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2008/11/05 23:19:16 UTC

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

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());