This might help

http://tapestry.apache.org/component-templates.html

On Thu, Jul 14, 2011 at 10:06 AM, Taha Tapestry
<[email protected]> wrote:
> Use <tbody/> instead of t:parameter
>
> Regards
> Taha
>
> On Jul 14, 2011, at 9:35 AM, gs_tapestry <[email protected]> wrote:
>
>> Hello,
>>
>> I am migrating from T5.0 to T5.2. It's such a pain.  This is the latest
>> error that drives me crazy.
>>
>> Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException: Failure
>> parsing template context:search/AdvancedSearch.tml: Block parameters are
>> only allowed directly within component elements. [at
>> context:search/AdvancedSearch.tml, line 10]
>>    at
>> org.apache.tapestry5.internal.services.SaxTemplateParser.parse(SaxTemplateParser.java:191)
>>
>> This is my AdvancedSearch.tml:
>>
>> &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
>> <t:layout xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
>> selected="selectedMenuItems">
>> <html>
>> <head>
>>    <link rel="stylesheet"
>> href="../../resources/com/gallerysystems/emuseum/components/css/styles.css"
>> type="text/css" media="screen"/>
>>
>>    </head>
>> <body>
>>
>>        <t:parameter name="templateBody">
>>
>>
>>         ../../../preview/advanced_search.jpg
>>        </t:parameter>
>>
>>  </body>
>>  </html>
>> </t:layout>
>>
>> The template for t:id="advancedSearchComponent is:
>>
>> &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
>>
>>
>>
>> <t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
>>
>> <t:search.advancedSearchForm module="module" state="state">DYNAMIC ADVANCED
>> SEARCH FORM</t:search.advancedSearchForm>
>>
>> <hr/>
>>
>> <t:delegate to="displayBlock"/>
>>
>> <t:block t:id="itemsPresent">
>>    ${message:advancedsearchcomponent.found}
>> </t:block>
>>
>> <t:block t:id="noItems">
>>    ${message:advancedsearchcomponent.notfound}
>> </t:block>
>>
>> <t:block t:id="initial"/>
>>
>> </t:container>
>>
>>
>>
>> There are discussion about this "Block parameters ..." issue. But they don't
>> apply there.
>>
>> Any idea ?
>>
>> Thanks,
>> Simon
>>
>> --
>> View this message in context: 
>> http://tapestry.1045711.n5.nabble.com/Another-case-of-Block-parameters-are-only-allowed-directly-within-component-elements-tp4585262p4585262.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> 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]

Reply via email to