View Full Version : Items not showing in Panel

27 May 2011, 7:56 PM
Basic question I'm sure... What am I doing wrong here, my LoginLogo, LoginForm, and LoginButton items won't show up and they make it so nothing is rendered, even the docked toolbar. If I comment out the items line then I can see the toolbar.

ap.views.LoginPage = Ext.extend(Ext.Panel, {
dockedItems: [{
xtype: 'toolbar',
title: 'MV'
items: [LoginLogo, LoginForm, LoginButton],
initComponent: function() {
usgs.views.LoginPage.superclass.initComponent.apply(this, arguments);

LoginLogo = new Ext.Panel({
html: 'Logo goes here'

LoginForm = new Ext.Panel({
items: [
xtype: 'textfield',
name: 'username',
label: 'username'
xtype: 'passwordfield',
name: 'password',
label: 'password'

LoginButton = new Ext.Button({
ui: 'normal',
text: 'Login'

27 May 2011, 8:01 PM
Never mind... figured it out using ext.apply like this.

Ext.apply(this, {
items: [LoginLogo, LoginForm, LoginButton]

But, when is it that I have to do that?