复合组件中的车身定义标签 [英] Tag for body definiton in composite component

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

问题描述

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

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>

能给我个建议吗?

推荐答案

另请参见:

  • Java EE 7教程-第8.5章:复合组件
  • See also:

    • Java EE 7 tutorial - Chapter 8.5: Composite Components
    • 这篇关于复合组件中的车身定义标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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