Skip to content
This repository was archived by the owner on Mar 20, 2021. It is now read-only.
This repository was archived by the owner on Mar 20, 2021. It is now read-only.

OutputLinkRenderer incorrectly appends question mark instead of ampersand in portlet environemtn #3280

@javaserverfaces

Description

@javaserverfaces

On or about line 224 of OutputLinkRenderer.java, the following boolean is set:

boolean paramWritten = false;

This boolean is used later on in the method to determine whether or not a question mark or ampersand should be appended before the name=value pair of an f:param...

However, in a portlet environment the hrefVal already has a question-mark. To fix this problem, simply change the initialization of paramWritten to the following:

boolean paramWritten = (hrefVal.indexOf("?") > 0);

Affected Versions

[2.2.6]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions