Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4189

Multi valued query parameter not considered in commandbutton action

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.12
    • 2.2.13, 2.3.3, 2.3-next-M1
    • None
    • None

    Description

       xhtml page:

      <h:commandButton action="#{user.login}"/>

      Java bean:

      private String returnUrl = 
       "catalogsearch.jsf?fq=param1&fq=param2&faces-redirect=true&includeViewParams=true";
      
      public String login() {
         return returnUrl;
      }

       

      expected http response result:

      HTTP/1.1 302 Found
      Location: /learningportal-1.7.1.2/pages/catalogsearch.jsf?fq=param1&fq=param2

      actual http response result:

      HTTP/1.1 302 Found
      Location: /learningportal-1.7.1.2/pages/catalogsearch.jsf?fq=param2

       

      Affected versions (myfaces):

      • 2.2.9
      • 2.2.12

      Attachments

        Activity

          People

            Unassigned Unassigned
            domschmidt Dominik Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: