How to execute an action after event="uploadcomplete" in RichFaces <a4j:ajax> -
I need to call tester ()
after a method FileUpload
event = "uploadcomplete"
.
Public Zero Checker () {fileProcessingEJB.checkInventoryToResolveAll ();}
Uploads the following code file and I will execute some files after all Needs are uploaded, do I do that & lt; Rich: fileUpload & gt; & Lt; / Rich: fileUpload & gt;
this? Or I can call method in execution
in & lt attribute; A4j: ajax & gt;
& lt; Rich: FileUpload fileUploadListener = "# {FileUploadBean.listener}" id = "Upload" Approved type = "xml" ontyperejected = "warning ('Only XML files accepted');" maxFilesQuantity = "50" & gt; & Lt; A4j: ajax event = "uploadcool" execution = "# @ none" render = "info" /> & Lt; / Rich: FileUpload & gt;
look at it You can use the listener as below Are there. If you want to do any steps you can do on or If you want to display a message, check it out (depending on your version)
& lt; Rich: FileUpload id = "generic_data_file" from fileUploadListener = "# {controller_bean.uploadFile}" & lt; A4j: support event = "onuploadcomplete" ActionListener = "# {controller_bean.loadInfoFileHook}" /> & Lt; / Rich: FileUpload & gt;
ActionListener
.
Comments
Post a Comment