Hello

Since I am implementing this part, I have a question especially to the guys doing the facelet part.

We have a method in UIComponent - isCompositeComponent

Now it is not very clear to me if the code I found in our class is correct.

We already have a private method: _isCompositeComponent which does following:

 private boolean _isCompositeComponent() {
return getAttributes().get(Resource.COMPONENT_RESOURCE_KEY) != null;
    }



This looks somewhat strange to me, the component resource key, which is : javax.faces.application.Resource.ComponentResource

is this really an indicator for a composite component?

In my opinion it should look like following:
 private boolean _isCompositeComponent() {
        component.getRendererType().equals("javax.faces.Composite");
}

but I am not totally sure either, this should work for java based components which are marked as composite in their renderers, but i am not sure if this triggers the correct behavior for facelets.

In either case for now I have moved the private code to the public static method like the spec says!


Werner

Reply via email to