1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    1
    Vote Rating
    0
    brian.chance is on a distinguished road

      0  

    Default [2.0a1][CLOSED] BasicForm.render and applyTo

    [2.0a1][CLOSED] BasicForm.render and applyTo


    Posted on wrong forum, should have been 2.0 bugs

    The new render method of BasicForm looks like this:
    f.applyTo = f.id;
    f.render();

    Since the container is not passed in to render, Component.render tries to find it if this.el is defined, but this.el only gets set through Component.applyToMarkup if applyTo was passed as an option to the constructor.

    Instead of setting applyTo and calling render, should BasicForm.render call f.applyToMarkup(f.id)? or should Component.render check for this.applyTo?

    Brian

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    15,065
    Vote Rating
    96
    evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold

      0  

  3. #3
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    6
    jack.slocum is on a distinguished road

      0  

    Default


    You got it right, f.applyToMarkup(f.id); no call to render required. Thanks.
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com