I have a task that I am working on where I need to display a button. The target URL for this button is obtained by making a SOAP request to an external third party (Single Sign In) which provides the sign-in URL. I want to ensure that my page's load time is not affected by this request, so I am looking to implement the SOAP request asynchronously when the button is clicked. This will then open the URL in a new tab or window. Here is what I have tried so far:
<p:button id="ssi" target="_blank" href="#{backbean.soaprequest}" value="button name" widgetVar="ssiButton" onclick="ssiButton.disable()" />
However, this approach still waits for the SOAP request to complete before rendering the page.
I have also experimented with other solutions but have not made any progress.
I would greatly appreciate any help or suggestions you can offer. Thank you!