Eclipse内容辅助在PrimeFaces var datatable中无法工作

3

使用Eclipse Kepler SR1,对于在primefaces的数据表中声明的变量,内容助手无法正常工作:

<p:dataTable value="#{testManagedBean.listAllDomaines()}" var="pRow" >
  <p:column>
    <h:outputText value="#{pRow.}" />
  </p:column>
</p:dataTable>

#{pRow.} + CTRL空格无法显示任何内容。

而传统的数据表格可以正常操作:

<h:dataTable value="#{testManagedBean.lstdDomaines}" var="stdRow">
  <h:column>
    <h:outputText value="#{stdRow.iddom}" />
  </h:column>
</h:dataTable>

任何想法吗?
敬礼,
Stef
1个回答

0

打开Eclipse,在菜单栏中选择:

Window > Preferences >

General > Preferences > General > Content Types > Text > JSP(选择)

  • 点击"添加..."按钮
  • 插入:*.xhtml
  • 按下"确定"按钮
  • 现在您的问题已经解决了

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接