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

    unknown runtime error while uploading file jsf1.2

    kiran.it1981

      Hi

         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">

        <tr>

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

        </tr>

        </table>

        <table class="searchInputMainTable">

        <tr>

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

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

        value="#{userManager.action}">

        <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" />

        </h:selectOneMenu></td>

        </tr>

        <tr>

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

        class="required">*</span>:</td>

        <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" >

      <div>

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

           <br />

           </div>

        </form>

        </a4j:outputPanel>

        </td>

        </tr>

        <tr>

        <td><a4j:commandButton

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

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

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

        oncomplete="hideBusyMask();"

        reRender="resultMsg, createUserOutputPanel">

        </a4j:commandButton></td>

        <td></td>

        </tr>

        </table>

       

       

        </a4j:outputPanel>

        </h:form>

       

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

      Please help

       

      Thanks,

      kiran