I have a h:commandButton from where a action in the bean is callled and then I'm setting the external URL which I want to open like this:
When the Action is complete i.e response is completed, the mentioned URL opens up but in the same window. I want to open it in a new window/tab.
I also tried putting target="_Blank" to the h:commanButton but it did not work.
Try adding like ,
<h:commandLink value="View" id="viewID1"
target="_blank" type="submit" style="text-decoration: none"/>
Here actionListener will do the backing bean process and it will open in new window.
you can also use ajax for it.