Friday, February 19, 2016

Region component has detected a page fragment with multiple root components

Many of us might have faced this issue while working on ADF application with lot of jsff pages.

<RegionRenderer> <encodeAll> The region component with id: pt1:r1:0:r4 has detected a page fragment with multiple root components

The root cause in most of the cases is described post - http://adf-webcenter.blogspot.in/2014/11/oracle-adf-fix-for-error-region.html

Why it is occurring?

The error occurs because the underlying jsff has more than one root component in the <jsp:root> tag. 

Solution

We can fix this by wrapping the multiple root components into a single one by wrapping the multiple roots into one component such as <af:group>, <af:panelGroupLayout>, etc.

No comments:

Post a Comment