Commit Graph
947 Commits
Author SHA1 Message Date
Igor Zelmanovich 319bae5d40 add #if TARGET_J2EE
svn path=/trunk/mcs/; revision=94239
2008-01-29 10:47:28 +00:00
Vladimir Krasnov daa359ed97 performance optimizations
svn path=/trunk/mcs/; revision=94233
2008-01-29 08:45:21 +00:00
Igor Zelmanovich 43dd011987 added TARGET_JVM ifdefs
svn path=/trunk/mcs/; revision=94044
2008-01-27 12:24:31 +00:00
Marek Habersack e71f514f40 2008-01-24 Marek Habersack <[email protected]>
* WebHandlerBuildProvider.cs: derive from the new
	SimpleBuildProvider class.

	* BuildManager.cs: full implementation of the batch compilation
	for the 2.0 profile. The implementation is most probably different
	to MS.NET's but the effects are the same (or nearly the same -
	there are some minor differences). There are missing bits and
	pieces, but minor ones - to be added later.

	* SimpleBuildProvider.cs: new build provider abstract class
	deriving from the GenericBuildProvider that implements common code
	for building web handlers and web services.

	* GenericBuildProvider.cs: new generic abstract class used to
	implement base builder code for all the build provider types and
	maximize code reuse.

	* PageBuildProvider.cs: derive from the new TemplateBuildProvider
	class and implement all the necessary abstract members. 
	Handle "fake" virtual paths, to properly support generating of the
	WSDL helper code.

	* BuildProvider.cs: SetVirtualPath now converts the passed path to
	absolute URL.
	Added internal virtual method GenerateCode, used by derived
	classes.
	SetCommonParameters no longer sets the referenced assemblies, this
	is done in BuildManager now.
	Added an internal virtual property CodeUnit which returns the
	build provider's compilation unit.

	* PageCompiler.cs: fix assignment of base types for asynchronous
	pages, to match MS.NET.
	For asynchronous pages, add the necessary methods generation.

	* BaseCompiler.cs: default namespace is now set using a constant.
	Renamed the Init method into ConstructType, to better reflect its
	purpose and made the method internal - it is used by the build
	providers.
	Added several CreateProvider overloads for easier and more unified
	compilation provider creation.
	Added an internal MainClassType property to enable class type name
	retrieval from other parts of the class hierarchy.

	* ApplicationFileBuildProvider.cs: new build provider deriving
	from the TemplateBuildProvider class to compile the global.asax
	file.

	* AspGenerator.cs: properly handle parsers which have no input
	file path given, but use TextReader instead.
	Dependencies are virtual paths now, convert them to physical ones
	before creating cache dependency.

	* CachingCompiler.cs: parser dependencies are virtual paths now,
	convert them to physical ones before creating cache dependency.

	* AssemblyBuilder.cs: full implementation of the documented
	functionality as well as a lot of internal build code
	added. Produces assemblies using the same style what MS.NET for
	temporary and target file naming. Handles partial type squashing
	if the same partial type is used by several code compile units
	added to the same builder instance.

	* MasterPageBuildProvider.cs: use the new TemplateBuildProvider
	base class and add implementation of all the abstract methods
	required by it.

	* ThemeDirectoryBuildProvider.cs: new build provider to compile
	theme directories. Replaces the old ThemeDirectoryCompiler class.

	* UserControlBuildProvider.cs: use the new TemplateBuildProvider
	base class and add implementation of all the abstract methods
	required by it.

	* TemplateBuildProvider.cs: new internal abstract class which
	implements the common tasks for all the template control build
	providers.

	* WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
	type to implement building.

2008-01-24  Marek Habersack  <[email protected]>

	* PageThemeFileParser.cs: the DefaultBaseType property removed.

	* ApplicationFileParser.cs: added constructor which takes a
	TextReader.
	Removed the DefaultBaseType property.
	Added the Reader property.

	* MasterPage.cs: use BuildManager to create page instance.

	* WebHandlerParser.cs: added a compatibility constructor.

	* TemplateControl.cs: GetTypeFromControlPath uses
	BuildManager.GetCompiledType for the 2.0+ profile.

	* WebServiceParser.cs: added a compatibility internal
	constructor.

	* SimpleWebHandlerParser.cs: properly treat context and
	physicalPath parameters to the constructor, especially for the
	2.0+ profile where they are obsolete.
	Dependencies are added using virtual paths.

	* PageThemeParser.cs: DefaultBaseType property removed.

	* Page.cs: Style sheets and themes are compiled using
	BuildManager.
	Previous page instance is compiled using BuildManager for the 2.0+
	profile.

	* MasterPageParser.cs: Use BuildManager to create instance and
	compile types.
	Dependencies are added using virtual paths.

	* SimpleHandlerFactory.cs: Use
	BuildManager.CreateInstanceFromVirtualPath for the 2.0+ profile.

	* UserControlParser.cs: if the parser is created using a
	TextReader, take the input file path from the virtual path.
	Added a new internal constructor which takes both a TextReader and
	an inputFile parameters.
	Set base type to the default in the constructors.
	Use virtual path when setting master page dependency.
	DefaultBaseTypename doesn't use a literal string in the 2.0+
	profile, it gets the base type from the application
	configuration.

	* TemplateControlParser.cs: Dependency on a control/page mentioned
	in the Reference directive is registered using the virtual path.
	TextReader property is an override now.

	* TemplateParser.cs: RegisterCustomControl adds a dependency on
	the virtual path, not the physical path. The custom control is
	compiled using BuildManager.GetCompiledType for the 2.0+ profile.
	RegisterNamespace does not add a dependency on the assembly.
	LoadType does not add a dependency on the assembly.
	Legacy Src attribute is handled properly now.
	Dependency on code-behind (Src and CodeFile directive attributes)
	is added using the code-behind file's virtual path.
	GetAssemblyFromSource adds a dependency using the virtual path.
	DefaultBaseType implemented here, using DefaultBaseTypeName which
	is implemented in the descendant classes.
	Added internal CodeBehindSource property, used by build
	providers.
	ClassName property works correctly if inputFile is missing
	(e.g. when the parser has been created using a TextReader)
	Added a virtual internal property TextReader to return the readed
	which has been used to create the parser instance.

	* PageHandlerFactory.cs: GetHandler uses
	BuildManager.CreateInstanceFromVirtualPath for the 2.0+ profile.

	* PageParser.cs: set the default base type in the constructors.
	If the input file is not passed to a constructor, take the input
	file path from the virtual path.
	GetCompiledPageInstance uses BuildManager.CreateInstanceFromVirtualPath
	for the 2.0+ profile.
	MasterPage dependency is set using the virtual path of the master
	page.
	MasterPage is compiled into a type using BuildManager.GetCompiledType.
	GetCompiledPageType uses BuildManager.GetCompiledType for the 2.0
	profile.
	DefaultBaseType override removed, it is implemented in the
	TemplateParser class.
	DefaultBaseTypename doesn't use a literal string in the 2.0+
	profile, it gets the base type from the application
	configuration.

2008-01-24  Marek Habersack  <[email protected]>

	* HttpApplicationFactory.cs: use BuildManager.GetCompiledType to
	build the application (global.asax) file.

svn path=/trunk/mcs/; revision=93848
2008-01-24 21:55:44 +00:00
Igor Zelmanovich de966a4039 refactoring
svn path=/trunk/mcs/; revision=93658
2008-01-23 14:08:12 +00:00
Konstantin Triger df4e7231c2 suppress exception and return url as is
svn path=/trunk/mcs/; revision=93342
2008-01-20 10:14:38 +00:00
Igor Zelmanovich f17a851ad5 2008-01-17 Igor Zelmanovich <[email protected]>
* Control.cs: fix ResolveUrl for some cases.


svn path=/trunk/mcs/; revision=93166
2008-01-17 15:34:56 +00:00
Igor Zelmanovich 0751c1ad58 2008-01-17 Igor Zelmanovich <[email protected]>
* BaseCompiler.cs: Assign AppRelativeVirtualPath correctly

2008-01-17 Igor Zelmanovich <[email protected]>

	* Control.cs: consider changes in BaseCompiler.cs.


svn path=/trunk/mcs/; revision=93162
2008-01-17 15:16:39 +00:00
Igor Zelmanovich 46da4135f5 consider args correctly
svn path=/trunk/mcs/; revision=92960
2008-01-15 16:59:37 +00:00
Igor Zelmanovich 35da1a378a refactoring:
call SetupResponseWriter before render phase.

svn path=/trunk/mcs/; revision=92879
2008-01-14 17:12:25 +00:00
Igor Zelmanovich 46f1994852 2008-01-14 Igor Zelmanovich <[email protected]>
* Control.cs: fixed ResolveClientUrl.
	use Context.FilePath instead of Context.CurrentExecutionPath for 
	resolvint app. releative path.	


svn path=/trunk/mcs/; revision=92844
2008-01-14 11:45:22 +00:00
Vladimir Krasnov 404e02e76a * Page.jvm.cs: optimized SetupResponseWriter, fixed getChildCount and getChildren methods
* Control.jvm.cs: fixed getChildCount method

svn path=/trunk/mcs/; revision=92792
2008-01-13 13:22:03 +00:00
Konstantin Triger 50f6e99a46 ensure events are wired using public interface
svn path=/trunk/mcs/; revision=92783
2008-01-13 12:17:44 +00:00
Igor Zelmanovich 9020ff705e refactoring
svn path=/trunk/mcs/; revision=92775
2008-01-13 10:00:34 +00:00
Igor Zelmanovich dc5657a2a6 2008-01-13 Igor Zelmanovich <[email protected]>
* webform.js:
	make scripts compatible with MicrosoftAjaxLibrary.		


svn path=/trunk/mcs/; revision=92773
2008-01-13 09:38:32 +00:00
Igor Zelmanovich 04661ec92e refactoring:
renamed methods if internal IScriptManager.

svn path=/trunk/mcs/; revision=92583
2008-01-10 13:35:21 +00:00
Konstantin Triger b6bfc1276f TARGET_JVM: wireup auto events only if user did not add them manually
svn path=/trunk/mcs/; revision=92581
2008-01-10 11:21:52 +00:00
Konstantin Triger 49848695bd refactoring: add internal modifier to event keys, so they can be accessed from TemplateControl
svn path=/trunk/mcs/; revision=92580
2008-01-10 11:20:12 +00:00
Igor Zelmanovich 9d9bc5d816 2008-01-10 Igor Zelmanovich <[email protected]>
* webform.js:
	make scripts compatible with MicrosoftAjaxLibrary.		


svn path=/trunk/mcs/; revision=92579
2008-01-10 11:18:40 +00:00
Igor Zelmanovich ec71de5bf5 2008-01-09 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	refactoring.		


svn path=/trunk/mcs/; revision=92511
2008-01-09 15:27:42 +00:00
Igor Zelmanovich 92bbabe175 TARGET_J2EE:
refactoring,  do not use TLS for Context and getFacesContext().

svn path=/trunk/mcs/; revision=92432
2008-01-08 09:54:28 +00:00
Igor Zelmanovich 26024a3c36 2008-01-07 Igor Zelmanovich <[email protected]>
* Page.cs: added internal API
	* IScriptManager.cs: added new internal interface.	

2007-01-07 Igor Zelmanovich <[email protected]>

	* BaseCompareValidator.cs:
	* BaseValidator.cs:
	* CompareValidator.cs:
	* CustomValidator.cs:
	* RangeValidator.cs:
	* RegularExpressionValidator.cs:
	* RequiredFieldValidator.cs:
	refactoring: If page contents instance of IScriptManager, validators call 
	it's API instead Page.ClientScript.									


svn path=/trunk/mcs/; revision=92389
2008-01-07 14:24:43 +00:00
Igor Zelmanovich 0c60815207 fixed CreateActionUrl
svn path=/trunk/mcs/; revision=92388
2008-01-07 14:06:27 +00:00
Igor Zelmanovich d305e47234 2008-01-07 Igor Zelmanovich <[email protected]>
* ClientScriptManager.cs:
	* Control.jvm.cs:			
	* Page.cs:
	* Page.jvm.cs:
	for TARGET_J2EE ensure page life cycle is completed in CrossPagePostBack.
	
2007-01-07 Igor Zelmanovich <[email protected]>

	* Button.cs:
	* ImageButton.cs:
	* LinkButton.cs:
	for TARGET_J2EE used CreateActionUrl instead ResolveClientUrl
	in GetPostBackOptions.			

2007-01-07 Igor Zelmanovich  <[email protected]>

	* HtmlForm.cs: refactoring.


svn path=/trunk/mcs/; revision=92387
2008-01-07 13:38:38 +00:00
Marek Habersack f63737933c 2008-01-07 Marek Habersack <[email protected]>
* CachingCompiler.cs: added an overload to the Compile method
	which accepts a flag whether or not to include debug information
	in the generated assembly.
2008-01-07  Marek Habersack  <[email protected]>

	* TemplateParser.cs: handle legacy 'src' attribute in the 2.0
	profile in the correct way. Fixes bug #319016
	BaseType is global by default.

svn path=/trunk/mcs/; revision=92380
2008-01-07 11:50:21 +00:00
Igor Zelmanovich ba95967aae typo fix
svn path=/trunk/mcs/; revision=92338
2008-01-06 12:06:55 +00:00
Igor Zelmanovich 975de1b3d3 fixed exception handling for TARGET_J2EE
svn path=/trunk/mcs/; revision=92332
2008-01-06 10:19:09 +00:00
Marek Habersack 5c99286487 2008-01-02 Marek Habersack <[email protected]>
* TemplateParser.cs: added a wrapper class for server-side script
	snippets, to keep track of locations.
	Store main directive location for later use in DirectiveLocation
	internal property.
2008-01-02  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: add line pragma wherever necessary.

	* PageCompiler.cs: reorder the statements to match MS.NET output.
	Output line pragma information for directive attributes.

	* BaseCompiler.cs: add a set of AddLinePragma methods for various
	CodeDOM elements. 
	Output line pragmas when adding server-side scripts to the CodeDOM
	tree.

	* AspGenerator.cs: use ServerSideScript to store script location
	in the original file.

	* UserControlCompiler.cs: output line pragmas for the init
	method.

svn path=/trunk/mcs/; revision=92125
2008-01-02 20:52:10 +00:00
Konstantin Triger 5505c8aed3 use old flag for backward compat
svn path=/trunk/mcs/; revision=92113
2008-01-02 16:36:36 +00:00
Igor Zelmanovich 25aa796fcf 2008-01-01 Igor Zelmanovich <[email protected]>
* Page.cs:
	make SubmitDisabledControls and SetFocus works in multiform environment		


svn path=/trunk/mcs/; revision=92091
2008-01-01 15:01:58 +00:00
Igor Zelmanovich 6cf758f0c4 fixed exception handling for TARGET_J2EE
svn path=/trunk/mcs/; revision=92084
2008-01-01 11:59:53 +00:00
Konstantin Triger 78f7f61ae2 formatting; use mainsoft.web.portal.multiform for isMultiForm decision
svn path=/trunk/mcs/; revision=92064
2007-12-31 16:16:03 +00:00
Vladimir Krasnov b0d7426249 refactored thread abort handling
svn path=/trunk/mcs/; revision=92052
2007-12-31 09:52:20 +00:00
Marek Habersack e9cf41bb57 2007-12-27 Marek Habersack <[email protected]>
* BaseCompiler.cs: check for base type globality in all the
	location it is used.
2007-12-27  Marek Habersack  <[email protected]>

	* TemplateParser.cs: check for base type globality also when the
	default type is used.

svn path=/trunk/mcs/; revision=91942
2007-12-27 15:19:48 +00:00
Igor Zelmanovich 4492d14816 2007-12-26 Igor Zelmanovich <[email protected]>
* TraceContext.cs:
	* TraceData.cs:
	make trace considers control state info. 		

2007-12-26 Igor Zelmanovich <[email protected]>

	* Control.cs:
	* Page.cs:
	make Trace considers control state info.		


svn path=/trunk/mcs/; revision=91898
2007-12-26 15:24:35 +00:00
Konstantin Triger e40521d8b1 correct CreateActionUrl for not application paths
svn path=/trunk/mcs/; revision=91896
2007-12-26 15:02:47 +00:00
Igor Zelmanovich 58d6bfaf88 refactoring
svn path=/trunk/mcs/; revision=91835
2007-12-23 14:58:01 +00:00
Igor Zelmanovich c7166273ee for TARGET_J2EE only:
implement integration with JSF.

svn path=/trunk/mcs/; revision=91823
2007-12-23 10:36:14 +00:00
Igor Zelmanovich e8e4686564 refactoring
svn path=/trunk/mcs/; revision=91820
2007-12-23 08:42:23 +00:00
Igor Zelmanovich a7c74b39ba refactoring
svn path=/branches/mainsoft/JSF/mcs/; revision=91700
2007-12-20 13:02:47 +00:00
Igor Zelmanovich 87abd54016 2007-12-20 Igor Zelmanovich <[email protected]>
* Page.cs:	refactoring:
	split method such InternalProcessRequest to several methods.
	It is required for implementing alternative hosting under TARGET_J2EE.


svn path=/trunk/mcs/; revision=91699
2007-12-20 12:42:11 +00:00
Marek Habersack f3a507ea6f 2007-12-20 Marek Habersack <[email protected]>
* ClientScriptManager.cs: write hidden fields inside a div only in
	the 2.0 profile. Fixes bug #349991

svn path=/trunk/mcs/; revision=91691
2007-12-20 11:31:45 +00:00
Igor Zelmanovich a5952c8ef9 refactoring
svn path=/branches/mainsoft/JSF/mcs/; revision=91686
2007-12-20 10:26:04 +00:00
Igor Zelmanovich 4148401c29 2007-12-20 Igor Zelmanovich <[email protected]>
* Page.cs:
	* Control.cs:
	* ClientScriptManager.cs:		
	refactoring: removed Page.LifeCycle internal API, 
	used Control's stateMask flag instead. 


svn path=/trunk/mcs/; revision=91685
2007-12-20 10:11:28 +00:00
Igor Zelmanovich 2b4c3b49e8 refactoring
svn path=/branches/mainsoft/JSF/mcs/; revision=91680
2007-12-20 08:19:19 +00:00
Igor Zelmanovich decced663c used Trace/Debug.WriteLine instead Console.
svn path=/branches/mainsoft/JSF/mcs/; revision=91626
2007-12-19 13:42:47 +00:00
Igor Zelmanovich 0bfa679fc8 removed dependency on J2EE.Helpers.
svn path=/branches/mainsoft/JSF/mcs/; revision=91540
2007-12-18 13:53:47 +00:00
Marek Habersack 56318c25e2 2007-12-17 Marek Habersack <[email protected]>
* TemplateParser.cs: support the 'Src' directive attribute on 2.0
	profile as well as on the 1.1 one. Fixes bug #319016

svn path=/trunk/mcs/; revision=91462
2007-12-17 16:50:49 +00:00
Arina Itkes 9e69b172c7 Stubs for missed public APIs.
svn path=/trunk/mcs/; revision=91441
2007-12-17 14:33:46 +00:00
Igor Zelmanovich 39669156b2 improved Enter/ExitThread semantics
ProcessRequest always starts the LifeCycle

svn path=/branches/mainsoft/JSF/mcs/; revision=91384
2007-12-16 16:00:58 +00:00