Dan Haywood created ISIS-1864:
---------------------------------

             Summary: Refactor EntityModel and ScalarModel so that don't 
unnecessarily reset scalar model properties after action invocation.
                 Key: ISIS-1864
                 URL: https://issues.apache.org/jira/browse/ISIS-1864
             Project: Isis
          Issue Type: Improvement
    Affects Versions: 1.16.0
            Reporter: Dan Haywood
             Fix For: 2.0.0


as per 
[https://lists.apache.org/thread.html/9924509e3d3e0398e230467d80370e2f9d6dc94641aaa402db56c24e@%3Cusers.isis.apache.org%3E]

 

I think that the parent EntityModel shouldnt' really have this responsibility 
of telling each of its child ScalarModel's to reset themselves. Rather, perhaps 
it should simply instruct the ScalarModels that they are now dirty, so that if 
and when the ScalarModels are next asked for their state (for re-rendering) 
they then will query the underlying domain object ... but not before.

 

Also, ScalarModel inherits from EntityModel, but I think that's not correct; 
should factor out a common supertype for both.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to