Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs checkboxfield未在Apache Tomcat中呈现_Apache_Tomcat_Extjs_Textfield_Xtype - Fatal编程技术网

Extjs checkboxfield未在Apache Tomcat中呈现

Extjs checkboxfield未在Apache Tomcat中呈现,apache,tomcat,extjs,textfield,xtype,Apache,Tomcat,Extjs,Textfield,Xtype,我们正在使用Tomcat6.0.36,并试图做一个简单的复选框示例,但复选框并没有呈现出来,所以一切正常 所有文本都正确呈现,我创建了一些带有选项卡、表单和网格的页面,除了复选框之外,所有页面都呈现出来 Ext.onReady(function() { Ext.QuickTips.init(); var fsf = Ext.create('Ext.form.Panel', { url:'save-form.php', frame:true, title: 'Simp

我们正在使用Tomcat6.0.36,并试图做一个简单的复选框示例,但复选框并没有呈现出来,所以一切正常

所有文本都正确呈现,我创建了一些带有选项卡、表单和网格的页面,除了复选框之外,所有页面都呈现出来

Ext.onReady(function() {
  Ext.QuickTips.init();

var fsf = Ext.create('Ext.form.Panel', {
    url:'save-form.php',
    frame:true,
    title: 'Simple Form with FieldSets',
    bodyStyle:'padding:5px 5px 0',
    width: 350,
    fieldDefaults: {
    msgTarget: 'side',
    labelWidth: 75
    },
    defaults: {
    anchor: '100%'
    },

    items: [{
    xtype:'fieldset',
    checkboxToggle:true,
    title: 'User Information',
    defaultType: 'textfield',
    collapsed: true,
    layout: 'anchor',
    defaults: {
        anchor: '100%'
    },
    items :[{
        fieldLabel: 'First Name',
        name: 'first',
        allowBlank:false
    },{
        fieldLabel: 'Last Name',
        name: 'last'
    },{
        fieldLabel: 'Company',
        name: 'company'
    }, {
        fieldLabel: 'Email',
        name: 'email',
        vtype:'email'
    }]
    },{
    xtype:'fieldset',
    title: 'Phone Number',
    collapsible: true,
    defaultType: 'textfield',
    layout: 'anchor',
    defaults: {
        anchor: '100%'
    },
    items :[{
        fieldLabel: 'Home',
        name: 'home',
        value: '(888) 555-1212'
    },{
        fieldLabel: 'Business',
        name: 'business'
    },{
        fieldLabel: 'Mobile',
        name: 'mobile'
    },{
        fieldLabel: 'Fax',
        name: 'fax'
    }]
    }],

    buttons: [{
    text: 'Save'
    },{
    text: 'Cancel'
    }],
    renderTo: 'build-dynaForm'
})
});
提前谢谢


在您的表格上没有复选框。如果添加它们,它们将显示:

    {
        fieldLabel: 'Checkbox',
        xtype: 'checkbox',
        name: 'name1'
    },{
        fieldLabel: 'Checkbox',
        xtype: 'checkbox',
        name: 'name2'
    },{
        fieldLabel: 'Checkbox',
        xtype: 'checkbox',
        name: 'name3'
    }

请参见哪个版本的Ext Js以及它是什么浏览器?