title: Making valueChangeListener on h:inputHidden fire a ManagedBean method
body: <p>My JavaScript:</p>
  
  <pre><code>function setJson(value) {
          document.getElementById("json").value = value;
      }
  </code></pre>
  
  <p>My XHTML:</p>
  
  <pre><code>&lt;h:inputHidden id="json" value="#{indexManaged.json}" valueChangeListener="#{indexManaged.goTo('datatable')}" /&gt;
  </code></pre>
  
  <p>My ManagedBean:</p>
  
  <pre><code>@ManagedBean
  @ViewScoped
  public class IndexManaged implements Serializable {
  
      private String json;
      public String getJson() { return json; }
      public void setJson(String json) { this.json = json; }
  
      public String goTo(String page) {
          Flash flash = FacesContext.getCurrentInstance().getExternalContext().getFlash();
          flash.put("json", json);
          return page + "?faces-redirect=true";
      }
  }
  </code></pre>
  
  <p>The scenario:</p>
  
  <p>I have a Java Applet that fires the function setJson(value). But when the applet sets a new value to my inputHidden, isn't the valueChangeListener suposed to fire my ManagedBean method? What am I doing wrong?</p>