Advice of the week:
Separate form bean and core model state in more complicated (not naive) user interface related use cases. Propagate changes using events and sensible messaging.
Little real life story:
I have used two different frameworks in two production systems with naive auto binding controls with model objects. In both cases controls were changing almost directly state of underlying model entities. It's good for fast prototypes, but not for production demands and interaction with real users. Creating simple workarounds was good enough, but caused strange quirks in displaying actual state. Some fraction of users were loosing their confidence in system reliability, and called for support. The problem was fixed, by redesigning some UI controls and model entities interaction.
No comments:
Post a Comment