Jerome -- My understanding is that Tapestry looks up components by .jwc file, not by .html file.

I agree that the duplicated near-empty .jwcs are a little irritating, and it would be nice if the common case that amounts to a page include (body yes, informal no) were the default and .jwcs could be eliminated much as the .page files can be.

Maybe in 4.1? ...wish wish...

Perhaps there is some way to do this that others can share....

Cheers,

Paul

On Jan 16, 2006, at 1:18 PM, Jerome Pimmel wrote:

All

I am relatively new to the Tapestry model (although am an old hand at
web/servlets) and have made some good progress with the framework.

I have a question regarding good practice and the refinement of my approach.


I have constructed a page which builds itself by inline-ing other blocks of
HTML into it, ie:

<span jwcid="@Foo">
        <span jwcid="@Bar">
                <span jwcid="@Panels"/>
                <span jwcid="@Headings"/>
                <span jwcid="@Data"/>
        </span>
</span>

For all the named Components above, I have made a correcponding .jwc file.
However, each .jwc file contains the same content, ie:

<!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="yes"
        allow-informal-parameters="no">
</component-specification>

Each .jwdc component has a corresponding .html file, containing some html

It occurred to me that my lack of understanding is to blame for the
duplication and that surely there is a concise, non-duplicating, way in which I can specify as many components as I'd like with separate HTML but
which all share the same .jwc contents (in principle at least)

How would one go about reducing this to something sensible?

I've not found a great deal of documentation that speaks to different
templating models/patterns which would be of interest to people. Does anyone
know of any such resources?

Regards

Jerome

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.18/230 - Release Date: 14/01/2006



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_________________________________________________________________
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to