You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jun Tsai <ju...@gmail.com> on 2005/10/19 05:44:10 UTC

How to get a hivemind object in a custome validator?

hi,all
I write a custome validator.I want to access the hivemind object.How to do?

My configuration code is:

<contribution configuration-id="tapestry.form.validator.Validators">
<validator name="testValidator" class="corner.lucene.test.TestValidator"/>
</contribution>


--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net

Re: How to get a hivemind object in a custome validator?

Posted by Ron Piterman <rp...@gmx.net>.
AFAIK, in such a case you should use a bean 
(validator="validators:$testValidator), and set the hivemind 
service/object using injection and <set name=...
Cheers,
Ron



ציטוט Jun Tsai:
> hi,all
> I write a custome validator.I want to access the hivemind object.How to do?
> 
> My configuration code is:
> 
> <contribution configuration-id="tapestry.form.validator.Validators">
> <validator name="testValidator" class="corner.lucene.test.TestValidator"/>
> </contribution>
> 
> 
> --
> Welcome to China Java Users Group(CNJUG).
> http://cnjug.dev.java.net
> 


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