You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Kočí (JIRA)" <de...@myfaces.apache.org> on 2011/08/29 20:59:38 UTC

[jira] [Commented] (MYFACES-3295) Replace RendererUtils.renderChild() by UIComponent.encodeAll()

    [ https://issues.apache.org/jira/browse/MYFACES-3295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13093091#comment-13093091 ] 

Martin Kočí commented on MYFACES-3295:
--------------------------------------

+1 ! During this please consider semi-related issue MYFACES-3198. Current solution with RendererUtils.renderChild() prevents to queue UIComponent which caused the exception, because exception from RendererUtils.renderChild()  (used inrenderer) is propagated to parent component.

> Replace RendererUtils.renderChild() by UIComponent.encodeAll()
> --------------------------------------------------------------
>
>                 Key: MYFACES-3295
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3295
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>
> Checking other issues, if was notice that RendererUtils.renderChild() is almost equal to UIComponent.encodeAll(). 
> Historically, RendererUtils.renderChild() is older than UIComponent.encodeAll(), but the later one is better because gives the chance to the component to override it.
> It is known any override goes on encodeBegin(), encodeChildren() or encodeEnd(), but to honor JSF 2.0 spec, we should fix RendererUtils.renderChildren(), and use encodeAll() instead RendererUtils.renderChild().

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira