Commit Graph
333 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
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 9020ff705e refactoring
svn path=/trunk/mcs/; revision=92775
2008-01-13 10:00:34 +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 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
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
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
Vladimir Krasnov b0d7426249 refactored thread abort handling
svn path=/trunk/mcs/; revision=92052
2007-12-31 09:52:20 +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
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 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
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 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
Konstantin Triger 2c28f850c3 refactoring.
TARGET_J2EE: decode namespace on PB only; break LifeCycle on PB or callback only.

svn path=/branches/mainsoft/JSF/mcs/; revision=91379
2007-12-16 12:58:26 +00:00
Igor Zelmanovich 15ce073847 typo fix
svn path=/branches/mainsoft/JSF/mcs/; revision=91378
2007-12-16 12:56:53 +00:00
Igor Zelmanovich da13a59a8b 2007-12-16 Igor Zelmanovich <[email protected]>
* HttpContext.cs: added IsProcessingInclude property.
	* HttpServerUtility.cs: set IsProcessingInclude value within Execute.

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

	* Page.cs: on CrossPagePostBack previous page is processed by Execute API,
	that allow CurrentHandler property works correctly during Page processing.


svn path=/branches/mainsoft/JSF/mcs/; revision=91376
2007-12-16 12:13:32 +00:00
Igor Zelmanovich 6f4105943b 2007-12-16 Igor Zelmanovich <[email protected]>
* HttpContext.cs: added IsProcessingInclude property.
	* HttpServerUtility.cs: set IsProcessingInclude value within Execute.

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

	* Page.cs: on CrossPagePostBack previous page is processed by Execute API,
	that allow CurrentHandler property works correctly during Page processing.


svn path=/trunk/mcs/; revision=91373
2007-12-16 08:38:16 +00:00
Konstantin Triger 5fd31b89ae cosmetic: the href will be resolved by the HtmlLink on Render.
svn path=/branches/mainsoft/JSF/mcs/; revision=91237
2007-12-13 16:34:47 +00:00
Marek Habersack 3476c409c3 2007-12-13 Marek Habersack <[email protected]>
* ClientScriptManager.cs, MasterPageParser.cs, Control.cs,
	Page.cs: speed optimization - use String.Concat instead of
	String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* Menu.cs, TreeView.cs: optimize use of String.Format in
	OnPreRender.
	Speed optimization - use String.Concat instead of String.Format in
	some cases.

	* GridView.cs, DetailsView.cs: optimize use of String.Format in
	OnPreRender.

	* CheckBox.cs, AccessDataSource.cs, WebColorConverter.cs,
	WebControl.cs,TextBox.cs, DropDownList.cs, ValidationSummary.cs,
	ListBox.cs, Panel.cs, BaseValidator.cs, LinkButton.cs: speed
	optimization - use String.Concat instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* HtmlForm.cs, HtmlButton.cs: speed optimization - use String.Concat
	instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* AssemblyResourceLoader.cs: speed optimization - use String.Concat
	instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* SessionId.cs: 
	speed optimization - use String.Concat
	instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* SqlProfileProvider.cs, ProfileParser.cs: speed optimization -
	use String.Concat instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* ApplicationManager.cs, ApplicationHost.cs,
	DefaultVirtualPathProvider.cs: speed optimization - use
	String.Concat instead of String.Format in some cases.

svn path=/trunk/mcs/; revision=91230
2007-12-13 13:50:10 +00:00
Igor Zelmanovich 01fb11d41f fixed handler replacing
svn path=/branches/mainsoft/JSF/mcs/; revision=91227
2007-12-13 12:44:07 +00:00
Igor Zelmanovich c339ecd017 support Transfer/Execute and CrossPagePostBack
svn path=/branches/mainsoft/JSF/mcs/; revision=91218
2007-12-13 11:49:23 +00:00
Konstantin Triger 933aef33ae TARGET_JVM: decode id before use.
svn path=/branches/mainsoft/JSF/mcs/; revision=91205
2007-12-13 10:41:25 +00:00
Igor Zelmanovich 0add077b86 2007-12-13 Igor Zelmanovich <[email protected]>
* HttpApplication.cs:
	* HttpContext.cs:
	* HttpRequest.cs:
	* HttpServerUtility.cs:
	- When Transfer/Execute is called with preserveForm=true, transferred 
	page is not processed as PostBack but form collection is preserved.
	- When Execute is called more than once, PreviousPage property is set 
	correct.

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

	* Page.cs:
	- When Transfer/Execute is called with preserveForm=true, transferred 
	page is not processed as PostBack but form collection is preserved.
	- When Execute is called more than once, PreviousPage property is set 
	correct.

svn path=/trunk/mcs/; revision=91202
2007-12-13 09:08:54 +00:00
Igor Zelmanovich d87840514e make Callback works with JSF
svn path=/branches/mainsoft/JSF/mcs/; revision=91080
2007-12-11 10:21:21 +00:00
Igor Zelmanovich 50e9765b9f enhanced JSF implementation
svn path=/branches/mainsoft/JSF/mcs/; revision=90439
2007-11-29 16:00:49 +00:00
Igor Zelmanovich 7a1890486b initial implementation of 'unify request'
svn path=/branches/mainsoft/JSF/mcs/; revision=90267
2007-11-25 14:08:39 +00:00
Marek Habersack ee22092f22 2007-11-22 Marek Habersack <[email protected]>
* OutputCacheParameters.cs: added the VaryByContentEncoding
	property.

	* Page.cs: added new InitCache overload.

	* TemplateParser.cs: added support for the VaryByContentEncodings
	attribute of the OutputCache directive.
2007-11-22  Marek Habersack  <[email protected]>

	* PageCompiler.cs: use
	pageParser.OutputCacheVaryByContentEncodings when initializing the
	output cache in the 2.0 profile.


svn path=/trunk/mcs/; revision=90185
2007-11-22 19:13:29 +00:00
Igor Zelmanovich 5c6b9ea5e2 implement JSF life cycle on the page
added IHttpExtendedHandler interface

svn path=/branches/mainsoft/JSF/mcs/; revision=89931
2007-11-19 15:22:55 +00:00
Igor Zelmanovich 62c92ccff3 2007-11-07 Igor Zelmanovich <[email protected]>
* Page.cs: added missing trace information for NET_2_0


svn path=/trunk/mcs/; revision=89095
2007-11-07 12:08:42 +00:00
Igor Zelmanovich 3a6e972f44 2007-11-06 Igor Zelmanovich <[email protected]>
* Page.cs:
	* Page.jvm.cs:
	affects	TARGET_J2EE only:
	validators state (isValid) is restored on GetBack.	


svn path=/trunk/mcs/; revision=88964
2007-11-06 12:30:29 +00:00
Marek Habersack ecae308f79 2007-11-06 Marek Habersack <[email protected]>
* HtmlForm.cs: a small DetermineRenderUplevel optimization - the
	result is now cached in a nullable boolean variable.
	Render the 'onkeypress' attribute if DefaultButton is used. Fixes
	bug #339426.
2007-11-06  Marek Habersack  <[email protected]>

	* Page.cs: formatting

svn path=/trunk/mcs/; revision=88959
2007-11-06 11:22:15 +00:00
Marek Habersack c6676331ce 2007-11-05 Marek Habersack <[email protected]>
* ClientScriptManager.cs: EventStateFieldName is a constant now.

	* Page.cs: use full control ids when processing post data. Fixes
	bug #317615

svn path=/trunk/mcs/; revision=88932
2007-11-05 22:35:03 +00:00
Marek Habersack 6f82e580a4 2007-11-01 Marek Habersack <[email protected]>
* Page.cs, ObjectStateFormatter.cs: use the new
	MachineKeySectionUtils class wherever necessary.
2007-11-01  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added MachineKeySectionUtils.cs
2007-11-01  Marek Habersack  <[email protected]>

	* RolePrincipal.cs, MembershipProvider.cs: use the new
	MachineKeySectionUtils class wherever necessary.

	* FormsAuthentication.cs: use the new MachineKeySectionUtils class
	wherever necessary.
	GetHexString is a private method again.
2007-11-01  Marek Habersack  <[email protected]>

	* MachineKeySection.cs: moved all the internal static methods and
	properties to MachineKeySectionUtils.cs

	* MachineKeySectionUtils.cs: added. This file is included in the
	System.Web.Extensions compilation.
	The old properties from MachineKeySection.cs became methods.
2007-11-01  Marek Habersack  <[email protected]>

	* AssemblyResourceLoader.cs: added GetHexString, copied from
	FormsAuthentication.cs. Encryption/decryption routines use methods
	from the new MachineKeySectionUtils class. This is needed for the
	same code to work from both System.Web and System.Web.Extensions.


svn path=/trunk/mcs/; revision=88621
2007-11-01 02:14:52 +00:00
Marek Habersack bcb6e84bcf 2007-10-23 Marek Habersack <[email protected]>
* ClientScriptManager.cs: added two constants to define start/end
	script block comments rendering. 1.1 uses HTML comments, while 2.0
	uses a CDATA block.

	* Page.cs: render script blocks with start/end comments taken from
	the ClientScriptManager constants above.

svn path=/trunk/mcs/; revision=87979
2007-10-23 12:39:45 +00:00
Marek Habersack 21c86a6ebc 2007-10-03 Marek Habersack <[email protected]>
* Page.cs: complete implementation of ValidationGroups. Fixes bug
	#330423. Patch from Juraj Skripsky <[email protected]>, thanks!

svn path=/trunk/mcs/; revision=86825
2007-10-03 18:31:17 +00:00
Marek Habersack 9b14ae6c0a This is more elegant (thanks JB :))
svn path=/trunk/mcs/; revision=86718
2007-10-01 18:31:24 +00:00