0 Replies Latest reply on Jun 19, 2008 4:04 PM by Anthony Mattas

    a4j:support Focus Goes Elsewhere

    Anthony Mattas Newbie

      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" />
       <rich:fileUpload id="upload"
       immediateUpload="true" fileUploadListener="#{OrderView.addUpload}"
       disabled="#{fn:length(OrderView.uploadDescription) lt 10}">
       <span id="submitbutton"><h:commandButton value="Done"
       action="success" styleClass="button" /> </span>