复合组件中主体定义的标记 [英] Tag for body definiton in composite component

查看:21
本文介绍了复合组件中主体定义的标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个复合组件以在我的应用程序中使用它.我需要为每个复合组件定义它自己的主体.几年前我使用JSP的时候,我在一些标签文件中指定了自定义body,例如titlebar.tag,future body由下面的标签声明:

I am creating a composite component to use it in my application. I need to define for every composite component its own body. When I used JSP few years ago, I specified custom body in some tag file, for example titlebar.tag and future body was declared by tag below:

    <jsp:doBody />

我在 JSP 文件中使用了它:

and I used it in JSP file:

<foo:titlebar>
    <jsp:body>
        something
    </jsp:body>
</foo:titlebar>

现在我需要在 cc:implementation 之间的 JSF 复合组件中有类似的东西

now I need to have something similar in JSF composite components between cc:implementation

<cc:implementation> 
    SOME TAG FOR FUTURE BODY DECLARATION
</cc:implementation>

你能给我建议吗?

推荐答案

是为了.

<cc:implementation>
    ...
    <cc:insertChildren />
    ...
</cc:implementation>

另见:

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆