Hey,

I have a problem with composite components. The scenario is as follows:

<his:someCompositeComponent id="outer">
    <h:inputText id="first" ... />

    <his:someTagHandlerTag condition="bla">
        <h:inputText is="second" ... />
    </his:someTagHandlerTag>
</his:someCompositeComponent>

The problem is, only the first input field is rendered. The second is not. After building the component tree, the first is a child of the 'composite component'-facet of the surrounding UINamingContainer (outer), the second ends as child of the UINamingContainer. The 'HtmlCompositeComponentRenderer' renders only the children of the facet.

The 'someTagHandlerTag' is handled by a subclass of TagHandler. If the condition is true, it calls the nextHandler (second-input field) which adds the input as child to the composite component.

It is the same with the JSTL-Tags: If I have a 'c:if' inside a composite component, it will not be rendered in any case.

Is this how it should be? Or should this tags also be rendered (handled) as childs using composite components?

I hope that I could clarify the problem :-)

Thank you,
dennis hoersch



--

HIS Hochschul-Informations-System GmbH
Goseriede9| 30159 Hannover | _www.his.de_ <http://www.his.de/>

Dennis Hörsch
Unternehmensbereich Hochschul-IT
Arbeitsbereich Entwicklung
Telefon +49 (0)511 1220-403 | Fax +49 (0)511 1220-250
E-Mail [email protected] <mailto:[email protected]>

Registergericht: Amtsgericht Hannover, HRB 6489
Geschäftsführer: Prof. Dr. Martin Leitner
Vorsitzender des Aufsichtsrats: Ministerialdirigent Peter Greisler

Reply via email to