myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r512968 - in /myfaces/tobago/trunk: core/src/main/java/org/apache/myfaces/tobago/context/FacesContextWrapper.java example/demo/pom.xml tobago-tool/gendoc/src/main/webapp/WEB-INF/faces-config.xml
Date Wed, 28 Feb 2007 21:03:50 GMT
Author: bommel
Date: Wed Feb 28 13:03:50 2007
New Revision: 512968

URL: http://svn.apache.org/viewvc?view=rev&rev=512968
Log:
added FacesContextWrapper 
added DebugPhaseLister to gendoc

Added:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextWrapper.java
Modified:
    myfaces/tobago/trunk/example/demo/pom.xml
    myfaces/tobago/trunk/tobago-tool/gendoc/src/main/webapp/WEB-INF/faces-config.xml

Added: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextWrapper.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextWrapper.java?view=auto&rev=512968
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextWrapper.java
(added)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextWrapper.java
Wed Feb 28 13:03:50 2007
@@ -0,0 +1,116 @@
+package org.apache.myfaces.tobago.context;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import javax.faces.context.FacesContext;
+import javax.faces.context.ExternalContext;
+import javax.faces.context.ResponseStream;
+import javax.faces.context.ResponseWriter;
+import javax.faces.application.Application;
+import javax.faces.application.FacesMessage;
+import javax.faces.render.RenderKit;
+import javax.faces.component.UIViewRoot;
+import java.util.Iterator;
+
+/*
+ * Date: Feb 28, 2007
+ * Time: 8:01:37 PM
+ */
+public class FacesContextWrapper extends javax.faces.context.FacesContext {
+  private FacesContext context;
+
+  public FacesContextWrapper(FacesContext context) {
+    this.context = context;
+  }
+
+  public Application getApplication() {
+    return context.getApplication();
+  }
+
+  public Iterator getClientIdsWithMessages() {
+    return context.getClientIdsWithMessages();
+  }
+
+  public ExternalContext getExternalContext() {
+    return context.getExternalContext();
+  }
+
+  public FacesMessage.Severity getMaximumSeverity() {
+    return context.getMaximumSeverity();
+  }
+
+  public Iterator getMessages() {
+    return context.getMessages();
+  }
+
+  public Iterator getMessages(String clientId) {
+    return context.getMessages(clientId);
+  }
+
+  public RenderKit getRenderKit() {
+    return context.getRenderKit();
+  }
+
+  public boolean getRenderResponse() {
+    return context.getRenderResponse();
+  }
+
+  public boolean getResponseComplete() {
+    return context.getResponseComplete();
+  }
+
+  public ResponseStream getResponseStream() {
+    return context.getResponseStream();
+  }
+
+  public void setResponseStream(ResponseStream responseStream) {
+    context.setResponseStream(responseStream);
+  }
+
+  public ResponseWriter getResponseWriter() {
+    return context.getResponseWriter();
+  }
+
+  public void setResponseWriter(ResponseWriter responseWriter) {
+    context.setResponseWriter(responseWriter);
+  }
+
+  public UIViewRoot getViewRoot() {
+    return context.getViewRoot();
+  }
+
+  public void setViewRoot(UIViewRoot root) {
+    context.setViewRoot(root);
+  }
+
+  public void addMessage(String clientId, FacesMessage message) {
+    context.addMessage(clientId, message);
+  }
+
+  public void release() {
+    context.release();
+  }
+
+  public void renderResponse() {
+    context.renderResponse();
+  }
+
+  public void responseComplete() {
+    context.responseComplete();
+  }
+}

Modified: myfaces/tobago/trunk/example/demo/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/demo/pom.xml?view=diff&rev=512968&r1=512967&r2=512968
==============================================================================
--- myfaces/tobago/trunk/example/demo/pom.xml (original)
+++ myfaces/tobago/trunk/example/demo/pom.xml Wed Feb 28 13:03:50 2007
@@ -74,6 +74,11 @@
   </scm>
 
   <dependencies>
+    <!--dependency>
+      <groupId>org.apache.myfaces.tobago</groupId>
+      <artifactId>tobago-theme-example</artifactId>
+      <version>${project.version}</version>
+    </dependency-->
     <dependency>
       <groupId>org.apache.myfaces.tobago</groupId>
       <artifactId>tobago-theme-charlotteville</artifactId>

Modified: myfaces/tobago/trunk/tobago-tool/gendoc/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/gendoc/src/main/webapp/WEB-INF/faces-config.xml?view=diff&rev=512968&r1=512967&r2=512968
==============================================================================
--- myfaces/tobago/trunk/tobago-tool/gendoc/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/tobago/trunk/tobago-tool/gendoc/src/main/webapp/WEB-INF/faces-config.xml Wed Feb
28 13:03:50 2007
@@ -72,6 +72,12 @@
     <managed-bean-scope>session</managed-bean-scope>
   </managed-bean>
 
+
+  <lifecycle>
+    <phase-listener>org.apache.myfaces.tobago.util.DebugPhaseListener</phase-listener>
+  </lifecycle>
+
+
   <navigation-rule>
     <navigation-case>
       <from-outcome>reset</from-outcome>



Mime
View raw message