myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwald...@apache.org
Subject svn commit: r771379 - in /myfaces/trinidad/trunk: ./ trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/RenderingContext.java
Date Mon, 04 May 2009 17:52:47 GMT
Author: jwaldman
Date: Mon May  4 17:52:47 2009
New Revision: 771379

URL: http://svn.apache.org/viewvc?rev=771379&view=rev
Log:
implement getStyles in RenderingContext to return null instead of having it be an abstract
method. This is for backward compatibility in case someone has implemented RenderingContext.
We don't want their code to break.

Modified:
    myfaces/trinidad/trunk/   (props changed)
    myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/RenderingContext.java

Propchange: myfaces/trinidad/trunk/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Mon May  4 17:52:47 2009
@@ -1,4 +1,4 @@
-/myfaces/trinidad/branches/1.2.11.3-branch:770843-770856
+/myfaces/trinidad/branches/1.2.11.3-branch:770843-770856,771372
 /myfaces/trinidad/branches/1.2.9.1-branch:697924,699406,699496
 /myfaces/trinidad/branches/TRINIDAD-1402:745675
 /myfaces/trinidad/branches/jwaldman_StyleMap:754977-770778

Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/RenderingContext.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/RenderingContext.java?rev=771379&r1=771378&r2=771379&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/RenderingContext.java
(original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/RenderingContext.java
Mon May  4 17:52:47 2009
@@ -93,9 +93,13 @@
    *  Return the Styles object that is attached to this RenderingContext. 
    *  Styles is a useful object if you need to know the css properties for a given
    *  selector.
-   * @return Styles
+   * @return Styles or null if there are no Styles. 
+   * for backward compatibility this is not an abstract method.
    */
-  abstract public Styles getStyles();
+  public Styles getStyles() 
+  {
+    return null;
+  }
   abstract public void   setSkinResourceKeyMap(Map<String, String> mapping);
   abstract public Map<String, String> getSkinResourceKeyMap();
   abstract public boolean isRightToLeft();



Mime
View raw message