title: Input given in JSF page does not set that value to managed bean variable
body: <p>Am a newbie to JSF. Am using JSF 2 and primefaces 4.0 in my application. As stated in the Title, the input value given in the xhtml page, does not set the value to the ManagedBean. I have tried all the possible combination.</p>
  
  <p><strong>growlMessage.xhtml</strong></p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"&gt;
      &lt;h:head&gt;
  
      &lt;/h:head&gt;
  
     &lt;h:body&gt;
      &lt;h:form&gt; 
    &lt;p:growl id="growl" showDetail="true" sticky="true" /&gt;  
  
      &lt;p:panel id="panelID" header="Growl"&gt;  
          &lt;h:panelGrid columns="2" cellpadding="5"&gt;  
              &lt;h:outputLabel for="msg" value="Message:" /&gt;   
              &lt;p:inputText id="msg" value="#{growlView.message}" required="true" /&gt;  
          &lt;/h:panelGrid&gt;  
        &lt;p:commandButton value="Save" actionListener="#{growlView.saveMessage}"/&gt;  
      &lt;/p:panel&gt; 
  
     &lt;/h:form&gt;  
      &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>`
  <strong>GrowlView.java:</strong></p>
  
  <pre><code>import java.io.Serializable;
  import javax.faces.application.FacesMessage;
  import javax.faces.bean.ManagedBean;
  import javax.faces.bean.ViewScoped;
  import javax.faces.context.FacesContext;
  
  
  @ManagedBean
  @ViewScoped
  public class GrowlView implements Serializable{
  
      private String message;
  
      public GrowlView() {
      }
  
      public String getMessage() {
          return message;
      }
  
      public void setMessage(String message) {
          this.message = message;
      }
  
  
      public void saveMessage(){
          System.out.println("@@@@@  hello");
          System.out.println("@@@@@"+ getMessage());
          FacesContext context = FacesContext.getCurrentInstance();
          context.addMessage(null, new FacesMessage("Successful", "Your message: "+message));
          context.addMessage(null, new FacesMessage("Second message", "Additional Message details"));
       }
    }
  </code></pre>