在action中取值 当选中是取1 否则取0

解决方案 »

  1.   

    xtype: 'checkbox',
                                        id: 'entityMap.has_last_view',
                                        name: 'entityMap.has_last_view',
                                        checked: <s:property value="1==#request.entityMap.has_last_view"/>,
                                        value: '${entityMap.has_last_view}',
                                        inputValue: '1'
    我是这样写的 但是不管选中没选中传入后台都是0
      

  2.   

     inputValue: '1' 去掉这行
      

  3.   

    那你就不post整个form到后台
    用Ext.Ajax.request({
    check:checkbox.getVlaue();//传true,false
    })