[
http://issues.apache.org/jira/browse/TAPESTRY-406?page=comments#action_12316042
]
Kent Tong commented on TAPESTRY-406:
------------------------------------
The bug seems to be here:
public class BindingBeanInitializer extends AbstractBeanInitializer
{
public void setBeanProperty(IBeanProvider provider, Object bean)
{
if (_binding == null)
//BUG: Because there is only one BindingBeanInitializer for a
//component type, it should NOT cache the binding because the
//binding refers to a specific component.
{
IComponent component = provider.getComponent();
String description =
BeanMessages.propertyInitializerName(_propertyName);
_binding = _bindingSource.createBinding(
component,
description,
_bindingReference,
BindingConstants.OGNL_PREFIX,
getLocation());
}
Class propertyType = PropertyUtils.getPropertyType(bean, _propertyName);
Object bindingValue = _binding.getObject(propertyType);
setBeanProperty(bean, bindingValue);
}
}
> Bean Property does not get updated from component parameter
> -----------------------------------------------------------
>
> Key: TAPESTRY-406
> URL: http://issues.apache.org/jira/browse/TAPESTRY-406
> Project: Tapestry
> Type: Bug
> Reporter: Ron Piterman
> Priority: Critical
> Attachments: bug.zip
>
> in the bean's <set ... referencing a component parameter causes the following
> behaiviour:
> the first value which is set to the bean property is being use in all
> instances of the component, as if the bean is shared between instances,
> without updating its properties.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]