Galera, preciso abrir um popup quando o usuário clica em um link. Mas tem que ser um popup do browse mesmo, não do sistema.
Eu só estou conseguindo abrir uma nova janela.
Esse é o link
<h:form id="OptionsForm" >
<h:commandLink id="infoLink" action="#{loginController.showInformationSystem}" title="Informações" target="_blank" >
<h:graphicImage library="images" name="ic_info2.gif" style="border:0px"/>
</h:commandLink>
</h:form>
Controller
public String showInformationSystem() {
return "/info_system";
}
Ai chamo essa página (que tem que ser um popup)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="pt-br" xml:lang="pt-br" xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>${globalMsgs.label_title}</title>
<h:outputStylesheet library="css" name="style.css" />
<h:outputScript library="js" name="sics.js"/>
</h:head>
<h:body>
<div align="center">
<p:layout style="min-width:1220px;max-width:1220px;min-height:780px;" fullPage="true" >
<p:layoutUnit position="north" >
<div class="header" >
<div class="headerLogo" >
<div class="userLogged">${globalMsgs.label_user_logged}: #{sessionScope.userLogged.name}</div>
<h:graphicImage library="images" name="top_vivo.gif"/>
<h:graphicImage library="images" name="top_tit_SICS.gif" />
</div>
<div class="buttonPanel">
<h:form id="panelForm">
</h:form>
</div>
</div>
</p:layoutUnit>
<p:layoutUnit position="center">
<div align="left">
<ui:insert name="menu">
<h:form id="menuForm" >
<h:panelGrid columns="2">
<h:outputLabel value="Nome: " styleClass="textLabel"/>
<h:outputLabel value="Controle Ações" styleClass="textLabel"/>
<h:outputLabel value="Versão: " styleClass="textLabel"/>
<h:outputLabel value="1.2.8" styleClass="textLabel"/>
<h:outputLabel value="Build: " styleClass="textLabel"/>
<h:outputLabel value="10/12/2012" styleClass="textLabel"/>
<h:outputLabel value="Desenvolvido por: " styleClass="textLabel"/>
<h:outputLabel value="Carinha legal" styleClass="textLabel"/>
</h:panelGrid>
</h:form>
</ui:insert>
<ui:insert name="body">
</ui:insert>
</div>
</p:layoutUnit>
<p:layoutUnit position="south">
<ui:insert name="footer">
<h:graphicImage library="images" name="copyright.gif"/>
</ui:insert>
</p:layoutUnit>
</p:layout>
</div>
</h:body>
</html>
Alguém poderia me ajudar?