KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > caucho > jsf > application > ViewHandlerImpl


1 /*
2  * Copyright (c) 1998-2006 Caucho Technology -- all rights reserved
3  *
4  * This file is part of Resin(R) Open Source
5  *
6  * Each copy or derived work must preserve the copyright notice and this
7  * notice unmodified.
8  *
9  * Resin Open Source is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 2
11  * as published by the Free Software Foundation.
12  *
13  * Resin Open Source is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
16  * of NON-INFRINGEMENT. See the GNU General Public License for more
17  * details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with Resin Open Source; if not, write to the
21  *
22  * Free Software Foundation, Inc.
23  * 59 Temple Place, Suite 330
24  * Boston, MA 02111-1307 USA
25  *
26  * @author Scott Ferguson
27  */

28
29 package com.caucho.jsf.application;
30
31 import java.io.*;
32 import java.util.*;
33
34 import javax.faces.*;
35 import javax.faces.application.*;
36 import javax.faces.component.*;
37 import javax.faces.context.*;
38 import javax.faces.render.*;
39
40 public class ViewHandlerImpl extends ViewHandler
41 {
42   public Locale calculateLocale(FacesContext context)
43   {
44     throw new UnsupportedOperationException JavaDoc();
45   }
46
47   public String JavaDoc calculateRenderKitId(FacesContext context)
48   {
49     return RenderKitFactory.HTML_BASIC_RENDER_KIT;
50   }
51
52   public UIViewRoot createView(FacesContext context,
53                    String JavaDoc viewId)
54   {
55     return new UIViewRoot();
56   }
57
58   public String JavaDoc getActionURL(FacesContext context,
59                  String JavaDoc viewId)
60   {
61     throw new UnsupportedOperationException JavaDoc();
62   }
63
64   public String JavaDoc getResourceURL(FacesContext context,
65                    String JavaDoc path)
66   {
67     throw new UnsupportedOperationException JavaDoc();
68   }
69
70   public void renderView(FacesContext context,
71              UIViewRoot viewToRender)
72     throws IOException, FacesException
73   {
74   }
75
76   public UIViewRoot restoreView(FacesContext context,
77                 String JavaDoc viewId)
78     throws FacesException
79   {
80     return null;
81   }
82
83   public void writeState(FacesContext context)
84     throws IOException
85   {
86   }
87
88   public String JavaDoc toString()
89   {
90     return "ViewHandlerImpl[]";
91   }
92 }
93
Popular Tags