1 16 package org.apache.myfaces.config; 17 18 import java.util.Locale ; 19 import java.io.IOException ; 20 import javax.faces.application.ViewHandler; 21 import javax.faces.context.FacesContext; 22 import javax.faces.component.UIViewRoot; 23 import javax.faces.FacesException; 24 25 26 29 public class TestViewHandlerA extends ViewHandler 30 { 31 32 private ViewHandler delegate; 33 34 35 public TestViewHandlerA(ViewHandler delegate) 36 { 37 this.delegate = delegate; 38 } 39 40 41 public ViewHandler getDelegate() 42 { 43 return delegate; 44 } 45 46 47 public Locale calculateLocale(FacesContext context) 48 { 49 return delegate.calculateLocale(context); 50 } 51 52 53 public String calculateRenderKitId(FacesContext context) 54 { 55 return delegate.calculateRenderKitId(context); 56 } 57 58 59 public UIViewRoot createView(FacesContext context, String viewId) 60 { 61 return delegate.createView(context, viewId); 62 } 63 64 65 public String getActionURL(FacesContext context, String viewId) 66 { 67 return delegate.getActionURL(context, viewId); 68 } 69 70 71 public String getResourceURL(FacesContext context, String path) 72 { 73 return delegate.getResourceURL(context, path); 74 } 75 76 77 public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException , FacesException 78 { 79 delegate.renderView(context, viewToRender); 80 } 81 82 83 public UIViewRoot restoreView(FacesContext context, String viewId) 84 { 85 return delegate.restoreView(context, viewId); 86 } 87 88 89 public void writeState(FacesContext context) throws IOException 90 { 91 delegate.writeState(context); 92 } 93 94 } 95 | Popular Tags |