I have a page that is doing a lot of heavy-lifting server-side and then showing up as a page-within-a-page on a custom object layout.
When something goes wrong (usually finding no available products) I let the user know. I'd like to also log these in Chatter so users don't have to tell us that something's not available--we can just follow an "exception Chatterer"
I'm running into the DML not allowed because all that calc runs in the constructor (I want it to happen when the page loads). Posting to chatter is considered DML.
I tried making it @future, but that's not allowed in constructors, either. Any suggestions on this? We liked the idea of a chatter exception log, but it's really only helpful if all the classes can use it.