I have several .page files that all look like:

<?xml version="1.0"?>
<!DOCTYPE page-specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//EN" "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
<page-specification>
   <!-- page-specific stuff goes here... -->

   <!-- here is the common stuff -->
   <property name="currField"/>

   <component id="errors" type="For">
     <binding name="source" value="beans.delegate.fieldTracking"/>
     <binding name="value" value="currField"/>
   </component>
<component id="error" type="Delegator">
     <binding name="delegate" value="currField.errorRenderer"/>
   </component>
<component id="isInError" type="If">
     <binding name="condition" value="currField.inError"/>
   </component>
</page-specification>

If I move the common stuff into a file (showErrors.txt), how can I then "include" it in each .page file?

As suggested elsewhere, I've already tried:

   <include xlink:href="showErrors.txt">

and also:

<page-specification xmlns:xi="http://www.w3.org/2001/XInclude";>
   ...
   <xi:include href="showErrors.txt" parse="text"/>

Neither of these worked.

There must be an easy way....

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

Reply via email to