7 Replies Latest reply on Feb 2, 2009 2:35 PM by Greg Fasnacht

    Problem with a4j:support event=onuploadcomplete not forcing

    Greg Fasnacht Newbie

      I've added the livedemo code for the fileupload example to my project. When upload completes (according to the fileuploadlistener) the onuploadcomplete should force a rerendering of the info panelgroup. this is not occurring. The only changes I've made to the livedemo code is to add print statements in the backing bean and File.java. Any ideas what might be interfering with the a4j code?

        • 1. Re: Problem with a4j:support event=onuploadcomplete not forc
          Greg Fasnacht Newbie

          More info...it appears as though the information on the just uploaded file is disappearing immediately after the upload completes. Here's the information I see after selecting 4 files and starting the upload:

          09:52:00,339 INFO [STDOUT] fileUploadBean.listener(): entered listener. # files = 0
          09:52:00,339 INFO [STDOUT] File(): setting length '4724'
          09:52:00,339 INFO [STDOUT] File(): setting name 'F:\My Documents\My Pictures\horse01.jpg'
          09:52:00,339 INFO [STDOUT] File(): Added data
          09:52:00,339 INFO [STDOUT] imageDirectory='F:/K2_rc11/server/server/default/data/userimages'
          09:52:00,339 INFO [STDOUT] Saving local file...
          09:52:00,355 INFO [STDOUT] fileUploadBean.listener(): # files = 1, uploads available = '4'
          09:52:01,027 INFO [STDOUT] fileUploadBean.listener(): entered listener. # files = 0
          09:52:01,027 INFO [STDOUT] File(): setting length '2569'
          09:52:01,027 INFO [STDOUT] File(): setting name 'F:\My Documents\My Pictures\horse02.jpg'
          09:52:01,027 INFO [STDOUT] File(): Added data
          09:52:01,027 INFO [STDOUT] imageDirectory='F:/K2_rc11/server/server/default/data/userimages'
          09:52:01,027 INFO [STDOUT] Saving local file...
          09:52:01,027 INFO [STDOUT] fileUploadBean.listener(): # files = 1, uploads available = '4'
          09:52:01,308 INFO [STDOUT] fileUploadBean.listener(): entered listener. # files = 0
          09:52:01,308 INFO [STDOUT] File(): setting length '3125'
          09:52:01,308 INFO [STDOUT] File(): setting name 'F:\My Documents\My Pictures\horse03.jpg'
          09:52:01,308 INFO [STDOUT] File(): Added data
          09:52:01,308 INFO [STDOUT] imageDirectory='F:/K2_rc11/server/server/default/data/userimages'
          09:52:01,308 INFO [STDOUT] Saving local file...
          09:52:01,323 INFO [STDOUT] fileUploadBean.listener(): # files = 1, uploads available = '4'
          09:52:01,573 INFO [STDOUT] fileUploadBean.listener(): entered listener. # files = 0
          09:52:01,573 INFO [STDOUT] File(): setting length '3028'
          09:52:01,573 INFO [STDOUT] File(): setting name 'F:\My Documents\My Pictures\horse04.jpg'
          09:52:01,573 INFO [STDOUT] File(): Added data
          09:52:01,573 INFO [STDOUT] imageDirectory='F:/K2_rc11/server/server/default/data/userimages'
          09:52:01,573 INFO [STDOUT] Saving local file...
          09:52:01,589 INFO [STDOUT] fileUploadBean.listener(): # files = 1, uploads available = '4'

          Notice that the number of files isn't incrementing like I'd expect and the uploads available isn't decrementing...

          • 2. Re: Problem with a4j:support event=onuploadcomplete not forc
            Greg Fasnacht Newbie

            Sorry, one more note...I said in the initial email that I'd not made any changes to the example code...not true. I did add the code to save the file to a specific directory on my filesystem (since the fileupload widget didn't seem to have this functionality). However, the problem I'm seeing existed prior to my change.

            • 3. Re: Problem with a4j:support event=onuploadcomplete not forc
              Ilya Shaikovsky Master

               

              Sorry, one more note...I said in the initial email that I'd not made any changes to the example code...not true. I did add the code to save the file to a specific directory on my filesystem


              Show please actual code snippets. Also have you checked that support actually doesn't fires request at all or maybe it fires but some phases skiped?

              • 4. Re: Problem with a4j:support event=onuploadcomplete not forc
                Greg Fasnacht Newbie

                Ilya, here's the code that I'm referring to (from livedemo example):

                <h:panelGrid columns="2" columnClasses="top,top">
                <rich:fileUpload fileUploadListener="#{fileUploadBean.listener}"
                maxFilesQuantity="#{fileUploadBean.uploadsAvailable}"
                reRender="table" id="upload"
                immediateUpload="#{fileUploadBean.autoUpload}"
                acceptedTypes="jpg, gif, png, bmp">
                <a4j:support event="onuploadcomplete" reRender="info" />
                </rich:fileUpload>
                <h:panelGroup id="info">
                <rich:panel bodyClass="info">
                <f:facet name="header">
                <h:outputText value="Uploaded Files Info" />
                </f:facet>
                <h:outputText value="No files currently uploaded"
                rendered="#{fileUploadBean.size==0}" />
                <rich:dataGrid columns="1" value="#{fileUploadBean.files}"
                var="file" rowKeyVar="row">
                <rich:panel bodyClass="rich-laguna-panel-no-header">
                <h:panelGrid columns="2">
                <a4j:mediaOutput element="img" mimeType="#{file.mime}"


                From the FileUploadBean:

                public synchronized void listener(UploadEvent event) throws Exception{
                System.out.println("fileUploadBean.listener(): entered listener. # files = "+files.size());
                UploadItem item = event.getUploadItem();
                File file = new File();
                file.setLength(item.getData().length);
                file.setName(item.getFileName());
                file.setData(item.getData());
                files.add(file);
                System.out.println("imageDirectory='"+imageDirectory+"'");
                saveLocalFile(file, imageDirectory+stripFilenameFromFullPath(item.getFileName()));
                uploadsAvailable--;
                System.out.println("fileUploadBean.listener(): # files = "+files.size()+", uploads available = '"+uploadsAvailable+"'");
                }

                and my added code:

                public void saveLocalFile(File file, String destination) {
                System.out.println("Saving local file...");
                // Create file
                java.io.File fstream;
                try {
                fstream = new java.io.File(destination);
                FileOutputStream out = new FileOutputStream(fstream);
                out.write(file.getData());
                //Close the output stream
                out.close();
                } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
                }
                }

                private String stripFilenameFromFullPath(String fullpath) {
                String returnVal = fullpath.substring(fullpath.lastIndexOf("\\"));
                return returnVal;
                }

                This is what an added a4j:log showed for the 4-file upload (sorry for the length):

                debug[9:52:00,261]: Query preparation for form 'j_id1' requested
                debug[9:52:00,261]: Append hidden control j_id1 with value [j_id1] and value attribute [j_id1]
                debug[9:52:00,261]: Append file control j_id1:upload:file with value [F:\My Documents\My Pictures\horse01.jpg] and value attribute [F:\My Documents\My Pictures\horse01.jpg]
                debug[9:52:00,261]: Append file control j_id1:upload:file with value [F:\My Documents\My Pictures\horse02.jpg] and value attribute [F:\My Documents\My Pictures\horse02.jpg]
                debug[9:52:00,261]: Append file control j_id1:upload:file with value [F:\My Documents\My Pictures\horse03.jpg] and value attribute [F:\My Documents\My Pictures\horse03.jpg]
                debug[9:52:00,261]: Append file control j_id1:upload:file with value [F:\My Documents\My Pictures\horse04.jpg] and value attribute [F:\My Documents\My Pictures\horse04.jpg]
                debug[9:52:00,261]: Append file control j_id1:upload:file with value [] and value attribute []
                debug[9:52:00,261]: Append hidden control javax.faces.ViewState with value [j_id1] and value attribute [j_id1]
                debug[9:52:00,261]: parameter ajaxSingle with value j_id1:upload
                debug[9:52:00,261]: parameter action with value progress
                debug[9:52:00,261]: parameter j_id1:upload with value j_id1:upload
                debug[9:52:00,261]: parameter _richfaces_upload_uid with value 0.7287834783574374
                debug[9:52:00,261]: Look up queue with default name
                debug[9:52:00,277]: NEW AJAX REQUEST !!! with form: j_id1
                debug[9:52:00,323]: Start XmlHttpRequest
                debug[9:52:00,323]: Reqest state : 1
                debug[9:52:00,323]: QueryString: AJAXREQUEST=_viewRoot&j_id1=j_id1&j_id1%3Aupload%3Afile=F%3A%5CMy%20Documents%5CMy%20Pictures%5Chorse01.jpg&j_id1%3Aupload%3Afile=F%3A%5CMy%20Documents%5CMy%20Pictures%5Chorse02.jpg&j_id1%3Aupload%3Afile=F%3A%5CMy%20Documents%5CMy%20Pictures%5Chorse03.jpg&j_id1%3Aupload%3Afile=F%3A%5CMy%20Documents%5CMy%20Pictures%5Chorse04.jpg&j_id1%3Aupload%3Afile=&javax.faces.ViewState=j_id1&ajaxSingle=j_id1%3Aupload&action=progress&j_id1%3Aupload=j_id1%3Aupload&_richfaces_upload_uid=0.7287834783574374&
                debug[9:52:00,558]: Reqest state : 2
                debug[9:52:00,558]: Reqest state : 3
                debug[9:52:00,558]: Reqest state : 4
                debug[9:52:00,558]: Reqest end with state 4
                debug[9:52:00,558]: Response with content-type: text/xml;charset=UTF-8
                debug[9:52:00,558]: Full response content: <?xml version="1.0"?>


                <![CDATA[ 5165 ]]>
                debug[9:52:00,558]: Header Ajax-Expired not found, search in
                debug[9:52:00,558]: search for elements by name 'meta' in element #document
                debug[9:52:00,589]: Find
                debug[9:52:00,589]: Find
                debug[9:52:00,589]: call selectSingleNode for id= _ajax:data
                debug[9:52:00,589]: Call local onbeforedomupdate function before replacing elemements
                debug[9:52:00,589]: Header Ajax-Update-Ids not found, search in
                debug[9:52:00,589]: search for elements by name 'meta' in element #document
                debug[9:52:00,589]: Find
                warn[9:52:00,589]: No information in response about elements to replace
                debug[9:52:00,589]: call selectSingleNode for id= org.ajax4jsf.oncomplete
                debug[9:52:00,589]: Processing updates finished, no oncomplete function to call
                debug[9:52:00,589]: call selectSingleNode for id= ajax-view-state
                debug[9:52:00,589]: Hidden JSF state fields:
                debug[9:52:00,605]: Namespace for hidden view-state input fields is undefined
                debug[9:52:00,605]: search for elements by name 'input' in element span
                debug[9:52:00,605]: Replace value for inputs: 7 by new values: 1
                debug[9:52:00,605]: Input in response: javax.faces.ViewState
                debug[9:52:00,605]: Found same input on page with type: hidden
                debug[9:52:00,605]: search for elements by name 'INPUT' in element span
                debug[9:52:00,605]: Replace value for inputs: 7 by new values: 0
                debug[9:52:00,605]: call selectSingleNode for id= _A4J.AJAX.focus
                debug[9:52:00,605]: No focus information in response
                debug[9:52:00,980]: Query preparation for form 'j_id1' requested
                debug[9:52:00,980]: Append hidden control j_id1 with value [j_id1] and value attribute [j_id1]
                debug[9:52:00,980]: Append file control j_id1:upload:file with value [F:\My Documents\My Pictures\horse02.jpg] and value attribute [F:\My Documents\My Pictures\horse02.jpg]
                debug[9:52:00,980]: Append file control j_id1:upload:file with value [F:\My Documents\My Pictures\horse03.jpg] and value attribute [F:\My Documents\My Pictures\horse03.jpg]
                debug[9:52:00,980]: Append file control j_id1:upload:file with value [F:\My Documents\My Pictures\horse04.jpg] and value attribute [F:\My Documents\My Pictures\horse04.jpg]
                debug[9:52:00,980]: Append file control j_id1:upload:file with value [] and value attribute []
                debug[9:52:00,980]: Append hidden control javax.faces.ViewState with value [j_id1] and value attribute [j_id1]
                debug[9:52:00,980]: parameter ajaxSingle with value j_id1:upload
                debug[9:52:00,980]: parameter action with value progress
                debug[9:52:00,980]: parameter j_id1:upload with value j_id1:upload
                debug[9:52:00,980]: parameter _richfaces_upload_uid with value 0.943283651456887
                debug[9:52:00,980]: Look up queue with default name
                debug[9:52:00,995]: NEW AJAX REQUEST !!! with form: j_id1
                debug[9:52:01,011]: Start XmlHttpRequest
                debug[9:52:01,011]: Reqest state : 1
                debug[9:52:01,011]: QueryString: AJAXREQUEST=_viewRoot&j_id1=j_id1&j_id1%3Aupload%3Afile=F%3A%5CMy%20Documents%5CMy%20Pictures%5Chorse02.jpg&j_id1%3Aupload%3Afile=F%3A%5CMy%20Documents%5CMy%20Pictures%5Chorse03.jpg&j_id1%3Aupload%3Afile=F%3A%5CMy%20Documents%5CMy%20Pictures%5Chorse04.jpg&j_id1%3Aupload%3Afile=&javax.faces.ViewState=j_id1&ajaxSingle=j_id1%3Aupload&action=progress&j_id1%3Aupload=j_id1%3Aupload&_richfaces_upload_uid=0.943283651456887&
                debug[9:52:01,042]: Reqest state : 2
                debug[9:52:01,042]: Reqest state : 3
                debug[9:52:01,042]: Reqest state : 4
                debug[9:52:01,042]: Reqest end with state 4
                debug[9:52:01,042]: Response with content-type: text/xml;charset=UTF-8
                debug[9:52:01,058]: Full response content: <?xml version="1.0"?>









                <![CDATA[ 3014 ]]>
                debug[9:52:01,058]: Header Ajax-Expired not found, search in
                debug[9:52:01,058]: search for elements by name 'meta' in element #document
                debug[9:52:01,058]: Find
                debug[9:52:01,058]: Find
                debug[9:52:01,058]: call selectSingleNode for id= _ajax:data
                debug[9:52:01,058]: Call local onbeforedomupdate function before replacing elemements
                debug[9:52:01,058]: Header Ajax-Update-Ids not found, search in
                debug[9:52:01,058]: search for elements by name 'meta' in element #document
                debug[9:52:01,058]: Find
                warn[9:52:01,058]: No information in response about elements to replace
                debug[9:52:01,058]: call selectSingleNode for id= org.ajax4jsf.oncomplete
                debug[9:52:01,058]: Processing updates finished, no oncomplete function to call
                debug[9:52:01,058]: call selectSingleNode for id= ajax-view-state
                debug[9:52:01,058]: Hidden JSF state fields:
                debug[9:52:01,058]: Namespace for hidden view-state input fields is undefined
                debug[9:52:01,058]: search for elements by name 'input' in element span
                debug[9:52:01,058]: Replace value for inputs: 6 by new values: 1
                debug[9:52:01,058]: Input in response: javax.faces.ViewState
                debug[9:52:01,058]: Found same input on page with type: hidden
                debug[9:52:01,058]: search for elements by name 'INPUT' in element span
                debug[9:52:01,058]: Replace value for inputs: 6 by new values: 0
                debug[9:52:01,058]: call selectSingleNode for id= _A4J.AJAX.focus
                debug[9:52:01,058]: No focus information in response
                debug[9:52:01,277]: Query preparation for form 'j_id1' requested
                debug[9:52:01,277]: Append hidden control j_id1 with value [j_id1] and value attribute [j_id1]
                debug[9:52:01,277]: Append file control j_id1:upload:file with value [F:\My Documents\My Pictures\horse03.jpg] and value attribute [F:\My Documents\My Pictures\horse03.jpg]
                debug[9:52:01,277]: Append file control j_id1:upload:file with value [F:\My Documents\My Pictures\horse04.jpg] and value attribute [F:\My Documents\My Pictures\horse04.jpg]
                debug[9:52:01,277]: Append file control j_id1:upload:file with value [] and value attribute []
                debug[9:52:01,277]: Append hidden control javax.faces.ViewState with value [j_id1] and value attribute [j_id1]
                debug[9:52:01,277]: parameter ajaxSingle with value j_id1:upload
                debug[9:52:01,277]: parameter action with value progress
                debug[9:52:01,277]: parameter j_id1:upload with value j_id1:upload
                debug[9:52:01,277]: parameter _richfaces_upload_uid with value 0.08158343641389232
                debug[9:52:01,277]: Look up queue with default name
                debug[9:52:01,277]: NEW AJAX REQUEST !!! with form: j_id1
                debug[9:52:01,277]: Start XmlHttpRequest
                debug[9:52:01,277]: Reqest state : 1
                debug[9:52:01,277]: QueryString: AJAXREQUEST=_viewRoot&j_id1=j_id1&j_id1%3Aupload%3Afile=F%3A%5CMy%20Documents%5CMy%20Pictures%5Chorse03.jpg&j_id1%3Aupload%3Afile=F%3A%5CMy%20Documents%5CMy%20Pictures%5Chorse04.jpg&j_id1%3Aupload%3Afile=&javax.faces.ViewState=j_id1&ajaxSingle=j_id1%3Aupload&action=progress&j_id1%3Aupload=j_id1%3Aupload&_richfaces_upload_uid=0.08158343641389232&
                debug[9:52:01,323]: Reqest state : 2
                debug[9:52:01,323]: Reqest state : 3
                debug[9:52:01,323]: Reqest state : 4
                debug[9:52:01,323]: Reqest end with state 4
                debug[9:52:01,323]: Response with content-type: text/xml;charset=UTF-8
                debug[9:52:01,323]: Full response content: <?xml version="1.0"?>









                <![CDATA[ 3570 ]]>
                debug[9:52:01,323]: Header Ajax-Expired not found, search in
                debug[9:52:01,323]: search for elements by name 'meta' in element #document
                debug[9:52:01,323]: Find
                debug[9:52:01,323]: Find
                debug[9:52:01,339]: call selectSingleNode for id= _ajax:data
                debug[9:52:01,339]: Call local onbeforedomupdate function before replacing elemements
                debug[9:52:01,339]: Header Ajax-Update-Ids not found, search in
                debug[9:52:01,339]: search for elements by name 'meta' in element #document
                debug[9:52:01,339]: Find
                warn[9:52:01,339]: No information in response about elements to replace
                debug[9:52:01,339]: call selectSingleNode for id= org.ajax4jsf.oncomplete
                debug[9:52:01,339]: Processing updates finished, no oncomplete function to call
                debug[9:52:01,339]: call selectSingleNode for id= ajax-view-state
                debug[9:52:01,339]: Hidden JSF state fields:
                debug[9:52:01,339]: Namespace for hidden view-state input fields is undefined
                debug[9:52:01,339]: search for elements by name 'input' in element span
                debug[9:52:01,339]: Replace value for inputs: 5 by new values: 1
                debug[9:52:01,339]: Input in response: javax.faces.ViewState
                debug[9:52:01,339]: Found same input on page with type: hidden
                debug[9:52:01,339]: search for elements by name 'INPUT' in element span
                debug[9:52:01,339]: Replace value for inputs: 5 by new values: 0
                debug[9:52:01,339]: call selectSingleNode for id= _A4J.AJAX.focus
                debug[9:52:01,339]: No focus information in response
                debug[9:52:01,495]: Query preparation for form 'j_id1' requested
                debug[9:52:01,495]: Append hidden control j_id1 with value [j_id1] and value attribute [j_id1]
                debug[9:52:01,495]: Append file control j_id1:upload:file with value [F:\My Documents\My Pictures\horse04.jpg] and value attribute [F:\My Documents\My Pictures\horse04.jpg]
                debug[9:52:01,495]: Append file control j_id1:upload:file with value [] and value attribute []
                debug[9:52:01,495]: Append hidden control javax.faces.ViewState with value [j_id1] and value attribute [j_id1]
                debug[9:52:01,495]: parameter ajaxSingle with value j_id1:upload
                debug[9:52:01,495]: parameter action with value progress
                debug[9:52:01,495]: parameter j_id1:upload with value j_id1:upload
                debug[9:52:01,495]: parameter _richfaces_upload_uid with value 0.7311745659459361
                debug[9:52:01,495]: Look up queue with default name
                debug[9:52:01,495]: NEW AJAX REQUEST !!! with form: j_id1
                debug[9:52:01,527]: Start XmlHttpRequest
                debug[9:52:01,527]: Reqest state : 1
                debug[9:52:01,527]: QueryString: AJAXREQUEST=_viewRoot&j_id1=j_id1&j_id1%3Aupload%3Afile=F%3A%5CMy%20Documents%5CMy%20Pictures%5Chorse04.jpg&j_id1%3Aupload%3Afile=&javax.faces.ViewState=j_id1&ajaxSingle=j_id1%3Aupload&action=progress&j_id1%3Aupload=j_id1%3Aupload&_richfaces_upload_uid=0.7311745659459361&
                debug[9:52:01,589]: Reqest state : 2
                debug[9:52:01,589]: Reqest state : 3
                debug[9:52:01,589]: Reqest state : 4
                debug[9:52:01,589]: Reqest end with state 4
                debug[9:52:01,589]: Response with content-type: text/xml;charset=UTF-8
                debug[9:52:01,589]: Full response content: <?xml version="1.0"?>









                <![CDATA[ 3473 ]]>
                debug[9:52:01,589]: Header Ajax-Expired not found, search in
                debug[9:52:01,589]: search for elements by name 'meta' in element #document
                debug[9:52:01,589]: Find
                debug[9:52:01,589]: Find
                debug[9:52:01,589]: call selectSingleNode for id= _ajax:data
                debug[9:52:01,589]: Call local onbeforedomupdate function before replacing elemements
                debug[9:52:01,589]: Header Ajax-Update-Ids not found, search in
                debug[9:52:01,589]: search for elements by name 'meta' in element #document
                debug[9:52:01,589]: Find
                warn[9:52:01,589]: No information in response about elements to replace
                debug[9:52:01,589]: call selectSingleNode for id= org.ajax4jsf.oncomplete
                debug[9:52:01,605]: Processing updates finished, no oncomplete function to call
                debug[9:52:01,605]: call selectSingleNode for id= ajax-view-state
                debug[9:52:01,605]: Hidden JSF state fields:
                debug[9:52:01,605]: Namespace for hidden view-state input fields is undefined
                debug[9:52:01,605]: search for elements by name 'input' in element span
                debug[9:52:01,605]: Replace value for inputs: 4 by new values: 1
                debug[9:52:01,605]: Input in response: javax.faces.ViewState
                debug[9:52:01,605]: Found same input on page with type: hidden
                debug[9:52:01,605]: search for elements by name 'INPUT' in element span
                debug[9:52:01,605]: Replace value for inputs: 4 by new values: 0
                debug[9:52:01,605]: call selectSingleNode for id= _A4J.AJAX.focus
                debug[9:52:01,605]: No focus information in response
                debug[9:52:01,714]: Have Event [object Object] with properties: target: [object], srcElement: [object], type: dataavailable
                debug[9:52:01,714]: Query preparation for form 'j_id1' requested
                debug[9:52:01,730]: Append hidden control j_id1 with value [j_id1] and value attribute [j_id1]
                debug[9:52:01,730]: Append file control j_id1:upload:file with value [] and value attribute []
                debug[9:52:01,730]: Append hidden control javax.faces.ViewState with value [j_id1] and value attribute [j_id1]
                debug[9:52:01,730]: parameter j_id1:j_id3 with value j_id1:j_id3
                debug[9:52:01,730]: Look up queue with default name
                debug[9:52:01,730]: NEW AJAX REQUEST !!! with form: j_id1
                debug[9:52:01,730]: Start XmlHttpRequest
                debug[9:52:01,730]: Reqest state : 1
                debug[9:52:01,730]: QueryString: AJAXREQUEST=_viewRoot&j_id1=j_id1&j_id1%3Aupload%3Afile=&javax.faces.ViewState=j_id1&j_id1%3Aj_id3=j_id1%3Aj_id3&
                debug[9:52:01,808]: Reqest state : 2
                debug[9:52:01,808]: Reqest state : 3
                debug[9:52:01,808]: Reqest state : 4
                debug[9:52:01,808]: Reqest end with state 4
                debug[9:52:01,808]: Response with content-type: text/xml;charset=UTF-8
                debug[9:52:01,808]: Full response content: <?xml version="1.0"?>









                Uploaded Files InfoNo files currently uploaded
                debug[9:52:01,808]: Header Ajax-Expired not found, search in
                debug[9:52:01,808]: search for elements by name 'meta' in element #document
                debug[9:52:01,808]: Find
                debug[9:52:01,808]: Find
                debug[9:52:01,808]: Header Ajax-Update-Ids not found, search in
                debug[9:52:01,808]: search for elements by name 'meta' in element #document
                debug[9:52:01,808]: Find
                debug[9:52:01,808]: Update page by list of rendered areas from response j_id1:info
                debug[9:52:01,808]: search for elements by name 'script' in element #document
                debug[9:52:01,808]: in response with src=/afewcis2/a4j/g/3_3_0.CR3org.ajax4jsf.javascript.PrototypeScript.jsf
                debug[9:52:01,808]: Such element exist in document
                debug[9:52:01,808]: in response with src=/afewcis2/a4j/g/3_3_0.CR3org.ajax4jsf.javascript.AjaxScript.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,823]: in response with src=/afewcis2/a4j/g/3_3_0.CR3org/richfaces/renderkit/html/scripts/utils.js.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,823]: in response with src=/afewcis2/a4j/g/3_3_0.CR3org/richfaces/renderkit/html/scripts/json/json-dom.js.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,823]: in response with src=/afewcis2/a4j/g/3_3_0.CR3org/richfaces/renderkit/html/js/FileUpload.js.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,823]: in response with src=/afewcis2/a4j/g/3_3_0.CR3org/richfaces/renderkit/html/js/swfobject.js.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,823]: in response with src=/afewcis2/a4j/g/3_3_0.CR3org/richfaces/renderkit/html/js/progressBar.js.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,823]: in response with src=/afewcis2/a4j/g/3_3_0.CR3org/ajax4jsf/javascript/scripts/form.js.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,823]: in response with src=/afewcis2/a4j/g/3_3_0.CR3org/richfaces/renderkit/html/scripts/skinning.js.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,823]: search for elements by name 'link' in element #document
                debug[9:52:01,823]: in response with src=/afewcis2/a4j/s/3_3_0.CR3org/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAHzf9rGE7p8hjQAELcDdg__.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,823]: in response with src=/afewcis2/a4j/s/3_3_0.CR3org/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAHzf9rGE7p8hjQAELcDdg__.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,823]: in response with src=/afewcis2/a4j/s/3_3_0.CR3org/richfaces/renderkit/html/css/fileUpload.xcss/DATB/eAHzf9rGE7p8hjQAELcDdg__.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,823]: in response with src=/afewcis2/a4j/s/3_3_0.CR3org/richfaces/renderkit/html/css/progressBar.xcss/DATB/eAHzf9rGE7p8hjQAELcDdg__.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,823]: in response with src=/afewcis2/a4j/s/3_3_0.CR3css/panel.xcss/DATB/eAHzf9rGE7p8hjQAELcDdg__.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,823]: in response with src=/afewcis2/a4j/s/3_3_0.CR3css/table.xcss/DATB/eAHzf9rGE7p8hjQAELcDdg__.jsf
                debug[9:52:01,823]: Such element exist in document
                debug[9:52:01,839]: call selectSingleNode for id= org.ajax4jsf.queue_script
                debug[9:52:01,839]: Update page part from call parameter for ID j_id1:info
                debug[9:52:01,839]: call selectSingleNode for id= j_id1:info
                debug[9:52:01,839]: Replace content of node by outerHTML()
                debug[9:52:01,839]: search for elements by name 'script' in element span
                debug[9:52:01,839]: Scripts in updated part count : 0
                debug[9:52:01,839]: call selectSingleNode for id= org.ajax4jsf.oncomplete
                debug[9:52:01,839]: Processing updates finished, no oncomplete function to call
                debug[9:52:01,839]: Update part of page for Id: j_id1:info successful
                debug[9:52:01,839]: call selectSingleNode for id= ajax-view-state
                debug[9:52:01,839]: Hidden JSF state fields:
                debug[9:52:01,839]: Namespace for hidden view-state input fields is undefined
                debug[9:52:01,839]: search for elements by name 'input' in element span
                debug[9:52:01,839]: Replace value for inputs: 3 by new values: 1
                debug[9:52:01,839]: Input in response: javax.faces.ViewState
                debug[9:52:01,839]: Found same input on page with type: hidden
                debug[9:52:01,839]: search for elements by name 'INPUT' in element span
                debug[9:52:01,839]: Replace value for inputs: 3 by new values: 0
                debug[9:52:01,839]: call selectSingleNode for id= _A4J.AJAX.focus
                debug[9:52:01,839]: No focus information in response

                • 5. Re: Problem with a4j:support event=onuploadcomplete not forc
                  Ilya Shaikovsky Master

                  ok.. please also provide environment info and web.xml code

                  • 6. Re: Problem with a4j:support event=onuploadcomplete not forc
                    Greg Fasnacht Newbie

                    Running in Eclipse with jboss software from here:

                    http://download.jboss.org/jbosstools/updates/stable

                    I tried to get you a list of all eclipse installed software but couldn't figure out how to copy/paste.

                    web.xml:

                    <?xml version="1.0"?>
                    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
                    Facelets StarterKit
                    <display-name>afewcis2</display-name>
                    <context-param>
                    <param-name>org.richfaces.SKIN</param-name>
                    <param-value>silver</param-value>
                    </context-param>
                    <context-param>
                    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                    <param-value>.xhtml</param-value>
                    </context-param>
                    <context-param>
                    <param-name>facelets.REFRESH_PERIOD</param-name>
                    <param-value>2</param-value>
                    </context-param>
                    <context-param>
                    <param-name>facelets.DEVELOPMENT</param-name>
                    <param-value>true</param-value>
                    </context-param>
                    <context-param>
                    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                    <param-value>server</param-value>
                    </context-param>
                    <context-param>
                    <param-name>com.sun.faces.validateXml</param-name>
                    <param-value>true</param-value>
                    </context-param>
                    <context-param>
                    <param-name>com.sun.faces.verifyObjects</param-name>
                    <param-value>true</param-value>
                    </context-param>
                    <context-param>
                    <param-name>userImagesDirectory</param-name>
                    <param-value>F:/K2_rc11/server/server/default/data/userimages</param-value>
                    </context-param>
                    <context-param>
                    <param-name>userImagesUrl</param-name>
                    <param-value>/userimages</param-value>
                    </context-param>

                    <display-name>RichFaces Filter</display-name>
                    <filter-name>richfaces</filter-name>
                    <filter-class>org.ajax4jsf.Filter</filter-class>
                    <init-param>
                    <param-name>createTempFiles</param-name>
                    <param-value>false</param-value>
                    </init-param>
                    <init-param>
                    <param-name>maxRequestSize</param-name>
                    <param-value>5000000</param-value>
                    </init-param>

                    <filter-mapping>
                    <filter-name>richfaces</filter-name>
                    <servlet-name>Faces Servlet</servlet-name>
                    REQUEST
                    FORWARD
                    INCLUDE
                    </filter-mapping>

                    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>


                    <servlet-name>Faces Servlet</servlet-name>
                    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                    <load-on-startup>1</load-on-startup>

                    <servlet-mapping>
                    <servlet-name>Faces Servlet</servlet-name>
                    <url-pattern>*.jsf</url-pattern>
                    </servlet-mapping>
                    <login-config>
                    <auth-method>BASIC</auth-method>
                    </login-config>
                    </web-app>

                    [/img]

                    • 7. Re: Problem with a4j:support event=onuploadcomplete not forc
                      Greg Fasnacht Newbie

                      Ilya, in case it helps, here's a list of the jars in my webapp library...

                      asm-attrs.jar
                      asm.jar
                      jsf-facelets.jar
                      jta.jar
                      lucene-core-2.2.0.jar
                      richfaces-api-3.3.0.CR3.jar
                      richfaces-impl-3.3.0.CR3.jar
                      richfaces-ui-3.3.0.CR3.jar
                      xerces-2.6.2.jar
                      xml-apis.jar