HtmlLayout is a small extension of the standard ContainerLayout. It allows you to use components inside plain HTML while still maintaining the container structure. This has the advantage that the components will still be managed (e.g. destroying the container doesn't leak memory for the contained components).

The extension:
Ext.ux.layout.HtmlLayout = Ext.extend(Ext.layout.ContainerLayout, {
    renderItem: function(c, position, target){
            target = Ext.DomQuery.selectNode(c.renderTarget, Ext.getDom(target));
        }else if(c.applyTarget){
            var el = Ext.DomQuery.selectNode(c.applyTarget, Ext.getDom(target));;
                c.el = el;
            target = el.parentNode;
        }, c, undefined, target);
Ext.Container.LAYOUTS['ux.html'] = Ext.ux.layout.HtmlLayout;
Example usage:
Ext.onReady(function() {
    var panel = new Ext.Panel({
        title: 'HtmlLayout test',
        autoHeight: true,
        layout: 'ux.html',
        html: '<table><tr><td>Please enter your name </td><td></td><td> and password </td><td><input type="password" /></td><td>.</td></tr></table>',
        defaultType: 'textfield',
        items: [{
            name: 'username',
            renderTarget: 'td:nth(2)'
            name: 'password',
            applyTarget: 'input[type=password]'