2003-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System.Web / System.Web.Compilation / ChangeLog
1 2003-02-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2
3         * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
4         when used explicitly.
5
6 2003-02-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
7
8         * AspElements.cs: get the property Type for controls that use
9         ParseChildren with a property name.
10
11         * AspGenerator.cs: generate correct signature for the method that
12         adds controls to the default property in ParseChildren.
13
14 2003-02-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
15
16         * AspGenerator.cs: rethrow exceptions that may come from parsing or 
17         compilation if a user control.
18
19 2003-02-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
20
21         * AspGenerator.cs: throw ParseException on parse
22         error.
23
24         * AspParser.cs: added Line and Column props.
25
26         * CompilationException.cs: derives now from HtmlizedException.
27
28         * CompilationResult.cs: added fileName field.  Fixed set_ExitCode.
29
30         * GlobalAsaxCompiler.cs:
31         * PageCompiler.cs:
32         * UserControlCompiler.cs: pass the file name in the CompilationResult.
33
34         * ParseException.cs: new exception.
35
36
37 2003-02-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
38
39         * AspGenerator.cs: remove "file://" from the private bin path. Fixes
40         bug #37628.
41
42 2003-02-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
43
44         * AspParser.cs: the parser fires events when it parses an element.
45
46         * GlobalAsaxCompiler.cs:
47         * PageCompiler.cs:
48         * UserControlCompiler.cs:
49         * AspElements.cs: modified to use the new parser interface.
50
51         * AspGenerator.cs: modified to use the new parser. Merge multiple text
52         strings into one single LiteralControl.
53
54         * AspTokenizer.cs: added Line and Column properties.
55
56 2003-01-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
57
58         * AspParser.cs: fixed bug #36929.
59
60 2003-01-21  Tim Haynes <thaynes@openlinksw.com>
61
62         * AspGenerator.cs:
63         * BaseCompiler.cs:
64         * CachingCompiler.cs: changes to work around spaces and
65         directory-separators in the local filesystem.
66
67 2003-01-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
68
69         * AspGenerator.cs: make the generated file compile with csc after last
70         change.
71
72 2003-01-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
73
74         * AspGenerator.cs: removed unused variable. Added support for
75         properties/fields of type string [].
76
77 2003-01-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
78
79         * AspGenerator.cs: modified loading of the parent type now that
80         Type.GetType is fixed.
81
82 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
83
84         * AspGenerator.cs: cast to Control if the container does not implement
85         INamingContainer.
86
87 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
88
89         * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
90
91 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
92
93         * AspElements.cs: attributes without value lacked a space afterwards.
94
95 2003-01-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
96
97         * AspGenerator.cs: functions for columns don't return anything. Fixed
98         typo.
99
100 2003-01-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
101
102         * AspGenerator.cs: add data bound controls to code render function.
103
104 2003-01-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
105
106         * AspComponentFoundry.cs: reworked to allow same prefix for multiple
107         controls. You can register 1 assembly plus any number of user controls
108         under the same prefix.
109
110         * AspGenerator.cs: don't add duplicate 'using' for the same namespace.
111         Hack to allow @Register access to assemblies in other places than bin
112         directory.
113
114 2003-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
115
116         * AspElements.cs: added 'codebehind' attribute for page, control and
117         application. It's ignored by MS, but allowed. Fixed typo.
118
119 2003-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
120
121         * AspGenerator.cs: fixed EnableSesssionState handling.
122
123 2003-01-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
124
125         * AspGenerator.cs: don't generate instance fields for pages/controls
126         when the base class specified in the Inherits attribute already has
127         them. Closes bug #36262.
128
129 2002-12-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
130
131         * AspGenerator.cs: generate code like 'control.XXX = value' also for
132         public fields (properties were being handled in that way too).
133
134 2002-12-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
135
136         * AspGenerator.cs: now it uses the current HttpContext when creating
137         user controls. TemplateSourceDirectory is no longer a dummy value.
138
139         * GlobalAsaxCompiler.cs:
140         * PageCompiler.cs:
141         * UserControlCompiler.cs: set the context which will be used to locate
142         the files.
143         
144 2002-12-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
145
146         * AspGenerator.cs: added support for AutoEventWireup attribute in
147         @Page and @Control.
148
149         * CompilationResult.cs:
150         * GlobalAsaxCompiler.cs:
151         * PageCompiler.cs:
152         * UserControlCompiler.cs: store the options.
153
154 2002-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
155
156         * AspElements.cs: new method Tag.GetElements
157         used to parse the inner contents of a tag looking for data binding or 
158         code render tags.
159         
160         New property HtmlControlTag.ParseChildren allows
161         differentiation of a couple of HtmlControls that has children as
162         properties (namely HtmlTable and HtmlTableRow).
163
164         * AspGenerator.cs: fixed container semantics to
165         match BindingContainer one. Implemented Inherits attribute for page and
166         control.
167
168         Support HtmlControls that has ChildrenAsProperties.
169         
170         Generate code for data binding functions that matches the semantic of
171         Container.
172
173         Handle data bound and code render attribute values.
174
175         Set proper value return for TemplateSourceDirectory. Should be relative
176         to appPath.
177         
178         * BaseCompiler.cs: moved CompilerOptions and
179         References handling here.
180
181         * CachingCompiler.cs: copy result of compilation.
182
183         * CompilationException.cs: simple ToString () implementation.
184
185         * CompilationResult.cs: implemented CopyFrom and ToString.
186
187         * GlobalAsaxCompiler.cs:
188         * PageCompiler.cs:
189         * UserControlCompiler.cs: removed CompilerOptions as it's now handled
190         in the base class. Get all the types in the generated assembly and
191         look for one that derives from the correct Type.
192         
193 2002-11-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
194
195         * AspElements.cs: added @Application directive.
196
197         * AspGenerator.cs: make it work also with application files. We
198         currently generate an extra private function.
199
200 2002-11-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
201
202         * GlobalAsaxCompiler.cs: compiler for global.asax file. If the file
203         exists, it will be compiled into an HttpApplication derived class
204         (directly or through a user-provided class).
205
206 2002-11-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
207
208         * AspGenerator.cs: fixed target file name and generated class name.
209         * BaseCompiler.cs: reference assemblies in PrivateBinPath.
210
211 2002-11-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
212
213         * AspGenerator.cs: reworked user control
214         compilation. Provide the options as a Hashtable for use in compilation.
215         Create the user controls in the private bin path of the domain.
216
217         * BaseCompiler.cs: base class for the various compiler types.
218
219         * CachingCompiler.cs: actually executes mcs and do some poor caching
220         (it will use Cache when finished).
221
222         * CompilationException.cs: this exception has enough information to
223         generate a nice error page.
224         * CompilationResult.cs: used in caching.
225
226         * PageCompiler.cs: now derives from BaseCompiler
227
228         * TemplateFactory.cs: no longer needed.
229
230         * UserControlCompiler.cs: new class used when compiling user controls.
231         * WebServiceCompiler.cs: derives from BaseCompiler.
232
233 2002-11-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
234
235         * AspElements.cs: added ServerComment class.
236         * AspParser.cs: ignore ServerComments tags. Remove server comments when 
237         in verbatim mode.
238
239         Fixes #33482.
240
241         * PageCompiler.cs: check if the type is already cached before generating
242         the C# file.
243         * TemplateFactory.cs: if csFile parameter is null, only checks if we
244         already have the page compiled.
245
246 2002-11-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
247
248         * AspGenerator.cs: undo one-liner change.
249
250 2002-10-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
251
252         * AspGenerator.cs: removed a few hacks no longer needed.
253
254 2002-10-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
255
256         * PageCompiler.cs: tracing.
257         * TemplateFactory.cs: cache compiled types and tracing.
258         * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
259
260 2002-10-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
261
262         * AspComponentFoundry.cs: fixed typo.
263         * TemplateFactory.cs: use csc style options.
264         * AspGenerator.cs: don't use FileDependencies property of base class.
265
266 2002-09-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
267
268         * System.Web.Compilation/AspElements.cs:
269         * System.Web.Compilation/AspGenerator.cs:
270         * System.Web.Compilation/AspParser.cs:
271         * System.Web.Compilation/PageCompiler.cs:
272         * System.Web.Compilation/TemplateFactory.cs: we are now able to compile
273         pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.
274
275 2002-09-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
276
277         * AspElements.cs: added WebService directive.
278         * WebServiceCompiler.cs: New file.
279
280 2002-08-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
281
282         * PageCompiler.cs: fixed compilation.
283
284 2002-08-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
285
286         * PageCompiler.cs: generate C# file using AspGenerator.
287
288 2002-08-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
289
290         * AspComponentFoundry.cs: LookupFoundry now returns bool.
291         * AspGenerator.cs: New file.
292
293 2002-08-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
294
295         * AspComponentFoundry.cs: New file.
296         * AspElements.cs: renamed Component to Aspcomponent.
297
298 2002-08-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
299
300         * AspElements.cs:
301         * AspParser.cs:
302         * AspTokenizer.cs:
303         * ChangeLog:
304         * PageCompiler.cs:
305         * TemplateFactory.cs: first steps to move xsp into System.Web.
306