Kevin Menard wrote:
On Jul 3, 2005, at 8:17 PM, Scott F. Walter wrote:
ValidatorsBinding vb = (ValidatorsBinding)
component.getBinding("validators"); Collection
collection = (Collection) vb.getObject();
for(Iterator it = collection.iterator();it.hasNext();){
Validator validatorObject = (Validator) it.next();
System.out.println("Validator" + validatorObject.getClass
().getName());
}
So in your case if you would check tat the class name of a validator
is "org.apache.tapestry.form.validator.Required", then you can put
the required field marker.
Thanks Scott, this indeed worked (well, I had to add a few null
checks in there). Not as nice a solution as I was hoping for, but
it's got me going now anyway.
Thanks again,
Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I reported an enhancement to see if we could get some type of helper
method that would at least just return a collection so that we don't
need to worry about getting the correct binding.
--
Scott F. Walter Scott F. Walter
Principal Consultant
Vivare, Inc.
E: [EMAIL PROTECTED]
E: [EMAIL PROTECTED]
Visit scottwalter.com <http://scottwalter.com> --Point. Click. Explore!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]