myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r889399 - in /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces: config/ManagedBeanBuilder.java renderkit/html/HtmlStylesheetRenderer.java
Date Thu, 10 Dec 2009 20:02:10 GMT
Author: matzew
Date: Thu Dec 10 20:02:09 2009
New Revision: 889399

URL: http://svn.apache.org/viewvc?rev=889399&view=rev
Log:
clean up, on project stage usage...

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/config/ManagedBeanBuilder.java
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlStylesheetRenderer.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/config/ManagedBeanBuilder.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/config/ManagedBeanBuilder.java?rev=889399&r1=889398&r2=889399&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/config/ManagedBeanBuilder.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/config/ManagedBeanBuilder.java
Thu Dec 10 20:02:09 2009
@@ -398,7 +398,7 @@
             // Spec says, that the developer has to take care about the references
             // to and from managed-beans in custom scopes.
             // However, we do check the references, if we are not in Production stage
-            if (facesContext.getApplication().getProjectStage() == ProjectStage.Production)
+            if (facesContext.isProjectStage(ProjectStage.Production))
             {
                 return true;
             }
@@ -567,7 +567,7 @@
                 // Spec says, that the developer has to take care about the references
                 // to and from managed-beans in custom scopes.
                 // However, we do check the references, if we are not in Production stage
-                if (facesContext.getApplication().getProjectStage() == ProjectStage.Production)
+                if (facesContext.isProjectStage(ProjectStage.Production))
                 {
                     return null;
                 }

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlStylesheetRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlStylesheetRenderer.java?rev=889399&r1=889398&r2=889399&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlStylesheetRenderer.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlStylesheetRenderer.java
Thu Dec 10 20:02:09 2009
@@ -159,8 +159,7 @@
             }
             else
             {
-                if (!facesContext.getApplication().getProjectStage().equals(
-                        ProjectStage.Production))
+                if (!facesContext.isProjectStage(ProjectStage.Production))
                 {
                     facesContext.addMessage(component.getClientId(), 
                             new FacesMessage("Component with no name and no body content,
so nothing rendered."));



Mime
View raw message