myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Murth <>
Subject Re: Composite components in myfaces 2.2.
Date Mon, 24 Feb 2014 12:26:12 GMT
The output of DOCTYPE was related to another issue:

The XHTML that is embedded with ui:include had this as root element.
ui:composition as root element solved the problem.
- Side question: is this an official change from 2.1 to 2.2?

But there is still the issue that the composite component from the JAR is
not found:

The using page looks like this:

< ....
    <xma:navbar .. brand="Test" />

The component is  in somelib.jar/META-INF/resources/xmajsf/navbar.xhtml and
looks like this

Beside there is a xmajsf.taglib.xml in the root of the same JAR:
<ui:composition xmlns=""
<cc:interface componentType="Navbar">
<cc:attribute name="brand" required="true"/>

Beside there is this content in META-INF\xmajsf.taglib.xml inside the same

<facelet-taglib version="2.0" xmlns=""
 xmlns:xsi="" xsi:schemaLocation="">

What am I doing wrong?

2014-02-14 17:52 GMT+01:00 Michael Kurz <>:

> Hi,
> would be interesting how your composite component looks like (the basic
> structure) and how it is embedded in the page.
> Best regards
> Michi
> Am 13.02.2014 13:10, schrieb Johannes Murth:
>  Hi! I just upgraded from 2.1 to 2.2 and have rendering problem because xml
>> doctype and html tag are rendered right before composite component. These
>> break the layout and should just be swallowed.
>> Thanks for any advice!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message