Make data binding more flexible in UIForm
-----------------------------------------
Key: GTNPORTAL-1953
URL:
https://issues.jboss.org/browse/GTNPORTAL-1953
Project: GateIn Portal
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: WebUI
Reporter: Minh Hoang TO
Binding data fields of an UIForm instance is actually delegated to an associated instance
of BeanDataMapping.
{code}
public void invokeGetBindingBean(Object bean) throws Exception
{
if (beanMapping == null)
{
beanMapping = ReflectionDataMapping.getInstance();
}
beanMapping.mapField(this, bean);
}
public void invokeSetBindingBean(Object bean) throws Exception
{
if (beanMapping == null)
{
beanMapping = ReflectionDataMapping.getInstance();
}
beanMapping.mapBean(bean, this);
}
{code}
Within the current code, it is impossible to set custom BeanDataMapping (unless using
reflection). Hence, the real data mapping is always tied to ReflectionDataMapping!
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira