I thought he wanted to load arbitary fragments on an as needed
basis? If not then, yah, your approach is infinitely simpler, but if he
already has a library of fragments then he could just @Insert them via the
loader approach.
--- Pat
> -----Original Message-----
> From: Alan Chandler [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 07, 2005 4:13 PM
> To: [email protected]
> Subject: Re: How to include a fragment of HTML ?
>
> On Wednesday 07 Dec 2005 23:16, Patrick Casey wrote:
> > If you don't want to do it via Tassel, just write a static method
> > that loads it e.g.
>
> Why go to all that trouble. Surely a simple "footer" component that has
> the
> HTML that you want in your footer, and a jwc file
>
> <?xml version="1.0"?>
> <!DOCTYPE component-specification PUBLIC
> "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
> <component-specification allow-body="no">
> </component-specification>
>
> then
>
> <span jwcid="@Footer"/>
>
> Will do the trick.
>
> --
> Alan Chandler
> http://www.chandlerfamily.org.uk
> Open Source. It's the difference between trust and antitrust.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]