View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.myfaces.view.facelets.tag.jsf.html;
20  
21  /**
22   * @author Jacob Hookom
23   * @version $Id$
24   */
25  public final class HtmlLibrary extends AbstractHtmlLibrary
26  {
27  
28      public final static String NAMESPACE = "http://xmlns.jcp.org/jsf/html";
29      public final static String ALIAS_NAMESPACE = "http://java.sun.com/jsf/html";
30  
31      public final static HtmlLibrary INSTANCE = new HtmlLibrary();
32  
33      public HtmlLibrary()
34      {
35          super(NAMESPACE, ALIAS_NAMESPACE);
36          
37          this.addHtmlComponent ("body", "javax.faces.OutputBody", "javax.faces.Body");
38          
39          this.addHtmlComponent ("button", "javax.faces.HtmlOutcomeTargetButton", "javax.faces.Button");
40          
41          this.addHtmlComponent("column", "javax.faces.HtmlColumn", null);
42  
43          this.addHtmlComponent("commandButton", "javax.faces.HtmlCommandButton", "javax.faces.Button");
44  
45          this.addHtmlComponent("commandLink", "javax.faces.HtmlCommandLink", "javax.faces.Link");
46          
47          this.addHtmlComponent("commandScript", "javax.faces.HtmlCommandScript", "javax.faces.Script");
48  
49          this.addHtmlComponent("dataTable", "javax.faces.HtmlDataTable", "javax.faces.Table");
50  
51          this.addHtmlComponent("doctype", "javax.faces.OutputDoctype", "javax.faces.Doctype");
52          
53          this.addHtmlComponent("form", "javax.faces.HtmlForm", "javax.faces.Form");
54  
55          this.addHtmlComponent("graphicImage", "javax.faces.HtmlGraphicImage", "javax.faces.Image");
56          
57          this.addHtmlComponent ("head", "javax.faces.OutputHead", "javax.faces.Head");
58          
59          this.addHtmlComponent("inputHidden", "javax.faces.HtmlInputHidden", "javax.faces.Hidden");
60  
61          this.addHtmlComponent("inputSecret", "javax.faces.HtmlInputSecret", "javax.faces.Secret");
62  
63          this.addHtmlComponent("inputText", "javax.faces.HtmlInputText", "javax.faces.Text");
64  
65          this.addHtmlComponent("inputTextarea", "javax.faces.HtmlInputTextarea", "javax.faces.Textarea");
66  
67          this.addHtmlComponent("inputFile", "javax.faces.HtmlInputFile", "javax.faces.File");
68          
69          this.addHtmlComponent ("link", "javax.faces.HtmlOutcomeTargetLink", "javax.faces.Link");
70          
71          this.addHtmlComponent("message", "javax.faces.HtmlMessage", "javax.faces.Message");
72  
73          this.addHtmlComponent("messages", "javax.faces.HtmlMessages", "javax.faces.Messages");
74  
75          this.addHtmlComponent("outputFormat", "javax.faces.HtmlOutputFormat", "javax.faces.Format");
76  
77          this.addHtmlComponent("outputLabel", "javax.faces.HtmlOutputLabel", "javax.faces.Label");
78  
79          this.addHtmlComponent("outputLink", "javax.faces.HtmlOutputLink", "javax.faces.Link");
80          
81          this.addComponent("outputScript", "javax.faces.Output", "javax.faces.resource.Script",
82                            HtmlOutputScriptHandler.class);
83          
84          this.addComponent("outputStylesheet", "javax.faces.Output", "javax.faces.resource.Stylesheet",
85                            HtmlOutputStylesheetHandler.class);
86          
87          this.addHtmlComponent("outputText", "javax.faces.HtmlOutputText", "javax.faces.Text");
88  
89          this.addHtmlComponent("panelGrid", "javax.faces.HtmlPanelGrid", "javax.faces.Grid");
90  
91          this.addHtmlComponent("panelGroup", "javax.faces.HtmlPanelGroup", "javax.faces.Group");
92  
93          this.addHtmlComponent("selectBooleanCheckbox", "javax.faces.HtmlSelectBooleanCheckbox", "javax.faces.Checkbox");
94  
95          this.addHtmlComponent("selectManyCheckbox", "javax.faces.HtmlSelectManyCheckbox", "javax.faces.Checkbox");
96  
97          this.addHtmlComponent("selectManyListbox", "javax.faces.HtmlSelectManyListbox", "javax.faces.Listbox");
98  
99          this.addHtmlComponent("selectManyMenu", "javax.faces.HtmlSelectManyMenu", "javax.faces.Menu");
100 
101         this.addHtmlComponent("selectOneListbox", "javax.faces.HtmlSelectOneListbox", "javax.faces.Listbox");
102 
103         this.addHtmlComponent("selectOneMenu", "javax.faces.HtmlSelectOneMenu", "javax.faces.Menu");
104 
105         this.addHtmlComponent("selectOneRadio", "javax.faces.HtmlSelectOneRadio", "javax.faces.Radio");
106     }
107 
108 }