When I am using the onkeyup event the focus jumps to the done button in the form instead of staying on the h:inputText box, below is the applicable code.
<h:form enctype="multipart/form-data" id="upload"> <h:panelGrid columns="2"> <h:outputText value="Description: " id="description" /> <h:inputText value="#{OrderView.uploadDescription}" id="uploadDescription" immediate="true" > <a4j:support event="onkeyup" reRender="upload" /> </h:inputText> </h:panelGrid> <rich:fileUpload id="upload" immediateUpload="true" fileUploadListener="#{OrderView.addUpload}" disabled="#{fn:length(OrderView.uploadDescription) lt 10}"> </rich:fileUpload> <span id="submitbutton"><h:commandButton value="Done" action="success" styleClass="button" /> </span> </h:form>