Permalink
Browse files

MYFACES-3698: h:body onload and onunload attributes rendered twice if…

… optimization enabled

 - Switch from HTML.BODY_ATTRIBUTES to HTML.BODY_ATTRIBUTES_WITHOUT_EVENTS

git-svn-id: https://svn.apache.org/repos/asf/myfaces/core/trunk@1449777 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 3947f68 commit 44b1aae90439b100b2c784c442379924fd578241 Maurice (Mike) L. Kienenberger committed Feb 25, 2013
@@ -105,7 +105,7 @@ public void encodeBegin(FacesContext facesContext, UIComponent component)
if (isCommonPropertiesOptimizationEnabled(facesContext))
{
HtmlRendererUtils.renderHTMLAttributes(writer, component,
- HTML.BODY_ATTRIBUTES);
+ HTML.BODY_ATTRIBUTES_WITHOUT_EVENTS);
CommonPropertyUtils.renderCommonPassthroughPropertiesWithoutEvents(writer,
CommonPropertyUtils.getCommonPropertiesMarked(component), component);
}

0 comments on commit 44b1aae

Please sign in to comment.