title: jsf bean not working
body: <p>This is my xhtml:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"&gt;
      &lt;h:head&gt;
          &lt;title&gt;Keep alive&lt;/title&gt;
      &lt;/h:head&gt;
      &lt;f:metadata&gt;
          &lt;f:viewParam name="value" id="value" value="#{myBean.val}" &gt;&lt;/f:viewParam&gt;
      &lt;/f:metadata&gt;
      &lt;h:body&gt;
  
          Hello.&lt;h:form&gt;&lt;h:outputLabel value="#{myBean.val}"&gt;&lt;/h:outputLabel&gt;&lt;/h:form&gt;
      &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And this is my bean:</p>
  
  <pre><code> import javax.faces.bean.RequestScoped;
      import javax.faces.bean.ManagedBean;
  
          import javax.persistence.EntityManager;
          import javax.persistence.PersistenceContext;
  
  
          @RequestScoped
          @ManagedBean
          public class MyBean {
  
  
          @PersistenceContext(unitName = "myPUhere")
          private EntityManager em;
          /**
           * Creates a new instance of myBean
           */
          public MyBean() {
              System.out.println("mybeanload");
               if (getWaarde() == "yes") {
                  System.out.println("IT WORKS!!");
              }
  
      }
      private String val;
  
      public String getVal() {
          System.out.println("getting value");
          return val;
      }
  
  
  
       public void setVal(String value) {
              System.out.println("setting value to " + value);
              this.val = value;
          }
  }
  </code></pre>
  
  <p>My Bean does not respond to this, what don't I see here? It does not display the value I enter in the URL, nor it displays my outputLabel.</p>