myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r527246 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIPopup.java
Date Tue, 10 Apr 2007 18:48:30 GMT
Author: bommel
Date: Tue Apr 10 11:48:29 2007
New Revision: 527246

URL: http://svn.apache.org/viewvc?view=rev&rev=527246
Log:
(TOBAGO-349) ClassCastException with tree in a popup

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIPopup.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIPopup.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIPopup.java?view=diff&rev=527246&r1=527245&r2=527246
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIPopup.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIPopup.java
Tue Apr 10 11:48:29 2007
@@ -86,8 +86,8 @@
       UIPage page = ComponentUtil.findPage(this);
       String action = page.getActionId();
       if (action != null) {
-        UICommand command = (UICommand) page.findComponent(SEPARATOR_CHAR + action);
-        if (command != null) {
+        UIComponent command = page.findComponent(SEPARATOR_CHAR + action);
+        if (command != null && command instanceof UICommand) {
           return !(command.getAttributes().get(TobagoConstants.ATTR_POPUP_CLOSE) != null);
         }
       }



Mime
View raw message