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: HtmlLibrary.java 1187700 2011-10-22 12:19:37Z bommel $
24   */
25  public final class HtmlLibrary extends AbstractHtmlLibrary
26  {
27  
28      public final static String Namespace = "http://java.sun.com/jsf/html";
29  
30      public final static HtmlLibrary Instance = new HtmlLibrary();
31  
32      public HtmlLibrary()
33      {
34          super(Namespace);
35          
36          this.addHtmlComponent ("body", "javax.faces.OutputBody", "javax.faces.Body");
37          
38          this.addHtmlComponent ("button", "javax.faces.HtmlOutcomeTargetButton", "javax.faces.Button");
39          
40          this.addHtmlComponent("column", "javax.faces.HtmlColumn", null);
41  
42          this.addHtmlComponent("commandButton", "javax.faces.HtmlCommandButton", "javax.faces.Button");
43  
44          this.addHtmlComponent("commandLink", "javax.faces.HtmlCommandLink", "javax.faces.Link");
45  
46          this.addHtmlComponent("dataTable", "javax.faces.HtmlDataTable", "javax.faces.Table");
47  
48          this.addHtmlComponent("form", "javax.faces.HtmlForm", "javax.faces.Form");
49  
50          this.addHtmlComponent("graphicImage", "javax.faces.HtmlGraphicImage", "javax.faces.Image");
51          
52          this.addHtmlComponent ("head", "javax.faces.OutputHead", "javax.faces.Head");
53          
54          this.addHtmlComponent("inputHidden", "javax.faces.HtmlInputHidden", "javax.faces.Hidden");
55  
56          this.addHtmlComponent("inputSecret", "javax.faces.HtmlInputSecret", "javax.faces.Secret");
57  
58          this.addHtmlComponent("inputText", "javax.faces.HtmlInputText", "javax.faces.Text");
59  
60          this.addHtmlComponent("inputTextarea", "javax.faces.HtmlInputTextarea", "javax.faces.Textarea");
61          
62          this.addHtmlComponent ("link", "javax.faces.HtmlOutcomeTargetLink", "javax.faces.Link");
63          
64          this.addHtmlComponent("message", "javax.faces.HtmlMessage", "javax.faces.Message");
65  
66          this.addHtmlComponent("messages", "javax.faces.HtmlMessages", "javax.faces.Messages");
67  
68          this.addHtmlComponent("outputFormat", "javax.faces.HtmlOutputFormat", "javax.faces.Format");
69  
70          this.addHtmlComponent("outputLabel", "javax.faces.HtmlOutputLabel", "javax.faces.Label");
71  
72          this.addHtmlComponent("outputLink", "javax.faces.HtmlOutputLink", "javax.faces.Link");
73          
74          this.addComponent ("outputScript", "javax.faces.Output", "javax.faces.resource.Script", HtmlOutputScriptHandler.class);
75          
76          this.addComponent ("outputStylesheet", "javax.faces.Output", "javax.faces.resource.Stylesheet", HtmlOutputStylesheetHandler.class);
77          
78          this.addHtmlComponent("outputText", "javax.faces.HtmlOutputText", "javax.faces.Text");
79  
80          this.addHtmlComponent("panelGrid", "javax.faces.HtmlPanelGrid", "javax.faces.Grid");
81  
82          this.addHtmlComponent("panelGroup", "javax.faces.HtmlPanelGroup", "javax.faces.Group");
83  
84          this.addHtmlComponent("selectBooleanCheckbox", "javax.faces.HtmlSelectBooleanCheckbox", "javax.faces.Checkbox");
85  
86          this.addHtmlComponent("selectManyCheckbox", "javax.faces.HtmlSelectManyCheckbox", "javax.faces.Checkbox");
87  
88          this.addHtmlComponent("selectManyListbox", "javax.faces.HtmlSelectManyListbox", "javax.faces.Listbox");
89  
90          this.addHtmlComponent("selectManyMenu", "javax.faces.HtmlSelectManyMenu", "javax.faces.Menu");
91  
92          this.addHtmlComponent("selectOneListbox", "javax.faces.HtmlSelectOneListbox", "javax.faces.Listbox");
93  
94          this.addHtmlComponent("selectOneMenu", "javax.faces.HtmlSelectOneMenu", "javax.faces.Menu");
95  
96          this.addHtmlComponent("selectOneRadio", "javax.faces.HtmlSelectOneRadio", "javax.faces.Radio");
97      }
98  
99  }