I have a JSF application when the user clicks a button, have to do some actions and direct to a JSF new page. The same action must send a request to a sms gateway, where the response it recorded in the application silently, but must not alter any navigation of the JSF pages to user. How can I achieve this functionality?
For example, clicking the save button in report.xhtml page must take the user to new_report.xhtml page, but that click also have to send a http request to an external url and if possible, record the external response.
If I use faces context > request, as in this answer, it redirects to that external page.