Componentes.Terceros.DevExp.../official/x.30/ExpressWeb Framework/Demos/Delphi/CustomRenderDemo/CustomRenderData.pas

35 lines
723 B
ObjectPascal
Raw Normal View History

unit CustomRenderData;
interface
uses SysUtils, Classes, HTTPApp, cxWebModule, cxWebAppSrv;
type
TCustomRenderDataMod = class(TcxWebHomeDataModule)
private
{ Private declarations }
public
{ Public declarations }
end;
function CustomRenderDataMod: TCustomRenderDataMod;
implementation
{$R *.DFM}
uses
WebReq, WebCntxt, cxWebModFact, Variants;
function CustomRenderDataMod: TCustomRenderDataMod;
begin
Result := TCustomRenderDataMod(WebContext.FindModuleClass(TCustomRenderDataMod));
end;
initialization
if WebRequestHandler <> nil then
WebRequestHandler.AddWebModuleFactory(TcxWebHomeDataModuleFactory.Create(TCustomRenderDataMod, caDestroy));
end.