You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Rob Bugh <ro...@accuwater.com> on 2004/04/20 16:44:24 UTC

Popup Page with parameters

Is there a way to popup a page and pass a parameter to it. For instance, a 
help popup where the contents of the popup is driven by the parameter 
passed to it. I would like the page to be a Tapestry page, not just HTML, 
and not be externlized, i.e., I don't want someone to popup a help window 
outside of context of the web application.

I've managed to create a component, much like contrib:PopupLink, that 
wraps some javascript around a Tapestry url, to popup a page (url looks 
something like /context/app?service=page/Help). But I can't figure out how 
to make clicking on the popup link pass a parameter to the popup page.

Has anyone gone down this path before? Your help is appreciated.

Rob

-- 
Rob Bugh
Accuwater, Inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Popup Page with parameters

Posted by Kris Rasmussen <kr...@yahoo.com>.
>From experience, I don't beleive a direct link can
activate a listener on another page but I am not
certain.

Use a direct link if you don't want to bookmark the
page. Pass the parameters via the parameters attribute
and get them via cycle.getServiceParameters() (I think
that is the method).

Kris


--- Rob Bugh <ro...@accuwater.com> wrote:
> 
> This raises a couple of questions. 1) Can the
> activation of a direct link 
> on one page invoke a listener method on another
> page? It's not clear to me 
> how a DirectLink helps me here. 2) Using an
> ExternalLink means making the 
> Help page bookmarkable, correct? This is what I
> don't want. I don't want 
> someone to be able to pop up a Help page outside of
> the context of the 
> application.
> 
> It would be nice if I could just pass a parameter to
> a page using a URL 
> like: /context/app?service=page/Help&sp=SSomeHelpId
> 
> Thanks again,
> Rob
> 
> On Tue, 20 Apr 2004 11:08:36 -0400, Howard M. Lewis
> Ship 
> <hl...@comcast.net> wrote:
> 
> > For that, you can use ExternalLink (if DirectLink
> is not appropriate).
> >
> > --
> > Howard M. Lewis Ship
> > Independent J2EE / Open-Source Java Consultant
> > Creator, Tapestry: Java Web Components
> > Creator, HiveMind
> > http://howardlewisship.com
> >
> >
> >> -----Original Message-----
> >> From: Rob Bugh [mailto:robbugh@accuwater.com]
> >> Sent: Tuesday, April 20, 2004 11:05 AM
> >> To: Tapestry users
> >> Subject: Re: Popup Page with parameters
> >>
> >>
> >>
> >> Thanks for you thoughts, Howard.
> >>
> >> OK, so popping up a tapestry page in a seperate
> window is
> >> solved, but I
> >> can't tell from your response if this also solves
> passing a
> >> parameter to
> >> the page.
> >>
> >> Rob
> >>
> >>
> >>
> >> On Tue, 20 Apr 2004 10:55:55 -0400, Howard M.
> Lewis Ship
> >> <hl...@comcast.net> wrote:
> >>
> >> > All of the link components take a renderer
> parameter that
> >> implements the
> >> > ILinkRenderer interface.
> >> >
> >> > You can easily provide your own implementation
> that
> >> generates javascript
> >> > to raise a popup window
> >> > (that's the indented purpose).  Somehow I never
> got around
> >> to providing
> >> > that implementation though.
> >> >
> >> > --
> >> > Howard M. Lewis Ship
> >> > Independent J2EE / Open-Source Java Consultant
> >> > Creator, Tapestry: Java Web Components
> >> > Creator, HiveMind
> >> > http://howardlewisship.com
> >> >
> >> >
> >> >> -----Original Message-----
> >> >> From: Rob Bugh [mailto:robbugh@accuwater.com]
> >> >> Sent: Tuesday, April 20, 2004 10:44 AM
> >> >> To: tapestry-user@jakarta.apache.org
> >> >> Subject: Popup Page with parameters
> >> >>
> >> >>
> >> >>
> >> >> Is there a way to popup a page and pass a
> parameter to it.
> >> >> For instance, a
> >> >> help popup where the contents of the popup is
> driven by
> >> the parameter
> >> >> passed to it. I would like the page to be a
> Tapestry page,
> >> >> not just HTML,
> >> >> and not be externlized, i.e., I don't want
> someone to popup a
> >> >> help window
> >> >> outside of context of the web application.
> >> >>
> >> >> I've managed to create a component, much like
> >> contrib:PopupLink, that
> >> >> wraps some javascript around a Tapestry url,
> to popup a page
> >> >> (url looks
> >> >> something like
> /context/app?service=page/Help). But I can't
> >> >> figure out how
> >> >> to make clicking on the popup link pass a
> parameter to the
> >> popup page.
> >> >>
> >> >> Has anyone gone down this path before? Your
> help is appreciated.
> >> >>
> >> >> Rob
> >> >>
> >> >> --
> >> >> Rob Bugh
> >> >> Accuwater, Inc.
> >> >>
> >> >>
> >>
>
---------------------------------------------------------------------
> >> >> 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
> >>
> >>
> >>
> >> --
> >> Rob Bugh
> >> Accuwater, Inc.
> >>
> >>
>
---------------------------------------------------------------------
> >> 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
> 
> 
> 
> -- 
> Rob Bugh
> Accuwater, Inc.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> 



	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25�
http://photos.yahoo.com/ph/print_splash

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Popup Page with parameters

Posted by Rob Bugh <ro...@accuwater.com>.
This raises a couple of questions. 1) Can the activation of a direct link 
on one page invoke a listener method on another page? It's not clear to me 
how a DirectLink helps me here. 2) Using an ExternalLink means making the 
Help page bookmarkable, correct? This is what I don't want. I don't want 
someone to be able to pop up a Help page outside of the context of the 
application.

It would be nice if I could just pass a parameter to a page using a URL 
like: /context/app?service=page/Help&sp=SSomeHelpId

Thanks again,
Rob

On Tue, 20 Apr 2004 11:08:36 -0400, Howard M. Lewis Ship 
<hl...@comcast.net> wrote:

> For that, you can use ExternalLink (if DirectLink is not appropriate).
>
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Tapestry: Java Web Components
> Creator, HiveMind
> http://howardlewisship.com
>
>
>> -----Original Message-----
>> From: Rob Bugh [mailto:robbugh@accuwater.com]
>> Sent: Tuesday, April 20, 2004 11:05 AM
>> To: Tapestry users
>> Subject: Re: Popup Page with parameters
>>
>>
>>
>> Thanks for you thoughts, Howard.
>>
>> OK, so popping up a tapestry page in a seperate window is
>> solved, but I
>> can't tell from your response if this also solves passing a
>> parameter to
>> the page.
>>
>> Rob
>>
>>
>>
>> On Tue, 20 Apr 2004 10:55:55 -0400, Howard M. Lewis Ship
>> <hl...@comcast.net> wrote:
>>
>> > All of the link components take a renderer parameter that
>> implements the
>> > ILinkRenderer interface.
>> >
>> > You can easily provide your own implementation that
>> generates javascript
>> > to raise a popup window
>> > (that's the indented purpose).  Somehow I never got around
>> to providing
>> > that implementation though.
>> >
>> > --
>> > Howard M. Lewis Ship
>> > Independent J2EE / Open-Source Java Consultant
>> > Creator, Tapestry: Java Web Components
>> > Creator, HiveMind
>> > http://howardlewisship.com
>> >
>> >
>> >> -----Original Message-----
>> >> From: Rob Bugh [mailto:robbugh@accuwater.com]
>> >> Sent: Tuesday, April 20, 2004 10:44 AM
>> >> To: tapestry-user@jakarta.apache.org
>> >> Subject: Popup Page with parameters
>> >>
>> >>
>> >>
>> >> Is there a way to popup a page and pass a parameter to it.
>> >> For instance, a
>> >> help popup where the contents of the popup is driven by
>> the parameter
>> >> passed to it. I would like the page to be a Tapestry page,
>> >> not just HTML,
>> >> and not be externlized, i.e., I don't want someone to popup a
>> >> help window
>> >> outside of context of the web application.
>> >>
>> >> I've managed to create a component, much like
>> contrib:PopupLink, that
>> >> wraps some javascript around a Tapestry url, to popup a page
>> >> (url looks
>> >> something like /context/app?service=page/Help). But I can't
>> >> figure out how
>> >> to make clicking on the popup link pass a parameter to the
>> popup page.
>> >>
>> >> Has anyone gone down this path before? Your help is appreciated.
>> >>
>> >> Rob
>> >>
>> >> --
>> >> Rob Bugh
>> >> Accuwater, Inc.
>> >>
>> >>
>> ---------------------------------------------------------------------
>> >> 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
>>
>>
>>
>> --
>> Rob Bugh
>> Accuwater, Inc.
>>
>> ---------------------------------------------------------------------
>> 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



-- 
Rob Bugh
Accuwater, Inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: Popup Page with parameters

Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
For that, you can use ExternalLink (if DirectLink is not appropriate).

--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Tapestry: Java Web Components 
Creator, HiveMind
http://howardlewisship.com


> -----Original Message-----
> From: Rob Bugh [mailto:robbugh@accuwater.com] 
> Sent: Tuesday, April 20, 2004 11:05 AM
> To: Tapestry users
> Subject: Re: Popup Page with parameters
> 
> 
> 
> Thanks for you thoughts, Howard.
> 
> OK, so popping up a tapestry page in a seperate window is 
> solved, but I 
> can't tell from your response if this also solves passing a 
> parameter to 
> the page.
> 
> Rob
> 
> 
> 
> On Tue, 20 Apr 2004 10:55:55 -0400, Howard M. Lewis Ship 
> <hl...@comcast.net> wrote:
> 
> > All of the link components take a renderer parameter that 
> implements the 
> > ILinkRenderer interface.
> >
> > You can easily provide your own implementation that 
> generates javascript 
> > to raise a popup window
> > (that's the indented purpose).  Somehow I never got around 
> to providing 
> > that implementation though.
> >
> > --
> > Howard M. Lewis Ship
> > Independent J2EE / Open-Source Java Consultant
> > Creator, Tapestry: Java Web Components
> > Creator, HiveMind
> > http://howardlewisship.com
> >
> >
> >> -----Original Message-----
> >> From: Rob Bugh [mailto:robbugh@accuwater.com]
> >> Sent: Tuesday, April 20, 2004 10:44 AM
> >> To: tapestry-user@jakarta.apache.org
> >> Subject: Popup Page with parameters
> >>
> >>
> >>
> >> Is there a way to popup a page and pass a parameter to it.
> >> For instance, a
> >> help popup where the contents of the popup is driven by 
> the parameter
> >> passed to it. I would like the page to be a Tapestry page,
> >> not just HTML,
> >> and not be externlized, i.e., I don't want someone to popup a
> >> help window
> >> outside of context of the web application.
> >>
> >> I've managed to create a component, much like 
> contrib:PopupLink, that
> >> wraps some javascript around a Tapestry url, to popup a page
> >> (url looks
> >> something like /context/app?service=page/Help). But I can't
> >> figure out how
> >> to make clicking on the popup link pass a parameter to the 
> popup page.
> >>
> >> Has anyone gone down this path before? Your help is appreciated.
> >>
> >> Rob
> >>
> >> --
> >> Rob Bugh
> >> Accuwater, Inc.
> >>
> >> 
> ---------------------------------------------------------------------
> >> 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
> 
> 
> 
> -- 
> Rob Bugh
> Accuwater, Inc.
> 
> ---------------------------------------------------------------------
> 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: Popup Page with parameters

Posted by Rob Bugh <ro...@accuwater.com>.
Thanks for you thoughts, Howard.

OK, so popping up a tapestry page in a seperate window is solved, but I 
can't tell from your response if this also solves passing a parameter to 
the page.

Rob



On Tue, 20 Apr 2004 10:55:55 -0400, Howard M. Lewis Ship 
<hl...@comcast.net> wrote:

> All of the link components take a renderer parameter that implements the 
> ILinkRenderer interface.
>
> You can easily provide your own implementation that generates javascript 
> to raise a popup window
> (that's the indented purpose).  Somehow I never got around to providing 
> that implementation though.
>
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Tapestry: Java Web Components
> Creator, HiveMind
> http://howardlewisship.com
>
>
>> -----Original Message-----
>> From: Rob Bugh [mailto:robbugh@accuwater.com]
>> Sent: Tuesday, April 20, 2004 10:44 AM
>> To: tapestry-user@jakarta.apache.org
>> Subject: Popup Page with parameters
>>
>>
>>
>> Is there a way to popup a page and pass a parameter to it.
>> For instance, a
>> help popup where the contents of the popup is driven by the parameter
>> passed to it. I would like the page to be a Tapestry page,
>> not just HTML,
>> and not be externlized, i.e., I don't want someone to popup a
>> help window
>> outside of context of the web application.
>>
>> I've managed to create a component, much like contrib:PopupLink, that
>> wraps some javascript around a Tapestry url, to popup a page
>> (url looks
>> something like /context/app?service=page/Help). But I can't
>> figure out how
>> to make clicking on the popup link pass a parameter to the popup page.
>>
>> Has anyone gone down this path before? Your help is appreciated.
>>
>> Rob
>>
>> --
>> Rob Bugh
>> Accuwater, Inc.
>>
>> ---------------------------------------------------------------------
>> 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



-- 
Rob Bugh
Accuwater, Inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: Popup Page with parameters

Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
All of the link components take a renderer parameter that implements the ILinkRenderer interface.

You can easily provide your own implementation that generates javascript to raise a popup window
(that's the indented purpose).  Somehow I never got around to providing that implementation though.

--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Tapestry: Java Web Components 
Creator, HiveMind
http://howardlewisship.com


> -----Original Message-----
> From: Rob Bugh [mailto:robbugh@accuwater.com] 
> Sent: Tuesday, April 20, 2004 10:44 AM
> To: tapestry-user@jakarta.apache.org
> Subject: Popup Page with parameters
> 
> 
> 
> Is there a way to popup a page and pass a parameter to it. 
> For instance, a 
> help popup where the contents of the popup is driven by the parameter 
> passed to it. I would like the page to be a Tapestry page, 
> not just HTML, 
> and not be externlized, i.e., I don't want someone to popup a 
> help window 
> outside of context of the web application.
> 
> I've managed to create a component, much like contrib:PopupLink, that 
> wraps some javascript around a Tapestry url, to popup a page 
> (url looks 
> something like /context/app?service=page/Help). But I can't 
> figure out how 
> to make clicking on the popup link pass a parameter to the popup page.
> 
> Has anyone gone down this path before? Your help is appreciated.
> 
> Rob
> 
> -- 
> Rob Bugh
> Accuwater, Inc.
> 
> ---------------------------------------------------------------------
> 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