1 Reply Latest reply on Jan 6, 2009 9:20 AM by Nick Belaevski

    Dymanic actions with HtmlMenuItem

    Hadi Elmougy Newbie

      I have the following menu builder method, suppose it navigate to the to binding Expression
      but i did nothing, and there is no exception

      public void setMenu(HtmlDropDownMenu menu) {
      this.menu = menu;
      HtmlMenuItem item;
      for(Object obj : menuList){
      item = new HtmlMenuItem();
      Application app = FacesContext.getCurrentInstance().getApplication();
      MethodExpression mBinding =
      app.getExpressionFactory().createMethodExpression(FacesContext.getCurrentInstance().getELContext(), "#{taskBarImpl.nav}",String.class ,new Class[]{ });
      item.addActionListener(new MethodExpressionActionListener(mBinding));

      addToMenu(item, obj.toString());



      I need help