0 Replies Latest reply on Jun 27, 2008 12:23 PM by grundor

    PanelMenuItem Safari Problem: Action set via ActionExpressio

      The same code works fine under IE 7 and Firefox 3, but fails under Safari 3.1.2.

      I am using RF 3.2.1GA.

      I am programmatically creating HtmlPanelMenuItem's and setting the action callback via SetActionExpression. The callback is never called under Safari.

      Here is the relevant code:

       private HtmlPanelMenuItem createHomeItem(String label, String name, String viewId) {
       HtmlPanelMenuItem item = new HtmlPanelMenuItem();
       item.setLabel(label);
       item.setName(name);
      
       // Set the action
       ExpressionFactory expFactory = FacesContext.getCurrentInstance().getApplication().getExpressionFactory();
       MethodExpression listenerExpr = expFactory.createMethodExpression(FacesContext.getCurrentInstance().getELContext(), "#{navigationAction.testIt}", null, new Class[]{});
       item.setActionExpression(listenerExpr);
      
       // If this page is page being displayed
       // save a reference to it
       if (this.currentPageName.equals(name)) {
       this.selectedItem = item;
       }
      
       return item;
       }
      
       public String testIt() {
       log.info("TestIt Callback Called!");
       return null;
       }
      


      Am I doing something incorrectly? Or is this a legitimate bug?

      -Mark