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:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<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:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<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]