RichFaces
  1. RichFaces
  2. RF-949

can't use parameters using menu server mode

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.1, 3.2.0
    • Component/s: None
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      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

        Activity

        Hide
        Ilya Shaikovsky
        added a comment -

        should be in 3.1.1

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

        verified

        Show
        Ilya Shaikovsky
        added a comment - verified
        Hide
        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 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:
            Aleksej Yanul
            Reporter:
            Ilya Shaikovsky
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: