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

outputLink URL encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 2.2.8
    • None
    • None
    • None

    Description

      We have an interesting behaviour when rendering h:outputLink with nested f:param elements: in the param data, the output href string has spaces encoded with a "+" rather than the expected "%20". For example:

      <h:outputLink value="login.xhtml"><h:outputText value="Login page" /><f:param name="username" value="This is a test" /></h:outputLink>
      creates the following:
      <a href="login.xhtml?username=This+is+a+test">Login page</a>

      This already seems to have been discussed in https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1019

      I'll attach a patch which resolves this - if it is in fact an issue.

      Attachments

        1. myfaces-4009.patch
          2 kB
          Bill Lucy

        Activity

          People

            Unassigned Unassigned
            wtlucy Bill Lucy
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: