ComponentSupport.getFaceletComponentMap() returns wrong components when using dynamic includes in JSF 2

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Issue

  • ComponentSupport.getFaceletComponentMap() returns wrong components when using dynamic includes in JSF 2.
  • Because of dynamic includes DefaultFaceletContext.generateUniqueId generates the same tag ids for different components located in different dynamic included subtrees. On buildView in render phase the wrong components are then fetched from ComponentSupport.getFaceletComponentMap() instead of creating new ones.

Resolution

  • The issue is fixed in the [bug-1323920].
  • he issue is expected to be fixed in EAP 6.4 CP 9, which may be subject to change.
    [bug-1323920] : https://bugzilla.redhat.com/show_bug.cgi?id=1323920

Root Cause

This is a bug as explained in Content from java.net is not included.Content from java.net is not included.https://java.net/jira/browse/JAVASERVERFACES-3545.

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.