The built-in PropertySelection doesn't allow the selection to be
validated. Have a look at
http://equalitylearning.org/Tassel/app?service=direct/1/Browse/viewComponent&sp=SsrirangValidPropertySelect

- Srini

On 5/12/05, Random Tapestry User <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I have a PropertySelection component that defines a US state selector.
> The first option in the selector is "--Select One--" with a code of "00"
> for it.
> I want to be able to use a validator that hooks into all the subsystems
> like "ValidField" does, so it will display the error message, and mark
> up the field label appropriately for errors.
> 
> I can't understand how to do this.
> I tried adding a validator to the component, like this, but to no avail...
> Any help ?
> 
> <component id="inputState" type="PropertySelection">
>     <binding name="displayName"
> expression="page.global.getL10N('state',page.locale)" />
>     <binding name="value" expression="page.stateCode" />
>     <binding name="model" expression="page.stateChoicesModel" />
>     <binding name="validator"
> expression="page.beans.singleSelectValidator"/>
> </component>
> 
> Thanks all,
> tappapp
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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

Reply via email to