Author: igorz
Date: 2007-12-06 05:08:04 -0500 (Thu, 06 Dec 2007)
New Revision: 90798

Modified:
   
branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs
   
branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs
   branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/Control.cs
   branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/Control.jvm.cs
   branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/Page.jvm.cs
   branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpApplication.cs
   branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpRequest.cs
   branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpRuntime.cs
   branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpServerUtility.cs
   branches/mainsoft/JSF/mcs/class/System.Web/System.Web/IHttpExtendedHandler.cs
   branches/mainsoft/JSF/mcs/class/System.Web/System.Web20.csproj
Log:
fixed HttpContext.CurrentExecutionFilePath for Transfer/Execute
used JSF API for ResolveClientUrl and create action url.

Modified: 
branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpApplication.cs
===================================================================
--- branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpApplication.cs    
2007-12-06 09:41:38 UTC (rev 90797)
+++ branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpApplication.cs    
2007-12-06 10:08:04 UTC (rev 90798)
@@ -77,7 +77,7 @@
 using System.Web.UI;
 
 #if TARGET_J2EE
-using [EMAIL PROTECTED];
+using Mainsoft.Web;
 #endif
        
 namespace System.Web {
@@ -796,17 +796,6 @@
                        if (error != null){
                                HttpResponse response = context.Response;
 
-#if TARGET_J2EE
-                               IPortletActionRequest actionRequest = 
context.ServletRequest as IPortletActionRequest;
-                               IPortletActionResponse actionResponse = 
context.ServletResponse as IPortletActionResponse;
-                               if (actionRequest != null && actionResponse != 
null && actionRequest.processActionOnly ()) {
-                                       string exception = "Exception of type " 
+ context.Error.GetType () + 
-                                               " during processAction: " + 
context.Error.Message + Console.Out.NewLine + 
-                                               context.Error.StackTrace;
-                                       actionResponse.setRenderParameter 
("vmw.action.exception", exception);
-                                       return;
-                               }
-#endif
                                if (!response.HeadersSent){
                                        response.ClearHeaders ();
                                        response.ClearContent ();
@@ -917,7 +906,7 @@
                        // Obtain the handler for the request.
                        IHttpHandler handler = null;
                        try {
-                               handler = GetHandler (context);
+                               handler = GetHandler (context, 
context.Request.FilePath);
                                context.Handler = handler;
 #if NET_2_0
                                context.PushHandler (handler);
@@ -984,7 +973,7 @@
                                                handler.ProcessRequest 
(context);
 #if TARGET_J2EE
                                                IHttpExtendedHandler 
extHandler=handler as IHttpExtendedHandler;
-                                               doProcessHandler = extHandler 
!= null && !extHandler.getCompleted ();
+                                               doProcessHandler = extHandler 
!= null && !extHandler.IsCompleted;
 #endif
                                        }
                                }
@@ -1193,11 +1182,11 @@
                }
                
                // Used by HttpServerUtility.Execute
-               internal IHttpHandler GetHandler (HttpContext context)
+               internal IHttpHandler GetHandler (HttpContext context,string 
url)
                {
                        HttpRequest request = context.Request;
                        string verb = request.RequestType;
-                       string url = request.FilePath;
+                       //string url = request.FilePath;
                        
                        IHttpHandler handler = null;
                        object o = LocateHandler (verb, url);
@@ -1207,7 +1196,7 @@
                        if (factory == null) {
                                handler = (IHttpHandler) o;
                        } else {
-                               handler = factory.GetHandler (context, verb, 
url, request.PhysicalPath);
+                               handler = factory.GetHandler (context, verb, 
url, request.MapPath (url));
                        }
 
                        return handler;
@@ -1245,18 +1234,6 @@
                        
                        begin_iar = new AsyncRequestState (done, cb, extraData);
 
-#if TARGET_J2EE
-                       IPortletRenderRequest renderRequest = 
context.ServletRequest as IPortletRenderRequest;
-                       if (renderRequest != null) {
-                               string actionException = 
context.ServletRequest.getParameter ("vmw.action.exception");
-                               if (actionException != null && 
actionException.Length > 0) {
-                                       FinalErrorWrite (context.Response, 
actionException.Replace("\n", "<br>"));
-                                       begin_iar.Complete ();
-                                       return begin_iar;
-                               }
-                       }
-#endif
-
 #if TARGET_JVM
                        if (true)
 #else

Modified: branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpRequest.cs
===================================================================
--- branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpRequest.cs        
2007-12-06 09:41:38 UTC (rev 90797)
+++ branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpRequest.cs        
2007-12-06 10:08:04 UTC (rev 90798)
@@ -1303,7 +1303,7 @@
                {
                        cached_url = null;
                        current_exe_path = path;
-                       file_path = path;
+                       //file_path = path;
                        UrlComponents.Path = path;
                        // recreated on demand
                        root_virtual_dir = null;

Modified: branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpRuntime.cs
===================================================================
--- branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpRuntime.cs        
2007-12-06 09:41:38 UTC (rev 90797)
+++ branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpRuntime.cs        
2007-12-06 10:08:04 UTC (rev 90798)
@@ -43,7 +43,7 @@
 using System.Web.Util;
 using System.Threading;
 #if TARGET_J2EE
-using [EMAIL PROTECTED];
+using Mainsoft.Web;
 #endif
 
 #if NET_2_0 && !TARGET_JVM
@@ -480,7 +480,7 @@
                                        app.Tick ();
                                //ihh.ProcessRequest (context);
                                IHttpExtendedHandler extHandler = 
context.Handler as IHttpExtendedHandler;
-                               if (extHandler != null && 
!extHandler.getCompleted ())
+                               if (extHandler != null && 
!extHandler.IsCompleted)
                                        return;
 
                                ihah.EndProcessRequest (null);

Modified: 
branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpServerUtility.cs
===================================================================
--- branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpServerUtility.cs  
2007-12-06 09:41:38 UTC (rev 90797)
+++ branches/mainsoft/JSF/mcs/class/System.Web/System.Web/HttpServerUtility.cs  
2007-12-06 10:08:04 UTC (rev 90798)
@@ -36,6 +36,9 @@
 using System.Collections.Specialized;
 using System.Security.Permissions;
 using System.Text;
+#if TARGET_J2EE
+using Mainsoft.Web;
+#endif
 
 namespace System.Web {
 
@@ -127,12 +130,10 @@
                        if (output == null)
                                output = response.Output;
 
-                       string oldFilePath = request.FilePath;
-                       request.SetCurrentExePath (UrlUtils.Combine 
(request.BaseVirtualDir, path));
-                       IHttpHandler handler = 
context.ApplicationInstance.GetHandler (context);
-                       request.SetCurrentExePath (oldFilePath);
-                       
-#if NET_2_0
+                       string exePath = UrlUtils.Combine 
(request.BaseVirtualDir, path);
+                       IHttpHandler handler = 
context.ApplicationInstance.GetHandler (context, exePath);
+
+#if NET_2_0 && !TARGET_J2EE
                        // If the target handler is not Page, the transfer must 
not occur.
                        // InTransit == true means we're being called from 
Transfer
                        if (context.InTransit && !(handler is Page))
@@ -140,15 +141,34 @@
 #endif
                        
                        TextWriter previous = null;
+                       string oldExePath = request.CurrentExecutionFilePath;
                        try {
 #if NET_2_0
                                context.PushHandler (handler);
 #endif
+                               request.SetCurrentExePath (exePath);
                                previous = response.SetTextWriter (output);
                                
                                if (!(handler is IHttpAsyncHandler)) {
-                                       handler.ProcessRequest (context);
-                               } else {
+#if TARGET_J2EE
+                                       if (!preserveForm && handler is 
IHttpExtendedHandler) {
+                                               IHttpExtendedHandler ehandler = 
(IHttpExtendedHandler) handler;
+                                               object oldState = 
ehandler.GetContextState(context);
+                                               if (oldState != null)
+                                                       
ehandler.SetContextState (context, null);
+                                               try {
+                                                       handler.ProcessRequest 
(context);
+                                               }
+                                               finally {
+                                                       if (oldState != null)
+                                                               
ehandler.SetContextState (context, oldState);
+                                               }
+                                       }
+                                       else
+#endif
+                                               handler.ProcessRequest 
(context);
+                               }
+                               else {
                                        IHttpAsyncHandler asyncHandler = 
(IHttpAsyncHandler) handler;
                                        IAsyncResult ar = 
asyncHandler.BeginProcessRequest (context, null, null);
                                        ar.AsyncWaitHandle.WaitOne ();
@@ -166,6 +186,7 @@
 #if NET_2_0
                                context.PopHandler ();
 #endif
+                               request.SetCurrentExePath (oldExePath);
                        }
                }
 
@@ -210,20 +231,19 @@
                                Page page = (Page) context.Handler;
                                preserveForm = !page.IsPostBack;
                        }
-#if NET_2_0
-                       else
-                               throw new HttpException ("Transfer may only be 
called from within a Page instance");
-#endif
+                       //#if NET_2_0
+                       //            else
+                       //                throw new HttpException ("Transfer 
may only be called from within a Page instance");
+                       //#endif
 
                        Transfer (path, preserveForm);
                }
 
-               public void Transfer (string path, bool preserveForm)
-               {
-#if NET_2_0
-                       if (!(context.Handler is Page))
-                               throw new HttpException ("Transfer may only be 
called from within a Page instance");
-#endif
+               public void Transfer (string path, bool preserveForm) {
+                       //#if NET_2_0
+                       //            if (!(context.Handler is Page))
+                       //                throw new HttpException ("Transfer 
may only be called from within a Page instance");
+                       //#endif
 
                        context.InTransit = true;
                        Execute (path, null, preserveForm);
@@ -234,13 +254,13 @@
                {
                        if (handler == null)
                                throw new ArgumentNullException ("handler");
-                       if (!(handler is Page))
-                               throw new HttpException ("Transfer may only be 
called from within a Page instance");
-                       
+                       //if (!(handler is Page))
+                       //    throw new HttpException ("Transfer may only be 
called from within a Page instance");
+
                        // TODO: see the MS doc and search for 
"enableViewStateMac": this method is not
                        // allowed for pages when preserveForm is true and the 
page IsCallback property
                        // is true.
-
+                       context.InTransit = true;
                        Execute (handler, null, preserveForm);
                        context.Response.End ();
                }
@@ -250,11 +270,13 @@
                        if (handler == null)
                                throw new ArgumentNullException ("handler");
 
+#if !TARGET_J2EE
                        // If the target handler is not Page, the transfer must 
not occur.
                        // InTransit == true means we're being called from 
Transfer
                        if (context.InTransit && !(handler is Page))
                                throw new HttpException ("Transfer is possible 
only to .aspx files");
-                       
+#endif
+
                        HttpRequest request = context.Request;
                        string oldQuery = request.QueryStringRaw;
                        if (!preserveForm) {
@@ -276,6 +298,22 @@
                        try {
                                previous = response.SetTextWriter (output);
                                if (!(handler is IHttpAsyncHandler)) {
+#if TARGET_J2EE
+                                       if (!preserveForm && handler is 
IHttpExtendedHandler) {
+                                               IHttpExtendedHandler ehandler = 
(IHttpExtendedHandler) handler;
+                                               object oldState = 
ehandler.GetContextState (context);
+                                               if (oldState != null)
+                                                       
ehandler.SetContextState (context, null);
+                                               try {
+                                                       handler.ProcessRequest 
(context);
+                                               }
+                                               finally {
+                                                       if (oldState != null)
+                                                               
ehandler.SetContextState (context, oldState);
+                                               }
+                                       }
+                                       else
+#endif
                                        handler.ProcessRequest (context);
                                } else {
                                        IHttpAsyncHandler asyncHandler = 
(IHttpAsyncHandler) handler;

Modified: 
branches/mainsoft/JSF/mcs/class/System.Web/System.Web/IHttpExtendedHandler.cs
===================================================================
--- 
branches/mainsoft/JSF/mcs/class/System.Web/System.Web/IHttpExtendedHandler.cs   
    2007-12-06 09:41:38 UTC (rev 90797)
+++ 
branches/mainsoft/JSF/mcs/class/System.Web/System.Web/IHttpExtendedHandler.cs   
    2007-12-06 10:08:04 UTC (rev 90798)
@@ -1,11 +1,39 @@
+//
+// (C) 2007 Mainsoft Corporation (http://www.mainsoft.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
 using System;
 using System.Collections.Generic;
 using System.Text;
+using System.Web;
 
-namespace System.Web
+namespace Mainsoft.Web
 {
-       public interface IHttpExtendedHandler
+       public interface IHttpExtendedHandler : IHttpHandler
        {
                bool IsCompleted { get;}
+               object GetContextState (HttpContext context);
+               void SetContextState (HttpContext context, object state);
        }
 }

Modified: 
branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs
===================================================================
--- 
branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs 
    2007-12-06 09:41:38 UTC (rev 90797)
+++ 
branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs 
    2007-12-06 10:08:04 UTC (rev 90798)
@@ -161,7 +161,7 @@
 #if TARGET_J2EE
                        // Allow the page to transform ActionUrl to a portlet 
action url
                        if (actionUrl != null) {
-                               actionUrl = page.CreateActionUrl(actionUrl);
+                               actionUrl = 
options.TargetControl.CreateActionUrl(actionUrl);
                                prefix += "Portal";
                        }
 #endif

Modified: branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/Control.cs
===================================================================
--- branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/Control.cs 
2007-12-06 09:41:38 UTC (rev 90797)
+++ branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/Control.cs 
2007-12-06 10:08:04 UTC (rev 90798)
@@ -1306,9 +1306,10 @@
                string ResolveClientUrl (string relativeUrl)
                {
 #if TARGET_J2EE
-                       // There are no relative paths when rendering a J2EE 
portlet
-                       if (Page != null && Page.PortletNamespace != null)
-                               return ResolveUrl (relativeUrl);
+                       return CreateResourceUrl (ResolveClientUrlInternal 
(relativeUrl));
+               }
+               
+               string ResolveClientUrlInternal (string relativeUrl) {
 #endif
                        if (relativeUrl == null)
                                throw new ArgumentNullException ("relativeUrl");

Modified: 
branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/Control.jvm.cs
===================================================================
--- branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/Control.jvm.cs     
2007-12-06 09:41:38 UTC (rev 90797)
+++ branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/Control.jvm.cs     
2007-12-06 10:08:04 UTC (rev 90798)
@@ -31,6 +31,7 @@
 using [EMAIL PROTECTED];
 using System.Web.Hosting;
 using System.Text;
+using javax.faces.context;
 
 namespace System.Web.UI
 {
@@ -52,24 +53,44 @@
                        }
                }
 
+               internal string CreateResourceUrl (string url) {
+                       FacesContext faces = getFacesContext ();
+                       if (faces == null)
+                               return url;
 
-               // Add a variant for specifying use of portlet resolveRenderUrl
-               internal string ResolveUrl (string relativeUrl, bool 
usePortletRenderResolve)
-               {
-                       relativeUrl = ResolveUrl (relativeUrl);
-                       if (usePortletRenderResolve && Page != null)
-                               relativeUrl = Page.CreateRenderUrl 
(relativeUrl);
-                       return relativeUrl;
+                       url = Asp2Jsf (url);
+
+                       return faces.getApplication ().getViewHandler 
().getResourceURL (faces, url);
                }
 
-               internal string ResolveClientUrl (string relativeUrl, bool 
usePortletRenderResolve)
-               {
-                       relativeUrl = ResolveClientUrl (relativeUrl);
-                       if (usePortletRenderResolve && Page != null)
-                               relativeUrl = Page.CreateRenderUrl 
(relativeUrl);
-                       return relativeUrl;
+               internal string CreateActionUrl (string url) {
+                       FacesContext faces = getFacesContext ();
+                       if (faces == null)
+                               return url;
+
+                       url = Asp2Jsf (url);
+
+                       return faces.getApplication ().getViewHandler 
().getActionURL (faces, url);
                }
 
+               string Asp2Jsf (string url) {
+                       if (VirtualPathUtility.IsAbsolute (url))
+                               url = VirtualPathUtility.ToAppRelative (url);
+
+                       if (VirtualPathUtility.IsAppRelative (url)) {
+                               url = url.Substring (1);
+                               return url.Length == 0 ? "/" : url;
+                       }
+                       return url;
+               }
+
+               internal string ResolveClientUrl (string relativeUrl, bool 
usePortletRenderResolve) {
+                       if (usePortletRenderResolve)
+                               return ResolveClientUrl (relativeUrl);
+                       else
+                               return ResolveUrl (relativeUrl);
+               }
+
                internal bool IsLoaded {
                        get { return (stateMask & LOADED) != 0; }
                }

Modified: branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/Page.jvm.cs
===================================================================
--- branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/Page.jvm.cs        
2007-12-06 09:41:38 UTC (rev 90797)
+++ branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI/Page.jvm.cs        
2007-12-06 10:08:04 UTC (rev 90798)
@@ -44,12 +44,6 @@
 {
        public partial class Page
        {
-               //const string PageNamespaceKey = "__PAGENAMESPACE";
-               //const string RenderPageMark = "vmw.render.page=";
-               //const string ActionPageMark = "vmw.action.page=";
-               //static readonly string NextActionPageKey = 
PortletInternalUtils.NextActionPage;
-               //static readonly string NextRenderPageKey = 
PortletInternalUtils.NextRenderPage;
-
                bool _emptyPortletNamespace = false;
                string _PortletNamespace = null;
                bool _renderResponseInit = false;
@@ -101,12 +95,6 @@
                        }
                }
 
-               //internal bool IsGetBack {
-               //    get {
-               //        return IsPostBack && Context.IsPortletRequest && 
!Context.IsActionRequest;
-               //    }
-               //}
-
                internal IPortletRenderResponse RenderResponse
                {
                        get {
@@ -117,76 +105,8 @@
                                        }
                                return _renderResponse;
                        }
-               }
+               }
 
-               public string CreateRenderUrl (string url)
-               {
-                       FacesContext faces = getFacesContext ();
-                       return faces != null ? faces.getExternalContext 
().encodeResourceURL (url) : url;
-               }
-
-               public string CreateActionUrl (string url)
-               {
-                       FacesContext faces = getFacesContext ();
-                       if (faces == null)
-                               return url;
-
-                       //kostat: handle QueryString!
-                       Application application = faces.getApplication ();
-                       ViewHandler viewHandler = application.getViewHandler ();
-                       String viewId = faces.getViewRoot ().getViewId ();
-                       return viewHandler.getActionURL (faces, viewId);
-               }
-
-               private string RemoveAppPathIfInternal (string url)
-               {
-                       Uri reqUrl = Request.Url;
-                       string appPath = Request.ApplicationPath;
-                       string currPage = Request.CurrentExecutionFilePath;
-                       if (currPage.StartsWith (appPath, 
StringComparison.InvariantCultureIgnoreCase))
-                               currPage = currPage.Substring (appPath.Length);
-                       return PortletInternalUtils.mapPathIfInternal (url, 
reqUrl.Host, reqUrl.Port, reqUrl.Scheme, appPath, currPage);
-               }
-
-//        internal bool OnSaveStateCompleteForPortlet ()
-//        {
-//            if (PortletNamespace != null) {
-//                ClientScript.RegisterHiddenField (PageNamespaceKey, 
PortletNamespace);
-//                ClientScript.RegisterHiddenField (NextActionPageKey, "");
-//                ClientScript.RegisterHiddenField (NextRenderPageKey, "");
-//            }
-
-//            IPortletActionResponse resp = Context.ServletResponse as 
IPortletActionResponse;
-//            IPortletActionRequest req = Context.ServletRequest as 
IPortletActionRequest;
-//            if (req == null)
-//                return false;
-
-//            // When redirecting don't save the page viewstate and hidden 
fields
-//            if (resp.isRedirected ())
-//                return true;
-
-//            if (IsPostBack && 0 == String.Compare (Request.HttpMethod, 
"POST", true, CultureInfo.InvariantCulture)) {
-//                resp.setRenderParameter ("__VIEWSTATE", GetSavedViewState 
());
-//                if (ClientScript.hiddenFields != null)
-//                    foreach (string key in ClientScript.hiddenFields.Keys)
-//                        resp.setRenderParameter (key, (string) 
ClientScript.hiddenFields [key]);
-
-//                if (is_validated && Validators.Count > 0) {
-//                    string validatorsState = GetValidatorsState ();
-//#if DEBUG
-//                    Console.WriteLine ("__VALIDATORSSTATE: " + 
validatorsState);
-//#endif
-//                    if (!String.IsNullOrEmpty (validatorsState))
-//                        resp.setRenderParameter ("__VALIDATORSSTATE", 
validatorsState);
-//                }
-//            }
-
-//            // Stop processing only if we are handling processAction. If we
-//            // are handling a postback from render then fall through.
-//            return req.processActionOnly ();
-//        }
-
-
                internal string EncodeURL (string raw) {
                        //kostat: BUGBUG: complete
                        return raw;

Modified: 
branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs
===================================================================
--- 
branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs
   2007-12-06 09:41:38 UTC (rev 90797)
+++ 
branches/mainsoft/JSF/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs
   2007-12-06 10:08:04 UTC (rev 90798)
@@ -260,7 +260,7 @@
                        // Allow the page to transform action to a portlet 
action url
                        string customAction = Attributes ["action"];
                        if (String.IsNullOrEmpty(customAction))
-                               action = Page.CreateActionUrl (action);
+                               action = CreateActionUrl (action);
                        else
                                action = customAction;
 

Modified: branches/mainsoft/JSF/mcs/class/System.Web/System.Web20.csproj
===================================================================
--- branches/mainsoft/JSF/mcs/class/System.Web/System.Web20.csproj      
2007-12-06 09:41:38 UTC (rev 90797)
+++ branches/mainsoft/JSF/mcs/class/System.Web/System.Web20.csproj      
2007-12-06 10:08:04 UTC (rev 90798)
@@ -1233,6 +1233,7 @@
       <SubType>Code</SubType>
     </Compile>
     <Compile Include="System.Web\HttpWorkerRequest.jvm.cs" />
+    <Compile Include="System.Web\IHttpExtendedHandler.cs" />
     <Compile Include="System.Web\UplevelHelper.cs" />
   </ItemGroup>
   <ItemGroup>
@@ -1414,6 +1415,6 @@
     </VisualStudio>
   </ProjectExtensions>
   <PropertyGroup>
-    <PreBuildEvent>"$(ProjectDir)..\..\class\lib\net_2_0\culevel.exe" -o 
"$(ProjectDir)System.Web\UplevelHelper.cs" 
"$(ProjectDir)UplevelHelperDefinitions.xml"</PreBuildEvent>
+    <PreBuildEvent>"$(ProjectDir)..\lib\net_2_0\culevel.exe" -o 
"$(ProjectDir)System.Web\UplevelHelper.cs" 
"$(ProjectDir)UplevelHelperDefinitions.xml"</PreBuildEvent>
   </PropertyGroup>
 </Project>

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to