[jboss-user] [JBoss Seam] - Re: s:link as popup window

app4you@yahoo.com do-not-reply at jboss.com
Mon Mar 26 08:19:33 EDT 2007


Hi there,

In JSF, SEAM that is, you can't direct an URL to a popup window easily like in JSP world.  Here are 2 solutions:

1. <h:form target="_new">

2. On the <s:link/> or <h:commandLink/>, do these:
    * <s:link target="jsWinId" onclick="window.open(null, 'jsWinId', 'windth=200,height=blah')" action="#{packetSelector.selectPacket(packet)}"/>


*** MAKE sure you use  and in your selectPacket method, return the mapping name from the faces-confg.xml if you use JSF navigation rule

Hope that helps.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031560#4031560

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031560



More information about the jboss-user mailing list