On Sep 22, 2005, at 10:06 PM, Paul McNett wrote:

I have a dForm with, among other things, a couple buttons with captions "Sign In" and "Sign Out". The onHit() handlers call self.getBizobj().signIn() and self.getBizobj().signOut(), because there's logic there that really belongs at the business logic level rather than the ui level.

The problem here is that the buttons are talking to something other than the form. They should follow the Chain of Responsibility pattern and call methods of the Form. The bizobj's signIn() and signOut() methods should return result values that the form can then use to raise whatever events need to be raised.


-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to