myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1596788 - in /myfaces/tobago/trunk: tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoContext.java tobago-example/tobago-example-demo/src/main/webapp/header.xhtml
Date Thu, 22 May 2014 09:26:52 GMT
Author: lofwyr
Date: Thu May 22 09:26:52 2014
New Revision: 1596788

URL: http://svn.apache.org/r1596788
Log:
TOBAGO-1397: TobagoConfig should be accessible via TobagoContext

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoContext.java
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/header.xhtml

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoContext.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoContext.java?rev=1596788&r1=1596787&r2=1596788&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoContext.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoContext.java
Thu May 22 09:26:52 2014
@@ -19,6 +19,7 @@
 
 package org.apache.myfaces.tobago.context;
 
+import org.apache.myfaces.tobago.config.TobagoConfig;
 import org.apache.myfaces.tobago.internal.component.AbstractUIPage;
 import org.apache.myfaces.tobago.layout.Box;
 import org.apache.myfaces.tobago.layout.Dimension;
@@ -54,4 +55,8 @@ public class TobagoContext {
   public TobagoMessageBundle getMessageBundle() {
     return MESSAGE_BUNDLE;
   }
+
+  public TobagoConfig getTobagoConfig () {
+    return TobagoConfig.getInstance(FacesContext.getCurrentInstance());
+  }
 }

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/header.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/header.xhtml?rev=1596788&r1=1596787&r2=1596788&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/header.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/header.xhtml Thu
May 22 09:26:52 2014
@@ -41,7 +41,7 @@
       <tc:out value="Theme: #{clientConfigController.localizedTheme}"/>
       <tc:out value="Locale: #{clientConfigController.localizedLocale}"/>
       <tc:out value="VDL: Facelets" tip="View Description Language"/>
-      <tc:out value="Project Stage: #{appInfo.projectStage}"/>
+      <tc:out value="Project Stage: #{tobagoContext.tobagoConfig.projectStage}"/>
     </tc:panel>
   </tc:panel>
 </f:subview>



Mime
View raw message