1 Reply Latest reply on Nov 13, 2009 8:57 AM by Ilya Shaikovsky

    Probelm with rich:fileUpload

    Luke Twardowsky Newbie

      Hello!!

      I'm using RichFaces 3.3.1.

      The code on jsp:

      <h:form id="userDetForm">
      <table class="tableDet">
       <tr>
       <td class="labelCol"><h:outputText value="#{msg.userName}"/></td>
       <td><h:inputText id="usr" value="#{adminBean.usr.usr}" readonly="false"/></td>
       <td rowspan="2">
       <rich:fileUpload acceptedTypes="xls" id="upload" fileUploadListener="#{adminBean.uploadUser}" immediateUpload="true" autoclear="true" addControlLabel="Load" listHeight="60" listWidth="300">
       <a4j:support event="onuploadcomplete" reRender="userDetForm"/>
       </rich:fileUpload>
       </td>
       </tr>
       <tr>
       <td class="labelCol"><h:outputText value="#{msg.descr}"
      /></td>
       <td><h:inputText id="descr" value=" {adminBean.usr.descr}" readonly="true"/></td>
       </tr>
      </table>
      </h:form>
      
      



      In managedBean:
      public String uploadUser(UploadEvent event){
      ...
      usr.setUsr("NotChanged");
      usr.setDescr("Changed");
      ...
      }
      


      The problem is when I upload file and after complete this action only value of descr is refreshed on page. Recently I have noticed that only readonly fields are refreshed. The value of usr doesn't change. Does it work correct?!

      Thanks for all responses,
      Luke