I am trying to implement a scenario where there will be one Upload button and when someone successfully uploads a file that user will be forwarded to the home page.
I have two buttons one to import and another to close the present page and go back to the home page, but I need to include the returning to the home page feature also on the upload button, and return should happen when file is successfully uploaded. I have also implemented error messages for wrong extensions & no file selected, so the return should happen only after a successful file upload.
Please pardon my immaturity here. I am absolutely new in front end development. Please suggest me solutions that can be integrated with .XHTML(JSF) and java Bean as that is the only option I have. Thanks in advance.