sp.declare("Peter.foo", {
	xtype: "panel",
	title: "Test panel",
	requires: [
		"Ext.ux.buffer.view.Form"
	]
	onInitialize: function(i_self) {

		var i_container = i_self;

		var i_panel = Ext.widget("ux.buffer.view.form", {
			url: {
				load: "/ip2-services/bufferFormLoad.aspx",
				save: "/ip2-services/bufferFormSave.aspx"
			},
			layout: "anchor",
			defaults: {
				"anchor": "100%"
			},
			items: [
				{
					xtype: "textfield",
					name: "DATA1",
					fieldLabel: "Data 1"
				},
				{
					xtype: "textfield",
					name: "DATA2",
					fieldLabel: "Data 2"
				},
				{
					xtype: "numberfield",
					name: "DATA3",
					fieldLabel: "Data 3"
				},
				{
					xtype: "datefield",
					name: "DATA4",
					fieldLabel: "Data 4"
				}
			]
		});

		var i_window = Ext.widget("window", {
			width: 800,
			height: 600,
			layout: "fit",
			resizable: true,
			closable: true,
			items: [
				i_panel
			]
		});

		i_window.show();

		i_panel.load();



		return null;


	}
});
