title: Passing input text value with file upload in primefaces
body: <p>I have the requirement that I have to pass the value of inputText to backing bean which will contain the version of the file along with the file upload.
  I have been trying to achieve it using remote command but not working.</p>
  
  <p>Below is my code: </p>
  
  <pre><code> &lt;h:form enctype="multipart/form-data" id="uploadForm"&gt;
                          &lt;p:growl id="messages" showDetail="true" /&gt;
                          &lt;p:outputLabel for="vers" value="File Version:" /&gt;
                          &lt;p:inputText id="vers" name="vers"
                              value="#{remoteDeployment.uploadedVersion}" placeholder="1.x.x.x"
                              maxlength="17" required="true"
                              requiredMessage="Version is required." /&gt;
                          &lt;p:separator /&gt;
                          &lt;p:fileUpload onstart="submitVersion()"
                              fileUploadListener="#{remoteDeployment.upload}" update="messages" &gt;
                              &lt;f:attribute name="terminalSettings" value="#{as}" /&gt;
                          &lt;/p:fileUpload&gt;
  
  
                          &lt;p:remoteCommand name="submitVersion" process="@this vers" /&gt;
  
                      &lt;/h:form&gt;
  </code></pre>
  
  <p>String in backing bean for input text :</p>
  
  <pre><code>@ViewScoped
      private String uploadedVersion;
      public String getUploadedVersion() {
          return uploadedVersion;
      }
  
      public void setUploadedVersion(String uploadedVersion) {
          this.uploade
  </code></pre>
  
  <p>please help and also let me know if there is any other way of doing it.</p>
  
  <p>Thanks</p>