You can change the target attribute of a JavaServer Faces (JSF) link from a JSF Handler. For example, you can set the target attribute of a link to _blank to make that link open in a new browser window.
import com.ibm.egl.jsf.*
linkEx1 HtmlOutputLink;
linkEx1 = myViewRoot.findComponent("form1:linkEx1");
linkEx1.setTarget("_blank");