Thats, just it:) make a component, not a function ... you'll copy pasete your function arround and iject component resources in each page that uses it, look at the ActionLink source and create an ExternalLink from it :)
Davor Hrg On 10/26/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi Nick, > > yes, I just want to make a method to create external page link, well, I'll > just create it on the page, was thinking I can make a generic function for > that. > > > Nick Westgate wrote: > > > > At a glance, you just want to call createPageLink on a Page. > > > > So you could inject the PagePool to get the page and go from there. > > That's an internal service though ... can't see an obvious way to > > do this without "more than a glance". ;-) > > > > Cheers, > > Nick. > > > > > > > > > > -- > View this message in context: > http://www.nabble.com/T5%3A-inject-ComponentResources-in-a-service-tf4695974.html#a13425934 > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >