title: Primefaces p:tabView: Value of selectOneMenu lost
body: <p>I have a problem when I use a p:tabView with dynamic="true", and there is a h:selectOneMenu on one tab, and on the other is a commandLink which is ajax="false". After clicking to the commandLink twice the value of the selectOneMenu is lost.</p>
  
  <p>This problem does not occur when the tabView is dynamic="false".</p>
  
  <p>The value of the h:inputText is not lost, but I see the following warning in the logfile:</p>
  
  <pre><code>org.apache.myfaces.shared.renderkit.html.HtmlRendererUtils decodeUIInput WARNING: There should always be a submitted value for an input if it is rendered, its form issubmitted, and it was not originally rendered disabled or read-only.  You cannot submit a form after disabling an input element via javascript.  Consider setting read-only to true instead or resetting the disabled value back to false prior to form submission. Component : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /form/regional/region.xhtml][Class: javax.faces.component.html.HtmlBody,Id: j_id_5][Class: javax.faces.component.html.HtmlForm,Id: TestForm][Class: org.primefaces.component.tabview.TabView,Id: tabviewTest][Class: org.primefaces.component.tabview.Tab,Id: j_id_8][Class: javax.faces.component.html.HtmlInputText,Id: j_id_f]}
  </code></pre>
  
  <p>Here is the form:</p>
  
  <p>
     </p>
  
  <pre><code>  &lt;p:tabView dynamic="true" cache="true" id="tabviewTest"&gt;
       &lt;p:tab title="Tab 1"&gt;
          &lt;h:selectOneMenu value="#{Region.dropDownValue}" id="dropDown"&gt;
             &lt;f:selectItem itemLabel="" itemValue=""/&gt;
             &lt;f:selectItem itemLabel="1" itemValue="1"/&gt;
             &lt;f:selectItem itemLabel="2" itemValue="2"/&gt;
             &lt;f:selectItem itemLabel="3" itemValue="3"/&gt;
             &lt;f:selectItem itemLabel="4" itemValue="4"/&gt;
          &lt;/h:selectOneMenu&gt;
          &lt;h:inputText value="#{Region.inputValue}" /&gt;
       &lt;/p:tab&gt;
       &lt;p:tab title="Tab 2"&gt;
          &lt;p:commandLink ajax="false" 
                         id="link" 
                         value="Test" 
                         actionListener="#{Region.someActionMethod}" /&gt;
       &lt;/p:tab&gt;
  
    &lt;/p:tabView&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>
  
  <p>And here the Bean:</p>
  
  <pre><code>public class Region  {
  
      private Integer dropDownValue = 3;
      private String inputValue = "Test";
  
      public void someActionMethod(ActionEvent ev) {
          System.out.println("someActionMethod called");
      }
  
      public Integer getDropDownValue() {
          return dropDownValue;
      }
  
      public void setDropDownValue(Integer dropDownValue) {
          this.dropDownValue = dropDownValue;
      }
  
      public String getInputValue() {
          return inputValue;
      }
  
      public void setInputValue(String inputValue) {
          this.inputValue = inputValue;
      }  
  }
  </code></pre>
  
  <p>My Environment: Primefaces 5.0/5.1.RC1, Myfaces 2.1/2.2, Tomact 7</p>
  
  <p>Any ideas what could be wrong?</p>