You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Franklin Salonga <fs...@nereuspharm.com> on 2004/05/19 01:35:41 UTC

NumberValidator with valueType double?

So I've been trying to make a validated textfield for doubles in a component, 
nested inside another component. In the parent component, I can create a 
validated textfield for doubles no problem. However, in the child component, 
attemps to specify:

		<set-property name="valueType">"double"</set-property>

inside the corresponding NumberValidator bean results in the parsing exception 
stack trace pasted below.

I'm particularly interested in the message "Attribute "java-type" must be 
declared for element type "parameter"." I'm wondering if it has anything to do 
with the note in the 3.0 dtd that says that "java-type" was changed to "type" 
within the element "parameter."

Thanks in advance. I'm using rc-2, which told me about "java-type" not being 
defined, as opposed to beta-3, which didn't.

16:02:35,287 ERROR [STDERR] org.apache.tapestry.ApplicationRuntimeException: 
Could not parse specification classpath:MyComponentSpec.jwc.
16:02:35,287 ERROR [STDERR] 	at 
org.apache.tapestry.engine.DefaultSpecificationSource.parseSpecification
(DefaultSpecificationSource.java:167)
16:02:35,287 ERROR [STDERR] 	at 
org.apache.tapestry.engine.DefaultSpecificationSource.getComponentSpecification
(DefaultSpecificationSource.java:275)
16:02:35,287 ERROR [STDERR] 	at 
org.apache.tapestry.resolver.ComponentSpecificationResolver.found
(ComponentSpecificationResolver.java:235)
16:02:35,287 ERROR [STDERR] 	at 
org.apache.tapestry.resolver.ComponentSpecificationResolver.searchForComponent
(ComponentSpecificationResolver.java:190)
16:02:35,287 ERROR [STDERR] 	at 
org.apache.tapestry.resolver.ComponentSpecificationResolver.resolve
(ComponentSpecificationResolver.java:158)
16:02:35,287 ERROR [STDERR] 	at 
org.apache.tapestry.engine.DefaultTemplateSource$ParserDelegate.getAllowBody
(DefaultTemplateSource.java:139)
...
16:02:35,318 ERROR [STDERR] Caused by: 
org.apache.tapestry.util.xml.DocumentParseException: Attribute "java-type" must 
be declared for element type "parameter".
16:02:35,318 ERROR [STDERR] 	at 
org.apache.tapestry.parse.SpecificationParser.parse
(SpecificationParser.java:651)
16:02:35,318 ERROR [STDERR] 	at 
org.apache.tapestry.parse.SpecificationParser.parseComponentSpecification
(SpecificationParser.java:601)
16:02:35,318 ERROR [STDERR] 	at 
org.apache.tapestry.engine.DefaultSpecificationSource.parseSpecification
(DefaultSpecificationSource.java:163)
16:02:35,318 ERROR [STDERR] 	... 87 more
16:02:35,318 ERROR [STDERR] Caused by: org.xml.sax.SAXParseException: 
Attribute "java-type" must be declared for element type "parameter".
16:02:35,318 ERROR [STDERR] 	at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
16:02:35,318 ERROR [STDERR] 	at org.apache.commons.digester.Digester.parse
(Digester.java:1548)
16:02:35,318 ERROR [STDERR] 	at 
org.apache.tapestry.parse.SpecificationParser.parse
(SpecificationParser.java:642)
16:02:35,318 ERROR [STDERR] 	... 89 more



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org