Hello,

I am getting
org.apache.tapestry.util.xml.DocumentParseException
Unable to read context:/WEB-INF/DirectArea.jwc: Attribute "type" must be declared for element type "parameter".
location:       context:/WEB-INF/DirectArea.jwc, line 9, column 89

4       "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
5       <component-specification
6       class="si.noviforum.tapestry.components.DirectArea"
7       allow-body="no"
8       allow-informal-parameters="yes">
9 <parameter name="listener" required="yes" type="org.apache.tapestry.IActionListener" />
10      <parameter name="parameters" type="java.lang.Object" />
11      </component-specification>
12      


There obviously is attribute type (in bold below). I am using T4b13

*DirectArea:*
<!DOCTYPE component-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 4.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
<component-specification
   class="my.company.tapestry.components.DirectArea"
   allow-body="no"
allow-informal-parameters="yes"> <parameter name="listener" required="yes" *type="org.apache.tapestry.IActionListener"* /> <parameter name="parameters" type="java.lang.Object" /> </component-specification>

*Home.page*
<component id="directAreaPlay" type="DirectArea">
       <binding  name="listener" value="playGame"/>
</component>

*Home.java*
@InjectPage("Play")
abstract public Play getPlayPage();

public Play getPlayGame() {
       return getPlayPage();
}

Reply via email to