如何在javax.el.MethodExpression中传递多个参数

时间:2018-07-24 12:56:18

标签: jsf

我正在尝试为org.primefaces.component.poll.Poll-创建方法表达式

MethodExpression methodExpression = exprFactory
            .createMethodExpression(elContext,
                    "#{requestManagementBackingBean.addDiffDatatable("
                            + parentGrid +","+action+ ")}", void.class,
                            classList);

pollForDatatable.setListener(methodExpression);

在这种情况下,呈现页面时出现错误-

at com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:212) ~[na:na]
at com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:229) ~[na:na]
at com.sun.el.lang.ExpressionBuilder.createMethodExpression(ExpressionBuilder.java:280) ~[na:na]
at com.sun.el.ExpressionFactoryImpl.createMethodExpression(ExpressionFactoryImpl.java:82) ~[javax.el.jar:2.2.3]

0 个答案:

没有答案