You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ca...@apache.org on 2007/09/30 14:09:21 UTC

svn commit: r580702 - in /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule: AbstractScheduleRenderer.java DefaultScheduleEntryRenderer.java

Author: cagatay
Date: Sun Sep 30 05:09:21 2007
New Revision: 580702

URL: http://svn.apache.org/viewvc?rev=580702&view=rev
Log:
Fixed TOMAHAWK-1109, access css attributes with the missing Class suffix

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/AbstractScheduleRenderer.java
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/DefaultScheduleEntryRenderer.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/AbstractScheduleRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/AbstractScheduleRenderer.java?rev=580702&r1=580701&r2=580702&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/AbstractScheduleRenderer.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/AbstractScheduleRenderer.java Sun Sep 30 05:09:21 2007
@@ -254,7 +254,7 @@
         //it's not a value binding expression, so check for the string value
         //in the attributes
         Map attributes = component.getAttributes();
-        String returnValue = (String) attributes.get(className);
+        String returnValue = (String) attributes.get(className + "Class");
         return returnValue == null ? className : returnValue;
     }
 

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/DefaultScheduleEntryRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/DefaultScheduleEntryRenderer.java?rev=580702&r1=580701&r2=580702&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/DefaultScheduleEntryRenderer.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/DefaultScheduleEntryRenderer.java Sun Sep 30 05:09:21 2007
@@ -228,7 +228,7 @@
         // it's not a value binding expression, so check for the string value
         // in the attributes
         Map attributes = component.getAttributes();
-        String returnValue = (String) attributes.get(className);
+        String returnValue = (String) attributes.get(className + "Class");
         return returnValue == null ? className : returnValue;
     }