I tried to create a composite component like this
Where attrs contains more than one attributes, I get this error
Error Parsing //opt/glassfish3/glassfish/domains/domain1/generated/jsp/flexims/mojarra4543755225647727870.tmp: Error Traced[line: 2] Element type "j:pager" must be followed by either attribute specifications, ">" or "/>".
I traced the error down to line 337 in com.sun.faces.facelets.impl.DefaultFaceletFactory
The problem is there is no space between multiple xml attributes so the generated xml is not well formatted.
As a workaround, I added a space before attribute name when creating attrs.
Note that I added extra space character before attribute name pagecontent.