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,971
    Vote Rating
    132
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi