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;  

itemprop = "text">

look at it

You can use the listener as below Are there.

  & 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;  

If you want to do any steps you can do on ActionListener .

or

If you want to display a message, check it out (depending on your version)


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -