22 Jan 2012 8:44 PM #11
No static IDs. Got it. I wasn't planning on keeping them, it was just part of a newbie's testing and figuring things out. Gone....and never again!
23 Jan 2012 3:27 AM #12
I've had a bit more of a think about my last post. I'm not convinced my logic actually holds up. If you have a button (a view) with the caption 'Edit User' then the view already implicitly has knowledge of how that view is controlled. My claim that having it fire an editUser event would be moving logic from the controller to the view is dubious at best.
What I would say instead is that mapping a click event to an editUser event is adding an extra layer of abstraction and you should think carefully about whether you need that extra abstraction before adding it to all your views.