Ron Piterman <mplayer <at> vollbio.de> writes:

> in a component I have a 'required' parameter, which is passed to a 
> validator bean to use in a "ValidField" component:
> 
> <parameter name="required" default-value="false">
> ...
> <bean...>
>    <set name="required" value="required">
> 
> If i use more than one instance of my component in a page, the bean is 
> not updated for each instance, thus all are either required or not, 
> depending on the *first* instance.

<set ...> is setting a value to the "required" property
of the bean (one off). It is NOT binding the "required" 
property to an OGNL expression, therefore changing to
your "required" parameter will not be seen by the "required"
property.

--
Author of e-book for learning Tapestry (www.agileskills2.org/EWDT)


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

Reply via email to