[JAVASERVERFACES_SPEC_PUBLIC-951] Unable to map composite component facet to new name Created: 23/Mar/11 Updated: 01/Aug/14
|Affects Version/s:||2.0, 2.1|
|Remaining Estimate:||1 day|
|Time Spent:||Not Specified|
|Original Estimate:||1 day|
If you need to map map the public name exposed by a composite component to a different name as required by the consuming component, it is not possible with cc:insertFacet. Here's an example:
In the example component code above "header" is the required name for h:dataTable. However, to retrieve the outer name, you must use the correct name exposed by the component, "fooHeader" or "barHeader" in this example. The above code will obviously fail to render the headers.
To solve this, I propose adding "localName" (or something similar) to the insertFacet tag:
<cc:insertFacet name="barHeader" localName="header" />
|Comment by persapiens [ 06/Nov/11 ]|
I have problem to create composite components using cc:renderFacet inside a p:datatable
My Component (crud):
If I use cc:insertChildren it works, however I need to use facets.
|Comment by Manfred Riem [ 13/Feb/12 ]|
Have you tried doing the following?
|Comment by Ed Burns [ 01/Aug/14 ]|
Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
|Comment by Manfred Riem [ 01/Aug/14 ]|
Setting priority to Major