You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by martin Holman <mh...@jmcg-systems.co.uk> on 2005/04/12 10:06:33 UTC
Popups containing tapestry pages
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.
RE: Popups containing tapestry pages
Posted by martin Holman <mh...@jmcg-systems.co.uk>.
Hi,
Saqib mentioned this component
http://equalitylearning.org/Tassel/app?service=direct/1/Browse/viewCompo
nent&sp=SrobertzNewWindowLink
Martin
-----Original Message-----
From: Bocko [mailto:bogi@bitsyu.net]
Sent: 12 April 2005 10:05
To: Tapestry users
Subject: Re: Popups containing tapestry pages
Hi,
I had similar problem. It's not popup, I activate new window on button
click. I solved this width help of JavaScript, like this:
<form>
<input type="button" value="new page"
onClick="window.open('/test/app?service=page/pageName')"
</form>
hire /test/app is path to your tapestry application as you specified in
web.xml
I know that this is not very nice solution, but it works.
If someone has better solution - width some tapestry component or
something
else, please tell us.
Also I am looking on how to bookmark tapestry pages to favorites. Anyone
know how to do this?
Thanks
Bogdan
> 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?
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Popups containing tapestry pages
Posted by Bocko <bo...@bitsyu.net>.
Hi,
I had similar problem. It's not popup, I activate new window on button
click. I solved this width help of JavaScript, like this:
<form>
<input type="button" value="new page"
onClick="window.open('/test/app?service=page/pageName')"
</form>
hire /test/app is path to your tapestry application as you specified in
web.xml
I know that this is not very nice solution, but it works.
If someone has better solution - width some tapestry component or something
else, please tell us.
Also I am looking on how to bookmark tapestry pages to favorites. Anyone
know how to do this?
Thanks
Bogdan
> 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?
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Popups containing tapestry pages
Posted by David Solis <h....@gmail.com>.
This is a recurring question.
You can use a normal DirectLink (or PageLink) but you have to define
org.apache.tapestry.contrib.link.PopupLinkRenderer as its renderer.
Regards
On Apr 12, 2005 3:06 AM, martin Holman <mh...@jmcg-systems.co.uk> 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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Popups containing tapestry pages
Posted by PSW <su...@wachtel.us>.
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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org