You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2014/11/24 20:39:12 UTC

[jira] [Created] (MYFACES-3944) Calls to fcc.startComponentUniqueIdSection(...) and fcc.endComponentUniqueIdSection(...) should be surrounded in a try finally block

Leonardo Uribe created MYFACES-3944:
---------------------------------------

             Summary: Calls to fcc.startComponentUniqueIdSection(...) and fcc.endComponentUniqueIdSection(...) should be surrounded in a try finally block
                 Key: MYFACES-3944
                 URL: https://issues.apache.org/jira/browse/MYFACES-3944
             Project: MyFaces Core
          Issue Type: Improvement
          Components: JSR-344
    Affects Versions: 2.2.6
            Reporter: Leonardo Uribe
            Assignee: Leonardo Uribe


In some situations where an exception could be raised inside a component like c:forEach, and on the same time fcc.startComponentUniqueIdSection(...) and fcc.endComponentUniqueIdSection(...) are used, the section is not closed, affecting theoretically the ids generated.

The probability of something like this is very low, but as a good practice it would be better to ensure  fcc.startComponentUniqueIdSection(...) and fcc.endComponentUniqueIdSection(...)  are called inside a try{...} finally block.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)