Attribute "java-type" must be declared for <
It means that it must be declared in the DTD if you want to use it in your
XML file.
But I hate parsing error messages, too :)
Br,
Norbi
----- Original Message -----
From: "Muhariz Jabeer" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Wednesday, June 15, 2005 9:33 PM
Subject: Re: Weird Parse Error
hey thanx ron, yeah the error WAS quite misleading.
On 6/15/05, Ron Piterman <[EMAIL PROTECTED]> wrote:
ציטוט Muhariz Jabeer:
> I was trying to create a component but everytime i try to use it i get
this
> parse error which doesn't make sense because
> its asking me to specify the java-type where i've clearly done so.
No it doesn't. What this parser error *means*, is... there is no
'java-type' attribute. Its called 'type'.
This is a common Sax thing - you get them also in hibernate or wherever
you use sax validation - the error text is wrong, it has nothing to do
with tapestry though...
>
> Any thoughts? Here's the actual error message followed by the .jwc file
> -----------------------------------------------------
>
----------------------------------------------------------------------------------------------------------
>
> org.apache.tapestry.ApplicationRuntimeException Could not parse
> specification context:/WEB-INF/NameSet.jwc.
> org.apache.tapestry.util.xml.DocumentParseException Attribute
"java-type"
> must be declared for element type "parameter".
> org.xml.sax.SAXParseException Attribute "java-type" must be declared
> for
> element type "parameter". systemId:
> jndi:/localhost/std-pam/WEB-INF/NameSet.jwc columnNumber: 24
> lineNumber:
13
>
---------------------------------------------------------------------------------------------------------------------------------------------------------
>
> NameSet.jwc file -->
>
> <component-specification class="
com.stchome.pam.tapestry.components.NameSet"
> allow-body="no" allow-informal-parameters="yes">
>
> <parameter
> name="source"
> java-type="java.lang.Object"
> direction="in"
> required="yes"> <<----- Line 13
> </parameter>
>
> <component id="elements" type="Foreach">
> <inherited-binding name="source" parameter-name="source"/>
> </component>
>
> <component id="fName" type="TextField">
> <binding name='value' expression="components.elements.fName"></binding>
> </component>
>
> <component id="lName" type="TextField">
> <binding name='value' expression="components.elements.lName"></binding>
> </component>
>
> <component id="iNetHandle" type="TextField">
> <binding name='value' expression="components.elements.iNetHandle
"></binding>
> </component>
>
> </component-specification>
>
>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
In a long enough timeline,
every moment will feel like deja vu.
-Muhariz.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]