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

outputLink URL encoding

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            wtlucy Bill Lucy

            Dates

              Created:
              Updated:

              Slack

                Issue deployment