I assume you're using Tapestry 3-something. "java-type" was an old name, renamed to "type" last year. See the DTD at: http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd
The error message is trying to say that you've got an unknown attribute that hasn't been declared, since Tapestry doesn't know what to do with java-type. ----- Original Message ----- From: "Muhariz Jabeer" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, June 15, 2005 2:37 PM Subject: Weird Parse Error 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. 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]
