作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我这样做:
资源/虚拟机/table.xhtml:
...
<composite:interface>
<composite:facet name="dataBody" required="true"/>
</composite:interface>
...
<composite:implementation>
<t:dataTable>
<composite:renderFacet name="dataBody"/>
</t:dataTable>
</composite:implementation>
...
...
<vm:table>
<f:facet name="dataBody">
<t:column>
Testing.
</t:column>
</f:facet name="dataBody">
</vm:table>
...
最佳答案
已解决:我不得不使用 insertChildren,然后一切正常:) 我花了 1.5 天才找到这个...现在看起来很简单。从 RichFaces3.3.3/JSF1.2 迁移到 RichFaces4.0/JSF2 需要大量的工作和学习。但我到了那里:)
资源/虚拟机/table.xhtml:
...
<composite:interface>
</composite:interface>
...
<composite:implementation>
<t:dataTable>
<composite:insertChildren/>
</t:dataTable>
</composite:implementation>
...
...
<vm:table>
<t:column>
Testing.
</t:column>
</vm:table>
...
关于jsf-2 - 使用复合 :insertFacet/renderFacet does not work inside t:dataTable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7891650/
我想要一个包含一个方面的复合组件,我在这个复合组件的“实现”中实现了它。我的问题是 id,因为当我只在我的复合组件中定义然后将我的实现放入其中时,它只呈现它但组件在另一个地方。这是一个示例代码: my
我正在使用 GlassFish 3.1.2 并尝试使用 composite:insertFacet在复合组件中,但使用我的 CC 时不会生成 HTML 标记。 当我使用 composite:rende
我这样做: 资源/虚拟机/table.xhtml: ... ... ... 在 page.xhtml 中: ... Testing.
我是一名优秀的程序员,十分优秀!