I'm creating a dynamic menu with RichFaces 4. It does not work the action. I'm proving:
public static MethodExpression createAction(String actionExpression, Class<?> returnType) {
FacesContext context = FacesContext.getCurrentInstance();
return context.getApplication().getExpressionFactory().createMethodExpression(context.getELContext(), actionExpression, returnType, new Class[0]);
}
invoke:
.
.
.
menuItem.setActionExpression(createAction("#{menuBean.navigationMethod}", String.class))
submit the action but does not navigate. Some idea?