hi martijn,

the validator parameter of the textfield requires a FieldValidator.
you can obtain a FieldValidator through the FieldValidatorSource
service. 

take a look at the PropertyEditor and the PropertyEditBlock class 
to see how FieldValidators are applied programmatically. 
 
g,
kris





"Martijn Brinkers (List)" <[EMAIL PROTECTED]> 
26.06.2008 09:16
Bitte antworten an
"Tapestry users" <[email protected]>


An
Tapestry users <[email protected]>
Kopie

Thema
How to inherit or have a dynamic validate







I have a component containing a TextField. The TextField should support
validation. For example:

@Component(id = "field", parameters = {"validate=required,minlength=3"})
private TextField field;

But, I would like to make it possible to override the validation. So for
example:


@Component(id = "field", parameters =
{"validate=prop:getTheValidationValue"})

or from the tml file

<input type="text" t:id = "field" t:type="TextField" value="value"
disabled="checked" t:validate="inherit:validate"/>

But I have not yet succeeded.

Any tips?

Martijn


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to