Re: How do I create a link...
This is also how I do it but I thought I read in a previous post that this is not the best way of doing it. Is this correct? On 10/4/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: That depends on what you want to happen when they click on that asset? I've found the ServiceLink component indispensable in this regard. You can create a simple little arbitrary engine service without the hassle of creating new link components to run it...So..In your case you could: Define a new engine service that serves files to people in such a way that it'll correctly invoke their browsers application content handling type - or download if none is found...(Ie setting response type , etc..) Then use a simple ServiceLink to pass in what you want to give the service, which is presumably a local asset you have defined. On 10/3/06, Mark Stang [EMAIL PROTECTED] wrote: I need to create a link to an asset in Tapestry 3. Basically, I have a .pdf which isn't in my context. Thoughts on how to link to it? thanks, mark Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
How do I create a link...
I need to create a link to an asset in Tapestry 3. Basically, I have a .pdf which isn't in my context. Thoughts on how to link to it? thanks, mark Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity
Re: How do I create a link...
That depends on what you want to happen when they click on that asset? I've found the ServiceLink component indispensable in this regard. You can create a simple little arbitrary engine service without the hassle of creating new link components to run it...So..In your case you could: Define a new engine service that serves files to people in such a way that it'll correctly invoke their browsers application content handling type - or download if none is found...(Ie setting response type , etc..) Then use a simple ServiceLink to pass in what you want to give the service, which is presumably a local asset you have defined. On 10/3/06, Mark Stang [EMAIL PROTECTED] wrote: I need to create a link to an asset in Tapestry 3. Basically, I have a .pdf which isn't in my context. Thoughts on how to link to it? thanks, mark Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com