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.

The renderer for h:outputLink should not prepend the namespace prefix to parameter names #4213

@javaserverfaces

Description

@javaserverfaces

When #3280 and #3281 were fixed, the patch for OutputLinkRenderer.java added detection for portlet environments and prepended the namespace prefix to parameter names.

However, prepending parameter names with the namespace prefix is not necessary since that is the responsibility of ExternalContext.encodeResourceURL(String) (in a portlet environment).

This bug is only manifested with Mojarra 2.3 because the namespace prefix contains not only the portlet namespace, but also the value of UINamingContainer.getSeparatorChar(facesContext). This extra character (a colon character by default) causes links to be encoded incorrectly with Apache Pluto 3.0.

Although this issue is not manifested with Mojarra 2.2 and 2.1, the fix for this issue should still be back-ported since it is not correct to prepend the namespace prefix to parameter names.

Affected Versions

[2.3.0-m09]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions