Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
1.1.3
-
None
-
None
Description
Resources added with a position of AddResource.BODY_END are rendered in the page header not at body end.
In DefaultAddResource.writeWithFullHeader:724:
if (afterBodyContentInsertPosition >= 0)
Shouldn't this be:
if (afterBodyContentInsertPosition >= 0)
Workaround:
Write your own AddResource implementation (just copy the DefaultAddResource); include this fix; override default in web.xml with:
<context-param>
<param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
<param-value>au.com.project.common.ui.renderkit.html.util.DefaultAddResource</param-value>
<description>Override default resource handler (extensions filter)</description>
</context-param>