Building an HtmlAjaxCommandButton by code:
MethodExpression meF = Utils.getExpressionFactory().
createMethodExpression(FacesContext.getCurrentInstance().getELContext(),
"#{"+this.action+".moveRMdBRW}", null, new Class[]{ActionEvent.class});
HtmlAjaxCommandButton acb = new HtmlAjaxCommandButton();
acb.setValue("HOLA");
acb.addActionListener(new MethodExpressionActionListener(meF));
pgo.getChildren().add(acb);
I get an javascriot error and doesn't work.
Any Idea
Regards