我正在支持 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"/>
如何解决上述错误。