javax.el.ELException:函数“丰富:组件”未找到
我正在支持 bean 中创建模型。
我的java代码行是这样的,
UIColumn column = new HtmlColumn();
dynamicDataTable.getChildren().add(column);
UIAjaxCommandLink editLink = new HtmlAjaxCommandLink();
editLink.setId("edit");
HtmlGraphicImage img = new HtmlGraphicImage();
img.setUrl("../images/edit.gif");
editLink.getChildren().add(img);
editLink.setActionExpression(createActionExpression("#{myBean.editRow}", String.class));
editLink.setAjaxSingle(true);
editLink.setValueExpression("onComplete", createValueExpression("#{rich:component('editPanel')}.show()", RichFunction.class));
editLink.setValueExpression("reRender", createValueExpression("editPanel", String.class));
column.getChildren().add(editLink);
我收到一个错误。 xhtml 页面也是如此。
<a4j:commandButton value="Edit" ajaxSingle="true"
oncomplete="#{rich:component('editPanel')}.show()"
actionListener="#{myBean.addActionListener}" reRender="editPanel"/>
我该如何解决上述错误。
I am creating the model in backing bean.
My java lines of code are like this
UIColumn column = new HtmlColumn();
dynamicDataTable.getChildren().add(column);
UIAjaxCommandLink editLink = new HtmlAjaxCommandLink();
editLink.setId("edit");
HtmlGraphicImage img = new HtmlGraphicImage();
img.setUrl("../images/edit.gif");
editLink.getChildren().add(img);
editLink.setActionExpression(createActionExpression("#{myBean.editRow}", String.class));
editLink.setAjaxSingle(true);
editLink.setValueExpression("onComplete", createValueExpression("#{rich:component('editPanel')}.show()", RichFunction.class));
editLink.setValueExpression("reRender", createValueExpression("editPanel", String.class));
column.getChildren().add(editLink);
I get an error. The same works for in the xhtml page.
<a4j:commandButton value="Edit" ajaxSingle="true"
oncomplete="#{rich:component('editPanel')}.show()"
actionListener="#{myBean.addActionListener}" reRender="editPanel"/>
How can I resolve the above error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我得到了解决方案,我放置了以下代码
而不是
McDowell : 现在来到 createValueExpression:
我使用此示例来创建带有动态列的表。
http://balusc.blogspot.com/2006/06/using-datatables .html#PopulateDynamicDatatable
感谢 Bauke Luitsen Scholtz (BalusC)
I got the solution, I put the following code
instead of
McDowell : Now coming to the createValueExpression:
I used the example from this to create this table with dynamic columns.
http://balusc.blogspot.com/2006/06/using-datatables.html#PopulateDynamicDatatable
Thanks Bauke Luitsen Scholtz (BalusC)