View Full Version : XTemplate in derived panel within window - unable to render

18 Dec 2010, 8:52 AM
I cannot get a template to render into a panel that is embedded within a window. When I inspect, I don't even see the "body" property, so I must be doing something wrong. Can someone help please? Here are the details:

The basic idea is that this is one page within a wizard (card) panel. When a selection is made on the first page, the handler retrieves some data from the server and does "setData(data)" on the component (defined below). I've put debugging in and see that the "setData" is properly being called, and it is properly receiving the JSON object, but I cannot modify the contents of the panel.

DigitalGuides.GradeModifierPanel = Ext.extend(Ext.Panel, {
layout: 'fit',
border: false,
initComponent: function() {

setData: function(data) {
var tpl = new Ext.XTemplate('<p>Name:</p>');
tpl.overwrite(this.body, data);