0 Replies Latest reply on Nov 4, 2014 7:41 AM by kiran kumar

    unknown runtime error while uploading file jsf1.2

    kiran kumar Newbie


         I'm new to jsf i'm working on jsf1.2 ,i was trying to upload a file .But i'm getting script error

      in IE 7.0,but it working fine in mozilla.Please help me.

      When i tried to change the drop for bulkcreate showing script error.


      Please find the xhtml code


      <h:form id="searchUserForm">

        <a4j:outputPanel id="searchUserInputPanel">

        <table class="searchInputHeadingTable">


        <td><b> Search User </b></td>



        <table class="searchInputMainTable">


        <td><span class="maxCharText">Action:</span></td>

        <td><h:selectOneMenu styleClass="standalone-select"


        <f:selectItem itemLabel="Create" itemValue="C" />

        <f:selectItem itemLabel="Update" itemValue="U" />

        <f:selectItem itemLabel="Bulk Create" itemValue="BU" />

        <a4j:support event="onchange" reRender="searchUserInputPanel" />




        <td><span class="maxCharText">Username</span><span


        <td><h:inputText size="60" id="newUserName"

        maxlength="1000" value="#{userManager.username}" />


        <h:messages />



        <a4j:outputPanel rendered="#{userManager.action == 'BU'}">

        <div><span class="maxCharText">And/Or</span></div>

        <form  id="uploaderForm" action="#{request.contextPath}/FileUploadServlet"  method="post" enctype="multipart/form-data" >


               <input type="file" id="uploadFileField" name="upload" onchange="jQuery('#uploaderForm').submit();" />

           <br />








        styleClass="cmdButton ui-button ui-widget ui-state-default ui-corner-all"

        id="searchBtn" value="Go" action="#{userManager.searchUser}"

        onclick="setHiddenValue();showBusyMask('Loading ...');"


        reRender="resultMsg, createUserOutputPanel">










      If i remove the file uploading code ,it showing fine seems there is a problem in file uploading .

      Please help