0 Replies Latest reply on Sep 8, 2011 4:23 PM by ederfdo

    I'm creating a dynamic menu with RichFaces 4. It does not work the action

    ederfdo

      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?