[Lazarus] WebLaz bug
leledumbo
leledumbo_cool at yahoo.co.id
Thu Nov 29 08:33:40 CET 2012
> I don't know if this bug is related to Lazarus, WebLaz or FPC. Please
tell me and I'll post it on Mantis:
To reproduce it, please follow this steps:
1) Create a CGI application. You'll need WebLaz package.
2) Add an FPWebModule.
3) Add two or three actions. Compile and check if they work as expected.
4) Delete the method "onRequest..." of one action from code, DO NOT
REMOVE THE ACTION USING THE ACTIONS EDITOR, just delete the method
similar to this (from interface and implementation):
procedure myActionRequest(Sender: TObject; ARequest: TRequest;
AResponse: TResponse; var Handled: Boolean);
5) Compile and test. When you invoke any action of this webmodule,
you'll get this:
Error reading XXXXXXX.Actions: Error reading TFPWebAction.OnRequest: Invalid
value for property
That's normal, as if you delete a generated event handler from any
application (e.g. OnClick of a TButton). The resource file is not
automatically updated with your changes in the code. Simply don't do such a
thing, and use the actions editor, that's why it exists.
--
View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-WebLaz-bug-tp4027787p4027790.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
More information about the Lazarus
mailing list