Hi. I'm trying to create a PDF and open it in a new browser window. I've already achieved to create the PDF and it seems to work fine when it opens in the current browser window but that's not what we are looking for.
This is the code where I call the open report method:
<h:commandLink id="informe" target="report"
onclick="openReport();"
action="#{listadoPDSBean.mostrarInforme}"
styleClass="boton"
value="Ver Informe"/>
Here is the javascript method where I open the new window (and about:blank window).
function openReport() {
nuevaVentana = window.open("about:blank", "report", "type=window, fullscreen=no, Menubar=no,
Status=no, Titlebar=no, Toolbar=no, Location=no, Directories=no, Resizable=yes");
}
When I try this it opens a new blank window and then opens the report in the application window.
I'm sorry for my bad english.
Thanks!