我已经定义了 namespace xmlns:rich="http://richfaces.org/rich",但仍然收到错误消息“标签库支持 namespace :http://richfaces.org/rich,但没有为名称定义标签:dataList” ”。
这是代码:
<rich:dataList var="var" value="#{backingBean.value}" rows="5">
<h:outputText value="#{var.property1}"/>
</rich:dataList>
知道为什么会发生这种情况。
谢谢, 拉维
最佳答案
dataList
组件在版本 4.0.0 中已弃用。来自 Migration Guide :
The functionality of the old <rich:dataList>, <rich:dataDefinitionList>, and
<rich:dataOrderedList> components is now available through the
<rich:list> component.
您应该能够使用list
组件。
确认标记库可用的另一种方法是检查提供标记库的 jar 文件中的标记库定义。例如,您应该能够引用 richfaces-components-ui.jar:META-INF/rich.taglib.xml 文件来查看该特定版本可用的标签和属性。
关于jsf - <rich :dataList> Tag Library supports namespace: http://richfaces. org/rich,但没有为 name: dataList 定义标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13978781/