svn commit: r739792 - in /ofbiz/trunk: applications/content/src/org/ofbiz/content/view/ framework/webapp/src/org/ofbiz/webapp/ftl/ framework/webapp/src/org/ofbiz/webapp/view/ framework/widget/src/org/ofbiz/widget/screen/

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r739792 - in /ofbiz/trunk: applications/content/src/org/ofbiz/content/view/ framework/webapp/src/org/ofbiz/webapp/ftl/ framework/webapp/src/org/ofbiz/webapp/view/ framework/widget/src/org/ofbiz/widget/screen/

jacopoc
Author: jacopoc
Date: Sun Feb  1 17:12:19 2009
New Revision: 739792

URL: http://svn.apache.org/viewvc?rev=739792&view=rev
Log:
Added two new methods to the ViewHandler interface: getter/setter methods for the "name" field, used to store the name of the view handler as set in the controller.xml file.
No functional change, but this mode is required by the upcoming new screen renderer based on Freemarker macros.

Added:
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/AbstractViewHandler.java   (with props)
Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/view/SimpleContentViewHandler.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/FreeMarkerViewHandler.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/DataVisionViewHandler.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/GenericViewRenderer.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/HttpViewHandler.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JPublishViewHandler.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsJXlsViewHandler.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsPdfViewHandler.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsPoiXlsViewHandler.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsXmlViewHandler.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JspViewHandler.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/RegionViewHandler.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/VelocityViewHandler.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ViewFactory.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ViewHandler.java
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/WfsViewHandler.java
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenFopViewHandler.java
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenTextViewHandler.java
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenWidgetViewHandler.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/view/SimpleContentViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/view/SimpleContentViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/view/SimpleContentViewHandler.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/view/SimpleContentViewHandler.java Sun Feb  1 17:12:19 2009
@@ -41,14 +41,14 @@
 import org.ofbiz.entity.GenericDelegator;
 import org.ofbiz.entity.GenericEntityException;
 import org.ofbiz.entity.GenericValue;
-import org.ofbiz.webapp.view.ViewHandler;
+import org.ofbiz.webapp.view.AbstractViewHandler;
 import org.ofbiz.webapp.view.ViewHandlerException;
 
 /**
  * Uses XSL-FO formatted templates to generate PDF views
  * This handler will use JPublish to generate the XSL-FO
  */
-public class SimpleContentViewHandler implements ViewHandler {
+public class SimpleContentViewHandler extends AbstractViewHandler {
     
     public static final String module = SimpleContentViewHandler.class.getName();
     protected ServletContext servletContext = null;

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/FreeMarkerViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/FreeMarkerViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/FreeMarkerViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/FreeMarkerViewHandler.java Sun Feb  1 17:12:19 2009
@@ -27,12 +27,10 @@
 import javax.servlet.http.HttpServletResponse;
 import javax.servlet.http.HttpSession;
 
-import javolution.util.FastMap;
-
 import org.ofbiz.base.util.UtilHttp;
 import org.ofbiz.base.util.collections.MapStack;
 import org.ofbiz.base.util.template.FreeMarkerWorker;
-import org.ofbiz.webapp.view.ViewHandler;
+import org.ofbiz.webapp.view.AbstractViewHandler;
 import org.ofbiz.webapp.view.ViewHandlerException;
 
 import freemarker.ext.beans.BeansWrapper;
@@ -45,7 +43,7 @@
 
 /** FreemarkerViewHandler - Freemarker Template Engine View Handler.
  */
-public class FreeMarkerViewHandler implements ViewHandler {
+public class FreeMarkerViewHandler extends AbstractViewHandler {
     
     public static final String module = FreeMarkerViewHandler.class.getName();
     protected ServletContext servletContext = null;

Added: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/AbstractViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/AbstractViewHandler.java?rev=739792&view=auto
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/AbstractViewHandler.java (added)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/AbstractViewHandler.java Sun Feb  1 17:12:19 2009
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * 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.
+ *******************************************************************************/
+package org.ofbiz.webapp.view;
+
+/**
+ * ViewHandler - View Handler Interface
+ */
+public abstract class AbstractViewHandler implements ViewHandler {
+    protected String name = null;
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+}

Propchange: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/AbstractViewHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/AbstractViewHandler.java
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/AbstractViewHandler.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/DataVisionViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/DataVisionViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/DataVisionViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/DataVisionViewHandler.java Sun Feb  1 17:12:19 2009
@@ -36,7 +36,7 @@
 /**
  * Handles DataVision type view rendering
  */
-public class DataVisionViewHandler implements ViewHandler {
+public class DataVisionViewHandler extends AbstractViewHandler {
     
     public static final String module = DataVisionViewHandler.class.getName();
 

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/GenericViewRenderer.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/GenericViewRenderer.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/GenericViewRenderer.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/GenericViewRenderer.java Sun Feb  1 17:12:19 2009
@@ -39,6 +39,7 @@
 import org.ofbiz.base.util.Debug;
 import org.ofbiz.entity.GenericValue;
 import org.ofbiz.security.Security;
+import org.ofbiz.webapp.view.AbstractViewHandler;
 
 import org.jpublish.JPublishContext;
 import org.jpublish.Page;
@@ -51,7 +52,7 @@
 /**
  * Generic JPublish View Renderer - This is in testing; for use in wrapping other renderers
  */
-public class GenericViewRenderer implements ViewRenderer {
+public class GenericViewRenderer extends AbstractViewRenderer {
         
     public static final String module = GenericViewRenderer.class.getName();  
     public static final String DEFAULT_RENDERER = "freemarker";

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/HttpViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/HttpViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/HttpViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/HttpViewHandler.java Sun Feb  1 17:12:19 2009
@@ -30,7 +30,7 @@
 /**
  * ViewHandlerException - View Handler Exception
  */
-public class HttpViewHandler implements ViewHandler {
+public class HttpViewHandler extends AbstractViewHandler {
     
     public static final String module = HttpViewHandler.class.getName();
 

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JPublishViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JPublishViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JPublishViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JPublishViewHandler.java Sun Feb  1 17:12:19 2009
@@ -28,11 +28,12 @@
 
 import org.ofbiz.base.util.GeneralException;
 import org.ofbiz.base.util.UtilJ2eeCompat;
+import org.ofbiz.webapp.view.AbstractViewHandler;
 
 /**
  * Handles JPublish type view rendering
  */
-public class JPublishViewHandler implements ViewHandler {
+public class JPublishViewHandler extends AbstractViewHandler {
 
     public static final String module = JPublishViewHandler.class.getName();
     

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsJXlsViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsJXlsViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsJXlsViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsJXlsViewHandler.java Sun Feb  1 17:12:19 2009
@@ -39,6 +39,7 @@
 import org.ofbiz.base.util.UtilHttp;
 import org.ofbiz.base.util.cache.UtilCache;
 import org.ofbiz.webapp.control.ContextFilter;
+import org.ofbiz.webapp.view.AbstractViewHandler;
 import org.ofbiz.entity.GenericDelegator;
 import org.ofbiz.entity.jdbc.ConnectionFactory;
 
@@ -46,7 +47,7 @@
 /**
  * Handles JasperReports JXls view rendering
  */
-public class JasperReportsJXlsViewHandler implements ViewHandler {
+public class JasperReportsJXlsViewHandler extends AbstractViewHandler {
     
     public static final String module = JasperReportsJXlsViewHandler.class.getName();
 

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsPdfViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsPdfViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsPdfViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsPdfViewHandler.java Sun Feb  1 17:12:19 2009
@@ -38,13 +38,14 @@
 import org.ofbiz.base.util.UtilHttp;
 import org.ofbiz.base.util.cache.UtilCache;
 import org.ofbiz.webapp.control.ContextFilter;
+import org.ofbiz.webapp.view.AbstractViewHandler;
 import org.ofbiz.entity.GenericDelegator;
 import org.ofbiz.entity.jdbc.ConnectionFactory;
 
 /**
  * Handles JasperReports PDF view rendering
  */
-public class JasperReportsPdfViewHandler implements ViewHandler {
+public class JasperReportsPdfViewHandler extends AbstractViewHandler {
     
     public static final String module = JasperReportsPdfViewHandler.class.getName();
 

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsPoiXlsViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsPoiXlsViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsPoiXlsViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsPoiXlsViewHandler.java Sun Feb  1 17:12:19 2009
@@ -39,6 +39,7 @@
 import org.ofbiz.base.util.UtilHttp;
 import org.ofbiz.base.util.cache.UtilCache;
 import org.ofbiz.webapp.control.ContextFilter;
+import org.ofbiz.webapp.view.AbstractViewHandler;
 import org.ofbiz.entity.GenericDelegator;
 import org.ofbiz.entity.jdbc.ConnectionFactory;
 
@@ -46,7 +47,7 @@
 /**
  * Handles JasperReports PoiXls view rendering
  */
-public class JasperReportsPoiXlsViewHandler implements ViewHandler {
+public class JasperReportsPoiXlsViewHandler extends AbstractViewHandler {
     
     public static final String module = JasperReportsPoiXlsViewHandler.class.getName();
 

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsXmlViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsXmlViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsXmlViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JasperReportsXmlViewHandler.java Sun Feb  1 17:12:19 2009
@@ -37,13 +37,14 @@
 import org.ofbiz.base.util.Debug;
 import org.ofbiz.base.util.UtilHttp;
 import org.ofbiz.webapp.control.ContextFilter;
+import org.ofbiz.webapp.view.AbstractViewHandler;
 import org.ofbiz.entity.GenericDelegator;
 import org.ofbiz.entity.jdbc.ConnectionFactory;
 
 /**
  * Handles JasperReports PDF view rendering
  */
-public class JasperReportsXmlViewHandler implements ViewHandler {
+public class JasperReportsXmlViewHandler extends AbstractViewHandler {
     
     public static final String module = JasperReportsXmlViewHandler.class.getName();
 

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JspViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JspViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JspViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JspViewHandler.java Sun Feb  1 17:12:19 2009
@@ -32,7 +32,7 @@
 /**
  * JspViewHandler - Java Server Pages View Handler
  */
-public class JspViewHandler implements ViewHandler {
+public class JspViewHandler extends AbstractViewHandler {
     
     public static final String module = JspViewHandler.class.getName();
 

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/RegionViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/RegionViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/RegionViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/RegionViewHandler.java Sun Feb  1 17:12:19 2009
@@ -35,7 +35,7 @@
 /**
  * Handles Region type view rendering
  */
-public class RegionViewHandler implements ViewHandler {
+public class RegionViewHandler extends AbstractViewHandler {
     
     public static final String module = RegionViewHandler.class.getName();
 

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/VelocityViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/VelocityViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/VelocityViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/VelocityViewHandler.java Sun Feb  1 17:12:19 2009
@@ -43,7 +43,7 @@
 /**
  * VelocityViewHandler - Velocity Template Engine View Handler
  */
-public class VelocityViewHandler implements ViewHandler {
+public class VelocityViewHandler extends AbstractViewHandler {
 
     public static final String module = VelocityViewHandler.class.getName();
 

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ViewFactory.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ViewFactory.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ViewFactory.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ViewFactory.java Sun Feb  1 17:12:19 2009
@@ -119,6 +119,7 @@
 
         try {
             handler = (ViewHandler) ObjectType.getInstance(handlerClass);
+            handler.setName(type);
             handler.init(context);
         } catch (ClassNotFoundException cnf) {
             //throw new ViewHandlerException("Cannot load handler class", cnf);

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ViewHandler.java Sun Feb  1 17:12:19 2009
@@ -28,6 +28,18 @@
 public interface ViewHandler {
 
     /**
+     * Sets the name of the view handler as declared in the controller configuration file.
+     * @param name String The name of the view handler as declared in the controller configuration file.
+     */
+    public void setName(String name);
+
+    /**
+     * Gets the name of the view handler as declared in the controller configuration file.
+     * @return name String The name of the view handler as declared in the controller configuration file.
+     */
+    public String getName();
+
+    /**
      * Initializes the handler. Since handlers use the singleton pattern this method should only be called
      * the first time the handler is used.
      *

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/WfsViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/WfsViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/WfsViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/WfsViewHandler.java Sun Feb  1 17:12:19 2009
@@ -51,7 +51,7 @@
 /**
  * WfsViewHandler - View Handler
  */
-public class WfsViewHandler implements ViewHandler {
+public class WfsViewHandler extends AbstractViewHandler {
     
     public static final String module = WfsViewHandler.class.getName();
     public static final String FormatTemplateUrl ="component://webapp/script/org/ofbiz/webapp/event/formatWfs.ftl";

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenFopViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenFopViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenFopViewHandler.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenFopViewHandler.java Sun Feb  1 17:12:19 2009
@@ -28,8 +28,8 @@
 import org.apache.fop.apps.Fop;
 
 import org.ofbiz.base.util.Debug;
+import org.ofbiz.webapp.view.AbstractViewHandler;
 import org.ofbiz.webapp.view.ApacheFopWorker;
-import org.ofbiz.webapp.view.ViewHandler;
 import org.ofbiz.webapp.view.ViewHandlerException;
 import org.ofbiz.widget.fo.FoFormRenderer;
 import org.ofbiz.widget.fo.FoScreenRenderer;
@@ -39,7 +39,7 @@
  * Uses XSL-FO formatted templates to generate PDF, PCL, POSTSCRIPT etc.  views
  * This handler will use JPublish to generate the XSL-FO
  */
-public class ScreenFopViewHandler implements ViewHandler {
+public class ScreenFopViewHandler extends AbstractViewHandler {
     public static final String module = ScreenFopViewHandler.class.getName();
     protected static final String DEFAULT_ERROR_TEMPLATE = "component://common/widget/CommonScreens.xml#FoError";
 

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenTextViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenTextViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenTextViewHandler.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenTextViewHandler.java Sun Feb  1 17:12:19 2009
@@ -30,14 +30,14 @@
 
 import org.ofbiz.base.util.GeneralException;
 import org.ofbiz.base.util.UtilJ2eeCompat;
-import org.ofbiz.webapp.view.ViewHandler;
+import org.ofbiz.webapp.view.AbstractViewHandler;
 import org.ofbiz.webapp.view.ViewHandlerException;
 import org.xml.sax.SAXException;
 
 import org.ofbiz.widget.text.TextFormRenderer;
 import org.ofbiz.widget.text.TextScreenRenderer;
 
-public class ScreenTextViewHandler implements ViewHandler {
+public class ScreenTextViewHandler extends AbstractViewHandler {
     
     public static final String module = ScreenTextViewHandler.class.getName();
 

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenWidgetViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenWidgetViewHandler.java?rev=739792&r1=739791&r2=739792&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenWidgetViewHandler.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenWidgetViewHandler.java Sun Feb  1 17:12:19 2009
@@ -33,7 +33,7 @@
 import org.ofbiz.base.util.UtilProperties;
 import org.ofbiz.base.util.UtilValidate;
 import org.ofbiz.base.util.template.FreeMarkerWorker;
-import org.ofbiz.webapp.view.ViewHandler;
+import org.ofbiz.webapp.view.AbstractViewHandler;
 import org.ofbiz.webapp.view.ViewHandlerException;
 import org.ofbiz.widget.html.HtmlScreenRenderer;
 import org.ofbiz.widget.html.HtmlFormRenderer;
@@ -45,13 +45,13 @@
 /**
  * Handles view rendering for the Screen Widget
  */
-public class ScreenWidgetViewHandler implements ViewHandler {
+public class ScreenWidgetViewHandler extends AbstractViewHandler {
 
     public static final String module = ScreenWidgetViewHandler.class.getName();
     
     protected ServletContext servletContext = null;
     protected HtmlScreenRenderer htmlScreenRenderer = new HtmlScreenRenderer();
-
+    
     /**
      * @see org.ofbiz.webapp.view.ViewHandler#init(javax.servlet.ServletContext)
      */