I just used a DirectLink and a piece of javascript code:

On the top of my page (or component) I include:
<span jwcid="@Script" script="/WEB-INF/pages/protected/viewer/popup.script"/>


________contents of popup.script_________
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script PUBLIC

   "-//Apache Software Foundation//Tapestry Script Specification 3.0//EN"

   "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd";>

<script>
<body>
<![CDATA[
function createPop(href) {
popupwindow = window.open("" ,'WindowName', 'alwaysRaised,toolbar=no,scrollbars=yes,top=200,left=200,height=600,width=480,resizable=yes');
popupwindow.focus();
popupwindow.location = href;


   return false;
}
]]>
 </body>
 <initialization>
 </initialization>
</script>
____________end popup.script_________________

And my link has an onclick attribute:
<a jwcid="@DirectLink" listener="ognl: listeners.myListener" parameters="ognl:myParam" onclick="return createPop(this.href);">


Hope that helps.
PSW

martin Holman wrote:

Hello all,

I am very new to Tapestry so I apologies if the answer is obvious. What
I require is a popup to contain a Tapestry page from the same context as
the parent page. I've looked at PopupLink but this only seems to cater
for none Tapestry pages such as external website/ help pages etc.
DirectLink and ExternalLink do not seem allow for the creation of a new
browser instance.

Has anyone else solved this problem? Do I have to create a custom
component?

Thanks in advance

Martin.






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to