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"); ... }
you should use ajaxSingle=true for ajax support.