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.

RenderKitUtils.renderJsfJsIfNecessary() does not invoke a Renderer to render jsf.js #4221

@javaserverfaces

Description

@javaserverfaces

In any situation which causes RenderKitUtils.renderJsfJsIfNecessary() to be executed, jsf.js is rendered without invoking the ScriptRenderer through the RenderKit. This causes problems when a library needs to decorate the Renderer used to render jsf.js with a RendererWrapper. In order to be consistent with other code and allow third-party applications to decorate jsf.js's Renderer in all situations, RenderKitUtils.renderJsfJsIfNecessary() should render jsf.js by creating a simple UIOutput and calling UIOutput.encodeAll() instead of writing directly to the response.

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