<?xml version="1.0" encoding="UTF-8"?>

<cdk:root xmlns="http://jboss.org/schema/richfaces/cdk/xhtml-el" xmlns:cdk="http://jboss.org/schema/richfaces/cdk/core"
    xmlns:c="http://jboss.org/schema/richfaces/cdk/jstl/core" xmlns:cc="http://jboss.org/schema/richfaces/cdk/jsf/composite"
    xmlns:javaee="http://java.sun.com/xml/ns/javaee">

    <cc:interface>
        <cdk:class>org.richfaces.cdk.renderkit.html.CoercedRenderer</cdk:class>
        <cdk:component-family>org.richfaces.cdk.CoercedComponent</cdk:component-family>
        <cdk:renderer-type>org.richfaces.cdk.CoercedRenderer</cdk:renderer-type>
    </cc:interface>

    <cc:implementation>
        <c:if test="#{component.attributes['flag']}">
            Flag
        </c:if>

        <cdk:object type="boolean" name="anotherFlag" value="#{component.attributes['anotherFlag']}" />
        <c:if test="#{anotherFlag}">
            AnotherFlag
        </c:if>

        <cdk:object name="someObject" type="Object" value="#{component.attributes['someObject']}" />
        <cdk:object name="string" type="String" value="#{someObject}" />
        #{string.length()}

    </cc:implementation>
</cdk:root>
