myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwald...@apache.org
Subject svn commit: r742836 - /myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderingContext.java
Date Tue, 10 Feb 2009 03:02:10 GMT
Author: jwaldman
Date: Tue Feb 10 03:02:10 2009
New Revision: 742836

URL: http://svn.apache.org/viewvc?rev=742836&view=rev
Log:
TRINIDAD-1358 if there is a skin [stylesheet] id mismatch between producer and consumer, use
the skin anyway instead of the portlet skin
1.2.x
Fix a bug when the style cache directory did not exist when a skin was switched.
Added back the accidentally deleted:
            // set up the styleProvider first, so that it will create the /adf/style
            // directory. Otherwise the following code would get an error when it
            // tries to getStyleDir. This could possibly be done better.
            getStyleContext().getStyleProvider();

Modified:
    myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderingContext.java

Modified: myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderingContext.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderingContext.java?rev=742836&r1=742835&r2=742836&view=diff
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderingContext.java
(original)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderingContext.java
Tue Feb 10 03:02:10 2009
@@ -526,6 +526,11 @@
 
           if (requestMapStyleSheetId != null)
           {
+            // set up the styleProvider first, so that it will create the /adf/style
+            // directory. Otherwise the following code would get an error when it
+            // tries to getStyleDir. This could possibly be done better.
+            getStyleContext().getStyleProvider();
+            
             String skinForPortalStyleSheetId = requestedSkin.getStyleSheetDocumentId(this);
             if (skinForPortalStyleSheetId != null &&
               skinForPortalStyleSheetId.equals(requestMapStyleSheetId))



Mime
View raw message