有没有人尝试将JQuery AppendGrid与Primefaces集成?
我在AppendGrid下面有这个JQuery,我想在ctrlOptions中传递JSF托管bean参数。有谁有任何想法,我该怎么做?
<script type="text/javascript">
$(function() {
$('#tblAppendGrid').appendGrid({
caption : 'CRR 115',
initRows : 1,
columns : [ {
name : 'Type of counterparty',
display : 'Type of counterparty *',
type : 'select',
ctrlOptions : {
0 : 'Please select',
1 : 'Regional Government',
2 : 'Local authority'
},
ctrlCss : {
width : '150px'
}
}, {
name : 'Region',
display : 'Region/District *',
type : 'textarea',
align: 'center',
ctrlAttr : {
maxlength : 100
},
ctrlCss : {
width : '150px'
}
},{
name : 'Region',
display : 'English *',
type : 'textarea',
align: 'center',
ctrlAttr : {
maxlength : 250
},
ctrlCss : {
width : '300px'
}
}, {
name : 'Name of counterparty',
display : 'Local Language *',
type : 'textarea',
ctrlAttr : {
maxlength : 250
},
ctrlCss : {
width : '300px'
}
}, {
name : 'Fiscal number of the counterparty',
display : 'Fiscal number of the counterparty',
type : 'text',
ctrlAttr : {
maxlength : 10
},
ctrlCss : {
width : '100px'
}
} ],
hideButtons : {
insert : true,
moveUp : true,
moveDown : true
}
});
});
</script>