HtmlOutputText headerComponent = new HtmlOutputText();
headerComponent.setValue("MAJ");
columnComponent.setHeader(headerComponent);
HtmlCommandLink htmlCommandLink=(HtmlCommandLink)app.createComponent (HtmlCommandLink.COMPONENT_TYPE);
htmlCommandLink.setValue("Update");
Class[] argTypes = {ActionEvent.class };
MethodBinding vb=FacesContext.getCurrentInstance().getApplication().createMethodBinding("#{renderer.update}", argTypes);
htmlCommandLink.setActionListener(vb);
MethodBinding mb = app.createMethodBinding("#{renderer.updateLine}",null);
htmlCommandLink.setAction(mb);
columnComponent.getChildren().add(htmlCommandLink);
childrenList.add(columnComponent);
194




被折叠的 条评论
为什么被折叠?



