title: Why isn't my <h:form> visible?
body: <p>I'm trying to follow this tutorial on jsf: <a href="https://netbeans.org/kb/docs/web/jsf20-intro.html" rel="nofollow">https://netbeans.org/kb/docs/web/jsf20-intro.html</a></p>
  
  <p>In the "Wiring Managed Beans to Pages" chapter you have to switch the HTML form element for an equivalent JSF HTML form component. But after I do so (simply commenting/uncommenting already present code) it isn't visible.</p>
  
  <p>I've added <code>xmlns:h="http://xmlns.jcp.org/jsf/html"</code> to the html tag; I get no errors from the IDE; the form shows up in inspect element; I've also tried <code>xmlns:h="http://java.sun.com/jsf/html"</code> instead, but still nothing.</p>
  
  <p>Here's my page:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://xmlns.jcp.org/jsf/html"&gt;
  &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
      &lt;link href="css/stylesheet.css" rel="stylesheet" type="text/css" /&gt;
      &lt;!--&lt;h:outputStylesheet name="css/stylesheet.css" /&gt;--&gt;
  
      &lt;title&gt;Greeting&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;div id="mainContainer"&gt;
  
          &lt;div id="left" class="subContainer greyBox"&gt;
  
              &lt;h4&gt;Hi, my name is Duke!&lt;/h4&gt;
  
              &lt;h5&gt;I'm thinking of a number
  
                  &lt;br/&gt;
                  between
                  &lt;span class="highlight"&gt;0&lt;/span&gt; and
                  &lt;span class="highlight"&gt;10&lt;/span&gt;.&lt;/h5&gt;
  
              &lt;h5&gt;Can you guess it?&lt;/h5&gt;
  
              &lt;!-- &lt;form action="response.xhtml"&gt;
                  &lt;input type="text" size="2" maxlength="2" /&gt;
                  &lt;input type="submit" value="submit" /&gt;
              &lt;/form&gt;--&gt;
  
              &lt;h:form&gt;
                  &lt;h:inputText id="userNumber"
                               size="2"
                               maxlength="2"
                               value="#{UserNumberBean.userNumber}"/&gt;
  
                  &lt;h:commandButton id="submit" value="submit" action="response"/&gt;
              &lt;/h:form&gt;
          &lt;/div&gt;
  
          &lt;div id="right" class="subContainer"&gt;
  
              &lt;img src="duke.png" alt="Duke waving" /&gt;
              &lt;!--&lt;h:graphicImage url="/duke.png" alt="Duke waving" /&gt;--&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>web.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app version="3.0"
           xmlns="http://java.sun.com/xml/ns/javaee" 
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
           xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
           http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"&gt;
  
      &lt;context-param&gt;
          &lt;param-name&gt;javax.faces.PROJECT_STAGE&lt;/param-name&gt;
          &lt;param-value&gt;Development&lt;/param-value&gt;
      &lt;/context-param&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;faces/index.xhtml&lt;/welcome-file&gt;
          &lt;welcome-file&gt;index.xhtml&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  </code></pre>