[fpc-pascal] Re: FPWebModule: BeforeResponse event?
leledumbo
leledumbo_cool at yahoo.co.id
Tue Mar 27 17:35:22 CEST 2012
Seems like I decided too quickly, how can I implement GetContent for each
action? I guess it's related to your statement: "where a virtual
'GetContent' is defined that tries the webactions. The descendants either
implement webactions, or override getcontent"
What do you mean by "tries the webactions"?
For now, I implement what I want by using OnAfterResponse event implemented
in ModLayout. The descendant modules' actions' OnAfterResponse just link to
it. Inside it, I copy AResponse.Content filled by the actions to a temporary
variable (say InnerContent) and overwrite it with the layout code.
InnerContent is then put back into the right place.
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/FPWebModule-BeforeResponse-event-tp5591664p5598169.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list