You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Yoritaka Sakakura <yo...@powersteeringsoftware.com> on 2005/08/17 17:35:40 UTC

RE: Validators [tap4]

I got confused by this as well; use the `validators:' (plural) binding
prefix for the new validation

	-Yori

-----Original Message-----
From: lars.borup@email.dk [mailto:lars.borup@email.dk] 
Sent: Wednesday, August 17, 2005 4:37 AM
To: tapestry-user@jakarta.apache.org
Subject: Validators


Hi,

Ive stumbled upon another problem, I'm trying to get validation to work
correcly but seems to be getting a ClassCastException from
ValidatableFieldSupportImpl when casting a ...valid.Validator to a
...form.validation validator which is ofcoz OK, but how do I specify I
want
to use the "new" validators?

---- snippet ----
	<component id="editForm" type="Form">
		<binding name="clientValidationEnabled" value="true"/>
	</component>

	<component id="orgName" type="TextField">
		<binding name="value" value="ognl:organisation.name"/>
		<binding name="validators" value="validator:string"/>
		<binding name="displayName" value="ognl:'Name'"/>
	</component>
---- snippet ----

Do I need to add something specific to my .application or hivemodule
files?

regards
--
Lars Borup Jensen


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


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