Extjs checkbox未选中不提交问题

Ext的checkbox在未选中时,不提交数据。使用form.findField(id).setValue(false)也无效。折磨好几天后,找到解决方法:为其设置Hidden域,并设inputValue为false。

{
	xtype : 'checkbox',
	name : 'lockmark',
	id : 'lockUserCheckbox',
	fieldLabel : '锁定'
},{
 xtype : 'hidden',
 name : 'lockmark',
 inputValue : false
}
This entry was posted in Computer, Java. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s