1. #281
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Quote Originally Posted by ttbgwt View Post
    Congratulations Eugene. The work you have done is very impressive. Thanks!

    Your example ran fine but I did get this build warning...

    Warning 3 'System.Web.Mvc.ValueProviderDictionary' is obsolete: 'The recommended alternative is to use one of the specific ValueProvider types, such as FormValueProvider.' C:\Users\ttb\Downloads\Ext.Direct.Mvc-2.1.0\Source\Ext.Direct.Mvc\DirectMethodInvoker.cs 44 41 Ext.Direct.Mvc
    Thank you, I'm glad you like it.
    I am well aware about this warning. It is fixed in the trunk so you are free to get it and compile it yourself. The reason I didn't officially deploy it yet is because it breaks support for ASP.NET MVC 1.0. I haven't decided yet whether to stop supporting it or not. Some day I'll make up my mind

  2. #282
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Quote Originally Posted by ttbgwt View Post
    Hi,

    When direct batches calls, do they run in a specific order on the server? In the example below will onSayHello run on the server before onEchoDate runs?

    Code:
        onBatch: function() {
            this.onSayHello();
            this.onEchoDate();
            this.onAddNumbers();
            this.onEchoPerson();
        },
    Yes, the requests to the server are made in the same order the functions are called.

  3. #283
    Sencha User
    Join Date
    Jun 2010
    Posts
    47
    Vote Rating
    0
    dan_b is on a distinguished road

      0  

    Default


    Here's how I handle session timeout/unauthenticated ajax requests:

    Code:
    public class CustomAuthorizeAttribute : AuthorizeAttribute
        {
            public override void OnAuthorization(AuthorizationContext filterContext)
            {
                base.OnAuthorization(filterContext);
                if (filterContext.Result is HttpUnauthorizedResult && filterContext.HttpContext.Request.IsAjaxRequest())
                {
                    filterContext.Result = new DirectEventResult(){Name="sessionExpired"};
                }
            }
        }
    and then client side:
    Code:
        Ext.Direct.on('sessionExpired', function (e) {
            Ext.WindowMgr.each(function (item) {
                item.close();
            });
            EBPC.GRACe.workspace.destroy();
            EBPC.GRACe.workspace.init();
            Ext.Msg.alert("Session Expired", "Your session has expired. Please log in again.");
        });
    Ext Direct makes this nice and easy!

  4. #284
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    372
    Vote Rating
    5
    ttbgwt is on a distinguished road

      0  

    Default


    Nice! Would it be possible to include this in the demo app, showing a demo login window and how to tie security/login all together?

  5. #285
    Ext JS Premium Member
    Join Date
    Oct 2010
    Location
    West Germany
    Posts
    55
    Vote Rating
    4
    olegtaranenko is on a distinguished road

      0  

    Default Support VS 2008

    Support VS 2008


    Hi,
    current policy of the enterprise I'm working on forbids using VS 2010. There I'm interesting in support of the VS2008 to build Ext.Direct.Mvc project from the current trunk. Looking at the svn history I found the last 2008 solution and project files and adopted it to the last trunk version. I've renamed the .sln and .csproj files by adding .2008 suffix.
    Eugene, could you please check and add the attached rar archive (just added extension .txt, Sencha upload facility!) to your project? Please support the 2008 version further.

    Thanks, Oleg
    Attached Files

  6. #286
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Hi Oleg. Sorry, but I'm not going to add your files to the project simply because I don't have VS 2008 installed and of course I'm not going to edit these project files by hand But you shouldn't need to build it from the trunk really. When I make a series of changes, I usually deploy the dll's right away. And I do plan to keep supporting ASP.NET MVC 1.0.

  7. #287
    Ext JS Premium Member
    Join Date
    Oct 2010
    Location
    West Germany
    Posts
    55
    Vote Rating
    4
    olegtaranenko is on a distinguished road

      0  

    Question error switching MVC 1.0 -> 2.0

    error switching MVC 1.0 -> 2.0


    NOTE I've found solution. I've skipped the line
    Code:
        <system.web>
            <compilation debug="true">
                <assemblies>
                    <add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                    <add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                </assemblies>
            </compilation>
    Sorry for bothering, this is really lame question
    Not understand though, why MVC 1.0 does work?




    I'm starting working with a Ext.Direct project based on the Ext.Direct.Mvc.Demo example. Specifically, I'd like to Integrate Jesus Garsia's app.extjsinaction.com with Ext.Direct.Mvc machinery.
    If using System.Web.Mvc and Ext.Direct.Mvc 1.0 it does work

    If switch to the Version 2.0 (for both) i'm getting an error below


    Code:
    Serverfehler in der Anwendung /.
    
    Kompilierungsfehler
    
    Beschreibung: Fehler bei der Kompilierung einer Ressource, die zur Verarbeitung dieser Anforderung erforderlich ist. Überprüfen Sie die folgenden spezifischen Fehlerdetails, und ändern Sie den Quellcode entsprechend. 
    
    Compilerfehlermeldung: CS0234: Der Typ- oder Namespacename "Mvc" ist im Namespace "System.Web" nicht vorhanden. (Fehlt ein Assemblyverweis?)
    
    Quellfehler:
    
    
    Zeile 31:             <namespaces>
    Zeile 32:                 <add namespace="System.Web.Mvc"/>
    Zeile 33:                 <add namespace="System.Web.Mvc.Html"/>
    Zeile 34:                 <add namespace="System.Web.Routing"/>
    Zeile 35:             </namespaces>
    
    Quelldatei: c:\dev\reckitt\Pep\pep\Sources\Web.config    Zeile: 33 
    
    
    Detaillierte Compilerausgabe anzeigen:
    
    Vollständige Kompilierungsquelle anzeigen:
    
    
    Versionsinformationen: Microsoft .NET Framework-Version:2.0.50727.3053; ASP.NET-Version:2.0.50727.3053
    sorry for german, I have no english-based instllation. Goggle translate it to english =>

    Code:
    Server Error in '/' Application.
    
    Compilation
    
    Description: Error compiling a resource that is required to process this request. Check the following specific error details and modify your source code appropriately.
    
    Compiler Error Message: CS0234: The type or namespace name "Mvc" is in the namespace "System.Web" does not exist. (Are you missing an assembly reference?)
    
    Source Error:
    
    
    Line 31: <namespaces>
    Line 32: <add namespace="System.Web.Mvc"/>
    Line 33: <add namespace="System.Web.Mvc.Html"/>
    Line 34: <add namespace="System.Web.Routing"/>
    Line 35: </ namespaces>
    
    Source File: c: \ dev \ reckitt \ Pep \ pep \ Sources \ web.config Line: 33
    
    
    Show Detailed Compiler Output:
    
    View Full Kompilierungsquelle:
    
    
    . Version Information: Microsoft NET Framework Version: 2.0.50727.3053; ASP.NET Version: 2.0.50727.3053
    What I have missed?

    Update: My web.config
    Code:
    <?xml version="1.0"?>
    <configuration>
        <configSections>
            <section name="ext.direct" type="Ext.Direct.Mvc.Configuration.DirectSection, Ext.Direct.Mvc" />
        </configSections>
        <ext.direct
        	namespace="PEP.Exec"
            providerName="Ext.app.REMOTING_API"
            assembly="Reckitt.Pep"
            dateFormat="Iso"
            debug="true"
        />
        <connectionStrings>
    		  <add name="SampleConnectionString" connectionString="Data Source=.\SSDE2005;Initial Catalog=PepMvc;Integrated Security=true;"/>
        </connectionStrings>
        <system.web>
            <compilation debug="true">
                <assemblies>
                    <add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                </assemblies>
            </compilation>
    <!--
          <authentication mode="None" />
                The <authentication> section enables configuration 
                of the security authentication mode used by 
                ASP.NET to identify an incoming user. 
    -->
          <authentication mode="None">
          </authentication>
          <pages>
                <namespaces>
                    <add namespace="System.Web.Mvc"/>
                    <add namespace="System.Web.Mvc.Html"/>
                    <add namespace="System.Web.Routing"/>
                </namespaces>
            </pages>
            <httpModules>
                <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            </httpModules>
        </system.web>
        <system.codedom>
            <compilers>
                <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
                    <providerOption name="CompilerVersion" value="v3.5"/>
                    <providerOption name="WarnAsError" value="false"/>
                </compiler>
            </compilers>
        </system.codedom>
        <!-- 
            The system.webServer section is required for running ASP.NET AJAX under Internet
            Information Services 7.0.  It is not necessary for previous version of IIS.
        -->
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
            <modules runAllManagedModulesForAllRequests="true">
                <remove name="UrlRoutingModule" />
                <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            </modules>
            <handlers>
                <remove name="MvcHttpHandler" />
                <remove name="UrlRoutingHandler" />
                <add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
            </handlers>
        </system.webServer>
    </configuration>

    Disclaimer: I'm pretty new to whole of the .NET and ExtJS development, but have background in the Java/pure JavaScript dev.

  8. #288
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Uploaded version 2.2.0.

    * Returned support for ASP.NET MVC 1.0
    * Added support for descriptor generation method (see Wiki)
    * Allow regular content response when action is executed directly, i.e. not by Ext Direct
    Download from the project homepage.

  9. #289
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    372
    Vote Rating
    5
    ttbgwt is on a distinguished road

      0  

    Default


    Hi,

    Do you have an example with security and authentication for logging into an extjs website?

  10. #290
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Quote Originally Posted by ttbgwt View Post
    Hi,

    Do you have an example with security and authentication for logging into an extjs website?
    No, I don't have this example, but it should be similar to form post.