You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Borut Bolčina <bo...@najdi.si> on 2005/11/16 14:28:07 UTC
DirectArea component
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();
}
Re: DirectArea component
Posted by Andreas Andreou <an...@di.uoa.gr>.
In Tapestry 4, you should NOT include the type attribute for
parameters. Check out the specs in:
http://jakarta.apache.org/tapestry/UsersGuide/spec.html
Borut Bolčina wrote:
> 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();
> }
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org