>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

Better File Uploads with AJAX and JavaServer Faces - comsunfaceslifecyclelifecycleimpl view comsunfacesapplicationviewhandlerimpl entering comsunfacescontextfacescontextimpl viewid summaryjsp component

 
Registered tutorials: 501
Registered Users: 33128



Rating: 4.67 out of 3 votes cast


  
Category: Ajax and Java

Tags Map

ac add addition ajax ajp align alvejava apache api appending application applyrequestvaluesphase article ava ba bar bars based bee beeec behavior bfcd binding bit blueprints boolean browser build button bytes bytescountingoutputstream caching call called case catalog ccf ce character check class classes clear client clientid code commons compile compiling complete completed component componentgetclientidcontext components comsunfacesapplicationstatemanagerimpl comsunfacesapplicationviewhandlerimpl comsunfacescontextfacescontextimpl comsunfaceslifecycleapplyrequestvaluesphase comsunfaceslifecyclelifecycleimpl comsunfaceslifecycleprocessvalidationsphase comsunfaceslifecyclerestoreviewphase comsunfaceslifecycleupdatemodelvaluesphase comsunfacesrenderkithtmlbasicformrenderer config configuration content context copy correct correctly create creating creator current decode decoding default dependencies deploy description dir directory disaplying diskfileitem display displayed double downloaded eclipse ed enabled encoding encountered entering entire environment error events excellent exception executecomsunfacescontextfacescontextimpl executing exiting extcontextgetsessionmapputfileuploadprogress extends faces facesservlet fact fdcd feaf feedback ff field fieldname figure file fileitem files fileupload filter find form forwarding full getformjs getstorelocation great handle handling header hservletexternalcontextimpljava html http httpservletrequest icationfilterchainjava id ifpercentage iframe ilterchainjava impl implement implementation implementing included incorporate indexjspx information infos input inputgetclientidcontext instance io ioexception iso item jar java javalangthreadrunthreadjava javanet javascript javaserver javasuncomxmlnsjee javaxfaceswebappfacesservletservicefacesservletjava javaxservlethttphttpservletservicehttpservletjava jsf jsp jspx keeped kooss large length libraries library line location logging long lot map mapping message method missing monitor move multipart myfaces navigation nohacks normal notice null number object observer order orgapachecatalinacoreapplicationfilterchaindofilterapplicationf orgapachecatalinacoreapplicationfilterchaindofilterapplicationfilterchainjava orgapachecatalinacoreapplicationfilterchaininternaldofilterappl orgapachecatalinacoreapplicationfilterchaininternaldofilterapplicationfilterchainjava orgapachecatalinacorestandardpipelineinvokestandardpipelinejava orgapachecatalinacorestandardvalvecontextinvokenextstandardvalvecontextjava orgapachecoyotehttphttpprocessorprocesshttpprocessorjava orgapachejasperservletjspservletservicejspfilejspservletjava orgapachejasperservletjspservletservicejspservletjava orgapachemyfacescontextservletservletexternalcontextimpldispatc outputstream page pages panelgroup part pathinfo pattern percentage phaseapplyrequestvalues phaselistener phaseprocessvalidations phaserestoreview phaseupdatemodelvalues place pm portlet postback private problem process processing processvalidationsphase progress progressmonitorfileitem progressmonitorfileitemfactory progressobserver project provide public quit received redirect ref reference render rendercomsunfacescontextfacescontextimpl renderer rendering reply request requests required reset resource resources response responsible restored restoreviewphase restoring return returning run running santhosh santhoshraj selected send server servlet servletfileupload servletpath servletservice session sessionupdatingprogressobserver set sets side site size solution source stage stages start starting status steps string studio submit submitted successfully suffix summary summaryform summaryjsp summaryjspx sun support tag takes temporary temporarydirectory terms tested theme thnx threw throws time tobago tomahawk tomcat type uicomponent uifileupload underlying update updatemodelvaluesphase updates upload uploadbean uploadcomponentindexjsp uploaded uploading uploadmultipartfilter uploadmultipartrequestwrapper uploads uploaduploadmultipartfilterdofilteruploadmultipartfilterjava url user valdarez validation var version view viewid void war web webxml work worked working works write writerstartelementdiv writerwriteattributeid writerwriteattributestyledisplay wrong xml

Keyword Cloud Navigation Map

Better File Uploads with AJAX and JavaServer Faces

Digg this   Post to del.icio.us

Abstract: n this article, we will take fresh approach and implement an AJAX-powered component that will not only upload the file to server, but also monitor the actual progress of a file upload request in "real time."

Browser-based file uploads, in particular those involving the HTML <input type="file"> tag, have always been rather lacking. As I am sure most of you are aware, uploading files exceeding 10MB often causes a very poor user experience. Once a user submits the file, the browser will appear to be inactive while it attempts to upload the file to the server. While this happening in the background, many impatient users would start to assume that the server is "hanging" and would try to submit the file again. This of course, only helps to make matters worse.

In an attempt to make uploading of files more user-friendly, many sites display an indeterminate progress animation (such as a rotating icon) once the user submits the file. Although this technique may be useful in keeping the user distracted while the upload being submitted to the server, it offers very little information on the status of the file upload. Another attempt at solving the problem is to implement an applet that uploads the file to the server through FTP. The drawback with this solution is that it limits your audience to those that have a Java-enabled browser.

In this article, we will take fresh approach and implement an AJAX-powered component that will not only upload the file to server, but also monitor the actual progress of a file upload request in "real time." The four stages of this component are illustrated below, in Figures 1, 2, 3, and 4:

Stage 1: Selecting the file upload
Figure 1. Stage 1: Selecting the file upload

Stage 2: Uploading the file to the server
Figure 2. Stage 2: Uploading the file to the server

Stage 3: Uploaded completed.
Figure 3. Stage 3: Uploaded completed

File Upload Summary
Figure 4. File upload summary


Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 685
Unique Hits: 597


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0.5 0.7 0.7 0.9 10.8 12.8
Current 1 2 1 2 1 2
Previous 0 0 4 5 6 7
Nov 29 0 0 0 0 7 8
Nov 28 0 0 0 0 6 8
Nov 27 0 0 0 0 5 5
Nov 26 1 1 0 0 7 8
Nov 25 2 3 1 1 49 57
Nov 24 0 0 0 0 0 0
Nov 23 1 1 1 1 6 6
Nov 22 0 0 0 0 21 27
Highest 9 10 21 22 70 76


Script Execution Time: 7.24821 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2