Op dinsdag 08-01-2008 om 14:29 uur [tijdzone +0100], schreef Joost van
der Sluis:
> Op dinsdag 08-01-2008 om 14:14 uur [tijdzone +0100], schreef Mattias
> Gärtner:
> > Zitat von Joost van der Sluis <[EMAIL PROTECTED]>:
> >
> > > Hi al,
> > >
> > > If you install the fpWeb package, create a new cgi-application with a
> > > TFPWebModule. You can drop a THTMLEntityProducer on that module. So far
> > > so good. Then you can add an OnWritePage event, but thereafter the
> > > program will nog compile anymore, because you have to add the
> > > 'htmlwriter' unit to your uses clause manually.
> > >
> > > Question is: how can I do this automatically? Thus that when you drop a
> > > THTMLEntityProducer on a module, add the 'htmlwriter' unit
> > > automatically?
> >
> > The IDE should do this automatically. What package installs
> > THTMLEntityProducer?
>
> components/fpweb/weblaz.lpk
Well, it is.
Here with me, locally...
I thought that I already send in the patch to add it to Lazarus. Seems
like I didn't. Attached is the patch. The THTMLEntityProducer is only
for fpc 2.2.3 and above so I added some ifdefs for fpr 2.0.4 and 2.2.0.
Joost.
Index: weblazideintf.pp
===================================================================
--- weblazideintf.pp (revision 13658)
+++ weblazideintf.pp (working copy)
@@ -96,7 +96,9 @@
begin
RegisterComponents(fpWebTab,[THTMLDatasetContentProducer,
THTMLSelectProducer,
- THTMLDatasetSelectProducer])
+ THTMLDatasetSelectProducer
+ {$IFNDEF VER2_0}{$IFNDEF VER2_2_0},THTMLEntityProducer{$ENDIF}{$ENDIF}
+ ])
end;