|
From: Lieven D. (JIRA) <no...@sp...> - 2008-10-30 19:10:49
|
[ http://jira.springframework.org/browse/RCP-560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lieven Doclo resolved RCP-560.
------------------------------
Resolution: Won't Fix
Getting the changed properties can be done through calling:
Set<String> fNames = formModel.getFieldNames();
for(String fName : fNames)
{
FieldMetaData fmd = formModel.getFieldMetaData(fName);
if(fmd != null && fmd.isDirty())
{
// do something
}
}
> Form model show be able to give dirty information in the form object with more granularity
> ------------------------------------------------------------------------------------------
>
> Key: RCP-560
> URL: http://jira.springframework.org/browse/RCP-560
> Project: Spring Rich Client Project
> Issue Type: Improvement
> Components: Binding System
> Affects Versions: 0.2.1
> Reporter: Jonathan Erlich
> Assignee: Lieven Doclo
> Priority: Minor
> Fix For: 1.x
>
>
> I have a form that extends from AbstractForm, and when i do commit i want to show a particular message..
> Currently I check the ValidatingFormModel's isDirty message to know if the model is dirty to know whether to show the message or not.
> The problem is that what i need is to show that message only if some particular o particulars properties have been changed.
> I could manage the changes by myself by knowing the current and the old objects but if i have a lot of forms this becomes rather difficult.
> I've seen the source code and it seems like AbstractFormModel has a private Set with the changed properties.. maybe if this map is exposed somehow i could do what i need.
> If there's a simpler way to do it that i'm not aware of please tell me
> Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|