Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.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
使用JSF的JQuery附加网格_Jquery_Jsf 2_Primefaces - Fatal编程技术网

使用JSF的JQuery附加网格

使用JSF的JQuery附加网格,jquery,jsf-2,primefaces,Jquery,Jsf 2,Primefaces,有人尝试过将JQuery AppendGrid与Primefaces集成吗 下面是JQuery,我想在ctrlOptions中传递JSF托管bean参数。有人知道我该怎么做吗 <script type="text/javascript"> $(function() { $('#tblAppendGrid').appendGrid({ capt

有人尝试过将JQuery AppendGrid与Primefaces集成吗

下面是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>