【发布时间】:2010-08-09 06:06:50
【问题描述】:
我正在尝试将 ExtJS 2.0 与 Java 富面孔集成。我正在尝试使用 Ext.Panel 获得基本布局。 所以我写了这样的代码:
Ext.onReady(function()
{
Ext.QuickTips.init();
var myBorderPanel = new Ext.Panel(
{
renderTo: document.body,
width: 700,
height: 500,
title: 'Border Layout',
layout: 'border',
items:
[
{
autoLoad:{url: 'panel.html', scripts:true},
renderTo: document.body.footer, // a div by name footer
title: 'South Region is resizable',
region: 'south', // position for region
height: 100,
split: true, // enable resizing
minSize: 75, // defaults to 50
maxSize: 150,
margins: '0 5 5 5'
}]
});
});'
上面的代码工作正常。但是在上面的代码中,如果我使用 panel.xhtml 而不是 panel.html,它就不起作用了。
如果这是转发,我很抱歉。
【问题讨论】: