PDA

View Full Version : [2.0a1][CLOSED] BasicForm.render and applyTo



brian.chance
4 Oct 2007, 1:39 PM
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

evant
4 Oct 2007, 1:43 PM
http://extjs.com/forum/showthread.php?t=8887

jack.slocum
4 Oct 2007, 4:02 PM
You got it right, f.applyToMarkup(f.id); no call to render required. Thanks.