当为变量v.destination传来多个值(2个以上)时,总提示错误,说少一个“}”,但传来一个值时,却没有错误,查了半天也没有搞出来,请高手不吝指点,谢谢。这个是velocity模板表单的代码,代码如下:
buttons :  [
#set ($count=0)
#foreach ($v in $nextTrans)
#if($count>0)
,
#end
new Ext.Button({
   iconCls:'btn-transition',
   text:'转至[${v.destination}]',
   handler:this.onSave.createCallback(this.formPanel,this,'${v.name}','${v.source}')
})
#set ($count=$count+1)
#end
, new Ext.Button({
iconCls : 'btn-edit',
text : '修改公文',
scope : this,
handler : function(){
new ArchivesDraftWin({
archivesId : '${archives_archivesId}',
detailPanel : this.detailPanel
}).show();
}
})
],
buttonAlign : 'center',
items : [this.detailPanel,this.formPanel]
});