1. #1
    Ext GWT Premium Member
    Join Date
    Mar 2009
    Posts
    226
    Vote Rating
    3
    The_Jackal is on a distinguished road

      0  

    Default [2.2.5] Component is unmockable as GXT.class statically calls GWT.getModuleBaseURL

    [2.2.5] Component is unmockable as GXT.class statically calls GWT.getModuleBaseURL


    Hi,

    - Detailed description of the problem

    I'm trying to mock out GXT widgets using GWTMockUtilities.disarm() to avoid Exceptions from GWT.create(). Note I'm doing this as GWTTestCase is too slow.

    I get another exception because com.extjs.gxt.ui.client.widget.Component calls GXT.init() (in a static initialiser) which then calls GWT.getModuleBase() in a static member:

    Code:
     public static String SSL_SECURE_URL = GWT.getModuleBaseURL() + "blank.html";
    [tl;dr]
    Is there a way you could prevent calling GWT.getModuleBaseURL() in GXT.class; either by making a method to get SSL_SECURE_URL to defer the call, or by putting a special static flag on GXT.class that disables calls to GWT.getModuleBaseURL();

    - GXT version: 2.2.5

    - Host mode / web mode / both: Both

    - Browser and version: All

    - Operating System: All
    - Sample code: NA

    Regards,
    Carl Pritchett

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    We cannot defer it as it is required directly in the widgets, and not deferred. I do not see a way on removing it without adding a braking change.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar