Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-949

can't use parameters using menu server mode

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.1, 3.2.0
    • Component/s: None
    • Labels:
      None

      Description

      <rich:menuItem value="item" action="#

      {capitalsBean.action}

      " submitMode="server" reRender="test">
      <f:param name="test" value="test" />

      </rich:menuItem>

      public String action()

      { System.out.println("Action fired"); String sid=FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("test"); System.out.println(sid); return null; }

      In ajax mode I can see in console:

      Action fired
      test

      In server mode -
      Action fired
      null

        Gliffy Diagrams

          Activity

          Hide
          ilya_shaikovsky Ilya Shaikovsky added a comment -

          should be in 3.1.1

          Show
          ilya_shaikovsky Ilya Shaikovsky added a comment - should be in 3.1.1
          Hide
          ilya_shaikovsky Ilya Shaikovsky added a comment -

          verified

          Show
          ilya_shaikovsky Ilya Shaikovsky added a comment - verified
          Hide
          Mireille Mireille Moreira added a comment -

          I still got this problem using dynamic menu item (backing bean):

          Code:

          ...
          HtmlMenuItem menuItem = new HtmlMenuItem();
          UIParameter parameter = new UIParameter();
          parameter.setName("id");
          parameter.setValue("test");
          menuItem.getChildren().add(parameter);
          ...

          At Firefox it works fine. However, it doesn't work at IE.

          Code:

          String out = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("id");
          System.out.println(out);

          Console using Firefox:

          test

          Console using IE:

          null

          Show
          Mireille Mireille Moreira added a comment - I still got this problem using dynamic menu item (backing bean): Code: ... HtmlMenuItem menuItem = new HtmlMenuItem(); UIParameter parameter = new UIParameter(); parameter.setName("id"); parameter.setValue("test"); menuItem.getChildren().add(parameter); ... At Firefox it works fine. However, it doesn't work at IE. Code: String out = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("id"); System.out.println(out); Console using Firefox: test Console using IE: null

            People

            • Assignee:
              ayanul Aleksej Yanul
              Reporter:
              ilya_shaikovsky Ilya Shaikovsky
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development