By Chan - 2/4/2009
Hi,
Currently, SF's webform would use page property name (BusinessLayer derived type) as key to store BO instance to session. I would like to customize this because we faced issues that, since BOs are "shared" among all forms (same property name), it causes developers need to be very careful on any settings done in other form such as BO.filter and etc. It also complicated the troubleshooting process.
How could I customize it? I would like to use Form.UniqueID + Form.BOPropertyName as key. I checked the source code and found that it is almost impossible. Even though I am able to prevent BasePage.Page_PreLoad to be fired and override with my own logic using Reflection, but it still not bullet prooof. As I see some other code call BasePage.GetBusinessObject() directly which I couldn't hijack it.
Please advice. Urgent!
Thank you
|
|