You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ralph Churchill <mr...@gmail.com> on 2005/07/05 22:39:57 UTC
ExternalPage in email
I am trying to embed a link to my app in an email. I assume I will use
an IExternalPage, so my target page has implemented IExternalPage and
activateExternalPage.
How do I actually get a link to it, then, that I can put in an email? Thanks.
RMC
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: ExternalPage in email
Posted by Paul Ferraro <pm...@columbia.edu>.
Good catch Kent... I misspoke - it seems like my head has been in the
4.0 world too long already. :)
In 3.0, DirectLink.constructServiceParameters(Object) is merely a
convenience method to effectively coerce the service parameters
represented as an Object into an Object[].
In 4.0, this method does not exist - all parameters to a given service
have a more structured representation (e.g. ExternalServiceParameter,
DirectServiceParameter, etc.).
Paul
Kent Tong wrote:
>Paul Ferraro <pmf8 <at> columbia.edu> writes:
>
>
>
>>Make sure you run the parameters through
>>DirectLink.constructServiceParameters(...) so they are properly squeezed
>>by the DataSqueezer.
>>e.g.
>>ILink link = service.getLink(cycle,cycle.getPage(),DirectLink.
>>constructServiceParameters(params));
>>
>>
>
>Hi Paul,
>
>Are you sure about this? The getLink() method is already calling constructLink()
>which performs squeezing. Or this has changed in Tapestry 4.0?
>
>--
>Author of an e-Book for learning Tapestry (http://www.agileskills2.org/EWDT)
>
>
>---------------------------------------------------------------------
>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: ExternalPage in email
Posted by Kent Tong <ke...@cpttm.org.mo>.
Paul Ferraro <pmf8 <at> columbia.edu> writes:
> Make sure you run the parameters through
> DirectLink.constructServiceParameters(...) so they are properly squeezed
> by the DataSqueezer.
> e.g.
> ILink link = service.getLink(cycle,cycle.getPage(),DirectLink.
> constructServiceParameters(params));
Hi Paul,
Are you sure about this? The getLink() method is already calling constructLink()
which performs squeezing. Or this has changed in Tapestry 4.0?
--
Author of an e-Book for learning Tapestry (http://www.agileskills2.org/EWDT)
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: ExternalPage in email
Posted by Paul Ferraro <pm...@columbia.edu>.
Make sure you run the parameters through
DirectLink.constructServiceParameters(...) so they are properly squeezed
by the DataSqueezer.
e.g.
ILink link =
service.getLink(cycle,cycle.getPage(),DirectLink.constructServiceParameters(params));
Paul
Ralph Churchill wrote:
>It wasn't clear to me that the name of the page to which you want to
>link must be the first parameter...
>
>IEngineService service =
>cycle.getEngine().getService(Tapestry.EXTERNAL_SERVICE);
>Object[] params = new Object[] {"MyPage"};
>ILink link = service.getLink(cycle,cycle.getPage(),params);
>LOG.debug("Link to My Page: "+link.getAbsoluteURL());
>
>Thanks for the help.
>
>RMC
>
>On 7/5/05, Ralph Churchill <mr...@gmail.com> wrote:
>
>
>>How would I do that using an ExternalPage, rather than an ExternalService?
>>
>>RMC
>>
>>On 7/5/05, Patrick Casey <pa...@adelphia.net> wrote:
>>
>>
>>> Did you try something along the lines of:
>>>
>>> IEngineService service =
>>>cycle.getEngine().getService(Tapestry.EXTERNAL_SERVICE);
>>> Object[] parms = new Object[2];
>>> parms[0] = this.getSomeUniqueData();
>>> ILink link = service.getLink(cycle, this, parms);
>>>
>>> --- Pat
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: Ralph Churchill [mailto:mrchucho@gmail.com]
>>>>Sent: Tuesday, July 05, 2005 1:40 PM
>>>>To: Tapestry users
>>>>Subject: ExternalPage in email
>>>>
>>>>I am trying to embed a link to my app in an email. I assume I will use
>>>>an IExternalPage, so my target page has implemented IExternalPage and
>>>>activateExternalPage.
>>>>
>>>>How do I actually get a link to it, then, that I can put in an email?
>>>>Thanks.
>>>>
>>>>RMC
>>>>
>>>>---------------------------------------------------------------------
>>>>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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: ExternalPage in email
Posted by Ralph Churchill <mr...@gmail.com>.
It wasn't clear to me that the name of the page to which you want to
link must be the first parameter...
IEngineService service =
cycle.getEngine().getService(Tapestry.EXTERNAL_SERVICE);
Object[] params = new Object[] {"MyPage"};
ILink link = service.getLink(cycle,cycle.getPage(),params);
LOG.debug("Link to My Page: "+link.getAbsoluteURL());
Thanks for the help.
RMC
On 7/5/05, Ralph Churchill <mr...@gmail.com> wrote:
> How would I do that using an ExternalPage, rather than an ExternalService?
>
> RMC
>
> On 7/5/05, Patrick Casey <pa...@adelphia.net> wrote:
> >
> > Did you try something along the lines of:
> >
> > IEngineService service =
> > cycle.getEngine().getService(Tapestry.EXTERNAL_SERVICE);
> > Object[] parms = new Object[2];
> > parms[0] = this.getSomeUniqueData();
> > ILink link = service.getLink(cycle, this, parms);
> >
> > --- Pat
> >
> > > -----Original Message-----
> > > From: Ralph Churchill [mailto:mrchucho@gmail.com]
> > > Sent: Tuesday, July 05, 2005 1:40 PM
> > > To: Tapestry users
> > > Subject: ExternalPage in email
> > >
> > > I am trying to embed a link to my app in an email. I assume I will use
> > > an IExternalPage, so my target page has implemented IExternalPage and
> > > activateExternalPage.
> > >
> > > How do I actually get a link to it, then, that I can put in an email?
> > > Thanks.
> > >
> > > RMC
> > >
> > > ---------------------------------------------------------------------
> > > 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: ExternalPage in email
Posted by Ralph Churchill <mr...@gmail.com>.
How would I do that using an ExternalPage, rather than an ExternalService?
RMC
On 7/5/05, Patrick Casey <pa...@adelphia.net> wrote:
>
> Did you try something along the lines of:
>
> IEngineService service =
> cycle.getEngine().getService(Tapestry.EXTERNAL_SERVICE);
> Object[] parms = new Object[2];
> parms[0] = this.getSomeUniqueData();
> ILink link = service.getLink(cycle, this, parms);
>
> --- Pat
>
> > -----Original Message-----
> > From: Ralph Churchill [mailto:mrchucho@gmail.com]
> > Sent: Tuesday, July 05, 2005 1:40 PM
> > To: Tapestry users
> > Subject: ExternalPage in email
> >
> > I am trying to embed a link to my app in an email. I assume I will use
> > an IExternalPage, so my target page has implemented IExternalPage and
> > activateExternalPage.
> >
> > How do I actually get a link to it, then, that I can put in an email?
> > Thanks.
> >
> > RMC
> >
> > ---------------------------------------------------------------------
> > 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: ExternalPage in email
Posted by Patrick Casey <pa...@adelphia.net>.
Did you try something along the lines of:
IEngineService service =
cycle.getEngine().getService(Tapestry.EXTERNAL_SERVICE);
Object[] parms = new Object[2];
parms[0] = this.getSomeUniqueData();
ILink link = service.getLink(cycle, this, parms);
--- Pat
> -----Original Message-----
> From: Ralph Churchill [mailto:mrchucho@gmail.com]
> Sent: Tuesday, July 05, 2005 1:40 PM
> To: Tapestry users
> Subject: ExternalPage in email
>
> I am trying to embed a link to my app in an email. I assume I will use
> an IExternalPage, so my target page has implemented IExternalPage and
> activateExternalPage.
>
> How do I actually get a link to it, then, that I can put in an email?
> Thanks.
>
> RMC
>
> ---------------------------------------------------------------------
> 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